Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/bc/3fc5e15a52fed7680096c198d1e9d13558f84e4f7682a2debfdad3eef346a91320ea1c
T
2025-10-24 02:40:54 +00:00

1 line
10 KiB
Plaintext

{"dependencies":[],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n /**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @format\n * \n */\n\n 'use strict';\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.default = void 0;\n function stiffnessFromOrigamiValue(oValue) {\n return (oValue - 30) * 3.62 + 194;\n }\n function dampingFromOrigamiValue(oValue) {\n return (oValue - 8) * 3 + 25;\n }\n function fromOrigamiTensionAndFriction(tension, friction) {\n return {\n stiffness: stiffnessFromOrigamiValue(tension),\n damping: dampingFromOrigamiValue(friction)\n };\n }\n function fromBouncinessAndSpeed(bounciness, speed) {\n function normalize(value, startValue, endValue) {\n return (value - startValue) / (endValue - startValue);\n }\n function projectNormal(n, start, end) {\n return start + n * (end - start);\n }\n function linearInterpolation(t, start, end) {\n return t * end + (1 - t) * start;\n }\n function quadraticOutInterpolation(t, start, end) {\n return linearInterpolation(2 * t - t * t, start, end);\n }\n function b3Friction1(x) {\n return 0.0007 * Math.pow(x, 3) - 0.031 * Math.pow(x, 2) + 0.64 * x + 1.28;\n }\n function b3Friction2(x) {\n return 0.000044 * Math.pow(x, 3) - 0.006 * Math.pow(x, 2) + 0.36 * x + 2;\n }\n function b3Friction3(x) {\n return 0.00000045 * Math.pow(x, 3) - 0.000332 * Math.pow(x, 2) + 0.1078 * x + 5.84;\n }\n function b3Nobounce(tension) {\n if (tension <= 18) {\n return b3Friction1(tension);\n } else if (tension > 18 && tension <= 44) {\n return b3Friction2(tension);\n } else {\n return b3Friction3(tension);\n }\n }\n var b = normalize(bounciness / 1.7, 0, 20);\n b = projectNormal(b, 0, 0.8);\n var s = normalize(speed / 1.7, 0, 20);\n var bouncyTension = projectNormal(s, 0.5, 200);\n var bouncyFriction = quadraticOutInterpolation(b, b3Nobounce(bouncyTension), 0.01);\n return {\n stiffness: stiffnessFromOrigamiValue(bouncyTension),\n damping: dampingFromOrigamiValue(bouncyFriction)\n };\n }\n var _default = exports.default = {\n fromOrigamiTensionAndFriction,\n fromBouncinessAndSpeed\n };\n});","lineCount":75,"map":[[2,2,1,0],[3,0,2,0],[4,0,3,0],[5,0,4,0],[6,0,5,0],[7,0,6,0],[8,0,7,0],[9,0,8,0],[10,0,9,0],[12,2,11,0],[12,14,11,12],[14,2,11,13,"Object"],[14,8,11,13],[14,9,11,13,"defineProperty"],[14,23,11,13],[14,24,11,13,"exports"],[14,31,11,13],[15,4,11,13,"value"],[15,9,11,13],[16,2,11,13],[17,2,11,13,"exports"],[17,9,11,13],[17,10,11,13,"default"],[17,17,11,13],[18,2,13,0],[18,11,13,9,"stiffnessFromOrigamiValue"],[18,36,13,34,"stiffnessFromOrigamiValue"],[18,37,13,35,"oValue"],[18,43,13,41],[18,45,13,43],[19,4,14,2],[19,11,14,9],[19,12,14,10,"oValue"],[19,18,14,16],[19,21,14,19],[19,23,14,21],[19,27,14,25],[19,31,14,29],[19,34,14,32],[19,37,14,35],[20,2,15,0],[21,2,16,0],[21,11,16,9,"dampingFromOrigamiValue"],[21,34,16,32,"dampingFromOrigamiValue"],[21,35,16,33,"oValue"],[21,41,16,39],[21,43,16,41],[22,4,17,2],[22,11,17,9],[22,12,17,10,"oValue"],[22,18,17,16],[22,21,17,19],[22,22,17,20],[22,26,17,24],[22,27,17,25],[22,30,17,28],[22,32,17,30],[23,2,18,0],[24,2,19,0],[24,11,19,9,"fromOrigamiTensionAndFriction"],[24,40,19,38,"fromOrigamiTensionAndFriction"],[24,41,19,39,"tension"],[24,48,19,46],[24,50,19,48,"friction"],[24,58,19,56],[24,60,19,58],[25,4,20,2],[25,11,20,9],[26,6,21,4,"stiffness"],[26,15,21,13],[26,17,21,15,"stiffnessFromOrigamiValue"],[26,42,21,40],[26,43,21,41,"tension"],[26,50,21,48],[26,51,21,49],[27,6,22,4,"damping"],[27,13,22,11],[27,15,22,13,"dampingFromOrigamiValue"],[27,38,22,36],[27,39,22,37,"friction"],[27,47,22,45],[28,4,23,2],[28,5,23,3],[29,2,24,0],[30,2,25,0],[30,11,25,9,"fromBouncinessAndSpeed"],[30,33,25,31,"fromBouncinessAndSpeed"],[30,34,25,32,"bounciness"],[30,44,25,42],[30,46,25,44,"speed"],[30,51,25,49],[30,53,25,51],[31,4,26,2],[31,13,26,11,"normalize"],[31,22,26,20,"normalize"],[31,23,26,21,"value"],[31,28,26,26],[31,30,26,28,"startValue"],[31,40,26,38],[31,42,26,40,"endValue"],[31,50,26,48],[31,52,26,50],[32,6,27,4],[32,13,27,11],[32,14,27,12,"value"],[32,19,27,17],[32,22,27,20,"startValue"],[32,32,27,30],[32,37,27,35,"endValue"],[32,45,27,43],[32,48,27,46,"startValue"],[32,58,27,56],[32,59,27,57],[33,4,28,2],[34,4,29,2],[34,13,29,11,"projectNormal"],[34,26,29,24,"projectNormal"],[34,27,29,25,"n"],[34,28,29,26],[34,30,29,28,"start"],[34,35,29,33],[34,37,29,35,"end"],[34,40,29,38],[34,42,29,40],[35,6,30,4],[35,13,30,11,"start"],[35,18,30,16],[35,21,30,19,"n"],[35,22,30,20],[35,26,30,24,"end"],[35,29,30,27],[35,32,30,30,"start"],[35,37,30,35],[35,38,30,36],[36,4,31,2],[37,4,32,2],[37,13,32,11,"linearInterpolation"],[37,32,32,30,"linearInterpolation"],[37,33,32,31,"t"],[37,34,32,32],[37,36,32,34,"start"],[37,41,32,39],[37,43,32,41,"end"],[37,46,32,44],[37,48,32,46],[38,6,33,4],[38,13,33,11,"t"],[38,14,33,12],[38,17,33,15,"end"],[38,20,33,18],[38,23,33,21],[38,24,33,22],[38,25,33,23],[38,28,33,26,"t"],[38,29,33,27],[38,33,33,31,"start"],[38,38,33,36],[39,4,34,2],[40,4,35,2],[40,13,35,11,"quadraticOutInterpolation"],[40,38,35,36,"quadraticOutInterpolation"],[40,39,35,37,"t"],[40,40,35,38],[40,42,35,40,"start"],[40,47,35,45],[40,49,35,47,"end"],[40,52,35,50],[40,54,35,52],[41,6,36,4],[41,13,36,11,"linearInterpolation"],[41,32,36,30],[41,33,36,31],[41,34,36,32],[41,37,36,35,"t"],[41,38,36,36],[41,41,36,39,"t"],[41,42,36,40],[41,45,36,43,"t"],[41,46,36,44],[41,48,36,46,"start"],[41,53,36,51],[41,55,36,53,"end"],[41,58,36,56],[41,59,36,57],[42,4,37,2],[43,4,38,2],[43,13,38,11,"b3Friction1"],[43,24,38,22,"b3Friction1"],[43,25,38,23,"x"],[43,26,38,24],[43,28,38,26],[44,6,39,4],[44,13,39,11],[44,19,39,17],[44,22,39,20,"Math"],[44,26,39,24],[44,27,39,25,"pow"],[44,30,39,28],[44,31,39,29,"x"],[44,32,39,30],[44,34,39,32],[44,35,39,33],[44,36,39,34],[44,39,39,37],[44,44,39,42],[44,47,39,45,"Math"],[44,51,39,49],[44,52,39,50,"pow"],[44,55,39,53],[44,56,39,54,"x"],[44,57,39,55],[44,59,39,57],[44,60,39,58],[44,61,39,59],[44,64,39,62],[44,68,39,66],[44,71,39,69,"x"],[44,72,39,70],[44,75,39,73],[44,79,39,77],[45,4,40,2],[46,4,41,2],[46,13,41,11,"b3Friction2"],[46,24,41,22,"b3Friction2"],[46,25,41,23,"x"],[46,26,41,24],[46,28,41,26],[47,6,42,4],[47,13,42,11],[47,21,42,19],[47,24,42,22,"Math"],[47,28,42,26],[47,29,42,27,"pow"],[47,32,42,30],[47,33,42,31,"x"],[47,34,42,32],[47,36,42,34],[47,37,42,35],[47,38,42,36],[47,41,42,39],[47,46,42,44],[47,49,42,47,"Math"],[47,53,42,51],[47,54,42,52,"pow"],[47,57,42,55],[47,58,42,56,"x"],[47,59,42,57],[47,61,42,59],[47,62,42,60],[47,63,42,61],[47,66,42,64],[47,70,42,68],[47,73,42,71,"x"],[47,74,42,72],[47,77,42,75],[47,78,42,76],[48,4,43,2],[49,4,44,2],[49,13,44,11,"b3Friction3"],[49,24,44,22,"b3Friction3"],[49,25,44,23,"x"],[49,26,44,24],[49,28,44,26],[50,6,45,4],[50,13,45,11],[50,23,45,21],[50,26,45,24,"Math"],[50,30,45,28],[50,31,45,29,"pow"],[50,34,45,32],[50,35,45,33,"x"],[50,36,45,34],[50,38,45,36],[50,39,45,37],[50,40,45,38],[50,43,45,41],[50,51,45,49],[50,54,45,52,"Math"],[50,58,45,56],[50,59,45,57,"pow"],[50,62,45,60],[50,63,45,61,"x"],[50,64,45,62],[50,66,45,64],[50,67,45,65],[50,68,45,66],[50,71,45,69],[50,77,45,75],[50,80,45,78,"x"],[50,81,45,79],[50,84,45,82],[50,88,45,86],[51,4,46,2],[52,4,47,2],[52,13,47,11,"b3Nobounce"],[52,23,47,21,"b3Nobounce"],[52,24,47,22,"tension"],[52,31,47,29],[52,33,47,31],[53,6,48,4],[53,10,48,8,"tension"],[53,17,48,15],[53,21,48,19],[53,23,48,21],[53,25,48,23],[54,8,49,6],[54,15,49,13,"b3Friction1"],[54,26,49,24],[54,27,49,25,"tension"],[54,34,49,32],[54,35,49,33],[55,6,50,4],[55,7,50,5],[55,13,50,11],[55,17,50,15,"tension"],[55,24,50,22],[55,27,50,25],[55,29,50,27],[55,33,50,31,"tension"],[55,40,50,38],[55,44,50,42],[55,46,50,44],[55,48,50,46],[56,8,51,6],[56,15,51,13,"b3Friction2"],[56,26,51,24],[56,27,51,25,"tension"],[56,34,51,32],[56,35,51,33],[57,6,52,4],[57,7,52,5],[57,13,52,11],[58,8,53,6],[58,15,53,13,"b3Friction3"],[58,26,53,24],[58,27,53,25,"tension"],[58,34,53,32],[58,35,53,33],[59,6,54,4],[60,4,55,2],[61,4,56,2],[61,8,56,6,"b"],[61,9,56,7],[61,12,56,10,"normalize"],[61,21,56,19],[61,22,56,20,"bounciness"],[61,32,56,30],[61,35,56,33],[61,38,56,36],[61,40,56,38],[61,41,56,39],[61,43,56,41],[61,45,56,43],[61,46,56,44],[62,4,57,2,"b"],[62,5,57,3],[62,8,57,6,"projectNormal"],[62,21,57,19],[62,22,57,20,"b"],[62,23,57,21],[62,25,57,23],[62,26,57,24],[62,28,57,26],[62,31,57,29],[62,32,57,30],[63,4,58,2],[63,8,58,6,"s"],[63,9,58,7],[63,12,58,10,"normalize"],[63,21,58,19],[63,22,58,20,"speed"],[63,27,58,25],[63,30,58,28],[63,33,58,31],[63,35,58,33],[63,36,58,34],[63,38,58,36],[63,40,58,38],[63,41,58,39],[64,4,59,2],[64,8,59,6,"bouncyTension"],[64,21,59,19],[64,24,59,22,"projectNormal"],[64,37,59,35],[64,38,59,36,"s"],[64,39,59,37],[64,41,59,39],[64,44,59,42],[64,46,59,44],[64,49,59,47],[64,50,59,48],[65,4,60,2],[65,8,60,6,"bouncyFriction"],[65,22,60,20],[65,25,60,23,"quadraticOutInterpolation"],[65,50,60,48],[65,51,60,49,"b"],[65,52,60,50],[65,54,60,52,"b3Nobounce"],[65,64,60,62],[65,65,60,63,"bouncyTension"],[65,78,60,76],[65,79,60,77],[65,81,60,79],[65,85,60,83],[65,86,60,84],[66,4,61,2],[66,11,61,9],[67,6,62,4,"stiffness"],[67,15,62,13],[67,17,62,15,"stiffnessFromOrigamiValue"],[67,42,62,40],[67,43,62,41,"bouncyTension"],[67,56,62,54],[67,57,62,55],[68,6,63,4,"damping"],[68,13,63,11],[68,15,63,13,"dampingFromOrigamiValue"],[68,38,63,36],[68,39,63,37,"bouncyFriction"],[68,53,63,51],[69,4,64,2],[69,5,64,3],[70,2,65,0],[71,2,65,1],[71,6,65,1,"_default"],[71,14,65,1],[71,17,65,1,"exports"],[71,24,65,1],[71,25,65,1,"default"],[71,32,65,1],[71,35,66,15],[72,4,67,2,"fromOrigamiTensionAndFriction"],[72,33,67,31],[73,4,68,2,"fromBouncinessAndSpeed"],[74,2,69,0],[74,3,69,1],[75,0,69,1],[75,3]],"functionMap":{"names":["<global>","stiffnessFromOrigamiValue","dampingFromOrigamiValue","fromOrigamiTensionAndFriction","fromBouncinessAndSpeed","normalize","projectNormal","linearInterpolation","quadraticOutInterpolation","b3Friction1","b3Friction2","b3Friction3","b3Nobounce"],"mappings":"AAA;ACY;CDE;AEC;CFE;AGC;CHK;AIC;ECC;GDE;EEC;GFE;EGC;GHE;EIC;GJE;EKC;GLE;EMC;GNE;EOC;GPE;EQC;GRQ;CJU"}},"type":"js/module"}]}