python-cad-tools 0.1.3.dev2__py3-none-any.whl → 0.1.4__py3-none-any.whl

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 (180) hide show
  1. python_cad_tools/_viewer_static/asset-manifest.json +1 -1
  2. python_cad_tools/_viewer_static/assets/{animationGroup-CjhCwiIi.js → animationGroup-DsIEQ73q.js} +1 -1
  3. python_cad_tools/_viewer_static/assets/{bakedVertexAnimation-_xBvgBl7.js → bakedVertexAnimation-CZalW6MY.js} +1 -1
  4. python_cad_tools/_viewer_static/assets/{basisTextureLoader-D5LtrhD-.js → basisTextureLoader-COAjXVqP.js} +1 -1
  5. python_cad_tools/_viewer_static/assets/{brdfTextureTools-D9U08KSH.js → brdfTextureTools-BHIclPmG.js} +2 -2
  6. python_cad_tools/_viewer_static/assets/{bumpFragment-BkzgDMwt.js → bumpFragment-VvIKAANw.js} +1 -1
  7. python_cad_tools/_viewer_static/assets/{bumpVertex-BXtiaDZI.js → bumpVertex-DLicej86.js} +1 -1
  8. python_cad_tools/_viewer_static/assets/{bumpVertexDeclaration-CchYDl1F.js → bumpVertexDeclaration-DaRKbtcX.js} +1 -1
  9. python_cad_tools/_viewer_static/assets/{clipPlaneFragment-pIdOfJ_5.js → clipPlaneFragment-Cllz8e_G.js} +1 -1
  10. python_cad_tools/_viewer_static/assets/{clipPlaneVertex-Kl_G8tpP.js → clipPlaneVertex-ChqMABPH.js} +1 -1
  11. python_cad_tools/_viewer_static/assets/{cubemapToSphericalPolynomial-CJ4cRmPh.js → cubemapToSphericalPolynomial-Xk086_Qo.js} +1 -1
  12. python_cad_tools/_viewer_static/assets/dds-C6ZccGbi.js +1 -0
  13. python_cad_tools/_viewer_static/assets/{dds.pure-BoNGq59u.js → dds.pure-DQ1rbFUk.js} +1 -1
  14. python_cad_tools/_viewer_static/assets/{ddsTextureLoader-D8JRisWC.js → ddsTextureLoader-CL_A0T2G.js} +1 -1
  15. python_cad_tools/_viewer_static/assets/{default.fragment-D0gXI89M.js → default.fragment-hdxpe8Dp.js} +1 -1
  16. python_cad_tools/_viewer_static/assets/{default.vertex-BdO0XLk6.js → default.vertex-BLL2IEXP.js} +1 -1
  17. python_cad_tools/_viewer_static/assets/{defaultUboDeclaration-BJ4b62qj.js → defaultUboDeclaration-kpQOJEVS.js} +1 -1
  18. python_cad_tools/_viewer_static/assets/{dumpTools-B7F8Ed3A.js → dumpTools-CUtvg5MO.js} +2 -2
  19. python_cad_tools/_viewer_static/assets/{envTextureLoader-BnvTfKgF.js → envTextureLoader-Bha4zu64.js} +1 -1
  20. python_cad_tools/_viewer_static/assets/{exrTextureLoader-C2D3Wx-p.js → exrTextureLoader-DGetsIyD.js} +1 -1
  21. python_cad_tools/_viewer_static/assets/{flowGraphApplyForceBlock-C08kKLog.js → flowGraphApplyForceBlock-D0SE4mA-.js} +1 -1
  22. python_cad_tools/_viewer_static/assets/{flowGraphApplyImpulseBlock-GzK2l9nm.js → flowGraphApplyImpulseBlock-DTkgPEFB.js} +1 -1
  23. python_cad_tools/_viewer_static/assets/{flowGraphArrayIndexBlock-DkRHIuYC.js → flowGraphArrayIndexBlock-Cjyt2bwB.js} +1 -1
  24. python_cad_tools/_viewer_static/assets/{flowGraphBezierCurveEasingBlock-Csol8jUn.js → flowGraphBezierCurveEasingBlock-DWxYlhxj.js} +1 -1
  25. python_cad_tools/_viewer_static/assets/{flowGraphBinaryOperationBlock-C-xEeg-Z.js → flowGraphBinaryOperationBlock-BeXLKyeD.js} +1 -1
  26. python_cad_tools/_viewer_static/assets/{flowGraphBranchBlock-D7bstQqM.js → flowGraphBranchBlock-BqigJ1AN.js} +1 -1
  27. python_cad_tools/_viewer_static/assets/{flowGraphCachedOperationBlock-C0pDPzaF.js → flowGraphCachedOperationBlock-D2544szv.js} +1 -1
  28. python_cad_tools/_viewer_static/assets/{flowGraphCancelDelayBlock-VwnDZhN9.js → flowGraphCancelDelayBlock-DS-QhXgE.js} +1 -1
  29. python_cad_tools/_viewer_static/assets/{flowGraphCodeExecutionBlock-C5aa0K7t.js → flowGraphCodeExecutionBlock-BY0Vhd0M.js} +1 -1
  30. python_cad_tools/_viewer_static/assets/{flowGraphConditionalDataBlock-B4vfaSDi.js → flowGraphConditionalDataBlock-DoNGzuFZ.js} +1 -1
  31. python_cad_tools/_viewer_static/assets/{flowGraphConsoleLogBlock-CuLlYu4c.js → flowGraphConsoleLogBlock-CL1zETuj.js} +1 -1
  32. python_cad_tools/_viewer_static/assets/{flowGraphConstantBlock-DkyD6_YZ.js → flowGraphConstantBlock-b0L3Bfv_.js} +1 -1
  33. python_cad_tools/_viewer_static/assets/{flowGraphContextBlock-IKUbfY32.js → flowGraphContextBlock-CE3gLEM4.js} +1 -1
  34. python_cad_tools/_viewer_static/assets/{flowGraphCounterBlock-tP_5qAQn.js → flowGraphCounterBlock-Z6deq4Xb.js} +1 -1
  35. python_cad_tools/_viewer_static/assets/{flowGraphDataSwitchBlock-DiTgopj3.js → flowGraphDataSwitchBlock-wfFU7ZMz.js} +1 -1
  36. python_cad_tools/_viewer_static/assets/{flowGraphDebounceBlock-FLUJTpdt.js → flowGraphDebounceBlock-B5U221PZ.js} +1 -1
  37. python_cad_tools/_viewer_static/assets/{flowGraphDebugBlock-C0EH9zPP.js → flowGraphDebugBlock-CpuIkgZU.js} +1 -1
  38. python_cad_tools/_viewer_static/assets/{flowGraphDoNBlock-DiAdBjnD.js → flowGraphDoNBlock-ByWmK6vQ.js} +1 -1
  39. python_cad_tools/_viewer_static/assets/{flowGraphEasingBlock-CXlIILZe.js → flowGraphEasingBlock-CRs4rMj_.js} +1 -1
  40. python_cad_tools/_viewer_static/assets/{flowGraphFlipFlopBlock-5XRf4KeD.js → flowGraphFlipFlopBlock-CK5fJiSy.js} +1 -1
  41. python_cad_tools/_viewer_static/assets/{flowGraphForLoopBlock-RitJ6OS_.js → flowGraphForLoopBlock-H1FPxMZo.js} +1 -1
  42. python_cad_tools/_viewer_static/assets/{flowGraphFunctionReferenceBlock-DvVIlipg.js → flowGraphFunctionReferenceBlock-DrieLYOj.js} +1 -1
  43. python_cad_tools/_viewer_static/assets/{flowGraphGLTFDataProvider-BxBUrprf.js → flowGraphGLTFDataProvider-D7vSBwR1.js} +1 -1
  44. python_cad_tools/_viewer_static/assets/{flowGraphGetAngularVelocityBlock-CqBDBjqf.js → flowGraphGetAngularVelocityBlock-CkYrIYRL.js} +1 -1
  45. python_cad_tools/_viewer_static/assets/{flowGraphGetAssetBlock-Dk4qKn1w.js → flowGraphGetAssetBlock-BOr56oxs.js} +1 -1
  46. python_cad_tools/_viewer_static/assets/{flowGraphGetLinearVelocityBlock-DNN6N9mt.js → flowGraphGetLinearVelocityBlock-4Mn8MDsq.js} +1 -1
  47. python_cad_tools/_viewer_static/assets/{flowGraphGetPhysicsMassPropertiesBlock-CTsHqDvM.js → flowGraphGetPhysicsMassPropertiesBlock-DwufqO-4.js} +1 -1
  48. python_cad_tools/_viewer_static/assets/{flowGraphGetPropertyBlock-CjX3cseU.js → flowGraphGetPropertyBlock-CAeZqGoL.js} +1 -1
  49. python_cad_tools/_viewer_static/assets/{flowGraphGetSoundVolumeBlock-DzWJtlM9.js → flowGraphGetSoundVolumeBlock-DfnjXMG_.js} +1 -1
  50. python_cad_tools/_viewer_static/assets/{flowGraphGetVariableBlock-uBq6vXOw.js → flowGraphGetVariableBlock-Bw2aRjaE.js} +1 -1
  51. python_cad_tools/_viewer_static/assets/{flowGraphIndexOfBlock-MpANR6P1.js → flowGraphIndexOfBlock-DuZkczUp.js} +1 -1
  52. python_cad_tools/_viewer_static/assets/{flowGraphInterpolationBlock-BM2_pZfB.js → flowGraphInterpolationBlock-CQUVrJhI.js} +1 -1
  53. python_cad_tools/_viewer_static/assets/{flowGraphIsKeyPressedBlock-X1Q2SR0H.js → flowGraphIsKeyPressedBlock-CKMqA1DR.js} +1 -1
  54. python_cad_tools/_viewer_static/assets/{flowGraphIsSoundPlayingBlock-C_ir8hba.js → flowGraphIsSoundPlayingBlock-CIAX4gsj.js} +1 -1
  55. python_cad_tools/_viewer_static/assets/{flowGraphJsonPointerParserBlock-I5tJhTaw.js → flowGraphJsonPointerParserBlock-Bt9WkFOM.js} +1 -1
  56. python_cad_tools/_viewer_static/assets/{flowGraphKeyDownEventBlock-DSmmDXBR.js → flowGraphKeyDownEventBlock-BwXDwLBi.js} +1 -1
  57. python_cad_tools/_viewer_static/assets/{flowGraphKeyUpEventBlock-BDViriRD.js → flowGraphKeyUpEventBlock-BH_q1Ope.js} +1 -1
  58. python_cad_tools/_viewer_static/assets/{flowGraphKeyboardEventBlock-B7EQjaZe.js → flowGraphKeyboardEventBlock-CU8VJhCC.js} +1 -1
  59. python_cad_tools/_viewer_static/assets/{flowGraphMathBlocks-RIndR7Kr.js → flowGraphMathBlocks-TXHKXyeY.js} +1 -1
  60. python_cad_tools/_viewer_static/assets/{flowGraphMathCombineExtractBlocks-BEMkyBCM.js → flowGraphMathCombineExtractBlocks-DKuB9Mlq.js} +1 -1
  61. python_cad_tools/_viewer_static/assets/{flowGraphMatrixMathBlocks-BAV1wScN.js → flowGraphMatrixMathBlocks-BGDHmBFG.js} +1 -1
  62. python_cad_tools/_viewer_static/assets/{flowGraphMeshPickEventBlock-CcNT5f0d.js → flowGraphMeshPickEventBlock-DdOr-Hvu.js} +1 -1
  63. python_cad_tools/_viewer_static/assets/{flowGraphMultiGateBlock-DSEbX2Mj.js → flowGraphMultiGateBlock-qMXK-ALx.js} +1 -1
  64. python_cad_tools/_viewer_static/assets/{flowGraphPauseAnimationBlock-Dfthx2s-.js → flowGraphPauseAnimationBlock-hPtKOUnY.js} +1 -1
  65. python_cad_tools/_viewer_static/assets/{flowGraphPauseSoundBlock-DSu8v9Kr.js → flowGraphPauseSoundBlock-BGBSlkM3.js} +1 -1
  66. python_cad_tools/_viewer_static/assets/{flowGraphPhysicsCollisionEventBlock-jvE_54c8.js → flowGraphPhysicsCollisionEventBlock-7YfMt_A1.js} +1 -1
  67. python_cad_tools/_viewer_static/assets/{flowGraphPlayAnimationBlock-DK8Z5heh.js → flowGraphPlayAnimationBlock-C9_H0W1H.js} +1 -1
  68. python_cad_tools/_viewer_static/assets/{flowGraphPlaySoundBlock-XiF7wfi1.js → flowGraphPlaySoundBlock-BhG6uJmA.js} +1 -1
  69. python_cad_tools/_viewer_static/assets/{flowGraphPointerDownEventBlock-BOqQHgdZ.js → flowGraphPointerDownEventBlock-GBPgkHfj.js} +1 -1
  70. python_cad_tools/_viewer_static/assets/{flowGraphPointerMoveEventBlock-DggBfxkF.js → flowGraphPointerMoveEventBlock-B9xb5ipq.js} +1 -1
  71. python_cad_tools/_viewer_static/assets/{flowGraphPointerOutEventBlock-DvZyyUF4.js → flowGraphPointerOutEventBlock-DZE1Ulng.js} +1 -1
  72. python_cad_tools/_viewer_static/assets/{flowGraphPointerOverEventBlock-YLki8WEB.js → flowGraphPointerOverEventBlock-Bx_Bbmlm.js} +1 -1
  73. python_cad_tools/_viewer_static/assets/{flowGraphPointerUpEventBlock-D1tqJ9jF.js → flowGraphPointerUpEventBlock-Lfu7DTHO.js} +1 -1
  74. python_cad_tools/_viewer_static/assets/{flowGraphReceiveCustomEventBlock-D3VAKTpt.js → flowGraphReceiveCustomEventBlock-CNMufa4Q.js} +1 -1
  75. python_cad_tools/_viewer_static/assets/{flowGraphSceneReadyEventBlock-Dt8AsNSg.js → flowGraphSceneReadyEventBlock-BInxhpxK.js} +1 -1
  76. python_cad_tools/_viewer_static/assets/{flowGraphSceneTickEventBlock-BtuZ_Spn.js → flowGraphSceneTickEventBlock-DTDZyoc3.js} +1 -1
  77. python_cad_tools/_viewer_static/assets/{flowGraphSendCustomEventBlock-B8Dzycmf.js → flowGraphSendCustomEventBlock-BOGgKOnP.js} +1 -1
  78. python_cad_tools/_viewer_static/assets/{flowGraphSequenceBlock-CQsb2okn.js → flowGraphSequenceBlock-D-FGr9Zw.js} +1 -1
  79. python_cad_tools/_viewer_static/assets/{flowGraphSetAngularVelocityBlock-C3zOq5X7.js → flowGraphSetAngularVelocityBlock-CH6VePBl.js} +1 -1
  80. python_cad_tools/_viewer_static/assets/{flowGraphSetDelayBlock-DxyUb-8k.js → flowGraphSetDelayBlock-n6qAMb7Q.js} +1 -1
  81. python_cad_tools/_viewer_static/assets/{flowGraphSetLinearVelocityBlock-DeNTJQ42.js → flowGraphSetLinearVelocityBlock-DcqJhGqB.js} +1 -1
  82. python_cad_tools/_viewer_static/assets/{flowGraphSetPhysicsMotionTypeBlock-i233RoWe.js → flowGraphSetPhysicsMotionTypeBlock-DRWqANvn.js} +1 -1
  83. python_cad_tools/_viewer_static/assets/{flowGraphSetPropertyBlock-Darrnz2o.js → flowGraphSetPropertyBlock-D_IoFmjW.js} +1 -1
  84. python_cad_tools/_viewer_static/assets/{flowGraphSetSoundVolumeBlock-KrTTGHr6.js → flowGraphSetSoundVolumeBlock-Cu0qdSne.js} +1 -1
  85. python_cad_tools/_viewer_static/assets/{flowGraphSetVariableBlock-8CdS1h8e.js → flowGraphSetVariableBlock-ob3vWA--.js} +1 -1
  86. python_cad_tools/_viewer_static/assets/{flowGraphSoundEndedEventBlock-Cuk8JjDG.js → flowGraphSoundEndedEventBlock-C2d303hL.js} +1 -1
  87. python_cad_tools/_viewer_static/assets/{flowGraphStopAnimationBlock-DOsG4sc5.js → flowGraphStopAnimationBlock-BqCklpFH.js} +1 -1
  88. python_cad_tools/_viewer_static/assets/{flowGraphStopSoundBlock-C5IaCPpa.js → flowGraphStopSoundBlock-bk8E55Bx.js} +1 -1
  89. python_cad_tools/_viewer_static/assets/{flowGraphSwitchBlock-ClqiypjM.js → flowGraphSwitchBlock-DvwhuZhG.js} +1 -1
  90. python_cad_tools/_viewer_static/assets/{flowGraphThrottleBlock-C7hhfNo2.js → flowGraphThrottleBlock-DG8TRsJy.js} +1 -1
  91. python_cad_tools/_viewer_static/assets/{flowGraphTransformCoordinatesSystemBlock-BksU6sPJ.js → flowGraphTransformCoordinatesSystemBlock-CH4muGsP.js} +1 -1
  92. python_cad_tools/_viewer_static/assets/{flowGraphTypeToTypeBlocks-DJi_CBW-.js → flowGraphTypeToTypeBlocks-C7hV0GKG.js} +1 -1
  93. python_cad_tools/_viewer_static/assets/{flowGraphUnaryOperationBlock-U15mYQbJ.js → flowGraphUnaryOperationBlock-DiLGLHtc.js} +1 -1
  94. python_cad_tools/_viewer_static/assets/{flowGraphVectorMathBlocks-D4QAvgsk.js → flowGraphVectorMathBlocks-USb1v61c.js} +1 -1
  95. python_cad_tools/_viewer_static/assets/{flowGraphWaitAllBlock-UV6LDk1r.js → flowGraphWaitAllBlock-D5X16kvu.js} +1 -1
  96. python_cad_tools/_viewer_static/assets/{flowGraphWhileLoopBlock-DPpNHwZP.js → flowGraphWhileLoopBlock-Be9fTLoy.js} +1 -1
  97. python_cad_tools/_viewer_static/assets/{fogFragment-pKchdx3M.js → fogFragment-BzLCRCIz.js} +1 -1
  98. python_cad_tools/_viewer_static/assets/{gaussianSplatting-oRLzV71m.js → gaussianSplatting-CAfPyqPa.js} +1 -1
  99. python_cad_tools/_viewer_static/assets/{gaussianSplatting-DgjcxjKa.js → gaussianSplatting-DPftVbu_.js} +1 -1
  100. python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-BKYuCXf7.js → gaussianSplatting.fragment--eSkFo4e.js} +1 -1
  101. python_cad_tools/_viewer_static/assets/{gaussianSplatting.fragment-NCxeyHg7.js → gaussianSplatting.fragment-bBe4NB4J.js} +1 -1
  102. python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-CW0PXB4s.js → gaussianSplatting.vertex-56pdhT0C.js} +1 -1
  103. python_cad_tools/_viewer_static/assets/{gaussianSplatting.vertex-zmXoP8p9.js → gaussianSplatting.vertex-B1n9hp15.js} +1 -1
  104. python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment-CgX-XH5m.js → gaussianSplattingVoxel.fragment-BZapF5sB.js} +1 -1
  105. python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.fragment--IDQcS1p.js → gaussianSplattingVoxel.fragment-CX6nBRSU.js} +1 -1
  106. python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-DzuuyEGB.js → gaussianSplattingVoxel.vertex-COp6zd-l.js} +1 -1
  107. python_cad_tools/_viewer_static/assets/{gaussianSplattingVoxel.vertex-YB1C1Muy.js → gaussianSplattingVoxel.vertex-aXKOzvn3.js} +1 -1
  108. python_cad_tools/_viewer_static/assets/{geometry.fragment-EEbMy57o.js → geometry.fragment-BEdt-FQu.js} +1 -1
  109. python_cad_tools/_viewer_static/assets/{geometry.fragment-DuBDWlLB.js → geometry.fragment-Dr1pGbVQ.js} +1 -1
  110. python_cad_tools/_viewer_static/assets/{geometry.vertex-3cVZEKxJ.js → geometry.vertex--elQa6vQ.js} +1 -1
  111. python_cad_tools/_viewer_static/assets/{geometry.vertex-B--XA-QK.js → geometry.vertex-C4cLov7Q.js} +1 -1
  112. python_cad_tools/_viewer_static/assets/{glowBlurPostProcess.fragment-UNz8njEJ.js → glowBlurPostProcess.fragment-C_S_GG9X.js} +1 -1
  113. python_cad_tools/_viewer_static/assets/{glowMapGeneration.fragment-CsSqgq6c.js → glowMapGeneration.fragment-B9tAmR9r.js} +1 -1
  114. python_cad_tools/_viewer_static/assets/{glowMapGeneration.vertex-DOMHadFA.js → glowMapGeneration.vertex-CEIj_3tv.js} +1 -1
  115. python_cad_tools/_viewer_static/assets/{glowMapMerge.fragment-DXi2v5pz.js → glowMapMerge.fragment-C0kWfvu0.js} +1 -1
  116. python_cad_tools/_viewer_static/assets/{glowMapMerge.vertex-DgBSWFHP.js → glowMapMerge.vertex-DPy1k2mD.js} +1 -1
  117. python_cad_tools/_viewer_static/assets/{harmonicsFunctions-BkifmnNV.js → harmonicsFunctions-BVmgiiRj.js} +1 -1
  118. python_cad_tools/_viewer_static/assets/{helperFunctions-Bx8RYYvi.js → helperFunctions-DeCJcXoK.js} +1 -1
  119. python_cad_tools/_viewer_static/assets/{iesTextureLoader-Dj5K0vc1.js → iesTextureLoader-CLEy0Gjc.js} +1 -1
  120. python_cad_tools/_viewer_static/assets/{index-JRwY7p9T.js → index-YcXsPtFI.js} +21 -19
  121. python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-BRdwtDs7.js → kernelBlur.fragment-DhmP78e4.js} +1 -1
  122. python_cad_tools/_viewer_static/assets/{kernelBlur.fragment-B9YDiI_M.js → kernelBlur.fragment-DzyofO4j.js} +1 -1
  123. python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-CWlIunB6.js → kernelBlur.vertex-1S6DR99z.js} +1 -1
  124. python_cad_tools/_viewer_static/assets/{kernelBlur.vertex-A7OpqdrG.js → kernelBlur.vertex-BUw8hyu8.js} +1 -1
  125. python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-PE5ICZNw.js → kernelBlurVaryingDeclaration-DPnSKXPz.js} +1 -1
  126. python_cad_tools/_viewer_static/assets/{kernelBlurVaryingDeclaration-YMenN7Se.js → kernelBlurVaryingDeclaration-GWJW2YR3.js} +1 -1
  127. python_cad_tools/_viewer_static/assets/{ktxTextureLoader-uG9TUdGM.js → ktxTextureLoader-Bz9RqBRq.js} +1 -1
  128. python_cad_tools/_viewer_static/assets/{lightFragment-CDLhoaId.js → lightFragment-BRkIPUO1.js} +1 -1
  129. python_cad_tools/_viewer_static/assets/{logDepthDeclaration-BOlhc3aa.js → logDepthDeclaration-DHeJwlJR.js} +1 -1
  130. python_cad_tools/_viewer_static/assets/{logDepthVertex-BIA9Xrid.js → logDepthVertex-Dt5zdVFA.js} +1 -1
  131. python_cad_tools/_viewer_static/assets/{mainUVVaryingDeclaration-PmIDYGIz.js → mainUVVaryingDeclaration-CoUbOUEQ.js} +1 -1
  132. python_cad_tools/_viewer_static/assets/{meshUboDeclaration-BfPhZsyr.js → meshUboDeclaration-dDsFbRSv.js} +1 -1
  133. python_cad_tools/_viewer_static/assets/{oitFragment-DpKfMtsk.js → oitFragment-C1JYx8fS.js} +1 -1
  134. python_cad_tools/_viewer_static/assets/{openpbr.fragment-BAOdoy3Z.js → openpbr.fragment-BJTs78x9.js} +1 -1
  135. python_cad_tools/_viewer_static/assets/{openpbr.fragment-BmgNfxS4.js → openpbr.fragment-CnBW8BK7.js} +1 -1
  136. python_cad_tools/_viewer_static/assets/{openpbr.vertex-BpB-7aXl.js → openpbr.vertex-Cis9aL4z.js} +1 -1
  137. python_cad_tools/_viewer_static/assets/{openpbr.vertex-D-IjPutK.js → openpbr.vertex-Qr3-JJak.js} +1 -1
  138. python_cad_tools/_viewer_static/assets/{openpbrMaterial.pure-C6V2SeQx.js → openpbrMaterial.pure-CyogTmBA.js} +3 -3
  139. python_cad_tools/_viewer_static/assets/{openpbrMaterialLoadingAdapter-CbcwuEwB.js → openpbrMaterialLoadingAdapter-Ia3_0Gp8.js} +2 -2
  140. python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-BClMu_zp.js → openpbrTransmissionLayerData-D2UaStdu.js} +1 -1
  141. python_cad_tools/_viewer_static/assets/{openpbrTransmissionLayerData-1U_DHNWK.js → openpbrTransmissionLayerData-Yc4m_LFv.js} +1 -1
  142. python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-piwBvKOi.js → openpbrUboDeclaration-DfY3S0VX.js} +1 -1
  143. python_cad_tools/_viewer_static/assets/{openpbrUboDeclaration-DLujw3YH.js → openpbrUboDeclaration-YAeSpo2n.js} +1 -1
  144. python_cad_tools/_viewer_static/assets/{packingFunctions-BD5WZtBT.js → packingFunctions-BWIusbYB.js} +1 -1
  145. python_cad_tools/_viewer_static/assets/{packingFunctions-D3gaUkUa.js → packingFunctions-yE7XM0N6.js} +1 -1
  146. python_cad_tools/_viewer_static/assets/{pass.fragment-CzZpaqYk.js → pass.fragment-DsLu0lV1.js} +1 -1
  147. python_cad_tools/_viewer_static/assets/{passCube.fragment-DwRJ1H1s.js → passCube.fragment-CmSU0-bM.js} +1 -1
  148. python_cad_tools/_viewer_static/assets/{passCube.fragment-Bso78Amo.js → passCube.fragment-CwkS-Cl_.js} +1 -1
  149. python_cad_tools/_viewer_static/assets/{pbr.fragment-sZ-foSaO.js → pbr.fragment-BUBggeRz.js} +1 -1
  150. python_cad_tools/_viewer_static/assets/{pbr.vertex-PBjkpyNN.js → pbr.vertex-BXB7uMkC.js} +1 -1
  151. python_cad_tools/_viewer_static/assets/{pbrBRDFFunctions-Dv8-Akv1.js → pbrBRDFFunctions-C50h7JEU.js} +1 -1
  152. python_cad_tools/_viewer_static/assets/{pbrDebug-5RaK38tC.js → pbrDebug-RHma8ghT.js} +1 -1
  153. python_cad_tools/_viewer_static/assets/{pbrIBLFunctions-D_X-tzpO.js → pbrIBLFunctions-D5A_AxnZ.js} +1 -1
  154. python_cad_tools/_viewer_static/assets/{pbrMaterial.pure-RJ6tVczH.js → pbrMaterial.pure-DN58n3w5.js} +2 -2
  155. python_cad_tools/_viewer_static/assets/{pbrMaterialLoadingAdapter-BqlfZ1xs.js → pbrMaterialLoadingAdapter-COioUqvP.js} +1 -1
  156. python_cad_tools/_viewer_static/assets/{pbrUboDeclaration-BqNgF1qB.js → pbrUboDeclaration-CMkwjzTB.js} +1 -1
  157. python_cad_tools/_viewer_static/assets/{postprocess.vertex-9J4kRI6V.js → postprocess.vertex-DYv0bAut.js} +1 -1
  158. python_cad_tools/_viewer_static/assets/{procedural.vertex-Bq_A-zE0.js → procedural.vertex-BMAV1XYH.js} +1 -1
  159. python_cad_tools/_viewer_static/assets/{procedural.vertex-DzkBufoo.js → procedural.vertex-CRCZXfiw.js} +1 -1
  160. python_cad_tools/_viewer_static/assets/{reflectionFunction-n0dvho3A.js → reflectionFunction-CpMEFzxv.js} +1 -1
  161. python_cad_tools/_viewer_static/assets/{rgbdDecode.fragment-0BuGamw5.js → rgbdDecode.fragment-BZcVE2Bb.js} +1 -1
  162. python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-BBGe9kwu.js → rgbdEncode.fragment-BImEwGmR.js} +1 -1
  163. python_cad_tools/_viewer_static/assets/{rgbdEncode.fragment-DiiD2NE-.js → rgbdEncode.fragment-DPFzMtDN.js} +1 -1
  164. python_cad_tools/_viewer_static/assets/{sceneUboDeclaration-BmpwedcW.js → sceneUboDeclaration-1bB3YoON.js} +1 -1
  165. python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-CyBHPXX2.js → textureProcessor.fragment--dZBsr4X.js} +1 -1
  166. python_cad_tools/_viewer_static/assets/{textureProcessor.fragment-CwNRejEe.js → textureProcessor.fragment-BlZ9kg3B.js} +1 -1
  167. python_cad_tools/_viewer_static/assets/{tgaTextureLoader-ClB6SRY9.js → tgaTextureLoader-DeroIE2j.js} +1 -1
  168. python_cad_tools/_viewer_static/assets/{vertexColorMixing-f4wQRwGI.js → vertexColorMixing-C6OHmVcI.js} +1 -1
  169. python_cad_tools/_viewer_static/index.html +1 -1
  170. python_cad_tools/build-info.json +1 -1
  171. {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/METADATA +1 -1
  172. python_cad_tools-0.1.4.dist-info/RECORD +237 -0
  173. python_cad_tools/_viewer_static/assets/dds-YsWo1VVF.js +0 -1
  174. python_cad_tools-0.1.3.dev2.dist-info/RECORD +0 -239
  175. python_cad_tools-0.1.3.dev2.dist-info/scm_file_list.json +0 -304
  176. python_cad_tools-0.1.3.dev2.dist-info/scm_version.json +0 -8
  177. {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/WHEEL +0 -0
  178. {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/entry_points.txt +0 -0
  179. {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/licenses/LICENSE +0 -0
  180. {python_cad_tools-0.1.3.dev2.dist-info → python_cad_tools-0.1.4.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- import{y as a,g as l,H as o,i as c}from"./index-JRwY7p9T.js";class p extends a{constructor(e){super(e),this.body=this.registerDataInput("body",l),this.force=this.registerDataInput("force",o),this.location=this.registerDataInput("location",o)}_execute(e,u){const t=this.body.getValue(e);if(!t){this._reportError(e,"No physics body provided"),this.out._activateSignal(e);return}const i=this.force.getValue(e),s=this.location.getValue(e);t.applyForce(i,s),this.out._activateSignal(e)}getClassName(){return"FlowGraphApplyForceBlock"}}let r=!1;function h(){r||(r=!0,c("FlowGraphApplyForceBlock",p))}h();export{p as FlowGraphApplyForceBlock,h as RegisterFlowGraphApplyForceBlock};
1
+ import{y as a,g as l,H as o,i as c}from"./index-YcXsPtFI.js";class p extends a{constructor(e){super(e),this.body=this.registerDataInput("body",l),this.force=this.registerDataInput("force",o),this.location=this.registerDataInput("location",o)}_execute(e,u){const t=this.body.getValue(e);if(!t){this._reportError(e,"No physics body provided"),this.out._activateSignal(e);return}const i=this.force.getValue(e),s=this.location.getValue(e);t.applyForce(i,s),this.out._activateSignal(e)}getClassName(){return"FlowGraphApplyForceBlock"}}let r=!1;function h(){r||(r=!0,c("FlowGraphApplyForceBlock",p))}h();export{p as FlowGraphApplyForceBlock,h as RegisterFlowGraphApplyForceBlock};
@@ -1 +1 @@
1
- import{y as p,g as o,H as t,i as r}from"./index-JRwY7p9T.js";class u extends p{constructor(e){super(e),this.body=this.registerDataInput("body",o),this.impulse=this.registerDataInput("impulse",t),this.location=this.registerDataInput("location",t)}_execute(e,n){const s=this.body.getValue(e);if(!s){this._reportError(e,"No physics body provided"),this.out._activateSignal(e);return}const l=this.impulse.getValue(e),a=this.location.getValue(e);s.applyImpulse(l,a),this.out._activateSignal(e)}getClassName(){return"FlowGraphApplyImpulseBlock"}}let i=!1;function c(){i||(i=!0,r("FlowGraphApplyImpulseBlock",u))}c();export{u as FlowGraphApplyImpulseBlock,c as RegisterFlowGraphApplyImpulseBlock};
1
+ import{y as p,g as o,H as t,i as r}from"./index-YcXsPtFI.js";class u extends p{constructor(e){super(e),this.body=this.registerDataInput("body",o),this.impulse=this.registerDataInput("impulse",t),this.location=this.registerDataInput("location",t)}_execute(e,n){const s=this.body.getValue(e);if(!s){this._reportError(e,"No physics body provided"),this.out._activateSignal(e);return}const l=this.impulse.getValue(e),a=this.location.getValue(e);s.applyImpulse(l,a),this.out._activateSignal(e)}getClassName(){return"FlowGraphApplyImpulseBlock"}}let i=!1;function c(){i||(i=!0,r("FlowGraphApplyImpulseBlock",u))}c();export{u as FlowGraphApplyImpulseBlock,c as RegisterFlowGraphApplyImpulseBlock};
@@ -1 +1 @@
1
- import{f as i,g as s,X as l,W as u,i as n}from"./index-JRwY7p9T.js";class h extends i{constructor(e){super(e),this.config=e,this.array=this.registerDataInput("array",s),this.index=this.registerDataInput("index",s,new l(-1)),this.value=this.registerDataOutput("value",s)}_updateOutputs(e){const r=this.array.getValue(e),a=u(this.index.getValue(e));r&&a>=0&&a<r.length?this.value.setValue(r[a],e):this.value.setValue(null,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphArrayIndexBlock"}}let t=!1;function o(){t||(t=!0,n("FlowGraphArrayIndexBlock",h))}o();export{h as FlowGraphArrayIndexBlock,o as RegisterFlowGraphArrayIndexBlock};
1
+ import{f as i,g as s,X as l,W as u,i as n}from"./index-YcXsPtFI.js";class h extends i{constructor(e){super(e),this.config=e,this.array=this.registerDataInput("array",s),this.index=this.registerDataInput("index",s,new l(-1)),this.value=this.registerDataOutput("value",s)}_updateOutputs(e){const r=this.array.getValue(e),a=u(this.index.getValue(e));r&&a>=0&&a<r.length?this.value.setValue(r[a],e):this.value.setValue(null,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphArrayIndexBlock"}}let t=!1;function o(){t||(t=!0,n("FlowGraphArrayIndexBlock",h))}o();export{h as FlowGraphArrayIndexBlock,o as RegisterFlowGraphArrayIndexBlock};
@@ -1 +1 @@
1
- import{f as u,x as c,a8 as r,g,ag as h,i as l}from"./index-JRwY7p9T.js";class p extends u{constructor(t){super(t),this.config=t,this._easingFunctions={},this.mode=this.registerDataInput("mode",c,0),this.controlPoint1=this.registerDataInput("controlPoint1",r),this.controlPoint2=this.registerDataInput("controlPoint2",r),this.easingFunction=this.registerDataOutput("easingFunction",g)}_updateOutputs(t){const s=this.mode.getValue(t),e=this.controlPoint1.getValue(t),i=this.controlPoint2.getValue(t);if(s===void 0)return;const n=`${s}-${e.x}-${e.y}-${i.x}-${i.y}`;if(!this._easingFunctions[n]){const o=new h(e.x,e.y,i.x,i.y);o.setEasingMode(s),this._easingFunctions[n]=o}this.easingFunction.setValue(this._easingFunctions[n],t)}getClassName(){return"FlowGraphBezierCurveEasing"}}let a=!1;function F(){a||(a=!0,l("FlowGraphBezierCurveEasing",p))}F();export{p as FlowGraphBezierCurveEasingBlock,F as RegisterFlowGraphBezierCurveEasingBlock};
1
+ import{f as u,x as c,a8 as r,g,ag as h,i as l}from"./index-YcXsPtFI.js";class p extends u{constructor(t){super(t),this.config=t,this._easingFunctions={},this.mode=this.registerDataInput("mode",c,0),this.controlPoint1=this.registerDataInput("controlPoint1",r),this.controlPoint2=this.registerDataInput("controlPoint2",r),this.easingFunction=this.registerDataOutput("easingFunction",g)}_updateOutputs(t){const s=this.mode.getValue(t),e=this.controlPoint1.getValue(t),i=this.controlPoint2.getValue(t);if(s===void 0)return;const n=`${s}-${e.x}-${e.y}-${i.x}-${i.y}`;if(!this._easingFunctions[n]){const o=new h(e.x,e.y,i.x,i.y);o.setEasingMode(s),this._easingFunctions[n]=o}this.easingFunction.setValue(this._easingFunctions[n],t)}getClassName(){return"FlowGraphBezierCurveEasing"}}let a=!1;function F(){a||(a=!0,l("FlowGraphBezierCurveEasing",p))}F();export{p as FlowGraphBezierCurveEasingBlock,F as RegisterFlowGraphBezierCurveEasingBlock};
@@ -1 +1 @@
1
- import{F as o}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class p extends o{constructor(t,a,s,e,r,i){super(s,i),this._operation=e,this._className=r,this.a=this.registerDataInput("a",t),this.b=this.registerDataInput("b",a)}_doOperation(t){const a=this.a.getValue(t),s=this.b.getValue(t);return this._operation(a,s)}getClassName(){return this._className}}export{p as F};
1
+ import{F as o}from"./flowGraphCachedOperationBlock-D2544szv.js";class p extends o{constructor(t,a,s,e,r,i){super(s,i),this._operation=e,this._className=r,this.a=this.registerDataInput("a",t),this.b=this.registerDataInput("b",a)}_doOperation(t){const a=this.a.getValue(t),s=this.b.getValue(t);return this._operation(a,s)}getClassName(){return this._className}}export{p as F};
@@ -1 +1 @@
1
- import{N as i,h as a,i as r}from"./index-JRwY7p9T.js";class s extends i{constructor(e){super(e),this.condition=this.registerDataInput("condition",a),this.onTrue=this._registerSignalOutput("onTrue"),this.onFalse=this._registerSignalOutput("onFalse")}_execute(e){this.condition.getValue(e)?this.onTrue._activateSignal(e):this.onFalse._activateSignal(e)}getClassName(){return"FlowGraphBranchBlock"}}let t=!1;function o(){t||(t=!0,r("FlowGraphBranchBlock",s))}o();export{s as FlowGraphBranchBlock,o as RegisterFlowGraphBranchBlock};
1
+ import{N as i,h as a,i as r}from"./index-YcXsPtFI.js";class s extends i{constructor(e){super(e),this.condition=this.registerDataInput("condition",a),this.onTrue=this._registerSignalOutput("onTrue"),this.onFalse=this._registerSignalOutput("onFalse")}_execute(e){this.condition.getValue(e)?this.onTrue._activateSignal(e):this.onFalse._activateSignal(e)}getClassName(){return"FlowGraphBranchBlock"}}let t=!1;function o(){t||(t=!0,r("FlowGraphBranchBlock",s))}o();export{s as FlowGraphBranchBlock,o as RegisterFlowGraphBranchBlock};
@@ -1 +1 @@
1
- import{f as u,h}from"./index-JRwY7p9T.js";const l="cachedOperationValue",t="cachedExecutionId";class c extends u{constructor(e,i){super(i),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",h)}_updateOutputs(e){const i=e._getExecutionVariable(this,t,-1),s=e._getExecutionVariable(this,l,null);if(s!=null&&i===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(s,e);else try{const a=this._doOperation(e);if(a==null){this.isValid.setValue(!1,e);return}e._setExecutionVariable(this,l,a),e._setExecutionVariable(this,t,e.executionId),this.value.setValue(a,e),this.isValid.setValue(!0,e)}catch{this.isValid.setValue(!1,e)}}}export{c as F};
1
+ import{f as u,h}from"./index-YcXsPtFI.js";const l="cachedOperationValue",t="cachedExecutionId";class c extends u{constructor(e,i){super(i),this.value=this.registerDataOutput("value",e),this.isValid=this.registerDataOutput("isValid",h)}_updateOutputs(e){const i=e._getExecutionVariable(this,t,-1),s=e._getExecutionVariable(this,l,null);if(s!=null&&i===e.executionId)this.isValid.setValue(!0,e),this.value.setValue(s,e);else try{const a=this._doOperation(e);if(a==null){this.isValid.setValue(!1,e);return}e._setExecutionVariable(this,l,a),e._setExecutionVariable(this,t,e.executionId),this.value.setValue(a,e),this.isValid.setValue(!0,e)}catch{this.isValid.setValue(!1,e)}}}export{c as F};
@@ -1 +1 @@
1
- import{y as i,O as r,W as s,i as n}from"./index-JRwY7p9T.js";class o extends i{constructor(e){super(e),this.delayIndex=this.registerDataInput("delayIndex",r)}_execute(e,u){const a=s(this.delayIndex.getValue(e));if(a<0||isNaN(a)||!isFinite(a))return this._reportError(e,"Invalid delay index");const l=e._getGlobalContextVariable("pendingDelays",[])[a];l&&l.dispose(),this.out._activateSignal(e)}getClassName(){return"FlowGraphCancelDelayBlock"}}let t=!1;function c(){t||(t=!0,n("FlowGraphCancelDelayBlock",o))}c();export{o as FlowGraphCancelDelayBlock,c as RegisterFlowGraphCancelDelayBlock};
1
+ import{y as i,O as r,W as s,i as n}from"./index-YcXsPtFI.js";class o extends i{constructor(e){super(e),this.delayIndex=this.registerDataInput("delayIndex",r)}_execute(e,u){const a=s(this.delayIndex.getValue(e));if(a<0||isNaN(a)||!isFinite(a))return this._reportError(e,"Invalid delay index");const l=e._getGlobalContextVariable("pendingDelays",[])[a];l&&l.dispose(),this.out._activateSignal(e)}getClassName(){return"FlowGraphCancelDelayBlock"}}let t=!1;function c(){t||(t=!0,n("FlowGraphCancelDelayBlock",o))}c();export{o as FlowGraphCancelDelayBlock,c as RegisterFlowGraphCancelDelayBlock};
@@ -1 +1 @@
1
- import{f as i,g as e}from"./index-JRwY7p9T.js";class o extends i{constructor(t){super(t),this.config=t,this.executionFunction=this.registerDataInput("function",e),this.value=this.registerDataInput("value",e),this.result=this.registerDataOutput("result",e)}_updateOutputs(t){const s=this.executionFunction.getValue(t),u=this.value.getValue(t);s&&this.result.setValue(s(u,t),t)}getClassName(){return"FlowGraphCodeExecutionBlock"}}export{o as FlowGraphCodeExecutionBlock};
1
+ import{f as i,g as e}from"./index-YcXsPtFI.js";class o extends i{constructor(t){super(t),this.config=t,this.executionFunction=this.registerDataInput("function",e),this.value=this.registerDataInput("value",e),this.result=this.registerDataOutput("result",e)}_updateOutputs(t){const s=this.executionFunction.getValue(t),u=this.value.getValue(t);s&&this.result.setValue(s(u,t),t)}getClassName(){return"FlowGraphCodeExecutionBlock"}}export{o as FlowGraphCodeExecutionBlock};
@@ -1 +1 @@
1
- import{f as a,h as s,g as e,i as n}from"./index-JRwY7p9T.js";class r extends a{constructor(t){super(t),this.condition=this.registerDataInput("condition",s),this.onTrue=this.registerDataInput("onTrue",e),this.onFalse=this.registerDataInput("onFalse",e),this.output=this.registerDataOutput("output",e)}_updateOutputs(t){const o=this.condition.getValue(t);this.output.setValue(o?this.onTrue.getValue(t):this.onFalse.getValue(t),t)}getClassName(){return"FlowGraphConditionalBlock"}}let i=!1;function l(){i||(i=!0,n("FlowGraphConditionalBlock",r))}l();export{r as FlowGraphConditionalDataBlock,l as RegisterFlowGraphConditionalDataBlock};
1
+ import{f as a,h as s,g as e,i as n}from"./index-YcXsPtFI.js";class r extends a{constructor(t){super(t),this.condition=this.registerDataInput("condition",s),this.onTrue=this.registerDataInput("onTrue",e),this.onFalse=this.registerDataInput("onFalse",e),this.output=this.registerDataOutput("output",e)}_updateOutputs(t){const o=this.condition.getValue(t);this.output.setValue(o?this.onTrue.getValue(t):this.onFalse.getValue(t),t)}getClassName(){return"FlowGraphConditionalBlock"}}let i=!1;function l(){i||(i=!0,n("FlowGraphConditionalBlock",r))}l();export{r as FlowGraphConditionalDataBlock,l as RegisterFlowGraphConditionalDataBlock};
@@ -1 +1 @@
1
- import{y as h,g,k as u,L as o,i as p}from"./index-JRwY7p9T.js";class m extends h{constructor(e){if(super(e),this.message=this.registerDataInput("message",g),this.logType=this.registerDataInput("logType",u,"log"),e?.messageTemplate){const t=this._getTemplateMatches(e.messageTemplate);for(const s of t)this.registerDataInput(s,g)}}_execute(e){const t=this.logType.getValue(e),s=this._getMessageValue(e);t==="warn"?o.Warn(s):t==="error"?o.Error(s):o.Log(s),this.out._activateSignal(e)}getClassName(){return"FlowGraphConsoleLogBlock"}_serializeValue(e){if(e==null)return String(e);if(typeof e=="object"){const t=e.toString();if(t==="[object Object]")try{return JSON.stringify(e)}catch{return t}return t}return String(e)}_getMessageValue(e){if(this.config?.messageTemplate){let t=this.config.messageTemplate;const s=this._getTemplateMatches(t),a=this.message.getValue(e),i=a!=null&&typeof a=="object"?a:null;for(const r of s){let l;if(i!==null&&r in i?l=i[r]:l=this.getDataInput(r)?.getValue(e),l!==void 0){const c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp(`\\{${c}\\}`,"g"),this._serializeValue(l))}}return t}else return this.message.getValue(e)}_getTemplateMatches(e){const t=/\{([^}]+)\}/g,s=[];let a;for(;(a=t.exec(e))!==null;)s.push(a[1]);return s}}let n=!1;function f(){n||(n=!0,p("FlowGraphConsoleLogBlock",m))}f();export{m as FlowGraphConsoleLogBlock,f as RegisterFlowGraphConsoleLogBlock};
1
+ import{y as h,g,k as u,L as o,i as p}from"./index-YcXsPtFI.js";class m extends h{constructor(e){if(super(e),this.message=this.registerDataInput("message",g),this.logType=this.registerDataInput("logType",u,"log"),e?.messageTemplate){const t=this._getTemplateMatches(e.messageTemplate);for(const s of t)this.registerDataInput(s,g)}}_execute(e){const t=this.logType.getValue(e),s=this._getMessageValue(e);t==="warn"?o.Warn(s):t==="error"?o.Error(s):o.Log(s),this.out._activateSignal(e)}getClassName(){return"FlowGraphConsoleLogBlock"}_serializeValue(e){if(e==null)return String(e);if(typeof e=="object"){const t=e.toString();if(t==="[object Object]")try{return JSON.stringify(e)}catch{return t}return t}return String(e)}_getMessageValue(e){if(this.config?.messageTemplate){let t=this.config.messageTemplate;const s=this._getTemplateMatches(t),a=this.message.getValue(e),i=a!=null&&typeof a=="object"?a:null;for(const r of s){let l;if(i!==null&&r in i?l=i[r]:l=this.getDataInput(r)?.getValue(e),l!==void 0){const c=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp(`\\{${c}\\}`,"g"),this._serializeValue(l))}}return t}else return this.message.getValue(e)}_getTemplateMatches(e){const t=/\{([^}]+)\}/g,s=[];let a;for(;(a=t.exec(e))!==null;)s.push(a[1]);return s}}let n=!1;function f(){n||(n=!0,p("FlowGraphConsoleLogBlock",m))}f();export{m as FlowGraphConsoleLogBlock,f as RegisterFlowGraphConsoleLogBlock};
@@ -1 +1 @@
1
- import{f as a,Z as o,$ as u,i as l}from"./index-JRwY7p9T.js";class r extends a{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",o(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},s=u){super.serialize(t),s("value",this.config.value,t.config)}}let e=!1;function i(){e||(e=!0,l("FlowGraphConstantBlock",r))}i();export{r as FlowGraphConstantBlock,i as RegisterFlowGraphConstantBlock};
1
+ import{f as a,Z as o,$ as u,i as l}from"./index-YcXsPtFI.js";class r extends a{constructor(t){super(t),this.config=t,this.output=this.registerDataOutput("output",o(t.value))}_updateOutputs(t){this.output.setValue(this.config.value,t)}getClassName(){return"FlowGraphConstantBlock"}serialize(t={},s=u){super.serialize(t),s("value",this.config.value,t.config)}}let e=!1;function i(){e||(e=!0,l("FlowGraphConstantBlock",r))}i();export{r as FlowGraphConstantBlock,i as RegisterFlowGraphConstantBlock};
@@ -1 +1 @@
1
- import{f as t,g as r,x as a,i}from"./index-JRwY7p9T.js";class u extends t{constructor(e){super(e),this.userVariables=this.registerDataOutput("userVariables",r),this.executionId=this.registerDataOutput("executionId",a)}_updateOutputs(e){this.userVariables.setValue(e.userVariables,e),this.executionId.setValue(e.executionId,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphContextBlock"}}let s=!1;function l(){s||(s=!0,i("FlowGraphContextBlock",u))}l();export{u as FlowGraphContextBlock,l as RegisterFlowGraphContextBlock};
1
+ import{f as t,g as r,x as a,i}from"./index-YcXsPtFI.js";class u extends t{constructor(e){super(e),this.userVariables=this.registerDataOutput("userVariables",r),this.executionId=this.registerDataOutput("executionId",a)}_updateOutputs(e){this.userVariables.setValue(e.userVariables,e),this.executionId.setValue(e.executionId,e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphContextBlock"}}let s=!1;function l(){s||(s=!0,i("FlowGraphContextBlock",u))}l();export{u as FlowGraphContextBlock,l as RegisterFlowGraphContextBlock};
@@ -1 +1 @@
1
- import{y as i,x as u,i as a}from"./index-JRwY7p9T.js";class l extends i{constructor(t){super(t),this.count=this.registerDataOutput("count",u),this.reset=this._registerSignalInput("reset")}_execute(t,r){if(r===this.reset){t._setExecutionVariable(this,"count",0),this.count.setValue(0,t);return}const e=t._getExecutionVariable(this,"count",0)+1;t._setExecutionVariable(this,"count",e),this.count.setValue(e,t),this.out._activateSignal(t)}getClassName(){return"FlowGraphCallCounterBlock"}}let s=!1;function o(){s||(s=!0,a("FlowGraphCallCounterBlock",l))}o();export{l as FlowGraphCallCounterBlock,o as RegisterFlowGraphCounterBlock};
1
+ import{y as i,x as u,i as a}from"./index-YcXsPtFI.js";class l extends i{constructor(t){super(t),this.count=this.registerDataOutput("count",u),this.reset=this._registerSignalInput("reset")}_execute(t,r){if(r===this.reset){t._setExecutionVariable(this,"count",0),this.count.setValue(0,t);return}const e=t._getExecutionVariable(this,"count",0)+1;t._setExecutionVariable(this,"count",e),this.count.setValue(e,t),this.out._activateSignal(t)}getClassName(){return"FlowGraphCallCounterBlock"}}let s=!1;function o(){s||(s=!0,a("FlowGraphCallCounterBlock",l))}o();export{l as FlowGraphCallCounterBlock,o as RegisterFlowGraphCounterBlock};
@@ -1 +1 @@
1
- import{f as r,g as a,W as i,Y as l,i as h}from"./index-JRwY7p9T.js";class c extends r{constructor(e){super(e),this.config=e,this._inputCases=new Map,this.case=this.registerDataInput("case",a,NaN),this.default=this.registerDataInput("default",a),this.value=this.registerDataOutput("value",a);const s=this.config.cases||[];for(let t of s){if(t=i(t),this.config.treatCasesAsIntegers&&(t=t|0,this._inputCases.has(t)))return;this._inputCases.set(t,this.registerDataInput(`in_${t}`,a))}}_updateOutputs(e){const s=this.case.getValue(e);let t;l(s)&&(t=this._getOutputValueForCase(i(s),e)),t||(t=this.default.getValue(e)),this.value.setValue(t,e)}_getOutputValueForCase(e,s){return this._inputCases.get(e)?.getValue(s)}getClassName(){return"FlowGraphDataSwitchBlock"}}let u=!1;function o(){u||(u=!0,h("FlowGraphDataSwitchBlock",c))}o();export{c as FlowGraphDataSwitchBlock,o as RegisterFlowGraphDataSwitchBlock};
1
+ import{f as r,g as a,W as i,Y as l,i as h}from"./index-YcXsPtFI.js";class c extends r{constructor(e){super(e),this.config=e,this._inputCases=new Map,this.case=this.registerDataInput("case",a,NaN),this.default=this.registerDataInput("default",a),this.value=this.registerDataOutput("value",a);const s=this.config.cases||[];for(let t of s){if(t=i(t),this.config.treatCasesAsIntegers&&(t=t|0,this._inputCases.has(t)))return;this._inputCases.set(t,this.registerDataInput(`in_${t}`,a))}}_updateOutputs(e){const s=this.case.getValue(e);let t;l(s)&&(t=this._getOutputValueForCase(i(s),e)),t||(t=this.default.getValue(e)),this.value.setValue(t,e)}_getOutputValueForCase(e,s){return this._inputCases.get(e)?.getValue(s)}getClassName(){return"FlowGraphDataSwitchBlock"}}let u=!1;function o(){u||(u=!0,h("FlowGraphDataSwitchBlock",c))}o();export{c as FlowGraphDataSwitchBlock,o as RegisterFlowGraphDataSwitchBlock};
@@ -1 +1 @@
1
- import{y as i,x as u,i as o}from"./index-JRwY7p9T.js";class a extends i{constructor(e){super(e),this.count=this.registerDataInput("count",u),this.reset=this._registerSignalInput("reset"),this.currentCount=this.registerDataOutput("currentCount",u)}_execute(e,s){if(s===this.reset){e._setExecutionVariable(this,"debounceCount",0);return}const n=this.count.getValue(e),t=e._getExecutionVariable(this,"debounceCount",0)+1;this.currentCount.setValue(t,e),e._setExecutionVariable(this,"debounceCount",t),t>=n&&(this.out._activateSignal(e),e._setExecutionVariable(this,"debounceCount",0))}getClassName(){return"FlowGraphDebounceBlock"}}let r=!1;function c(){r||(r=!0,o("FlowGraphDebounceBlock",a))}c();export{a as FlowGraphDebounceBlock,c as RegisterFlowGraphDebounceBlock};
1
+ import{y as i,x as u,i as o}from"./index-YcXsPtFI.js";class a extends i{constructor(e){super(e),this.count=this.registerDataInput("count",u),this.reset=this._registerSignalInput("reset"),this.currentCount=this.registerDataOutput("currentCount",u)}_execute(e,s){if(s===this.reset){e._setExecutionVariable(this,"debounceCount",0);return}const n=this.count.getValue(e),t=e._getExecutionVariable(this,"debounceCount",0)+1;this.currentCount.setValue(t,e),e._setExecutionVariable(this,"debounceCount",t),t>=n&&(this.out._activateSignal(e),e._setExecutionVariable(this,"debounceCount",0))}getClassName(){return"FlowGraphDebounceBlock"}}let r=!1;function c(){r||(r=!0,o("FlowGraphDebounceBlock",a))}c();export{a as FlowGraphDebounceBlock,c as RegisterFlowGraphDebounceBlock};
@@ -1 +1 @@
1
- import{f as s,g as o,i as e}from"./index-JRwY7p9T.js";const g=100;class r extends s{constructor(t){super(t),this.log=[],this._isDebug=!0,this.input=this.registerDataInput("input",o),this.output=this.registerDataOutput("output",o)}_updateOutputs(t){const i=this.input.getValue(t);this.output.setValue(i,t),this._logValue(i)}_logValue(t){if(t==null)this.log.push(["null","null"]);else{const i=r._FormatValue(t);this.log.push([i,String(t)])}this.log.length>g&&this.log.shift()}static _FormatValue(t){if(typeof t=="number")return Number.isInteger(t)?t.toString():t.toFixed(4);if(typeof t=="boolean"||typeof t=="string")return String(t);if(t&&typeof t=="object"){if("w"in t&&"x"in t&&"y"in t&&"z"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)}, ${t.w.toFixed(3)})`;if("z"in t&&"x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)})`;if("x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)})`;if("r"in t&&"g"in t&&"b"in t){const i="a"in t?`, ${t.a.toFixed(3)}`:"";return`(${t.r.toFixed(3)}, ${t.g.toFixed(3)}, ${t.b.toFixed(3)}${i})`}if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString()}try{const i=JSON.stringify(t);return i.length>64?i.substring(0,61)+"...":i}catch{return String(t)}}getClassName(){return"FlowGraphDebugBlock"}}let n=!1;function p(){n||(n=!0,e("FlowGraphDebugBlock",r))}p();export{r as FlowGraphDebugBlock,p as RegisterFlowGraphDebugBlock};
1
+ import{f as s,g as o,i as e}from"./index-YcXsPtFI.js";const g=100;class r extends s{constructor(t){super(t),this.log=[],this._isDebug=!0,this.input=this.registerDataInput("input",o),this.output=this.registerDataOutput("output",o)}_updateOutputs(t){const i=this.input.getValue(t);this.output.setValue(i,t),this._logValue(i)}_logValue(t){if(t==null)this.log.push(["null","null"]);else{const i=r._FormatValue(t);this.log.push([i,String(t)])}this.log.length>g&&this.log.shift()}static _FormatValue(t){if(typeof t=="number")return Number.isInteger(t)?t.toString():t.toFixed(4);if(typeof t=="boolean"||typeof t=="string")return String(t);if(t&&typeof t=="object"){if("w"in t&&"x"in t&&"y"in t&&"z"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)}, ${t.w.toFixed(3)})`;if("z"in t&&"x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)}, ${t.z.toFixed(3)})`;if("x"in t&&"y"in t)return`(${t.x.toFixed(3)}, ${t.y.toFixed(3)})`;if("r"in t&&"g"in t&&"b"in t){const i="a"in t?`, ${t.a.toFixed(3)}`:"";return`(${t.r.toFixed(3)}, ${t.g.toFixed(3)}, ${t.b.toFixed(3)}${i})`}if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString()}try{const i=JSON.stringify(t);return i.length>64?i.substring(0,61)+"...":i}catch{return String(t)}}getClassName(){return"FlowGraphDebugBlock"}}let n=!1;function p(){n||(n=!0,e("FlowGraphDebugBlock",r))}p();export{r as FlowGraphDebugBlock,p as RegisterFlowGraphDebugBlock};
@@ -1 +1 @@
1
- import{y as u,X as t,O as i,i as o}from"./index-JRwY7p9T.js";class n extends u{constructor(e={}){super(e),this.config=e,this.config.startIndex=e.startIndex??new t(0),this.reset=this._registerSignalInput("reset"),this.maxExecutions=this.registerDataInput("maxExecutions",i),this.executionCount=this.registerDataOutput("executionCount",i,new t(0))}_execute(e,r){if(r===this.reset)this.executionCount.setValue(this.config.startIndex,e);else{const s=this.executionCount.getValue(e);s.value<this.maxExecutions.getValue(e).value&&(this.executionCount.setValue(new t(s.value+1),e),this.out._activateSignal(e))}}getClassName(){return"FlowGraphDoNBlock"}}let a=!1;function l(){a||(a=!0,o("FlowGraphDoNBlock",n))}l();export{n as FlowGraphDoNBlock,l as RegisterFlowGraphDoNBlock};
1
+ import{y as u,X as t,O as i,i as o}from"./index-YcXsPtFI.js";class n extends u{constructor(e={}){super(e),this.config=e,this.config.startIndex=e.startIndex??new t(0),this.reset=this._registerSignalInput("reset"),this.maxExecutions=this.registerDataInput("maxExecutions",i),this.executionCount=this.registerDataOutput("executionCount",i,new t(0))}_execute(e,r){if(r===this.reset)this.executionCount.setValue(this.config.startIndex,e);else{const s=this.executionCount.getValue(e);s.value<this.maxExecutions.getValue(e).value&&(this.executionCount.setValue(new t(s.value+1),e),this.out._activateSignal(e))}}getClassName(){return"FlowGraphDoNBlock"}}let a=!1;function l(){a||(a=!0,o("FlowGraphDoNBlock",n))}l();export{n as FlowGraphDoNBlock,l as RegisterFlowGraphDoNBlock};
@@ -1 +1 @@
1
- import{f as o,g as i,x as E,aa as d,ab as n,ac as w,ad as B,ae as f,af as C,ag as m,i as k}from"./index-JRwY7p9T.js";var l;(function(e){e[e.CircleEase=0]="CircleEase",e[e.BackEase=1]="BackEase",e[e.BounceEase=2]="BounceEase",e[e.CubicEase=3]="CubicEase",e[e.ElasticEase=4]="ElasticEase",e[e.ExponentialEase=5]="ExponentialEase",e[e.PowerEase=6]="PowerEase",e[e.QuadraticEase=7]="QuadraticEase",e[e.QuarticEase=8]="QuarticEase",e[e.QuinticEase=9]="QuinticEase",e[e.SineEase=10]="SineEase",e[e.BezierCurveEase=11]="BezierCurveEase"})(l||(l={}));function g(e,...s){switch(e){case 11:return new m(...s);case 0:return new C;case 1:return new f(...s);case 2:return new B(...s);case 3:return new w;case 4:return new n(...s);case 5:return new d(...s);default:throw new Error("Easing type not yet implemented")}}class Q extends o{constructor(s){super(s),this.config=s,this._easingFunctions={},this.type=this.registerDataInput("type",i,11),this.mode=this.registerDataInput("mode",E,0),this.parameters=this.registerDataInput("parameters",i,[1,0,0,1]),this.easingFunction=this.registerDataOutput("easingFunction",i)}_updateOutputs(s){const a=this.type.getValue(s),t=this.mode.getValue(s),u=this.parameters.getValue(s);if(a===void 0||t===void 0)return;const r=`${a}-${t}-${u.join("-")}`;if(!this._easingFunctions[r]){const c=g(a,...u);c.setEasingMode(t),this._easingFunctions[r]=c}this.easingFunction.setValue(this._easingFunctions[r],s)}getClassName(){return"FlowGraphEasingBlock"}}let h=!1;function _(){h||(h=!0,k("FlowGraphEasingBlock",Q))}_();export{l as EasingFunctionType,Q as FlowGraphEasingBlock,_ as RegisterFlowGraphEasingBlock};
1
+ import{f as o,g as i,x as E,aa as d,ab as n,ac as w,ad as B,ae as f,af as C,ag as m,i as k}from"./index-YcXsPtFI.js";var l;(function(e){e[e.CircleEase=0]="CircleEase",e[e.BackEase=1]="BackEase",e[e.BounceEase=2]="BounceEase",e[e.CubicEase=3]="CubicEase",e[e.ElasticEase=4]="ElasticEase",e[e.ExponentialEase=5]="ExponentialEase",e[e.PowerEase=6]="PowerEase",e[e.QuadraticEase=7]="QuadraticEase",e[e.QuarticEase=8]="QuarticEase",e[e.QuinticEase=9]="QuinticEase",e[e.SineEase=10]="SineEase",e[e.BezierCurveEase=11]="BezierCurveEase"})(l||(l={}));function g(e,...s){switch(e){case 11:return new m(...s);case 0:return new C;case 1:return new f(...s);case 2:return new B(...s);case 3:return new w;case 4:return new n(...s);case 5:return new d(...s);default:throw new Error("Easing type not yet implemented")}}class Q extends o{constructor(s){super(s),this.config=s,this._easingFunctions={},this.type=this.registerDataInput("type",i,11),this.mode=this.registerDataInput("mode",E,0),this.parameters=this.registerDataInput("parameters",i,[1,0,0,1]),this.easingFunction=this.registerDataOutput("easingFunction",i)}_updateOutputs(s){const a=this.type.getValue(s),t=this.mode.getValue(s),u=this.parameters.getValue(s);if(a===void 0||t===void 0)return;const r=`${a}-${t}-${u.join("-")}`;if(!this._easingFunctions[r]){const c=g(a,...u);c.setEasingMode(t),this._easingFunctions[r]=c}this.easingFunction.setValue(this._easingFunctions[r],s)}getClassName(){return"FlowGraphEasingBlock"}}let h=!1;function _(){h||(h=!0,k("FlowGraphEasingBlock",Q))}_();export{l as EasingFunctionType,Q as FlowGraphEasingBlock,_ as RegisterFlowGraphEasingBlock};
@@ -1 +1 @@
1
- import{N as i,h as a,i as s}from"./index-JRwY7p9T.js";class o extends i{constructor(e){super(e),this.onOn=this._registerSignalOutput("onOn"),this.onOff=this._registerSignalOutput("onOff"),this.value=this.registerDataOutput("value",a)}_execute(e,n){let l=e._getExecutionVariable(this,"value",typeof this.config?.startValue=="boolean"?!this.config.startValue:!1);l=!l,e._setExecutionVariable(this,"value",l),this.value.setValue(l,e),l?this.onOn._activateSignal(e):this.onOff._activateSignal(e)}getClassName(){return"FlowGraphFlipFlopBlock"}}let t=!1;function r(){t||(t=!0,s("FlowGraphFlipFlopBlock",o))}r();export{o as FlowGraphFlipFlopBlock,r as RegisterFlowGraphFlipFlopBlock};
1
+ import{N as i,h as a,i as s}from"./index-YcXsPtFI.js";class o extends i{constructor(e){super(e),this.onOn=this._registerSignalOutput("onOn"),this.onOff=this._registerSignalOutput("onOff"),this.value=this.registerDataOutput("value",a)}_execute(e,n){let l=e._getExecutionVariable(this,"value",typeof this.config?.startValue=="boolean"?!this.config.startValue:!1);l=!l,e._setExecutionVariable(this,"value",l),this.value.setValue(l,e),l?this.onOn._activateSignal(e):this.onOff._activateSignal(e)}getClassName(){return"FlowGraphFlipFlopBlock"}}let t=!1;function r(){t||(t=!0,s("FlowGraphFlipFlopBlock",o))}r();export{o as FlowGraphFlipFlopBlock,r as RegisterFlowGraphFlipFlopBlock};
@@ -1 +1 @@
1
- import{y as h,g as o,x as p,O as d,X as r,W as t,i as g}from"./index-JRwY7p9T.js";class s extends h{constructor(e){super(e),this.startIndex=this.registerDataInput("startIndex",o,0),this.endIndex=this.registerDataInput("endIndex",o),this.step=this.registerDataInput("step",p,1),this.index=this.registerDataOutput("index",d,new r(t(e?.initialIndex??0))),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(e){const u=t(this.startIndex.getValue(e)),a=this.step.getValue(e);let n=t(this.endIndex.getValue(e));for(let i=u;i<n&&(this.index.setValue(new r(i),e),this.executionFlow._activateSignal(e),n=t(this.endIndex.getValue(e)),!(i>s.MaxLoopIterations*a));i+=a);this.config?.incrementIndexWhenLoopDone&&this.index.setValue(new r(t(this.index.getValue(e))+a),e),this.completed._activateSignal(e)}getClassName(){return"FlowGraphForLoopBlock"}}s.MaxLoopIterations=1e3;let l=!1;function x(){l||(l=!0,g("FlowGraphForLoopBlock",s))}x();export{s as FlowGraphForLoopBlock,x as RegisterFlowGraphForLoopBlock};
1
+ import{y as h,g as o,x as p,O as d,X as r,W as t,i as g}from"./index-YcXsPtFI.js";class s extends h{constructor(e){super(e),this.startIndex=this.registerDataInput("startIndex",o,0),this.endIndex=this.registerDataInput("endIndex",o),this.step=this.registerDataInput("step",p,1),this.index=this.registerDataOutput("index",d,new r(t(e?.initialIndex??0))),this.executionFlow=this._registerSignalOutput("executionFlow"),this.completed=this._registerSignalOutput("completed"),this._unregisterSignalOutput("out")}_execute(e){const u=t(this.startIndex.getValue(e)),a=this.step.getValue(e);let n=t(this.endIndex.getValue(e));for(let i=u;i<n&&(this.index.setValue(new r(i),e),this.executionFlow._activateSignal(e),n=t(this.endIndex.getValue(e)),!(i>s.MaxLoopIterations*a));i+=a);this.config?.incrementIndexWhenLoopDone&&this.index.setValue(new r(t(this.index.getValue(e))+a),e),this.completed._activateSignal(e)}getClassName(){return"FlowGraphForLoopBlock"}}s.MaxLoopIterations=1e3;let l=!1;function x(){l||(l=!0,g("FlowGraphForLoopBlock",s))}x();export{s as FlowGraphForLoopBlock,x as RegisterFlowGraphForLoopBlock};
@@ -1 +1 @@
1
- import{f as a,k as c,g as n,i as r}from"./index-JRwY7p9T.js";class l extends a{constructor(t){super(t),this.functionName=this.registerDataInput("functionName",c),this.object=this.registerDataInput("object",n),this.context=this.registerDataInput("context",n,null),this.output=this.registerDataOutput("output",n)}_updateOutputs(t){const s=this.functionName.getValue(t),i=this.object.getValue(t),u=this.context.getValue(t);if(i&&s){const e=i[s];e&&typeof e=="function"&&this.output.setValue(e.bind(u),t)}}getClassName(){return"FlowGraphFunctionReference"}}let o=!1;function p(){o||(o=!0,r("FlowGraphFunctionReference",l))}p();export{l as FlowGraphFunctionReferenceBlock,p as RegisterFlowGraphFunctionReferenceBlock};
1
+ import{f as a,k as c,g as n,i as r}from"./index-YcXsPtFI.js";class l extends a{constructor(t){super(t),this.functionName=this.registerDataInput("functionName",c),this.object=this.registerDataInput("object",n),this.context=this.registerDataInput("context",n,null),this.output=this.registerDataOutput("output",n)}_updateOutputs(t){const s=this.functionName.getValue(t),i=this.object.getValue(t),u=this.context.getValue(t);if(i&&s){const e=i[s];e&&typeof e=="function"&&this.output.setValue(e.bind(u),t)}}getClassName(){return"FlowGraphFunctionReference"}}let o=!1;function p(){o||(o=!0,r("FlowGraphFunctionReference",l))}p();export{l as FlowGraphFunctionReferenceBlock,p as RegisterFlowGraphFunctionReferenceBlock};
@@ -1 +1 @@
1
- import{f as e,g as s}from"./index-JRwY7p9T.js";class m extends e{constructor(o){super(o);const t=o.glTF,r=t?.animations?.map(a=>a._babylonAnimationGroup)||[];this.animationGroups=this.registerDataOutput("animationGroups",s,r);const n=t?.nodes?.map(a=>a._babylonTransformNode)||[];this.nodes=this.registerDataOutput("nodes",s,n)}getClassName(){return"FlowGraphGLTFDataProvider"}}export{m as FlowGraphGLTFDataProvider};
1
+ import{f as e,g as s}from"./index-YcXsPtFI.js";class m extends e{constructor(o){super(o);const t=o.glTF,r=t?.animations?.map(a=>a._babylonAnimationGroup)||[];this.animationGroups=this.registerDataOutput("animationGroups",s,r);const n=t?.nodes?.map(a=>a._babylonTransformNode)||[];this.nodes=this.registerDataOutput("nodes",s,n)}getClassName(){return"FlowGraphGLTFDataProvider"}}export{m as FlowGraphGLTFDataProvider};
@@ -1 +1 @@
1
- import{H as l,g as i,V as a,i as s}from"./index-JRwY7p9T.js";import{F as c}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class n extends c{constructor(e){super(l,e),this.body=this.registerDataInput("body",i)}_doOperation(e){const r=this.body.getValue(e);if(!r)return;let t=e._getExecutionVariable(this,"_cachedVelocity",null);return t||(t=new a,e._setExecutionVariable(this,"_cachedVelocity",t)),r.getAngularVelocityToRef(t),t}getClassName(){return"FlowGraphGetAngularVelocityBlock"}}let o=!1;function u(){o||(o=!0,s("FlowGraphGetAngularVelocityBlock",n))}u();export{n as FlowGraphGetAngularVelocityBlock,u as RegisterFlowGraphGetAngularVelocityBlock};
1
+ import{H as l,g as i,V as a,i as s}from"./index-YcXsPtFI.js";import{F as c}from"./flowGraphCachedOperationBlock-D2544szv.js";class n extends c{constructor(e){super(l,e),this.body=this.registerDataInput("body",i)}_doOperation(e){const r=this.body.getValue(e);if(!r)return;let t=e._getExecutionVariable(this,"_cachedVelocity",null);return t||(t=new a,e._setExecutionVariable(this,"_cachedVelocity",t)),r.getAngularVelocityToRef(t),t}getClassName(){return"FlowGraphGetAngularVelocityBlock"}}let o=!1;function u(){o||(o=!0,s("FlowGraphGetAngularVelocityBlock",n))}u();export{n as FlowGraphGetAngularVelocityBlock,u as RegisterFlowGraphGetAngularVelocityBlock};
@@ -1 +1 @@
1
- import{f as u,g as t,X as p,W as s,a1 as h,i as n}from"./index-JRwY7p9T.js";class o extends u{constructor(e){super(e),this.config=e,this.type=this.registerDataInput("type",t,e.type),this.value=this.registerDataOutput("value",t),this.index=this.registerDataInput("index",t,new p(s(e.index??-1)))}_updateOutputs(e){const i=this.type.getValue(e),r=this.index.getValue(e),l=h(e.assetsContext,i,s(r),this.config.useIndexAsUniqueId);this.value.setValue(l,e)}getClassName(){return"FlowGraphGetAssetBlock"}}let a=!1;function G(){a||(a=!0,n("FlowGraphGetAssetBlock",o))}G();export{o as FlowGraphGetAssetBlock,G as RegisterFlowGraphGetAssetBlock};
1
+ import{f as u,g as t,X as p,W as s,a1 as h,i as n}from"./index-YcXsPtFI.js";class o extends u{constructor(e){super(e),this.config=e,this.type=this.registerDataInput("type",t,e.type),this.value=this.registerDataOutput("value",t),this.index=this.registerDataInput("index",t,new p(s(e.index??-1)))}_updateOutputs(e){const i=this.type.getValue(e),r=this.index.getValue(e),l=h(e.assetsContext,i,s(r),this.config.useIndexAsUniqueId);this.value.setValue(l,e)}getClassName(){return"FlowGraphGetAssetBlock"}}let a=!1;function G(){a||(a=!0,n("FlowGraphGetAssetBlock",o))}G();export{o as FlowGraphGetAssetBlock,G as RegisterFlowGraphGetAssetBlock};
@@ -1 +1 @@
1
- import{H as o,g as a,V as l,i as s}from"./index-JRwY7p9T.js";import{F as c}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class n extends c{constructor(e){super(o,e),this.body=this.registerDataInput("body",a)}_doOperation(e){const r=this.body.getValue(e);if(!r)return;let t=e._getExecutionVariable(this,"_cachedVelocity",null);return t||(t=new l,e._setExecutionVariable(this,"_cachedVelocity",t)),r.getLinearVelocityToRef(t),t}getClassName(){return"FlowGraphGetLinearVelocityBlock"}}let i=!1;function h(){i||(i=!0,s("FlowGraphGetLinearVelocityBlock",n))}h();export{n as FlowGraphGetLinearVelocityBlock,h as RegisterFlowGraphGetLinearVelocityBlock};
1
+ import{H as o,g as a,V as l,i as s}from"./index-YcXsPtFI.js";import{F as c}from"./flowGraphCachedOperationBlock-D2544szv.js";class n extends c{constructor(e){super(o,e),this.body=this.registerDataInput("body",a)}_doOperation(e){const r=this.body.getValue(e);if(!r)return;let t=e._getExecutionVariable(this,"_cachedVelocity",null);return t||(t=new l,e._setExecutionVariable(this,"_cachedVelocity",t)),r.getLinearVelocityToRef(t),t}getClassName(){return"FlowGraphGetLinearVelocityBlock"}}let i=!1;function h(){i||(i=!0,s("FlowGraphGetLinearVelocityBlock",n))}h();export{n as FlowGraphGetLinearVelocityBlock,h as RegisterFlowGraphGetLinearVelocityBlock};
@@ -1 +1 @@
1
- import{f as a,g as o,x as h,H as r,i as p}from"./index-JRwY7p9T.js";class u extends a{constructor(s){super(s),this.body=this.registerDataInput("body",o),this.mass=this.registerDataOutput("mass",h),this.centerOfMass=this.registerDataOutput("centerOfMass",r),this.inertia=this.registerDataOutput("inertia",r)}_updateOutputs(s){const t=this.body.getValue(s);if(!t)return;const e=t.getMassProperties();e.mass!==void 0&&this.mass.setValue(e.mass,s),e.centerOfMass&&this.centerOfMass.setValue(e.centerOfMass,s),e.inertia&&this.inertia.setValue(e.inertia,s)}getClassName(){return"FlowGraphGetPhysicsMassPropertiesBlock"}}let i=!1;function c(){i||(i=!0,p("FlowGraphGetPhysicsMassPropertiesBlock",u))}c();export{u as FlowGraphGetPhysicsMassPropertiesBlock,c as RegisterFlowGraphGetPhysicsMassPropertiesBlock};
1
+ import{f as a,g as o,x as h,H as r,i as p}from"./index-YcXsPtFI.js";class u extends a{constructor(s){super(s),this.body=this.registerDataInput("body",o),this.mass=this.registerDataOutput("mass",h),this.centerOfMass=this.registerDataOutput("centerOfMass",r),this.inertia=this.registerDataOutput("inertia",r)}_updateOutputs(s){const t=this.body.getValue(s);if(!t)return;const e=t.getMassProperties();e.mass!==void 0&&this.mass.setValue(e.mass,s),e.centerOfMass&&this.centerOfMass.setValue(e.centerOfMass,s),e.inertia&&this.inertia.setValue(e.inertia,s)}getClassName(){return"FlowGraphGetPhysicsMassPropertiesBlock"}}let i=!1;function c(){i||(i=!0,p("FlowGraphGetPhysicsMassPropertiesBlock",u))}c();export{u as FlowGraphGetPhysicsMassPropertiesBlock,c as RegisterFlowGraphGetPhysicsMassPropertiesBlock};
@@ -1 +1 @@
1
- import{g as a,k as i,i as u}from"./index-JRwY7p9T.js";import{F as l}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class n extends l{constructor(e){super(a,e),this.config=e,this.object=this.registerDataInput("object",a,e.object),this.propertyName=this.registerDataInput("propertyName",i,e.propertyName),this.customGetFunction=this.registerDataInput("customGetFunction",a)}_doOperation(e){const o=this.customGetFunction.getValue(e);let r;if(o)r=o(this.object.getValue(e),this.propertyName.getValue(e),e);else{const t=this.object.getValue(e),s=this.propertyName.getValue(e);r=t&&s?this._getPropertyValue(t,s):void 0}return r}_getPropertyValue(e,o){const r=o.split(".");let t=e;for(const s of r)if(t=t[s],t===void 0)return;return t}getClassName(){return"FlowGraphGetPropertyBlock"}}let p=!1;function h(){p||(p=!0,u("FlowGraphGetPropertyBlock",n))}h();export{n as FlowGraphGetPropertyBlock,h as RegisterFlowGraphGetPropertyBlock};
1
+ import{g as a,k as i,i as u}from"./index-YcXsPtFI.js";import{F as l}from"./flowGraphCachedOperationBlock-D2544szv.js";class n extends l{constructor(e){super(a,e),this.config=e,this.object=this.registerDataInput("object",a,e.object),this.propertyName=this.registerDataInput("propertyName",i,e.propertyName),this.customGetFunction=this.registerDataInput("customGetFunction",a)}_doOperation(e){const o=this.customGetFunction.getValue(e);let r;if(o)r=o(this.object.getValue(e),this.propertyName.getValue(e),e);else{const t=this.object.getValue(e),s=this.propertyName.getValue(e);r=t&&s?this._getPropertyValue(t,s):void 0}return r}_getPropertyValue(e,o){const r=o.split(".");let t=e;for(const s of r)if(t=t[s],t===void 0)return;return t}getClassName(){return"FlowGraphGetPropertyBlock"}}let p=!1;function h(){p||(p=!0,u("FlowGraphGetPropertyBlock",n))}h();export{n as FlowGraphGetPropertyBlock,h as RegisterFlowGraphGetPropertyBlock};
@@ -1 +1 @@
1
- import{x as r,g as s,i as u}from"./index-JRwY7p9T.js";import{F as n}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class l extends n{constructor(e){super(r,e),this.sound=this.registerDataInput("sound",s)}_doOperation(e){const o=this.sound.getValue(e);if(o)return o.volume}getClassName(){return"FlowGraphGetSoundVolumeBlock"}}let t=!1;function a(){t||(t=!0,u("FlowGraphGetSoundVolumeBlock",l))}a();export{l as FlowGraphGetSoundVolumeBlock,a as RegisterFlowGraphGetSoundVolumeBlock};
1
+ import{x as r,g as s,i as u}from"./index-YcXsPtFI.js";import{F as n}from"./flowGraphCachedOperationBlock-D2544szv.js";class l extends n{constructor(e){super(r,e),this.sound=this.registerDataInput("sound",s)}_doOperation(e){const o=this.sound.getValue(e);if(o)return o.volume}getClassName(){return"FlowGraphGetSoundVolumeBlock"}}let t=!1;function a(){t||(t=!0,u("FlowGraphGetSoundVolumeBlock",l))}a();export{l as FlowGraphGetSoundVolumeBlock,a as RegisterFlowGraphGetSoundVolumeBlock};
@@ -1 +1 @@
1
- import{f as r,g as i,i as s}from"./index-JRwY7p9T.js";class t extends r{constructor(e){super(e),this.config=e,this.value=this.registerDataOutput("value",i,e.initialValue)}_updateOutputs(e){const a=this.config.variable;e.hasVariable(a)&&this.value.setValue(e.getVariable(a),e)}serialize(e){super.serialize(e),e.config.variable=this.config.variable}getClassName(){return"FlowGraphGetVariableBlock"}}let l=!1;function u(){l||(l=!0,s("FlowGraphGetVariableBlock",t))}u();export{t as FlowGraphGetVariableBlock,u as RegisterFlowGraphGetVariableBlock};
1
+ import{f as r,g as i,i as s}from"./index-YcXsPtFI.js";class t extends r{constructor(e){super(e),this.config=e,this.value=this.registerDataOutput("value",i,e.initialValue)}_updateOutputs(e){const a=this.config.variable;e.hasVariable(a)&&this.value.setValue(e.getVariable(a),e)}serialize(e){super.serialize(e),e.config.variable=this.config.variable}getClassName(){return"FlowGraphGetVariableBlock"}}let l=!1;function u(){l||(l=!0,s("FlowGraphGetVariableBlock",t))}u();export{t as FlowGraphGetVariableBlock,u as RegisterFlowGraphGetVariableBlock};
@@ -1 +1 @@
1
- import{f as l,g as r,O as o,X as s,i as n}from"./index-JRwY7p9T.js";class h extends l{constructor(e){super(e),this.config=e,this.object=this.registerDataInput("object",r),this.array=this.registerDataInput("array",r),this.index=this.registerDataOutput("index",o,new s(-1))}_updateOutputs(e){const i=this.object.getValue(e),t=this.array.getValue(e);t&&this.index.setValue(new s(t.indexOf(i)),e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphIndexOfBlock"}}let a=!1;function p(){a||(a=!0,n("FlowGraphIndexOfBlock",h))}p();export{h as FlowGraphIndexOfBlock,p as RegisterFlowGraphIndexOfBlock};
1
+ import{f as l,g as r,O as o,X as s,i as n}from"./index-YcXsPtFI.js";class h extends l{constructor(e){super(e),this.config=e,this.object=this.registerDataInput("object",r),this.array=this.registerDataInput("array",r),this.index=this.registerDataOutput("index",o,new s(-1))}_updateOutputs(e){const i=this.object.getValue(e),t=this.array.getValue(e);t&&this.index.setValue(new s(t.indexOf(i)),e)}serialize(e){super.serialize(e)}getClassName(){return"FlowGraphIndexOfBlock"}}let a=!1;function p(){a||(a=!0,n("FlowGraphIndexOfBlock",h))}p();export{h as FlowGraphIndexOfBlock,p as RegisterFlowGraphIndexOfBlock};
@@ -1 +1 @@
1
- import{f as d,z as g,A as f,x as h,g as m,k as F,D as y,i as A}from"./index-JRwY7p9T.js";class V extends d{constructor(t={}){super(t),this.keyFrames=[];const a=typeof t?.animationType=="string"?g(t.animationType):f(t?.animationType??0),i=t?.keyFramesCount??1,n=this.registerDataInput("duration_0",h,0),e=this.registerDataInput("value_0",a);this.keyFrames.push({duration:n,value:e});for(let s=1;s<i+1;s++){const u=this.registerDataInput(`duration_${s}`,h,s===i?t.duration:void 0),l=this.registerDataInput(`value_${s}`,a);this.keyFrames.push({duration:u,value:l})}this.initialValue=this.keyFrames[0].value,this.endValue=this.keyFrames[i].value,this.easingFunction=this.registerDataInput("easingFunction",m),this.animation=this.registerDataOutput("animation",m),this.propertyName=this.registerDataInput("propertyName",F,t?.propertyName),this.customBuildAnimation=this.registerDataInput("customBuildAnimation",m)}_updateOutputs(t){const a=t._getGlobalContextVariable("interpolationAnimations",[]),i=this.propertyName.getValue(t),n=this.easingFunction.getValue(t),e=this._createAnimation(t,i,n);if(this.animation.setValue(e,t),Array.isArray(e))for(const s of e)a.push(s.uniqueId);else a.push(e.uniqueId);t._setGlobalContextVariable("interpolationAnimations",a)}_createAnimation(t,a,i){const n=this.initialValue.richType,e=[],s=this.initialValue.getValue(t)||n.defaultValue;e.push({frame:0,value:s});const u=this.config?.numberOfKeyFrames??1;for(let r=1;r<u+1;r++){const p=this.keyFrames[r].duration?.getValue(t);let o=this.keyFrames[r].value?.getValue(t);r===u-1&&(o=o||n.defaultValue),p!==void 0&&o&&e.push({frame:p*60,value:o})}const l=this.customBuildAnimation.getValue(t);if(l)return l(null,null,t)(e,60,n.animationType,i);if(typeof a=="string"){const r=y(a,n.animationType,60,i);return r.setKeys(e),[r]}else return a.map(p=>{const o=y(p,n.animationType,60,i);return o.setKeys(e),o})}getClassName(){return"FlowGraphInterpolationBlock"}}let c=!1;function k(){c||(c=!0,A("FlowGraphInterpolationBlock",V))}k();export{V as FlowGraphInterpolationBlock,k as RegisterFlowGraphInterpolationBlock};
1
+ import{f as d,z as g,A as f,x as h,g as m,k as F,D as y,i as A}from"./index-YcXsPtFI.js";class V extends d{constructor(t={}){super(t),this.keyFrames=[];const a=typeof t?.animationType=="string"?g(t.animationType):f(t?.animationType??0),i=t?.keyFramesCount??1,n=this.registerDataInput("duration_0",h,0),e=this.registerDataInput("value_0",a);this.keyFrames.push({duration:n,value:e});for(let s=1;s<i+1;s++){const u=this.registerDataInput(`duration_${s}`,h,s===i?t.duration:void 0),l=this.registerDataInput(`value_${s}`,a);this.keyFrames.push({duration:u,value:l})}this.initialValue=this.keyFrames[0].value,this.endValue=this.keyFrames[i].value,this.easingFunction=this.registerDataInput("easingFunction",m),this.animation=this.registerDataOutput("animation",m),this.propertyName=this.registerDataInput("propertyName",F,t?.propertyName),this.customBuildAnimation=this.registerDataInput("customBuildAnimation",m)}_updateOutputs(t){const a=t._getGlobalContextVariable("interpolationAnimations",[]),i=this.propertyName.getValue(t),n=this.easingFunction.getValue(t),e=this._createAnimation(t,i,n);if(this.animation.setValue(e,t),Array.isArray(e))for(const s of e)a.push(s.uniqueId);else a.push(e.uniqueId);t._setGlobalContextVariable("interpolationAnimations",a)}_createAnimation(t,a,i){const n=this.initialValue.richType,e=[],s=this.initialValue.getValue(t)||n.defaultValue;e.push({frame:0,value:s});const u=this.config?.numberOfKeyFrames??1;for(let r=1;r<u+1;r++){const p=this.keyFrames[r].duration?.getValue(t);let o=this.keyFrames[r].value?.getValue(t);r===u-1&&(o=o||n.defaultValue),p!==void 0&&o&&e.push({frame:p*60,value:o})}const l=this.customBuildAnimation.getValue(t);if(l)return l(null,null,t)(e,60,n.animationType,i);if(typeof a=="string"){const r=y(a,n.animationType,60,i);return r.setKeys(e),[r]}else return a.map(p=>{const o=y(p,n.animationType,60,i);return o.setKeys(e),o})}getClassName(){return"FlowGraphInterpolationBlock"}}let c=!1;function k(){c||(c=!0,A("FlowGraphInterpolationBlock",V))}k();export{V as FlowGraphInterpolationBlock,k as RegisterFlowGraphInterpolationBlock};
@@ -1 +1 @@
1
- import{f as r,k as l,h as i,i as o}from"./index-JRwY7p9T.js";class u extends r{constructor(t){super(t),this.key=this.registerDataInput("key",l),this.withShift=this.registerDataInput("withShift",i),this.withCtrl=this.registerDataInput("withCtrl",i),this.withAlt=this.registerDataInput("withAlt",i),this.withMeta=this.registerDataInput("withMeta",i),this.withCommandOrCtrl=this.registerDataInput("withCommandOrCtrl",i),this.isPressed=this.registerDataOutput("isPressed",i)}_updateOutputs(t){const h=t.configuration.sceneEventCoordinator;if(!h){this.isPressed.setValue(!1,t);return}const e=h.pressedKeys,a=this.key.getValue(t);let s=a?e.has(a):!0;s&&this.withShift.getValue(t)&&(s=e.has("ShiftLeft")||e.has("ShiftRight")),s&&this.withCtrl.getValue(t)&&(s=e.has("ControlLeft")||e.has("ControlRight")),s&&this.withAlt.getValue(t)&&(s=e.has("AltLeft")||e.has("AltRight")),s&&this.withMeta.getValue(t)&&(s=e.has("MetaLeft")||e.has("MetaRight")),s&&this.withCommandOrCtrl.getValue(t)&&(s=e.has("CommandOrControl")),this.isPressed.setValue(s,t)}getClassName(){return"FlowGraphIsKeyPressedBlock"}}o("FlowGraphIsKeyPressedBlock",u);export{u as FlowGraphIsKeyPressedBlock};
1
+ import{f as r,k as l,h as i,i as o}from"./index-YcXsPtFI.js";class u extends r{constructor(t){super(t),this.key=this.registerDataInput("key",l),this.withShift=this.registerDataInput("withShift",i),this.withCtrl=this.registerDataInput("withCtrl",i),this.withAlt=this.registerDataInput("withAlt",i),this.withMeta=this.registerDataInput("withMeta",i),this.withCommandOrCtrl=this.registerDataInput("withCommandOrCtrl",i),this.isPressed=this.registerDataOutput("isPressed",i)}_updateOutputs(t){const h=t.configuration.sceneEventCoordinator;if(!h){this.isPressed.setValue(!1,t);return}const e=h.pressedKeys,a=this.key.getValue(t);let s=a?e.has(a):!0;s&&this.withShift.getValue(t)&&(s=e.has("ShiftLeft")||e.has("ShiftRight")),s&&this.withCtrl.getValue(t)&&(s=e.has("ControlLeft")||e.has("ControlRight")),s&&this.withAlt.getValue(t)&&(s=e.has("AltLeft")||e.has("AltRight")),s&&this.withMeta.getValue(t)&&(s=e.has("MetaLeft")||e.has("MetaRight")),s&&this.withCommandOrCtrl.getValue(t)&&(s=e.has("CommandOrControl")),this.isPressed.setValue(s,t)}getClassName(){return"FlowGraphIsKeyPressedBlock"}}o("FlowGraphIsKeyPressedBlock",u);export{u as FlowGraphIsKeyPressedBlock};
@@ -1 +1 @@
1
- import{h as t,g as r,i as a}from"./index-JRwY7p9T.js";import{F as n}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";class i extends n{constructor(e){super(t,e),this.sound=this.registerDataInput("sound",r)}_doOperation(e){const o=this.sound.getValue(e);if(o)return o.state===3||o.state===2}getClassName(){return"FlowGraphIsSoundPlayingBlock"}}let s=!1;function l(){s||(s=!0,a("FlowGraphIsSoundPlayingBlock",i))}l();export{i as FlowGraphIsSoundPlayingBlock,l as RegisterFlowGraphIsSoundPlayingBlock};
1
+ import{h as t,g as r,i as a}from"./index-YcXsPtFI.js";import{F as n}from"./flowGraphCachedOperationBlock-D2544szv.js";class i extends n{constructor(e){super(t,e),this.sound=this.registerDataInput("sound",r)}_doOperation(e){const o=this.sound.getValue(e);if(o)return o.state===3||o.state===2}getClassName(){return"FlowGraphIsSoundPlayingBlock"}}let s=!1;function l(){s||(s=!0,a("FlowGraphIsSoundPlayingBlock",i))}l();export{i as FlowGraphIsSoundPlayingBlock,l as RegisterFlowGraphIsSoundPlayingBlock};
@@ -1 +1 @@
1
- import{O as F,X as _,g as c,c as y,aA as b,V as j,a7 as I,i as N}from"./index-JRwY7p9T.js";import{F as V}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";const g=new RegExp(/\/\{(\w+)\}(?=\/|$)/g);class G{constructor(o,s){this.path=o,this.ownerBlock=s,this.templatedInputs=[];let n=g.exec(o);const r=new Set;for(;n;){const[,e]=n;if(r.has(e))throw new Error("Duplicate template variable detected.");r.add(e),this.templatedInputs.push(s.registerDataInput(e,F,new _(0))),n=g.exec(o)}}getAccessor(o,s){let n=this.path;for(const r of this.templatedInputs){const e=r.getValue(s).value;if(typeof e!="number"||e<0)throw new Error("Invalid value for templated input.");n=n.replace(`{${r.name}}`,e.toString())}return o.convert(n)}}class O extends V{constructor(o){super(c,o),this.config=o,this.object=this.registerDataOutput("object",c),this.propertyName=this.registerDataOutput("propertyName",c),this.setterFunction=this.registerDataOutput("setFunction",c,this._setPropertyValue.bind(this)),this.getterFunction=this.registerDataOutput("getFunction",c,this._getPropertyValue.bind(this)),this.generateAnimationsFunction=this.registerDataOutput("generateAnimationsFunction",c,this._getInterpolationAnimationPropertyInfo.bind(this)),this.templateComponent=new G(o.jsonPointer,this)}_doOperation(o){const s=this.templateComponent.getAccessor(this.config.pathConverter,o),n=s.info.get(s.object),r=s.info.getTarget?.(s.object),e=s.info.getPropertyName?.[0](s.object);if(r)this.object.setValue(r,o),e&&this.propertyName.setValue(e,o);else throw new Error("Object is undefined");return n}_setPropertyValue(o,s,n,r){const e=this.templateComponent.getAccessor(this.config.pathConverter,r),i=e.info.type;i.startsWith("Color")&&(n=C(n,i)),e.info.set?.(n,e.object)}_getPropertyValue(o,s,n){const r=this.templateComponent.getAccessor(this.config.pathConverter,n),e=r.info.type,i=r.info.get(r.object);return e.startsWith("Color")?D(i):i}_getInterpolationAnimationPropertyInfo(o,s,n){const r=this.templateComponent.getAccessor(this.config.pathConverter,n);return(e,i,d,h)=>{const l=[],m=r.info.type;return m.startsWith("Color")&&(e=e.map(p=>({frame:p.frame,value:C(p.value,m)}))),r.info.interpolation?.forEach((p,u)=>{const P=r.info.getPropertyName?.[u](r.object)||"Animation-interpolation-"+u;let f=e;d!==p.type&&(f=e.map(a=>({frame:a.frame,value:p.getValue(void 0,a.value.asArray?a.value.asArray():[a.value],0,1)})));const A=p.buildAnimations(r.object,P,60,f);for(const a of A)h&&a.babylonAnimation.setEasingFunction(h),l.push(a.babylonAnimation)}),l}}getClassName(){return"FlowGraphJsonPointerParserBlock"}}function C(t,o){return t.getClassName().startsWith("Color")?t:o==="Color3"?new y(t.x,t.y,t.z):o==="Color4"?new b(t.x,t.y,t.z,t.w):t}function D(t){if(t instanceof y)return new j(t.r,t.g,t.b);if(t instanceof b)return new I(t.r,t.g,t.b,t.a);throw new Error("Invalid color type")}let w=!1;function R(){w||(w=!0,N("FlowGraphJsonPointerParserBlock",O))}R();export{O as FlowGraphJsonPointerParserBlock,R as RegisterFlowGraphJsonPointerParserBlock};
1
+ import{O as F,X as _,g as c,c as y,aA as b,V as j,a7 as I,i as N}from"./index-YcXsPtFI.js";import{F as V}from"./flowGraphCachedOperationBlock-D2544szv.js";const g=new RegExp(/\/\{(\w+)\}(?=\/|$)/g);class G{constructor(o,s){this.path=o,this.ownerBlock=s,this.templatedInputs=[];let n=g.exec(o);const r=new Set;for(;n;){const[,e]=n;if(r.has(e))throw new Error("Duplicate template variable detected.");r.add(e),this.templatedInputs.push(s.registerDataInput(e,F,new _(0))),n=g.exec(o)}}getAccessor(o,s){let n=this.path;for(const r of this.templatedInputs){const e=r.getValue(s).value;if(typeof e!="number"||e<0)throw new Error("Invalid value for templated input.");n=n.replace(`{${r.name}}`,e.toString())}return o.convert(n)}}class O extends V{constructor(o){super(c,o),this.config=o,this.object=this.registerDataOutput("object",c),this.propertyName=this.registerDataOutput("propertyName",c),this.setterFunction=this.registerDataOutput("setFunction",c,this._setPropertyValue.bind(this)),this.getterFunction=this.registerDataOutput("getFunction",c,this._getPropertyValue.bind(this)),this.generateAnimationsFunction=this.registerDataOutput("generateAnimationsFunction",c,this._getInterpolationAnimationPropertyInfo.bind(this)),this.templateComponent=new G(o.jsonPointer,this)}_doOperation(o){const s=this.templateComponent.getAccessor(this.config.pathConverter,o),n=s.info.get(s.object),r=s.info.getTarget?.(s.object),e=s.info.getPropertyName?.[0](s.object);if(r)this.object.setValue(r,o),e&&this.propertyName.setValue(e,o);else throw new Error("Object is undefined");return n}_setPropertyValue(o,s,n,r){const e=this.templateComponent.getAccessor(this.config.pathConverter,r),i=e.info.type;i.startsWith("Color")&&(n=C(n,i)),e.info.set?.(n,e.object)}_getPropertyValue(o,s,n){const r=this.templateComponent.getAccessor(this.config.pathConverter,n),e=r.info.type,i=r.info.get(r.object);return e.startsWith("Color")?D(i):i}_getInterpolationAnimationPropertyInfo(o,s,n){const r=this.templateComponent.getAccessor(this.config.pathConverter,n);return(e,i,d,h)=>{const l=[],m=r.info.type;return m.startsWith("Color")&&(e=e.map(p=>({frame:p.frame,value:C(p.value,m)}))),r.info.interpolation?.forEach((p,u)=>{const P=r.info.getPropertyName?.[u](r.object)||"Animation-interpolation-"+u;let f=e;d!==p.type&&(f=e.map(a=>({frame:a.frame,value:p.getValue(void 0,a.value.asArray?a.value.asArray():[a.value],0,1)})));const A=p.buildAnimations(r.object,P,60,f);for(const a of A)h&&a.babylonAnimation.setEasingFunction(h),l.push(a.babylonAnimation)}),l}}getClassName(){return"FlowGraphJsonPointerParserBlock"}}function C(t,o){return t.getClassName().startsWith("Color")?t:o==="Color3"?new y(t.x,t.y,t.z):o==="Color4"?new b(t.x,t.y,t.z,t.w):t}function D(t){if(t instanceof y)return new j(t.r,t.g,t.b);if(t instanceof b)return new I(t.r,t.g,t.b,t.a);throw new Error("Invalid color type")}let w=!1;function R(){w||(w=!0,N("FlowGraphJsonPointerParserBlock",O))}R();export{O as FlowGraphJsonPointerParserBlock,R as RegisterFlowGraphJsonPointerParserBlock};
@@ -1 +1 @@
1
- import{h as s,i as a}from"./index-JRwY7p9T.js";import{F as o}from"./flowGraphKeyboardEventBlock-B7EQjaZe.js";class n extends o{constructor(e){super(e),this.type="KeyDown",this.isRepeat=this.registerDataOutput("isRepeat",s)}_executeEvent(e,t){const r=t.event.repeat??!1;return r&&this.config?.ignoreRepeat?!0:(this.isRepeat.setValue(r,e),super._executeEvent(e,t))}getClassName(){return"FlowGraphKeyDownEventBlock"}}a("FlowGraphKeyDownEventBlock",n);export{n as FlowGraphKeyDownEventBlock};
1
+ import{h as s,i as a}from"./index-YcXsPtFI.js";import{F as o}from"./flowGraphKeyboardEventBlock-CU8VJhCC.js";class n extends o{constructor(e){super(e),this.type="KeyDown",this.isRepeat=this.registerDataOutput("isRepeat",s)}_executeEvent(e,t){const r=t.event.repeat??!1;return r&&this.config?.ignoreRepeat?!0:(this.isRepeat.setValue(r,e),super._executeEvent(e,t))}getClassName(){return"FlowGraphKeyDownEventBlock"}}a("FlowGraphKeyDownEventBlock",n);export{n as FlowGraphKeyDownEventBlock};
@@ -1 +1 @@
1
- import{i as o}from"./index-JRwY7p9T.js";import{F as r}from"./flowGraphKeyboardEventBlock-B7EQjaZe.js";class t extends r{constructor(e){super(e),this.type="KeyUp"}getClassName(){return"FlowGraphKeyUpEventBlock"}}o("FlowGraphKeyUpEventBlock",t);export{t as FlowGraphKeyUpEventBlock};
1
+ import{i as o}from"./index-YcXsPtFI.js";import{F as r}from"./flowGraphKeyboardEventBlock-CU8VJhCC.js";class t extends r{constructor(e){super(e),this.type="KeyUp"}getClassName(){return"FlowGraphKeyUpEventBlock"}}o("FlowGraphKeyUpEventBlock",t);export{t as FlowGraphKeyUpEventBlock};
@@ -1 +1 @@
1
- import{j as h,k as a,h as s,_ as u}from"./index-JRwY7p9T.js";class o extends h{constructor(e){super(e),this.key=this.registerDataInput("key",a),this.keyCode=this.registerDataOutput("keyCode",a),this.keyValue=this.registerDataOutput("keyValue",a),this.shiftKey=this.registerDataOutput("shiftKey",s),this.ctrlKey=this.registerDataOutput("ctrlKey",s),this.altKey=this.registerDataOutput("altKey",s),this.metaKey=this.registerDataOutput("metaKey",s),this.commandOrCtrl=this.registerDataOutput("commandOrCtrl",s)}_executeEvent(e,r){const t=r.event,i=this.key.getValue(e);return i&&i!==t.code?!0:(this.keyCode.setValue(t.code,e),this.keyValue.setValue(t.key,e),this.shiftKey.setValue(t.shiftKey,e),this.ctrlKey.setValue(t.ctrlKey,e),this.altKey.setValue(t.altKey,e),this.metaKey.setValue(t.metaKey,e),this.commandOrCtrl.setValue(u?t.metaKey:t.ctrlKey,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}}export{o as F};
1
+ import{j as h,k as a,h as s,_ as u}from"./index-YcXsPtFI.js";class o extends h{constructor(e){super(e),this.key=this.registerDataInput("key",a),this.keyCode=this.registerDataOutput("keyCode",a),this.keyValue=this.registerDataOutput("keyValue",a),this.shiftKey=this.registerDataOutput("shiftKey",s),this.ctrlKey=this.registerDataOutput("ctrlKey",s),this.altKey=this.registerDataOutput("altKey",s),this.metaKey=this.registerDataOutput("metaKey",s),this.commandOrCtrl=this.registerDataOutput("commandOrCtrl",s)}_executeEvent(e,r){const t=r.event,i=this.key.getValue(e);return i&&i!==t.code?!0:(this.keyCode.setValue(t.code,e),this.keyValue.setValue(t.key,e),this.shiftKey.setValue(t.shiftKey,e),this.ctrlKey.setValue(t.ctrlKey,e),this.altKey.setValue(t.altKey,e),this.metaKey.setValue(t.metaKey,e),this.commandOrCtrl.setValue(u?t.metaKey:t.ctrlKey,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}}export{o as F};
@@ -1 +1 @@
1
- import{O as G,X as y,z as i,g as l,x as a,h as B,Y as I,W as m,aW as F,aX as d,aY as x,aZ as _,a7 as k,a5 as f,a3 as M,M as g,Q as N,V as v,a9 as S,i as s}from"./index-JRwY7p9T.js";import{F as w}from"./flowGraphBinaryOperationBlock-C-xEeg-Z.js";import{F as D}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";import{F as c}from"./flowGraphUnaryOperationBlock-U15mYQbJ.js";class T extends D{constructor(r,o,t,n){super(r,n),this._operation=o,this._className=t}_doOperation(r){return this._operation(r)}getClassName(){return this._className}}class E extends D{constructor(r,o,t,n,p,u,L){super(n,L),this._operation=p,this._className=u,this.a=this.registerDataInput("a",r),this.b=this.registerDataInput("b",o),this.c=this.registerDataInput("c",t)}_doOperation(r){return this._operation(this.a.getValue(r),this.b.getValue(r),this.c.getValue(r))}getClassName(){return this._className}}class V extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicAdd(o,t),"FlowGraphAddBlock",r)}_polymorphicAdd(r,o){const t=F(r),n=F(o);if(d(t,n)||x(t,n)||_(t,n))return r.add(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).addInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.add(o);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)+m(o)}}class z extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicSubtract(o,t),"FlowGraphSubtractBlock",r)}_polymorphicSubtract(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n)||x(t,n))return r.subtract(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).subtractInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.subtract(o);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)-m(o)}}class q extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicMultiply(o,t),"FlowGraphMultiplyBlock",r)}_polymorphicMultiply(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n))return r.multiply(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).multiplyInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.multiply(o);if(x(t,n))if(this.config?.useMatrixPerComponent){const p=r.m;for(let u=0;u<p.length;u++)p[u]*=o.m[u];return t==="Matrix2D"?new f(p):t==="Matrix3D"?new M(p):g.FromArray(p)}else return r=r,o=o,o.multiply(r);else{if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)*m(o)}}}class P extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicDivide(o,t),"FlowGraphDivideBlock",r)}_polymorphicDivide(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n))return r.divide(o);if(t==="Quaternion"||n==="Quaternion"){const p=r.clone();return p.x/=o.x,p.y/=o.y,p.z/=o.z,p.w/=o.w,p}else{if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).divideInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.divide(o);if(x(t,n))if(this.config?.useMatrixPerComponent){const p=r.m;for(let u=0;u<p.length;u++)p[u]/=o.m[u];return t==="Matrix2D"?new f(p):t==="Matrix3D"?new M(p):g.FromArray(p)}else return r=r,o=o,r.divide(o);else{if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)/m(o)}}}}class Q extends T{constructor(r){super(a,o=>this._random(o),"FlowGraphRandomBlock",r),this.min=this.registerDataInput("min",a,r?.min??0),this.max=this.registerDataInput("max",a,r?.max??1),r?.seed&&(this._seed=r.seed)}_isSeed(r=this._seed){return r!==void 0}_getRandomValue(){if(this._isSeed(this._seed)){const r=Math.sin(this._seed++)*1e4;return r-Math.floor(r)}return Math.random()}_random(r){const o=this.min.getValue(r),t=this.max.getValue(r);return this._getRandomValue()*(t-o)+o}}class $ extends T{constructor(r){super(a,()=>Math.E,"FlowGraphEBlock",r)}}class Z extends T{constructor(r){super(a,()=>Math.PI,"FlowGraphPIBlock",r)}}class j extends T{constructor(r){super(a,()=>Number.POSITIVE_INFINITY,"FlowGraphInfBlock",r)}}class X extends T{constructor(r){super(a,()=>Number.NaN,"FlowGraphNaNBlock",r)}}function h(e,r){switch(F(e)){case"FlowGraphInteger":return e=e,new y(r(e.value));case"Vector2":return e=e,new S(r(e.x),r(e.y));case"Vector3":return e=e,new v(r(e.x),r(e.y),r(e.z));case"Vector4":return e=e,new k(r(e.x),r(e.y),r(e.z),r(e.w));case"Quaternion":return e=e,new N(r(e.x),r(e.y),r(e.z),r(e.w));case"Matrix":return e=e,g.FromArray(e.m.map(r));case"Matrix2D":return e=e,new f(e.m.map(r));case"Matrix3D":return e=e,new M(e.m.map(r));default:return e=e,r(e)}}class W extends c{constructor(r){super(a,a,o=>this._polymorphicAbs(o),"FlowGraphAbsBlock",r)}_polymorphicAbs(r){return h(r,Math.abs)}}class Y extends c{constructor(r){super(a,a,o=>this._polymorphicSign(o),"FlowGraphSignBlock",r)}_polymorphicSign(r){return h(r,Math.sign)}}class U extends c{constructor(r){super(a,a,o=>this._polymorphicTrunc(o),"FlowGraphTruncBlock",r)}_polymorphicTrunc(r){return h(r,Math.trunc)}}class H extends c{constructor(r){super(a,a,o=>this._polymorphicFloor(o),"FlowGraphFloorBlock",r)}_polymorphicFloor(r){return h(r,Math.floor)}}class J extends c{constructor(r){super(l,l,o=>this._polymorphicCeiling(o),"FlowGraphCeilBlock",r)}_polymorphicCeiling(r){return h(r,Math.ceil)}}class K extends c{constructor(r){super(l,l,o=>this._polymorphicRound(o),"FlowGraphRoundBlock",r)}_polymorphicRound(r){return h(r,o=>o<0&&this.config?.roundHalfAwayFromZero?-Math.round(-o):Math.round(o))}}class b extends c{constructor(r){super(l,l,o=>this._polymorphicFraction(o),"FlowGraphFractBlock",r)}_polymorphicFraction(r){return h(r,o=>o-Math.floor(o))}}class rr extends c{constructor(r){super(l,l,o=>this._polymorphicNeg(o),"FlowGraphNegationBlock",r)}_polymorphicNeg(r){return h(r,o=>-o)}}function C(e,r,o){switch(F(e)){case"FlowGraphInteger":return e=e,r=r,new y(o(e.value,r.value));case"Vector2":return e=e,r=r,new S(o(e.x,r.x),o(e.y,r.y));case"Vector3":return e=e,r=r,new v(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z));case"Vector4":return e=e,r=r,new k(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z),o(e.w,r.w));case"Quaternion":return e=e,r=r,new N(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z),o(e.w,r.w));case"Matrix":return e=e,g.FromArray(e.m.map((n,p)=>o(n,r.m[p])));case"Matrix2D":return e=e,new f(e.m.map((n,p)=>o(n,r.m[p])));case"Matrix3D":return e=e,new M(e.m.map((n,p)=>o(n,r.m[p])));default:return o(m(e),m(r))}}class or extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicRemainder(o,t),"FlowGraphModuloBlock",r)}_polymorphicRemainder(r,o){return C(r,o,(t,n)=>t%n)}}class er extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicMin(o,t),"FlowGraphMinBlock",r)}_polymorphicMin(r,o){return C(r,o,Math.min)}}class tr extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicMax(o,t),"FlowGraphMaxBlock",r)}_polymorphicMax(r,o){return C(r,o,Math.max)}}function lr(e,r,o){return Math.min(Math.max(e,Math.min(r,o)),Math.max(r,o))}function O(e,r,o,t){switch(F(e)){case"FlowGraphInteger":return e=e,r=r,o=o,new y(t(e.value,r.value,o.value));case"Vector2":return e=e,r=r,o=o,new S(t(e.x,r.x,o.x),t(e.y,r.y,o.y));case"Vector3":return e=e,r=r,o=o,new v(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z));case"Vector4":return e=e,r=r,o=o,new k(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z),t(e.w,r.w,o.w));case"Quaternion":return e=e,r=r,o=o,new N(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z),t(e.w,r.w,o.w));case"Matrix":return g.FromArray(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));case"Matrix2D":return new f(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));case"Matrix3D":return new M(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));default:return t(m(e),m(r),m(o))}}class sr extends E{constructor(r){super(l,l,l,l,(o,t,n)=>this._polymorphicClamp(o,t,n),"FlowGraphClampBlock",r)}_polymorphicClamp(r,o,t){return O(r,o,t,lr)}}function nr(e){return Math.min(Math.max(e,0),1)}class ar extends c{constructor(r){super(l,l,o=>this._polymorphicSaturate(o),"FlowGraphSaturateBlock",r)}_polymorphicSaturate(r){return h(r,nr)}}function cr(e,r,o){return(1-o)*e+o*r}class pr extends E{constructor(r){super(l,l,l,l,(o,t,n)=>this._polymorphicInterpolate(o,t,n),"FlowGraphMathInterpolationBlock",r)}_polymorphicInterpolate(r,o,t){return O(r,o,t,cr)}}class hr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicEq(o,t),"FlowGraphEqualityBlock",r)}_polymorphicEq(r,o){const t=F(r),n=F(o);return typeof r!=typeof o?!1:d(t,n)||x(t,n)||_(t,n)?r.equals(o):r===o}}function A(e,r,o){if(I(e)&&I(r))return o(m(e),m(r));throw new Error(`Cannot compare ${e} and ${r}`)}class ir extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicLessThan(o,t),"FlowGraphLessThanBlock",r)}_polymorphicLessThan(r,o){return A(r,o,(t,n)=>t<n)}}class ur extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicLessThanOrEqual(o,t),"FlowGraphLessThanOrEqualBlock",r)}_polymorphicLessThanOrEqual(r,o){return A(r,o,(t,n)=>t<=n)}}class wr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicGreaterThan(o,t),"FlowGraphGreaterThanBlock",r)}_polymorphicGreaterThan(r,o){return A(r,o,(t,n)=>t>n)}}class mr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicGreaterThanOrEqual(o,t),"FlowGraphGreaterThanOrEqualBlock",r)}_polymorphicGreaterThanOrEqual(r,o){return A(r,o,(t,n)=>t>=n)}}class Fr extends c{constructor(r){super(l,B,o=>this._polymorphicIsNan(o),"FlowGraphIsNaNBlock",r)}_polymorphicIsNan(r){if(I(r,!0))return isNaN(m(r));throw new Error(`Cannot get NaN of ${r}`)}}class Gr extends c{constructor(r){super(l,B,o=>this._polymorphicIsInf(o),"FlowGraphIsInfBlock",r)}_polymorphicIsInf(r){if(I(r))return!isFinite(m(r));throw new Error(`Cannot get isInf of ${r}`)}}class yr extends c{constructor(r){super(l,l,o=>this._polymorphicDegToRad(o),"FlowGraphDegToRadBlock",r)}_degToRad(r){return r*Math.PI/180}_polymorphicDegToRad(r){return h(r,this._degToRad)}}class Br extends c{constructor(r){super(l,l,o=>this._polymorphicRadToDeg(o),"FlowGraphRadToDegBlock",r)}_radToDeg(r){return r*180/Math.PI}_polymorphicRadToDeg(r){return h(r,this._radToDeg)}}class Jr extends c{constructor(r){super(a,a,o=>this._polymorphicSin(o),"FlowGraphSinBlock",r)}_polymorphicSin(r){return h(r,Math.sin)}}class Kr extends c{constructor(r){super(a,a,o=>this._polymorphicCos(o),"FlowGraphCosBlock",r)}_polymorphicCos(r){return h(r,Math.cos)}}class br extends c{constructor(r){super(a,a,o=>this._polymorphicTan(o),"FlowGraphTanBlock",r)}_polymorphicTan(r){return h(r,Math.tan)}}class kr extends c{constructor(r){super(a,a,o=>this._polymorphicAsin(o),"FlowGraphASinBlock",r)}_polymorphicAsin(r){return h(r,Math.asin)}}class dr extends c{constructor(r){super(a,a,o=>this._polymorphicAcos(o),"FlowGraphACosBlock",r)}_polymorphicAcos(r){return h(r,Math.acos)}}class xr extends c{constructor(r){super(a,a,o=>this._polymorphicAtan(o),"FlowGraphATanBlock",r)}_polymorphicAtan(r){return h(r,Math.atan)}}class _r extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicAtan2(o,t),"FlowGraphATan2Block",r)}_polymorphicAtan2(r,o){return C(r,o,Math.atan2)}}class fr extends c{constructor(r){super(l,l,o=>this._polymorphicSinh(o),"FlowGraphSinhBlock",r)}_polymorphicSinh(r){return h(r,Math.sinh)}}class Mr extends c{constructor(r){super(l,l,o=>this._polymorphicCosh(o),"FlowGraphCoshBlock",r)}_polymorphicCosh(r){return h(r,Math.cosh)}}class gr extends c{constructor(r){super(l,l,o=>this._polymorphicTanh(o),"FlowGraphTanhBlock",r)}_polymorphicTanh(r){return h(r,Math.tanh)}}class Tr extends c{constructor(r){super(l,a,o=>this._polymorphicAsinh(o),"FlowGraphASinhBlock",r)}_polymorphicAsinh(r){return h(r,Math.asinh)}}class Cr extends c{constructor(r){super(l,a,o=>this._polymorphicAcosh(o),"FlowGraphACoshBlock",r)}_polymorphicAcosh(r){return h(r,Math.acosh)}}class Ir extends c{constructor(r){super(l,a,o=>this._polymorphicAtanh(o),"FlowGraphATanhBlock",r)}_polymorphicAtanh(r){return h(r,Math.atanh)}}class Ar extends c{constructor(r){super(l,a,o=>this._polymorphicExp(o),"FlowGraphExponentialBlock",r)}_polymorphicExp(r){return h(r,Math.exp)}}class Nr extends c{constructor(r){super(l,a,o=>this._polymorphicLog(o),"FlowGraphLogBlock",r)}_polymorphicLog(r){return h(r,Math.log)}}class vr extends c{constructor(r){super(l,a,o=>this._polymorphicLog2(o),"FlowGraphLog2Block",r)}_polymorphicLog2(r){return h(r,Math.log2)}}class Sr extends c{constructor(r){super(l,a,o=>this._polymorphicLog10(o),"FlowGraphLog10Block",r)}_polymorphicLog10(r){return h(r,Math.log10)}}class Rr extends c{constructor(r){super(l,a,o=>this._polymorphicSqrt(o),"FlowGraphSquareRootBlock",r)}_polymorphicSqrt(r){return h(r,Math.sqrt)}}class Dr extends c{constructor(r){super(l,a,o=>this._polymorphicCubeRoot(o),"FlowGraphCubeRootBlock",r)}_polymorphicCubeRoot(r){return h(r,Math.cbrt)}}class Er extends w{constructor(r){super(l,a,a,(o,t)=>this._polymorphicPow(o,t),"FlowGraphPowerBlock",r)}_polymorphicPow(r,o){return C(r,o,Math.pow)}}class Or extends c{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),o=>typeof o=="boolean"?!o:typeof o=="number"?~o:new y(~o.value),"FlowGraphBitwiseNotBlock",r)}}class Lr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o&&t;if(typeof o=="number"&&typeof t=="number")return o&t;if(typeof o=="object"&&typeof t=="object")return new y(o.value&t.value);throw new Error(`Cannot perform bitwise AND on ${o} and ${t}`)},"FlowGraphBitwiseAndBlock",r)}}class Vr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o||t;if(typeof o=="number"&&typeof t=="number")return o|t;if(typeof o=="object"&&typeof t=="object")return new y(o.value|t.value);throw new Error(`Cannot perform bitwise OR on ${o} and ${t}`)},"FlowGraphBitwiseOrBlock",r)}}class zr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o!==t;if(typeof o=="number"&&typeof t=="number")return o^t;if(typeof o=="object"&&typeof t=="object")return new y(o.value^t.value);throw new Error(`Cannot perform bitwise XOR on ${o} and ${t}`)},"FlowGraphBitwiseXorBlock",r)}}class qr extends w{constructor(r){super(G,G,G,(o,t)=>new y(o.value<<t.value),"FlowGraphBitwiseLeftShiftBlock",r)}}class Pr extends w{constructor(r){super(G,G,G,(o,t)=>new y(o.value>>t.value),"FlowGraphBitwiseRightShiftBlock",r)}}class Qr extends c{constructor(r){super(G,G,o=>new y(Math.clz32(o.value)),"FlowGraphLeadingZerosBlock",r)}}class $r extends c{constructor(r){super(G,G,o=>new y(o.value?31-Math.clz32(o.value&-o.value):32),"FlowGraphTrailingZerosBlock",r)}}function Zr(e){let r=0;for(;e;)r+=e&1,e>>=1;return r}class jr extends c{constructor(r){super(G,G,o=>new y(Zr(o.value)),"FlowGraphOneBitsCounterBlock",r)}}let R=!1;function Xr(){R||(R=!0,s("FlowGraphAddBlock",V),s("FlowGraphSubtractBlock",z),s("FlowGraphMultiplyBlock",q),s("FlowGraphDivideBlock",P),s("FlowGraphRandomBlock",Q),s("FlowGraphEBlock",$),s("FlowGraphPIBlock",Z),s("FlowGraphInfBlock",j),s("FlowGraphNaNBlock",X),s("FlowGraphAbsBlock",W),s("FlowGraphSignBlock",Y),s("FlowGraphTruncBlock",U),s("FlowGraphFloorBlock",H),s("FlowGraphCeilBlock",J),s("FlowGraphRoundBlock",K),s("FlowGraphFractBlock",b),s("FlowGraphNegationBlock",rr),s("FlowGraphModuloBlock",or),s("FlowGraphMinBlock",er),s("FlowGraphMaxBlock",tr),s("FlowGraphClampBlock",sr),s("FlowGraphSaturateBlock",ar),s("FlowGraphMathInterpolationBlock",pr),s("FlowGraphEqualityBlock",hr),s("FlowGraphLessThanBlock",ir),s("FlowGraphLessThanOrEqualBlock",ur),s("FlowGraphGreaterThanBlock",wr),s("FlowGraphGreaterThanOrEqualBlock",mr),s("FlowGraphIsNaNBlock",Fr),s("FlowGraphIsInfBlock",Gr),s("FlowGraphDegToRadBlock",yr),s("FlowGraphRadToDegBlock",Br),s("FlowGraphASinBlock",kr),s("FlowGraphACosBlock",dr),s("FlowGraphATanBlock",xr),s("FlowGraphATan2Block",_r),s("FlowGraphSinhBlock",fr),s("FlowGraphCoshBlock",Mr),s("FlowGraphTanhBlock",gr),s("FlowGraphASinhBlock",Tr),s("FlowGraphACoshBlock",Cr),s("FlowGraphATanhBlock",Ir),s("FlowGraphExponentialBlock",Ar),s("FlowGraphLogBlock",Nr),s("FlowGraphLog2Block",vr),s("FlowGraphLog10Block",Sr),s("FlowGraphSquareRootBlock",Rr),s("FlowGraphCubeRootBlock",Dr),s("FlowGraphPowerBlock",Er),s("FlowGraphBitwiseNotBlock",Or),s("FlowGraphBitwiseAndBlock",Lr),s("FlowGraphBitwiseOrBlock",Vr),s("FlowGraphBitwiseXorBlock",zr),s("FlowGraphBitwiseLeftShiftBlock",qr),s("FlowGraphBitwiseRightShiftBlock",Pr),s("FlowGraphLeadingZerosBlock",Qr),s("FlowGraphTrailingZerosBlock",$r),s("FlowGraphOneBitsCounterBlock",jr))}Xr();export{W as FlowGraphAbsBlock,dr as FlowGraphAcosBlock,Cr as FlowGraphAcoshBlock,V as FlowGraphAddBlock,kr as FlowGraphAsinBlock,Tr as FlowGraphAsinhBlock,_r as FlowGraphAtan2Block,xr as FlowGraphAtanBlock,Ir as FlowGraphAtanhBlock,Lr as FlowGraphBitwiseAndBlock,qr as FlowGraphBitwiseLeftShiftBlock,Or as FlowGraphBitwiseNotBlock,Vr as FlowGraphBitwiseOrBlock,Pr as FlowGraphBitwiseRightShiftBlock,zr as FlowGraphBitwiseXorBlock,J as FlowGraphCeilBlock,sr as FlowGraphClampBlock,Kr as FlowGraphCosBlock,Mr as FlowGraphCoshBlock,Dr as FlowGraphCubeRootBlock,yr as FlowGraphDegToRadBlock,P as FlowGraphDivideBlock,$ as FlowGraphEBlock,hr as FlowGraphEqualityBlock,Ar as FlowGraphExpBlock,H as FlowGraphFloorBlock,b as FlowGraphFractionBlock,wr as FlowGraphGreaterThanBlock,mr as FlowGraphGreaterThanOrEqualBlock,j as FlowGraphInfBlock,Gr as FlowGraphIsInfinityBlock,Fr as FlowGraphIsNanBlock,Qr as FlowGraphLeadingZerosBlock,ir as FlowGraphLessThanBlock,ur as FlowGraphLessThanOrEqualBlock,Sr as FlowGraphLog10Block,vr as FlowGraphLog2Block,Nr as FlowGraphLogBlock,pr as FlowGraphMathInterpolationBlock,tr as FlowGraphMaxBlock,er as FlowGraphMinBlock,or as FlowGraphModuloBlock,q as FlowGraphMultiplyBlock,X as FlowGraphNaNBlock,rr as FlowGraphNegationBlock,jr as FlowGraphOneBitsCounterBlock,Z as FlowGraphPiBlock,Er as FlowGraphPowerBlock,Br as FlowGraphRadToDegBlock,Q as FlowGraphRandomBlock,K as FlowGraphRoundBlock,ar as FlowGraphSaturateBlock,Y as FlowGraphSignBlock,Jr as FlowGraphSinBlock,fr as FlowGraphSinhBlock,Rr as FlowGraphSquareRootBlock,z as FlowGraphSubtractBlock,br as FlowGraphTanBlock,gr as FlowGraphTanhBlock,$r as FlowGraphTrailingZerosBlock,U as FlowGraphTruncBlock,Xr as RegisterFlowGraphMathBlocks};
1
+ import{O as G,X as y,z as i,g as l,x as a,h as B,Y as I,W as m,aW as F,aX as d,aY as x,aZ as _,a7 as k,a5 as f,a3 as M,M as g,Q as N,V as v,a9 as S,i as s}from"./index-YcXsPtFI.js";import{F as w}from"./flowGraphBinaryOperationBlock-BeXLKyeD.js";import{F as D}from"./flowGraphCachedOperationBlock-D2544szv.js";import{F as c}from"./flowGraphUnaryOperationBlock-DiLGLHtc.js";class T extends D{constructor(r,o,t,n){super(r,n),this._operation=o,this._className=t}_doOperation(r){return this._operation(r)}getClassName(){return this._className}}class E extends D{constructor(r,o,t,n,p,u,L){super(n,L),this._operation=p,this._className=u,this.a=this.registerDataInput("a",r),this.b=this.registerDataInput("b",o),this.c=this.registerDataInput("c",t)}_doOperation(r){return this._operation(this.a.getValue(r),this.b.getValue(r),this.c.getValue(r))}getClassName(){return this._className}}class V extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicAdd(o,t),"FlowGraphAddBlock",r)}_polymorphicAdd(r,o){const t=F(r),n=F(o);if(d(t,n)||x(t,n)||_(t,n))return r.add(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).addInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.add(o);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)+m(o)}}class z extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicSubtract(o,t),"FlowGraphSubtractBlock",r)}_polymorphicSubtract(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n)||x(t,n))return r.subtract(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).subtractInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.subtract(o);if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)-m(o)}}class q extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicMultiply(o,t),"FlowGraphMultiplyBlock",r)}_polymorphicMultiply(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n))return r.multiply(o);if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).multiplyInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.multiply(o);if(x(t,n))if(this.config?.useMatrixPerComponent){const p=r.m;for(let u=0;u<p.length;u++)p[u]*=o.m[u];return t==="Matrix2D"?new f(p):t==="Matrix3D"?new M(p):g.FromArray(p)}else return r=r,o=o,o.multiply(r);else{if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)*m(o)}}}class P extends w{constructor(r){super(i(r?.type),i(r?.type),i(r?.type),(o,t)=>this._polymorphicDivide(o,t),"FlowGraphDivideBlock",r)}_polymorphicDivide(r,o){const t=F(r),n=F(o);if(d(t,n)||_(t,n))return r.divide(o);if(t==="Quaternion"||n==="Quaternion"){const p=r.clone();return p.x/=o.x,p.y/=o.y,p.z/=o.z,p.w/=o.w,p}else{if(t==="Quaternion"||n==="Vector4")return new k(r.x,r.y,r.z,r.w).divideInPlace(o);if(t==="Vector4"||n==="Quaternion")return r.divide(o);if(x(t,n))if(this.config?.useMatrixPerComponent){const p=r.m;for(let u=0;u<p.length;u++)p[u]/=o.m[u];return t==="Matrix2D"?new f(p):t==="Matrix3D"?new M(p):g.FromArray(p)}else return r=r,o=o,r.divide(o);else{if(this.config?.preventIntegerFloatArithmetic&&typeof r!=typeof o)throw new Error("Cannot add different types of numbers.");return m(r)/m(o)}}}}class Q extends T{constructor(r){super(a,o=>this._random(o),"FlowGraphRandomBlock",r),this.min=this.registerDataInput("min",a,r?.min??0),this.max=this.registerDataInput("max",a,r?.max??1),r?.seed&&(this._seed=r.seed)}_isSeed(r=this._seed){return r!==void 0}_getRandomValue(){if(this._isSeed(this._seed)){const r=Math.sin(this._seed++)*1e4;return r-Math.floor(r)}return Math.random()}_random(r){const o=this.min.getValue(r),t=this.max.getValue(r);return this._getRandomValue()*(t-o)+o}}class $ extends T{constructor(r){super(a,()=>Math.E,"FlowGraphEBlock",r)}}class Z extends T{constructor(r){super(a,()=>Math.PI,"FlowGraphPIBlock",r)}}class j extends T{constructor(r){super(a,()=>Number.POSITIVE_INFINITY,"FlowGraphInfBlock",r)}}class X extends T{constructor(r){super(a,()=>Number.NaN,"FlowGraphNaNBlock",r)}}function h(e,r){switch(F(e)){case"FlowGraphInteger":return e=e,new y(r(e.value));case"Vector2":return e=e,new S(r(e.x),r(e.y));case"Vector3":return e=e,new v(r(e.x),r(e.y),r(e.z));case"Vector4":return e=e,new k(r(e.x),r(e.y),r(e.z),r(e.w));case"Quaternion":return e=e,new N(r(e.x),r(e.y),r(e.z),r(e.w));case"Matrix":return e=e,g.FromArray(e.m.map(r));case"Matrix2D":return e=e,new f(e.m.map(r));case"Matrix3D":return e=e,new M(e.m.map(r));default:return e=e,r(e)}}class W extends c{constructor(r){super(a,a,o=>this._polymorphicAbs(o),"FlowGraphAbsBlock",r)}_polymorphicAbs(r){return h(r,Math.abs)}}class Y extends c{constructor(r){super(a,a,o=>this._polymorphicSign(o),"FlowGraphSignBlock",r)}_polymorphicSign(r){return h(r,Math.sign)}}class U extends c{constructor(r){super(a,a,o=>this._polymorphicTrunc(o),"FlowGraphTruncBlock",r)}_polymorphicTrunc(r){return h(r,Math.trunc)}}class H extends c{constructor(r){super(a,a,o=>this._polymorphicFloor(o),"FlowGraphFloorBlock",r)}_polymorphicFloor(r){return h(r,Math.floor)}}class J extends c{constructor(r){super(l,l,o=>this._polymorphicCeiling(o),"FlowGraphCeilBlock",r)}_polymorphicCeiling(r){return h(r,Math.ceil)}}class K extends c{constructor(r){super(l,l,o=>this._polymorphicRound(o),"FlowGraphRoundBlock",r)}_polymorphicRound(r){return h(r,o=>o<0&&this.config?.roundHalfAwayFromZero?-Math.round(-o):Math.round(o))}}class b extends c{constructor(r){super(l,l,o=>this._polymorphicFraction(o),"FlowGraphFractBlock",r)}_polymorphicFraction(r){return h(r,o=>o-Math.floor(o))}}class rr extends c{constructor(r){super(l,l,o=>this._polymorphicNeg(o),"FlowGraphNegationBlock",r)}_polymorphicNeg(r){return h(r,o=>-o)}}function C(e,r,o){switch(F(e)){case"FlowGraphInteger":return e=e,r=r,new y(o(e.value,r.value));case"Vector2":return e=e,r=r,new S(o(e.x,r.x),o(e.y,r.y));case"Vector3":return e=e,r=r,new v(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z));case"Vector4":return e=e,r=r,new k(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z),o(e.w,r.w));case"Quaternion":return e=e,r=r,new N(o(e.x,r.x),o(e.y,r.y),o(e.z,r.z),o(e.w,r.w));case"Matrix":return e=e,g.FromArray(e.m.map((n,p)=>o(n,r.m[p])));case"Matrix2D":return e=e,new f(e.m.map((n,p)=>o(n,r.m[p])));case"Matrix3D":return e=e,new M(e.m.map((n,p)=>o(n,r.m[p])));default:return o(m(e),m(r))}}class or extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicRemainder(o,t),"FlowGraphModuloBlock",r)}_polymorphicRemainder(r,o){return C(r,o,(t,n)=>t%n)}}class er extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicMin(o,t),"FlowGraphMinBlock",r)}_polymorphicMin(r,o){return C(r,o,Math.min)}}class tr extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicMax(o,t),"FlowGraphMaxBlock",r)}_polymorphicMax(r,o){return C(r,o,Math.max)}}function lr(e,r,o){return Math.min(Math.max(e,Math.min(r,o)),Math.max(r,o))}function O(e,r,o,t){switch(F(e)){case"FlowGraphInteger":return e=e,r=r,o=o,new y(t(e.value,r.value,o.value));case"Vector2":return e=e,r=r,o=o,new S(t(e.x,r.x,o.x),t(e.y,r.y,o.y));case"Vector3":return e=e,r=r,o=o,new v(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z));case"Vector4":return e=e,r=r,o=o,new k(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z),t(e.w,r.w,o.w));case"Quaternion":return e=e,r=r,o=o,new N(t(e.x,r.x,o.x),t(e.y,r.y,o.y),t(e.z,r.z,o.z),t(e.w,r.w,o.w));case"Matrix":return g.FromArray(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));case"Matrix2D":return new f(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));case"Matrix3D":return new M(e.m.map((p,u)=>t(p,r.m[u],o.m[u])));default:return t(m(e),m(r),m(o))}}class sr extends E{constructor(r){super(l,l,l,l,(o,t,n)=>this._polymorphicClamp(o,t,n),"FlowGraphClampBlock",r)}_polymorphicClamp(r,o,t){return O(r,o,t,lr)}}function nr(e){return Math.min(Math.max(e,0),1)}class ar extends c{constructor(r){super(l,l,o=>this._polymorphicSaturate(o),"FlowGraphSaturateBlock",r)}_polymorphicSaturate(r){return h(r,nr)}}function cr(e,r,o){return(1-o)*e+o*r}class pr extends E{constructor(r){super(l,l,l,l,(o,t,n)=>this._polymorphicInterpolate(o,t,n),"FlowGraphMathInterpolationBlock",r)}_polymorphicInterpolate(r,o,t){return O(r,o,t,cr)}}class hr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicEq(o,t),"FlowGraphEqualityBlock",r)}_polymorphicEq(r,o){const t=F(r),n=F(o);return typeof r!=typeof o?!1:d(t,n)||x(t,n)||_(t,n)?r.equals(o):r===o}}function A(e,r,o){if(I(e)&&I(r))return o(m(e),m(r));throw new Error(`Cannot compare ${e} and ${r}`)}class ir extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicLessThan(o,t),"FlowGraphLessThanBlock",r)}_polymorphicLessThan(r,o){return A(r,o,(t,n)=>t<n)}}class ur extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicLessThanOrEqual(o,t),"FlowGraphLessThanOrEqualBlock",r)}_polymorphicLessThanOrEqual(r,o){return A(r,o,(t,n)=>t<=n)}}class wr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicGreaterThan(o,t),"FlowGraphGreaterThanBlock",r)}_polymorphicGreaterThan(r,o){return A(r,o,(t,n)=>t>n)}}class mr extends w{constructor(r){super(l,l,B,(o,t)=>this._polymorphicGreaterThanOrEqual(o,t),"FlowGraphGreaterThanOrEqualBlock",r)}_polymorphicGreaterThanOrEqual(r,o){return A(r,o,(t,n)=>t>=n)}}class Fr extends c{constructor(r){super(l,B,o=>this._polymorphicIsNan(o),"FlowGraphIsNaNBlock",r)}_polymorphicIsNan(r){if(I(r,!0))return isNaN(m(r));throw new Error(`Cannot get NaN of ${r}`)}}class Gr extends c{constructor(r){super(l,B,o=>this._polymorphicIsInf(o),"FlowGraphIsInfBlock",r)}_polymorphicIsInf(r){if(I(r))return!isFinite(m(r));throw new Error(`Cannot get isInf of ${r}`)}}class yr extends c{constructor(r){super(l,l,o=>this._polymorphicDegToRad(o),"FlowGraphDegToRadBlock",r)}_degToRad(r){return r*Math.PI/180}_polymorphicDegToRad(r){return h(r,this._degToRad)}}class Br extends c{constructor(r){super(l,l,o=>this._polymorphicRadToDeg(o),"FlowGraphRadToDegBlock",r)}_radToDeg(r){return r*180/Math.PI}_polymorphicRadToDeg(r){return h(r,this._radToDeg)}}class Jr extends c{constructor(r){super(a,a,o=>this._polymorphicSin(o),"FlowGraphSinBlock",r)}_polymorphicSin(r){return h(r,Math.sin)}}class Kr extends c{constructor(r){super(a,a,o=>this._polymorphicCos(o),"FlowGraphCosBlock",r)}_polymorphicCos(r){return h(r,Math.cos)}}class br extends c{constructor(r){super(a,a,o=>this._polymorphicTan(o),"FlowGraphTanBlock",r)}_polymorphicTan(r){return h(r,Math.tan)}}class kr extends c{constructor(r){super(a,a,o=>this._polymorphicAsin(o),"FlowGraphASinBlock",r)}_polymorphicAsin(r){return h(r,Math.asin)}}class dr extends c{constructor(r){super(a,a,o=>this._polymorphicAcos(o),"FlowGraphACosBlock",r)}_polymorphicAcos(r){return h(r,Math.acos)}}class xr extends c{constructor(r){super(a,a,o=>this._polymorphicAtan(o),"FlowGraphATanBlock",r)}_polymorphicAtan(r){return h(r,Math.atan)}}class _r extends w{constructor(r){super(l,l,l,(o,t)=>this._polymorphicAtan2(o,t),"FlowGraphATan2Block",r)}_polymorphicAtan2(r,o){return C(r,o,Math.atan2)}}class fr extends c{constructor(r){super(l,l,o=>this._polymorphicSinh(o),"FlowGraphSinhBlock",r)}_polymorphicSinh(r){return h(r,Math.sinh)}}class Mr extends c{constructor(r){super(l,l,o=>this._polymorphicCosh(o),"FlowGraphCoshBlock",r)}_polymorphicCosh(r){return h(r,Math.cosh)}}class gr extends c{constructor(r){super(l,l,o=>this._polymorphicTanh(o),"FlowGraphTanhBlock",r)}_polymorphicTanh(r){return h(r,Math.tanh)}}class Tr extends c{constructor(r){super(l,a,o=>this._polymorphicAsinh(o),"FlowGraphASinhBlock",r)}_polymorphicAsinh(r){return h(r,Math.asinh)}}class Cr extends c{constructor(r){super(l,a,o=>this._polymorphicAcosh(o),"FlowGraphACoshBlock",r)}_polymorphicAcosh(r){return h(r,Math.acosh)}}class Ir extends c{constructor(r){super(l,a,o=>this._polymorphicAtanh(o),"FlowGraphATanhBlock",r)}_polymorphicAtanh(r){return h(r,Math.atanh)}}class Ar extends c{constructor(r){super(l,a,o=>this._polymorphicExp(o),"FlowGraphExponentialBlock",r)}_polymorphicExp(r){return h(r,Math.exp)}}class Nr extends c{constructor(r){super(l,a,o=>this._polymorphicLog(o),"FlowGraphLogBlock",r)}_polymorphicLog(r){return h(r,Math.log)}}class vr extends c{constructor(r){super(l,a,o=>this._polymorphicLog2(o),"FlowGraphLog2Block",r)}_polymorphicLog2(r){return h(r,Math.log2)}}class Sr extends c{constructor(r){super(l,a,o=>this._polymorphicLog10(o),"FlowGraphLog10Block",r)}_polymorphicLog10(r){return h(r,Math.log10)}}class Rr extends c{constructor(r){super(l,a,o=>this._polymorphicSqrt(o),"FlowGraphSquareRootBlock",r)}_polymorphicSqrt(r){return h(r,Math.sqrt)}}class Dr extends c{constructor(r){super(l,a,o=>this._polymorphicCubeRoot(o),"FlowGraphCubeRootBlock",r)}_polymorphicCubeRoot(r){return h(r,Math.cbrt)}}class Er extends w{constructor(r){super(l,a,a,(o,t)=>this._polymorphicPow(o,t),"FlowGraphPowerBlock",r)}_polymorphicPow(r,o){return C(r,o,Math.pow)}}class Or extends c{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),o=>typeof o=="boolean"?!o:typeof o=="number"?~o:new y(~o.value),"FlowGraphBitwiseNotBlock",r)}}class Lr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o&&t;if(typeof o=="number"&&typeof t=="number")return o&t;if(typeof o=="object"&&typeof t=="object")return new y(o.value&t.value);throw new Error(`Cannot perform bitwise AND on ${o} and ${t}`)},"FlowGraphBitwiseAndBlock",r)}}class Vr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o||t;if(typeof o=="number"&&typeof t=="number")return o|t;if(typeof o=="object"&&typeof t=="object")return new y(o.value|t.value);throw new Error(`Cannot perform bitwise OR on ${o} and ${t}`)},"FlowGraphBitwiseOrBlock",r)}}class zr extends w{constructor(r){super(i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),i(r?.valueType||"FlowGraphInteger"),(o,t)=>{if(typeof o=="boolean"&&typeof t=="boolean")return o!==t;if(typeof o=="number"&&typeof t=="number")return o^t;if(typeof o=="object"&&typeof t=="object")return new y(o.value^t.value);throw new Error(`Cannot perform bitwise XOR on ${o} and ${t}`)},"FlowGraphBitwiseXorBlock",r)}}class qr extends w{constructor(r){super(G,G,G,(o,t)=>new y(o.value<<t.value),"FlowGraphBitwiseLeftShiftBlock",r)}}class Pr extends w{constructor(r){super(G,G,G,(o,t)=>new y(o.value>>t.value),"FlowGraphBitwiseRightShiftBlock",r)}}class Qr extends c{constructor(r){super(G,G,o=>new y(Math.clz32(o.value)),"FlowGraphLeadingZerosBlock",r)}}class $r extends c{constructor(r){super(G,G,o=>new y(o.value?31-Math.clz32(o.value&-o.value):32),"FlowGraphTrailingZerosBlock",r)}}function Zr(e){let r=0;for(;e;)r+=e&1,e>>=1;return r}class jr extends c{constructor(r){super(G,G,o=>new y(Zr(o.value)),"FlowGraphOneBitsCounterBlock",r)}}let R=!1;function Xr(){R||(R=!0,s("FlowGraphAddBlock",V),s("FlowGraphSubtractBlock",z),s("FlowGraphMultiplyBlock",q),s("FlowGraphDivideBlock",P),s("FlowGraphRandomBlock",Q),s("FlowGraphEBlock",$),s("FlowGraphPIBlock",Z),s("FlowGraphInfBlock",j),s("FlowGraphNaNBlock",X),s("FlowGraphAbsBlock",W),s("FlowGraphSignBlock",Y),s("FlowGraphTruncBlock",U),s("FlowGraphFloorBlock",H),s("FlowGraphCeilBlock",J),s("FlowGraphRoundBlock",K),s("FlowGraphFractBlock",b),s("FlowGraphNegationBlock",rr),s("FlowGraphModuloBlock",or),s("FlowGraphMinBlock",er),s("FlowGraphMaxBlock",tr),s("FlowGraphClampBlock",sr),s("FlowGraphSaturateBlock",ar),s("FlowGraphMathInterpolationBlock",pr),s("FlowGraphEqualityBlock",hr),s("FlowGraphLessThanBlock",ir),s("FlowGraphLessThanOrEqualBlock",ur),s("FlowGraphGreaterThanBlock",wr),s("FlowGraphGreaterThanOrEqualBlock",mr),s("FlowGraphIsNaNBlock",Fr),s("FlowGraphIsInfBlock",Gr),s("FlowGraphDegToRadBlock",yr),s("FlowGraphRadToDegBlock",Br),s("FlowGraphASinBlock",kr),s("FlowGraphACosBlock",dr),s("FlowGraphATanBlock",xr),s("FlowGraphATan2Block",_r),s("FlowGraphSinhBlock",fr),s("FlowGraphCoshBlock",Mr),s("FlowGraphTanhBlock",gr),s("FlowGraphASinhBlock",Tr),s("FlowGraphACoshBlock",Cr),s("FlowGraphATanhBlock",Ir),s("FlowGraphExponentialBlock",Ar),s("FlowGraphLogBlock",Nr),s("FlowGraphLog2Block",vr),s("FlowGraphLog10Block",Sr),s("FlowGraphSquareRootBlock",Rr),s("FlowGraphCubeRootBlock",Dr),s("FlowGraphPowerBlock",Er),s("FlowGraphBitwiseNotBlock",Or),s("FlowGraphBitwiseAndBlock",Lr),s("FlowGraphBitwiseOrBlock",Vr),s("FlowGraphBitwiseXorBlock",zr),s("FlowGraphBitwiseLeftShiftBlock",qr),s("FlowGraphBitwiseRightShiftBlock",Pr),s("FlowGraphLeadingZerosBlock",Qr),s("FlowGraphTrailingZerosBlock",$r),s("FlowGraphOneBitsCounterBlock",jr))}Xr();export{W as FlowGraphAbsBlock,dr as FlowGraphAcosBlock,Cr as FlowGraphAcoshBlock,V as FlowGraphAddBlock,kr as FlowGraphAsinBlock,Tr as FlowGraphAsinhBlock,_r as FlowGraphAtan2Block,xr as FlowGraphAtanBlock,Ir as FlowGraphAtanhBlock,Lr as FlowGraphBitwiseAndBlock,qr as FlowGraphBitwiseLeftShiftBlock,Or as FlowGraphBitwiseNotBlock,Vr as FlowGraphBitwiseOrBlock,Pr as FlowGraphBitwiseRightShiftBlock,zr as FlowGraphBitwiseXorBlock,J as FlowGraphCeilBlock,sr as FlowGraphClampBlock,Kr as FlowGraphCosBlock,Mr as FlowGraphCoshBlock,Dr as FlowGraphCubeRootBlock,yr as FlowGraphDegToRadBlock,P as FlowGraphDivideBlock,$ as FlowGraphEBlock,hr as FlowGraphEqualityBlock,Ar as FlowGraphExpBlock,H as FlowGraphFloorBlock,b as FlowGraphFractionBlock,wr as FlowGraphGreaterThanBlock,mr as FlowGraphGreaterThanOrEqualBlock,j as FlowGraphInfBlock,Gr as FlowGraphIsInfinityBlock,Fr as FlowGraphIsNanBlock,Qr as FlowGraphLeadingZerosBlock,ir as FlowGraphLessThanBlock,ur as FlowGraphLessThanOrEqualBlock,Sr as FlowGraphLog10Block,vr as FlowGraphLog2Block,Nr as FlowGraphLogBlock,pr as FlowGraphMathInterpolationBlock,tr as FlowGraphMaxBlock,er as FlowGraphMinBlock,or as FlowGraphModuloBlock,q as FlowGraphMultiplyBlock,X as FlowGraphNaNBlock,rr as FlowGraphNegationBlock,jr as FlowGraphOneBitsCounterBlock,Z as FlowGraphPiBlock,Er as FlowGraphPowerBlock,Br as FlowGraphRadToDegBlock,Q as FlowGraphRandomBlock,K as FlowGraphRoundBlock,ar as FlowGraphSaturateBlock,Y as FlowGraphSignBlock,Jr as FlowGraphSinBlock,fr as FlowGraphSinhBlock,Rr as FlowGraphSquareRootBlock,z as FlowGraphSubtractBlock,br as FlowGraphTanBlock,gr as FlowGraphTanhBlock,$r as FlowGraphTrailingZerosBlock,U as FlowGraphTruncBlock,Xr as RegisterFlowGraphMathBlocks};
@@ -1 +1 @@
1
- import{F as G}from"./flowGraphCachedOperationBlock-C0pDPzaF.js";import{a2 as n,a3 as h,a4 as g,a5 as o,K as V,M as c,a6 as _,a7 as D,H as I,V as w,a8 as m,a9 as d,f as k,x as F,i}from"./index-JRwY7p9T.js";class p extends G{constructor(t,a,e){super(a,e);for(let s=0;s<t;s++)this.registerDataInput(`input_${s}`,F,0)}}class r extends k{constructor(t,a,e){super(e),this.registerDataInput("input",a);for(let s=0;s<t;s++)this.registerDataOutput(`output_${s}`,F,0)}}class B extends p{constructor(t){super(2,m,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new d);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t)),a}getClassName(){return"FlowGraphCombineVector2Block"}}class M extends p{constructor(t){super(3,I,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new w);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t)),a}getClassName(){return"FlowGraphCombineVector3Block"}}class b extends p{constructor(t){super(4,_,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new D);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)),a}getClassName(){return"FlowGraphCombineVector4Block"}}class E extends p{constructor(t){super(16,V,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new c);const a=t._getExecutionVariable(this,"cachedMatrix",null);return this.config?.inputIsColumnMajor?a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_15").getValue(t)):a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_15").getValue(t)),a}getClassName(){return"FlowGraphCombineMatrixBlock"}}class C extends p{constructor(t){super(4,g,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new o);const a=t._getExecutionVariable(this,"cachedMatrix",null),e=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_3").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)];return a.fromArray(e),a}getClassName(){return"FlowGraphCombineMatrix2DBlock"}}class f extends p{constructor(t){super(9,n,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new h);const a=t._getExecutionVariable(this,"cachedMatrix",null),e=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_8").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t)];return a.fromArray(e),a}getClassName(){return"FlowGraphCombineMatrix3DBlock"}}class O extends r{constructor(t){super(2,m,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=d.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t)}getClassName(){return"FlowGraphExtractVector2Block"}}class y extends r{constructor(t){super(3,I,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=w.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t),this.getDataOutput("output_2").setValue(a.z,t)}getClassName(){return"FlowGraphExtractVector3Block"}}class N extends r{constructor(t){super(4,_,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=D.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t),this.getDataOutput("output_2").setValue(a.z,t),this.getDataOutput("output_3").setValue(a.w,t)}getClassName(){return"FlowGraphExtractVector4Block"}}class R extends r{constructor(t){super(16,V,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=c.Identity(),this.getDataInput("input").setValue(a,t));for(let e=0;e<16;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrixBlock"}}class T extends r{constructor(t){super(4,g,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=new o,this.getDataInput("input").setValue(a,t));for(let e=0;e<4;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrix2DBlock"}}class $ extends r{constructor(t){super(9,n,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=new h,this.getDataInput("input").setValue(a,t));for(let e=0;e<9;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrix3DBlock"}}let l=!1;function j(){l||(l=!0,i("FlowGraphCombineVector2Block",B),i("FlowGraphCombineVector3Block",M),i("FlowGraphCombineVector4Block",b),i("FlowGraphCombineMatrixBlock",E),i("FlowGraphCombineMatrix2DBlock",C),i("FlowGraphCombineMatrix3DBlock",f),i("FlowGraphExtractVector2Block",O),i("FlowGraphExtractVector3Block",y),i("FlowGraphExtractVector4Block",N),i("FlowGraphExtractMatrixBlock",R),i("FlowGraphExtractMatrix2DBlock",T),i("FlowGraphExtractMatrix3DBlock",$))}j();export{C as FlowGraphCombineMatrix2DBlock,f as FlowGraphCombineMatrix3DBlock,E as FlowGraphCombineMatrixBlock,B as FlowGraphCombineVector2Block,M as FlowGraphCombineVector3Block,b as FlowGraphCombineVector4Block,T as FlowGraphExtractMatrix2DBlock,$ as FlowGraphExtractMatrix3DBlock,R as FlowGraphExtractMatrixBlock,O as FlowGraphExtractVector2Block,y as FlowGraphExtractVector3Block,N as FlowGraphExtractVector4Block,j as RegisterFlowGraphMathCombineExtractBlocks};
1
+ import{F as G}from"./flowGraphCachedOperationBlock-D2544szv.js";import{a2 as n,a3 as h,a4 as g,a5 as o,K as V,M as c,a6 as _,a7 as D,H as I,V as w,a8 as m,a9 as d,f as k,x as F,i}from"./index-YcXsPtFI.js";class p extends G{constructor(t,a,e){super(a,e);for(let s=0;s<t;s++)this.registerDataInput(`input_${s}`,F,0)}}class r extends k{constructor(t,a,e){super(e),this.registerDataInput("input",a);for(let s=0;s<t;s++)this.registerDataOutput(`output_${s}`,F,0)}}class B extends p{constructor(t){super(2,m,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new d);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t)),a}getClassName(){return"FlowGraphCombineVector2Block"}}class M extends p{constructor(t){super(3,I,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new w);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t)),a}getClassName(){return"FlowGraphCombineVector3Block"}}class b extends p{constructor(t){super(4,_,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedVector")||t._setExecutionVariable(this,"cachedVector",new D);const a=t._getExecutionVariable(this,"cachedVector",null);return a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)),a}getClassName(){return"FlowGraphCombineVector4Block"}}class E extends p{constructor(t){super(16,V,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new c);const a=t._getExecutionVariable(this,"cachedMatrix",null);return this.config?.inputIsColumnMajor?a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_15").getValue(t)):a.set(this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t),this.getDataInput("input_9").getValue(t),this.getDataInput("input_10").getValue(t),this.getDataInput("input_11").getValue(t),this.getDataInput("input_12").getValue(t),this.getDataInput("input_13").getValue(t),this.getDataInput("input_14").getValue(t),this.getDataInput("input_15").getValue(t)),a}getClassName(){return"FlowGraphCombineMatrixBlock"}}class C extends p{constructor(t){super(4,g,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new o);const a=t._getExecutionVariable(this,"cachedMatrix",null),e=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_3").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t)];return a.fromArray(e),a}getClassName(){return"FlowGraphCombineMatrix2DBlock"}}class f extends p{constructor(t){super(9,n,t)}_doOperation(t){t._hasExecutionVariable(this,"cachedMatrix")||t._setExecutionVariable(this,"cachedMatrix",new h);const a=t._getExecutionVariable(this,"cachedMatrix",null),e=this.config?.inputIsColumnMajor?[this.getDataInput("input_0").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_8").getValue(t)]:[this.getDataInput("input_0").getValue(t),this.getDataInput("input_1").getValue(t),this.getDataInput("input_2").getValue(t),this.getDataInput("input_3").getValue(t),this.getDataInput("input_4").getValue(t),this.getDataInput("input_5").getValue(t),this.getDataInput("input_6").getValue(t),this.getDataInput("input_7").getValue(t),this.getDataInput("input_8").getValue(t)];return a.fromArray(e),a}getClassName(){return"FlowGraphCombineMatrix3DBlock"}}class O extends r{constructor(t){super(2,m,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=d.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t)}getClassName(){return"FlowGraphExtractVector2Block"}}class y extends r{constructor(t){super(3,I,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=w.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t),this.getDataOutput("output_2").setValue(a.z,t)}getClassName(){return"FlowGraphExtractVector3Block"}}class N extends r{constructor(t){super(4,_,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=D.Zero(),this.getDataInput("input").setValue(a,t)),this.getDataOutput("output_0").setValue(a.x,t),this.getDataOutput("output_1").setValue(a.y,t),this.getDataOutput("output_2").setValue(a.z,t),this.getDataOutput("output_3").setValue(a.w,t)}getClassName(){return"FlowGraphExtractVector4Block"}}class R extends r{constructor(t){super(16,V,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=c.Identity(),this.getDataInput("input").setValue(a,t));for(let e=0;e<16;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrixBlock"}}class T extends r{constructor(t){super(4,g,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=new o,this.getDataInput("input").setValue(a,t));for(let e=0;e<4;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrix2DBlock"}}class $ extends r{constructor(t){super(9,n,t)}_updateOutputs(t){let a=this.getDataInput("input")?.getValue(t);a||(a=new h,this.getDataInput("input").setValue(a,t));for(let e=0;e<9;e++)this.getDataOutput(`output_${e}`).setValue(a.m[e],t)}getClassName(){return"FlowGraphExtractMatrix3DBlock"}}let l=!1;function j(){l||(l=!0,i("FlowGraphCombineVector2Block",B),i("FlowGraphCombineVector3Block",M),i("FlowGraphCombineVector4Block",b),i("FlowGraphCombineMatrixBlock",E),i("FlowGraphCombineMatrix2DBlock",C),i("FlowGraphCombineMatrix3DBlock",f),i("FlowGraphExtractVector2Block",O),i("FlowGraphExtractVector3Block",y),i("FlowGraphExtractVector4Block",N),i("FlowGraphExtractMatrixBlock",R),i("FlowGraphExtractMatrix2DBlock",T),i("FlowGraphExtractMatrix3DBlock",$))}j();export{C as FlowGraphCombineMatrix2DBlock,f as FlowGraphCombineMatrix3DBlock,E as FlowGraphCombineMatrixBlock,B as FlowGraphCombineVector2Block,M as FlowGraphCombineVector3Block,b as FlowGraphCombineVector4Block,T as FlowGraphExtractMatrix2DBlock,$ as FlowGraphExtractMatrix3DBlock,R as FlowGraphExtractMatrixBlock,O as FlowGraphExtractVector2Block,y as FlowGraphExtractVector3Block,N as FlowGraphExtractVector4Block,j as RegisterFlowGraphMathCombineExtractBlocks};
@@ -1 +1 @@
1
- import{f as g,H as u,J as w,K as F,M as m,h as k,V as n,Q as x,z as e,x as D,i as r}from"./index-JRwY7p9T.js";import{F as V}from"./flowGraphUnaryOperationBlock-U15mYQbJ.js";import{F as _}from"./flowGraphBinaryOperationBlock-C-xEeg-Z.js";import"./flowGraphCachedOperationBlock-C0pDPzaF.js";class E extends V{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),i=>i.transpose?i.transpose():m.Transpose(i),"FlowGraphTransposeBlock",t)}}class b extends V{constructor(t){super(e(t?.matrixType||"Matrix"),D,i=>i.determinant(),"FlowGraphDeterminantBlock",t)}}class R extends V{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),i=>i.inverse?i.inverse():m.Invert(i),"FlowGraphInvertMatrixBlock",t)}}class v extends _{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),(i,a)=>a.multiply(i),"FlowGraphMatrixMultiplicationBlock",t)}}class Q extends g{constructor(t){super(t),this.input=this.registerDataInput("input",F),this.position=this.registerDataOutput("position",u),this.rotationQuaternion=this.registerDataOutput("rotationQuaternion",w),this.scaling=this.registerDataOutput("scaling",u),this.isValid=this.registerDataOutput("isValid",k,!1)}_updateOutputs(t){const i=t._getExecutionVariable(this,"executionId",-1),a=t._getExecutionVariable(this,"cachedPosition",null),s=t._getExecutionVariable(this,"cachedRotation",null),h=t._getExecutionVariable(this,"cachedScaling",null);if(i===t.executionId&&a&&s&&h)this.position.setValue(a,t),this.rotationQuaternion.setValue(s,t),this.scaling.setValue(h,t);else{const l=this.input.getValue(t),p=a||new n,c=s||new x,d=h||new n,G=Math.round(l.m[3]*1e4)/1e4,B=Math.round(l.m[7]*1e4)/1e4,y=Math.round(l.m[11]*1e4)/1e4,I=Math.round(l.m[15]*1e4)/1e4;if(G!==0||B!==0||y!==0||I!==1){this.isValid.setValue(!1,t),this.position.setValue(n.Zero(),t),this.rotationQuaternion.setValue(x.Identity(),t),this.scaling.setValue(n.One(),t);return}const T=l.decompose(d,c,p);this.isValid.setValue(T,t),this.position.setValue(p,t),this.rotationQuaternion.setValue(c,t),this.scaling.setValue(d,t),t._setExecutionVariable(this,"cachedPosition",p),t._setExecutionVariable(this,"cachedRotation",c),t._setExecutionVariable(this,"cachedScaling",d),t._setExecutionVariable(this,"executionId",t.executionId)}}getClassName(){return"FlowGraphMatrixDecompose"}}class O extends g{constructor(t){super(t),this.position=this.registerDataInput("position",u),this.rotationQuaternion=this.registerDataInput("rotationQuaternion",w),this.scaling=this.registerDataInput("scaling",u),this.value=this.registerDataOutput("value",F)}_updateOutputs(t){const i=t._getExecutionVariable(this,"executionId",-1),a=t._getExecutionVariable(this,"cachedMatrix",null);if(i===t.executionId&&a)this.value.setValue(a,t);else{const s=m.Compose(this.scaling.getValue(t),this.rotationQuaternion.getValue(t),this.position.getValue(t));this.value.setValue(s,t),t._setExecutionVariable(this,"cachedMatrix",s),t._setExecutionVariable(this,"executionId",t.executionId)}}getClassName(){return"FlowGraphMatrixCompose"}}let M=!1;function C(){M||(M=!0,r("FlowGraphTransposeBlock",E),r("FlowGraphDeterminantBlock",b),r("FlowGraphInvertMatrixBlock",R),r("FlowGraphMatrixMultiplicationBlock",v),r("FlowGraphMatrixDecompose",Q),r("FlowGraphMatrixCompose",O))}C();export{b as FlowGraphDeterminantBlock,R as FlowGraphInvertMatrixBlock,O as FlowGraphMatrixComposeBlock,Q as FlowGraphMatrixDecomposeBlock,v as FlowGraphMatrixMultiplicationBlock,E as FlowGraphTransposeBlock,C as RegisterFlowGraphMatrixMathBlocks};
1
+ import{f as g,H as u,J as w,K as F,M as m,h as k,V as n,Q as x,z as e,x as D,i as r}from"./index-YcXsPtFI.js";import{F as V}from"./flowGraphUnaryOperationBlock-DiLGLHtc.js";import{F as _}from"./flowGraphBinaryOperationBlock-BeXLKyeD.js";import"./flowGraphCachedOperationBlock-D2544szv.js";class E extends V{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),i=>i.transpose?i.transpose():m.Transpose(i),"FlowGraphTransposeBlock",t)}}class b extends V{constructor(t){super(e(t?.matrixType||"Matrix"),D,i=>i.determinant(),"FlowGraphDeterminantBlock",t)}}class R extends V{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),i=>i.inverse?i.inverse():m.Invert(i),"FlowGraphInvertMatrixBlock",t)}}class v extends _{constructor(t){super(e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),e(t?.matrixType||"Matrix"),(i,a)=>a.multiply(i),"FlowGraphMatrixMultiplicationBlock",t)}}class Q extends g{constructor(t){super(t),this.input=this.registerDataInput("input",F),this.position=this.registerDataOutput("position",u),this.rotationQuaternion=this.registerDataOutput("rotationQuaternion",w),this.scaling=this.registerDataOutput("scaling",u),this.isValid=this.registerDataOutput("isValid",k,!1)}_updateOutputs(t){const i=t._getExecutionVariable(this,"executionId",-1),a=t._getExecutionVariable(this,"cachedPosition",null),s=t._getExecutionVariable(this,"cachedRotation",null),h=t._getExecutionVariable(this,"cachedScaling",null);if(i===t.executionId&&a&&s&&h)this.position.setValue(a,t),this.rotationQuaternion.setValue(s,t),this.scaling.setValue(h,t);else{const l=this.input.getValue(t),p=a||new n,c=s||new x,d=h||new n,G=Math.round(l.m[3]*1e4)/1e4,B=Math.round(l.m[7]*1e4)/1e4,y=Math.round(l.m[11]*1e4)/1e4,I=Math.round(l.m[15]*1e4)/1e4;if(G!==0||B!==0||y!==0||I!==1){this.isValid.setValue(!1,t),this.position.setValue(n.Zero(),t),this.rotationQuaternion.setValue(x.Identity(),t),this.scaling.setValue(n.One(),t);return}const T=l.decompose(d,c,p);this.isValid.setValue(T,t),this.position.setValue(p,t),this.rotationQuaternion.setValue(c,t),this.scaling.setValue(d,t),t._setExecutionVariable(this,"cachedPosition",p),t._setExecutionVariable(this,"cachedRotation",c),t._setExecutionVariable(this,"cachedScaling",d),t._setExecutionVariable(this,"executionId",t.executionId)}}getClassName(){return"FlowGraphMatrixDecompose"}}class O extends g{constructor(t){super(t),this.position=this.registerDataInput("position",u),this.rotationQuaternion=this.registerDataInput("rotationQuaternion",w),this.scaling=this.registerDataInput("scaling",u),this.value=this.registerDataOutput("value",F)}_updateOutputs(t){const i=t._getExecutionVariable(this,"executionId",-1),a=t._getExecutionVariable(this,"cachedMatrix",null);if(i===t.executionId&&a)this.value.setValue(a,t);else{const s=m.Compose(this.scaling.getValue(t),this.rotationQuaternion.getValue(t),this.position.getValue(t));this.value.setValue(s,t),t._setExecutionVariable(this,"cachedMatrix",s),t._setExecutionVariable(this,"executionId",t.executionId)}}getClassName(){return"FlowGraphMatrixCompose"}}let M=!1;function C(){M||(M=!0,r("FlowGraphTransposeBlock",E),r("FlowGraphDeterminantBlock",b),r("FlowGraphInvertMatrixBlock",R),r("FlowGraphMatrixMultiplicationBlock",v),r("FlowGraphMatrixDecompose",Q),r("FlowGraphMatrixCompose",O))}C();export{b as FlowGraphDeterminantBlock,R as FlowGraphInvertMatrixBlock,O as FlowGraphMatrixComposeBlock,Q as FlowGraphMatrixDecomposeBlock,v as FlowGraphMatrixMultiplicationBlock,E as FlowGraphTransposeBlock,C as RegisterFlowGraphMatrixMathBlocks};
@@ -1 +1 @@
1
- import{j as p,g as r,H as a,x as n,P as u,I as c,i as o}from"./index-JRwY7p9T.js";class l extends p{constructor(e){super(e),this.config=e,this.type="MeshPick",this.asset=this.registerDataInput("asset",r,e?.targetMesh),this.pickedPoint=this.registerDataOutput("pickedPoint",a),this.pickOrigin=this.registerDataOutput("pickOrigin",a),this.pointerId=this.registerDataOutput("pointerId",n),this.pickedMesh=this.registerDataOutput("pickedMesh",r),this.pointerType=this.registerDataInput("pointerType",r,u.POINTERPICK)}_getReferencedMesh(e){return this.asset.getValue(e)}_executeEvent(e,s){if(this.pointerType.getValue(e)!==s.type)return!0;const i=this._getReferencedMesh(e),t=s.pickInfo?.pickedMesh;return(i?!!(t&&(t===i||c(t,i)||t.name===i.name)):!!t)&&t?(this.pointerId.setValue(s.event.pointerId,e),this.pickOrigin.setValue(s.pickInfo.ray?.origin,e),this.pickedPoint.setValue(s.pickInfo.pickedPoint,e),this.pickedMesh.setValue(t,e),this._execute(e),!this.config?.stopPropagation):(this.pointerId.resetToDefaultValue(e),this.pickOrigin.resetToDefaultValue(e),this.pickedPoint.resetToDefaultValue(e),this.pickedMesh.resetToDefaultValue(e),!0)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphMeshPickEventBlock"}}let h=!1;function k(){h||(h=!0,o("FlowGraphMeshPickEventBlock",l))}k();export{l as FlowGraphMeshPickEventBlock,k as RegisterFlowGraphMeshPickEventBlock};
1
+ import{j as p,g as r,H as a,x as n,P as u,I as c,i as o}from"./index-YcXsPtFI.js";class l extends p{constructor(e){super(e),this.config=e,this.type="MeshPick",this.asset=this.registerDataInput("asset",r,e?.targetMesh),this.pickedPoint=this.registerDataOutput("pickedPoint",a),this.pickOrigin=this.registerDataOutput("pickOrigin",a),this.pointerId=this.registerDataOutput("pointerId",n),this.pickedMesh=this.registerDataOutput("pickedMesh",r),this.pointerType=this.registerDataInput("pointerType",r,u.POINTERPICK)}_getReferencedMesh(e){return this.asset.getValue(e)}_executeEvent(e,s){if(this.pointerType.getValue(e)!==s.type)return!0;const i=this._getReferencedMesh(e),t=s.pickInfo?.pickedMesh;return(i?!!(t&&(t===i||c(t,i)||t.name===i.name)):!!t)&&t?(this.pointerId.setValue(s.event.pointerId,e),this.pickOrigin.setValue(s.pickInfo.ray?.origin,e),this.pickedPoint.setValue(s.pickInfo.pickedPoint,e),this.pickedMesh.setValue(t,e),this._execute(e),!this.config?.stopPropagation):(this.pointerId.resetToDefaultValue(e),this.pickOrigin.resetToDefaultValue(e),this.pickedPoint.resetToDefaultValue(e),this.pickedMesh.resetToDefaultValue(e),!0)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphMeshPickEventBlock"}}let h=!1;function k(){h||(h=!0,o("FlowGraphMeshPickEventBlock",l))}k();export{l as FlowGraphMeshPickEventBlock,k as RegisterFlowGraphMeshPickEventBlock};
@@ -1 +1 @@
1
- import{N as a,O as u,X as n,i as o}from"./index-JRwY7p9T.js";class r extends a{constructor(t){super(t),this.config=t,this.outputSignals=[],this.reset=this._registerSignalInput("reset"),this.lastIndex=this.registerDataOutput("lastIndex",u,new n(-1)),this.setNumberOfOutputSignals(t?.outputSignalCount)}_getNextIndex(t){if(t.includes(!1)||this.config.isLoop&&t.fill(!1),this.config.isRandom){const e=t.map((s,i)=>s?-1:i).filter(s=>s!==-1);return e.length?e[Math.floor(Math.random()*e.length)]:-1}else return t.indexOf(!1)}setNumberOfOutputSignals(t=1){for(;this.outputSignals.length>t;){const e=this.outputSignals.pop();e&&(e.disconnectFromAll(),this._unregisterSignalOutput(e.name))}for(;this.outputSignals.length<t;)this.outputSignals.push(this._registerSignalOutput(`out_${this.outputSignals.length}`))}_execute(t,e){if(t._hasExecutionVariable(this,"indexesUsed")||t._setExecutionVariable(this,"indexesUsed",this.outputSignals.map(()=>!1)),e===this.reset){t._deleteExecutionVariable(this,"indexesUsed"),this.lastIndex.setValue(new n(-1),t);return}const s=t._getExecutionVariable(this,"indexesUsed",[]),i=this._getNextIndex(s);i>-1&&(this.lastIndex.setValue(new n(i),t),s[i]=!0,t._setExecutionVariable(this,"indexesUsed",s),this.outputSignals[i]._activateSignal(t))}getClassName(){return"FlowGraphMultiGateBlock"}serialize(t){super.serialize(t),t.config.outputSignalCount=this.config.outputSignalCount,t.config.isRandom=this.config.isRandom,t.config.loop=this.config.isLoop,t.config.startIndex=this.config.startIndex}}let l=!1;function h(){l||(l=!0,o("FlowGraphMultiGateBlock",r))}h();export{r as FlowGraphMultiGateBlock,h as RegisterFlowGraphMultiGateBlock};
1
+ import{N as a,O as u,X as n,i as o}from"./index-YcXsPtFI.js";class r extends a{constructor(t){super(t),this.config=t,this.outputSignals=[],this.reset=this._registerSignalInput("reset"),this.lastIndex=this.registerDataOutput("lastIndex",u,new n(-1)),this.setNumberOfOutputSignals(t?.outputSignalCount)}_getNextIndex(t){if(t.includes(!1)||this.config.isLoop&&t.fill(!1),this.config.isRandom){const e=t.map((s,i)=>s?-1:i).filter(s=>s!==-1);return e.length?e[Math.floor(Math.random()*e.length)]:-1}else return t.indexOf(!1)}setNumberOfOutputSignals(t=1){for(;this.outputSignals.length>t;){const e=this.outputSignals.pop();e&&(e.disconnectFromAll(),this._unregisterSignalOutput(e.name))}for(;this.outputSignals.length<t;)this.outputSignals.push(this._registerSignalOutput(`out_${this.outputSignals.length}`))}_execute(t,e){if(t._hasExecutionVariable(this,"indexesUsed")||t._setExecutionVariable(this,"indexesUsed",this.outputSignals.map(()=>!1)),e===this.reset){t._deleteExecutionVariable(this,"indexesUsed"),this.lastIndex.setValue(new n(-1),t);return}const s=t._getExecutionVariable(this,"indexesUsed",[]),i=this._getNextIndex(s);i>-1&&(this.lastIndex.setValue(new n(i),t),s[i]=!0,t._setExecutionVariable(this,"indexesUsed",s),this.outputSignals[i]._activateSignal(t))}getClassName(){return"FlowGraphMultiGateBlock"}serialize(t){super.serialize(t),t.config.outputSignalCount=this.config.outputSignalCount,t.config.isRandom=this.config.isRandom,t.config.loop=this.config.isLoop,t.config.startIndex=this.config.startIndex}}let l=!1;function h(){l||(l=!0,o("FlowGraphMultiGateBlock",r))}h();export{r as FlowGraphMultiGateBlock,h as RegisterFlowGraphMultiGateBlock};
@@ -1 +1 @@
1
- import{y as t,g as i,i as o}from"./index-JRwY7p9T.js";class s extends t{constructor(a){super(a),this.animationToPause=this.registerDataInput("animationToPause",i)}_execute(a){this.animationToPause.getValue(a).pause(),this.out._activateSignal(a)}getClassName(){return"FlowGraphPauseAnimationBlock"}}let e=!1;function n(){e||(e=!0,o("FlowGraphPauseAnimationBlock",s))}n();export{s as FlowGraphPauseAnimationBlock,n as RegisterFlowGraphPauseAnimationBlock};
1
+ import{y as t,g as i,i as o}from"./index-YcXsPtFI.js";class s extends t{constructor(a){super(a),this.animationToPause=this.registerDataInput("animationToPause",i)}_execute(a){this.animationToPause.getValue(a).pause(),this.out._activateSignal(a)}getClassName(){return"FlowGraphPauseAnimationBlock"}}let e=!1;function n(){e||(e=!0,o("FlowGraphPauseAnimationBlock",s))}n();export{s as FlowGraphPauseAnimationBlock,n as RegisterFlowGraphPauseAnimationBlock};
@@ -1 +1 @@
1
- import{y as a,g as o,i as r}from"./index-JRwY7p9T.js";class u extends a{constructor(e){super(e),this.sound=this.registerDataInput("sound",o)}_execute(e,n){const s=this.sound.getValue(e);if(!s){this._reportError(e,"No sound provided"),this.out._activateSignal(e);return}s.state===5?s.resume():(s.state===2||s.state===3)&&s.pause(),this.out._activateSignal(e)}getClassName(){return"FlowGraphPauseSoundBlock"}}let t=!1;function i(){t||(t=!0,r("FlowGraphPauseSoundBlock",u))}i();export{u as FlowGraphPauseSoundBlock,i as RegisterFlowGraphPauseSoundBlock};
1
+ import{y as a,g as o,i as r}from"./index-YcXsPtFI.js";class u extends a{constructor(e){super(e),this.sound=this.registerDataInput("sound",o)}_execute(e,n){const s=this.sound.getValue(e);if(!s){this._reportError(e,"No sound provided"),this.out._activateSignal(e);return}s.state===5?s.resume():(s.state===2||s.state===3)&&s.pause(),this.out._activateSignal(e)}getClassName(){return"FlowGraphPauseSoundBlock"}}let t=!1;function i(){t||(t=!0,r("FlowGraphPauseSoundBlock",u))}i();export{u as FlowGraphPauseSoundBlock,i as RegisterFlowGraphPauseSoundBlock};
@@ -1 +1 @@
1
- import{j as n,g as l,H as o,x as r,i as h}from"./index-JRwY7p9T.js";class u extends n{constructor(s){super(s),this.config=s,this.body=this.registerDataInput("body",l),this.otherBody=this.registerDataOutput("otherBody",l),this.point=this.registerDataOutput("point",o),this.normal=this.registerDataOutput("normal",o),this.impulse=this.registerDataOutput("impulse",r),this.distance=this.registerDataOutput("distance",r)}_preparePendingTasks(s){const i=this.body.getValue(s);if(!i){this._reportError(s,"No physics body provided for collision event");return}i.setCollisionCallbackEnabled(!0);const e=i.getCollisionObservable().add(t=>{this._onCollision(s,t)});s._setExecutionVariable(this,"_collisionObserver",e),s._setExecutionVariable(this,"_subscribedBody",i)}_onCollision(s,i){const e=this.body.getValue(s),t=i.collider===e?i.collidedAgainst:i.collider;this.otherBody.setValue(t,s),i.point&&this.point.setValue(i.point,s),i.normal&&this.normal.setValue(i.normal,s),this.impulse.setValue(i.impulse,s),this.distance.setValue(i.distance,s),this._execute(s)}_executeEvent(s,i){return!0}_cancelPendingTasks(s){const i=s._getExecutionVariable(this,"_collisionObserver",null),e=s._getExecutionVariable(this,"_subscribedBody",null);if(i&&e){const t=e.getCollisionObservable();t.remove(i),t.hasObservers()||e.setCollisionCallbackEnabled(!1)}s._setExecutionVariable(this,"_collisionObserver",null),s._setExecutionVariable(this,"_subscribedBody",null)}getClassName(){return"FlowGraphPhysicsCollisionEventBlock"}}let a=!1;function c(){a||(a=!0,h("FlowGraphPhysicsCollisionEventBlock",u))}c();export{u as FlowGraphPhysicsCollisionEventBlock,c as RegisterFlowGraphPhysicsCollisionEventBlock};
1
+ import{j as n,g as l,H as o,x as r,i as h}from"./index-YcXsPtFI.js";class u extends n{constructor(s){super(s),this.config=s,this.body=this.registerDataInput("body",l),this.otherBody=this.registerDataOutput("otherBody",l),this.point=this.registerDataOutput("point",o),this.normal=this.registerDataOutput("normal",o),this.impulse=this.registerDataOutput("impulse",r),this.distance=this.registerDataOutput("distance",r)}_preparePendingTasks(s){const i=this.body.getValue(s);if(!i){this._reportError(s,"No physics body provided for collision event");return}i.setCollisionCallbackEnabled(!0);const e=i.getCollisionObservable().add(t=>{this._onCollision(s,t)});s._setExecutionVariable(this,"_collisionObserver",e),s._setExecutionVariable(this,"_subscribedBody",i)}_onCollision(s,i){const e=this.body.getValue(s),t=i.collider===e?i.collidedAgainst:i.collider;this.otherBody.setValue(t,s),i.point&&this.point.setValue(i.point,s),i.normal&&this.normal.setValue(i.normal,s),this.impulse.setValue(i.impulse,s),this.distance.setValue(i.distance,s),this._execute(s)}_executeEvent(s,i){return!0}_cancelPendingTasks(s){const i=s._getExecutionVariable(this,"_collisionObserver",null),e=s._getExecutionVariable(this,"_subscribedBody",null);if(i&&e){const t=e.getCollisionObservable();t.remove(i),t.hasObservers()||e.setCollisionCallbackEnabled(!1)}s._setExecutionVariable(this,"_collisionObserver",null),s._setExecutionVariable(this,"_subscribedBody",null)}getClassName(){return"FlowGraphPhysicsCollisionEventBlock"}}let a=!1;function c(){a||(a=!0,h("FlowGraphPhysicsCollisionEventBlock",u))}c();export{u as FlowGraphPhysicsCollisionEventBlock,c as RegisterFlowGraphPhysicsCollisionEventBlock};
@@ -1 +1 @@
1
- import{w as _,x as u,h as b,g as l,i as y}from"./index-JRwY7p9T.js";import{AnimationGroup as V}from"./animationGroup-CjhCwiIi.js";class R extends _{constructor(i){super(i,["animationLoop","animationEnd","animationGroupLoop"]),this.config=i,this.speed=this.registerDataInput("speed",u),this.loop=this.registerDataInput("loop",b),this.from=this.registerDataInput("from",u,0),this.to=this.registerDataInput("to",u),this.currentFrame=this.registerDataOutput("currentFrame",u),this.currentTime=this.registerDataOutput("currentTime",u),this.currentAnimationGroup=this.registerDataOutput("currentAnimationGroup",l),this.animationGroup=this.registerDataInput("animationGroup",l,i?.animationGroup),this.animation=this.registerDataInput("animation",l),this.object=this.registerDataInput("object",l)}_preparePendingTasks(i){const t=this.animationGroup.getValue(i),r=this.animation.getValue(i);if(!t&&!r)return this._reportError(i,"No animation or animation group provided");{const a=this.currentAnimationGroup.getValue(i);a&&a!==t&&a.dispose();let n=t;if(r&&!n){const o=this.object.getValue(i);if(!o)return this._reportError(i,"No target object provided");const h=Array.isArray(r)?r:[r],A=h[0].name;n=new V("flowGraphAnimationGroup-"+A+"-"+o.name,i.configuration.scene);let g=!1;const f=i._getGlobalContextVariable("interpolationAnimations",[]);for(const c of h)n.addTargetedAnimation(c,o),f.indexOf(c.uniqueId)!==-1&&(g=!0);g&&this._checkInterpolationDuplications(i,h,o)}const s=this.speed.getValue(i)||1,e=this.from.getValue(i)??0,p=this.to.getValue(i)||n.to,G=!isFinite(p)||this.loop.getValue(i);this.currentAnimationGroup.setValue(n,i);const m=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);m.indexOf(n.uniqueId)!==-1&&n.stop();try{n.start(G,s,e,p),n.onAnimationGroupEndObservable.add(()=>this._onAnimationGroupEnd(i)),n.onAnimationEndObservable.add(()=>this._eventsSignalOutputs.animationEnd._activateSignal(i)),n.onAnimationLoopObservable.add(()=>this._eventsSignalOutputs.animationLoop._activateSignal(i)),n.onAnimationGroupLoopObservable.add(()=>this._eventsSignalOutputs.animationGroupLoop._activateSignal(i)),m.push(n.uniqueId),i._setGlobalContextVariable("currentlyRunningAnimationGroups",m)}catch(o){this._reportError(i,o)}}}_reportError(i,t){super._reportError(i,t),this.currentFrame.setValue(-1,i),this.currentTime.setValue(-1,i)}_executeOnTick(i){const t=this.currentAnimationGroup.getValue(i);t&&(this.currentFrame.setValue(t.getCurrentFrame(),i),this.currentTime.setValue(t.animatables[0]?.elapsedTime??0,i))}_execute(i){this._startPendingTasks(i)}_onAnimationGroupEnd(i){this._removeFromCurrentlyRunning(i,this.currentAnimationGroup.getValue(i)),this._resetAfterCanceled(i),this.done._activateSignal(i)}_checkInterpolationDuplications(i,t,r){const a=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);for(const n of a){const s=i.assetsContext.animationGroups.find(e=>e.uniqueId===n);if(s)for(const e of s.targetedAnimations)for(const p of t)e.animation.targetProperty===p.targetProperty&&e.target===r&&this._stopAnimationGroup(i,s)}}_stopAnimationGroup(i,t){t.stop(!0),t.name.startsWith("flowGraphAnimationGroup-")&&t.dispose(),this._removeFromCurrentlyRunning(i,t)}_removeFromCurrentlyRunning(i,t){const r=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]),a=r.indexOf(t.uniqueId);a!==-1&&(r.splice(a,1),i._setGlobalContextVariable("currentlyRunningAnimationGroups",r))}_cancelPendingTasks(i){const t=this.currentAnimationGroup.getValue(i);t&&this._stopAnimationGroup(i,t)}getClassName(){return"FlowGraphPlayAnimationBlock"}}let d=!1;function v(){d||(d=!0,y("FlowGraphPlayAnimationBlock",R))}v();export{R as FlowGraphPlayAnimationBlock,v as RegisterFlowGraphPlayAnimationBlock};
1
+ import{w as _,x as u,h as b,g as l,i as y}from"./index-YcXsPtFI.js";import{AnimationGroup as V}from"./animationGroup-DsIEQ73q.js";class R extends _{constructor(i){super(i,["animationLoop","animationEnd","animationGroupLoop"]),this.config=i,this.speed=this.registerDataInput("speed",u),this.loop=this.registerDataInput("loop",b),this.from=this.registerDataInput("from",u,0),this.to=this.registerDataInput("to",u),this.currentFrame=this.registerDataOutput("currentFrame",u),this.currentTime=this.registerDataOutput("currentTime",u),this.currentAnimationGroup=this.registerDataOutput("currentAnimationGroup",l),this.animationGroup=this.registerDataInput("animationGroup",l,i?.animationGroup),this.animation=this.registerDataInput("animation",l),this.object=this.registerDataInput("object",l)}_preparePendingTasks(i){const t=this.animationGroup.getValue(i),r=this.animation.getValue(i);if(!t&&!r)return this._reportError(i,"No animation or animation group provided");{const a=this.currentAnimationGroup.getValue(i);a&&a!==t&&a.dispose();let n=t;if(r&&!n){const o=this.object.getValue(i);if(!o)return this._reportError(i,"No target object provided");const h=Array.isArray(r)?r:[r],A=h[0].name;n=new V("flowGraphAnimationGroup-"+A+"-"+o.name,i.configuration.scene);let g=!1;const f=i._getGlobalContextVariable("interpolationAnimations",[]);for(const c of h)n.addTargetedAnimation(c,o),f.indexOf(c.uniqueId)!==-1&&(g=!0);g&&this._checkInterpolationDuplications(i,h,o)}const s=this.speed.getValue(i)||1,e=this.from.getValue(i)??0,p=this.to.getValue(i)||n.to,G=!isFinite(p)||this.loop.getValue(i);this.currentAnimationGroup.setValue(n,i);const m=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);m.indexOf(n.uniqueId)!==-1&&n.stop();try{n.start(G,s,e,p),n.onAnimationGroupEndObservable.add(()=>this._onAnimationGroupEnd(i)),n.onAnimationEndObservable.add(()=>this._eventsSignalOutputs.animationEnd._activateSignal(i)),n.onAnimationLoopObservable.add(()=>this._eventsSignalOutputs.animationLoop._activateSignal(i)),n.onAnimationGroupLoopObservable.add(()=>this._eventsSignalOutputs.animationGroupLoop._activateSignal(i)),m.push(n.uniqueId),i._setGlobalContextVariable("currentlyRunningAnimationGroups",m)}catch(o){this._reportError(i,o)}}}_reportError(i,t){super._reportError(i,t),this.currentFrame.setValue(-1,i),this.currentTime.setValue(-1,i)}_executeOnTick(i){const t=this.currentAnimationGroup.getValue(i);t&&(this.currentFrame.setValue(t.getCurrentFrame(),i),this.currentTime.setValue(t.animatables[0]?.elapsedTime??0,i))}_execute(i){this._startPendingTasks(i)}_onAnimationGroupEnd(i){this._removeFromCurrentlyRunning(i,this.currentAnimationGroup.getValue(i)),this._resetAfterCanceled(i),this.done._activateSignal(i)}_checkInterpolationDuplications(i,t,r){const a=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]);for(const n of a){const s=i.assetsContext.animationGroups.find(e=>e.uniqueId===n);if(s)for(const e of s.targetedAnimations)for(const p of t)e.animation.targetProperty===p.targetProperty&&e.target===r&&this._stopAnimationGroup(i,s)}}_stopAnimationGroup(i,t){t.stop(!0),t.name.startsWith("flowGraphAnimationGroup-")&&t.dispose(),this._removeFromCurrentlyRunning(i,t)}_removeFromCurrentlyRunning(i,t){const r=i._getGlobalContextVariable("currentlyRunningAnimationGroups",[]),a=r.indexOf(t.uniqueId);a!==-1&&(r.splice(a,1),i._setGlobalContextVariable("currentlyRunningAnimationGroups",r))}_cancelPendingTasks(i){const t=this.currentAnimationGroup.getValue(i);t&&this._stopAnimationGroup(i,t)}getClassName(){return"FlowGraphPlayAnimationBlock"}}let d=!1;function v(){d||(d=!0,y("FlowGraphPlayAnimationBlock",R))}v();export{R as FlowGraphPlayAnimationBlock,v as RegisterFlowGraphPlayAnimationBlock};
@@ -1 +1 @@
1
- import{y as r,g as u,x as e,h as n,i as h}from"./index-JRwY7p9T.js";class p extends r{constructor(t){super(t),this.sound=this.registerDataInput("sound",u),this.volume=this.registerDataInput("volume",e,1),this.startOffset=this.registerDataInput("startOffset",e,0),this.loop=this.registerDataInput("loop",n,!1)}_execute(t,c){const s=this.sound.getValue(t);if(!s){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}const o=this.volume.getValue(t),l=this.startOffset.getValue(t),i=this.loop.getValue(t);s.play({volume:o,startOffset:l,loop:i}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let a=!1;function g(){a||(a=!0,h("FlowGraphPlaySoundBlock",p))}g();export{p as FlowGraphPlaySoundBlock,g as RegisterFlowGraphPlaySoundBlock};
1
+ import{y as r,g as u,x as e,h as n,i as h}from"./index-YcXsPtFI.js";class p extends r{constructor(t){super(t),this.sound=this.registerDataInput("sound",u),this.volume=this.registerDataInput("volume",e,1),this.startOffset=this.registerDataInput("startOffset",e,0),this.loop=this.registerDataInput("loop",n,!1)}_execute(t,c){const s=this.sound.getValue(t);if(!s){this._reportError(t,"No sound provided"),this.out._activateSignal(t);return}const o=this.volume.getValue(t),l=this.startOffset.getValue(t),i=this.loop.getValue(t);s.play({volume:o,startOffset:l,loop:i}),this.out._activateSignal(t)}getClassName(){return"FlowGraphPlaySoundBlock"}}let a=!1;function g(){a||(a=!0,h("FlowGraphPlaySoundBlock",p))}g();export{p as FlowGraphPlaySoundBlock,g as RegisterFlowGraphPlaySoundBlock};
@@ -1 +1 @@
1
- import{j as a,g as r,x as o,I as h,i as p}from"./index-JRwY7p9T.js";class c extends a{constructor(e){super(e),this.type="PointerDown",this.targetMesh=this.registerDataInput("targetMesh",r,e?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",o),this.pickedMesh=this.registerDataOutput("pickedMesh",r),this.pickedPoint=this.registerDataOutput("pickedPoint",r)}_executeEvent(e,s){const i=this.targetMesh.getValue(e),t=s.pickInfo?.pickedMesh;return i&&!(t===i||t&&h(t,i))?!0:(this.pointerId.setValue(s.event.pointerId,e),this.pickedMesh.setValue(t??null,e),this.pickedPoint.setValue(s.pickInfo?.pickedPoint??null,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerDownEventBlock"}}let n=!1;function u(){n||(n=!0,p("FlowGraphPointerDownEventBlock",c))}u();export{c as FlowGraphPointerDownEventBlock,u as RegisterFlowGraphPointerDownEventBlock};
1
+ import{j as a,g as r,x as o,I as h,i as p}from"./index-YcXsPtFI.js";class c extends a{constructor(e){super(e),this.type="PointerDown",this.targetMesh=this.registerDataInput("targetMesh",r,e?.targetMesh),this.pointerId=this.registerDataOutput("pointerId",o),this.pickedMesh=this.registerDataOutput("pickedMesh",r),this.pickedPoint=this.registerDataOutput("pickedPoint",r)}_executeEvent(e,s){const i=this.targetMesh.getValue(e),t=s.pickInfo?.pickedMesh;return i&&!(t===i||t&&h(t,i))?!0:(this.pointerId.setValue(s.event.pointerId,e),this.pickedMesh.setValue(t??null,e),this.pickedPoint.setValue(s.pickInfo?.pickedPoint??null,e),this._execute(e),!this.config?.stopPropagation)}_preparePendingTasks(e){}_cancelPendingTasks(e){}getClassName(){return"FlowGraphPointerDownEventBlock"}}let n=!1;function u(){n||(n=!0,p("FlowGraphPointerDownEventBlock",c))}u();export{c as FlowGraphPointerDownEventBlock,u as RegisterFlowGraphPointerDownEventBlock};