@egen-civitas/esm-app-shell 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/0e44e729978549df.js +1 -0
  3. package/dist/0e44e729978549df.js.map +1 -0
  4. package/dist/100e7c99afd2869a.js +1 -0
  5. package/dist/100e7c99afd2869a.js.map +1 -0
  6. package/dist/104a9d544f2d1bee.js +1 -0
  7. package/dist/104a9d544f2d1bee.js.map +1 -0
  8. package/dist/165cd7c9a57e9fd4.js +1 -0
  9. package/dist/165cd7c9a57e9fd4.js.map +1 -0
  10. package/dist/20c375935cdfd472.js +1 -0
  11. package/dist/20c375935cdfd472.js.map +1 -0
  12. package/dist/2387ac2d7d438c25.js +1 -0
  13. package/dist/2387ac2d7d438c25.js.map +1 -0
  14. package/dist/28213ad7c964ca67.js +1 -0
  15. package/dist/28213ad7c964ca67.js.map +1 -0
  16. package/dist/28ee358f798f3afc.js +1 -0
  17. package/dist/28ee358f798f3afc.js.map +1 -0
  18. package/dist/2a6578b999e69afa.js +1 -0
  19. package/dist/2a6578b999e69afa.js.map +1 -0
  20. package/dist/2e996b9d664c67d5.js +1 -0
  21. package/dist/2e996b9d664c67d5.js.map +1 -0
  22. package/dist/2f3c2b970b4f3f2a.js +1 -0
  23. package/dist/2f3c2b970b4f3f2a.js.map +1 -0
  24. package/dist/301f10a4f624d74f.js +1 -0
  25. package/dist/301f10a4f624d74f.js.map +1 -0
  26. package/dist/3421840c2ad1831a.js +1 -0
  27. package/dist/3421840c2ad1831a.js.map +1 -0
  28. package/dist/35750147bebf81e6.js +1 -0
  29. package/dist/35750147bebf81e6.js.map +1 -0
  30. package/dist/38e195234254e1ed.js +1 -0
  31. package/dist/38e195234254e1ed.js.map +1 -0
  32. package/dist/392ff79c3df465de.js +1 -0
  33. package/dist/392ff79c3df465de.js.map +1 -0
  34. package/dist/39e4bad4d556fdf0.js +1 -0
  35. package/dist/39e4bad4d556fdf0.js.map +1 -0
  36. package/dist/3f0bf1710c0f5c33.js +1 -0
  37. package/dist/3f0bf1710c0f5c33.js.map +1 -0
  38. package/dist/40a802fc37195f5f.js +1 -0
  39. package/dist/40a802fc37195f5f.js.map +1 -0
  40. package/dist/4ce174ac213a420d.js +1 -0
  41. package/dist/4ce174ac213a420d.js.map +1 -0
  42. package/dist/503f6ee851a6c84c.js +1 -0
  43. package/dist/503f6ee851a6c84c.js.map +1 -0
  44. package/dist/5905268ff5778527.js +20 -0
  45. package/dist/5905268ff5778527.js.map +1 -0
  46. package/dist/5a15fdd1c746d468.js +1 -0
  47. package/dist/5a15fdd1c746d468.js.map +1 -0
  48. package/dist/5c94ce2b2b091a81.js +1 -0
  49. package/dist/5c94ce2b2b091a81.js.map +1 -0
  50. package/dist/6740948aa3c94b36.js +1 -0
  51. package/dist/6740948aa3c94b36.js.map +1 -0
  52. package/dist/6face530dd71d3ab.js +1 -0
  53. package/dist/6face530dd71d3ab.js.map +1 -0
  54. package/dist/6ff5fd266c168d37.js +1 -0
  55. package/dist/6ff5fd266c168d37.js.map +1 -0
  56. package/dist/7133b1158c1eee9f.js +1 -0
  57. package/dist/7133b1158c1eee9f.js.map +1 -0
  58. package/dist/7405a39d009c0cd9.js +1 -0
  59. package/dist/7405a39d009c0cd9.js.map +1 -0
  60. package/dist/746d6624966d97cc.js +1 -0
  61. package/dist/746d6624966d97cc.js.map +1 -0
  62. package/dist/7486f1056be8aac2.js +1 -0
  63. package/dist/7486f1056be8aac2.js.map +1 -0
  64. package/dist/7fe1ae38f4e52228.js +1 -0
  65. package/dist/7fe1ae38f4e52228.js.map +1 -0
  66. package/dist/8a1e9fb14542294e.js +1 -0
  67. package/dist/8a1e9fb14542294e.js.map +1 -0
  68. package/dist/996aced69a32fb34.js +1 -0
  69. package/dist/996aced69a32fb34.js.map +1 -0
  70. package/dist/99b0e92c982b69e3.wasm +0 -0
  71. package/dist/99ff6ed3397c063c.js +1 -0
  72. package/dist/99ff6ed3397c063c.js.map +1 -0
  73. package/dist/9da38ddd134bbac0.wasm +0 -0
  74. package/dist/9f95152ca23cbda2.js +1 -0
  75. package/dist/9f95152ca23cbda2.js.map +1 -0
  76. package/dist/9fb2e1c5007395e8.js +1 -0
  77. package/dist/9fb2e1c5007395e8.js.map +1 -0
  78. package/dist/a2203b7ab1be4fe5.js +1 -0
  79. package/dist/a2203b7ab1be4fe5.js.map +1 -0
  80. package/dist/a5299431ca4e1890.js +1 -0
  81. package/dist/a5299431ca4e1890.js.map +1 -0
  82. package/dist/af9d1a058dafb22f.js +1 -0
  83. package/dist/b4c358eb41ead1a6.js +1 -0
  84. package/dist/b4c358eb41ead1a6.js.map +1 -0
  85. package/dist/b97ae94953bb55a1.js +1 -0
  86. package/dist/b97ae94953bb55a1.js.map +1 -0
  87. package/dist/bd220d0c8e3bcf3e.js +1 -0
  88. package/dist/bd220d0c8e3bcf3e.js.map +1 -0
  89. package/dist/c2c6850fc4d942cc.js +1 -0
  90. package/dist/c2c6850fc4d942cc.js.map +1 -0
  91. package/dist/c4bf6419e95bcb10.js +1 -0
  92. package/dist/c4bf6419e95bcb10.js.map +1 -0
  93. package/dist/c5be968929b7b675.js +1 -0
  94. package/dist/c5be968929b7b675.js.map +1 -0
  95. package/dist/c6231509ea43d4cf.js +1 -0
  96. package/dist/c6231509ea43d4cf.js.map +1 -0
  97. package/dist/c8956121db18ddca.js +1 -0
  98. package/dist/c8956121db18ddca.js.map +1 -0
  99. package/dist/cabfdf9ddd4121e9.wasm +0 -0
  100. package/dist/d2cacd093023c7fc.js +1 -0
  101. package/dist/d2cacd093023c7fc.js.map +1 -0
  102. package/dist/d427071073895236.js +1 -0
  103. package/dist/d427071073895236.js.map +1 -0
  104. package/dist/d63e75be7857458a.wasm +0 -0
  105. package/dist/d714a019d4dfd0f1.js +1 -0
  106. package/dist/d714a019d4dfd0f1.js.map +1 -0
  107. package/dist/db9d140f9cb6fbb6.js +1 -0
  108. package/dist/db9d140f9cb6fbb6.js.map +1 -0
  109. package/dist/deb33db385797b5e.js +1 -0
  110. package/dist/deb33db385797b5e.js.map +1 -0
  111. package/dist/ea485a963430e479.js +1 -0
  112. package/dist/ea485a963430e479.js.map +1 -0
  113. package/dist/eb96cd859ce842b3.js +1 -0
  114. package/dist/eb96cd859ce842b3.js.map +1 -0
  115. package/dist/{egen.f35ccbd9a7ae43e2.js → egen.092645d8fcc83793.js} +4 -4
  116. package/dist/egen.092645d8fcc83793.js.map +1 -0
  117. package/dist/f3f2147432dcd6ef.js +1 -0
  118. package/dist/f3f2147432dcd6ef.js.map +1 -0
  119. package/dist/f443206d9f3ee012.js +1 -0
  120. package/dist/f443206d9f3ee012.js.map +1 -0
  121. package/dist/f4941e9d6d02713b.js +1 -0
  122. package/dist/f4941e9d6d02713b.js.map +1 -0
  123. package/dist/f516f10149ceaf20.js +1 -0
  124. package/dist/f516f10149ceaf20.js.map +1 -0
  125. package/dist/f7e95e9103f6bea5.js +1 -0
  126. package/dist/f7e95e9103f6bea5.js.map +1 -0
  127. package/dist/f87c9fff5312393d.js +1 -0
  128. package/dist/f87c9fff5312393d.js.map +1 -0
  129. package/dist/fdd8e6bc172cc6c8.js +1 -0
  130. package/dist/fdd8e6bc172cc6c8.js.map +1 -0
  131. package/dist/index.html +1 -1
  132. package/package.json +3 -3
  133. package/dist/eb27d690cf45cd5e.js +0 -20
  134. package/dist/eb27d690cf45cd5e.js.map +0 -1
  135. package/dist/egen.f35ccbd9a7ae43e2.js.map +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_egen_civitas_esm_app_shell=self.webpackChunk_egen_civitas_esm_app_shell||[]).push([["7994"],{7945(e,t,r){e.exports=r.p+"d63e75be7857458a.wasm"},1726(e,t,r){function n(e,t,r,n,i,a,o){try{var s=e[a](o),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,a){var o=e.apply(t,r);function s(e){n(o,i,a,s,u,"next",e)}function u(e){n(o,i,a,s,u,"throw",e)}s(void 0)})}}function a(e,t,r){return t=_(t),function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e,f()?Reflect.construct(t,r||[],_(e).constructor):t.apply(e,r))}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function c(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}function d(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),s=Object.defineProperty;return s(o,"next",{value:u(0)}),s(o,"throw",{value:u(1)}),s(o,"return",{value:u(2)}),"function"==typeof Symbol&&s(o,Symbol.iterator,{value:function(){return this}}),o;function u(s){return function(u){var _=[s,u];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,_[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&_[0]?n.return:_[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,_[1])).done)return i;switch(n=0,i&&(_=[2&_[0],i.value]),_[0]){case 0:case 1:i=_;break;case 4:return a.label++,{value:_[1],done:!1};case 5:a.label++,n=_[1],_=[0];continue;case 7:_=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===_[0]||2===_[0])){a=0;continue}if(3===_[0]&&(!i||_[1]>i[0]&&_[1]<i[3])){a.label=_[1];break}if(6===_[0]&&a.label<i[1]){a.label=i[1],i=_;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(_);break}i[2]&&a.ops.pop(),a.trys.pop();continue}_=t.call(e,a)}catch(e){_=[6,e],n=0}finally{r=i=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}}}r.r(t),r.d(t,{ActiveCollisionTypes:()=>rj,ActiveEvents:()=>rI,ActiveHooks:()=>rT,Ball:()=>t$,BroadPhase:()=>tK,CCDSolver:()=>tC,Capsule:()=>t3,CharacterCollision:()=>rc,CoefficientCombineRule:()=>tL,Collider:()=>rD,ColliderDesc:()=>rL,ColliderSet:()=>rH,ColliderShapeCastHit:()=>tX,Cone:()=>ra,ConvexPolyhedron:()=>re,Cuboid:()=>t1,Cylinder:()=>rn,DebugRenderBuffers:()=>r_,DebugRenderPipeline:()=>rl,DynamicRayCastVehicleController:()=>rf,EventQueue:()=>ry,FeatureType:()=>tH,FixedImpulseJoint:()=>t_,FixedMultibodyJoint:()=>tb,GenericImpulseJoint:()=>tf,HalfSpace:()=>t0,HeightFieldFlags:()=>rE,Heightfield:()=>rr,ImpulseJoint:()=>ts,ImpulseJointSet:()=>ty,IntegrationParameters:()=>to,IslandManager:()=>tx,JointAxesMask:()=>tD,JointData:()=>tp,JointType:()=>tj,KinematicCharacterController:()=>rh,MassPropsMode:()=>rM,MotorModel:()=>tM,MultibodyJoint:()=>tv,MultibodyJointSet:()=>tS,NarrowPhase:()=>tY,PhysicsPipeline:()=>rs,PidAxesMask:()=>rP,PidController:()=>rw,PointColliderProjection:()=>tV,PointProjection:()=>tJ,Polyline:()=>t8,PrismaticImpulseJoint:()=>th,PrismaticMultibodyJoint:()=>tk,Quaternion:()=>e7,QueryFilterFlags:()=>rz,Ray:()=>tG,RayColliderHit:()=>tW,RayColliderIntersection:()=>tB,RayIntersection:()=>tO,RevoluteImpulseJoint:()=>tw,RevoluteMultibodyJoint:()=>tm,RigidBody:()=>tr,RigidBodyDesc:()=>tn,RigidBodySet:()=>ta,RigidBodyType:()=>tz,RopeImpulseJoint:()=>tl,RotationOps:()=>e9,RoundCone:()=>ro,RoundConvexPolyhedron:()=>rt,RoundCuboid:()=>t2,RoundCylinder:()=>ri,RoundTriangle:()=>t5,SdpMatrix3:()=>te,SdpMatrix3Ops:()=>tt,Segment:()=>t4,SerializationPipeline:()=>ru,Shape:()=>tQ,ShapeCastHit:()=>tU,ShapeContact:()=>tZ,ShapeType:()=>tN,SolverFlags:()=>rF,SphericalImpulseJoint:()=>td,SphericalMultibodyJoint:()=>tR,SpringImpulseJoint:()=>tc,TempContactForceEvent:()=>rp,TempContactManifold:()=>tq,TriMesh:()=>t9,TriMeshFlags:()=>rA,Triangle:()=>t6,UnitImpulseJoint:()=>tu,UnitMultibodyJoint:()=>tg,Vector3:()=>e5,VectorOps:()=>e8,Voxels:()=>t7,World:()=>rd,init:()=>rO,reserveMemory:()=>rG,version:()=>rN});var p,y,v=Array(128).fill(void 0);v.push(void 0,null,!0,!1);var g=v.length;function b(e){g===v.length&&v.push(v.length+1);var t=g;return g=v[t],v[t]=e,t}function k(e,t){try{return e.apply(this,t)}catch(e){y.__wbindgen_export_0(b(e))}}var m=("u"<typeof TextDecoder?"undefined":w(TextDecoder))<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:function(){throw Error("TextDecoder not available")}};("u"<typeof TextDecoder?"undefined":w(TextDecoder))<"u"&&m.decode();var R=null;function S(e,t){return e>>>=0,m.decode(((null===R||0===R.byteLength)&&(R=new Uint8Array(y.memory.buffer)),R).subarray(e,e+t))}function C(e){return null==e}var x=null;function E(){return(null===x||!0===x.buffer.detached||void 0===x.buffer.detached&&x.buffer!==y.memory.buffer)&&(x=new DataView(y.memory.buffer)),x}function A(e){var t=v[e];return e<132||(v[e]=g,g=e),t}function P(e,t){if(!c(e,t))throw Error("expected instance of ".concat(t.name))}var I=128;function T(e){if(1==I)throw Error("out of js stack");return v[--I]=e,I}var F=null,z=null;function j(){return(null===z||0===z.byteLength)&&(z=new Float32Array(y.memory.buffer)),z}function M(e,t){return e>>>=0,j().subarray(e/4,e/4+t)}var D=null;function L(){return(null===D||0===D.byteLength)&&(D=new Uint32Array(y.memory.buffer)),D}var H=0;function N(e,t){var r=t(4*e.length,4)>>>0;return L().set(e,r/4),H=e.length,r}function G(e,t){var r=t(4*e.length,4)>>>0;return j().set(e,r/4),H=e.length,r}Object.freeze({Vertex:0,0:"Vertex",Edge:1,1:"Edge",Face:2,2:"Face",Unknown:3,3:"Unknown"});var O=Object.freeze({LinX:0,0:"LinX",LinY:1,1:"LinY",LinZ:2,2:"LinZ",AngX:3,3:"AngX",AngY:4,4:"AngY",AngZ:5,5:"AngZ"}),B=Object.freeze({Revolute:0,0:"Revolute",Fixed:1,1:"Fixed",Prismatic:2,2:"Prismatic",Rope:3,3:"Rope",Spring:4,4:"Spring",Spherical:5,5:"Spherical",Generic:6,6:"Generic"}),W=(Object.freeze({AccelerationBased:0,0:"AccelerationBased",ForceBased:1,1:"ForceBased"}),Object.freeze({Dynamic:0,0:"Dynamic",Fixed:1,1:"Fixed",KinematicPositionBased:2,2:"KinematicPositionBased",KinematicVelocityBased:3,3:"KinematicVelocityBased"}),Object.freeze({Ball:0,0:"Ball",Cuboid:1,1:"Cuboid",Capsule:2,2:"Capsule",Segment:3,3:"Segment",Polyline:4,4:"Polyline",Triangle:5,5:"Triangle",TriMesh:6,6:"TriMesh",HeightField:7,7:"HeightField",Compound:8,8:"Compound",ConvexPolyhedron:9,9:"ConvexPolyhedron",Cylinder:10,10:"Cylinder",Cone:11,11:"Cone",RoundCuboid:12,12:"RoundCuboid",RoundTriangle:13,13:"RoundTriangle",RoundCylinder:14,14:"RoundCylinder",RoundCone:15,15:"RoundCone",RoundConvexPolyhedron:16,16:"RoundConvexPolyhedron",HalfSpace:17,17:"HalfSpace",Voxels:18,18:"Voxels"})),J=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawbroadphase_free(e>>>0,1)}),V=function(){function e(){o(this,e);var t=y.rawbroadphase_new();return this.__wbg_ptr=t>>>0,J.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,J.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawbroadphase_free(e,0)}},{key:"castRay",value:function(e,t,r,n,i,a,o,s,u,_,l,c){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,e3);var h=y.rawbroadphase_castRay(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,o,s,C(u)?0x100000001:u>>>0,!C(_),C(_)?0:_,!C(l),C(l)?0:l,T(c));return 0===h?void 0:eL.__wrap(h)}finally{v[I++]=void 0}}},{key:"castRayAndGetNormal",value:function(e,t,r,n,i,a,o,s,u,_,l,c){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,e3);var h=y.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,o,s,C(u)?0x100000001:u>>>0,!C(_),C(_)?0:_,!C(l),C(l)?0:l,T(c));return 0===h?void 0:eN.__wrap(h)}finally{v[I++]=void 0}}},{key:"intersectionsWithRay",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,e3),y.rawbroadphase_intersectionsWithRay(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,o,T(s),u,C(_)?0x100000001:_>>>0,!C(l),C(l)?0:l,!C(c),C(c)?0:c,T(h))}finally{v[I++]=void 0,v[I++]=void 0}}},{key:"intersectionWithShape",value:function(e,t,r,n,i,a,o,s,u,_,l){try{var c=y.__wbindgen_add_to_stack_pointer(-16);P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,eV),P(a,eZ),y.rawbroadphase_intersectionWithShape(c,this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o,C(s)?0x100000001:s>>>0,!C(u),C(u)?0:u,!C(_),C(_)?0:_,T(l));var h=E().getInt32(c+0,!0),w=E().getFloat64(c+8,!0);return 0===h?void 0:w}finally{y.__wbindgen_add_to_stack_pointer(16),v[I++]=void 0}}},{key:"projectPoint",value:function(e,t,r,n,i,a,o,s,u,_){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3);var l=y.rawbroadphase_projectPoint(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i,a,C(o)?0x100000001:o>>>0,!C(s),C(s)?0:s,!C(u),C(u)?0:u,T(_));return 0===l?void 0:ez.__wrap(l)}finally{v[I++]=void 0}}},{key:"projectPointAndGetFeature",value:function(e,t,r,n,i,a,o,s,u){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3);var _=y.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i,C(a)?0x100000001:a>>>0,!C(o),C(o)?0:o,!C(s),C(s)?0:s,T(u));return 0===_?void 0:ez.__wrap(_)}finally{v[I++]=void 0}}},{key:"intersectionsWithPoint",value:function(e,t,r,n,i,a,o,s,u,_){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),y.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,T(i),a,C(o)?0x100000001:o>>>0,!C(s),C(s)?0:s,!C(u),C(u)?0:u,T(_))}finally{v[I++]=void 0,v[I++]=void 0}}},{key:"castShape",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h,w,f){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,eV),P(a,e3),P(o,eZ);var d=y.rawbroadphase_castShape(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o.__wbg_ptr,s,u,_,l,C(c)?0x100000001:c>>>0,!C(h),C(h)?0:h,!C(w),C(w)?0:w,T(f));return 0===d?void 0:$.__wrap(d)}finally{v[I++]=void 0}}},{key:"intersectionsWithShape",value:function(e,t,r,n,i,a,o,s,u,_,l,c){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,eV),P(a,eZ),y.rawbroadphase_intersectionsWithShape(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,T(o),s,C(u)?0x100000001:u>>>0,!C(_),C(_)?0:_,!C(l),C(l)?0:l,T(c))}finally{v[I++]=void 0,v[I++]=void 0}}},{key:"collidersWithAabbIntersectingAabb",value:function(e,t,r,n,i,a){try{P(e,eE),P(t,eW),P(r,Z),P(n,e3),P(i,e3),y.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,T(a))}finally{v[I++]=void 0}}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(V.prototype);return t.__wbg_ptr=e,J.register(t,t.__wbg_ptr,t),t}}]),e}(),U=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawccdsolver_free(e>>>0,1)}),X=function(){function e(){o(this,e);var t=y.rawccdsolver_new();return this.__wbg_ptr=t>>>0,U.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawccdsolver_free(e,0)}}]),e}(),K=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcharactercollision_free(e>>>0,1)}),Y=function(){function e(){o(this,e);var t=y.rawcharactercollision_new();return this.__wbg_ptr=t>>>0,K.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,K.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcharactercollision_free(e,0)}},{key:"handle",value:function(){return y.rawcharactercollision_handle(this.__wbg_ptr)}},{key:"translationDeltaApplied",value:function(){var e=y.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return e3.__wrap(e)}},{key:"translationDeltaRemaining",value:function(){var e=y.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return e3.__wrap(e)}},{key:"toi",value:function(){return y.rawcharactercollision_toi(this.__wbg_ptr)}},{key:"worldWitness1",value:function(){var e=y.rawcharactercollision_worldWitness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"worldWitness2",value:function(){var e=y.rawcharactercollision_worldWitness2(this.__wbg_ptr);return e3.__wrap(e)}},{key:"worldNormal1",value:function(){var e=y.rawcharactercollision_worldNormal1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"worldNormal2",value:function(){var e=y.rawcharactercollision_worldNormal2(this.__wbg_ptr);return e3.__wrap(e)}}]),e}(),q=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcolliderset_free(e>>>0,1)}),Z=function(){function e(){o(this,e);var t=y.rawcolliderset_new();return this.__wbg_ptr=t>>>0,q.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcolliderset_free(e,0)}},{key:"coTranslation",value:function(e){var t=y.rawcolliderset_coTranslation(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"coRotation",value:function(e){var t=y.rawcolliderset_coRotation(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"coTranslationWrtParent",value:function(e){var t=y.rawcolliderset_coTranslationWrtParent(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"coRotationWrtParent",value:function(e){var t=y.rawcolliderset_coRotationWrtParent(this.__wbg_ptr,e);return 0===t?void 0:eV.__wrap(t)}},{key:"coSetTranslation",value:function(e,t,r,n){y.rawcolliderset_coSetTranslation(this.__wbg_ptr,e,t,r,n)}},{key:"coSetTranslationWrtParent",value:function(e,t,r,n){y.rawcolliderset_coSetTranslationWrtParent(this.__wbg_ptr,e,t,r,n)}},{key:"coSetRotation",value:function(e,t,r,n,i){y.rawcolliderset_coSetRotation(this.__wbg_ptr,e,t,r,n,i)}},{key:"coSetRotationWrtParent",value:function(e,t,r,n,i){y.rawcolliderset_coSetRotationWrtParent(this.__wbg_ptr,e,t,r,n,i)}},{key:"coIsSensor",value:function(e){return 0!==y.rawcolliderset_coIsSensor(this.__wbg_ptr,e)}},{key:"coShapeType",value:function(e){return y.rawcolliderset_coShapeType(this.__wbg_ptr,e)}},{key:"coHalfspaceNormal",value:function(e){var t=y.rawcolliderset_coHalfspaceNormal(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"coHalfExtents",value:function(e){var t=y.rawcolliderset_coHalfExtents(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"coSetHalfExtents",value:function(e,t){P(t,e3),y.rawcolliderset_coSetHalfExtents(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"coRadius",value:function(e){var t=y.rawcolliderset_coRadius(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coSetRadius",value:function(e,t){y.rawcolliderset_coSetRadius(this.__wbg_ptr,e,t)}},{key:"coHalfHeight",value:function(e){var t=y.rawcolliderset_coHalfHeight(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coSetHalfHeight",value:function(e,t){y.rawcolliderset_coSetHalfHeight(this.__wbg_ptr,e,t)}},{key:"coRoundRadius",value:function(e){var t=y.rawcolliderset_coRoundRadius(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coSetRoundRadius",value:function(e,t){y.rawcolliderset_coSetRoundRadius(this.__wbg_ptr,e,t)}},{key:"coVoxelData",value:function(e){try{var t,r,n=y.__wbindgen_add_to_stack_pointer(-16);y.rawcolliderset_coVoxelData(n,this.__wbg_ptr,e);var i=E().getInt32(n+0,!0),a=E().getInt32(n+4,!0);return 0!==i&&(r=(t=i,t>>>=0,((null===F||0===F.byteLength)&&(F=new Int32Array(y.memory.buffer)),F).subarray(t/4,t/4+a)).slice(),y.__wbindgen_export_1(i,4*a,4)),r}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"coVoxelSize",value:function(e){var t=y.rawcolliderset_coVoxelSize(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"coSetVoxel",value:function(e,t,r,n,i){y.rawcolliderset_coSetVoxel(this.__wbg_ptr,e,t,r,n,i)}},{key:"coPropagateVoxelChange",value:function(e,t,r,n,i,a,o,s){y.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr,e,t,r,n,i,a,o,s)}},{key:"coCombineVoxelStates",value:function(e,t,r,n,i){y.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr,e,t,r,n,i)}},{key:"coVertices",value:function(e){try{var t,r=y.__wbindgen_add_to_stack_pointer(-16);y.rawcolliderset_coVertices(r,this.__wbg_ptr,e);var n=E().getInt32(r+0,!0),i=E().getInt32(r+4,!0);return 0!==n&&(t=M(n,i).slice(),y.__wbindgen_export_1(n,4*i,4)),t}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"coIndices",value:function(e){try{var t,r,n=y.__wbindgen_add_to_stack_pointer(-16);y.rawcolliderset_coIndices(n,this.__wbg_ptr,e);var i=E().getInt32(n+0,!0),a=E().getInt32(n+4,!0);return 0!==i&&(r=(t=i,t>>>=0,L().subarray(t/4,t/4+a)).slice(),y.__wbindgen_export_1(i,4*a,4)),r}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"coTriMeshFlags",value:function(e){var t=y.rawcolliderset_coTriMeshFlags(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coHeightFieldFlags",value:function(e){var t=y.rawcolliderset_coHeightFieldFlags(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coHeightfieldHeights",value:function(e){try{var t,r=y.__wbindgen_add_to_stack_pointer(-16);y.rawcolliderset_coHeightfieldHeights(r,this.__wbg_ptr,e);var n=E().getInt32(r+0,!0),i=E().getInt32(r+4,!0);return 0!==n&&(t=M(n,i).slice(),y.__wbindgen_export_1(n,4*i,4)),t}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"coHeightfieldScale",value:function(e){var t=y.rawcolliderset_coHeightfieldScale(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"coHeightfieldNRows",value:function(e){var t=y.rawcolliderset_coHeightfieldNRows(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coHeightfieldNCols",value:function(e){var t=y.rawcolliderset_coHeightfieldNCols(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"coParent",value:function(e){try{var t=y.__wbindgen_add_to_stack_pointer(-16);y.rawcolliderset_coParent(t,this.__wbg_ptr,e);var r=E().getInt32(t+0,!0),n=E().getFloat64(t+8,!0);return 0===r?void 0:n}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"coSetEnabled",value:function(e,t){y.rawcolliderset_coSetEnabled(this.__wbg_ptr,e,t)}},{key:"coIsEnabled",value:function(e){return 0!==y.rawcolliderset_coIsEnabled(this.__wbg_ptr,e)}},{key:"coSetContactSkin",value:function(e,t){y.rawcolliderset_coSetContactSkin(this.__wbg_ptr,e,t)}},{key:"coContactSkin",value:function(e){return y.rawcolliderset_coContactSkin(this.__wbg_ptr,e)}},{key:"coFriction",value:function(e){return y.rawcolliderset_coFriction(this.__wbg_ptr,e)}},{key:"coRestitution",value:function(e){return y.rawcolliderset_coRestitution(this.__wbg_ptr,e)}},{key:"coDensity",value:function(e){return y.rawcolliderset_coDensity(this.__wbg_ptr,e)}},{key:"coMass",value:function(e){return y.rawcolliderset_coMass(this.__wbg_ptr,e)}},{key:"coVolume",value:function(e){return y.rawcolliderset_coVolume(this.__wbg_ptr,e)}},{key:"coCollisionGroups",value:function(e){return y.rawcolliderset_coCollisionGroups(this.__wbg_ptr,e)>>>0}},{key:"coSolverGroups",value:function(e){return y.rawcolliderset_coSolverGroups(this.__wbg_ptr,e)>>>0}},{key:"coActiveHooks",value:function(e){return y.rawcolliderset_coActiveHooks(this.__wbg_ptr,e)>>>0}},{key:"coActiveCollisionTypes",value:function(e){return y.rawcolliderset_coActiveCollisionTypes(this.__wbg_ptr,e)}},{key:"coActiveEvents",value:function(e){return y.rawcolliderset_coActiveEvents(this.__wbg_ptr,e)>>>0}},{key:"coContactForceEventThreshold",value:function(e){return y.rawcolliderset_coContactForceEventThreshold(this.__wbg_ptr,e)}},{key:"coContainsPoint",value:function(e,t){return P(t,e3),0!==y.rawcolliderset_coContainsPoint(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"coCastShape",value:function(e,t,r,n,i,a,o,s,u){P(t,e3),P(r,eZ),P(n,e3),P(i,eV),P(a,e3);var _=y.rawcolliderset_coCastShape(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o,s,u);return 0===_?void 0:e$.__wrap(_)}},{key:"coCastCollider",value:function(e,t,r,n,i,a,o){P(t,e3),P(n,e3);var s=y.rawcolliderset_coCastCollider(this.__wbg_ptr,e,t.__wbg_ptr,r,n.__wbg_ptr,i,a,o);return 0===s?void 0:$.__wrap(s)}},{key:"coIntersectsShape",value:function(e,t,r,n){return P(t,eZ),P(r,e3),P(n,eV),0!==y.rawcolliderset_coIntersectsShape(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr)}},{key:"coContactShape",value:function(e,t,r,n,i){P(t,eZ),P(r,e3),P(n,eV);var a=y.rawcolliderset_coContactShape(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i);return 0===a?void 0:e1.__wrap(a)}},{key:"coContactCollider",value:function(e,t,r){var n=y.rawcolliderset_coContactCollider(this.__wbg_ptr,e,t,r);return 0===n?void 0:e1.__wrap(n)}},{key:"coProjectPoint",value:function(e,t,r){P(t,e3);var n=y.rawcolliderset_coProjectPoint(this.__wbg_ptr,e,t.__wbg_ptr,r);return eM.__wrap(n)}},{key:"coIntersectsRay",value:function(e,t,r,n){return P(t,e3),P(r,e3),0!==y.rawcolliderset_coIntersectsRay(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n)}},{key:"coCastRay",value:function(e,t,r,n,i){return P(t,e3),P(r,e3),y.rawcolliderset_coCastRay(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n,i)}},{key:"coCastRayAndGetNormal",value:function(e,t,r,n,i){P(t,e3),P(r,e3);var a=y.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n,i);return 0===a?void 0:eO.__wrap(a)}},{key:"coSetSensor",value:function(e,t){y.rawcolliderset_coSetSensor(this.__wbg_ptr,e,t)}},{key:"coSetRestitution",value:function(e,t){y.rawcolliderset_coSetRestitution(this.__wbg_ptr,e,t)}},{key:"coSetFriction",value:function(e,t){y.rawcolliderset_coSetFriction(this.__wbg_ptr,e,t)}},{key:"coFrictionCombineRule",value:function(e){return y.rawcolliderset_coFrictionCombineRule(this.__wbg_ptr,e)>>>0}},{key:"coSetFrictionCombineRule",value:function(e,t){y.rawcolliderset_coSetFrictionCombineRule(this.__wbg_ptr,e,t)}},{key:"coRestitutionCombineRule",value:function(e){return y.rawcolliderset_coRestitutionCombineRule(this.__wbg_ptr,e)>>>0}},{key:"coSetRestitutionCombineRule",value:function(e,t){y.rawcolliderset_coSetRestitutionCombineRule(this.__wbg_ptr,e,t)}},{key:"coSetCollisionGroups",value:function(e,t){y.rawcolliderset_coSetCollisionGroups(this.__wbg_ptr,e,t)}},{key:"coSetSolverGroups",value:function(e,t){y.rawcolliderset_coSetSolverGroups(this.__wbg_ptr,e,t)}},{key:"coSetActiveHooks",value:function(e,t){y.rawcolliderset_coSetActiveHooks(this.__wbg_ptr,e,t)}},{key:"coSetActiveEvents",value:function(e,t){y.rawcolliderset_coSetActiveEvents(this.__wbg_ptr,e,t)}},{key:"coSetActiveCollisionTypes",value:function(e,t){y.rawcolliderset_coSetActiveCollisionTypes(this.__wbg_ptr,e,t)}},{key:"coSetShape",value:function(e,t){P(t,eZ),y.rawcolliderset_coSetShape(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"coSetContactForceEventThreshold",value:function(e,t){y.rawcolliderset_coSetContactForceEventThreshold(this.__wbg_ptr,e,t)}},{key:"coSetDensity",value:function(e,t){y.rawcolliderset_coSetDensity(this.__wbg_ptr,e,t)}},{key:"coSetMass",value:function(e,t){y.rawcolliderset_coSetMass(this.__wbg_ptr,e,t)}},{key:"coSetMassProperties",value:function(e,t,r,n,i){P(r,e3),P(n,e3),P(i,eV),y.rawcolliderset_coSetMassProperties(this.__wbg_ptr,e,t,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr)}},{key:"len",value:function(){return y.rawcolliderset_len(this.__wbg_ptr)>>>0}},{key:"contains",value:function(e){return 0!==y.rawcolliderset_contains(this.__wbg_ptr,e)}},{key:"createCollider",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h,w,f,d,p,v,g,b,k,m,R,S,C){try{var x=y.__wbindgen_add_to_stack_pointer(-16);P(t,eZ),P(r,e3),P(n,eV),P(o,e3),P(s,e3),P(u,eV),P(C,eW),y.rawcolliderset_createCollider(x,this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i,a,o.__wbg_ptr,s.__wbg_ptr,u.__wbg_ptr,_,l,c,h,w,f,d,p,v,g,b,k,m,R,S,C.__wbg_ptr);var A=E().getInt32(x+0,!0),I=E().getFloat64(x+8,!0);return 0===A?void 0:I}finally{y.__wbindgen_add_to_stack_pointer(16)}}},{key:"remove",value:function(e,t,r,n){P(t,ek),P(r,eW),y.rawcolliderset_remove(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n)}},{key:"isHandleValid",value:function(e){return 0!==y.rawcolliderset_contains(this.__wbg_ptr,e)}},{key:"forEachColliderHandle",value:function(e){try{y.rawcolliderset_forEachColliderHandle(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(Z.prototype);return t.__wbg_ptr=e,q.register(t,t.__wbg_ptr,t),t}}]),e}(),Q=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcollidershapecasthit_free(e>>>0,1)}),$=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcollidershapecasthit_free(e,0)}},{key:"colliderHandle",value:function(){return y.rawcharactercollision_handle(this.__wbg_ptr)}},{key:"time_of_impact",value:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}},{key:"witness1",value:function(){var e=y.rawcollidershapecasthit_witness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"witness2",value:function(){var e=y.rawcollidershapecasthit_witness2(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal1",value:function(){var e=y.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal2",value:function(){var e=y.rawcharactercollision_translationDeltaRemaining(this.__wbg_ptr);return e3.__wrap(e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create($.prototype);return t.__wbg_ptr=e,Q.register(t,t.__wbg_ptr,t),t}}]),e}(),ee=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcontactforceevent_free(e>>>0,1)}),et=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ee.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcontactforceevent_free(e,0)}},{key:"collider1",value:function(){return y.rawcharactercollision_handle(this.__wbg_ptr)}},{key:"collider2",value:function(){return y.rawcontactforceevent_collider2(this.__wbg_ptr)}},{key:"total_force",value:function(){var e=y.rawcontactforceevent_total_force(this.__wbg_ptr);return e3.__wrap(e)}},{key:"total_force_magnitude",value:function(){return y.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)}},{key:"max_force_direction",value:function(){var e=y.rawcontactforceevent_max_force_direction(this.__wbg_ptr);return e3.__wrap(e)}},{key:"max_force_magnitude",value:function(){return y.rawcontactforceevent_max_force_magnitude(this.__wbg_ptr)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(et.prototype);return t.__wbg_ptr=e,ee.register(t,t.__wbg_ptr,t),t}}]),e}(),er=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcontactmanifold_free(e>>>0,1)}),en=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,er.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcontactmanifold_free(e,0)}},{key:"normal",value:function(){var e=y.rawcontactmanifold_normal(this.__wbg_ptr);return e3.__wrap(e)}},{key:"local_n1",value:function(){var e=y.rawcontactmanifold_local_n1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"local_n2",value:function(){var e=y.rawcontactmanifold_local_n2(this.__wbg_ptr);return e3.__wrap(e)}},{key:"subshape1",value:function(){return y.rawcontactmanifold_subshape1(this.__wbg_ptr)>>>0}},{key:"subshape2",value:function(){return y.rawcontactmanifold_subshape2(this.__wbg_ptr)>>>0}},{key:"num_contacts",value:function(){return y.rawcontactmanifold_num_contacts(this.__wbg_ptr)>>>0}},{key:"contact_local_p1",value:function(e){var t=y.rawcontactmanifold_contact_local_p1(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"contact_local_p2",value:function(e){var t=y.rawcontactmanifold_contact_local_p2(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"contact_dist",value:function(e){return y.rawcontactmanifold_contact_dist(this.__wbg_ptr,e)}},{key:"contact_fid1",value:function(e){return y.rawcontactmanifold_contact_fid1(this.__wbg_ptr,e)>>>0}},{key:"contact_fid2",value:function(e){return y.rawcontactmanifold_contact_fid2(this.__wbg_ptr,e)>>>0}},{key:"contact_impulse",value:function(e){return y.rawcontactmanifold_contact_impulse(this.__wbg_ptr,e)}},{key:"contact_tangent_impulse_x",value:function(e){return y.rawcontactmanifold_contact_tangent_impulse_x(this.__wbg_ptr,e)}},{key:"contact_tangent_impulse_y",value:function(e){return y.rawcontactmanifold_contact_tangent_impulse_y(this.__wbg_ptr,e)}},{key:"num_solver_contacts",value:function(){return y.rawcontactmanifold_num_solver_contacts(this.__wbg_ptr)>>>0}},{key:"solver_contact_point",value:function(e){var t=y.rawcontactmanifold_solver_contact_point(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"solver_contact_dist",value:function(e){return y.rawcontactmanifold_solver_contact_dist(this.__wbg_ptr,e)}},{key:"solver_contact_friction",value:function(e){return y.rawcontactmanifold_solver_contact_friction(this.__wbg_ptr,e)}},{key:"solver_contact_restitution",value:function(e){return y.rawcontactmanifold_solver_contact_restitution(this.__wbg_ptr,e)}},{key:"solver_contact_tangent_velocity",value:function(e){var t=y.rawcontactmanifold_solver_contact_tangent_velocity(this.__wbg_ptr,e);return e3.__wrap(t)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(en.prototype);return t.__wbg_ptr=e,er.register(t,t.__wbg_ptr,t),t}}]),e}(),ei=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawcontactpair_free(e>>>0,1)}),ea=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ei.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawcontactpair_free(e,0)}},{key:"collider1",value:function(){return y.rawcontactpair_collider1(this.__wbg_ptr)}},{key:"collider2",value:function(){return y.rawcontactpair_collider2(this.__wbg_ptr)}},{key:"numContactManifolds",value:function(){return y.rawcontactpair_numContactManifolds(this.__wbg_ptr)>>>0}},{key:"contactManifold",value:function(e){var t=y.rawcontactpair_contactManifold(this.__wbg_ptr,e);return 0===t?void 0:en.__wrap(t)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(ea.prototype);return t.__wbg_ptr=e,ei.register(t,t.__wbg_ptr,t),t}}]),e}(),eo=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawdebugrenderpipeline_free(e>>>0,1)}),es=function(){function e(){o(this,e);var t=y.rawdebugrenderpipeline_new();return this.__wbg_ptr=t>>>0,eo.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eo.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawdebugrenderpipeline_free(e,0)}},{key:"vertices",value:function(){return A(y.rawdebugrenderpipeline_vertices(this.__wbg_ptr))}},{key:"colors",value:function(){return A(y.rawdebugrenderpipeline_colors(this.__wbg_ptr))}},{key:"render",value:function(e,t,r,n,i,a,o){try{P(e,eW),P(t,Z),P(r,ey),P(n,eC),P(i,eE),y.rawdebugrenderpipeline_render(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,T(o))}finally{v[I++]=void 0}}}]),e}(),eu=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawdeserializedworld_free(e>>>0,1)}),e_=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eu.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawdeserializedworld_free(e,0)}},{key:"takeGravity",value:function(){var e=y.rawdeserializedworld_takeGravity(this.__wbg_ptr);return 0===e?void 0:e3.__wrap(e)}},{key:"takeIntegrationParameters",value:function(){var e=y.rawdeserializedworld_takeIntegrationParameters(this.__wbg_ptr);return 0===e?void 0:eg.__wrap(e)}},{key:"takeIslandManager",value:function(){var e=y.rawdeserializedworld_takeIslandManager(this.__wbg_ptr);return 0===e?void 0:ek.__wrap(e)}},{key:"takeBroadPhase",value:function(){var e=y.rawdeserializedworld_takeBroadPhase(this.__wbg_ptr);return 0===e?void 0:V.__wrap(e)}},{key:"takeNarrowPhase",value:function(){var e=y.rawdeserializedworld_takeNarrowPhase(this.__wbg_ptr);return 0===e?void 0:eE.__wrap(e)}},{key:"takeBodies",value:function(){var e=y.rawdeserializedworld_takeBodies(this.__wbg_ptr);return 0===e?void 0:eW.__wrap(e)}},{key:"takeColliders",value:function(){var e=y.rawdeserializedworld_takeColliders(this.__wbg_ptr);return 0===e?void 0:Z.__wrap(e)}},{key:"takeImpulseJoints",value:function(){var e=y.rawdeserializedworld_takeImpulseJoints(this.__wbg_ptr);return 0===e?void 0:ey.__wrap(e)}},{key:"takeMultibodyJoints",value:function(){var e=y.rawdeserializedworld_takeMultibodyJoints(this.__wbg_ptr);return 0===e?void 0:eC.__wrap(e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(e_.prototype);return t.__wbg_ptr=e,eu.register(t,t.__wbg_ptr,t),t}}]),e}(),el=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawdynamicraycastvehiclecontroller_free(e>>>0,1)}),ec=function(){function e(t){o(this,e);var r=y.rawdynamicraycastvehiclecontroller_new(t);return this.__wbg_ptr=r>>>0,el.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,el.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawdynamicraycastvehiclecontroller_free(e,0)}},{key:"current_vehicle_speed",value:function(){return y.rawdynamicraycastvehiclecontroller_current_vehicle_speed(this.__wbg_ptr)}},{key:"chassis",value:function(){return y.rawdynamicraycastvehiclecontroller_chassis(this.__wbg_ptr)}},{key:"index_up_axis",value:function(){return y.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0}},{key:"set_index_up_axis",value:function(e){y.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,e)}},{key:"index_forward_axis",value:function(){return y.rawdynamicraycastvehiclecontroller_index_forward_axis(this.__wbg_ptr)>>>0}},{key:"set_index_forward_axis",value:function(e){y.rawdynamicraycastvehiclecontroller_set_index_forward_axis(this.__wbg_ptr,e)}},{key:"add_wheel",value:function(e,t,r,n,i){P(e,e3),P(t,e3),P(r,e3),y.rawdynamicraycastvehiclecontroller_add_wheel(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n,i)}},{key:"num_wheels",value:function(){return y.rawdynamicraycastvehiclecontroller_num_wheels(this.__wbg_ptr)>>>0}},{key:"update_vehicle",value:function(e,t,r,n,i,a,o,s){try{P(t,V),P(r,eE),P(n,eW),P(i,Z),y.rawdynamicraycastvehiclecontroller_update_vehicle(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,C(o)?0x100000001:o>>>0,T(s))}finally{v[I++]=void 0}}},{key:"wheel_chassis_connection_point_cs",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_chassis_connection_point_cs(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"set_wheel_chassis_connection_point_cs",value:function(e,t){P(t,e3),y.rawdynamicraycastvehiclecontroller_set_wheel_chassis_connection_point_cs(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"wheel_suspension_rest_length",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_rest_length(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_suspension_rest_length",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_suspension_rest_length(this.__wbg_ptr,e,t)}},{key:"wheel_max_suspension_travel",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_max_suspension_travel(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_max_suspension_travel",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_travel(this.__wbg_ptr,e,t)}},{key:"wheel_radius",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_radius(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_radius",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_radius(this.__wbg_ptr,e,t)}},{key:"wheel_suspension_stiffness",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_stiffness(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_suspension_stiffness",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_suspension_stiffness(this.__wbg_ptr,e,t)}},{key:"wheel_suspension_compression",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_compression(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_suspension_compression",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_suspension_compression(this.__wbg_ptr,e,t)}},{key:"wheel_suspension_relaxation",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_relaxation(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_suspension_relaxation",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_suspension_relaxation(this.__wbg_ptr,e,t)}},{key:"wheel_max_suspension_force",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_max_suspension_force(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_max_suspension_force",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_max_suspension_force(this.__wbg_ptr,e,t)}},{key:"wheel_brake",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_brake(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_brake",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_brake(this.__wbg_ptr,e,t)}},{key:"wheel_steering",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_steering(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_steering",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_steering(this.__wbg_ptr,e,t)}},{key:"wheel_engine_force",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_engine_force(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_engine_force",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_engine_force(this.__wbg_ptr,e,t)}},{key:"wheel_direction_cs",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_direction_cs(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"set_wheel_direction_cs",value:function(e,t){P(t,e3),y.rawdynamicraycastvehiclecontroller_set_wheel_direction_cs(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"wheel_axle_cs",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_axle_cs(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"set_wheel_axle_cs",value:function(e,t){P(t,e3),y.rawdynamicraycastvehiclecontroller_set_wheel_axle_cs(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"wheel_friction_slip",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_friction_slip(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_friction_slip",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_friction_slip(this.__wbg_ptr,e,t)}},{key:"wheel_side_friction_stiffness",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_side_friction_stiffness(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"set_wheel_side_friction_stiffness",value:function(e,t){y.rawdynamicraycastvehiclecontroller_set_wheel_side_friction_stiffness(this.__wbg_ptr,e,t)}},{key:"wheel_rotation",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_rotation(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"wheel_forward_impulse",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_forward_impulse(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"wheel_side_impulse",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_side_impulse(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"wheel_suspension_force",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_force(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"wheel_contact_normal_ws",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_contact_normal_ws(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"wheel_contact_point_ws",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_contact_point_ws(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"wheel_suspension_length",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_suspension_length(this.__wbg_ptr,e);return 0x100000001===t?void 0:t}},{key:"wheel_hard_point_ws",value:function(e){var t=y.rawdynamicraycastvehiclecontroller_wheel_hard_point_ws(this.__wbg_ptr,e);return 0===t?void 0:e3.__wrap(t)}},{key:"wheel_is_in_contact",value:function(e){return 0!==y.rawdynamicraycastvehiclecontroller_wheel_is_in_contact(this.__wbg_ptr,e)}},{key:"wheel_ground_object",value:function(e){try{var t=y.__wbindgen_add_to_stack_pointer(-16);y.rawdynamicraycastvehiclecontroller_wheel_ground_object(t,this.__wbg_ptr,e);var r=E().getInt32(t+0,!0),n=E().getFloat64(t+8,!0);return 0===r?void 0:n}finally{y.__wbindgen_add_to_stack_pointer(16)}}}]),e}(),eh=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_raweventqueue_free(e>>>0,1)}),ew=function(){function e(t){o(this,e);var r=y.raweventqueue_new(t);return this.__wbg_ptr=r>>>0,eh.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eh.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_raweventqueue_free(e,0)}},{key:"drainCollisionEvents",value:function(e){try{y.raweventqueue_drainCollisionEvents(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}},{key:"drainContactForceEvents",value:function(e){try{y.raweventqueue_drainContactForceEvents(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}},{key:"clear",value:function(){y.raweventqueue_clear(this.__wbg_ptr)}}]),e}(),ef=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawgenericjoint_free(e>>>0,1)}),ed=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ef.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawgenericjoint_free(e,0)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(ed.prototype);return t.__wbg_ptr=e,ef.register(t,t.__wbg_ptr,t),t}},{key:"generic",value:function(e,t,r,n){P(e,e3),P(t,e3),P(r,e3);var i=y.rawgenericjoint_generic(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n);return 0===i?void 0:ed.__wrap(i)}},{key:"spring",value:function(e,t,r,n,i){P(n,e3),P(i,e3);var a=y.rawgenericjoint_spring(e,t,r,n.__wbg_ptr,i.__wbg_ptr);return ed.__wrap(a)}},{key:"rope",value:function(e,t,r){P(t,e3),P(r,e3);var n=y.rawgenericjoint_rope(e,t.__wbg_ptr,r.__wbg_ptr);return ed.__wrap(n)}},{key:"spherical",value:function(e,t){P(e,e3),P(t,e3);var r=y.rawgenericjoint_spherical(e.__wbg_ptr,t.__wbg_ptr);return ed.__wrap(r)}},{key:"prismatic",value:function(e,t,r,n,i,a){P(e,e3),P(t,e3),P(r,e3);var o=y.rawgenericjoint_prismatic(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n,i,a);return 0===o?void 0:ed.__wrap(o)}},{key:"fixed",value:function(e,t,r,n){P(e,e3),P(t,eV),P(r,e3),P(n,eV);var i=y.rawgenericjoint_fixed(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr);return ed.__wrap(i)}},{key:"revolute",value:function(e,t,r){P(e,e3),P(t,e3),P(r,e3);var n=y.rawgenericjoint_revolute(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return 0===n?void 0:ed.__wrap(n)}}]),e}(),ep=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawimpulsejointset_free(e>>>0,1)}),ey=function(){function e(){o(this,e);var t=y.rawimpulsejointset_new();return this.__wbg_ptr=t>>>0,ep.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ep.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawimpulsejointset_free(e,0)}},{key:"jointType",value:function(e){return y.rawimpulsejointset_jointType(this.__wbg_ptr,e)}},{key:"jointBodyHandle1",value:function(e){return y.rawimpulsejointset_jointBodyHandle1(this.__wbg_ptr,e)}},{key:"jointBodyHandle2",value:function(e){return y.rawimpulsejointset_jointBodyHandle2(this.__wbg_ptr,e)}},{key:"jointFrameX1",value:function(e){var t=y.rawimpulsejointset_jointFrameX1(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"jointFrameX2",value:function(e){var t=y.rawimpulsejointset_jointFrameX2(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"jointAnchor1",value:function(e){var t=y.rawimpulsejointset_jointAnchor1(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"jointAnchor2",value:function(e){var t=y.rawimpulsejointset_jointAnchor2(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"jointSetAnchor1",value:function(e,t){P(t,e3),y.rawimpulsejointset_jointSetAnchor1(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"jointSetAnchor2",value:function(e,t){P(t,e3),y.rawimpulsejointset_jointSetAnchor2(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"jointContactsEnabled",value:function(e){return 0!==y.rawimpulsejointset_jointContactsEnabled(this.__wbg_ptr,e)}},{key:"jointSetContactsEnabled",value:function(e,t){y.rawimpulsejointset_jointSetContactsEnabled(this.__wbg_ptr,e,t)}},{key:"jointLimitsEnabled",value:function(e,t){return 0!==y.rawimpulsejointset_jointLimitsEnabled(this.__wbg_ptr,e,t)}},{key:"jointLimitsMin",value:function(e,t){return y.rawimpulsejointset_jointLimitsMin(this.__wbg_ptr,e,t)}},{key:"jointLimitsMax",value:function(e,t){return y.rawimpulsejointset_jointLimitsMax(this.__wbg_ptr,e,t)}},{key:"jointSetLimits",value:function(e,t,r,n){y.rawimpulsejointset_jointSetLimits(this.__wbg_ptr,e,t,r,n)}},{key:"jointConfigureMotorModel",value:function(e,t,r){y.rawimpulsejointset_jointConfigureMotorModel(this.__wbg_ptr,e,t,r)}},{key:"jointConfigureMotorVelocity",value:function(e,t,r,n){y.rawimpulsejointset_jointConfigureMotorVelocity(this.__wbg_ptr,e,t,r,n)}},{key:"jointConfigureMotorPosition",value:function(e,t,r,n,i){y.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr,e,t,r,n,i)}},{key:"jointConfigureMotor",value:function(e,t,r,n,i,a){y.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr,e,t,r,n,i,a)}},{key:"createJoint",value:function(e,t,r,n){return P(e,ed),y.rawimpulsejointset_createJoint(this.__wbg_ptr,e.__wbg_ptr,t,r,n)}},{key:"remove",value:function(e,t){y.rawimpulsejointset_remove(this.__wbg_ptr,e,t)}},{key:"len",value:function(){return y.rawimpulsejointset_len(this.__wbg_ptr)>>>0}},{key:"contains",value:function(e){return 0!==y.rawimpulsejointset_contains(this.__wbg_ptr,e)}},{key:"forEachJointHandle",value:function(e){try{y.rawimpulsejointset_forEachJointHandle(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}},{key:"forEachJointAttachedToRigidBody",value:function(e,t){try{y.rawimpulsejointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,e,T(t))}finally{v[I++]=void 0}}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(ey.prototype);return t.__wbg_ptr=e,ep.register(t,t.__wbg_ptr,t),t}}]),e}(),ev=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawintegrationparameters_free(e>>>0,1)}),eg=function(){function e(){o(this,e);var t=y.rawintegrationparameters_new();return this.__wbg_ptr=t>>>0,ev.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ev.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawintegrationparameters_free(e,0)}},{key:"dt",get:function(){return y.rawintegrationparameters_dt(this.__wbg_ptr)},set:function(e){y.rawintegrationparameters_set_dt(this.__wbg_ptr,e)}},{key:"contact_erp",get:function(){return y.rawintegrationparameters_contact_erp(this.__wbg_ptr)}},{key:"normalizedAllowedLinearError",get:function(){return y.rawintegrationparameters_normalizedAllowedLinearError(this.__wbg_ptr)},set:function(e){y.rawintegrationparameters_set_normalizedAllowedLinearError(this.__wbg_ptr,e)}},{key:"normalizedPredictionDistance",get:function(){return y.rawintegrationparameters_normalizedPredictionDistance(this.__wbg_ptr)},set:function(e){y.rawintegrationparameters_set_normalizedPredictionDistance(this.__wbg_ptr,e)}},{key:"numSolverIterations",get:function(){return y.rawintegrationparameters_numSolverIterations(this.__wbg_ptr)>>>0},set:function(e){y.rawintegrationparameters_set_numSolverIterations(this.__wbg_ptr,e)}},{key:"numInternalPgsIterations",get:function(){return y.rawdynamicraycastvehiclecontroller_index_up_axis(this.__wbg_ptr)>>>0},set:function(e){y.rawdynamicraycastvehiclecontroller_set_index_up_axis(this.__wbg_ptr,e)}},{key:"minIslandSize",get:function(){return y.rawintegrationparameters_minIslandSize(this.__wbg_ptr)>>>0},set:function(e){y.rawintegrationparameters_set_minIslandSize(this.__wbg_ptr,e)}},{key:"maxCcdSubsteps",get:function(){return y.rawintegrationparameters_maxCcdSubsteps(this.__wbg_ptr)>>>0},set:function(e){y.rawintegrationparameters_set_maxCcdSubsteps(this.__wbg_ptr,e)}},{key:"lengthUnit",get:function(){return y.rawcontactforceevent_total_force_magnitude(this.__wbg_ptr)},set:function(e){y.rawintegrationparameters_set_lengthUnit(this.__wbg_ptr,e)}},{key:"contact_natural_frequency",set:function(e){y.rawintegrationparameters_set_contact_natural_frequency(this.__wbg_ptr,e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eg.prototype);return t.__wbg_ptr=e,ev.register(t,t.__wbg_ptr,t),t}}]),e}(),eb=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawislandmanager_free(e>>>0,1)}),ek=function(){function e(){o(this,e);var t=y.rawislandmanager_new();return this.__wbg_ptr=t>>>0,eb.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eb.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawislandmanager_free(e,0)}},{key:"forEachActiveRigidBodyHandle",value:function(e){try{y.rawislandmanager_forEachActiveRigidBodyHandle(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(ek.prototype);return t.__wbg_ptr=e,eb.register(t,t.__wbg_ptr,t),t}}]),e}(),em=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawkinematiccharactercontroller_free(e>>>0,1)}),eR=function(){function e(t){o(this,e);var r=y.rawkinematiccharactercontroller_new(t);return this.__wbg_ptr=r>>>0,em.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,em.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawkinematiccharactercontroller_free(e,0)}},{key:"up",value:function(){var e=y.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return e3.__wrap(e)}},{key:"setUp",value:function(e){P(e,e3),y.rawkinematiccharactercontroller_setUp(this.__wbg_ptr,e.__wbg_ptr)}},{key:"normalNudgeFactor",value:function(){return y.rawkinematiccharactercontroller_normalNudgeFactor(this.__wbg_ptr)}},{key:"setNormalNudgeFactor",value:function(e){y.rawkinematiccharactercontroller_setNormalNudgeFactor(this.__wbg_ptr,e)}},{key:"offset",value:function(){return y.rawkinematiccharactercontroller_offset(this.__wbg_ptr)}},{key:"setOffset",value:function(e){y.rawkinematiccharactercontroller_setOffset(this.__wbg_ptr,e)}},{key:"slideEnabled",value:function(){return 0!==y.rawkinematiccharactercontroller_slideEnabled(this.__wbg_ptr)}},{key:"setSlideEnabled",value:function(e){y.rawkinematiccharactercontroller_setSlideEnabled(this.__wbg_ptr,e)}},{key:"autostepMaxHeight",value:function(){var e=y.rawkinematiccharactercontroller_autostepMaxHeight(this.__wbg_ptr);return 0x100000001===e?void 0:e}},{key:"autostepMinWidth",value:function(){var e=y.rawkinematiccharactercontroller_autostepMinWidth(this.__wbg_ptr);return 0x100000001===e?void 0:e}},{key:"autostepIncludesDynamicBodies",value:function(){var e=y.rawkinematiccharactercontroller_autostepIncludesDynamicBodies(this.__wbg_ptr);return 0xffffff===e?void 0:0!==e}},{key:"autostepEnabled",value:function(){return 0!==y.rawkinematiccharactercontroller_autostepEnabled(this.__wbg_ptr)}},{key:"enableAutostep",value:function(e,t,r){y.rawkinematiccharactercontroller_enableAutostep(this.__wbg_ptr,e,t,r)}},{key:"disableAutostep",value:function(){y.rawkinematiccharactercontroller_disableAutostep(this.__wbg_ptr)}},{key:"maxSlopeClimbAngle",value:function(){return y.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}},{key:"setMaxSlopeClimbAngle",value:function(e){y.rawkinematiccharactercontroller_setMaxSlopeClimbAngle(this.__wbg_ptr,e)}},{key:"minSlopeSlideAngle",value:function(){return y.rawkinematiccharactercontroller_minSlopeSlideAngle(this.__wbg_ptr)}},{key:"setMinSlopeSlideAngle",value:function(e){y.rawkinematiccharactercontroller_setMinSlopeSlideAngle(this.__wbg_ptr,e)}},{key:"snapToGroundDistance",value:function(){var e=y.rawkinematiccharactercontroller_snapToGroundDistance(this.__wbg_ptr);return 0x100000001===e?void 0:e}},{key:"enableSnapToGround",value:function(e){y.rawkinematiccharactercontroller_enableSnapToGround(this.__wbg_ptr,e)}},{key:"disableSnapToGround",value:function(){y.rawkinematiccharactercontroller_disableSnapToGround(this.__wbg_ptr)}},{key:"snapToGroundEnabled",value:function(){return 0!==y.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr)}},{key:"computeColliderMovement",value:function(e,t,r,n,i,a,o,s,u,_,l,c){try{P(t,V),P(r,eE),P(n,eW),P(i,Z),P(o,e3),y.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a,o.__wbg_ptr,s,C(u)?0x100000001:Math.fround(u),_,C(l)?0x100000001:l>>>0,T(c))}finally{v[I++]=void 0}}},{key:"computedMovement",value:function(){var e=y.rawkinematiccharactercontroller_computedMovement(this.__wbg_ptr);return e3.__wrap(e)}},{key:"computedGrounded",value:function(){return 0!==y.rawkinematiccharactercontroller_computedGrounded(this.__wbg_ptr)}},{key:"numComputedCollisions",value:function(){return y.rawkinematiccharactercontroller_numComputedCollisions(this.__wbg_ptr)>>>0}},{key:"computedCollision",value:function(e,t){return P(t,Y),0!==y.rawkinematiccharactercontroller_computedCollision(this.__wbg_ptr,e,t.__wbg_ptr)}}]),e}(),eS=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawmultibodyjointset_free(e>>>0,1)}),eC=function(){function e(){o(this,e);var t=y.rawmultibodyjointset_new();return this.__wbg_ptr=t>>>0,eS.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eS.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawmultibodyjointset_free(e,0)}},{key:"jointType",value:function(e){return y.rawmultibodyjointset_jointType(this.__wbg_ptr,e)}},{key:"jointFrameX1",value:function(e){var t=y.rawmultibodyjointset_jointFrameX1(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"jointFrameX2",value:function(e){var t=y.rawmultibodyjointset_jointFrameX2(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"jointAnchor1",value:function(e){var t=y.rawmultibodyjointset_jointAnchor1(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"jointAnchor2",value:function(e){var t=y.rawmultibodyjointset_jointAnchor2(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"jointContactsEnabled",value:function(e){return 0!==y.rawmultibodyjointset_jointContactsEnabled(this.__wbg_ptr,e)}},{key:"jointSetContactsEnabled",value:function(e,t){y.rawmultibodyjointset_jointSetContactsEnabled(this.__wbg_ptr,e,t)}},{key:"jointLimitsEnabled",value:function(e,t){return 0!==y.rawmultibodyjointset_jointLimitsEnabled(this.__wbg_ptr,e,t)}},{key:"jointLimitsMin",value:function(e,t){return y.rawmultibodyjointset_jointLimitsMin(this.__wbg_ptr,e,t)}},{key:"jointLimitsMax",value:function(e,t){return y.rawmultibodyjointset_jointLimitsMax(this.__wbg_ptr,e,t)}},{key:"createJoint",value:function(e,t,r,n){return P(e,ed),y.rawmultibodyjointset_createJoint(this.__wbg_ptr,e.__wbg_ptr,t,r,n)}},{key:"remove",value:function(e,t){y.rawmultibodyjointset_remove(this.__wbg_ptr,e,t)}},{key:"contains",value:function(e){return 0!==y.rawmultibodyjointset_contains(this.__wbg_ptr,e)}},{key:"forEachJointHandle",value:function(e){try{y.rawmultibodyjointset_forEachJointHandle(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}},{key:"forEachJointAttachedToRigidBody",value:function(e,t){try{y.rawmultibodyjointset_forEachJointAttachedToRigidBody(this.__wbg_ptr,e,T(t))}finally{v[I++]=void 0}}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eC.prototype);return t.__wbg_ptr=e,eS.register(t,t.__wbg_ptr,t),t}}]),e}(),ex=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawnarrowphase_free(e>>>0,1)}),eE=function(){function e(){o(this,e);var t=y.rawnarrowphase_new();return this.__wbg_ptr=t>>>0,ex.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ex.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawnarrowphase_free(e,0)}},{key:"contact_pairs_with",value:function(e,t){y.rawnarrowphase_contact_pairs_with(this.__wbg_ptr,e,b(t))}},{key:"contact_pair",value:function(e,t){var r=y.rawnarrowphase_contact_pair(this.__wbg_ptr,e,t);return 0===r?void 0:ea.__wrap(r)}},{key:"intersection_pairs_with",value:function(e,t){y.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr,e,b(t))}},{key:"intersection_pair",value:function(e,t){return 0!==y.rawnarrowphase_intersection_pair(this.__wbg_ptr,e,t)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eE.prototype);return t.__wbg_ptr=e,ex.register(t,t.__wbg_ptr,t),t}}]),e}(),eA=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawphysicspipeline_free(e>>>0,1)}),eP=function(){function e(){o(this,e);var t=y.rawphysicspipeline_new();return this.__wbg_ptr=t>>>0,eA.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eA.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawphysicspipeline_free(e,0)}},{key:"set_profiler_enabled",value:function(e){y.rawphysicspipeline_set_profiler_enabled(this.__wbg_ptr,e)}},{key:"is_profiler_enabled",value:function(){return 0!==y.rawphysicspipeline_is_profiler_enabled(this.__wbg_ptr)}},{key:"timing_step",value:function(){return y.rawphysicspipeline_timing_step(this.__wbg_ptr)}},{key:"timing_collision_detection",value:function(){return y.rawphysicspipeline_timing_collision_detection(this.__wbg_ptr)}},{key:"timing_broad_phase",value:function(){return y.rawphysicspipeline_timing_broad_phase(this.__wbg_ptr)}},{key:"timing_narrow_phase",value:function(){return y.rawphysicspipeline_timing_narrow_phase(this.__wbg_ptr)}},{key:"timing_solver",value:function(){return y.rawphysicspipeline_timing_solver(this.__wbg_ptr)}},{key:"timing_velocity_assembly",value:function(){return y.rawphysicspipeline_timing_velocity_assembly(this.__wbg_ptr)}},{key:"timing_velocity_resolution",value:function(){return y.rawphysicspipeline_timing_velocity_resolution(this.__wbg_ptr)}},{key:"timing_velocity_update",value:function(){return y.rawphysicspipeline_timing_velocity_update(this.__wbg_ptr)}},{key:"timing_velocity_writeback",value:function(){return y.rawphysicspipeline_timing_velocity_writeback(this.__wbg_ptr)}},{key:"timing_ccd",value:function(){return y.rawphysicspipeline_timing_ccd(this.__wbg_ptr)}},{key:"timing_ccd_toi_computation",value:function(){return y.rawphysicspipeline_timing_ccd_toi_computation(this.__wbg_ptr)}},{key:"timing_ccd_broad_phase",value:function(){return y.rawphysicspipeline_timing_ccd_broad_phase(this.__wbg_ptr)}},{key:"timing_ccd_narrow_phase",value:function(){return y.rawphysicspipeline_timing_ccd_narrow_phase(this.__wbg_ptr)}},{key:"timing_ccd_solver",value:function(){return y.rawphysicspipeline_timing_ccd_solver(this.__wbg_ptr)}},{key:"timing_island_construction",value:function(){return y.rawphysicspipeline_timing_island_construction(this.__wbg_ptr)}},{key:"timing_user_changes",value:function(){return y.rawphysicspipeline_timing_user_changes(this.__wbg_ptr)}},{key:"step",value:function(e,t,r,n,i,a,o,s,u,_){P(e,e3),P(t,eg),P(r,ek),P(n,V),P(i,eE),P(a,eW),P(o,Z),P(s,ey),P(u,eC),P(_,X),y.rawphysicspipeline_step(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o.__wbg_ptr,s.__wbg_ptr,u.__wbg_ptr,_.__wbg_ptr)}},{key:"stepWithEvents",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h,w){P(e,e3),P(t,eg),P(r,ek),P(n,V),P(i,eE),P(a,eW),P(o,Z),P(s,ey),P(u,eC),P(_,X),P(l,ew),y.rawphysicspipeline_stepWithEvents(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o.__wbg_ptr,s.__wbg_ptr,u.__wbg_ptr,_.__wbg_ptr,l.__wbg_ptr,b(c),b(h),b(w))}}]),e}(),eI=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawpidcontroller_free(e>>>0,1)}),eT=function(){function e(t,r,n,i){o(this,e);var a=y.rawpidcontroller_new(t,r,n,i);return this.__wbg_ptr=a>>>0,eI.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eI.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawpidcontroller_free(e,0)}},{key:"set_kp",value:function(e,t){y.rawpidcontroller_set_kp(this.__wbg_ptr,e,t)}},{key:"set_ki",value:function(e,t){y.rawpidcontroller_set_ki(this.__wbg_ptr,e,t)}},{key:"set_kd",value:function(e,t){y.rawpidcontroller_set_kd(this.__wbg_ptr,e,t)}},{key:"set_axes_mask",value:function(e){y.rawpidcontroller_set_axes_mask(this.__wbg_ptr,e)}},{key:"reset_integrals",value:function(){y.rawpidcontroller_reset_integrals(this.__wbg_ptr)}},{key:"apply_linear_correction",value:function(e,t,r,n,i){P(t,eW),P(n,e3),P(i,e3),y.rawpidcontroller_apply_linear_correction(this.__wbg_ptr,e,t.__wbg_ptr,r,n.__wbg_ptr,i.__wbg_ptr)}},{key:"apply_angular_correction",value:function(e,t,r,n,i){P(t,eW),P(n,eV),P(i,e3),y.rawpidcontroller_apply_angular_correction(this.__wbg_ptr,e,t.__wbg_ptr,r,n.__wbg_ptr,i.__wbg_ptr)}},{key:"linear_correction",value:function(e,t,r,n,i){P(t,eW),P(n,e3),P(i,e3);var a=y.rawpidcontroller_linear_correction(this.__wbg_ptr,e,t.__wbg_ptr,r,n.__wbg_ptr,i.__wbg_ptr);return e3.__wrap(a)}},{key:"angular_correction",value:function(e,t,r,n,i){P(t,eW),P(n,eV),P(i,e3);var a=y.rawpidcontroller_angular_correction(this.__wbg_ptr,e,t.__wbg_ptr,r,n.__wbg_ptr,i.__wbg_ptr);return e3.__wrap(a)}}]),e}(),eF=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawpointcolliderprojection_free(e>>>0,1)}),ez=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eF.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawpointcolliderprojection_free(e,0)}},{key:"colliderHandle",value:function(){return y.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}},{key:"point",value:function(){var e=y.rawpointcolliderprojection_point(this.__wbg_ptr);return e3.__wrap(e)}},{key:"isInside",value:function(){return 0!==y.rawpointcolliderprojection_isInside(this.__wbg_ptr)}},{key:"featureType",value:function(){return y.rawpointcolliderprojection_featureType(this.__wbg_ptr)}},{key:"featureId",value:function(){var e=y.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 0x100000001===e?void 0:e}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(ez.prototype);return t.__wbg_ptr=e,eF.register(t,t.__wbg_ptr,t),t}}]),e}(),ej=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawpointprojection_free(e>>>0,1)}),eM=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,ej.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawpointprojection_free(e,0)}},{key:"point",value:function(){var e=y.rawpointprojection_point(this.__wbg_ptr);return e3.__wrap(e)}},{key:"isInside",value:function(){return 0!==y.rawpointprojection_isInside(this.__wbg_ptr)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eM.prototype);return t.__wbg_ptr=e,ej.register(t,t.__wbg_ptr,t),t}}]),e}(),eD=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawraycolliderhit_free(e>>>0,1)}),eL=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eD.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawraycolliderhit_free(e,0)}},{key:"colliderHandle",value:function(){return y.rawcharactercollision_handle(this.__wbg_ptr)}},{key:"timeOfImpact",value:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eL.prototype);return t.__wbg_ptr=e,eD.register(t,t.__wbg_ptr,t),t}}]),e}(),eH=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawraycolliderintersection_free(e>>>0,1)}),eN=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eH.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawraycolliderintersection_free(e,0)}},{key:"colliderHandle",value:function(){return y.rawpointcolliderprojection_colliderHandle(this.__wbg_ptr)}},{key:"normal",value:function(){var e=y.rawcollidershapecasthit_witness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"time_of_impact",value:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}},{key:"featureType",value:function(){return y.rawpointcolliderprojection_featureType(this.__wbg_ptr)}},{key:"featureId",value:function(){var e=y.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 0x100000001===e?void 0:e}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eN.prototype);return t.__wbg_ptr=e,eH.register(t,t.__wbg_ptr,t),t}}]),e}(),eG=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawrayintersection_free(e>>>0,1)}),eO=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eG.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawrayintersection_free(e,0)}},{key:"normal",value:function(){var e=y.rawcollidershapecasthit_witness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"time_of_impact",value:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}},{key:"featureType",value:function(){return y.rawpointcolliderprojection_featureType(this.__wbg_ptr)}},{key:"featureId",value:function(){var e=y.rawpointcolliderprojection_featureId(this.__wbg_ptr);return 0x100000001===e?void 0:e}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eO.prototype);return t.__wbg_ptr=e,eG.register(t,t.__wbg_ptr,t),t}}]),e}(),eB=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawrigidbodyset_free(e>>>0,1)}),eW=function(){function e(){o(this,e);var t=y.rawrigidbodyset_new();return this.__wbg_ptr=t>>>0,eB.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eB.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawrigidbodyset_free(e,0)}},{key:"rbTranslation",value:function(e){var t=y.rawrigidbodyset_rbTranslation(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbRotation",value:function(e){var t=y.rawrigidbodyset_rbRotation(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"rbSleep",value:function(e){y.rawrigidbodyset_rbSleep(this.__wbg_ptr,e)}},{key:"rbIsSleeping",value:function(e){return 0!==y.rawrigidbodyset_rbIsSleeping(this.__wbg_ptr,e)}},{key:"rbIsMoving",value:function(e){return 0!==y.rawrigidbodyset_rbIsMoving(this.__wbg_ptr,e)}},{key:"rbNextTranslation",value:function(e){var t=y.rawrigidbodyset_rbNextTranslation(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbNextRotation",value:function(e){var t=y.rawrigidbodyset_rbNextRotation(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"rbSetTranslation",value:function(e,t,r,n,i){y.rawrigidbodyset_rbSetTranslation(this.__wbg_ptr,e,t,r,n,i)}},{key:"rbSetRotation",value:function(e,t,r,n,i,a){y.rawrigidbodyset_rbSetRotation(this.__wbg_ptr,e,t,r,n,i,a)}},{key:"rbSetLinvel",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbSetLinvel(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbSetAngvel",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbSetAngvel(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbSetNextKinematicTranslation",value:function(e,t,r,n){y.rawrigidbodyset_rbSetNextKinematicTranslation(this.__wbg_ptr,e,t,r,n)}},{key:"rbSetNextKinematicRotation",value:function(e,t,r,n,i){y.rawrigidbodyset_rbSetNextKinematicRotation(this.__wbg_ptr,e,t,r,n,i)}},{key:"rbRecomputeMassPropertiesFromColliders",value:function(e,t){P(t,Z),y.rawrigidbodyset_rbRecomputeMassPropertiesFromColliders(this.__wbg_ptr,e,t.__wbg_ptr)}},{key:"rbSetAdditionalMass",value:function(e,t,r){y.rawrigidbodyset_rbSetAdditionalMass(this.__wbg_ptr,e,t,r)}},{key:"rbSetAdditionalMassProperties",value:function(e,t,r,n,i,a){P(r,e3),P(n,e3),P(i,eV),y.rawrigidbodyset_rbSetAdditionalMassProperties(this.__wbg_ptr,e,t,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a)}},{key:"rbLinvel",value:function(e){var t=y.rawrigidbodyset_rbLinvel(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbAngvel",value:function(e){var t=y.rawrigidbodyset_rbAngvel(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbVelocityAtPoint",value:function(e,t){P(t,e3);var r=y.rawrigidbodyset_rbVelocityAtPoint(this.__wbg_ptr,e,t.__wbg_ptr);return e3.__wrap(r)}},{key:"rbLockTranslations",value:function(e,t,r){y.rawrigidbodyset_rbLockTranslations(this.__wbg_ptr,e,t,r)}},{key:"rbSetEnabledTranslations",value:function(e,t,r,n,i){y.rawrigidbodyset_rbSetEnabledTranslations(this.__wbg_ptr,e,t,r,n,i)}},{key:"rbLockRotations",value:function(e,t,r){y.rawrigidbodyset_rbLockRotations(this.__wbg_ptr,e,t,r)}},{key:"rbSetEnabledRotations",value:function(e,t,r,n,i){y.rawrigidbodyset_rbSetEnabledRotations(this.__wbg_ptr,e,t,r,n,i)}},{key:"rbDominanceGroup",value:function(e){return y.rawrigidbodyset_rbDominanceGroup(this.__wbg_ptr,e)}},{key:"rbSetDominanceGroup",value:function(e,t){y.rawrigidbodyset_rbSetDominanceGroup(this.__wbg_ptr,e,t)}},{key:"rbEnableCcd",value:function(e,t){y.rawrigidbodyset_rbEnableCcd(this.__wbg_ptr,e,t)}},{key:"rbSetSoftCcdPrediction",value:function(e,t){y.rawrigidbodyset_rbSetSoftCcdPrediction(this.__wbg_ptr,e,t)}},{key:"rbMass",value:function(e){return y.rawrigidbodyset_rbMass(this.__wbg_ptr,e)}},{key:"rbInvMass",value:function(e){return y.rawrigidbodyset_rbInvMass(this.__wbg_ptr,e)}},{key:"rbEffectiveInvMass",value:function(e){var t=y.rawrigidbodyset_rbEffectiveInvMass(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbLocalCom",value:function(e){var t=y.rawrigidbodyset_rbLocalCom(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbWorldCom",value:function(e){var t=y.rawrigidbodyset_rbWorldCom(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbInvPrincipalInertia",value:function(e){var t=y.rawrigidbodyset_rbInvPrincipalInertia(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbPrincipalInertiaLocalFrame",value:function(e){var t=y.rawrigidbodyset_rbPrincipalInertiaLocalFrame(this.__wbg_ptr,e);return eV.__wrap(t)}},{key:"rbPrincipalInertia",value:function(e){var t=y.rawrigidbodyset_rbPrincipalInertia(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbEffectiveWorldInvInertia",value:function(e){var t=y.rawrigidbodyset_rbEffectiveWorldInvInertia(this.__wbg_ptr,e);return eX.__wrap(t)}},{key:"rbEffectiveAngularInertia",value:function(e){var t=y.rawrigidbodyset_rbEffectiveAngularInertia(this.__wbg_ptr,e);return eX.__wrap(t)}},{key:"rbWakeUp",value:function(e){y.rawrigidbodyset_rbWakeUp(this.__wbg_ptr,e)}},{key:"rbIsCcdEnabled",value:function(e){return 0!==y.rawrigidbodyset_rbIsCcdEnabled(this.__wbg_ptr,e)}},{key:"rbSoftCcdPrediction",value:function(e){return y.rawrigidbodyset_rbSoftCcdPrediction(this.__wbg_ptr,e)}},{key:"rbNumColliders",value:function(e){return y.rawrigidbodyset_rbNumColliders(this.__wbg_ptr,e)>>>0}},{key:"rbCollider",value:function(e,t){return y.rawrigidbodyset_rbCollider(this.__wbg_ptr,e,t)}},{key:"rbBodyType",value:function(e){return y.rawrigidbodyset_rbBodyType(this.__wbg_ptr,e)}},{key:"rbSetBodyType",value:function(e,t,r){y.rawrigidbodyset_rbSetBodyType(this.__wbg_ptr,e,t,r)}},{key:"rbIsFixed",value:function(e){return 0!==y.rawrigidbodyset_rbIsFixed(this.__wbg_ptr,e)}},{key:"rbIsKinematic",value:function(e){return 0!==y.rawrigidbodyset_rbIsKinematic(this.__wbg_ptr,e)}},{key:"rbIsDynamic",value:function(e){return 0!==y.rawrigidbodyset_rbIsDynamic(this.__wbg_ptr,e)}},{key:"rbLinearDamping",value:function(e){return y.rawrigidbodyset_rbLinearDamping(this.__wbg_ptr,e)}},{key:"rbAngularDamping",value:function(e){return y.rawrigidbodyset_rbAngularDamping(this.__wbg_ptr,e)}},{key:"rbSetLinearDamping",value:function(e,t){y.rawrigidbodyset_rbSetLinearDamping(this.__wbg_ptr,e,t)}},{key:"rbSetAngularDamping",value:function(e,t){y.rawrigidbodyset_rbSetAngularDamping(this.__wbg_ptr,e,t)}},{key:"rbSetEnabled",value:function(e,t){y.rawrigidbodyset_rbSetEnabled(this.__wbg_ptr,e,t)}},{key:"rbIsEnabled",value:function(e){return 0!==y.rawrigidbodyset_rbIsEnabled(this.__wbg_ptr,e)}},{key:"rbGravityScale",value:function(e){return y.rawrigidbodyset_rbGravityScale(this.__wbg_ptr,e)}},{key:"rbSetGravityScale",value:function(e,t,r){y.rawrigidbodyset_rbSetGravityScale(this.__wbg_ptr,e,t,r)}},{key:"rbResetForces",value:function(e,t){y.rawrigidbodyset_rbResetForces(this.__wbg_ptr,e,t)}},{key:"rbResetTorques",value:function(e,t){y.rawrigidbodyset_rbResetTorques(this.__wbg_ptr,e,t)}},{key:"rbAddForce",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbAddForce(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbApplyImpulse",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbApplyImpulse(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbAddTorque",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbAddTorque(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbApplyTorqueImpulse",value:function(e,t,r){P(t,e3),y.rawrigidbodyset_rbApplyTorqueImpulse(this.__wbg_ptr,e,t.__wbg_ptr,r)}},{key:"rbAddForceAtPoint",value:function(e,t,r,n){P(t,e3),P(r,e3),y.rawrigidbodyset_rbAddForceAtPoint(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n)}},{key:"rbApplyImpulseAtPoint",value:function(e,t,r,n){P(t,e3),P(r,e3),y.rawrigidbodyset_rbApplyImpulseAtPoint(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n)}},{key:"rbAdditionalSolverIterations",value:function(e){return y.rawrigidbodyset_rbAdditionalSolverIterations(this.__wbg_ptr,e)>>>0}},{key:"rbSetAdditionalSolverIterations",value:function(e,t){y.rawrigidbodyset_rbSetAdditionalSolverIterations(this.__wbg_ptr,e,t)}},{key:"rbUserData",value:function(e){return y.rawrigidbodyset_rbUserData(this.__wbg_ptr,e)>>>0}},{key:"rbSetUserData",value:function(e,t){y.rawrigidbodyset_rbSetUserData(this.__wbg_ptr,e,t)}},{key:"rbUserForce",value:function(e){var t=y.rawrigidbodyset_rbUserForce(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"rbUserTorque",value:function(e){var t=y.rawrigidbodyset_rbUserTorque(this.__wbg_ptr,e);return e3.__wrap(t)}},{key:"createRigidBody",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h,w,f,d,p,v,g,b,k,m,R,S,C,x){return P(t,e3),P(r,eV),P(o,e3),P(s,e3),P(u,e3),P(_,e3),P(l,eV),y.rawrigidbodyset_createRigidBody(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n,i,a,o.__wbg_ptr,s.__wbg_ptr,u.__wbg_ptr,_.__wbg_ptr,l.__wbg_ptr,c,h,w,f,d,p,v,g,b,k,m,R,S,C,x)}},{key:"remove",value:function(e,t,r,n,i){P(t,ek),P(r,Z),P(n,ey),P(i,eC),y.rawrigidbodyset_remove(this.__wbg_ptr,e,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr)}},{key:"len",value:function(){return y.rawrigidbodyset_len(this.__wbg_ptr)>>>0}},{key:"contains",value:function(e){return 0!==y.rawrigidbodyset_contains(this.__wbg_ptr,e)}},{key:"forEachRigidBodyHandle",value:function(e){try{y.rawrigidbodyset_forEachRigidBodyHandle(this.__wbg_ptr,T(e))}finally{v[I++]=void 0}}},{key:"propagateModifiedBodyPositionsToColliders",value:function(e){P(e,Z),y.rawrigidbodyset_propagateModifiedBodyPositionsToColliders(this.__wbg_ptr,e.__wbg_ptr)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eW.prototype);return t.__wbg_ptr=e,eB.register(t,t.__wbg_ptr,t),t}}]),e}(),eJ=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawrotation_free(e>>>0,1)}),eV=function(){function e(t,r,n,i){o(this,e);var a=y.rawrotation_new(t,r,n,i);return this.__wbg_ptr=a>>>0,eJ.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eJ.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawrotation_free(e,0)}},{key:"x",get:function(){return y.rawintegrationparameters_dt(this.__wbg_ptr)}},{key:"y",get:function(){return y.rawkinematiccharactercontroller_offset(this.__wbg_ptr)}},{key:"z",get:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)}},{key:"w",get:function(){return y.rawrotation_w(this.__wbg_ptr)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eV.prototype);return t.__wbg_ptr=e,eJ.register(t,t.__wbg_ptr,t),t}},{key:"identity",value:function(){var e=y.rawrotation_identity();return eV.__wrap(e)}}]),e}(),eU=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawsdpmatrix3_free(e>>>0,1)}),eX=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eU.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawsdpmatrix3_free(e,0)}},{key:"elements",value:function(){return A(y.rawsdpmatrix3_elements(this.__wbg_ptr))}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eX.prototype);return t.__wbg_ptr=e,eU.register(t,t.__wbg_ptr,t),t}}]),e}(),eK=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawserializationpipeline_free(e>>>0,1)}),eY=function(){function e(){o(this,e);var t=y.rawccdsolver_new();return this.__wbg_ptr=t>>>0,eK.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eK.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawserializationpipeline_free(e,0)}},{key:"serializeAll",value:function(e,t,r,n,i,a,o,s,u){return P(e,e3),P(t,eg),P(r,ek),P(n,V),P(i,eE),P(a,eW),P(o,Z),P(s,ey),P(u,eC),A(y.rawserializationpipeline_serializeAll(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o.__wbg_ptr,s.__wbg_ptr,u.__wbg_ptr))}},{key:"deserializeAll",value:function(e){var t=y.rawserializationpipeline_deserializeAll(this.__wbg_ptr,b(e));return 0===t?void 0:e_.__wrap(t)}}]),e}(),eq=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawshape_free(e>>>0,1)}),eZ=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eq.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawshape_free(e,0)}},{key:"castShape",value:function(e,t,r,n,i,a,o,s,u,_){P(e,e3),P(t,eV),P(r,e3),P(n,eZ),P(i,e3),P(a,eV),P(o,e3);var l=y.rawshape_castShape(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a.__wbg_ptr,o.__wbg_ptr,s,u,_);return 0===l?void 0:e$.__wrap(l)}},{key:"intersectsShape",value:function(e,t,r,n,i){return P(e,e3),P(t,eV),P(r,eZ),P(n,e3),P(i,eV),0!==y.rawshape_intersectsShape(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr)}},{key:"contactShape",value:function(e,t,r,n,i,a){P(e,e3),P(t,eV),P(r,eZ),P(n,e3),P(i,eV);var o=y.rawshape_contactShape(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i.__wbg_ptr,a);return 0===o?void 0:e1.__wrap(o)}},{key:"containsPoint",value:function(e,t,r){return P(e,e3),P(t,eV),P(r,e3),0!==y.rawshape_containsPoint(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr)}},{key:"projectPoint",value:function(e,t,r,n){P(e,e3),P(t,eV),P(r,e3);var i=y.rawshape_projectPoint(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n);return eM.__wrap(i)}},{key:"intersectsRay",value:function(e,t,r,n,i){return P(e,e3),P(t,eV),P(r,e3),P(n,e3),0!==y.rawshape_intersectsRay(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i)}},{key:"castRay",value:function(e,t,r,n,i,a){return P(e,e3),P(t,eV),P(r,e3),P(n,e3),y.rawshape_castRay(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i,a)}},{key:"castRayAndGetNormal",value:function(e,t,r,n,i,a){P(e,e3),P(t,eV),P(r,e3),P(n,e3);var o=y.rawshape_castRayAndGetNormal(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n.__wbg_ptr,i,a);return 0===o?void 0:eO.__wrap(o)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(eZ.prototype);return t.__wbg_ptr=e,eq.register(t,t.__wbg_ptr,t),t}},{key:"cuboid",value:function(e,t,r){var n=y.rawshape_cuboid(e,t,r);return eZ.__wrap(n)}},{key:"roundCuboid",value:function(e,t,r,n){var i=y.rawshape_roundCuboid(e,t,r,n);return eZ.__wrap(i)}},{key:"ball",value:function(e){var t=y.rawshape_ball(e);return eZ.__wrap(t)}},{key:"halfspace",value:function(e){P(e,e3);var t=y.rawshape_halfspace(e.__wbg_ptr);return eZ.__wrap(t)}},{key:"capsule",value:function(e,t){var r=y.rawshape_capsule(e,t);return eZ.__wrap(r)}},{key:"cylinder",value:function(e,t){var r=y.rawshape_cylinder(e,t);return eZ.__wrap(r)}},{key:"roundCylinder",value:function(e,t,r){var n=y.rawshape_roundCylinder(e,t,r);return eZ.__wrap(n)}},{key:"cone",value:function(e,t){var r=y.rawshape_cone(e,t);return eZ.__wrap(r)}},{key:"roundCone",value:function(e,t,r){var n=y.rawshape_roundCone(e,t,r);return eZ.__wrap(n)}},{key:"voxels",value:function(e,t){P(e,e3);var r=N(t,y.__wbindgen_export_2),n=H,i=y.rawshape_voxels(e.__wbg_ptr,r,n);return eZ.__wrap(i)}},{key:"voxelsFromPoints",value:function(e,t){P(e,e3);var r=G(t,y.__wbindgen_export_2),n=H,i=y.rawshape_voxelsFromPoints(e.__wbg_ptr,r,n);return eZ.__wrap(i)}},{key:"polyline",value:function(e,t){var r=G(e,y.__wbindgen_export_2),n=H,i=N(t,y.__wbindgen_export_2),a=H,o=y.rawshape_polyline(r,n,i,a);return eZ.__wrap(o)}},{key:"trimesh",value:function(e,t,r){var n=G(e,y.__wbindgen_export_2),i=H,a=N(t,y.__wbindgen_export_2),o=H,s=y.rawshape_trimesh(n,i,a,o,r);return 0===s?void 0:eZ.__wrap(s)}},{key:"heightfield",value:function(e,t,r,n,i){var a=G(r,y.__wbindgen_export_2),o=H;P(n,e3);var s=y.rawshape_heightfield(e,t,a,o,n.__wbg_ptr,i);return eZ.__wrap(s)}},{key:"segment",value:function(e,t){P(e,e3),P(t,e3);var r=y.rawshape_segment(e.__wbg_ptr,t.__wbg_ptr);return eZ.__wrap(r)}},{key:"triangle",value:function(e,t,r){P(e,e3),P(t,e3),P(r,e3);var n=y.rawshape_triangle(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return eZ.__wrap(n)}},{key:"roundTriangle",value:function(e,t,r,n){P(e,e3),P(t,e3),P(r,e3);var i=y.rawshape_roundTriangle(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,n);return eZ.__wrap(i)}},{key:"convexHull",value:function(e){var t=G(e,y.__wbindgen_export_2),r=H,n=y.rawshape_convexHull(t,r);return 0===n?void 0:eZ.__wrap(n)}},{key:"roundConvexHull",value:function(e,t){var r=G(e,y.__wbindgen_export_2),n=H,i=y.rawshape_roundConvexHull(r,n,t);return 0===i?void 0:eZ.__wrap(i)}},{key:"convexMesh",value:function(e,t){var r=G(e,y.__wbindgen_export_2),n=H,i=N(t,y.__wbindgen_export_2),a=H,o=y.rawshape_convexMesh(r,n,i,a);return 0===o?void 0:eZ.__wrap(o)}},{key:"roundConvexMesh",value:function(e,t,r){var n=G(e,y.__wbindgen_export_2),i=H,a=N(t,y.__wbindgen_export_2),o=H,s=y.rawshape_roundConvexMesh(n,i,a,o,r);return 0===s?void 0:eZ.__wrap(s)}}]),e}(),eQ=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawshapecasthit_free(e>>>0,1)}),e$=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,eQ.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawshapecasthit_free(e,0)}},{key:"time_of_impact",value:function(){return y.rawintegrationparameters_dt(this.__wbg_ptr)}},{key:"witness1",value:function(){var e=y.rawshapecasthit_witness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"witness2",value:function(){var e=y.rawcontactforceevent_total_force(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal1",value:function(){var e=y.rawshapecasthit_normal1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal2",value:function(){var e=y.rawshapecasthit_normal2(this.__wbg_ptr);return e3.__wrap(e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(e$.prototype);return t.__wbg_ptr=e,eQ.register(t,t.__wbg_ptr,t),t}}]),e}(),e0=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawshapecontact_free(e>>>0,1)}),e1=function(){function e(){o(this,e)}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,e0.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawshapecontact_free(e,0)}},{key:"distance",value:function(){return y.rawkinematiccharactercontroller_maxSlopeClimbAngle(this.__wbg_ptr)}},{key:"point1",value:function(){var e=y.rawpointprojection_point(this.__wbg_ptr);return e3.__wrap(e)}},{key:"point2",value:function(){var e=y.rawcollidershapecasthit_witness1(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal1",value:function(){var e=y.rawcollidershapecasthit_witness2(this.__wbg_ptr);return e3.__wrap(e)}},{key:"normal2",value:function(){var e=y.rawcharactercollision_translationDeltaApplied(this.__wbg_ptr);return e3.__wrap(e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(e1.prototype);return t.__wbg_ptr=e,e0.register(t,t.__wbg_ptr,t),t}}]),e}(),e2=("u"<typeof FinalizationRegistry?"undefined":w(FinalizationRegistry))>"u"?{register:function(){},unregister:function(){}}:new FinalizationRegistry(function(e){return y.__wbg_rawvector_free(e>>>0,1)}),e3=function(){function e(t,r,n){o(this,e);var i=y.rawvector_new(t,r,n);return this.__wbg_ptr=i>>>0,e2.register(this,this.__wbg_ptr,this),this}return u(e,[{key:"__destroy_into_raw",value:function(){var e=this.__wbg_ptr;return this.__wbg_ptr=0,e2.unregister(this),e}},{key:"free",value:function(){var e=this.__destroy_into_raw();y.__wbg_rawvector_free(e,0)}},{key:"x",get:function(){return y.rawintegrationparameters_dt(this.__wbg_ptr)},set:function(e){y.rawintegrationparameters_set_dt(this.__wbg_ptr,e)}},{key:"y",get:function(){return y.rawkinematiccharactercontroller_offset(this.__wbg_ptr)},set:function(e){y.rawvector_set_y(this.__wbg_ptr,e)}},{key:"z",get:function(){return y.rawcollidershapecasthit_time_of_impact(this.__wbg_ptr)},set:function(e){y.rawvector_set_z(this.__wbg_ptr,e)}},{key:"xyz",value:function(){var e=y.rawvector_xyz(this.__wbg_ptr);return e3.__wrap(e)}},{key:"yxz",value:function(){var e=y.rawvector_yxz(this.__wbg_ptr);return e3.__wrap(e)}},{key:"zxy",value:function(){var e=y.rawvector_zxy(this.__wbg_ptr);return e3.__wrap(e)}},{key:"xzy",value:function(){var e=y.rawvector_xzy(this.__wbg_ptr);return e3.__wrap(e)}},{key:"yzx",value:function(){var e=y.rawvector_yzx(this.__wbg_ptr);return e3.__wrap(e)}},{key:"zyx",value:function(){var e=y.rawvector_zyx(this.__wbg_ptr);return e3.__wrap(e)}}],[{key:"__wrap",value:function(e){e>>>=0;var t=Object.create(e3.prototype);return t.__wbg_ptr=e,e2.register(t,t.__wbg_ptr,t),t}},{key:"zero",value:function(){var e=y.rawvector_zero();return e3.__wrap(e)}}]),e}();function e4(e,t){return i(function(){var r,n,i;return d(this,function(a){switch(a.label){case 0:if(!("function"==typeof Response&&c(e,Response)))return[3,7];if("function"!=typeof WebAssembly.instantiateStreaming)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,WebAssembly.instantiateStreaming(e,t)];case 2:case 6:return[2,a.sent()];case 3:if(r=a.sent(),"application/wasm"!=e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r;return[3,4];case 4:return[4,e.arrayBuffer()];case 5:return n=a.sent(),[4,WebAssembly.instantiate(n,t)];case 7:return[4,WebAssembly.instantiate(e,t)];case 8:return[2,c(i=a.sent(),WebAssembly.Instance)?{instance:i,module:e}:i];case 9:return[2]}})})()}function e6(e){return i(function(){var t,r,n,i;return d(this,function(a){var o;switch(a.label){case 0:if(void 0!==y)return[2,y];return(void 0===e?"undefined":w(e))<"u"&&(Object.getPrototypeOf(e)===Object.prototype?e=e.module_or_path:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),(void 0===e?"undefined":w(e))>"u"&&(e=new URL("rapier_wasm3d_bg.wasm","<deleted>")),(o={}).wbg={},o.wbg.__wbg_bind_c8359b1cba058168=function(e,t,r,n){return b(v[e].bind(v[t],v[r],v[n]))},o.wbg.__wbg_buffer_609cc3eee51ed158=function(e){return b(v[e].buffer)},o.wbg.__wbg_call_672a4d21634d4a24=function(){return k(function(e,t){return b(v[e].call(v[t]))},arguments)},o.wbg.__wbg_call_7cccdd69e0791ae2=function(){return k(function(e,t,r){return b(v[e].call(v[t],v[r]))},arguments)},o.wbg.__wbg_call_833bed5770ea2041=function(){return k(function(e,t,r,n){return b(v[e].call(v[t],v[r],v[n]))},arguments)},o.wbg.__wbg_call_b8adc8b1d0a0d8eb=function(){return k(function(e,t,r,n,i){return b(v[e].call(v[t],v[r],v[n],v[i]))},arguments)},o.wbg.__wbg_length_3b4f022188ae8db6=function(e){return v[e].length},o.wbg.__wbg_length_a446193dc22c12f8=function(e){return v[e].length},o.wbg.__wbg_new_a12002a7f91c75be=function(e){return b(new Uint8Array(v[e]))},o.wbg.__wbg_newnoargs_105ed471475aaf50=function(e,t){return b(Function(S(e,t)))},o.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(e,t,r){return b(new Uint8Array(v[e],t>>>0,r>>>0))},o.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354=function(e,t,r){return b(new Float32Array(v[e],t>>>0,r>>>0))},o.wbg.__wbg_newwithlength_5a5efe313cfd59f1=function(e){return b(new Float32Array(e>>>0))},o.wbg.__wbg_now_2c95c9de01293173=function(e){return v[e].now()},o.wbg.__wbg_performance_7a3ffd0b17f663ad=function(e){return b(v[e].performance)},o.wbg.__wbg_rawcontactforceevent_new=function(e){return b(et.__wrap(e))},o.wbg.__wbg_rawraycolliderintersection_new=function(e){return b(eN.__wrap(e))},o.wbg.__wbg_set_10bad9bee0e9c58b=function(e,t,r){v[e].set(v[t],r>>>0)},o.wbg.__wbg_set_65595bdd868b3009=function(e,t,r){v[e].set(v[t],r>>>0)},o.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07=function(){var e=("u"<typeof global?"undefined":w(global))>"u"?null:global;return C(e)?0:b(e)},o.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0=function(){var e=("u"<typeof globalThis?"undefined":w(globalThis))>"u"?null:globalThis;return C(e)?0:b(e)},o.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819=function(){var e=("u"<typeof self?"undefined":w(self))>"u"?null:self;return C(e)?0:b(e)},o.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40=function(){var e=("u"<typeof window?"undefined":w(window))>"u"?null:window;return C(e)?0:b(e)},o.wbg.__wbindgen_boolean_get=function(e){var t=v[e];return"boolean"==typeof t?+!!t:2},o.wbg.__wbindgen_is_function=function(e){return"function"==typeof v[e]},o.wbg.__wbindgen_is_undefined=function(e){return void 0===v[e]},o.wbg.__wbindgen_memory=function(){return b(y.memory)},o.wbg.__wbindgen_number_get=function(e,t){var r=v[t],n="number"==typeof r?r:void 0;E().setFloat64(e+8,C(n)?0:n,!0),E().setInt32(e+0,!C(n),!0)},o.wbg.__wbindgen_number_new=function(e){return b(e)},o.wbg.__wbindgen_object_clone_ref=function(e){return b(v[e])},o.wbg.__wbindgen_object_drop_ref=function(e){A(e)},o.wbg.__wbindgen_throw=function(e,t){throw Error(S(e,t))},t=o,("string"==typeof e||"function"==typeof Request&&c(e,Request)||"function"==typeof URL&&c(e,URL))&&(e=fetch(e)),[4,e];case 1:return[4,e4.apply(void 0,[a.sent(),t])];case 2:return n=(r=a.sent()).instance,[2,(i=r.module,y=n.exports,e6.__wbindgen_wasm_module=i,x=null,z=null,F=null,D=null,R=null,y)]}})})()}var e5=function e(t,r,n){o(this,e),this.x=t,this.y=r,this.z=n},e8=function(){function e(){o(this,e)}return u(e,null,[{key:"new",value:function(e,t,r){return new e5(e,t,r)}},{key:"intoRaw",value:function(e){return new e3(e.x,e.y,e.z)}},{key:"zeros",value:function(){return e8.new(0,0,0)}},{key:"fromRaw",value:function(e){if(!e)return null;var t=e8.new(e.x,e.y,e.z);return e.free(),t}},{key:"copy",value:function(e,t){e.x=t.x,e.y=t.y,e.z=t.z}}]),e}(),e7=function e(t,r,n,i){o(this,e),this.x=t,this.y=r,this.z=n,this.w=i},e9=function(){function e(){o(this,e)}return u(e,null,[{key:"identity",value:function(){return new e7(0,0,0,1)}},{key:"fromRaw",value:function(e){if(!e)return null;var t=new e7(e.x,e.y,e.z,e.w);return e.free(),t}},{key:"intoRaw",value:function(e){return new eV(e.x,e.y,e.z,e.w)}},{key:"copy",value:function(e,t){e.x=t.x,e.y=t.y,e.z=t.z,e.w=t.w}}]),e}(),te=function(){function e(t){o(this,e),this.elements=t}return u(e,[{key:"m11",get:function(){return this.elements[0]}},{key:"m12",get:function(){return this.elements[1]}},{key:"m21",get:function(){return this.m12}},{key:"m13",get:function(){return this.elements[2]}},{key:"m31",get:function(){return this.m13}},{key:"m22",get:function(){return this.elements[3]}},{key:"m23",get:function(){return this.elements[4]}},{key:"m32",get:function(){return this.m23}},{key:"m33",get:function(){return this.elements[5]}}]),e}(),tt=function(){function e(){o(this,e)}return u(e,null,[{key:"fromRaw",value:function(e){var t=new te(e.elements());return e.free(),t}}]),e}();(tE=tz||(tz={}))[tE.Dynamic=0]="Dynamic",tE[tE.Fixed=1]="Fixed",tE[tE.KinematicPositionBased=2]="KinematicPositionBased",tE[tE.KinematicVelocityBased=3]="KinematicVelocityBased";var tr=function(){function e(t,r,n){o(this,e),this.rawSet=t,this.colliderSet=r,this.handle=n}return u(e,[{key:"finalizeDeserialization",value:function(e){this.colliderSet=e}},{key:"isValid",value:function(){return this.rawSet.contains(this.handle)}},{key:"lockTranslations",value:function(e,t){return this.rawSet.rbLockTranslations(this.handle,e,t)}},{key:"lockRotations",value:function(e,t){return this.rawSet.rbLockRotations(this.handle,e,t)}},{key:"setEnabledTranslations",value:function(e,t,r,n){return this.rawSet.rbSetEnabledTranslations(this.handle,e,t,r,n)}},{key:"restrictTranslations",value:function(e,t,r,n){this.setEnabledTranslations(e,t,r,n)}},{key:"setEnabledRotations",value:function(e,t,r,n){return this.rawSet.rbSetEnabledRotations(this.handle,e,t,r,n)}},{key:"restrictRotations",value:function(e,t,r,n){this.setEnabledRotations(e,t,r,n)}},{key:"dominanceGroup",value:function(){return this.rawSet.rbDominanceGroup(this.handle)}},{key:"setDominanceGroup",value:function(e){this.rawSet.rbSetDominanceGroup(this.handle,e)}},{key:"additionalSolverIterations",value:function(){return this.rawSet.rbAdditionalSolverIterations(this.handle)}},{key:"setAdditionalSolverIterations",value:function(e){this.rawSet.rbSetAdditionalSolverIterations(this.handle,e)}},{key:"enableCcd",value:function(e){this.rawSet.rbEnableCcd(this.handle,e)}},{key:"setSoftCcdPrediction",value:function(e){this.rawSet.rbSetSoftCcdPrediction(this.handle,e)}},{key:"softCcdPrediction",value:function(){return this.rawSet.rbSoftCcdPrediction(this.handle)}},{key:"translation",value:function(){var e=this.rawSet.rbTranslation(this.handle);return e8.fromRaw(e)}},{key:"rotation",value:function(){var e=this.rawSet.rbRotation(this.handle);return e9.fromRaw(e)}},{key:"nextTranslation",value:function(){var e=this.rawSet.rbNextTranslation(this.handle);return e8.fromRaw(e)}},{key:"nextRotation",value:function(){var e=this.rawSet.rbNextRotation(this.handle);return e9.fromRaw(e)}},{key:"setTranslation",value:function(e,t){this.rawSet.rbSetTranslation(this.handle,e.x,e.y,e.z,t)}},{key:"setLinvel",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbSetLinvel(this.handle,r,t),r.free()}},{key:"gravityScale",value:function(){return this.rawSet.rbGravityScale(this.handle)}},{key:"setGravityScale",value:function(e,t){this.rawSet.rbSetGravityScale(this.handle,e,t)}},{key:"setRotation",value:function(e,t){this.rawSet.rbSetRotation(this.handle,e.x,e.y,e.z,e.w,t)}},{key:"setAngvel",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbSetAngvel(this.handle,r,t),r.free()}},{key:"setNextKinematicTranslation",value:function(e){this.rawSet.rbSetNextKinematicTranslation(this.handle,e.x,e.y,e.z)}},{key:"setNextKinematicRotation",value:function(e){this.rawSet.rbSetNextKinematicRotation(this.handle,e.x,e.y,e.z,e.w)}},{key:"linvel",value:function(){return e8.fromRaw(this.rawSet.rbLinvel(this.handle))}},{key:"velocityAtPoint",value:function(e){var t=e8.intoRaw(e),r=e8.fromRaw(this.rawSet.rbVelocityAtPoint(this.handle,t));return t.free(),r}},{key:"angvel",value:function(){return e8.fromRaw(this.rawSet.rbAngvel(this.handle))}},{key:"mass",value:function(){return this.rawSet.rbMass(this.handle)}},{key:"effectiveInvMass",value:function(){return e8.fromRaw(this.rawSet.rbEffectiveInvMass(this.handle))}},{key:"invMass",value:function(){return this.rawSet.rbInvMass(this.handle)}},{key:"localCom",value:function(){return e8.fromRaw(this.rawSet.rbLocalCom(this.handle))}},{key:"worldCom",value:function(){return e8.fromRaw(this.rawSet.rbWorldCom(this.handle))}},{key:"invPrincipalInertia",value:function(){return e8.fromRaw(this.rawSet.rbInvPrincipalInertia(this.handle))}},{key:"principalInertia",value:function(){return e8.fromRaw(this.rawSet.rbPrincipalInertia(this.handle))}},{key:"principalInertiaLocalFrame",value:function(){return e9.fromRaw(this.rawSet.rbPrincipalInertiaLocalFrame(this.handle))}},{key:"effectiveWorldInvInertia",value:function(){return tt.fromRaw(this.rawSet.rbEffectiveWorldInvInertia(this.handle))}},{key:"effectiveAngularInertia",value:function(){return tt.fromRaw(this.rawSet.rbEffectiveAngularInertia(this.handle))}},{key:"sleep",value:function(){this.rawSet.rbSleep(this.handle)}},{key:"wakeUp",value:function(){this.rawSet.rbWakeUp(this.handle)}},{key:"isCcdEnabled",value:function(){return this.rawSet.rbIsCcdEnabled(this.handle)}},{key:"numColliders",value:function(){return this.rawSet.rbNumColliders(this.handle)}},{key:"collider",value:function(e){return this.colliderSet.get(this.rawSet.rbCollider(this.handle,e))}},{key:"setEnabled",value:function(e){this.rawSet.rbSetEnabled(this.handle,e)}},{key:"isEnabled",value:function(){return this.rawSet.rbIsEnabled(this.handle)}},{key:"bodyType",value:function(){return this.rawSet.rbBodyType(this.handle)}},{key:"setBodyType",value:function(e,t){return this.rawSet.rbSetBodyType(this.handle,e,t)}},{key:"isSleeping",value:function(){return this.rawSet.rbIsSleeping(this.handle)}},{key:"isMoving",value:function(){return this.rawSet.rbIsMoving(this.handle)}},{key:"isFixed",value:function(){return this.rawSet.rbIsFixed(this.handle)}},{key:"isKinematic",value:function(){return this.rawSet.rbIsKinematic(this.handle)}},{key:"isDynamic",value:function(){return this.rawSet.rbIsDynamic(this.handle)}},{key:"linearDamping",value:function(){return this.rawSet.rbLinearDamping(this.handle)}},{key:"angularDamping",value:function(){return this.rawSet.rbAngularDamping(this.handle)}},{key:"setLinearDamping",value:function(e){this.rawSet.rbSetLinearDamping(this.handle,e)}},{key:"recomputeMassPropertiesFromColliders",value:function(){this.rawSet.rbRecomputeMassPropertiesFromColliders(this.handle,this.colliderSet.raw)}},{key:"setAdditionalMass",value:function(e,t){this.rawSet.rbSetAdditionalMass(this.handle,e,t)}},{key:"setAdditionalMassProperties",value:function(e,t,r,n,i){var a=e8.intoRaw(t),o=e8.intoRaw(r),s=e9.intoRaw(n);this.rawSet.rbSetAdditionalMassProperties(this.handle,e,a,o,s,i),a.free(),o.free(),s.free()}},{key:"setAngularDamping",value:function(e){this.rawSet.rbSetAngularDamping(this.handle,e)}},{key:"resetForces",value:function(e){this.rawSet.rbResetForces(this.handle,e)}},{key:"resetTorques",value:function(e){this.rawSet.rbResetTorques(this.handle,e)}},{key:"addForce",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbAddForce(this.handle,r,t),r.free()}},{key:"applyImpulse",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbApplyImpulse(this.handle,r,t),r.free()}},{key:"addTorque",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbAddTorque(this.handle,r,t),r.free()}},{key:"applyTorqueImpulse",value:function(e,t){var r=e8.intoRaw(e);this.rawSet.rbApplyTorqueImpulse(this.handle,r,t),r.free()}},{key:"addForceAtPoint",value:function(e,t,r){var n=e8.intoRaw(e),i=e8.intoRaw(t);this.rawSet.rbAddForceAtPoint(this.handle,n,i,r),n.free(),i.free()}},{key:"applyImpulseAtPoint",value:function(e,t,r){var n=e8.intoRaw(e),i=e8.intoRaw(t);this.rawSet.rbApplyImpulseAtPoint(this.handle,n,i,r),n.free(),i.free()}},{key:"userForce",value:function(){return e8.fromRaw(this.rawSet.rbUserForce(this.handle))}},{key:"userTorque",value:function(){return e8.fromRaw(this.rawSet.rbUserTorque(this.handle))}}]),e}(),tn=function(){function e(t){o(this,e),this.enabled=!0,this.status=t,this.translation=e8.zeros(),this.rotation=e9.identity(),this.gravityScale=1,this.linvel=e8.zeros(),this.mass=0,this.massOnly=!1,this.centerOfMass=e8.zeros(),this.translationsEnabledX=!0,this.translationsEnabledY=!0,this.angvel=e8.zeros(),this.principalAngularInertia=e8.zeros(),this.angularInertiaLocalFrame=e9.identity(),this.translationsEnabledZ=!0,this.rotationsEnabledX=!0,this.rotationsEnabledY=!0,this.rotationsEnabledZ=!0,this.linearDamping=0,this.angularDamping=0,this.canSleep=!0,this.sleeping=!1,this.ccdEnabled=!1,this.softCcdPrediction=0,this.dominanceGroup=0,this.additionalSolverIterations=0}return u(e,[{key:"setDominanceGroup",value:function(e){return this.dominanceGroup=e,this}},{key:"setAdditionalSolverIterations",value:function(e){return this.additionalSolverIterations=e,this}},{key:"setEnabled",value:function(e){return this.enabled=e,this}},{key:"setTranslation",value:function(e,t,r){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof r)throw TypeError("The translation components must be numbers.");return this.translation={x:e,y:t,z:r},this}},{key:"setRotation",value:function(e){return e9.copy(this.rotation,e),this}},{key:"setGravityScale",value:function(e){return this.gravityScale=e,this}},{key:"setAdditionalMass",value:function(e){return this.mass=e,this.massOnly=!0,this}},{key:"setLinvel",value:function(e,t,r){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof r)throw TypeError("The linvel components must be numbers.");return this.linvel={x:e,y:t,z:r},this}},{key:"setAngvel",value:function(e){return e8.copy(this.angvel,e),this}},{key:"setAdditionalMassProperties",value:function(e,t,r,n){return this.mass=e,e8.copy(this.centerOfMass,t),e8.copy(this.principalAngularInertia,r),e9.copy(this.angularInertiaLocalFrame,n),this.massOnly=!1,this}},{key:"enabledTranslations",value:function(e,t,r){return this.translationsEnabledX=e,this.translationsEnabledY=t,this.translationsEnabledZ=r,this}},{key:"restrictTranslations",value:function(e,t,r){return this.enabledTranslations(e,t,r)}},{key:"lockTranslations",value:function(){return this.enabledTranslations(!1,!1,!1)}},{key:"enabledRotations",value:function(e,t,r){return this.rotationsEnabledX=e,this.rotationsEnabledY=t,this.rotationsEnabledZ=r,this}},{key:"restrictRotations",value:function(e,t,r){return this.enabledRotations(e,t,r)}},{key:"lockRotations",value:function(){return this.restrictRotations(!1,!1,!1)}},{key:"setLinearDamping",value:function(e){return this.linearDamping=e,this}},{key:"setAngularDamping",value:function(e){return this.angularDamping=e,this}},{key:"setCanSleep",value:function(e){return this.canSleep=e,this}},{key:"setSleeping",value:function(e){return this.sleeping=e,this}},{key:"setCcdEnabled",value:function(e){return this.ccdEnabled=e,this}},{key:"setSoftCcdPrediction",value:function(e){return this.softCcdPrediction=e,this}},{key:"setUserData",value:function(e){return this.userData=e,this}}],[{key:"dynamic",value:function(){return new tn(tz.Dynamic)}},{key:"kinematicPositionBased",value:function(){return new tn(tz.KinematicPositionBased)}},{key:"kinematicVelocityBased",value:function(){return new tn(tz.KinematicVelocityBased)}},{key:"fixed",value:function(){return new tn(tz.Fixed)}},{key:"newDynamic",value:function(){return new tn(tz.Dynamic)}},{key:"newKinematicPositionBased",value:function(){return new tn(tz.KinematicPositionBased)}},{key:"newKinematicVelocityBased",value:function(){return new tn(tz.KinematicVelocityBased)}},{key:"newStatic",value:function(){return new tn(tz.Fixed)}}]),e}(),ti=function(){function e(){o(this,e),this.fconv=new Float64Array(1),this.uconv=new Uint32Array(this.fconv.buffer),this.data=[],this.size=0}return u(e,[{key:"set",value:function(e,t){for(var r=this.index(e);this.data.length<=r;)this.data.push(null);null==this.data[r]&&(this.size+=1),this.data[r]=t}},{key:"len",value:function(){return this.size}},{key:"delete",value:function(e){var t=this.index(e);t<this.data.length&&(null!=this.data[t]&&(this.size-=1),this.data[t]=null)}},{key:"clear",value:function(){this.data=[]}},{key:"get",value:function(e){var t=this.index(e);return t<this.data.length?this.data[t]:null}},{key:"forEach",value:function(e){var t=!0,r=!1,n=void 0;try{for(var i,a=this.data[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var o=i.value;null!=o&&e(o)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}},{key:"getAll",value:function(){return this.data.filter(function(e){return null!=e})}},{key:"index",value:function(e){return this.fconv[0]=e,this.uconv[0]}}]),e}(),ta=function(){function e(t){var r=this;o(this,e),this.raw=t||new eW,this.map=new ti,t&&t.forEachRigidBodyHandle(function(e){r.map.set(e,new tr(t,null,e))})}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0,this.map&&this.map.clear(),this.map=void 0}},{key:"finalizeDeserialization",value:function(e){this.map.forEach(function(t){return t.finalizeDeserialization(e)})}},{key:"createRigidBody",value:function(e,t){var r=e8.intoRaw(t.translation),n=e9.intoRaw(t.rotation),i=e8.intoRaw(t.linvel),a=e8.intoRaw(t.centerOfMass),o=e8.intoRaw(t.angvel),s=e8.intoRaw(t.principalAngularInertia),u=e9.intoRaw(t.angularInertiaLocalFrame),_=this.raw.createRigidBody(t.enabled,r,n,t.gravityScale,t.mass,t.massOnly,a,i,o,s,u,t.translationsEnabledX,t.translationsEnabledY,t.translationsEnabledZ,t.rotationsEnabledX,t.rotationsEnabledY,t.rotationsEnabledZ,t.linearDamping,t.angularDamping,t.status,t.canSleep,t.sleeping,t.softCcdPrediction,t.ccdEnabled,t.dominanceGroup,t.additionalSolverIterations);r.free(),n.free(),i.free(),a.free(),o.free(),s.free(),u.free();var l=new tr(this.raw,e,_);return l.userData=t.userData,this.map.set(_,l),l}},{key:"remove",value:function(e,t,r,n,i){for(var a=0;a<this.raw.rbNumColliders(e);a+=1)r.unmap(this.raw.rbCollider(e,a));n.forEachJointHandleAttachedToRigidBody(e,function(e){return n.unmap(e)}),i.forEachJointHandleAttachedToRigidBody(e,function(e){return i.unmap(e)}),this.raw.remove(e,t.raw,r.raw,n.raw,i.raw),this.map.delete(e)}},{key:"len",value:function(){return this.map.len()}},{key:"contains",value:function(e){return null!=this.get(e)}},{key:"get",value:function(e){return this.map.get(e)}},{key:"forEach",value:function(e){this.map.forEach(e)}},{key:"forEachActiveRigidBody",value:function(e,t){var r=this;e.forEachActiveRigidBodyHandle(function(e){t(r.get(e))})}},{key:"getAll",value:function(){return this.map.getAll()}}]),e}(),to=function(){function e(t){o(this,e),this.raw=t||new eg}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"dt",get:function(){return this.raw.dt},set:function(e){this.raw.dt=e}},{key:"contact_erp",get:function(){return this.raw.contact_erp}},{key:"lengthUnit",get:function(){return this.raw.lengthUnit},set:function(e){this.raw.lengthUnit=e}},{key:"normalizedAllowedLinearError",get:function(){return this.raw.normalizedAllowedLinearError},set:function(e){this.raw.normalizedAllowedLinearError=e}},{key:"normalizedPredictionDistance",get:function(){return this.raw.normalizedPredictionDistance},set:function(e){this.raw.normalizedPredictionDistance=e}},{key:"numSolverIterations",get:function(){return this.raw.numSolverIterations},set:function(e){this.raw.numSolverIterations=e}},{key:"numInternalPgsIterations",get:function(){return this.raw.numInternalPgsIterations},set:function(e){this.raw.numInternalPgsIterations=e}},{key:"minIslandSize",get:function(){return this.raw.minIslandSize},set:function(e){this.raw.minIslandSize=e}},{key:"maxCcdSubsteps",get:function(){return this.raw.maxCcdSubsteps},set:function(e){this.raw.maxCcdSubsteps=e}},{key:"contact_natural_frequency",set:function(e){this.raw.contact_natural_frequency=e}}]),e}();(tA=tj||(tj={}))[tA.Revolute=0]="Revolute",tA[tA.Fixed=1]="Fixed",tA[tA.Prismatic=2]="Prismatic",tA[tA.Rope=3]="Rope",tA[tA.Spring=4]="Spring",tA[tA.Spherical=5]="Spherical",tA[tA.Generic=6]="Generic",(tP=tM||(tM={}))[tP.AccelerationBased=0]="AccelerationBased",tP[tP.ForceBased=1]="ForceBased",(tI=tD||(tD={}))[tI.LinX=1]="LinX",tI[tI.LinY=2]="LinY",tI[tI.LinZ=4]="LinZ",tI[tI.AngX=8]="AngX",tI[tI.AngY=16]="AngY",tI[tI.AngZ=32]="AngZ";var ts=function(){function e(t,r,n){o(this,e),this.rawSet=t,this.bodySet=r,this.handle=n}return u(e,[{key:"finalizeDeserialization",value:function(e){this.bodySet=e}},{key:"isValid",value:function(){return this.rawSet.contains(this.handle)}},{key:"body1",value:function(){return this.bodySet.get(this.rawSet.jointBodyHandle1(this.handle))}},{key:"body2",value:function(){return this.bodySet.get(this.rawSet.jointBodyHandle2(this.handle))}},{key:"type",value:function(){return this.rawSet.jointType(this.handle)}},{key:"frameX1",value:function(){return e9.fromRaw(this.rawSet.jointFrameX1(this.handle))}},{key:"frameX2",value:function(){return e9.fromRaw(this.rawSet.jointFrameX2(this.handle))}},{key:"anchor1",value:function(){return e8.fromRaw(this.rawSet.jointAnchor1(this.handle))}},{key:"anchor2",value:function(){return e8.fromRaw(this.rawSet.jointAnchor2(this.handle))}},{key:"setAnchor1",value:function(e){var t=e8.intoRaw(e);this.rawSet.jointSetAnchor1(this.handle,t),t.free()}},{key:"setAnchor2",value:function(e){var t=e8.intoRaw(e);this.rawSet.jointSetAnchor2(this.handle,t),t.free()}},{key:"setContactsEnabled",value:function(e){this.rawSet.jointSetContactsEnabled(this.handle,e)}},{key:"contactsEnabled",value:function(){return this.rawSet.jointContactsEnabled(this.handle)}}],[{key:"newTyped",value:function(e,t,r){switch(e.jointType(r)){case B.Revolute:return new tw(e,t,r);case B.Prismatic:return new th(e,t,r);case B.Fixed:return new t_(e,t,r);case B.Spring:return new tc(e,t,r);case B.Rope:return new tl(e,t,r);case B.Spherical:return new td(e,t,r);case B.Generic:return new tf(e,t,r);default:return new ts(e,t,r)}}}]),e}(),tu=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),u(t,[{key:"limitsEnabled",value:function(){return this.rawSet.jointLimitsEnabled(this.handle,this.rawAxis())}},{key:"limitsMin",value:function(){return this.rawSet.jointLimitsMin(this.handle,this.rawAxis())}},{key:"limitsMax",value:function(){return this.rawSet.jointLimitsMax(this.handle,this.rawAxis())}},{key:"setLimits",value:function(e,t){this.rawSet.jointSetLimits(this.handle,this.rawAxis(),e,t)}},{key:"configureMotorModel",value:function(e){this.rawSet.jointConfigureMotorModel(this.handle,this.rawAxis(),e)}},{key:"configureMotorVelocity",value:function(e,t){this.rawSet.jointConfigureMotorVelocity(this.handle,this.rawAxis(),e,t)}},{key:"configureMotorPosition",value:function(e,t,r){this.rawSet.jointConfigureMotorPosition(this.handle,this.rawAxis(),e,t,r)}},{key:"configureMotor",value:function(e,t,r,n){this.rawSet.jointConfigureMotor(this.handle,this.rawAxis(),e,t,r,n)}}]),t}(ts),t_=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(ts),tl=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(ts),tc=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(ts),th=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),u(t,[{key:"rawAxis",value:function(){return O.LinX}}]),t}(tu),tw=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),u(t,[{key:"rawAxis",value:function(){return O.AngX}}]),t}(tu),tf=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(ts),td=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(ts),tp=function(){function e(){o(this,e)}return u(e,[{key:"intoRaw",value:function(){var e,t,r=e8.intoRaw(this.anchor1),n=e8.intoRaw(this.anchor2),i=!1,a=0,o=0;switch(this.jointType){case tj.Fixed:var s=e9.intoRaw(this.frame1),u=e9.intoRaw(this.frame2);t=ed.fixed(r,s,n,u),s.free(),u.free();break;case tj.Spring:t=ed.spring(this.length,this.stiffness,this.damping,r,n);break;case tj.Rope:t=ed.rope(this.length,r,n);break;case tj.Prismatic:e=e8.intoRaw(this.axis),this.limitsEnabled&&(i=!0,a=this.limits[0],o=this.limits[1]),t=ed.prismatic(r,n,e,i,a,o),e.free();break;case tj.Generic:e=e8.intoRaw(this.axis);var _=this.axesMask;t=ed.generic(r,n,e,_);break;case tj.Spherical:t=ed.spherical(r,n);break;case tj.Revolute:e=e8.intoRaw(this.axis),t=ed.revolute(r,n,e),e.free()}return r.free(),n.free(),t}}],[{key:"fixed",value:function(e,t,r,n){var i=new tp;return i.anchor1=e,i.anchor2=r,i.frame1=t,i.frame2=n,i.jointType=tj.Fixed,i}},{key:"spring",value:function(e,t,r,n,i){var a=new tp;return a.anchor1=n,a.anchor2=i,a.length=e,a.stiffness=t,a.damping=r,a.jointType=tj.Spring,a}},{key:"rope",value:function(e,t,r){var n=new tp;return n.anchor1=t,n.anchor2=r,n.length=e,n.jointType=tj.Rope,n}},{key:"generic",value:function(e,t,r,n){var i=new tp;return i.anchor1=e,i.anchor2=t,i.axis=r,i.axesMask=n,i.jointType=tj.Generic,i}},{key:"spherical",value:function(e,t){var r=new tp;return r.anchor1=e,r.anchor2=t,r.jointType=tj.Spherical,r}},{key:"prismatic",value:function(e,t,r){var n=new tp;return n.anchor1=e,n.anchor2=t,n.axis=r,n.jointType=tj.Prismatic,n}},{key:"revolute",value:function(e,t,r){var n=new tp;return n.anchor1=e,n.anchor2=t,n.axis=r,n.jointType=tj.Revolute,n}}]),e}(),ty=function(){function e(t){var r=this;o(this,e),this.raw=t||new ey,this.map=new ti,t&&t.forEachJointHandle(function(e){r.map.set(e,ts.newTyped(t,null,e))})}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0,this.map&&this.map.clear(),this.map=void 0}},{key:"finalizeDeserialization",value:function(e){this.map.forEach(function(t){return t.finalizeDeserialization(e)})}},{key:"createJoint",value:function(e,t,r,n,i){var a=t.intoRaw(),o=this.raw.createJoint(a,r,n,i);a.free();var s=ts.newTyped(this.raw,e,o);return this.map.set(o,s),s}},{key:"remove",value:function(e,t){this.raw.remove(e,t),this.unmap(e)}},{key:"forEachJointHandleAttachedToRigidBody",value:function(e,t){this.raw.forEachJointAttachedToRigidBody(e,t)}},{key:"unmap",value:function(e){this.map.delete(e)}},{key:"len",value:function(){return this.map.len()}},{key:"contains",value:function(e){return null!=this.get(e)}},{key:"get",value:function(e){return this.map.get(e)}},{key:"forEach",value:function(e){this.map.forEach(e)}},{key:"getAll",value:function(){return this.map.getAll()}}]),e}(),tv=function(){function e(t,r){o(this,e),this.rawSet=t,this.handle=r}return u(e,[{key:"isValid",value:function(){return this.rawSet.contains(this.handle)}},{key:"setContactsEnabled",value:function(e){this.rawSet.jointSetContactsEnabled(this.handle,e)}},{key:"contactsEnabled",value:function(){return this.rawSet.jointContactsEnabled(this.handle)}}],[{key:"newTyped",value:function(e,t){switch(e.jointType(t)){case B.Revolute:return new tm(e,t);case B.Prismatic:return new tk(e,t);case B.Fixed:return new tb(e,t);case B.Spherical:return new tR(e,t);default:return new tv(e,t)}}}]),e}(),tg=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(tv),tb=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(tv),tk=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),u(t,[{key:"rawAxis",value:function(){return O.LinX}}]),t}(tg),tm=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),u(t,[{key:"rawAxis",value:function(){return O.AngX}}]),t}(tg),tR=function(e){function t(){return o(this,t),a(this,t,arguments)}return l(t,e),t}(tv),tS=function(){function e(t){var r=this;o(this,e),this.raw=t||new eC,this.map=new ti,t&&t.forEachJointHandle(function(e){r.map.set(e,tv.newTyped(r.raw,e))})}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0,this.map&&this.map.clear(),this.map=void 0}},{key:"createJoint",value:function(e,t,r,n){var i=e.intoRaw(),a=this.raw.createJoint(i,t,r,n);i.free();var o=tv.newTyped(this.raw,a);return this.map.set(a,o),o}},{key:"remove",value:function(e,t){this.raw.remove(e,t),this.map.delete(e)}},{key:"unmap",value:function(e){this.map.delete(e)}},{key:"len",value:function(){return this.map.len()}},{key:"contains",value:function(e){return null!=this.get(e)}},{key:"get",value:function(e){return this.map.get(e)}},{key:"forEach",value:function(e){this.map.forEach(e)}},{key:"forEachJointHandleAttachedToRigidBody",value:function(e,t){this.raw.forEachJointAttachedToRigidBody(e,t)}},{key:"getAll",value:function(){return this.map.getAll()}}]),e}();(tT=tL||(tL={}))[tT.Average=0]="Average",tT[tT.Min=1]="Min",tT[tT.Multiply=2]="Multiply",tT[tT.Max=3]="Max";var tC=function(){function e(t){o(this,e),this.raw=t||new X}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}}]),e}(),tx=function(){function e(t){o(this,e),this.raw=t||new ek}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"forEachActiveRigidBodyHandle",value:function(e){this.raw.forEachActiveRigidBodyHandle(e)}}]),e}();(tF=tH||(tH={}))[tF.Vertex=0]="Vertex",tF[tF.Edge=1]="Edge",tF[tF.Face=2]="Face",tF[tF.Unknown=3]="Unknown";var tE,tA,tP,tI,tT,tF,tz,tj,tM,tD,tL,tH,tN,tG=function(){function e(t,r){o(this,e),this.origin=t,this.dir=r}return u(e,[{key:"pointAt",value:function(e){return{x:this.origin.x+this.dir.x*e,y:this.origin.y+this.dir.y*e,z:this.origin.z+this.dir.z*e}}}]),e}(),tO=function(){function e(t,r,n,i){o(this,e),this.featureType=tH.Unknown,this.featureId=void 0,this.timeOfImpact=t,this.normal=r,void 0!==i&&(this.featureId=i),void 0!==n&&(this.featureType=n)}return u(e,null,[{key:"fromRaw",value:function(e){if(!e)return null;var t=new tO(e.time_of_impact(),e8.fromRaw(e.normal()),e.featureType(),e.featureId());return e.free(),t}}]),e}(),tB=function(){function e(t,r,n,i,a){o(this,e),this.featureType=tH.Unknown,this.featureId=void 0,this.collider=t,this.timeOfImpact=r,this.normal=n,void 0!==a&&(this.featureId=a),void 0!==i&&(this.featureType=i)}return u(e,null,[{key:"fromRaw",value:function(e,t){if(!t)return null;var r=new tB(e.get(t.colliderHandle()),t.time_of_impact(),e8.fromRaw(t.normal()),t.featureType(),t.featureId());return t.free(),r}}]),e}(),tW=function(){function e(t,r){o(this,e),this.collider=t,this.timeOfImpact=r}return u(e,null,[{key:"fromRaw",value:function(e,t){if(!t)return null;var r=new tW(e.get(t.colliderHandle()),t.timeOfImpact());return t.free(),r}}]),e}(),tJ=function(){function e(t,r){o(this,e),this.point=t,this.isInside=r}return u(e,null,[{key:"fromRaw",value:function(e){if(!e)return null;var t=new tJ(e8.fromRaw(e.point()),e.isInside());return e.free(),t}}]),e}(),tV=function(){function e(t,r,n,i,a){o(this,e),this.featureType=tH.Unknown,this.featureId=void 0,this.collider=t,this.point=r,this.isInside=n,void 0!==a&&(this.featureId=a),void 0!==i&&(this.featureType=i)}return u(e,null,[{key:"fromRaw",value:function(e,t){if(!t)return null;var r=new tV(e.get(t.colliderHandle()),e8.fromRaw(t.point()),t.isInside(),t.featureType(),t.featureId());return t.free(),r}}]),e}(),tU=function(){function e(t,r,n,i,a){o(this,e),this.time_of_impact=t,this.witness1=r,this.witness2=n,this.normal1=i,this.normal2=a}return u(e,null,[{key:"fromRaw",value:function(e,t){if(!t)return null;var r=new tU(t.time_of_impact(),e8.fromRaw(t.witness1()),e8.fromRaw(t.witness2()),e8.fromRaw(t.normal1()),e8.fromRaw(t.normal2()));return t.free(),r}}]),e}(),tX=function(e){function t(e,r,n,i,s,u){var _;return o(this,t),(_=a(this,t,[r,n,i,s,u])).collider=e,_}return l(t,e),u(t,null,[{key:"fromRaw",value:function(e,t){if(!t)return null;var r=new tX(e.get(t.colliderHandle()),t.time_of_impact(),e8.fromRaw(t.witness1()),e8.fromRaw(t.witness2()),e8.fromRaw(t.normal1()),e8.fromRaw(t.normal2()));return t.free(),r}}]),t}(tU),tK=function(){function e(t){o(this,e),this.raw=t||new V}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"castRay",value:function(e,t,r,n,i,a,o,s,u,_,l){var c=e8.intoRaw(n.origin),h=e8.intoRaw(n.dir),w=tW.fromRaw(r,this.raw.castRay(e.raw,t.raw,r.raw,c,h,i,a,o,s,u,_,l));return c.free(),h.free(),w}},{key:"castRayAndGetNormal",value:function(e,t,r,n,i,a,o,s,u,_,l){var c=e8.intoRaw(n.origin),h=e8.intoRaw(n.dir),w=tB.fromRaw(r,this.raw.castRayAndGetNormal(e.raw,t.raw,r.raw,c,h,i,a,o,s,u,_,l));return c.free(),h.free(),w}},{key:"intersectionsWithRay",value:function(e,t,r,n,i,a,o,s,u,_,l,c){var h=e8.intoRaw(n.origin),w=e8.intoRaw(n.dir);this.raw.intersectionsWithRay(e.raw,t.raw,r.raw,h,w,i,a,function(e){return o(tB.fromRaw(r,e))},s,u,_,l,c),h.free(),w.free()}},{key:"intersectionWithShape",value:function(e,t,r,n,i,a,o,s,u,_,l){var c=e8.intoRaw(n),h=e9.intoRaw(i),w=a.intoRaw(),f=this.raw.intersectionWithShape(e.raw,t.raw,r.raw,c,h,w,o,s,u,_,l);return c.free(),h.free(),w.free(),f}},{key:"projectPoint",value:function(e,t,r,n,i,a,o,s,u,_){var l=e8.intoRaw(n),c=tV.fromRaw(r,this.raw.projectPoint(e.raw,t.raw,r.raw,l,i,a,o,s,u,_));return l.free(),c}},{key:"projectPointAndGetFeature",value:function(e,t,r,n,i,a,o,s,u){var _=e8.intoRaw(n),l=tV.fromRaw(r,this.raw.projectPointAndGetFeature(e.raw,t.raw,r.raw,_,i,a,o,s,u));return _.free(),l}},{key:"intersectionsWithPoint",value:function(e,t,r,n,i,a,o,s,u,_){var l=e8.intoRaw(n);this.raw.intersectionsWithPoint(e.raw,t.raw,r.raw,l,i,a,o,s,u,_),l.free()}},{key:"castShape",value:function(e,t,r,n,i,a,o,s,u,_,l,c,h,w,f){var d=e8.intoRaw(n),p=e9.intoRaw(i),y=e8.intoRaw(a),v=o.intoRaw(),g=tX.fromRaw(r,this.raw.castShape(e.raw,t.raw,r.raw,d,p,y,v,s,u,_,l,c,h,w,f));return d.free(),p.free(),y.free(),v.free(),g}},{key:"intersectionsWithShape",value:function(e,t,r,n,i,a,o,s,u,_,l,c){var h=e8.intoRaw(n),w=e9.intoRaw(i),f=a.intoRaw();this.raw.intersectionsWithShape(e.raw,t.raw,r.raw,h,w,f,o,s,u,_,l,c),h.free(),w.free(),f.free()}},{key:"collidersWithAabbIntersectingAabb",value:function(e,t,r,n,i,a){var o=e8.intoRaw(n),s=e8.intoRaw(i);this.raw.collidersWithAabbIntersectingAabb(e.raw,t.raw,r.raw,o,s,a),o.free(),s.free()}}]),e}(),tY=function(){function e(t){o(this,e),this.raw=t||new eE,this.tempManifold=new tq(null)}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"contactPairsWith",value:function(e,t){this.raw.contact_pairs_with(e,t)}},{key:"intersectionPairsWith",value:function(e,t){this.raw.intersection_pairs_with(e,t)}},{key:"contactPair",value:function(e,t,r){var n=this.raw.contact_pair(e,t);if(n){var i,a=n.collider1()!=e;for(i=0;i<n.numContactManifolds();++i)this.tempManifold.raw=n.contactManifold(i),this.tempManifold.raw&&r(this.tempManifold,a),this.tempManifold.free();n.free()}}},{key:"intersectionPair",value:function(e,t){return this.raw.intersection_pair(e,t)}}]),e}(),tq=function(){function e(t){o(this,e),this.raw=t}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"normal",value:function(){return e8.fromRaw(this.raw.normal())}},{key:"localNormal1",value:function(){return e8.fromRaw(this.raw.local_n1())}},{key:"localNormal2",value:function(){return e8.fromRaw(this.raw.local_n2())}},{key:"subshape1",value:function(){return this.raw.subshape1()}},{key:"subshape2",value:function(){return this.raw.subshape2()}},{key:"numContacts",value:function(){return this.raw.num_contacts()}},{key:"localContactPoint1",value:function(e){return e8.fromRaw(this.raw.contact_local_p1(e))}},{key:"localContactPoint2",value:function(e){return e8.fromRaw(this.raw.contact_local_p2(e))}},{key:"contactDist",value:function(e){return this.raw.contact_dist(e)}},{key:"contactFid1",value:function(e){return this.raw.contact_fid1(e)}},{key:"contactFid2",value:function(e){return this.raw.contact_fid2(e)}},{key:"contactImpulse",value:function(e){return this.raw.contact_impulse(e)}},{key:"contactTangentImpulseX",value:function(e){return this.raw.contact_tangent_impulse_x(e)}},{key:"contactTangentImpulseY",value:function(e){return this.raw.contact_tangent_impulse_y(e)}},{key:"numSolverContacts",value:function(){return this.raw.num_solver_contacts()}},{key:"solverContactPoint",value:function(e){return e8.fromRaw(this.raw.solver_contact_point(e))}},{key:"solverContactDist",value:function(e){return this.raw.solver_contact_dist(e)}},{key:"solverContactFriction",value:function(e){return this.raw.solver_contact_friction(e)}},{key:"solverContactRestitution",value:function(e){return this.raw.solver_contact_restitution(e)}},{key:"solverContactTangentVelocity",value:function(e){return e8.fromRaw(this.raw.solver_contact_tangent_velocity(e))}}]),e}(),tZ=function(){function e(t,r,n,i,a){o(this,e),this.distance=t,this.point1=r,this.point2=n,this.normal1=i,this.normal2=a}return u(e,null,[{key:"fromRaw",value:function(e){if(!e)return null;var t=new tZ(e.distance(),e8.fromRaw(e.point1()),e8.fromRaw(e.point2()),e8.fromRaw(e.normal1()),e8.fromRaw(e.normal2()));return e.free(),t}}]),e}(),tQ=function(){function e(){o(this,e)}return u(e,[{key:"castShape",value:function(e,t,r,n,i,a,o,s,u,_){var l=e8.intoRaw(e),c=e9.intoRaw(t),h=e8.intoRaw(r),w=e8.intoRaw(i),f=e9.intoRaw(a),d=e8.intoRaw(o),p=this.intoRaw(),y=n.intoRaw(),v=tU.fromRaw(null,p.castShape(l,c,h,y,w,f,d,s,u,_));return l.free(),c.free(),h.free(),w.free(),f.free(),d.free(),p.free(),y.free(),v}},{key:"intersectsShape",value:function(e,t,r,n,i){var a=e8.intoRaw(e),o=e9.intoRaw(t),s=e8.intoRaw(n),u=e9.intoRaw(i),_=this.intoRaw(),l=r.intoRaw(),c=_.intersectsShape(a,o,l,s,u);return a.free(),o.free(),s.free(),u.free(),_.free(),l.free(),c}},{key:"contactShape",value:function(e,t,r,n,i,a){var o=e8.intoRaw(e),s=e9.intoRaw(t),u=e8.intoRaw(n),_=e9.intoRaw(i),l=this.intoRaw(),c=r.intoRaw(),h=tZ.fromRaw(l.contactShape(o,s,c,u,_,a));return o.free(),s.free(),u.free(),_.free(),l.free(),c.free(),h}},{key:"containsPoint",value:function(e,t,r){var n=e8.intoRaw(e),i=e9.intoRaw(t),a=e8.intoRaw(r),o=this.intoRaw(),s=o.containsPoint(n,i,a);return n.free(),i.free(),a.free(),o.free(),s}},{key:"projectPoint",value:function(e,t,r,n){var i=e8.intoRaw(e),a=e9.intoRaw(t),o=e8.intoRaw(r),s=this.intoRaw(),u=tJ.fromRaw(s.projectPoint(i,a,o,n));return i.free(),a.free(),o.free(),s.free(),u}},{key:"intersectsRay",value:function(e,t,r,n){var i=e8.intoRaw(t),a=e9.intoRaw(r),o=e8.intoRaw(e.origin),s=e8.intoRaw(e.dir),u=this.intoRaw(),_=u.intersectsRay(i,a,o,s,n);return i.free(),a.free(),o.free(),s.free(),u.free(),_}},{key:"castRay",value:function(e,t,r,n,i){var a=e8.intoRaw(t),o=e9.intoRaw(r),s=e8.intoRaw(e.origin),u=e8.intoRaw(e.dir),_=this.intoRaw(),l=_.castRay(a,o,s,u,n,i);return a.free(),o.free(),s.free(),u.free(),_.free(),l}},{key:"castRayAndGetNormal",value:function(e,t,r,n,i){var a=e8.intoRaw(t),o=e9.intoRaw(r),s=e8.intoRaw(e.origin),u=e8.intoRaw(e.dir),_=this.intoRaw(),l=tO.fromRaw(_.castRayAndGetNormal(a,o,s,u,n,i));return a.free(),o.free(),s.free(),u.free(),_.free(),l}}],[{key:"fromRaw",value:function(e,t){var r,n,i,a,o,s,u=e.coShapeType(t);switch(u){case W.Ball:return new t$(e.coRadius(t));case W.Cuboid:return new t1((r=e.coHalfExtents(t)).x,r.y,r.z);case W.RoundCuboid:return r=e.coHalfExtents(t),n=e.coRoundRadius(t),new t2(r.x,r.y,r.z,n);case W.Capsule:return new t3(o=e.coHalfHeight(t),s=e.coRadius(t));case W.Segment:return i=e.coVertices(t),new t4(e8.new(i[0],i[1],i[2]),e8.new(i[3],i[4],i[5]));case W.Polyline:return new t8(i=e.coVertices(t),a=e.coIndices(t));case W.Triangle:return i=e.coVertices(t),new t6(e8.new(i[0],i[1],i[2]),e8.new(i[3],i[4],i[5]),e8.new(i[6],i[7],i[8]));case W.RoundTriangle:return i=e.coVertices(t),n=e.coRoundRadius(t),new t5(e8.new(i[0],i[1],i[2]),e8.new(i[3],i[4],i[5]),e8.new(i[6],i[7],i[8]),n);case W.HalfSpace:return new t0(e8.fromRaw(e.coHalfspaceNormal(t)));case W.Voxels:return new t7(e.coVoxelData(t),e.coVoxelSize(t));case W.TriMesh:return new t9(i=e.coVertices(t),a=e.coIndices(t),e.coTriMeshFlags(t));case W.HeightField:var _=e.coHeightfieldScale(t),l=e.coHeightfieldHeights(t);return new rr(e.coHeightfieldNRows(t),e.coHeightfieldNCols(t),l,_,e.coHeightFieldFlags(t));case W.ConvexPolyhedron:return new re(i=e.coVertices(t),a=e.coIndices(t));case W.RoundConvexPolyhedron:return i=e.coVertices(t),new rt(i,a=e.coIndices(t),n=e.coRoundRadius(t));case W.Cylinder:return new rn(o=e.coHalfHeight(t),s=e.coRadius(t));case W.RoundCylinder:return o=e.coHalfHeight(t),new ri(o,s=e.coRadius(t),n=e.coRoundRadius(t));case W.Cone:return new ra(o=e.coHalfHeight(t),s=e.coRadius(t));case W.RoundCone:return o=e.coHalfHeight(t),new ro(o,s=e.coRadius(t),n=e.coRoundRadius(t));default:throw Error("unknown shape type: "+u)}}}]),e}();(rv=tN||(tN={}))[rv.Ball=0]="Ball",rv[rv.Cuboid=1]="Cuboid",rv[rv.Capsule=2]="Capsule",rv[rv.Segment=3]="Segment",rv[rv.Polyline=4]="Polyline",rv[rv.Triangle=5]="Triangle",rv[rv.TriMesh=6]="TriMesh",rv[rv.HeightField=7]="HeightField",rv[rv.ConvexPolyhedron=9]="ConvexPolyhedron",rv[rv.Cylinder=10]="Cylinder",rv[rv.Cone=11]="Cone",rv[rv.RoundCuboid=12]="RoundCuboid",rv[rv.RoundTriangle=13]="RoundTriangle",rv[rv.RoundCylinder=14]="RoundCylinder",rv[rv.RoundCone=15]="RoundCone",rv[rv.RoundConvexPolyhedron=16]="RoundConvexPolyhedron",rv[rv.HalfSpace=17]="HalfSpace",rv[rv.Voxels=18]="Voxels",(rg=rE||(rE={}))[rg.FIX_INTERNAL_EDGES=1]="FIX_INTERNAL_EDGES",(rb=rA||(rA={}))[rb.DELETE_BAD_TOPOLOGY_TRIANGLES=4]="DELETE_BAD_TOPOLOGY_TRIANGLES",rb[rb.ORIENTED=8]="ORIENTED",rb[rb.MERGE_DUPLICATE_VERTICES=16]="MERGE_DUPLICATE_VERTICES",rb[rb.DELETE_DEGENERATE_TRIANGLES=32]="DELETE_DEGENERATE_TRIANGLES",rb[rb.DELETE_DUPLICATE_TRIANGLES=64]="DELETE_DUPLICATE_TRIANGLES",rb[rb.FIX_INTERNAL_EDGES=144]="FIX_INTERNAL_EDGES";var t$=function(e){function t(e){var r;return o(this,t),(r=a(this,t)).type=tN.Ball,r.radius=e,r}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.ball(this.radius)}}]),t}(tQ),t0=function(e){function t(e){var r;return o(this,t),(r=a(this,t)).type=tN.HalfSpace,r.normal=e,r}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e=e8.intoRaw(this.normal),t=eZ.halfspace(e);return e.free(),t}}]),t}(tQ),t1=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.Cuboid,i.halfExtents=e8.new(e,r,n),i}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.cuboid(this.halfExtents.x,this.halfExtents.y,this.halfExtents.z)}}]),t}(tQ),t2=function(e){function t(e,r,n,i){var s;return o(this,t),(s=a(this,t)).type=tN.RoundCuboid,s.halfExtents=e8.new(e,r,n),s.borderRadius=i,s}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.roundCuboid(this.halfExtents.x,this.halfExtents.y,this.halfExtents.z,this.borderRadius)}}]),t}(tQ),t3=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Capsule,n.halfHeight=e,n.radius=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.capsule(this.halfHeight,this.radius)}}]),t}(tQ),t4=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Segment,n.a=e,n.b=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e=e8.intoRaw(this.a),t=e8.intoRaw(this.b),r=eZ.segment(e,t);return e.free(),t.free(),r}}]),t}(tQ),t6=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.Triangle,i.a=e,i.b=r,i.c=n,i}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e=e8.intoRaw(this.a),t=e8.intoRaw(this.b),r=e8.intoRaw(this.c),n=eZ.triangle(e,t,r);return e.free(),t.free(),r.free(),n}}]),t}(tQ),t5=function(e){function t(e,r,n,i){var s;return o(this,t),(s=a(this,t)).type=tN.RoundTriangle,s.a=e,s.b=r,s.c=n,s.borderRadius=i,s}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e=e8.intoRaw(this.a),t=e8.intoRaw(this.b),r=e8.intoRaw(this.c),n=eZ.roundTriangle(e,t,r,this.borderRadius);return e.free(),t.free(),r.free(),n}}]),t}(tQ),t8=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Polyline,n.vertices=e,n.indices=null!=r?r:new Uint32Array(0),n}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.polyline(this.vertices,this.indices)}}]),t}(tQ),t7=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Voxels,n.data=e,n.voxelSize=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e,t=e8.intoRaw(this.voxelSize);return e=c(this.data,Int32Array)?eZ.voxels(t,this.data):eZ.voxelsFromPoints(t,this.data),t.free(),e}}]),t}(tQ),t9=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.TriMesh,i.vertices=e,i.indices=r,i.flags=n,i}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.trimesh(this.vertices,this.indices,this.flags)}}]),t}(tQ),re=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.ConvexPolyhedron,n.vertices=e,n.indices=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){return this.indices?eZ.convexMesh(this.vertices,this.indices):eZ.convexHull(this.vertices)}}]),t}(tQ),rt=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.RoundConvexPolyhedron,i.vertices=e,i.indices=r,i.borderRadius=n,i}return l(t,e),u(t,[{key:"intoRaw",value:function(){return this.indices?eZ.roundConvexMesh(this.vertices,this.indices,this.borderRadius):eZ.roundConvexHull(this.vertices,this.borderRadius)}}]),t}(tQ),rr=function(e){function t(e,r,n,i,s){var u;return o(this,t),(u=a(this,t)).type=tN.HeightField,u.nrows=e,u.ncols=r,u.heights=n,u.scale=i,u.flags=s,u}return l(t,e),u(t,[{key:"intoRaw",value:function(){var e=e8.intoRaw(this.scale),t=eZ.heightfield(this.nrows,this.ncols,this.heights,e,this.flags);return e.free(),t}}]),t}(tQ),rn=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Cylinder,n.halfHeight=e,n.radius=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.cylinder(this.halfHeight,this.radius)}}]),t}(tQ),ri=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.RoundCylinder,i.borderRadius=n,i.halfHeight=e,i.radius=r,i}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.roundCylinder(this.halfHeight,this.radius,this.borderRadius)}}]),t}(tQ),ra=function(e){function t(e,r){var n;return o(this,t),(n=a(this,t)).type=tN.Cone,n.halfHeight=e,n.radius=r,n}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.cone(this.halfHeight,this.radius)}}]),t}(tQ),ro=function(e){function t(e,r,n){var i;return o(this,t),(i=a(this,t)).type=tN.RoundCone,i.halfHeight=e,i.radius=r,i.borderRadius=n,i}return l(t,e),u(t,[{key:"intoRaw",value:function(){return eZ.roundCone(this.halfHeight,this.radius,this.borderRadius)}}]),t}(tQ),rs=function(){function e(t){o(this,e),this.raw=t||new eP}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"step",value:function(e,t,r,n,i,a,o,s,u,_,l,c){var h=e8.intoRaw(e);l?this.raw.stepWithEvents(h,t.raw,r.raw,n.raw,i.raw,a.raw,o.raw,s.raw,u.raw,_.raw,l.raw,c,c?c.filterContactPair:null,c?c.filterIntersectionPair:null):this.raw.step(h,t.raw,r.raw,n.raw,i.raw,a.raw,o.raw,s.raw,u.raw,_.raw),h.free()}}]),e}(),ru=function(){function e(t){o(this,e),this.raw=t||new eY}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"serializeAll",value:function(e,t,r,n,i,a,o,s,u){var _=e8.intoRaw(e),l=this.raw.serializeAll(_,t.raw,r.raw,n.raw,i.raw,a.raw,o.raw,s.raw,u.raw);return _.free(),l}},{key:"deserializeAll",value:function(e){return rd.fromRaw(this.raw.deserializeAll(e))}}]),e}(),r_=function e(t,r){o(this,e),this.vertices=t,this.colors=r},rl=function(){function e(t){o(this,e),this.raw=t||new es}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0,this.vertices=void 0,this.colors=void 0}},{key:"render",value:function(e,t,r,n,i,a,o){this.raw.render(e.raw,t.raw,r.raw,n.raw,i.raw,a,t.castClosure(o)),this.vertices=this.raw.vertices(),this.colors=this.raw.colors()}}]),e}(),rc=function e(){o(this,e)},rh=function(){function e(t,r,n,i,a,s){o(this,e),this.params=r,this.bodies=a,this.colliders=s,this.broadPhase=n,this.narrowPhase=i,this.raw=new eR(t),this.rawCharacterCollision=new Y,this._applyImpulsesToDynamicBodies=!1,this._characterMass=null}return u(e,[{key:"free",value:function(){this.raw&&(this.raw.free(),this.rawCharacterCollision.free()),this.raw=void 0,this.rawCharacterCollision=void 0}},{key:"up",value:function(){return this.raw.up()}},{key:"setUp",value:function(e){var t=e8.intoRaw(e);return this.raw.setUp(t)}},{key:"applyImpulsesToDynamicBodies",value:function(){return this._applyImpulsesToDynamicBodies}},{key:"setApplyImpulsesToDynamicBodies",value:function(e){this._applyImpulsesToDynamicBodies=e}},{key:"characterMass",value:function(){return this._characterMass}},{key:"setCharacterMass",value:function(e){this._characterMass=e}},{key:"offset",value:function(){return this.raw.offset()}},{key:"setOffset",value:function(e){this.raw.setOffset(e)}},{key:"normalNudgeFactor",value:function(){return this.raw.normalNudgeFactor()}},{key:"setNormalNudgeFactor",value:function(e){this.raw.setNormalNudgeFactor(e)}},{key:"slideEnabled",value:function(){return this.raw.slideEnabled()}},{key:"setSlideEnabled",value:function(e){this.raw.setSlideEnabled(e)}},{key:"autostepMaxHeight",value:function(){return this.raw.autostepMaxHeight()}},{key:"autostepMinWidth",value:function(){return this.raw.autostepMinWidth()}},{key:"autostepIncludesDynamicBodies",value:function(){return this.raw.autostepIncludesDynamicBodies()}},{key:"autostepEnabled",value:function(){return this.raw.autostepEnabled()}},{key:"enableAutostep",value:function(e,t,r){this.raw.enableAutostep(e,t,r)}},{key:"disableAutostep",value:function(){return this.raw.disableAutostep()}},{key:"maxSlopeClimbAngle",value:function(){return this.raw.maxSlopeClimbAngle()}},{key:"setMaxSlopeClimbAngle",value:function(e){this.raw.setMaxSlopeClimbAngle(e)}},{key:"minSlopeSlideAngle",value:function(){return this.raw.minSlopeSlideAngle()}},{key:"setMinSlopeSlideAngle",value:function(e){this.raw.setMinSlopeSlideAngle(e)}},{key:"snapToGroundDistance",value:function(){return this.raw.snapToGroundDistance()}},{key:"enableSnapToGround",value:function(e){this.raw.enableSnapToGround(e)}},{key:"disableSnapToGround",value:function(){this.raw.disableSnapToGround()}},{key:"snapToGroundEnabled",value:function(){return this.raw.snapToGroundEnabled()}},{key:"computeColliderMovement",value:function(e,t,r,n,i){var a=e8.intoRaw(t);this.raw.computeColliderMovement(this.params.dt,this.broadPhase.raw,this.narrowPhase.raw,this.bodies.raw,this.colliders.raw,e.handle,a,this._applyImpulsesToDynamicBodies,this._characterMass,r,n,this.colliders.castClosure(i)),a.free()}},{key:"computedMovement",value:function(){return e8.fromRaw(this.raw.computedMovement())}},{key:"computedGrounded",value:function(){return this.raw.computedGrounded()}},{key:"numComputedCollisions",value:function(){return this.raw.numComputedCollisions()}},{key:"computedCollision",value:function(e,t){if(!this.raw.computedCollision(e,this.rawCharacterCollision))return null;var r=this.rawCharacterCollision;return(t=null!=t?t:new rc).translationDeltaApplied=e8.fromRaw(r.translationDeltaApplied()),t.translationDeltaRemaining=e8.fromRaw(r.translationDeltaRemaining()),t.toi=r.toi(),t.witness1=e8.fromRaw(r.worldWitness1()),t.witness2=e8.fromRaw(r.worldWitness2()),t.normal1=e8.fromRaw(r.worldNormal1()),t.normal2=e8.fromRaw(r.worldNormal2()),t.collider=this.colliders.get(r.handle()),t}}]),e}();(rk=rP||(rP={}))[rk.None=0]="None",rk[rk.LinX=1]="LinX",rk[rk.LinY=2]="LinY",rk[rk.LinZ=4]="LinZ",rk[rk.AngX=8]="AngX",rk[rk.AngY=16]="AngY",rk[rk.AngZ=32]="AngZ",rk[rk.AllLin=7]="AllLin",rk[rk.AllAng=56]="AllAng",rk[rk.All=63]="All";var rw=function(){function e(t,r,n,i,a,s){o(this,e),this.params=t,this.bodies=r,this.raw=new eT(n,i,a,s)}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"setKp",value:function(e,t){this.raw.set_kp(e,t)}},{key:"setKi",value:function(e,t){this.raw.set_kp(e,t)}},{key:"setKd",value:function(e,t){this.raw.set_kp(e,t)}},{key:"setAxes",value:function(e){this.raw.set_axes_mask(e)}},{key:"resetIntegrals",value:function(){this.raw.reset_integrals()}},{key:"applyLinearCorrection",value:function(e,t,r){var n=e8.intoRaw(t),i=e8.intoRaw(r);this.raw.apply_linear_correction(this.params.dt,this.bodies.raw,e.handle,n,i),n.free(),i.free()}},{key:"applyAngularCorrection",value:function(e,t,r){var n=e9.intoRaw(t),i=e8.intoRaw(r);this.raw.apply_angular_correction(this.params.dt,this.bodies.raw,e.handle,n,i),n.free(),i.free()}},{key:"linearCorrection",value:function(e,t,r){var n=e8.intoRaw(t),i=e8.intoRaw(r),a=this.raw.linear_correction(this.params.dt,this.bodies.raw,e.handle,n,i);return n.free(),i.free(),e8.fromRaw(a)}},{key:"angularCorrection",value:function(e,t,r){var n=e9.intoRaw(t),i=e8.intoRaw(r),a=this.raw.angular_correction(this.params.dt,this.bodies.raw,e.handle,n,i);return n.free(),i.free(),e8.fromRaw(a)}}]),e}(),rf=function(){function e(t,r,n,i,a){o(this,e),this.raw=new ec(t.handle),this.broadPhase=r,this.narrowPhase=n,this.bodies=i,this.colliders=a,this._chassis=t}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"updateVehicle",value:function(e,t,r,n){this.raw.update_vehicle(e,this.broadPhase.raw,this.narrowPhase.raw,this.bodies.raw,this.colliders.raw,t,r,this.colliders.castClosure(n))}},{key:"currentVehicleSpeed",value:function(){return this.raw.current_vehicle_speed()}},{key:"chassis",value:function(){return this._chassis}},{key:"indexUpAxis",get:function(){return this.raw.index_up_axis()},set:function(e){this.raw.set_index_up_axis(e)}},{key:"indexForwardAxis",get:function(){return this.raw.index_forward_axis()}},{key:"setIndexForwardAxis",set:function(e){this.raw.set_index_forward_axis(e)}},{key:"addWheel",value:function(e,t,r,n,i){var a=e8.intoRaw(e),o=e8.intoRaw(t),s=e8.intoRaw(r);this.raw.add_wheel(a,o,s,n,i),a.free(),o.free(),s.free()}},{key:"numWheels",value:function(){return this.raw.num_wheels()}},{key:"wheelChassisConnectionPointCs",value:function(e){return e8.fromRaw(this.raw.wheel_chassis_connection_point_cs(e))}},{key:"setWheelChassisConnectionPointCs",value:function(e,t){var r=e8.intoRaw(t);this.raw.set_wheel_chassis_connection_point_cs(e,r),r.free()}},{key:"wheelSuspensionRestLength",value:function(e){return this.raw.wheel_suspension_rest_length(e)}},{key:"setWheelSuspensionRestLength",value:function(e,t){this.raw.set_wheel_suspension_rest_length(e,t)}},{key:"wheelMaxSuspensionTravel",value:function(e){return this.raw.wheel_max_suspension_travel(e)}},{key:"setWheelMaxSuspensionTravel",value:function(e,t){this.raw.set_wheel_max_suspension_travel(e,t)}},{key:"wheelRadius",value:function(e){return this.raw.wheel_radius(e)}},{key:"setWheelRadius",value:function(e,t){this.raw.set_wheel_radius(e,t)}},{key:"wheelSuspensionStiffness",value:function(e){return this.raw.wheel_suspension_stiffness(e)}},{key:"setWheelSuspensionStiffness",value:function(e,t){this.raw.set_wheel_suspension_stiffness(e,t)}},{key:"wheelSuspensionCompression",value:function(e){return this.raw.wheel_suspension_compression(e)}},{key:"setWheelSuspensionCompression",value:function(e,t){this.raw.set_wheel_suspension_compression(e,t)}},{key:"wheelSuspensionRelaxation",value:function(e){return this.raw.wheel_suspension_relaxation(e)}},{key:"setWheelSuspensionRelaxation",value:function(e,t){this.raw.set_wheel_suspension_relaxation(e,t)}},{key:"wheelMaxSuspensionForce",value:function(e){return this.raw.wheel_max_suspension_force(e)}},{key:"setWheelMaxSuspensionForce",value:function(e,t){this.raw.set_wheel_max_suspension_force(e,t)}},{key:"wheelBrake",value:function(e){return this.raw.wheel_brake(e)}},{key:"setWheelBrake",value:function(e,t){this.raw.set_wheel_brake(e,t)}},{key:"wheelSteering",value:function(e){return this.raw.wheel_steering(e)}},{key:"setWheelSteering",value:function(e,t){this.raw.set_wheel_steering(e,t)}},{key:"wheelEngineForce",value:function(e){return this.raw.wheel_engine_force(e)}},{key:"setWheelEngineForce",value:function(e,t){this.raw.set_wheel_engine_force(e,t)}},{key:"wheelDirectionCs",value:function(e){return e8.fromRaw(this.raw.wheel_direction_cs(e))}},{key:"setWheelDirectionCs",value:function(e,t){var r=e8.intoRaw(t);this.raw.set_wheel_direction_cs(e,r),r.free()}},{key:"wheelAxleCs",value:function(e){return e8.fromRaw(this.raw.wheel_axle_cs(e))}},{key:"setWheelAxleCs",value:function(e,t){var r=e8.intoRaw(t);this.raw.set_wheel_axle_cs(e,r),r.free()}},{key:"wheelFrictionSlip",value:function(e){return this.raw.wheel_friction_slip(e)}},{key:"setWheelFrictionSlip",value:function(e,t){this.raw.set_wheel_friction_slip(e,t)}},{key:"wheelSideFrictionStiffness",value:function(e){return this.raw.wheel_side_friction_stiffness(e)}},{key:"setWheelSideFrictionStiffness",value:function(e,t){this.raw.set_wheel_side_friction_stiffness(e,t)}},{key:"wheelRotation",value:function(e){return this.raw.wheel_rotation(e)}},{key:"wheelForwardImpulse",value:function(e){return this.raw.wheel_forward_impulse(e)}},{key:"wheelSideImpulse",value:function(e){return this.raw.wheel_side_impulse(e)}},{key:"wheelSuspensionForce",value:function(e){return this.raw.wheel_suspension_force(e)}},{key:"wheelContactNormal",value:function(e){return e8.fromRaw(this.raw.wheel_contact_normal_ws(e))}},{key:"wheelContactPoint",value:function(e){return e8.fromRaw(this.raw.wheel_contact_point_ws(e))}},{key:"wheelSuspensionLength",value:function(e){return this.raw.wheel_suspension_length(e)}},{key:"wheelHardPoint",value:function(e){return e8.fromRaw(this.raw.wheel_hard_point_ws(e))}},{key:"wheelIsInContact",value:function(e){return this.raw.wheel_is_in_contact(e)}},{key:"wheelGroundObject",value:function(e){return this.colliders.get(this.raw.wheel_ground_object(e))}}]),e}(),rd=function(){function e(t,r,n,i,a,s,u,_,l,c,h,w,f){o(this,e),this.gravity=t,this.integrationParameters=new to(r),this.islands=new tx(n),this.broadPhase=new tK(i),this.narrowPhase=new tY(a),this.bodies=new ta(s),this.colliders=new rH(u),this.impulseJoints=new ty(_),this.multibodyJoints=new tS(l),this.ccdSolver=new tC(c),this.physicsPipeline=new rs(h),this.serializationPipeline=new ru(w),this.debugRenderPipeline=new rl(f),this.characterControllers=new Set,this.pidControllers=new Set,this.vehicleControllers=new Set,this.impulseJoints.finalizeDeserialization(this.bodies),this.bodies.finalizeDeserialization(this.colliders),this.colliders.finalizeDeserialization(this.bodies)}return u(e,[{key:"free",value:function(){this.integrationParameters.free(),this.islands.free(),this.broadPhase.free(),this.narrowPhase.free(),this.bodies.free(),this.colliders.free(),this.impulseJoints.free(),this.multibodyJoints.free(),this.ccdSolver.free(),this.physicsPipeline.free(),this.serializationPipeline.free(),this.debugRenderPipeline.free(),this.characterControllers.forEach(function(e){return e.free()}),this.pidControllers.forEach(function(e){return e.free()}),this.vehicleControllers.forEach(function(e){return e.free()}),this.integrationParameters=void 0,this.islands=void 0,this.broadPhase=void 0,this.narrowPhase=void 0,this.bodies=void 0,this.colliders=void 0,this.ccdSolver=void 0,this.impulseJoints=void 0,this.multibodyJoints=void 0,this.physicsPipeline=void 0,this.serializationPipeline=void 0,this.debugRenderPipeline=void 0,this.characterControllers=void 0,this.pidControllers=void 0,this.vehicleControllers=void 0}},{key:"takeSnapshot",value:function(){return this.serializationPipeline.serializeAll(this.gravity,this.integrationParameters,this.islands,this.broadPhase,this.narrowPhase,this.bodies,this.colliders,this.impulseJoints,this.multibodyJoints)}},{key:"debugRender",value:function(e,t){return this.debugRenderPipeline.render(this.bodies,this.colliders,this.impulseJoints,this.multibodyJoints,this.narrowPhase,e,t),new r_(this.debugRenderPipeline.vertices,this.debugRenderPipeline.colors)}},{key:"step",value:function(e,t){this.physicsPipeline.step(this.gravity,this.integrationParameters,this.islands,this.broadPhase,this.narrowPhase,this.bodies,this.colliders,this.impulseJoints,this.multibodyJoints,this.ccdSolver,e,t)}},{key:"propagateModifiedBodyPositionsToColliders",value:function(){this.bodies.raw.propagateModifiedBodyPositionsToColliders(this.colliders.raw)}},{key:"timestep",get:function(){return this.integrationParameters.dt},set:function(e){this.integrationParameters.dt=e}},{key:"lengthUnit",get:function(){return this.integrationParameters.lengthUnit},set:function(e){this.integrationParameters.lengthUnit=e}},{key:"numSolverIterations",get:function(){return this.integrationParameters.numSolverIterations},set:function(e){this.integrationParameters.numSolverIterations=e}},{key:"numInternalPgsIterations",get:function(){return this.integrationParameters.numInternalPgsIterations},set:function(e){this.integrationParameters.numInternalPgsIterations=e}},{key:"maxCcdSubsteps",get:function(){return this.integrationParameters.maxCcdSubsteps},set:function(e){this.integrationParameters.maxCcdSubsteps=e}},{key:"createRigidBody",value:function(e){return this.bodies.createRigidBody(this.colliders,e)}},{key:"createCharacterController",value:function(e){var t=new rh(e,this.integrationParameters,this.broadPhase,this.narrowPhase,this.bodies,this.colliders);return this.characterControllers.add(t),t}},{key:"removeCharacterController",value:function(e){this.characterControllers.delete(e),e.free()}},{key:"createPidController",value:function(e,t,r,n){var i=new rw(this.integrationParameters,this.bodies,e,t,r,n);return this.pidControllers.add(i),i}},{key:"removePidController",value:function(e){this.pidControllers.delete(e),e.free()}},{key:"createVehicleController",value:function(e){var t=new rf(e,this.broadPhase,this.narrowPhase,this.bodies,this.colliders);return this.vehicleControllers.add(t),t}},{key:"removeVehicleController",value:function(e){this.vehicleControllers.delete(e),e.free()}},{key:"createCollider",value:function(e,t){var r=t?t.handle:void 0;return this.colliders.createCollider(this.bodies,e,r)}},{key:"createImpulseJoint",value:function(e,t,r,n){return this.impulseJoints.createJoint(this.bodies,e,t.handle,r.handle,n)}},{key:"createMultibodyJoint",value:function(e,t,r,n){return this.multibodyJoints.createJoint(e,t.handle,r.handle,n)}},{key:"getRigidBody",value:function(e){return this.bodies.get(e)}},{key:"getCollider",value:function(e){return this.colliders.get(e)}},{key:"getImpulseJoint",value:function(e){return this.impulseJoints.get(e)}},{key:"getMultibodyJoint",value:function(e){return this.multibodyJoints.get(e)}},{key:"removeRigidBody",value:function(e){this.bodies&&this.bodies.remove(e.handle,this.islands,this.colliders,this.impulseJoints,this.multibodyJoints)}},{key:"removeCollider",value:function(e,t){this.colliders&&this.colliders.remove(e.handle,this.islands,this.bodies,t)}},{key:"removeImpulseJoint",value:function(e,t){this.impulseJoints&&this.impulseJoints.remove(e.handle,t)}},{key:"removeMultibodyJoint",value:function(e,t){this.impulseJoints&&this.multibodyJoints.remove(e.handle,t)}},{key:"forEachCollider",value:function(e){this.colliders.forEach(e)}},{key:"forEachRigidBody",value:function(e){this.bodies.forEach(e)}},{key:"forEachActiveRigidBody",value:function(e){this.bodies.forEachActiveRigidBody(this.islands,e)}},{key:"castRay",value:function(e,t,r,n,i,a,o,s){return this.broadPhase.castRay(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i,a?a.handle:null,o?o.handle:null,this.colliders.castClosure(s))}},{key:"castRayAndGetNormal",value:function(e,t,r,n,i,a,o,s){return this.broadPhase.castRayAndGetNormal(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i,a?a.handle:null,o?o.handle:null,this.colliders.castClosure(s))}},{key:"intersectionsWithRay",value:function(e,t,r,n,i,a,o,s,u){this.broadPhase.intersectionsWithRay(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i,a,o?o.handle:null,s?s.handle:null,this.colliders.castClosure(u))}},{key:"intersectionWithShape",value:function(e,t,r,n,i,a,o,s){var u=this.broadPhase.intersectionWithShape(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i,a?a.handle:null,o?o.handle:null,this.colliders.castClosure(s));return null!=u?this.colliders.get(u):null}},{key:"projectPoint",value:function(e,t,r,n,i,a,o){return this.broadPhase.projectPoint(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i?i.handle:null,a?a.handle:null,this.colliders.castClosure(o))}},{key:"projectPointAndGetFeature",value:function(e,t,r,n,i,a){return this.broadPhase.projectPointAndGetFeature(this.narrowPhase,this.bodies,this.colliders,e,t,r,n?n.handle:null,i?i.handle:null,this.colliders.castClosure(a))}},{key:"intersectionsWithPoint",value:function(e,t,r,n,i,a,o){this.broadPhase.intersectionsWithPoint(this.narrowPhase,this.bodies,this.colliders,e,this.colliders.castClosure(t),r,n,i?i.handle:null,a?a.handle:null,this.colliders.castClosure(o))}},{key:"castShape",value:function(e,t,r,n,i,a,o,s,u,_,l,c){return this.broadPhase.castShape(this.narrowPhase,this.bodies,this.colliders,e,t,r,n,i,a,o,s,u,_?_.handle:null,l?l.handle:null,this.colliders.castClosure(c))}},{key:"intersectionsWithShape",value:function(e,t,r,n,i,a,o,s,u){this.broadPhase.intersectionsWithShape(this.narrowPhase,this.bodies,this.colliders,e,t,r,this.colliders.castClosure(n),i,a,o?o.handle:null,s?s.handle:null,this.colliders.castClosure(u))}},{key:"collidersWithAabbIntersectingAabb",value:function(e,t,r){this.broadPhase.collidersWithAabbIntersectingAabb(this.narrowPhase,this.bodies,this.colliders,e,t,this.colliders.castClosure(r))}},{key:"contactPairsWith",value:function(e,t){this.narrowPhase.contactPairsWith(e.handle,this.colliders.castClosure(t))}},{key:"intersectionPairsWith",value:function(e,t){this.narrowPhase.intersectionPairsWith(e.handle,this.colliders.castClosure(t))}},{key:"contactPair",value:function(e,t,r){this.narrowPhase.contactPair(e.handle,t.handle,r)}},{key:"intersectionPair",value:function(e,t){return this.narrowPhase.intersectionPair(e.handle,t.handle)}},{key:"profilerEnabled",get:function(){return this.physicsPipeline.raw.is_profiler_enabled()},set:function(e){this.physicsPipeline.raw.set_profiler_enabled(e)}},{key:"timingStep",value:function(){return this.physicsPipeline.raw.timing_step()}},{key:"timingCollisionDetection",value:function(){return this.physicsPipeline.raw.timing_collision_detection()}},{key:"timingBroadPhase",value:function(){return this.physicsPipeline.raw.timing_broad_phase()}},{key:"timingNarrowPhase",value:function(){return this.physicsPipeline.raw.timing_narrow_phase()}},{key:"timingSolver",value:function(){return this.physicsPipeline.raw.timing_solver()}},{key:"timingVelocityAssembly",value:function(){return this.physicsPipeline.raw.timing_velocity_assembly()}},{key:"timingVelocityResolution",value:function(){return this.physicsPipeline.raw.timing_velocity_resolution()}},{key:"timingVelocityUpdate",value:function(){return this.physicsPipeline.raw.timing_velocity_update()}},{key:"timingVelocityWriteback",value:function(){return this.physicsPipeline.raw.timing_velocity_writeback()}},{key:"timingCcd",value:function(){return this.physicsPipeline.raw.timing_ccd()}},{key:"timingCcdToiComputation",value:function(){return this.physicsPipeline.raw.timing_ccd_toi_computation()}},{key:"timingCcdBroadPhase",value:function(){return this.physicsPipeline.raw.timing_ccd_broad_phase()}},{key:"timingCcdNarrowPhase",value:function(){return this.physicsPipeline.raw.timing_ccd_narrow_phase()}},{key:"timingCcdSolver",value:function(){return this.physicsPipeline.raw.timing_ccd_solver()}},{key:"timingIslandConstruction",value:function(){return this.physicsPipeline.raw.timing_island_construction()}},{key:"timingUserChanges",value:function(){return this.physicsPipeline.raw.timing_user_changes()}}],[{key:"fromRaw",value:function(e){return e?new rd(e8.fromRaw(e.takeGravity()),e.takeIntegrationParameters(),e.takeIslandManager(),e.takeBroadPhase(),e.takeNarrowPhase(),e.takeBodies(),e.takeColliders(),e.takeImpulseJoints(),e.takeMultibodyJoints()):null}},{key:"restoreSnapshot",value:function(e){return new ru().deserializeAll(e)}}]),e}();(rm=rI||(rI={}))[rm.NONE=0]="NONE",rm[rm.COLLISION_EVENTS=1]="COLLISION_EVENTS",rm[rm.CONTACT_FORCE_EVENTS=2]="CONTACT_FORCE_EVENTS";var rp=function(){function e(){o(this,e)}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"collider1",value:function(){return this.raw.collider1()}},{key:"collider2",value:function(){return this.raw.collider2()}},{key:"totalForce",value:function(){return e8.fromRaw(this.raw.total_force())}},{key:"totalForceMagnitude",value:function(){return this.raw.total_force_magnitude()}},{key:"maxForceDirection",value:function(){return e8.fromRaw(this.raw.max_force_direction())}},{key:"maxForceMagnitude",value:function(){return this.raw.max_force_magnitude()}}]),e}(),ry=function(){function e(t,r){o(this,e),this.raw=r||new ew(t)}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0}},{key:"drainCollisionEvents",value:function(e){this.raw.drainCollisionEvents(e)}},{key:"drainContactForceEvents",value:function(e){var t=new rp;this.raw.drainContactForceEvents(function(r){t.raw=r,e(t),t.free()})}},{key:"clear",value:function(){this.raw.clear()}}]),e}();(rR=rT||(rT={}))[rR.NONE=0]="NONE",rR[rR.FILTER_CONTACT_PAIRS=1]="FILTER_CONTACT_PAIRS",rR[rR.FILTER_INTERSECTION_PAIRS=2]="FILTER_INTERSECTION_PAIRS",(rS=rF||(rF={}))[rS.EMPTY=0]="EMPTY",rS[rS.COMPUTE_IMPULSE=1]="COMPUTE_IMPULSE",(rC=rz||(rz={}))[rC.EXCLUDE_FIXED=1]="EXCLUDE_FIXED",rC[rC.EXCLUDE_KINEMATIC=2]="EXCLUDE_KINEMATIC",rC[rC.EXCLUDE_DYNAMIC=4]="EXCLUDE_DYNAMIC",rC[rC.EXCLUDE_SENSORS=8]="EXCLUDE_SENSORS",rC[rC.EXCLUDE_SOLIDS=16]="EXCLUDE_SOLIDS",rC[rC.ONLY_DYNAMIC=3]="ONLY_DYNAMIC",rC[rC.ONLY_KINEMATIC=5]="ONLY_KINEMATIC",rC[rC.ONLY_FIXED=6]="ONLY_FIXED",(rx=rj||(rj={}))[rx.DYNAMIC_DYNAMIC=1]="DYNAMIC_DYNAMIC",rx[rx.DYNAMIC_KINEMATIC=12]="DYNAMIC_KINEMATIC",rx[rx.DYNAMIC_FIXED=2]="DYNAMIC_FIXED",rx[rx.KINEMATIC_KINEMATIC=52224]="KINEMATIC_KINEMATIC",rx[rx.KINEMATIC_FIXED=8704]="KINEMATIC_FIXED",rx[rx.FIXED_FIXED=32]="FIXED_FIXED",rx[rx.DEFAULT=15]="DEFAULT",rx[rx.ALL=60943]="ALL";var rv,rg,rb,rk,rm,rR,rS,rC,rx,rE,rA,rP,rI,rT,rF,rz,rj,rM,rD=function(){function e(t,r,n,i){o(this,e),this.colliderSet=t,this.handle=r,this._parent=n,this._shape=i}return u(e,[{key:"finalizeDeserialization",value:function(e){null!=this.handle&&(this._parent=e.get(this.colliderSet.raw.coParent(this.handle)))}},{key:"ensureShapeIsCached",value:function(){this._shape||(this._shape=tQ.fromRaw(this.colliderSet.raw,this.handle))}},{key:"shape",get:function(){return this.ensureShapeIsCached(),this._shape}},{key:"clearShapeCache",value:function(){this._shape=null}},{key:"isValid",value:function(){return this.colliderSet.raw.contains(this.handle)}},{key:"translation",value:function(){return e8.fromRaw(this.colliderSet.raw.coTranslation(this.handle))}},{key:"translationWrtParent",value:function(){return e8.fromRaw(this.colliderSet.raw.coTranslationWrtParent(this.handle))}},{key:"rotation",value:function(){return e9.fromRaw(this.colliderSet.raw.coRotation(this.handle))}},{key:"rotationWrtParent",value:function(){return e9.fromRaw(this.colliderSet.raw.coRotationWrtParent(this.handle))}},{key:"isSensor",value:function(){return this.colliderSet.raw.coIsSensor(this.handle)}},{key:"setSensor",value:function(e){this.colliderSet.raw.coSetSensor(this.handle,e)}},{key:"setShape",value:function(e){var t=e.intoRaw();this.colliderSet.raw.coSetShape(this.handle,t),t.free(),this._shape=e}},{key:"setEnabled",value:function(e){this.colliderSet.raw.coSetEnabled(this.handle,e)}},{key:"isEnabled",value:function(){return this.colliderSet.raw.coIsEnabled(this.handle)}},{key:"setRestitution",value:function(e){this.colliderSet.raw.coSetRestitution(this.handle,e)}},{key:"setFriction",value:function(e){this.colliderSet.raw.coSetFriction(this.handle,e)}},{key:"frictionCombineRule",value:function(){return this.colliderSet.raw.coFrictionCombineRule(this.handle)}},{key:"setFrictionCombineRule",value:function(e){this.colliderSet.raw.coSetFrictionCombineRule(this.handle,e)}},{key:"restitutionCombineRule",value:function(){return this.colliderSet.raw.coRestitutionCombineRule(this.handle)}},{key:"setRestitutionCombineRule",value:function(e){this.colliderSet.raw.coSetRestitutionCombineRule(this.handle,e)}},{key:"setCollisionGroups",value:function(e){this.colliderSet.raw.coSetCollisionGroups(this.handle,e)}},{key:"setSolverGroups",value:function(e){this.colliderSet.raw.coSetSolverGroups(this.handle,e)}},{key:"contactSkin",value:function(){return this.colliderSet.raw.coContactSkin(this.handle)}},{key:"setContactSkin",value:function(e){return this.colliderSet.raw.coSetContactSkin(this.handle,e)}},{key:"activeHooks",value:function(){return this.colliderSet.raw.coActiveHooks(this.handle)}},{key:"setActiveHooks",value:function(e){this.colliderSet.raw.coSetActiveHooks(this.handle,e)}},{key:"activeEvents",value:function(){return this.colliderSet.raw.coActiveEvents(this.handle)}},{key:"setActiveEvents",value:function(e){this.colliderSet.raw.coSetActiveEvents(this.handle,e)}},{key:"activeCollisionTypes",value:function(){return this.colliderSet.raw.coActiveCollisionTypes(this.handle)}},{key:"setContactForceEventThreshold",value:function(e){return this.colliderSet.raw.coSetContactForceEventThreshold(this.handle,e)}},{key:"contactForceEventThreshold",value:function(){return this.colliderSet.raw.coContactForceEventThreshold(this.handle)}},{key:"setActiveCollisionTypes",value:function(e){this.colliderSet.raw.coSetActiveCollisionTypes(this.handle,e)}},{key:"setDensity",value:function(e){this.colliderSet.raw.coSetDensity(this.handle,e)}},{key:"setMass",value:function(e){this.colliderSet.raw.coSetMass(this.handle,e)}},{key:"setMassProperties",value:function(e,t,r,n){var i=e8.intoRaw(t),a=e8.intoRaw(r),o=e9.intoRaw(n);this.colliderSet.raw.coSetMassProperties(this.handle,e,i,a,o),i.free(),a.free(),o.free()}},{key:"setTranslation",value:function(e){this.colliderSet.raw.coSetTranslation(this.handle,e.x,e.y,e.z)}},{key:"setTranslationWrtParent",value:function(e){this.colliderSet.raw.coSetTranslationWrtParent(this.handle,e.x,e.y,e.z)}},{key:"setRotation",value:function(e){this.colliderSet.raw.coSetRotation(this.handle,e.x,e.y,e.z,e.w)}},{key:"setRotationWrtParent",value:function(e){this.colliderSet.raw.coSetRotationWrtParent(this.handle,e.x,e.y,e.z,e.w)}},{key:"shapeType",value:function(){return this.colliderSet.raw.coShapeType(this.handle)}},{key:"halfExtents",value:function(){return e8.fromRaw(this.colliderSet.raw.coHalfExtents(this.handle))}},{key:"setHalfExtents",value:function(e){var t=e8.intoRaw(e);this.colliderSet.raw.coSetHalfExtents(this.handle,t)}},{key:"radius",value:function(){return this.colliderSet.raw.coRadius(this.handle)}},{key:"setRadius",value:function(e){this.colliderSet.raw.coSetRadius(this.handle,e)}},{key:"roundRadius",value:function(){return this.colliderSet.raw.coRoundRadius(this.handle)}},{key:"setRoundRadius",value:function(e){this.colliderSet.raw.coSetRoundRadius(this.handle,e)}},{key:"halfHeight",value:function(){return this.colliderSet.raw.coHalfHeight(this.handle)}},{key:"setHalfHeight",value:function(e){this.colliderSet.raw.coSetHalfHeight(this.handle,e)}},{key:"setVoxel",value:function(e,t,r,n){this.colliderSet.raw.coSetVoxel(this.handle,e,t,r,n),this._shape=null}},{key:"propagateVoxelChange",value:function(e,t,r,n,i,a,o){this.colliderSet.raw.coPropagateVoxelChange(this.handle,e.handle,t,r,n,i,a,o),this._shape=null}},{key:"combineVoxelStates",value:function(e,t,r,n){this.colliderSet.raw.coCombineVoxelStates(this.handle,e.handle,t,r,n),this._shape=null}},{key:"vertices",value:function(){return this.colliderSet.raw.coVertices(this.handle)}},{key:"indices",value:function(){return this.colliderSet.raw.coIndices(this.handle)}},{key:"heightfieldHeights",value:function(){return this.colliderSet.raw.coHeightfieldHeights(this.handle)}},{key:"heightfieldScale",value:function(){var e=this.colliderSet.raw.coHeightfieldScale(this.handle);return e8.fromRaw(e)}},{key:"heightfieldNRows",value:function(){return this.colliderSet.raw.coHeightfieldNRows(this.handle)}},{key:"heightfieldNCols",value:function(){return this.colliderSet.raw.coHeightfieldNCols(this.handle)}},{key:"parent",value:function(){return this._parent}},{key:"friction",value:function(){return this.colliderSet.raw.coFriction(this.handle)}},{key:"restitution",value:function(){return this.colliderSet.raw.coRestitution(this.handle)}},{key:"density",value:function(){return this.colliderSet.raw.coDensity(this.handle)}},{key:"mass",value:function(){return this.colliderSet.raw.coMass(this.handle)}},{key:"volume",value:function(){return this.colliderSet.raw.coVolume(this.handle)}},{key:"collisionGroups",value:function(){return this.colliderSet.raw.coCollisionGroups(this.handle)}},{key:"solverGroups",value:function(){return this.colliderSet.raw.coSolverGroups(this.handle)}},{key:"containsPoint",value:function(e){var t=e8.intoRaw(e),r=this.colliderSet.raw.coContainsPoint(this.handle,t);return t.free(),r}},{key:"projectPoint",value:function(e,t){var r=e8.intoRaw(e),n=tJ.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle,r,t));return r.free(),n}},{key:"intersectsRay",value:function(e,t){var r=e8.intoRaw(e.origin),n=e8.intoRaw(e.dir),i=this.colliderSet.raw.coIntersectsRay(this.handle,r,n,t);return r.free(),n.free(),i}},{key:"castShape",value:function(e,t,r,n,i,a,o,s){var u=e8.intoRaw(e),_=e8.intoRaw(r),l=e9.intoRaw(n),c=e8.intoRaw(i),h=t.intoRaw(),w=tU.fromRaw(this.colliderSet,this.colliderSet.raw.coCastShape(this.handle,u,h,_,l,c,a,o,s));return u.free(),_.free(),l.free(),c.free(),h.free(),w}},{key:"castCollider",value:function(e,t,r,n,i,a){var o=e8.intoRaw(e),s=e8.intoRaw(r),u=tX.fromRaw(this.colliderSet,this.colliderSet.raw.coCastCollider(this.handle,o,t.handle,s,n,i,a));return o.free(),s.free(),u}},{key:"intersectsShape",value:function(e,t,r){var n=e8.intoRaw(t),i=e9.intoRaw(r),a=e.intoRaw(),o=this.colliderSet.raw.coIntersectsShape(this.handle,a,n,i);return n.free(),i.free(),a.free(),o}},{key:"contactShape",value:function(e,t,r,n){var i=e8.intoRaw(t),a=e9.intoRaw(r),o=e.intoRaw(),s=tZ.fromRaw(this.colliderSet.raw.coContactShape(this.handle,o,i,a,n));return i.free(),a.free(),o.free(),s}},{key:"contactCollider",value:function(e,t){return tZ.fromRaw(this.colliderSet.raw.coContactCollider(this.handle,e.handle,t))}},{key:"castRay",value:function(e,t,r){var n=e8.intoRaw(e.origin),i=e8.intoRaw(e.dir),a=this.colliderSet.raw.coCastRay(this.handle,n,i,t,r);return n.free(),i.free(),a}},{key:"castRayAndGetNormal",value:function(e,t,r){var n=e8.intoRaw(e.origin),i=e8.intoRaw(e.dir),a=tO.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle,n,i,t,r));return n.free(),i.free(),a}}]),e}();(p=rM||(rM={}))[p.Density=0]="Density",p[p.Mass=1]="Mass",p[p.MassProps=2]="MassProps";var rL=function(){function e(t){o(this,e),this.enabled=!0,this.shape=t,this.massPropsMode=rM.Density,this.density=1,this.friction=.5,this.restitution=0,this.rotation=e9.identity(),this.translation=e8.zeros(),this.isSensor=!1,this.collisionGroups=0xffffffff,this.solverGroups=0xffffffff,this.frictionCombineRule=tL.Average,this.restitutionCombineRule=tL.Average,this.activeCollisionTypes=rj.DEFAULT,this.activeEvents=rI.NONE,this.activeHooks=rT.NONE,this.mass=0,this.centerOfMass=e8.zeros(),this.contactForceEventThreshold=0,this.contactSkin=0,this.principalAngularInertia=e8.zeros(),this.angularInertiaLocalFrame=e9.identity()}return u(e,[{key:"setTranslation",value:function(e,t,r){if("number"!=typeof e||"number"!=typeof t||"number"!=typeof r)throw TypeError("The translation components must be numbers.");return this.translation={x:e,y:t,z:r},this}},{key:"setRotation",value:function(e){return e9.copy(this.rotation,e),this}},{key:"setSensor",value:function(e){return this.isSensor=e,this}},{key:"setEnabled",value:function(e){return this.enabled=e,this}},{key:"setContactSkin",value:function(e){return this.contactSkin=e,this}},{key:"setDensity",value:function(e){return this.massPropsMode=rM.Density,this.density=e,this}},{key:"setMass",value:function(e){return this.massPropsMode=rM.Mass,this.mass=e,this}},{key:"setMassProperties",value:function(e,t,r,n){return this.massPropsMode=rM.MassProps,this.mass=e,e8.copy(this.centerOfMass,t),e8.copy(this.principalAngularInertia,r),e9.copy(this.angularInertiaLocalFrame,n),this}},{key:"setRestitution",value:function(e){return this.restitution=e,this}},{key:"setFriction",value:function(e){return this.friction=e,this}},{key:"setFrictionCombineRule",value:function(e){return this.frictionCombineRule=e,this}},{key:"setRestitutionCombineRule",value:function(e){return this.restitutionCombineRule=e,this}},{key:"setCollisionGroups",value:function(e){return this.collisionGroups=e,this}},{key:"setSolverGroups",value:function(e){return this.solverGroups=e,this}},{key:"setActiveHooks",value:function(e){return this.activeHooks=e,this}},{key:"setActiveEvents",value:function(e){return this.activeEvents=e,this}},{key:"setActiveCollisionTypes",value:function(e){return this.activeCollisionTypes=e,this}},{key:"setContactForceEventThreshold",value:function(e){return this.contactForceEventThreshold=e,this}}],[{key:"ball",value:function(e){return new rL(new t$(e))}},{key:"capsule",value:function(e,t){return new rL(new t3(e,t))}},{key:"segment",value:function(e,t){return new rL(new t4(e,t))}},{key:"triangle",value:function(e,t,r){return new rL(new t6(e,t,r))}},{key:"roundTriangle",value:function(e,t,r,n){return new rL(new t5(e,t,r,n))}},{key:"polyline",value:function(e,t){return new rL(new t8(e,t))}},{key:"voxels",value:function(e,t){return new rL(new t7(e,t))}},{key:"trimesh",value:function(e,t,r){return new rL(new t9(e,t,r))}},{key:"cuboid",value:function(e,t,r){return new rL(new t1(e,t,r))}},{key:"roundCuboid",value:function(e,t,r,n){return new rL(new t2(e,t,r,n))}},{key:"heightfield",value:function(e,t,r,n,i){return new rL(new rr(e,t,r,n,i))}},{key:"cylinder",value:function(e,t){return new rL(new rn(e,t))}},{key:"roundCylinder",value:function(e,t,r){return new rL(new ri(e,t,r))}},{key:"cone",value:function(e,t){return new rL(new ra(e,t))}},{key:"roundCone",value:function(e,t,r){return new rL(new ro(e,t,r))}},{key:"convexHull",value:function(e){return new rL(new re(e,null))}},{key:"convexMesh",value:function(e,t){return new rL(new re(e,t))}},{key:"roundConvexHull",value:function(e,t){return new rL(new rt(e,null,t))}},{key:"roundConvexMesh",value:function(e,t,r){return new rL(new rt(e,t,r))}}]),e}(),rH=function(){function e(t){var r=this;o(this,e),this.raw=t||new Z,this.map=new ti,t&&t.forEachColliderHandle(function(e){r.map.set(e,new rD(r,e,null))})}return u(e,[{key:"free",value:function(){this.raw&&this.raw.free(),this.raw=void 0,this.map&&this.map.clear(),this.map=void 0}},{key:"castClosure",value:function(e){var t=this;return function(r){if(e)return e(t.get(r))}}},{key:"finalizeDeserialization",value:function(e){this.map.forEach(function(t){return t.finalizeDeserialization(e)})}},{key:"createCollider",value:function(e,t,r){var n=null!=r&&null!=r;if(n&&isNaN(r))throw Error("Cannot create a collider with a parent rigid-body handle that is not a number.");var i=t.shape.intoRaw(),a=e8.intoRaw(t.translation),o=e9.intoRaw(t.rotation),s=e8.intoRaw(t.centerOfMass),u=e8.intoRaw(t.principalAngularInertia),_=e9.intoRaw(t.angularInertiaLocalFrame),l=this.raw.createCollider(t.enabled,i,a,o,t.massPropsMode,t.mass,s,u,_,t.density,t.friction,t.restitution,t.frictionCombineRule,t.restitutionCombineRule,t.isSensor,t.collisionGroups,t.solverGroups,t.activeCollisionTypes,t.activeHooks,t.activeEvents,t.contactForceEventThreshold,t.contactSkin,n,n?r:0,e.raw);i.free(),a.free(),o.free(),s.free(),u.free(),_.free();var c=new rD(this,l,n?e.get(r):null,t.shape);return this.map.set(l,c),c}},{key:"remove",value:function(e,t,r,n){this.raw.remove(e,t.raw,r.raw,n),this.unmap(e)}},{key:"unmap",value:function(e){this.map.delete(e)}},{key:"get",value:function(e){return this.map.get(e)}},{key:"len",value:function(){return this.map.len()}},{key:"contains",value:function(e){return null!=this.get(e)}},{key:"forEach",value:function(e){this.map.forEach(e)}},{key:"getAll",value:function(){return this.map.getAll()}}]),e}();function rN(){return function(){var e,t;try{var r=y.__wbindgen_add_to_stack_pointer(-16);y.version(r);var n=E().getInt32(r+0,!0),i=E().getInt32(r+4,!0);return e=n,t=i,S(n,i)}finally{y.__wbindgen_add_to_stack_pointer(16),y.__wbindgen_export_1(e,t,1)}}()}function rG(e){y.reserve_memory(e)}function rO(e){return i(function(){return d(this,function(t){switch(t.label){case 0:return[4,e6({module_or_path:null!=e?e:new URL(r(7945),r.b)})];case 1:return t.sent(),[2]}})})()}}}]);