Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,943 @@
|
||||
/* Metro module 4025; source: unknown; dependencies: [77, 29, 57] */
|
||||
function _fun33137(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6, offset: 0x0102847c, size: 230 bytes, params: 8, frame: 15
|
||||
const closure = function(a0, a1) {
|
||||
var value;
|
||||
var error;
|
||||
var env0_0 = a1;
|
||||
try {
|
||||
value = a0();
|
||||
var env0_1 = value;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
return {getItem: _fun33139, setItem: _fun33141, removeItem: _fun33142};
|
||||
};
|
||||
let env0_0 = require(77) /* metro dependency 77 */;
|
||||
let env0_1 = require(29) /* metro dependency 29 */;
|
||||
const env0_2 = require(57) /* metro dependency 57 */;
|
||||
const env0_3 = ['enabled', 'anonymousActionType', 'store'];
|
||||
const env0_4 = ['connection'];
|
||||
const Map = global.Map;
|
||||
const map = new Map();
|
||||
const findCallerName = function(a0) {
|
||||
var r5;
|
||||
var value;
|
||||
var index;
|
||||
var property;
|
||||
var value4;
|
||||
if (a0) {
|
||||
value = a0.split('\n');
|
||||
index = value.findIndex(_fun33151);
|
||||
if (index < 0) {
|
||||
return undefined;
|
||||
}
|
||||
property = value[index + 1];
|
||||
value = undefined;
|
||||
r5 = property == null ? value : property.trim();
|
||||
r5 = !r5 ? '' : r5;
|
||||
value4 = RegExp('.+ (.+) .+', '').exec(r5);
|
||||
return value4 == null ? value : value4[1];
|
||||
}
|
||||
};
|
||||
const parseJsonThen = function(a0, a1) {
|
||||
var r1;
|
||||
var property;
|
||||
var value2;
|
||||
var error;
|
||||
var value = undefined;
|
||||
try {
|
||||
property = global.JSON;
|
||||
value2 = property.parse(a0);
|
||||
r1 = value2;
|
||||
} catch (error) {
|
||||
property = global.console;
|
||||
property.error('[zustand devtools middleware] Could not parse the received json', error);
|
||||
r1 = value;
|
||||
}
|
||||
if (value !== r1) {
|
||||
a1(r1);
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const toThenable = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun33169;
|
||||
};
|
||||
exports.combine = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun33202;
|
||||
};
|
||||
exports.createJSONStorage = closure;
|
||||
exports.devtools = function(a0) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
return _fun33153;
|
||||
};
|
||||
exports.persist = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun33175;
|
||||
};
|
||||
exports.redux = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun33144;
|
||||
};
|
||||
exports.subscribeWithSelector = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return _fun33165;
|
||||
};
|
||||
}
|
||||
|
||||
function createJSONStorage(a0, a1) { // fn#33138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4627, offset: 0x01028562, size: 65 bytes, params: 3, frame: 10
|
||||
var value;
|
||||
var error;
|
||||
const env0_0 = a1;
|
||||
try {
|
||||
value = a0();
|
||||
var env0_1 = value;
|
||||
} catch (error) {
|
||||
return undefined;
|
||||
}
|
||||
return {getItem: getItem_33139, setItem: setItem_33141, removeItem: removeItem_33142};
|
||||
}
|
||||
|
||||
function redux(a0, a1) { // fn#33143, offset: 0x0102868d, size: 23 bytes, params: 3, frame: 2
|
||||
let env0_0 = a0;
|
||||
let env0_1 = a1;
|
||||
return function(a0, a1, a2) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a2;
|
||||
a2.dispatch = _fun33145;
|
||||
a2.dispatchFromDevtools = true;
|
||||
var Object = global.Object;
|
||||
return Object.assign({dispatch: _fun33147}, require);
|
||||
};
|
||||
}
|
||||
|
||||
function getTrackedConnectionState(a0) { // fn#33148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:395, offset: 0x01028748, size: 88 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var Object;
|
||||
var fromEntries;
|
||||
var Object2;
|
||||
let value = env0_5.get(a0);
|
||||
if (value) {
|
||||
Object = global.Object;
|
||||
fromEntries = Object.fromEntries;
|
||||
Object2 = global.Object;
|
||||
value = Object2.entries(value.stores);
|
||||
value = Reflect.apply(fromEntries, Object, [value.map(_fun33149)]);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = {};
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function findCallerName(a0) { // fn#33150, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:570, offset: 0x010287da, size: 127 bytes, params: 2, frame: 14
|
||||
var r5;
|
||||
var value;
|
||||
var index;
|
||||
var property;
|
||||
var value4;
|
||||
if (a0) {
|
||||
value = a0.split('\n');
|
||||
index = value.findIndex(function(a0) {
|
||||
return a0.includes('api.setState');
|
||||
});
|
||||
if (index < 0) {
|
||||
return undefined;
|
||||
}
|
||||
property = value[index + 1];
|
||||
value = undefined;
|
||||
r5 = property == null ? value : property.trim();
|
||||
r5 = !r5 ? '' : r5;
|
||||
value4 = RegExp('.+ (.+) .+', '').exec(r5);
|
||||
return value4 == null ? value : value4[1];
|
||||
}
|
||||
}
|
||||
|
||||
function devtools(a0) { // fn#33152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:806, offset: 0x0102886e, size: 50 bytes, params: 2, frame: 5
|
||||
const env0_0 = a0;
|
||||
const env0_1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
return _fun33153;
|
||||
}
|
||||
|
||||
function subscribeWithSelector(a0) { // fn#33164, offset: 0x010292d6, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun33165;
|
||||
}
|
||||
|
||||
function toThenable(a0) { // fn#33168, offset: 0x010293e4, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun33169;
|
||||
}
|
||||
|
||||
function persist_33174(a0, a1) { // fn#33174, offset: 0x01029496, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun33175;
|
||||
}
|
||||
|
||||
function combine_33201(a0, a1) { // fn#33201, offset: 0x01029b08, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun33202;
|
||||
}
|
||||
|
||||
function createJSONStorageGetItem(a0) { // fn#33139, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4706, owner: createJSONStorage.getItem, offset: 0x010285a3, size: 76 bytes, params: 2, frame: 12
|
||||
const closure = getItemParse;
|
||||
const item = env0_1.getItem(a0);
|
||||
const value2 = null;
|
||||
const r2 = value2 != item ? item : value2;
|
||||
const Promise = global.Promise;
|
||||
return r2 instanceof Promise ? r2.then(closure) : closure(r2);
|
||||
}
|
||||
|
||||
function createJSONStorageSetItem(a0, a1) { // fn#33141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4897, owner: createJSONStorage.setItem, offset: 0x0102862c, size: 74 bytes, params: 3, frame: 16
|
||||
const binding = env0_1;
|
||||
const setItem = binding.setItem;
|
||||
const JSON = global.JSON;
|
||||
return Reflect.apply(setItem, binding, [a0, JSON.stringify(a1, require?.replacer)]);
|
||||
}
|
||||
|
||||
function createJSONStorageRemoveItem(a0) { // fn#33142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4995, owner: createJSONStorage.removeItem, offset: 0x01028676, size: 23 bytes, params: 2, frame: 11
|
||||
return env0_1.removeItem(a0);
|
||||
}
|
||||
|
||||
function _fun33144(a0, a1, a2) { // fn#33144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:176, offset: 0x010286a4, size: 74 bytes, params: 4, frame: 13
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a2;
|
||||
a2.dispatch = function(a0) {
|
||||
a0(_fun33146, false, a0);
|
||||
return a0;
|
||||
};
|
||||
a2.dispatchFromDevtools = true;
|
||||
const Object = global.Object;
|
||||
return Object.assign({dispatch: function() {
|
||||
return importDefault.dispatch.apply(importDefault, arguments);
|
||||
}}, require);
|
||||
}
|
||||
|
||||
function _fun33149(a0) { // fn#33149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:506, offset: 0x010287a0, size: 58 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = env1_2(a0, 2);
|
||||
let property = value[0];
|
||||
const items2 = [property];
|
||||
property = value[1];
|
||||
const getState = property.getState;
|
||||
items2[1] = Reflect.apply(getState, property, []);
|
||||
return items2;
|
||||
}
|
||||
|
||||
function _fun33153(a0, a1, a2) { // fn#33153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:902, offset: 0x010288a0, size: 709 bytes, params: 4, frame: 28
|
||||
var r14;
|
||||
var r13;
|
||||
var r9;
|
||||
var value5;
|
||||
var window;
|
||||
var __REDUX_DEVTOOLS_EXTENSION__;
|
||||
var error;
|
||||
var value6;
|
||||
var object2;
|
||||
var Object;
|
||||
var assign;
|
||||
var connection;
|
||||
var value9;
|
||||
var init;
|
||||
var fromEntries;
|
||||
var Object2;
|
||||
var value10;
|
||||
var dispatch;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
let value = undefined;
|
||||
const enabled = env0_1.enabled;
|
||||
const env0_3 = env0_1.anonymousActionType;
|
||||
const store = env0_1.store;
|
||||
let binding = env1_1;
|
||||
const value4 = binding(env0_1, env1_3);
|
||||
try {
|
||||
value5 = enabled != null;
|
||||
r14 = value5 && enabled;
|
||||
if (r14) {
|
||||
window = global.window;
|
||||
__REDUX_DEVTOOLS_EXTENSION__ = window.__REDUX_DEVTOOLS_EXTENSION__;
|
||||
r13 = __REDUX_DEVTOOLS_EXTENSION__;
|
||||
} else {
|
||||
r13 = r14;
|
||||
}
|
||||
r9 = r13;
|
||||
} catch (error) {
|
||||
r9 = value;
|
||||
}
|
||||
if (r9) {
|
||||
if (value === store) {
|
||||
object2 = {type: 'untracked'};
|
||||
object2.connection = r9.connect(value4);
|
||||
r9 = object2;
|
||||
} else {
|
||||
binding = env1_5;
|
||||
value6 = binding.get(value4.name);
|
||||
object2 = {};
|
||||
if (value6) {
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
object2.type = 'tracked';
|
||||
object2.store = store;
|
||||
r9 = Reflect.apply(assign, Object, [object2, value6]);
|
||||
} else {
|
||||
object2.connection = r9.connect(value4);
|
||||
object2.stores = {};
|
||||
binding = env1_5;
|
||||
binding.set(value4.name, object2);
|
||||
Object = global.Object;
|
||||
r9 = Object.assign({type: 'tracked', store: store}, object2);
|
||||
}
|
||||
}
|
||||
connection = r9.connection;
|
||||
binding = env1_1;
|
||||
value9 = binding(r9, env1_4);
|
||||
a2.setState = setState_33154;
|
||||
a2.devtools = {cleanup: cleanup_33155};
|
||||
binding = env0_0;
|
||||
value = binding(a2.setState, a1, a2);
|
||||
if (value9.type === 'untracked') {
|
||||
if (connection != null) {
|
||||
connection.init(value);
|
||||
}
|
||||
} else {
|
||||
value9.stores[value9.store] = a2;
|
||||
if (connection != null) {
|
||||
init = connection.init;
|
||||
Object = global.Object;
|
||||
fromEntries = Object.fromEntries;
|
||||
Object2 = global.Object;
|
||||
value10 = Object2.entries(value9.stores);
|
||||
Reflect.apply(init, connection, [Reflect.apply(fromEntries, Object, [value10.map(_fun33157)])]);
|
||||
}
|
||||
}
|
||||
if (a2.dispatchFromDevtools) {
|
||||
dispatch = a2.dispatch;
|
||||
if (typeof dispatch === 'function') {
|
||||
dispatch = a2.dispatch;
|
||||
a2.dispatch = dispatch_33158;
|
||||
}
|
||||
}
|
||||
connection.subscribe(_fun33159);
|
||||
return value;
|
||||
}
|
||||
return env0_0(a0, a1, a2);
|
||||
}
|
||||
|
||||
function _fun33165(a0, a1, a2) { // fn#33165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4347, offset: 0x010292e6, size: 54 bytes, params: 4, frame: 15
|
||||
const env0_0 = a2;
|
||||
const env0_1 = a2.subscribe;
|
||||
a2.subscribe = subscribe_33166;
|
||||
return env0_0(a0, a1, a2);
|
||||
}
|
||||
|
||||
function _fun33169(a0) { // fn#33169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5079, offset: 0x010293f4, size: 100 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var r0;
|
||||
var value;
|
||||
var binding;
|
||||
var Promise;
|
||||
var value2;
|
||||
var object2;
|
||||
var closure;
|
||||
var error;
|
||||
try {
|
||||
value = environment;
|
||||
binding = env0_0;
|
||||
value = binding(a0);
|
||||
var env0_0 = value;
|
||||
Promise = global.Promise;
|
||||
value2 = value instanceof Promise;
|
||||
if (value2) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
closure = then_33170;
|
||||
object2.then = closure;
|
||||
closure = function(a0) {
|
||||
return this;
|
||||
};
|
||||
object2.catch = closure;
|
||||
r0 = object2;
|
||||
}
|
||||
} catch (error) {
|
||||
var env0_1 = error;
|
||||
return {then: then_33172, catch: _catch_33173};
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun33175(a0, a1, a2) { // fn#33175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5345, offset: 0x010294ad, size: 388 bytes, params: 4, frame: 20
|
||||
var environment;
|
||||
var binding;
|
||||
var setState;
|
||||
var closure;
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
let Object = global.Object;
|
||||
const assign = Object.assign;
|
||||
const object2 = {};
|
||||
let value = environment.__proto__;
|
||||
object2.storage = createJSONStorage(function() {
|
||||
return global.localStorage;
|
||||
});
|
||||
object2.partialize = function(a0) {
|
||||
return a0;
|
||||
};
|
||||
object2.version = 0;
|
||||
object2.merge = function(a0, a1) {
|
||||
var Object = global.Object;
|
||||
return Object.assign({}, a1, a0);
|
||||
};
|
||||
const value2 = Reflect.apply(assign, Object, [object2, require]);
|
||||
const env0_2 = value2;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
Set = global.Set;
|
||||
set = new Set();
|
||||
if (value2.storage) {
|
||||
setState = a2.setState;
|
||||
a2.setState = function(a0, a1) {
|
||||
setState(a0, a1);
|
||||
return setItem_33180();
|
||||
};
|
||||
binding = env0_0;
|
||||
value = binding(_fun33182, a1, a2);
|
||||
a2.getInitialState = getInitialState;
|
||||
closure = hydrate;
|
||||
a2.persist = {setOptions: setOptions_33192, clearStorage: clearStorage, getOptions: getOptions_33194,
|
||||
rehydrate: rehydrate, hasHydrated: hasHydrated, onHydrate: onHydrate, onFinishHydration: onFinishHydration};
|
||||
if (!env0_2.skipHydration) {
|
||||
closure();
|
||||
}
|
||||
binding = env0_9;
|
||||
return binding || value;
|
||||
}
|
||||
return env0_0(_fun33179, a1, a2);
|
||||
}
|
||||
|
||||
function _fun33202() { // fn#33202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:7395, offset: 0x01029b1f, size: 52 bytes, params: 1, frame: 18
|
||||
const Object = global.Object;
|
||||
return Object.assign({}, env0_0, require.apply(undefined, arguments));
|
||||
}
|
||||
|
||||
function getItemParse(a0) { // fn#33140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4734, owner: createJSONStorage.getItem.parse, offset: 0x010285ef, size: 61 bytes, params: 2, frame: 16
|
||||
var r0;
|
||||
var JSON;
|
||||
var parse;
|
||||
var value2;
|
||||
let value = null;
|
||||
if (value === a0) {
|
||||
r0 = value;
|
||||
} else {
|
||||
JSON = global.JSON;
|
||||
parse = JSON.parse;
|
||||
value2 = environment.__proto__;
|
||||
value = undefined;
|
||||
value = Reflect.apply(parse, JSON, [a0, value == require ? value : require.reviver]);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function dispatch_33145(a0) { // fn#33145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:210, offset: 0x010286ee, size: 34 bytes, params: 2, frame: 15
|
||||
a0(_fun33146, false, a0);
|
||||
return a0;
|
||||
}
|
||||
|
||||
function setState_33154(a0, a1, a2) { // fn#33154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:1408, offset: 0x01028b65, size: 342 bytes, params: 4, frame: 25
|
||||
var r4;
|
||||
var r3;
|
||||
var anonymousActionTypeBinding;
|
||||
var findCallerNameBinding;
|
||||
var error;
|
||||
var storeBinding;
|
||||
var connectionBinding;
|
||||
var send;
|
||||
var Object;
|
||||
var assign;
|
||||
var value4;
|
||||
let value = a2;
|
||||
const value3 = env0_0(a0, a1);
|
||||
if (env0_8) {
|
||||
if (value === undefined) {
|
||||
anonymousActionTypeBinding = anonymousActionType;
|
||||
if (anonymousActionTypeBinding) {
|
||||
r3 = anonymousActionTypeBinding;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
findCallerNameBinding = findCallerName;
|
||||
error = new global.Error();
|
||||
error = findCallerNameBinding(error.stack);
|
||||
r3 = error;
|
||||
}
|
||||
r3 = !r3 ? 'anonymous' : r3;
|
||||
r4 = {type: r3};
|
||||
} else {
|
||||
r4 = typeof value !== 'string' ? value : {type: value};
|
||||
}
|
||||
storeBinding = store;
|
||||
if (storeBinding === undefined) {
|
||||
if (connection != null) {
|
||||
connection.send(r4, require());
|
||||
}
|
||||
} else {
|
||||
connectionBinding = connection;
|
||||
if (connectionBinding != null) {
|
||||
connectionBinding = connection;
|
||||
send = connectionBinding.send;
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
storeBinding = store;
|
||||
value = Reflect.apply(assign, Object, [{}, r4, {type: '' + storeBinding + '/' + r4.type}]);
|
||||
Object = global.Object;
|
||||
assign = Object.assign;
|
||||
value4 = environment.__proto__.__proto__;
|
||||
Reflect.apply(send, connectionBinding, [value, Reflect.apply(assign, Object, [{},
|
||||
getTrackedConnectionState(env0_5.name), env2_0({}, storeBinding, importDefault.getState())])]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value3;
|
||||
}
|
||||
|
||||
function cleanup_33155() { // fn#33155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:1723, offset: 0x01028cbb, size: 148 bytes, params: 1, frame: 14
|
||||
var value3;
|
||||
var stores;
|
||||
var Object;
|
||||
var keys;
|
||||
if (connection && typeof connection.unsubscribe === 'function') {
|
||||
connection.unsubscribe();
|
||||
}
|
||||
const name = env0_5.name;
|
||||
const storeBinding = store;
|
||||
if (storeBinding !== undefined) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value3 = env2_5.get(name);
|
||||
if (value3) {
|
||||
stores = value3.stores;
|
||||
delete stores[storeBinding];
|
||||
Object = global.Object;
|
||||
keys = Object.keys;
|
||||
stores = value3.stores;
|
||||
if (Reflect.apply(keys, Object, [stores]).length === 0) {
|
||||
env2_5.delete(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function setStateFromDevtools() { // fn#33156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:1963, offset: 0x01028d4f, size: 40 bytes, params: 1, frame: 16
|
||||
env0_0.apply(undefined, arguments);
|
||||
}
|
||||
|
||||
function _fun33157(a0) { // fn#33157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:2188, offset: 0x01028d77, size: 81 bytes, params: 2, frame: 14
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = env2_2(a0, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
const items2 = [property];
|
||||
items2[1] = property === env0_7.store ? env0_10 : property2.getState();
|
||||
return items2;
|
||||
}
|
||||
|
||||
function dispatch_33158() { // fn#33158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:2353, offset: 0x01028dc8, size: 82 bytes, params: 1, frame: 15
|
||||
var r1;
|
||||
var value5;
|
||||
const length = arguments.length;
|
||||
const Array = global.Array;
|
||||
const array = new Array(length);
|
||||
const value4 = 0;
|
||||
if (value4 < length) {
|
||||
for (r1 = value4; true; r1 = value5) {
|
||||
array[r1] = arguments[r1];
|
||||
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
||||
if (!(value5 < length)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
dispatch.apply(undefined, array);
|
||||
}
|
||||
|
||||
function _fun33159(a0) { // fn#33159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:2475, offset: 0x01028e1a, size: 643 bytes, params: 2, frame: 19
|
||||
var environment;
|
||||
var state;
|
||||
var r2;
|
||||
var r0;
|
||||
var payload;
|
||||
var value;
|
||||
var nextLiftedState;
|
||||
var property;
|
||||
var setStateFromDevtoolsBinding;
|
||||
var storeBinding;
|
||||
var connectionBinding;
|
||||
var parseJsonThenBinding;
|
||||
var value4;
|
||||
var value6;
|
||||
let type = a0.type;
|
||||
if (type === 'ACTION') {
|
||||
payload = a0.payload;
|
||||
if (typeof payload !== 'string') {
|
||||
global.console.error('[zustand devtools middleware] Unsupported action format');
|
||||
r0 = undefined;
|
||||
} else {
|
||||
value = environment.__proto__.__proto__;
|
||||
parseJsonThenBinding = parseJsonThen;
|
||||
payload = a0.payload;
|
||||
value = undefined;
|
||||
parseJsonThenBinding(payload, _fun33160);
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
if (type === 'DISPATCH') {
|
||||
type = a0.payload.type;
|
||||
if (type === 'RESET') {
|
||||
setStateFromDevtoolsBinding = setStateFromDevtools;
|
||||
value6 = undefined;
|
||||
setStateFromDevtoolsBinding(env0_10);
|
||||
return value6 === store ? connection == null ? value6 : connection.init(importDefault.getState()) : connection == null ? value6 : connection.init(getTrackedConnectionState(env0_5.name));
|
||||
}
|
||||
if (type === 'COMMIT') {
|
||||
storeBinding = store;
|
||||
value4 = undefined;
|
||||
if (value4 === storeBinding) {
|
||||
connectionBinding = connection;
|
||||
if (connectionBinding == null) {
|
||||
r2 = value4;
|
||||
} else {
|
||||
connectionBinding = connection;
|
||||
connectionBinding.init(importDefault.getState());
|
||||
r2 = value4;
|
||||
}
|
||||
} else {
|
||||
r2 = connection == null ? value4 : connection.init(getTrackedConnectionState(env0_5.name));
|
||||
}
|
||||
return r2;
|
||||
}
|
||||
if (type === 'ROLLBACK') {
|
||||
value = environment.__proto__.__proto__;
|
||||
parseJsonThen(a0.state, _fun33161);
|
||||
return undefined;
|
||||
}
|
||||
if (type === 'JUMP_TO_STATE') {
|
||||
value = environment.__proto__.__proto__;
|
||||
parseJsonThen(a0.state, function(a0) {
|
||||
var JSON;
|
||||
var value2;
|
||||
if (store !== undefined) {
|
||||
JSON = global.JSON;
|
||||
value2 = JSON.stringify(importDefault.getState());
|
||||
JSON = global.JSON;
|
||||
if (value2 !== JSON.stringify(a0[store])) {
|
||||
setStateFromDevtools(a0[store]);
|
||||
}
|
||||
} else {
|
||||
setStateFromDevtools(a0);
|
||||
}
|
||||
});
|
||||
return undefined;
|
||||
}
|
||||
if (type === 'JUMP_TO_ACTION') {
|
||||
value = environment.__proto__.__proto__;
|
||||
parseJsonThen(a0.state, _fun33162);
|
||||
return undefined;
|
||||
}
|
||||
if (type === 'IMPORT_STATE') {
|
||||
nextLiftedState = a0.payload.nextLiftedState;
|
||||
value = nextLiftedState.computedStates.slice(-1);
|
||||
property = value[0];
|
||||
value = undefined;
|
||||
state = property == null ? value : property.state;
|
||||
if (state) {
|
||||
setStateFromDevtools(value === store ? state : state[store]);
|
||||
if (connection != null) {
|
||||
connection.send(null, nextLiftedState);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
if (type === 'PAUSE_RECORDING') {
|
||||
return !env0_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function subscribe_33166(a0, a1, a2) { // fn#33166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4400, offset: 0x0102931c, size: 146 bytes, params: 4, frame: 18
|
||||
var r0;
|
||||
var r2;
|
||||
var value2;
|
||||
var closure;
|
||||
var binding;
|
||||
const value = a0;
|
||||
const env0_1 = a1;
|
||||
if (a1) {
|
||||
value2 = undefined;
|
||||
r0 = (a2 == null ? value2 : a2.equalityFn) || global.Object.is;
|
||||
var env0_3 = value(importDefault.getState());
|
||||
closure = subscribe_33166Listener;
|
||||
if (a2 == null ? value2 : a2.fireImmediately) {
|
||||
binding = env0_3;
|
||||
a1(binding, binding);
|
||||
r2 = closure;
|
||||
} else {
|
||||
r2 = closure;
|
||||
}
|
||||
} else {
|
||||
r2 = value;
|
||||
}
|
||||
return subscribe(r2);
|
||||
}
|
||||
|
||||
function then_33170(a0) { // fn#33170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5142, offset: 0x01029458, size: 31 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return toThenable(a0)(env0_0);
|
||||
}
|
||||
|
||||
function _catch_33173(a0) { // fn#33173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5271, offset: 0x01029477, size: 31 bytes, params: 2, frame: 11
|
||||
const value = environment.__proto__.__proto__;
|
||||
return toThenable(a0)(env0_1);
|
||||
}
|
||||
|
||||
function _fun33179() { // fn#33179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5610, offset: 0x0102965b, size: 82 bytes, params: 1, frame: 18
|
||||
const console = global.console;
|
||||
console.warn("[zustand persist middleware] Unable to update item '" + env0_2.name + "', the given storage is currently unavailable.");
|
||||
env0_0.apply(undefined, arguments);
|
||||
}
|
||||
|
||||
function setItem_33180() { // fn#33180, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5784, offset: 0x010296ad, size: 97 bytes, params: 1, frame: 16
|
||||
const binding = env0_2;
|
||||
const partialize = binding.partialize;
|
||||
const Object = global.Object;
|
||||
const value2 = Reflect.apply(partialize, binding, [Object.assign({}, require())]);
|
||||
const storageBinding = storage;
|
||||
return storageBinding.setItem(env0_2.name, {state: value2, version: env0_2.version});
|
||||
}
|
||||
|
||||
function _fun33182() { // fn#33182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:5967, offset: 0x0102972d, size: 34 bytes, params: 1, frame: 15
|
||||
env0_0.apply(undefined, arguments);
|
||||
return setItem_33180();
|
||||
}
|
||||
|
||||
function hydrate() { // fn#33184, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6067, offset: 0x01029758, size: 219 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var value4;
|
||||
var toThenableBinding;
|
||||
var getItem;
|
||||
var value;
|
||||
if (storage) {
|
||||
env0_4.forEach(_fun33185);
|
||||
if (env0_2.onRehydrateStorage?.call(env0_2, require() ?? env0_10)) {
|
||||
}
|
||||
value4 = environment.__proto__.__proto__;
|
||||
toThenableBinding = toThenable;
|
||||
getItem = storage.getItem;
|
||||
value = toThenableBinding(getItem.bind(storage))(env0_2.name);
|
||||
value = value.then(_fun33186);
|
||||
value = value.then(_fun33188);
|
||||
value = value.then(_fun33189);
|
||||
return value.catch(_fun33191);
|
||||
}
|
||||
}
|
||||
|
||||
function setOptions_33192(a0) { // fn#33192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6892, offset: 0x01029a1b, size: 59 bytes, params: 2, frame: 16
|
||||
const Object = global.Object;
|
||||
env0_2 = Object.assign({}, env0_2, a0);
|
||||
let storage = a0.storage;
|
||||
if (storage) {
|
||||
storage = a0.storage;
|
||||
}
|
||||
}
|
||||
|
||||
function clearStorage() { // fn#33193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6978, offset: 0x01029a56, size: 41 bytes, params: 1, frame: 11
|
||||
let storageBinding = storage;
|
||||
if (storageBinding != null) {
|
||||
storageBinding = storage;
|
||||
storageBinding.removeItem(env0_2.name);
|
||||
}
|
||||
}
|
||||
|
||||
function onHydrate(a0) { // fn#33197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:7174, offset: 0x01029a8e, size: 33 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
env0_4.add(a0);
|
||||
return _fun33198;
|
||||
}
|
||||
|
||||
function onFinishHydration(a0) { // fn#33199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:7255, offset: 0x01029acb, size: 33 bytes, params: 2, frame: 12
|
||||
const env0_0 = a0;
|
||||
env0_5.add(a0);
|
||||
return _fun33200;
|
||||
}
|
||||
|
||||
function _fun33146(a0) { // fn#33146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:232, offset: 0x01028710, size: 27 bytes, params: 2, frame: 13
|
||||
return env2_0(a0, env0_0);
|
||||
}
|
||||
|
||||
function _fun33160(a0) { // fn#33160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:2645, offset: 0x0102909d, size: 253 bytes, params: 2, frame: 17
|
||||
var value;
|
||||
var state;
|
||||
if (a0.type !== '__setState') {
|
||||
value = environment.__proto__;
|
||||
if (importDefault.dispatchFromDevtools && typeof importDefault.dispatch === 'function') {
|
||||
importDefault.dispatch(a0);
|
||||
}
|
||||
} else {
|
||||
if (store === undefined) {
|
||||
setStateFromDevtools(a0.state);
|
||||
return undefined;
|
||||
}
|
||||
var Object = global.Object;
|
||||
var keys = Object.keys;
|
||||
state = a0.state;
|
||||
if (Reflect.apply(keys, Object, [state]).length !== 1) {
|
||||
global.console.error('\n [zustand devtools middleware] Unsupported __setState action format.\n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');
|
||||
}
|
||||
state = a0.state;
|
||||
var property = state[store];
|
||||
if (property == null) {
|
||||
return undefined;
|
||||
}
|
||||
var JSON = global.JSON;
|
||||
var stringify = JSON.stringify;
|
||||
var getState = importDefault.getState;
|
||||
var value2 = Reflect.apply(stringify, JSON, [Reflect.apply(getState, importDefault, [])]);
|
||||
JSON = global.JSON;
|
||||
stringify = JSON.stringify;
|
||||
if (value2 !== Reflect.apply(stringify, JSON, [property])) {
|
||||
setStateFromDevtools(property);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33161(a0) { // fn#33161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:3643, offset: 0x0102919a, size: 136 bytes, params: 2, frame: 15
|
||||
var connectionBinding;
|
||||
var init;
|
||||
var value2;
|
||||
if (store === undefined) {
|
||||
setStateFromDevtools(a0);
|
||||
connectionBinding = connection;
|
||||
if (connectionBinding != null) {
|
||||
connectionBinding = connection;
|
||||
connectionBinding.init(importDefault.getState());
|
||||
}
|
||||
} else {
|
||||
setStateFromDevtools(a0[store]);
|
||||
connectionBinding = connection;
|
||||
if (connectionBinding != null) {
|
||||
connectionBinding = connection;
|
||||
init = connectionBinding.init;
|
||||
value2 = environment.__proto__.__proto__.__proto__;
|
||||
Reflect.apply(init, connectionBinding, [getTrackedConnectionState(env1_5.name)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33162(a0) { // fn#33162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:3814, offset: 0x01029222, size: 108 bytes, params: 2, frame: 16
|
||||
var JSON;
|
||||
var value2;
|
||||
if (store !== undefined) {
|
||||
JSON = global.JSON;
|
||||
value2 = JSON.stringify(importDefault.getState());
|
||||
JSON = global.JSON;
|
||||
if (value2 !== JSON.stringify(a0[store])) {
|
||||
setStateFromDevtools(a0[store]);
|
||||
}
|
||||
} else {
|
||||
setStateFromDevtools(a0);
|
||||
}
|
||||
}
|
||||
|
||||
function subscribe_33166Listener(a0) { // fn#33167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:4497, owner: subscribe_33166.listener, offset: 0x010293ae, size: 54 bytes, params: 2, frame: 14
|
||||
const value2 = env0_0(a0);
|
||||
if (!env0_2(env0_3, value2)) {
|
||||
require(value2, env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33185(a0) { // fn#33185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6116, offset: 0x01029833, size: 33 bytes, params: 2, frame: 12
|
||||
return a0(require() ?? env1_10);
|
||||
}
|
||||
|
||||
function _fun33186(a0) { // fn#33186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6289, offset: 0x01029854, size: 205 bytes, params: 2, frame: 14
|
||||
var environment;
|
||||
var r0;
|
||||
var version;
|
||||
var value;
|
||||
var binding;
|
||||
if (a0) {
|
||||
version = a0.version;
|
||||
if (typeof version !== 'number') {
|
||||
return [false, a0.state];
|
||||
}
|
||||
version = a0.version;
|
||||
value = environment.__proto__;
|
||||
if (version === env1_2.version) {
|
||||
return [false, a0.state];
|
||||
}
|
||||
if (env1_2.migrate) {
|
||||
binding = env1_2;
|
||||
value = binding.migrate(a0.state, a0.version);
|
||||
if (value instanceof global.Promise) {
|
||||
value = value.then(function(a0) {
|
||||
return [true, a0];
|
||||
});
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = [true, value];
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
global.console.error("State loaded from storage couldn't be migrated since no migrate function was provided");
|
||||
}
|
||||
return [false, undefined];
|
||||
}
|
||||
|
||||
function _fun33188(a0) { // fn#33188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6629, offset: 0x01029934, size: 102 bytes, params: 2, frame: 17
|
||||
let value = environment.__proto__.__proto__.__proto__;
|
||||
value = env3_2(a0, 2);
|
||||
const property = value[0];
|
||||
const property2 = value[1];
|
||||
value = environment.__proto__;
|
||||
const binding = env1_2;
|
||||
env1_0(binding.merge(property2, require() ?? env1_10), true);
|
||||
if (property) {
|
||||
return setItem_33180();
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33189() { // fn#33189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6734, offset: 0x0102999a, size: 78 bytes, params: 1, frame: 13
|
||||
var environment;
|
||||
var binding;
|
||||
if (env0_0 != null) {
|
||||
binding = env0_0;
|
||||
value = environment.__proto__;
|
||||
binding(env1_9, undefined);
|
||||
}
|
||||
env1_9 = require();
|
||||
env1_5.forEach(_fun33190);
|
||||
}
|
||||
|
||||
function _fun33191(a0) { // fn#33191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6825, offset: 0x010299fb, size: 32 bytes, params: 2, frame: 12
|
||||
if (env0_0 != null) {
|
||||
env0_0(undefined, a0);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun33198() { // fn#33198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:7212, offset: 0x01029aaf, size: 28 bytes, params: 1, frame: 11
|
||||
env1_4.delete(env0_0);
|
||||
}
|
||||
|
||||
function _fun33190(a0) { // fn#33190, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4183:6788, offset: 0x010299e8, size: 19 bytes, params: 2, frame: 11
|
||||
return a0(env2_9);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user