Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+237
View File
@@ -0,0 +1,237 @@
/* Metro module 1691; source: unknown; dependencies: [1614, 1650] */
function _fun18438(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18438, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:6, offset: 0x00e8c449, size: 118 bytes, params: 8, frame: 16
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: "function withSequence_Pnpm_sequenceTs1(_reduceMotionOrFirstAnimation,..._animations){const{logger,defineAnimation,getReduceMotionForAnimation}=this.__closure;let reduceMotion;if(_reduceMotionOrFirstAnimation){if(typeof _reduceMotionOrFirstAnimation==='string'){reduceMotion=_reduceMotionOrFirstAnimation;}else{_animations.unshift(_reduceMotionOrFirstAnimation);}}if(_animations.length===0){logger.warn('No animation was provided for the sequence');return defineAnimation(0,function(){'worklet';return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}return defineAnimation(_animations[0],function(){'worklet';const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(index<animations.length-1&&animations[index].reduceMotion){index++;}return index;}const callback=function(finished){if(finished){return;}animations.forEach(function(animation){if(typeof animation.callback==='function'&&!animation.finished){animation.callback(finished);}});};function sequence(animation,now){const currentAnim=animations[animation.animationIndex];const finished=currentAnim.onFrame(currentAnim,now);animation.current=currentAnim.current;if(finished){if(currentAnim.callback){currentAnim.callback(true);}currentAnim.finished=true;animation.animationIndex=findNextNonReducedMotionAnimationIndex(animation.animationIndex+1);if(animation.animationIndex<animations.length){const nextAnim=animations[animation.animationIndex];nextAnim.onStart(nextAnim,currentAnim.current,now,currentAnim);return false;}return true;}return false;}function onStart(animation,value,now,previousAnimation){animations.forEach(function(anim){if(anim.reduceMotion===undefined){anim.reduceMotion=animation.reduceMotion;}});animation.animationIndex=findNextNonReducedMotionAnimationIndex(0);if(previousAnimation===undefined){previousAnimation=animations[animations.length-1];}const currentAnimation=animations[animation.animationIndex];currentAnimation.onStart(currentAnimation,value,now,previousAnimation);}return{isHigherOrder:true,onFrame:sequence,onStart:onStart,animationIndex:0,current:animations[0].current,callback:callback,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}"};
object = {code: 'function pnpm_sequenceTs2(){const{getReduceMotionForAnimation,reduceMotion}=this.__closure;return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}'};
object = {code: "function pnpm_sequenceTs3(){const{_animations,getReduceMotionForAnimation,reduceMotion}=this.__closure;const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(index<animations.length-1&&animations[index].reduceMotion){index++;}return index;}const callback=function(finished){if(finished){return;}animations.forEach(function(animation){if(typeof animation.callback==='function'&&!animation.finished){animation.callback(finished);}});};function sequence(animation,now){const currentAnim=animations[animation.animationIndex];const finished=currentAnim.onFrame(currentAnim,now);animation.current=currentAnim.current;if(finished){if(currentAnim.callback){currentAnim.callback(true);}currentAnim.finished=true;animation.animationIndex=findNextNonReducedMotionAnimationIndex(animation.animationIndex+1);if(animation.animationIndex<animations.length){const nextAnim=animations[animation.animationIndex];nextAnim.onStart(nextAnim,currentAnim.current,now,currentAnim);return false;}return true;}return false;}function onStart(animation,value,now,previousAnimation){animations.forEach(function(anim){if(anim.reduceMotion===undefined){anim.reduceMotion=animation.reduceMotion;}});animation.animationIndex=findNextNonReducedMotionAnimationIndex(0);if(previousAnimation===undefined){previousAnimation=animations[animations.length-1];}const currentAnimation=animations[animation.animationIndex];currentAnimation.onStart(currentAnimation,value,now,previousAnimation);}return{isHigherOrder:true,onFrame:sequence,onStart:onStart,animationIndex:0,current:animations[0].current,callback:callback,reduceMotion:getReduceMotionForAnimation(reduceMotion)};}"};
exports.withSequence = _fun18439();
}
function _fun18439() { // fn#18439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:4590, offset: 0x00e8c4bf, size: 121 bytes, params: 1, frame: 16
const closure = withSequence;
const object2 = {};
object2.logger = (require(1614) /* metro dependency 1614 */).logger;
object2.defineAnimation = (require(1650) /* metro dependency 1650 */).defineAnimation;
const getReduceMotionForAnimation = (require(1650) /* metro dependency 1650 */).getReduceMotionForAnimation;
object2.getReduceMotionForAnimation = getReduceMotionForAnimation;
closure.__closure = object2;
closure.__workletHash = 4184395270838;
closure.__initData = env0_2;
return closure;
}
function withSequence(a0) { // fn#18440, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:4607, offset: 0x00e8c538, size: 385 bytes, params: 2, frame: 23
var environment;
var r0;
var r7;
var value6;
var value9;
var value10;
var unshift;
var moduleValue;
var defineAnimation;
var property;
var closure;
var object2;
var moduleValue2;
let value = a0;
const value2 = undefined;
const length = arguments.length;
const Array = global.Array;
const value4 = 1;
const value5 = 0;
reducibleJoin2: while (true) {
if (length > value4) {
value6 = length - value4;
r0 = value6;
break reducibleJoin2;
}
r0 = value5;
break reducibleJoin2;
}
const array = new Array();
if (value4 < length) {
r0 = value4;
reducibleLoop3: while (true) {
value9 = r0 - value4;
array[value9] = arguments[r0];
value10 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (value10 < length) {
r0 = value10;
continue reducibleLoop3;
}
break reducibleLoop3;
}
}
reducibleJoin9: while (true) {
if (value) {
if (typeof value === 'string') {
var env0_1 = value;
r0 = value;
} else {
unshift = array.unshift;
Reflect.apply(unshift, array, [value]);
r0 = value2;
}
r7 = r0;
break reducibleJoin9;
}
r7 = value2;
break reducibleJoin9;
}
if (value5 === array.length) {
value = environment.__proto__;
require(dependencyMap[value5]).logger.warn('No animation was provided for the sequence');
moduleValue2 = require(dependencyMap[value4]);
defineAnimation = moduleValue2.defineAnimation;
closure = pnpm_sequenceTs2;
object2 = {};
object2.getReduceMotionForAnimation = require(dependencyMap[value4]).getReduceMotionForAnimation;
object2.reduceMotion = r7;
closure.__closure = object2;
closure.__workletHash = 3306563388298;
closure.__initData = env1_3;
value = Reflect.apply(defineAnimation, moduleValue2, [value5, closure]);
r0 = value;
} else {
value = environment.__proto__;
moduleValue = require(dependencyMap[value4]);
defineAnimation = moduleValue.defineAnimation;
property = array[value5];
closure = pnpm_sequenceTs3;
object2 = {_animations: array};
object2.getReduceMotionForAnimation = require(dependencyMap[value4]).getReduceMotionForAnimation;
object2.reduceMotion = r7;
closure.__closure = object2;
closure.__workletHash = 13427604040510;
closure.__initData = env1_4;
value = Reflect.apply(defineAnimation, moduleValue, [property, closure]);
r0 = value;
}
return r0;
}
function pnpm_sequenceTs2() { // fn#18441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:4882, owner: withSequence.pnpm_sequenceTs2, offset: 0x00e8c6b9, size: 85 bytes, params: 1, frame: 12
var environment;
const object2 = {onStart: function(a0, a1) {
a0.current = a1;
return a1;
}, onFrame: function() {
return true;
}, current: 0, animationIndex: 0};
const value = environment.__proto__.__proto__;
object2.reduceMotion = (require(1650) /* metro dependency 1650 */).getReduceMotionForAnimation(env0_1);
return object2;
}
function pnpm_sequenceTs3() { // fn#18444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:5260, owner: withSequence.pnpm_sequenceTs3, offset: 0x00e8c71c, size: 143 bytes, params: 1, frame: 14
const value2 = env0_0.map(function(a0) {
var r0;
var value = a0;
if (typeof value !== 'function') {
r0 = value;
} else {
value = value();
r0 = value;
}
r0.finished = false;
return r0;
});
const object2 = {isHigherOrder: true, onFrame: onFrame, onStart: onStart_18448, animationIndex: 0};
object2.current = value2[0].current;
object2.callback = callback_18450;
object2.reduceMotion = (require(1650) /* metro dependency 1650 */).getReduceMotionForAnimation(env0_1);
return object2;
}
function findNextNonReducedMotionAnimationIndex(a0) { // fn#18445, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:5372, owner: withSequence.pnpm_sequenceTs3.findNextNonReducedMotionAnimationIndex, offset: 0x00e8c7ab, size: 100 bytes, params: 2, frame: 6
var r2;
var r0;
var reduceMotion;
let value = a0;
let length = env0_0.length;
if (value < length - 1) {
reduceMotion = env0_0[value].reduceMotion;
if (reduceMotion) {
r2 = value;
while (true) {
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = env0_0.length;
if (!(value < length - 1)) {
r0 = value;
break;
}
reduceMotion = env0_0[value].reduceMotion;
if (reduceMotion) {
r2 = value;
continue;
}
r0 = value;
break;
}
} else {
r0 = value;
}
} else {
r0 = value;
}
return r0;
}
function pnpm_sequenceTs3OnFrame(a0, a1) { // fn#18447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:5506, owner: withSequence.pnpm_sequenceTs3.onFrame, offset: 0x00e8c830, size: 179 bytes, params: 3, frame: 19
var findNextNonReducedMotionAnimationIndexBinding;
var property2;
const binding = env0_0;
let animationIndex = a0.animationIndex;
const property = binding[animationIndex];
const value2 = property.onFrame(property, a1);
a0.current = property.current;
if (value2) {
if (property.callback) {
property.callback(true);
}
property.finished = true;
findNextNonReducedMotionAnimationIndexBinding = findNextNonReducedMotionAnimationIndex;
animationIndex = a0.animationIndex;
a0.animationIndex = findNextNonReducedMotionAnimationIndexBinding(animationIndex + 1);
animationIndex = a0.animationIndex;
if (animationIndex < env0_0.length) {
property2 = env0_0[a0.animationIndex];
property2.onStart(property2, property.current, a1, property);
return false;
}
return true;
}
return false;
}
function pnpm_sequenceTs3OnStart(a0, a1, a2, a3) { // fn#18448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:5835, owner: withSequence.pnpm_sequenceTs3.onStart, offset: 0x00e8c8e3, size: 118 bytes, params: 5, frame: 18
const value = a3;
const env0_0 = a0;
env0_0.forEach(_fun18449);
a0.animationIndex = findNextNonReducedMotionAnimationIndex(0);
const r5 = value !== undefined ? value : env0_0[env0_0.length - 1];
const property = env0_0[a0.animationIndex];
property.onStart(property, a1, a2, r5);
}
function pnpm_sequenceTs3Callback(a0) { // fn#18450, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:6126, owner: withSequence.pnpm_sequenceTs3.callback, offset: 0x00e8c97d, size: 38 bytes, params: 2, frame: 11
if (!a0) {
a0.forEach(_fun18451);
}
}
function _fun18449(a0) { // fn#18449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:5872, offset: 0x00e8c959, size: 36 bytes, params: 2, frame: 3
if (a0.reduceMotion === undefined) {
a0.reduceMotion = env0_0.reduceMotion;
}
}
function _fun18451(a0) { // fn#18451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1818:6161, offset: 0x00e8c9a3, size: 54 bytes, params: 2, frame: 11
if (!(typeof a0.callback !== 'function' || a0.finished)) {
a0.callback(env0_0);
}
}