231 lines
10 KiB
React
231 lines
10 KiB
React
/* Metro module 1035; source: unknown; dependencies: [5, 1036, 826] */
|
|
function _fun10996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1162:6, offset: 0x00d9dd09, size: 120 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const env0_2 = require(5) /* metro dependency 5 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
const env0_3 = {'replayIntegration': 'replay', 'replayCanvasIntegration': 'replay-canvas',
|
|
'feedbackIntegration': 'feedback', 'feedbackModalIntegration': 'feedback-modal',
|
|
'feedbackScreenshotIntegration': 'feedback-screenshot', 'captureConsoleIntegration': 'captureconsole',
|
|
'contextLinesIntegration': 'contextlines', 'linkedErrorsIntegration': 'linkederrors',
|
|
'dedupeIntegration': 'dedupe', 'extraErrorDataIntegration': 'extraerrordata',
|
|
'graphqlClientIntegration': 'graphqlclient', 'httpClientIntegration': 'httpclient',
|
|
'reportingObserverIntegration': 'reportingobserver', 'rewriteFramesIntegration': 'rewriteframes',
|
|
'browserProfilingIntegration': 'browserprofiling', 'moduleMetadataIntegration': 'modulemetadata',
|
|
'instrumentAnthropicAiClient': 'instrumentanthropicaiclient',
|
|
'instrumentOpenAiClient': 'instrumentopenaiclient',
|
|
'instrumentGoogleGenAIClient': 'instrumentgooglegenaiclient', 'instrumentLangGraph': 'instrumentlanggraph',
|
|
'createLangChainCallbackHandler': 'createlangchaincallbackhandler'};
|
|
exports.lazyLoadIntegration = function(a0, a1) {
|
|
return _lazyLoadIntegration.apply(this, arguments);
|
|
};
|
|
}
|
|
|
|
function _lazyLoadIntegration() { // fn#10997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1162:1022, offset: 0x00d9dd81, size: 47 bytes, params: 1, frame: 14
|
|
return env0_2(_fun10999).apply(this, arguments);
|
|
}
|
|
|
|
function* _fun10999(a0, a1) { // fn#10999, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1162:1085, offset: 0x00d9ddb9, size: 853 bytes, params: 3, frame: 35
|
|
var cdnBaseUrl;
|
|
var r9;
|
|
var Error;
|
|
var prototype;
|
|
var error;
|
|
var property2;
|
|
var client;
|
|
var options;
|
|
var URL;
|
|
var binding3;
|
|
var value9;
|
|
var value10;
|
|
var uRL;
|
|
var value12;
|
|
var document;
|
|
var element;
|
|
var Promise;
|
|
var value13;
|
|
var promise;
|
|
var value14;
|
|
var binding4;
|
|
var currentScript;
|
|
var value15;
|
|
var value16;
|
|
var value18;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
let property = env2_3[a0];
|
|
let binding = env2_0;
|
|
const binding2 = env2_1;
|
|
let WINDOW = binding(binding2[1]).WINDOW;
|
|
const WINDOW2 = binding(binding2[1]).WINDOW;
|
|
const Sentry = WINDOW2.Sentry;
|
|
const r1 = Sentry || ({});
|
|
WINDOW.Sentry = r1;
|
|
if (property) {
|
|
property2 = r1[a0];
|
|
if (typeof property2 !== 'function') {
|
|
binding = env2_0;
|
|
client = binding(env2_1[2]).getClient();
|
|
if (client == null) {
|
|
cdnBaseUrl = value;
|
|
} else {
|
|
options = client.getOptions();
|
|
cdnBaseUrl = options == null ? value : options.cdnBaseUrl;
|
|
}
|
|
cdnBaseUrl = !cdnBaseUrl ? 'https://browser.sentry-cdn.com' : cdnBaseUrl;
|
|
URL = global.URL;
|
|
binding = env2_0;
|
|
binding3 = env2_1;
|
|
value9 = '/' + binding(binding3[2]).SDK_VERSION + '/' + property + '.min.js';
|
|
prototype = URL.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: URL}});
|
|
uRL = new URL();
|
|
value12 = (uRL instanceof Object ? uRL : value10).toString();
|
|
WINDOW = binding(binding3[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
element = document.createElement('script');
|
|
element.src = value12;
|
|
element.crossOrigin = 'anonymous';
|
|
element.referrerPolicy = 'strict-origin';
|
|
if (a1) {
|
|
element.setAttribute('nonce', a1);
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun11000);
|
|
value14 = promise instanceof Object ? promise : value13;
|
|
binding = env2_0;
|
|
binding4 = env2_1;
|
|
WINDOW = binding(binding4[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
currentScript = document.currentScript;
|
|
WINDOW = binding(binding4[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
r9 = document.body || env2_0(env2_1[1]).WINDOW.document.head;
|
|
r9 = !r9 ? currentScript == null ? value : currentScript.parentElement : r9;
|
|
if (r9) {
|
|
r9.appendChild(element);
|
|
yield value14;
|
|
try {
|
|
value = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
value = 'Error when loading integration: ' + a0;
|
|
prototype = Error.prototype;
|
|
value18 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value18;
|
|
throw value;
|
|
}
|
|
if (value16) {
|
|
return value;
|
|
}
|
|
property = r1[a0];
|
|
if (typeof property !== 'function') {
|
|
throw new global.Error('Could not load integration: ' + a0);
|
|
}
|
|
return property;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Could not find parent element to insert lazy-loaded ' + a0 + ' script';
|
|
prototype = Error.prototype;
|
|
value15 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value15;
|
|
throw value;
|
|
}
|
|
if ('_isShim' in property2) {
|
|
binding = env2_0;
|
|
client = binding(env2_1[2]).getClient();
|
|
if (client == null) {
|
|
cdnBaseUrl = value;
|
|
} else {
|
|
options = client.getOptions();
|
|
cdnBaseUrl = options == null ? value : options.cdnBaseUrl;
|
|
}
|
|
cdnBaseUrl = !cdnBaseUrl ? 'https://browser.sentry-cdn.com' : cdnBaseUrl;
|
|
URL = global.URL;
|
|
binding = env2_0;
|
|
binding3 = env2_1;
|
|
value9 = '/' + binding(binding3[2]).SDK_VERSION + '/' + property + '.min.js';
|
|
prototype = URL.prototype;
|
|
value10 = Object.create(prototype, {constructor: {value: URL}});
|
|
uRL = new URL();
|
|
value12 = (uRL instanceof Object ? uRL : value10).toString();
|
|
WINDOW = binding(binding3[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
element = document.createElement('script');
|
|
element.src = value12;
|
|
element.crossOrigin = 'anonymous';
|
|
element.referrerPolicy = 'strict-origin';
|
|
if (a1) {
|
|
element.setAttribute('nonce', a1);
|
|
}
|
|
Promise = global.Promise;
|
|
prototype = Promise.prototype;
|
|
value13 = Object.create(prototype, {constructor: {value: Promise}});
|
|
promise = new Promise(_fun11000);
|
|
value14 = promise instanceof Object ? promise : value13;
|
|
binding = env2_0;
|
|
binding4 = env2_1;
|
|
WINDOW = binding(binding4[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
currentScript = document.currentScript;
|
|
WINDOW = binding(binding4[1]).WINDOW;
|
|
document = WINDOW.document;
|
|
r9 = document.body || env2_0(env2_1[1]).WINDOW.document.head;
|
|
r9 = !r9 ? currentScript == null ? value : currentScript.parentElement : r9;
|
|
if (r9) {
|
|
r9.appendChild(element);
|
|
yield value14;
|
|
try {
|
|
value = undefined;
|
|
value16 = false;
|
|
} catch (error) {
|
|
Error = global.Error;
|
|
value = 'Error when loading integration: ' + a0;
|
|
prototype = Error.prototype;
|
|
value18 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value18;
|
|
throw value;
|
|
}
|
|
if (value16) {
|
|
return value;
|
|
}
|
|
property = r1[a0];
|
|
if (typeof property !== 'function') {
|
|
throw new global.Error('Could not load integration: ' + a0);
|
|
}
|
|
return property;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Could not find parent element to insert lazy-loaded ' + a0 + ' script';
|
|
prototype = Error.prototype;
|
|
value15 = Object.create(prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value15;
|
|
throw value;
|
|
}
|
|
return property2;
|
|
}
|
|
Error = global.Error;
|
|
value = 'Cannot lazy load integration: ' + a0;
|
|
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
error = new Error(value);
|
|
throw error instanceof Object ? error : value4;
|
|
}
|
|
|
|
function _fun11000(a0, a1) { // fn#11000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1162:1670, offset: 0x00d9e10e, size: 64 bytes, params: 3, frame: 14
|
|
const env0_0 = a0;
|
|
env0_0.addEventListener('load', _fun11001);
|
|
env0_0.addEventListener('error', a1);
|
|
}
|
|
|