Files
2026-07-28 01:06:53 +03:00

352 lines
20 KiB
JavaScript

/* Metro module 1663; source: unknown; dependencies: [1621] */
function _fun18306(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18306, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:6, offset: 0x00e84ff8, size: 337 bytes, params: 8, frame: 16
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: 'function A_Pnpm_BezierTs1(aA1,aA2){return 1.0-3.0*aA2+3.0*aA1;}'};
const env0_3 = _fun18307();
object = {code: 'function B_Pnpm_BezierTs2(aA1,aA2){return 3.0*aA2-6.0*aA1;}'};
const env0_5 = _fun18309();
object = {code: 'function C_Pnpm_BezierTs3(aA1){return 3.0*aA1;}'};
const env0_7 = _fun18311();
object = {code: 'function calcBezier_Pnpm_BezierTs4(aT,aA1,aA2){const{A,B,C}=this.__closure;return((A(aA1,aA2)*aT+B(aA1,aA2))*aT+C(aA1))*aT;}'};
const env0_9 = _fun18313();
object = {code: 'function getSlope_Pnpm_BezierTs5(aT,aA1,aA2){const{A,B,C}=this.__closure;return 3.0*A(aA1,aA2)*aT*aT+2.0*B(aA1,aA2)*aT+C(aA1);}'};
const env0_11 = _fun18315();
object = {code: 'function binarySubdivide_Pnpm_BezierTs6(aX,aA,aB,mX1,mX2){const{calcBezier,SUBDIVISION_PRECISION,SUBDIVISION_MAX_ITERATIONS}=this.__closure;let currentX;let currentT;let i=0;do{currentT=aA+(aB-aA)/2.0;currentX=calcBezier(currentT,mX1,mX2)-aX;if(currentX>0.0){aB=currentT;}else{aA=currentT;}}while(Math.abs(currentX)>SUBDIVISION_PRECISION&&++i<SUBDIVISION_MAX_ITERATIONS);return currentT;}'};
const env0_13 = _fun18317();
object = {code: 'function newtonRaphsonIterate_Pnpm_BezierTs7(aX,aGuessT,mX1,mX2){const{NEWTON_ITERATIONS,getSlope,calcBezier}=this.__closure;for(let i=0;i<NEWTON_ITERATIONS;++i){const currentSlope=getSlope(aGuessT,mX1,mX2);if(currentSlope===0.0){return aGuessT;}const currentX=calcBezier(aGuessT,mX1,mX2)-aX;aGuessT-=currentX/currentSlope;}return aGuessT;}'};
const env0_15 = _fun18319();
object = {code: "function Bezier_Pnpm_BezierTs8(mX1,mY1,mX2,mY2){const{kSplineTableSize,calcBezier,kSampleStepSize,getSlope,NEWTON_MIN_SLOPE,newtonRaphsonIterate,binarySubdivide}=this.__closure;function LinearEasing(x){'worklet';return x;}if(!(mX1>=0&&mX1<=1&&mX2>=0&&mX2<=1)){throw new ReanimatedError('Bezier x values must be in [0, 1] range.');}if(mX1===mY1&&mX2===mY2){return LinearEasing;}const sampleValues=new Array(kSplineTableSize);for(let i=0;i<kSplineTableSize;++i){sampleValues[i]=calcBezier(i*kSampleStepSize,mX1,mX2);}function getTForX(aX){'worklet';let intervalStart=0.0;let currentSample=1;const lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&sampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize;}--currentSample;const dist=(aX-sampleValues[currentSample])/(sampleValues[currentSample+1]-sampleValues[currentSample]);const guessForT=intervalStart+dist*kSampleStepSize;const initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}return function Bezier_Pnpm_BezierTs8(x){'worklet';if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);};}"};
object = {code: 'function LinearEasing_Pnpm_BezierTs9(x){return x;}'};
object = {code: 'function getTForX_Pnpm_BezierTs10(aX){const{kSplineTableSize,sampleValues,kSampleStepSize,getSlope,mX1,mX2,NEWTON_MIN_SLOPE,newtonRaphsonIterate,binarySubdivide}=this.__closure;let intervalStart=0.0;let currentSample=1;const lastSample=kSplineTableSize-1;for(;currentSample!==lastSample&&sampleValues[currentSample]<=aX;++currentSample){intervalStart+=kSampleStepSize;}--currentSample;const dist=(aX-sampleValues[currentSample])/(sampleValues[currentSample+1]-sampleValues[currentSample]);const guessForT=intervalStart+dist*kSampleStepSize;const initialSlope=getSlope(guessForT,mX1,mX2);if(initialSlope>=NEWTON_MIN_SLOPE){return newtonRaphsonIterate(aX,guessForT,mX1,mX2);}else if(initialSlope===0.0){return guessForT;}else{return binarySubdivide(aX,intervalStart,intervalStart+kSampleStepSize,mX1,mX2);}}'};
object = {code: 'function BezierEasing_Pnpm_BezierTs11(x){const{mX1,mY1,mX2,mY2,calcBezier,getTForX}=this.__closure;if(mX1===mY1&&mX2===mY2){return x;}if(x===0){return 0;}if(x===1){return 1;}return calcBezier(getTForX(x),mY1,mY2);}'};
exports.Bezier = _fun18321();
function _fun18307() { // fn#18307, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:186, offset: 0x00e85149, size: 46 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
return 1 - 3 * a1 + 3 * a0;
};
closure.__closure = {};
closure.__workletHash = 6646411187233;
closure.__initData = env0_2;
return closure;
}
function _fun18309() { // fn#18309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:382, offset: 0x00e85177, size: 46 bytes, params: 1, frame: 2
const closure = function(a0, a1) {
return 3 * a1 - 6 * a0;
};
closure.__closure = {};
closure.__workletHash = 4657056619296;
closure.__initData = env0_4;
return closure;
}
function _fun18311() { // fn#18311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:564, offset: 0x00e851a5, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
return 3 * a0;
};
closure.__closure = {};
closure.__workletHash = 10558087844899;
closure.__initData = env0_6;
return closure;
}
function _fun18313() { // fn#18313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:817, offset: 0x00e851d3, size: 73 bytes, params: 1, frame: 4
const calcBezier_183142 = calcBezier_18314;
calcBezier_183142.__closure = {A: env0_3, B: env0_5, C: env0_7};
calcBezier_183142.__workletHash = 6436686649451;
calcBezier_183142.__initData = env0_8;
return calcBezier_183142;
function calcBezier_18314(a0, a1, a2) { // fn#18314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:834, offset: 0x00e8521c, size: 65 bytes, params: 4, frame: 16
return ((env1_3(a1, a2) * a0 + env1_5(a1, a2)) * a0 + env1_7(a1)) * a0;
}
}
function _fun18315() { // fn#18315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:1121, offset: 0x00e8525d, size: 73 bytes, params: 1, frame: 4
const getSlope_183162 = getSlope_18316;
getSlope_183162.__closure = {A: env0_3, B: env0_5, C: env0_7};
getSlope_183162.__workletHash = 7144143660854;
getSlope_183162.__initData = env0_10;
return getSlope_183162;
function getSlope_18316(a0, a1, a2) { // fn#18316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:1138, offset: 0x00e852a6, size: 79 bytes, params: 4, frame: 16
const value = environment.__proto__;
return 3 * env1_3(a1, a2) * a0 * a0 + 2 * env1_5(a1, a2) * a0 + env1_7(a1);
}
}
function _fun18317() { // fn#18317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:1685, offset: 0x00e852f5, size: 68 bytes, params: 1, frame: 4
const binarySubdivide2 = binarySubdivide;
binarySubdivide2.__closure = {'calcBezier': null, 'SUBDIVISION_PRECISION': 0.0000001,
'SUBDIVISION_MAX_ITERATIONS': 10, calcBezier: env0_9};
binarySubdivide2.__workletHash = 16502327865282;
binarySubdivide2.__initData = env0_12;
return binarySubdivide2;
function binarySubdivide(a0, a1, a2, a3, a4) { // fn#18318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:1702, offset: 0x00e85339, size: 115 bytes, params: 6, frame: 28
var r14;
var binding;
var value5;
var Math;
var abs;
var value6;
let value = a1;
const value2 = a2;
const value3 = 0;
let r1 = value3;
let r11 = value2;
let r12 = value;
while (true) {
binding = env1_9;
value = r12 + (r11 - r12) / 2;
value5 = binding(value, a3, a4) - a0;
if (value5 > value3) {
r11 = value;
r14 = r12;
} else {
r14 = value;
}
Math = global.Math;
abs = Math.abs;
if (Reflect.apply(abs, Math, [value5]) > 0.0000001) {
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (value6 < 10) {
r1 = value6;
r12 = r14;
continue;
}
break;
}
break;
}
return value;
}
}
function _fun18319() { // fn#18319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:2325, offset: 0x00e853ac, size: 74 bytes, params: 1, frame: 4
const newtonRaphsonIterate2 = newtonRaphsonIterate;
newtonRaphsonIterate2.__closure = {NEWTON_ITERATIONS: 4, getSlope: env0_11, calcBezier: env0_9};
newtonRaphsonIterate2.__workletHash = 13998382484908;
newtonRaphsonIterate2.__initData = env0_14;
return newtonRaphsonIterate2;
function newtonRaphsonIterate(a0, a1, a2, a3) { // fn#18320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:2342, offset: 0x00e853f6, size: 79 bytes, params: 5, frame: 22
var value4;
let value = a1;
const value2 = 0;
let r2 = value2;
let r9 = value;
loopExit1: while (true) {
value = env1_11(r9, a2, a3);
if (value2 === value) {
return r9;
}
value = r9 - (env1_9(r9, a2, a3) - a0) / value;
value4 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value4 < 4) {
r2 = value4;
r9 = value;
continue;
}
break loopExit1;
}
return value;
}
}
function _fun18321() { // fn#18321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5040, offset: 0x00e85445, size: 96 bytes, params: 1, frame: 4
const Bezier2 = Bezier;
Bezier2.__closure = {'kSplineTableSize': 11, 'calcBezier': null, 'kSampleStepSize': 0.1, 'getSlope': null,
'NEWTON_MIN_SLOPE': 0.001, calcBezier: env0_9, getSlope: env0_11, newtonRaphsonIterate: env0_15,
binarySubdivide: env0_13};
Bezier2.__workletHash = 1707642440340;
Bezier2.__initData = env0_16;
return Bezier2;
function Bezier(a0, a1, a2, a3) { // fn#18322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5057, offset: 0x00e854a5, size: 302 bytes, params: 5, frame: 24
var environment;
var r11;
var prototype;
var Array;
var array;
var value3;
var binding;
var value4;
var BezierBezierEasing2;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
let value = _fun18323();
const value2 = 0;
if (a0 >= value2) {
reducibleJoin4: while (true) {
if (a0 <= 1) {
if (a2 >= value2) {
if (a2 <= 1) {
if (a0 === a1) {
reducibleJoin7: while (true) {
if (a2 === a3) {
return value;
}
break reducibleJoin7;
}
}
Array = global.Array;
prototype = Array.prototype;
value = Object.create(prototype, {constructor: {value: Array}});
array = new Array(11);
value = array instanceof Object ? array : value;
var env0_4 = value;
value3 = environment.__proto__;
r11 = value2;
reducibleLoop8: while (true) {
binding = env1_9;
value[r11] = binding(r11 * 0.1, a0, a2);
value4 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
if (value4 < 11) {
r11 = value4;
continue reducibleLoop8;
}
break reducibleLoop8;
}
value = _fun18325();
var env0_5 = value;
BezierBezierEasing2 = BezierBezierEasing;
BezierBezierEasing2.__closure = {mX1: a0, mY1: a1, mX2: a2, mY2: a3, calcBezier: env1_9,
getTForX: value};
BezierBezierEasing2.__workletHash = 4633198201234;
BezierBezierEasing2.__initData = env1_19;
return BezierBezierEasing2;
}
break reducibleJoin4;
}
break reducibleJoin4;
}
break reducibleJoin4;
}
}
value = environment.__proto__;
const ReanimatedError = require(dependencyMap[value2]).ReanimatedError;
throw new ReanimatedError('Bezier x values must be in [0, 1] range.');
function _fun18323() { // fn#18323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5088, offset: 0x00e855d3, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
return a0;
};
closure.__closure = {};
closure.__workletHash = 17109055856391;
closure.__initData = env2_17;
return closure;
}
function _fun18325() { // fn#18325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5406, offset: 0x00e85601, size: 131 bytes, params: 1, frame: 5
const getTForX_183262 = getTForX_18326;
getTForX_183262.__closure = {'kSplineTableSize': 11, 'sampleValues': null, 'kSampleStepSize': 0.1,
sampleValues: env0_4, getSlope: env2_11, mX1: env0_0, mX2: importDefault, NEWTON_MIN_SLOPE: 0.001,
newtonRaphsonIterate: env2_15, binarySubdivide: env2_13};
getTForX_183262.__workletHash = 8576728300710;
getTForX_183262.__initData = env2_18;
return getTForX_183262;
function getTForX_18326(a0) { // fn#18326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5423, offset: 0x00e85684, size: 242 bytes, params: 2, frame: 25
var r5;
var r7;
var r2;
var r10;
var value4;
var value5;
const value = environment.__proto__;
const value2 = 1;
const value3 = 0;
if (env1_4[value2] <= a0) {
r5 = value2;
r7 = value3;
while (true) {
value4 = r7 + 0.1;
value5 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
if (value5 === 10) {
r2 = value5;
r10 = value4;
break;
}
if (env1_4[value5] <= a0) {
r5 = value5;
r7 = value4;
continue;
}
r2 = value5;
r10 = value4;
break;
}
} else {
r2 = value2;
r10 = value3;
}
const value6 = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1;
const value8 = r10 + (a0 - env1_4[value6]) / (env1_4[value6 + value2] - env1_4[value6]) * 0.1;
const value10 = env3_11(value8, env1_0, importDefault);
return value10 >= 0.001 ? env3_15(a0, value8, env1_0, importDefault) : value3 === value10 ? value8 : env3_13(a0,
r10, r10 + 0.1, env1_0, importDefault);
}
}
function BezierBezierEasing(a0) { // fn#18327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1790:5796, owner: Bezier.BezierEasing, offset: 0x00e85776, size: 87 bytes, params: 2, frame: 18
var r2;
var r1;
var r0;
var value3;
var value4;
var value5;
let value = a0;
let binding = env0_0;
if (binding !== require) {
value3 = 0;
if (value3 === value) {
r1 = value3;
} else {
value4 = 1;
if (value4 === value) {
r2 = value4;
} else {
value5 = environment.__proto__.__proto__;
binding = env2_9;
value = env0_5(value);
value = binding(value, require, importAll);
r2 = value;
}
r1 = r2;
}
r0 = r1;
} else if (importDefault === importAll) {
r0 = value;
} else {
value3 = 0;
if (value3 === value) {
r1 = value3;
} else {
value4 = 1;
if (value4 === value) {
r2 = value4;
} else {
value5 = environment.__proto__.__proto__;
binding = env2_9;
value = env0_5(value);
value = binding(value, require, importAll);
r2 = value;
}
r1 = r2;
}
r0 = r1;
}
return r0;
}
}
}
}
global.__d(_fun18306, 1663, [1621]) /* metro module 1663, dependencies: [1621] */;