@realsee/five 6.0.0-alpha.61 → 6.0.0-alpha.63

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 (183) hide show
  1. package/TERMS.txt +0 -2
  2. package/docs/classes/five.AnimationFrameLoop.html +1 -1
  3. package/docs/classes/five.BoxBoundingVolume.html +1 -1
  4. package/docs/classes/five.Camera.html +1 -1
  5. package/docs/classes/five.CullingVolume.html +1 -1
  6. package/docs/classes/five.Fetcher.html +1 -1
  7. package/docs/classes/five.Five.html +1 -1
  8. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  9. package/docs/classes/five.IntersectMesh.html +1 -1
  10. package/docs/classes/five.Model.html +1 -1
  11. package/docs/classes/five.NetworkAbortError.html +1 -1
  12. package/docs/classes/five.NetworkFirbiddenError.html +1 -1
  13. package/docs/classes/five.NetworkResponseError.html +1 -1
  14. package/docs/classes/five.NetworkSubscribe.html +1 -1
  15. package/docs/classes/five.NetworkTimeoutError.html +1 -1
  16. package/docs/classes/five.PBMContainer.html +1 -1
  17. package/docs/classes/five.PBMGroup.html +1 -1
  18. package/docs/classes/five.PBMMesh.html +1 -1
  19. package/docs/classes/five.PBMMeshMaterial.html +1 -1
  20. package/docs/classes/five.PanoCircleMesh.html +1 -1
  21. package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
  22. package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
  23. package/docs/classes/five.RegionBoundingVolume.html +1 -1
  24. package/docs/classes/five.RequestScheduler.html +1 -1
  25. package/docs/classes/five.Scene.html +1 -1
  26. package/docs/classes/five.SphereBoundingVolume.html +1 -1
  27. package/docs/classes/five.Subscribe.html +1 -1
  28. package/docs/classes/five.TextureLoader.html +1 -1
  29. package/docs/classes/five.Tile.html +1 -1
  30. package/docs/classes/five.Tile3DModel.html +1 -1
  31. package/docs/classes/five.TileCubeTextureTarget.html +1 -1
  32. package/docs/classes/five.TileNode.html +1 -1
  33. package/docs/classes/five.Tileset.html +1 -1
  34. package/docs/classes/five.TilesetCache.html +1 -1
  35. package/docs/classes/five.TilesetTraverser.html +1 -1
  36. package/docs/classes/five.Work.html +1 -1
  37. package/docs/classes/five.XRButton.html +1 -1
  38. package/docs/classes/gltf_loader.DDSLoader.html +1 -1
  39. package/docs/classes/gltf_loader.DRACOLoader.html +1 -1
  40. package/docs/classes/gltf_loader.GLTFLoader.html +1 -1
  41. package/docs/classes/gltf_loader.GLTFObject.html +1 -1
  42. package/docs/classes/gltf_loader.GLTFParser.html +1 -1
  43. package/docs/classes/gltf_loader.THREEGLTFLoader.html +1 -1
  44. package/docs/classes/line.Line.html +1 -1
  45. package/docs/classes/line.LineGeometry.html +1 -1
  46. package/docs/classes/line.LineMaterial.html +1 -1
  47. package/docs/classes/line.LineSegmentsGeometry.html +1 -1
  48. package/docs/classes/line.THREE_Line2.html +1 -1
  49. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  50. package/docs/classes/react.Store.html +1 -1
  51. package/docs/classes/sticker.Sticker.html +1 -1
  52. package/docs/classes/vfx.Airflow.html +1 -1
  53. package/docs/classes/vfx.Flame.html +1 -1
  54. package/docs/classes/vfx.Particle.html +1 -1
  55. package/docs/classes/vfx.SpotLight.html +1 -1
  56. package/docs/enums/five.VolumePlaneIntersect.html +1 -1
  57. package/docs/index.html +1 -1
  58. package/docs/interfaces/five.AddableObject.html +1 -1
  59. package/docs/interfaces/five.AjaxOptions.html +1 -1
  60. package/docs/interfaces/five.AnimationFrame.html +1 -1
  61. package/docs/interfaces/five.BaseEvent.html +1 -1
  62. package/docs/interfaces/five.BoundingVolume.html +1 -1
  63. package/docs/interfaces/five.CameraPose.html +1 -1
  64. package/docs/interfaces/five.ClipperParameter.html +1 -1
  65. package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +1 -1
  66. package/docs/interfaces/five.EventCallback.html +1 -1
  67. package/docs/interfaces/five.FiveInitArgs.html +1 -1
  68. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +1 -1
  69. package/docs/interfaces/five.GestureEvent.html +1 -1
  70. package/docs/interfaces/five.ImageOptions.html +1 -1
  71. package/docs/interfaces/five.ImageURLMappings.html +1 -1
  72. package/docs/interfaces/five.ImageURLOptions.html +1 -1
  73. package/docs/interfaces/five.IntersectEvent.html +1 -1
  74. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  75. package/docs/interfaces/five.Intersection.html +1 -1
  76. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +1 -1
  77. package/docs/interfaces/five.ModeChangeEvent.html +1 -1
  78. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
  79. package/docs/interfaces/five.ModelEvent.html +1 -1
  80. package/docs/interfaces/five.ModelLodOptions.html +1 -1
  81. package/docs/interfaces/five.ModelsEvent.html +1 -1
  82. package/docs/interfaces/five.MotionKeyframe.html +1 -1
  83. package/docs/interfaces/five.MovePanoOptions.html +1 -1
  84. package/docs/interfaces/five.NetworkOptions.html +1 -1
  85. package/docs/interfaces/five.NetworkResourceEvent.html +1 -1
  86. package/docs/interfaces/five.ObjectEvent.html +1 -1
  87. package/docs/interfaces/five.PBMPanoPicture.html +1 -1
  88. package/docs/interfaces/five.PBMParameters.html +1 -1
  89. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +1 -1
  90. package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
  91. package/docs/interfaces/five.PanoCircleMeshOptions.html +1 -1
  92. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +1 -1
  93. package/docs/interfaces/five.PanoEvent.html +1 -1
  94. package/docs/interfaces/five.PanoTextureEvent.html +1 -1
  95. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
  96. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
  97. package/docs/interfaces/five.Pose.html +1 -1
  98. package/docs/interfaces/five.RenderEvent.html +1 -1
  99. package/docs/interfaces/five.Scissor.html +1 -1
  100. package/docs/interfaces/five.State.html +1 -1
  101. package/docs/interfaces/five.StateEvent.html +1 -1
  102. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
  103. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
  104. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
  105. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
  106. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
  107. package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -1
  108. package/docs/interfaces/five.TextureOptions.html +1 -1
  109. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +1 -1
  110. package/docs/interfaces/five.TileCubeNode.html +1 -1
  111. package/docs/interfaces/five.TileCubeTree.html +1 -1
  112. package/docs/interfaces/five.TileHeader.html +1 -1
  113. package/docs/interfaces/five.TilesetHeader.html +1 -1
  114. package/docs/interfaces/five.TilesetOptions.html +1 -1
  115. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +1 -1
  116. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
  117. package/docs/interfaces/five.WebXRAxesParams.html +1 -1
  118. package/docs/interfaces/five.WebXRControllerParams.html +1 -1
  119. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  120. package/docs/interfaces/five.WorkImage.html +1 -1
  121. package/docs/interfaces/five.WorkInitial.html +1 -1
  122. package/docs/interfaces/five.WorkModel.html +1 -1
  123. package/docs/interfaces/five.WorkObserver.html +1 -1
  124. package/docs/interfaces/five.WorkOptions.html +1 -1
  125. package/docs/interfaces/five.WorkResolvedObserver.html +1 -1
  126. package/docs/interfaces/five.WorkTile.html +1 -1
  127. package/docs/interfaces/five.WorkVideo.html +1 -1
  128. package/docs/interfaces/five.WorksEvent.html +1 -1
  129. package/docs/interfaces/five.XRControllerEvent.html +1 -1
  130. package/docs/interfaces/five.XRGestureEvent.html +1 -1
  131. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
  132. package/docs/interfaces/five.XRSessionEvent.html +1 -1
  133. package/docs/interfaces/gltf_loader.DDS.html +1 -1
  134. package/docs/interfaces/gltf_loader.GLTF.html +1 -1
  135. package/docs/interfaces/gltf_loader.GLTFReference.html +1 -1
  136. package/docs/interfaces/gltf_loader.THREEGLTF.html +1 -1
  137. package/docs/interfaces/react.FiveActionReactCallbacks.html +1 -1
  138. package/docs/interfaces/react.FiveInjectionTypes.html +1 -1
  139. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -1
  140. package/docs/interfaces/sticker.IntersectionLike.html +1 -1
  141. package/docs/interfaces/vfx.ParticleArgs.html +1 -1
  142. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +1 -1
  143. package/docs/interfaces/vue.FiveActionVueCallbacks.html +1 -1
  144. package/docs/modules/five.SubscribeMixinType.html +1 -1
  145. package/docs/modules/five.html +1 -1
  146. package/docs/modules/gltf_loader.html +1 -1
  147. package/docs/modules/line.html +1 -1
  148. package/docs/modules/react.html +1 -1
  149. package/docs/modules/sticker.html +1 -1
  150. package/docs/modules/vfx.html +1 -1
  151. package/docs/modules/vue.html +1 -1
  152. package/docs/modules.html +1 -1
  153. package/five/index.js +1904 -218
  154. package/five/index.mjs +23421 -0
  155. package/gltf-loader/index.js +204 -203
  156. package/gltf-loader/index.mjs +1708 -0
  157. package/line/index.js +396 -202
  158. package/line/index.mjs +775 -0
  159. package/package.json +41 -5
  160. package/react/index.js +198 -203
  161. package/react/index.mjs +1044 -0
  162. package/scripts/five-plugin-init.js +1 -1
  163. package/scripts/five-quick-start-init.js +1 -1
  164. package/scripts/five-react-component-init.js +1 -1
  165. package/sticker/index.js +198 -203
  166. package/sticker/index.mjs +399 -0
  167. package/templates/plugin/devtools/webpack.example.js +1 -1
  168. package/templates/react-component/devtools/webpack.example.js +1 -1
  169. package/umd/five-gltf-loader.js +261 -1
  170. package/umd/five-line.js +454 -1
  171. package/umd/five-react.js +255 -1
  172. package/umd/five-sticker.js +255 -1
  173. package/umd/five-vfx.js +539 -1
  174. package/umd/five-vue.js +255 -1
  175. package/umd/five.js +2048 -2
  176. package/vfx/index.js +481 -202
  177. package/vfx/index.mjs +1032 -0
  178. package/vue/index.js +198 -203
  179. package/vue/index.mjs +573 -0
  180. package/umd/five-gltf-loader.js.LICENSE.txt +0 -14
  181. package/umd/five-line.js.LICENSE.txt +0 -14
  182. package/umd/five-react.js.LICENSE.txt +0 -14
  183. package/umd/five-sticker.js.LICENSE.txt +0 -14
package/vfx/index.js CHANGED
@@ -1,260 +1,539 @@
1
1
  /**
2
+ * @license
2
3
  * @realsee/five
3
- *
4
- * Generated: 2023-12-08
5
- * Version: 6.0.0-alpha.61
6
- *
4
+ * Generated: 12/12/2023
5
+ * Version: 6.0.0-alpha.63
7
6
  * Terms:
8
7
  * Realsee SDK License Agreement
9
- *
10
8
  * Update: July 28, 2021
11
- *
12
- * THIS LICENSE AGREEMENT BETWEEN YOU AND 【BEIKE REALSEE TECHNOLOGY (HK)
13
- * LIMITED】(“Realsee”) FORMS A LEGALLY BINDING CONTRACT BETWEEN YOU AND REALSEE IN
14
- * RELATION TO YOUR USE OF THE SDK. This License Agreement accompanies the Realsee
15
- * Software Development Kit(s) for the software and related explanatory materials
16
- * (the "SDK") and includes any upgrades, modified versions, updates, additions,
9
+ * THIS LICENSE AGREEMENT BETWEEN YOU AND 【BEIKE REALSEE TECHNOLOGY (HK)
10
+ * LIMITED】(“Realsee”) FORMS A LEGALLY BINDING CONTRACT BETWEEN YOU AND REALSEE IN
11
+ * RELATION TO YOUR USE OF THE SDK. This License Agreement accompanies the Realsee
12
+ * Software Development Kit(s) for the software and related explanatory materials
13
+ * (the "SDK") and includes any upgrades, modified versions, updates, additions,
17
14
  * and copies of the SDK licensed to You by Realsee.
18
- * BY DOWNLOADING, INSTALLING, OR OTHERWISE ACCESSING OR USING THE SDK, YOU AGREE
19
- * THAT YOU HAVE READ, UNDERSTOOD, AND AGREE TO BE BOUND BY THIS AGREEMENT. YOU ARE
20
- * AGREEING ON YOUR OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO
15
+ * BY DOWNLOADING, INSTALLING, OR OTHERWISE ACCESSING OR USING THE SDK, YOU AGREE
16
+ * THAT YOU HAVE READ, UNDERSTOOD, AND AGREE TO BE BOUND BY THIS AGREEMENT. YOU ARE
17
+ * AGREEING ON YOUR OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO
21
18
  * THE TERMS AND CONDITIONS STATED BELOW.
22
- * This Agreement applies to Your use of the SDK in the country in which You
23
- * legally install it (“Territory”) and is subject to the laws of such Territory
24
- * and further subject to Section 12 below. Different terms, conditions, and
19
+ * This Agreement applies to Your use of the SDK in the country in which You
20
+ * legally install it (“Territory”) and is subject to the laws of such Territory
21
+ * and further subject to Section 12 below. Different terms, conditions, and
25
22
  * limitations may apply to the use of the SDK in any additional countries.
26
23
  * 1. DEFINITIONS.
27
24
  * “Agreement” means this Realsee SDK License Agreement.
28
- * “Developer”, “You” and “Your” means the person(s) or entity acquiring or using
25
+ * “Developer”, “You” and “Your” means the person(s) or entity acquiring or using
29
26
  * the SDK or otherwise exercising rights under the terms of this Agreement.
30
- * “Documentation” means the technical or other specifications or documentation
27
+ * “Documentation” means the technical or other specifications or documentation
31
28
  * that Realsee may provide to You for use in connection with the SDK.
32
- * “Integrated Product” means any software, website, or on-line service developed
29
+ * “Integrated Product” means any software, website, or on-line service developed
33
30
  * by You based on or using the SDK (collectively, the “Integrated Product”).
34
- * “Intellectual Property” means any patents, patent rights, trademarks, service
35
- * marks, registered and unregistered designs, applications for any of the
36
- * foregoing, copyright, and any other similar protected rights in any country and
37
- * to the extent recognised by any relevant jurisdiction as intellectual property,
38
- * trade secrets, know-how and confidential information. Realsee reserves all
31
+ * “Intellectual Property” means any patents, patent rights, trademarks, service
32
+ * marks, registered and unregistered designs, applications for any of the
33
+ * foregoing, copyright, and any other similar protected rights in any country and
34
+ * to the extent recognised by any relevant jurisdiction as intellectual property,
35
+ * trade secrets, know-how and confidential information. Realsee reserves all
39
36
  * rights not expressly granted to You.
40
- * “Realsee” means [Beike Realsee Technology (HK) Limited, a company incorporated
37
+ * “Realsee” means [Beike Realsee Technology (HK) Limited, a company incorporated
41
38
  * and validly existing under the laws of Hong Kong].
42
- * “SDK” means the Realsee-proprietary Software Development Kits (SDK) provided
43
- * hereunder, includes all development tools (including any compiler and debugger),
44
- * application programming interfaces (“APIs”), libraries, binary utilities, header
45
- * files, Documentation, content, data, code samples, and other materials provided
46
- * to You in connection with this Agreement, whether delivered through a download,
47
- * or any other media or form, and is licensed, not sold, to You by Realsee for use
48
- * only under the terms of this Agreement. The terms of this Agreement will govern
49
- * any updates provided by Realsee that replace and/or supplement the original SDK
50
- * delivered to You, unless such update is accompanied by a separate license, in
39
+ * “SDK” means the Realsee-proprietary Software Development Kits (SDK) provided
40
+ * hereunder, includes all development tools (including any compiler and debugger),
41
+ * application programming interfaces (“APIs”), libraries, binary utilities, header
42
+ * files, Documentation, content, data, code samples, and other materials provided
43
+ * to You in connection with this Agreement, whether delivered through a download,
44
+ * or any other media or form, and is licensed, not sold, to You by Realsee for use
45
+ * only under the terms of this Agreement. The terms of this Agreement will govern
46
+ * any updates provided by Realsee that replace and/or supplement the original SDK
47
+ * delivered to You, unless such update is accompanied by a separate license, in
51
48
  * which case the terms of such license will govern.
52
49
  * 2. LICENSED USES AND RESTRICTIONS.
53
- * 2.1 Subject to the restrictions contained in this Section 2, Realsee grants to
54
- * You during the term, a limited, non-exclusive, revocable, non-sublicensable,
55
- * non-transferable license to install and use the SDK within the Territory only
50
+ * 2.1 Subject to the restrictions contained in this Section 2, Realsee grants to
51
+ * You during the term, a limited, non-exclusive, revocable, non-sublicensable,
52
+ * non-transferable license to install and use the SDK within the Territory only
56
53
  * for the purpose of internal development.
57
- * 2.2 Restrictions. You acknowledge and agree that, You shall not, and shall
58
- * ensure that Your affiliates, employees, agents, representatives, officers,
54
+ * 2.2 Restrictions. You acknowledge and agree that, You shall not, and shall
55
+ * ensure that Your affiliates, employees, agents, representatives, officers,
59
56
  * representatives, and subcontractors do not (directly or indirectly):
60
- * 2.2.1 decompile, reverse engineer, disassemble or attempt to derive the source
61
- * code of, those components of the SDK provided in object code form, or any part
57
+ * 2.2.1 decompile, reverse engineer, disassemble or attempt to derive the source
58
+ * code of, those components of the SDK provided in object code form, or any part
62
59
  * thereof;
63
- * 2.2.2 remove, alter, or obscure any copyright notice or other proprietary rights
60
+ * 2.2.2 remove, alter, or obscure any copyright notice or other proprietary rights
64
61
  * notice on any part of the SDK;
65
- * 2.2.3 sell, assign, pledge, rent, lease, lend, upload to or host on any website
66
- * or server for use by any third party except You, redistribute, or sublicense the
67
- * SDK (or any part thereof), or operate the SDK (or any part thereof) in the
68
- * capacity of a service bureau or other hosted services provider, in whole or in
62
+ * 2.2.3 sell, assign, pledge, rent, lease, lend, upload to or host on any website
63
+ * or server for use by any third party except You, redistribute, or sublicense the
64
+ * SDK (or any part thereof), or operate the SDK (or any part thereof) in the
65
+ * capacity of a service bureau or other hosted services provider, in whole or in
69
66
  * part, nor may You enable others to do so;
70
67
  * 2.2.4 or alter, modify, customize or improve the SDK, or any part thereof;
71
- * 2.2.5 use the SDK (or any part thereof) for any illegal purpose, in any manner
72
- * that is inconsistent with the terms of this Agreement, or to engage in any
68
+ * 2.2.5 use the SDK (or any part thereof) for any illegal purpose, in any manner
69
+ * that is inconsistent with the terms of this Agreement, or to engage in any
73
70
  * illegal activity;
74
- * 2.2.6 use the SDK (or any part thereof) in any manner that may damage the
71
+ * 2.2.6 use the SDK (or any part thereof) in any manner that may damage the
75
72
  * operation of Realsee’s products or services; or
76
- * 2.2.7 use the SDK or any information contained therein or otherwise provided by
77
- * Realsee for the purpose of developing, or having developed, any product
78
- * competitive with any Realsee product or service, as determined by Realsee in its
73
+ * 2.2.7 use the SDK or any information contained therein or otherwise provided by
74
+ * Realsee for the purpose of developing, or having developed, any product
75
+ * competitive with any Realsee product or service, as determined by Realsee in its
79
76
  * sole discretion;
80
77
  * 2.2.8 include any portion of the SDK in Your Developer products.
81
- * 2.3 Realsee has the right to impose reasonable conditions such as a reasonable
78
+ * 2.3 Realsee has the right to impose reasonable conditions such as a reasonable
82
79
  * fee for use of the SDK in Integrated Product in the future.
83
- * 2.4 You may make a limited number of copies of the SDK to be used by Your
84
- * employees or consultants as provided herein, and not for general business
85
- * purposes, and such employees or consultants shall be subject to the obligations
80
+ * 2.4 You may make a limited number of copies of the SDK to be used by Your
81
+ * employees or consultants as provided herein, and not for general business
82
+ * purposes, and such employees or consultants shall be subject to the obligations
86
83
  * and restrictions in this Agreement.
87
- * 2.5 All licenses not expressly granted in this Agreement are reserved and no
88
- * other licenses, immunity, or rights, express or implied, are granted by Realsee,
84
+ * 2.5 All licenses not expressly granted in this Agreement are reserved and no
85
+ * other licenses, immunity, or rights, express or implied, are granted by Realsee,
89
86
  * by implication, estoppel, or otherwise.
90
87
  * 3. CONFIDENTIALITY.
91
- * The SDK and all source code, Documentation, specifications, engineering details,
92
- * and related information pertaining to the SDK, whether in oral, written,
93
- * graphic, or electronic form, are and shall remain the confidential and
94
- * proprietary information of Realsee or its licensors (collectively, the
95
- * “Confidential Information”). You shall (i) disclose Confidential Information to
96
- * only those directors and employees (collectively, “Affiliates”) whose duties
97
- * justify their need to know such information and who have been clearly informed
98
- * of their obligation to maintain the confidential, proprietary, and/or trade
99
- * secret status of such Confidential Information; and (ii) use Confidential
100
- * Information solely in accordance with the license granted hereunder. In any
101
- * event, You and Your Affiliates shall treat Confidential Information as strictly
102
- * confidential and shall use the same care to prevent disclosure of such
103
- * information as You use with respect to Your own similar confidential and/or
104
- * proprietary information, which shall not be less than the care a reasonable
105
- * person would use under similar circumstances. All Confidential Information, and
106
- * any copies thereof, shall be returned promptly to Realsee upon request. You
107
- * shall ensure that Your Affiliates comply with the provisions of this Section 3,
108
- * and You shall be liable for any breach of this Section 3 resulting from the act
109
- * or omission of any of Your Affiliates. You shall not disclose Confidential
110
- * Information to any third party, including, without limitation, any of Your
88
+ * The SDK and all source code, Documentation, specifications, engineering details,
89
+ * and related information pertaining to the SDK, whether in oral, written,
90
+ * graphic, or electronic form, are and shall remain the confidential and
91
+ * proprietary information of Realsee or its licensors (collectively, the
92
+ * “Confidential Information”). You shall (i) disclose Confidential Information to
93
+ * only those directors and employees (collectively, “Affiliates”) whose duties
94
+ * justify their need to know such information and who have been clearly informed
95
+ * of their obligation to maintain the confidential, proprietary, and/or trade
96
+ * secret status of such Confidential Information; and (ii) use Confidential
97
+ * Information solely in accordance with the license granted hereunder. In any
98
+ * event, You and Your Affiliates shall treat Confidential Information as strictly
99
+ * confidential and shall use the same care to prevent disclosure of such
100
+ * information as You use with respect to Your own similar confidential and/or
101
+ * proprietary information, which shall not be less than the care a reasonable
102
+ * person would use under similar circumstances. All Confidential Information, and
103
+ * any copies thereof, shall be returned promptly to Realsee upon request. You
104
+ * shall ensure that Your Affiliates comply with the provisions of this Section 3,
105
+ * and You shall be liable for any breach of this Section 3 resulting from the act
106
+ * or omission of any of Your Affiliates. You shall not disclose Confidential
107
+ * Information to any third party, including, without limitation, any of Your
111
108
  * subcontractors.
112
109
  * 4. PROPRIETARY RIGHTS.
113
- * 4.1 As between You and Realsee, Realsee and/or its licensors retain ownership of
114
- * all right, title, and interest in, to, and under the SDK, including, without
115
- * limitation, all patents, copyrights, trade secrets, trademarks and other
116
- * intellectual property and other proprietary rights therein, and reserve all
110
+ * 4.1 As between You and Realsee, Realsee and/or its licensors retain ownership of
111
+ * all right, title, and interest in, to, and under the SDK, including, without
112
+ * limitation, all patents, copyrights, trade secrets, trademarks and other
113
+ * intellectual property and other proprietary rights therein, and reserve all
117
114
  * rights not expressly granted to You.
118
- * 4.2 The items contained in the SDK are the intellectual property of Realsee and
119
- * its licensors and are protected by PRC copyright and patent law, international
120
- * treaty provisions and applicable laws of the country in which it is being used.
121
- * You agree to protect all copyright and other ownership interests of Realsee
122
- * and/or its licensors in all items in the SDK supplied under this License
123
- * Agreement. You agree that all copies of the items in the SDK, reproduced for any
124
- * reason by You, contain the same copyright notices, and other proprietary notices
125
- * as appropriate, as appear on or in the original items delivered by Realsee in
126
- * the SDK. Realsee and/or its licensors retain title and ownership of the items in
127
- * the SDK, the media on which it is loaded, and all subsequent copies, regardless
128
- * of the form or media in or on which the original and other copies may exist.
129
- * Except as stated above, this Agreement does not grant You any rights to patents,
130
- * copyrights, trade secrets, trademarks or any other rights in respect to the
115
+ * 4.2 The items contained in the SDK are the intellectual property of Realsee and
116
+ * its licensors and are protected by PRC copyright and patent law, international
117
+ * treaty provisions and applicable laws of the country in which it is being used.
118
+ * You agree to protect all copyright and other ownership interests of Realsee
119
+ * and/or its licensors in all items in the SDK supplied under this License
120
+ * Agreement. You agree that all copies of the items in the SDK, reproduced for any
121
+ * reason by You, contain the same copyright notices, and other proprietary notices
122
+ * as appropriate, as appear on or in the original items delivered by Realsee in
123
+ * the SDK. Realsee and/or its licensors retain title and ownership of the items in
124
+ * the SDK, the media on which it is loaded, and all subsequent copies, regardless
125
+ * of the form or media in or on which the original and other copies may exist.
126
+ * Except as stated above, this Agreement does not grant You any rights to patents,
127
+ * copyrights, trade secrets, trademarks or any other rights in respect to the
131
128
  * items in the SDK.
132
129
  * 5. TERM AND TERMINATION.
133
- * 5.1 This Agreement is effective until terminated. Realsee has the right to
134
- * terminate this Agreement immediately, without judicial intervention, if You fail
135
- * to comply with any term herein. Upon any such termination You must remove all
136
- * full and partial copies of the items in the SDK from Your computer and
130
+ * 5.1 This Agreement is effective until terminated. Realsee has the right to
131
+ * terminate this Agreement immediately, without judicial intervention, if You fail
132
+ * to comply with any term herein. Upon any such termination You must remove all
133
+ * full and partial copies of the items in the SDK from Your computer and
137
134
  * discontinue the use of the items in the SDK.
138
- * 5.2 Realsee may at any time, terminate the Agreement with You if: (A) You have
139
- * breached any provision of the Agreement; or (B) Realsee is required to do so by
140
- * law; or (C) Realsee decides to no longer provide the SDK or certain parts of the
141
- * SDK to users in the country in which You are resident or from which You use the
142
- * service, or the provision of the SDK or certain SDK services to You by Realsee
135
+ * 5.2 Realsee may at any time, terminate the Agreement with You if: (A) You have
136
+ * breached any provision of the Agreement; or (B) Realsee is required to do so by
137
+ * law; or (C) Realsee decides to no longer provide the SDK or certain parts of the
138
+ * SDK to users in the country in which You are resident or from which You use the
139
+ * service, or the provision of the SDK or certain SDK services to You by Realsee
143
140
  * is, in Realsee's sole discretion, no longer legally or commercially viable.
144
- * 5.3 When the Agreement comes to an end, all of the legal rights, obligations and
145
- * liabilities that You and Realsee have benefited from, been subject to (or which
146
- * have accrued over time whilst the Agreement has been in force) or which are
147
- * expressed to continue indefinitely, shall be unaffected by this cessation, and
148
- * the provisions of Section 3, 4, 6, 7 and 8 shall continue to apply to such
141
+ * 5.3 When the Agreement comes to an end, all of the legal rights, obligations and
142
+ * liabilities that You and Realsee have benefited from, been subject to (or which
143
+ * have accrued over time whilst the Agreement has been in force) or which are
144
+ * expressed to continue indefinitely, shall be unaffected by this cessation, and
145
+ * the provisions of Section 3, 4, 6, 7 and 8 shall continue to apply to such
149
146
  * rights, obligations and liabilities indefinitely.
150
147
  * 6. DISCLAIMER OF WARRANTY.
151
- * YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE
152
- * LAW, USE OF THE SDK (OR ANY PART THEREOF) IS AT YOUR SOLE RISK AND THAT THE
153
- * ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS
154
- * WITH YOU. REALSEE LICENSES THE SDK TO YOU ONLY ON AN "AS-IS" BASIS. REALSEE
155
- * MAKES NO REPRESENTATION WITH RESPECT TO THE ADEQUACY OF ANY ITEMS IN THE SDK,
156
- * WHETHER OR NOT USED BY YOU IN THE DEVELOPMENT OF INTEGRATED PRODUCT, FOR ANY
157
- * PARTICULAR PURPOSE OR WITH RESPECT TO THEIR ADEQUACY TO PRODUCE ANY PARTICULAR
158
- * RESULT. REALSEE AND ITS LICENSORS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING
159
- * OUT OF THIS AGREEMENT OR FROM THE DISTRIBUTION OR USE OF INTEGRATED PRODUCT
160
- * CONTAINING PORTIONS OF THE SDK. REALSEE AND ITS LICENSORS DISCLAIM ALL
161
- * WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED
162
- * CONDITIONS OR WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
163
- * OR NONINFRINGEMENT OF ANY THIRD PARTY RIGHT IN RESPECT OF THE ITEMS IN THE SDK
148
+ * YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT, TO THE EXTENT PERMITTED BY APPLICABLE
149
+ * LAW, USE OF THE SDK (OR ANY PART THEREOF) IS AT YOUR SOLE RISK AND THAT THE
150
+ * ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY, AND EFFORT IS
151
+ * WITH YOU. REALSEE LICENSES THE SDK TO YOU ONLY ON AN "AS-IS" BASIS. REALSEE
152
+ * MAKES NO REPRESENTATION WITH RESPECT TO THE ADEQUACY OF ANY ITEMS IN THE SDK,
153
+ * WHETHER OR NOT USED BY YOU IN THE DEVELOPMENT OF INTEGRATED PRODUCT, FOR ANY
154
+ * PARTICULAR PURPOSE OR WITH RESPECT TO THEIR ADEQUACY TO PRODUCE ANY PARTICULAR
155
+ * RESULT. REALSEE AND ITS LICENSORS SHALL NOT BE LIABLE FOR LOSS OR DAMAGE ARISING
156
+ * OUT OF THIS AGREEMENT OR FROM THE DISTRIBUTION OR USE OF INTEGRATED PRODUCT
157
+ * CONTAINING PORTIONS OF THE SDK. REALSEE AND ITS LICENSORS DISCLAIM ALL
158
+ * WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED
159
+ * CONDITIONS OR WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
160
+ * OR NONINFRINGEMENT OF ANY THIRD PARTY RIGHT IN RESPECT OF THE ITEMS IN THE SDK
164
161
  * OR ANY SERVICES RELATED TO THE SDK.
165
- * REALSEE IS UNDER NO OBLIGATION TO PROVIDE ANY SUPPORT UNDER THIS LICENSE
166
- * AGREEMENT, INCLUDING UPGRADES OR FUTURE VERSIONS OF THE SDK OR ANY PORTIONS
162
+ * REALSEE IS UNDER NO OBLIGATION TO PROVIDE ANY SUPPORT UNDER THIS LICENSE
163
+ * AGREEMENT, INCLUDING UPGRADES OR FUTURE VERSIONS OF THE SDK OR ANY PORTIONS
167
164
  * THEREOF, TO YOU, END USER OR TO ANY OTHER PARTY.
168
165
  * 7. LIMITATION OF LIABILITY.
169
- * TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL REALSEE OR ITS
170
- * LICENSORS BE LIABLE FOR ANY DIRECT, INCIDENTAL, SPECIAL, INDIRECT, OR
171
- * CONSEQUENTIAL DAMAGES, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE,
172
- * LOSS OF BUSINESS, REVENUE, OR PROFITS, LOSS OF OPPORTUNITY (WHETHER DIRECT OR
173
- * INDIRECT), CORRUPTION OR LOSS OF DATA, LOSS OF REPUTATION OR SAVINGS, DOWNTIME,
174
- * OR DAMAGE TO, LOSS OF OR REPLACEMENT OF DATA OR TRANSACTIONS, COST OF
175
- * PROCUREMENT OF SUBSTITUTE SERVICES, BUSINESS INTERRUPTION, OR ANY OTHER
176
- * COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO YOUR USE OR INABILITY
177
- * TO USE THE SDK (OR ANY PART THEREOF), ANY INTEGRATED PRODUCT, OR ANY THIRD PARTY
178
- * SOFTWARE, APPLICATIONS, OR SERVICES IN CONJUNCTION WITH THE SDK (OR ANY PART
179
- * THEREOF), HOWEVER CAUSED, REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT,
180
- * OR OTHERWISE) AND EVEN IF REALSEE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
181
- * DAMAGES. IN NO EVENT WILL REALSEE’S TOTAL LIABILITY TO YOU FOR ALL DAMAGES
182
- * EXCEED ONE HUNDRED DOLLARS ($100.00). THE FOREGOING LIMITATIONS WILL APPLY EVEN
183
- * IF THE ABOVE STATED REMEDY FAILS OF ITS ESSENTIAL PURPOSE. THE LIMITATIONS
184
- * CONTAINED IN SECTIONS 6 AND THIS SECTION 7 ARE A FUNDAMENTAL PART OF THE BASIS
185
- * OF REALSEE’S BARGAIN HEREUNDER, AND REALSEE WOULD NOT ENTER INTO THIS AGREEMENT
166
+ * TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL REALSEE OR ITS
167
+ * LICENSORS BE LIABLE FOR ANY DIRECT, INCIDENTAL, SPECIAL, INDIRECT, OR
168
+ * CONSEQUENTIAL DAMAGES, INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE,
169
+ * LOSS OF BUSINESS, REVENUE, OR PROFITS, LOSS OF OPPORTUNITY (WHETHER DIRECT OR
170
+ * INDIRECT), CORRUPTION OR LOSS OF DATA, LOSS OF REPUTATION OR SAVINGS, DOWNTIME,
171
+ * OR DAMAGE TO, LOSS OF OR REPLACEMENT OF DATA OR TRANSACTIONS, COST OF
172
+ * PROCUREMENT OF SUBSTITUTE SERVICES, BUSINESS INTERRUPTION, OR ANY OTHER
173
+ * COMMERCIAL DAMAGES OR LOSSES, ARISING OUT OF OR RELATED TO YOUR USE OR INABILITY
174
+ * TO USE THE SDK (OR ANY PART THEREOF), ANY INTEGRATED PRODUCT, OR ANY THIRD PARTY
175
+ * SOFTWARE, APPLICATIONS, OR SERVICES IN CONJUNCTION WITH THE SDK (OR ANY PART
176
+ * THEREOF), HOWEVER CAUSED, REGARDLESS OF THE THEORY OF LIABILITY (CONTRACT, TORT,
177
+ * OR OTHERWISE) AND EVEN IF REALSEE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
178
+ * DAMAGES. IN NO EVENT WILL REALSEE’S TOTAL LIABILITY TO YOU FOR ALL DAMAGES
179
+ * EXCEED ONE HUNDRED DOLLARS ($100.00). THE FOREGOING LIMITATIONS WILL APPLY EVEN
180
+ * IF THE ABOVE STATED REMEDY FAILS OF ITS ESSENTIAL PURPOSE. THE LIMITATIONS
181
+ * CONTAINED IN SECTIONS 6 AND THIS SECTION 7 ARE A FUNDAMENTAL PART OF THE BASIS
182
+ * OF REALSEE’S BARGAIN HEREUNDER, AND REALSEE WOULD NOT ENTER INTO THIS AGREEMENT
186
183
  * OR PROVIDE YOU WITH ACCESS TO THE SDK ABSENT SUCH LIMITATIONS.
187
184
  * 8. INDEMNIFICATION.
188
- * To the extent permitted by applicable law, You agree to indemnify, defend and
189
- * hold harmless Realsee, its affiliates and each of their directors, officers,
190
- * employees, independent contractors, and agents (each a “Realsee Indemnified
191
- * Party”) from any and all claims, losses, liabilities, damages, expenses, and
192
- * costs (including without limitation attorneys’ fees and court costs) incurred by
193
- * a Realsee Indemnified Party as a result of: (i) Your non-compliance with any
194
- * terms of this Agreement; (ii) Your use of the SDK (or any part thereof); or
195
- * (iii) Your use of any Integrated Product, including any claim that Integrated
196
- * Product infringes the copyright, trademark, trade secret or other intellectual
185
+ * To the extent permitted by applicable law, You agree to indemnify, defend and
186
+ * hold harmless Realsee, its affiliates and each of their directors, officers,
187
+ * employees, independent contractors, and agents (each a “Realsee Indemnified
188
+ * Party”) from any and all claims, losses, liabilities, damages, expenses, and
189
+ * costs (including without limitation attorneys’ fees and court costs) incurred by
190
+ * a Realsee Indemnified Party as a result of: (i) Your non-compliance with any
191
+ * terms of this Agreement; (ii) Your use of the SDK (or any part thereof); or
192
+ * (iii) Your use of any Integrated Product, including any claim that Integrated
193
+ * Product infringes the copyright, trademark, trade secret or other intellectual
197
194
  * property right of a third party.
198
195
  * 9. ACKNOWLEDGEMENTS.
199
- * Portions of the SDK may utilize or include third party software and other
200
- * copyrighted material. Acknowledgments, licensing terms, and disclaimers for such
201
- * material are contained in Documentation for the SDK or may otherwise accompany
202
- * such material, and Your use of such materials governed by their respective
203
- * terms. In the event of conflict between the terms of this Agreement and an
204
- * applicable open source or third party agreement, the open source or third party
205
- * agreement will control solely with respect to the open source software or third
206
- * party software. Moreover, You shall not subject any items (including not limited
207
- * to source code, object code, and any software) included in the SDK to any open
196
+ * Portions of the SDK may utilize or include third party software and other
197
+ * copyrighted material. Acknowledgments, licensing terms, and disclaimers for such
198
+ * material are contained in Documentation for the SDK or may otherwise accompany
199
+ * such material, and Your use of such materials governed by their respective
200
+ * terms. In the event of conflict between the terms of this Agreement and an
201
+ * applicable open source or third party agreement, the open source or third party
202
+ * agreement will control solely with respect to the open source software or third
203
+ * party software. Moreover, You shall not subject any items (including not limited
204
+ * to source code, object code, and any software) included in the SDK to any open
208
205
  * source license.
209
206
  * 10. NON-BLOCKING OF REALSEE DEVELOPMENT.
210
- * You acknowledge that Realsee is currently developing or may develop technologies
211
- * and products in the future that have or may have design and/or functionality
212
- * similar to Integrated Product that You may develop based on Your license herein.
213
- * Nothing in this Agreement shall impair, limit or curtail Realsee's right to
214
- * continue with its development, maintenance and/or distribution of Realsee's
207
+ * You acknowledge that Realsee is currently developing or may develop technologies
208
+ * and products in the future that have or may have design and/or functionality
209
+ * similar to Integrated Product that You may develop based on Your license herein.
210
+ * Nothing in this Agreement shall impair, limit or curtail Realsee's right to
211
+ * continue with its development, maintenance and/or distribution of Realsee's
215
212
  * technology or products.
216
213
  * 11. GENERAL.
217
- * 11.1 Export Control. You may not use or otherwise export or re-export the SDK
218
- * (or any part thereof) except as authorized by United States law and the laws of
219
- * the jurisdiction(s) in which the SDK (or any part thereof) was obtained. In
220
- * particular, but without limitation, the SDK may not be exported or re-exported
221
- * (i) into any U.S. embargoed countries or (ii) to anyone on the U.S. Treasury
222
- * Department's list of Specially Designated Nationals or the U.S. Department of
223
- * Commerce Denied Person's List or Entity List. By using the SDK (or any part
224
- * thereof), You represent and warrant that You are not located in any such country
214
+ * 11.1 Export Control. You may not use or otherwise export or re-export the SDK
215
+ * (or any part thereof) except as authorized by United States law and the laws of
216
+ * the jurisdiction(s) in which the SDK (or any part thereof) was obtained. In
217
+ * particular, but without limitation, the SDK may not be exported or re-exported
218
+ * (i) into any U.S. embargoed countries or (ii) to anyone on the U.S. Treasury
219
+ * Department's list of Specially Designated Nationals or the U.S. Department of
220
+ * Commerce Denied Person's List or Entity List. By using the SDK (or any part
221
+ * thereof), You represent and warrant that You are not located in any such country
225
222
  * or on any such list.
226
- * 11.2 Governing Law. This Agreement and the rights of the parties hereunder shall
227
- * be governed by and construed in accordance with the laws of People’s Republic of
228
- * China (for purpose of this Agreement, excluding Hong Kong, Taiwan, and Macau),
229
- * without reference to its conflict of laws principles. Any dispute, controversy
230
- * or claim arising from or in connection with this Agreement, or the breach,
231
- * termination or invalidity thereof, shall be submitted to China International
232
- * Economic and Trade Arbitration Commission (“CIETAC”) for arbitration in Beijing
233
- * which shall be conducted in accordance with the CIETAC's arbitration rules in
234
- * effect at the time of applying for arbitration. The arbitral award is final and
223
+ * 11.2 Governing Law. This Agreement and the rights of the parties hereunder shall
224
+ * be governed by and construed in accordance with the laws of People’s Republic of
225
+ * China (for purpose of this Agreement, excluding Hong Kong, Taiwan, and Macau),
226
+ * without reference to its conflict of laws principles. Any dispute, controversy
227
+ * or claim arising from or in connection with this Agreement, or the breach,
228
+ * termination or invalidity thereof, shall be submitted to China International
229
+ * Economic and Trade Arbitration Commission (“CIETAC”) for arbitration in Beijing
230
+ * which shall be conducted in accordance with the CIETAC's arbitration rules in
231
+ * effect at the time of applying for arbitration. The arbitral award is final and
235
232
  * binding upon both parties.
236
- * 11.3 Severability. If any provision of this Agreement is held by a court of
237
- * competent jurisdiction to be unenforceable for any reason, the remaining
233
+ * 11.3 Severability. If any provision of this Agreement is held by a court of
234
+ * competent jurisdiction to be unenforceable for any reason, the remaining
238
235
  * provisions hereof will be unaffected and remain in full force and effect.
239
- * 11.4. Modifications. Realsee reserves the right, from time to time, with or
240
- * without notice to You, to make revisions to this Agreement in our sole and
241
- * absolute discretion. The most current version of this Agreement will supersede
242
- * all previous versions and shall be made available on the website where the SDK
243
- * is made available, or by such other means as Realsee may determine in its
244
- * discretion. Any modified versions of this Agreement hereto shall take effect
245
- * from the time that it is made available. You shall be responsible for regularly
246
- * checking for notice of any such modifications. You agree that Your continued use
236
+ * 11.4. Modifications. Realsee reserves the right, from time to time, with or
237
+ * without notice to You, to make revisions to this Agreement in our sole and
238
+ * absolute discretion. The most current version of this Agreement will supersede
239
+ * all previous versions and shall be made available on the website where the SDK
240
+ * is made available, or by such other means as Realsee may determine in its
241
+ * discretion. Any modified versions of this Agreement hereto shall take effect
242
+ * from the time that it is made available. You shall be responsible for regularly
243
+ * checking for notice of any such modifications. You agree that Your continued use
247
244
  * of the SDK constitutes Your agreement to the modified Agreement.
248
- * 11.5 Relationship of the Parties. This Agreement will not be construed as
249
- * creating an agency, partnership, joint venture, fiduciary duty, or any other
250
- * form of legal association between You and Realsee, and You will not represent to
245
+ * 11.5 Relationship of the Parties. This Agreement will not be construed as
246
+ * creating an agency, partnership, joint venture, fiduciary duty, or any other
247
+ * form of legal association between You and Realsee, and You will not represent to
251
248
  * the contrary, whether expressly, by implication, appearance, or otherwise.
252
- * 11.6 Entire Agreement; Governing Language. This Agreement constitutes the entire
253
- * agreement between You and Realsee with respect to the use of the SDK licensed
254
- * hereunder and supersedes all prior understandings regarding such subject matter.
255
- * No amendment to or modification of this Agreement will be binding unless in
256
- * writing and signed by Realsee. You and Realsee hereto confirm that this
249
+ * 11.6 Entire Agreement; Governing Language. This Agreement constitutes the entire
250
+ * agreement between You and Realsee with respect to the use of the SDK licensed
251
+ * hereunder and supersedes all prior understandings regarding such subject matter.
252
+ * No amendment to or modification of this Agreement will be binding unless in
253
+ * writing and signed by Realsee. You and Realsee hereto confirm that this
257
254
  * Agreement and all related documents shall be drafted in English.
258
- */
255
+ */"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("three");function se(r){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const e in r)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>r[e]})}}return n.default=r,Object.freeze(n)}const i=se(ae);var $=function(r,n){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},$(r,n)};function A(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");$(r,n);function e(){this.constructor=r}r.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var ee=`
256
+ uniform vec3 uColor1;
257
+ uniform vec3 uColor2;
258
+ uniform float uOpacity;
259
259
 
260
- "use strict";function e(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(exports,"__esModule",{value:!0});var t=e(require("three")),n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}for(var o="\nuniform vec3 uColor1;\nuniform vec3 uColor2;\nuniform float uOpacity;\n\nvarying vec3 vPosition;\nvarying float vNoise;\n\nvoid main() {\n float alpha = 1.0;\n float gradient = mix(0.0, 1.0, -vPosition.y + 1.75);\n if(vNoise > 0.3 * gradient) {\n alpha = 0.0;\n }\n float mask = mix(0.3, 1.0, -vPosition.y + 0.5);\n alpha = clamp(alpha * (mask * 10.0), 0.0, 1.0);\n vec3 color = mix(uColor1, uColor2, -vPosition.y + 0.5);\n color.g = color.g * (1.0 + gradient * vNoise);\n gl_FragColor = vec4(color, alpha * uOpacity);\n}\n",r="\n// Simplex 4D Noise\n// by Ian McEwan, Ashima Arts\n//\nvec4 permute(vec4 x) {\n return mod((x * 34.0 + 1.0) * x, 289.0);\n}\nfloat permute(float x) {\n return floor( mod((x * 34.0 + 1.0) * x, 289.0) );\n}\nvec4 taylorInvSqrt(vec4 r) {\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nfloat taylorInvSqrt(float r) {\n return 1.79284291400159 - 0.85373472095314 * r;\n}\n\nvec4 grad4(float j, vec4 ip) {\n const vec4 ones = vec4(1.0, 1.0, 1.0, -1.0);\n vec4 p,s;\n\n p.xyz = floor( fract (vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;\n p.w = 1.5 - dot(abs(p.xyz), ones.xyz);\n s = vec4(lessThan(p, vec4(0.0)));\n p.xyz = p.xyz + (s.xyz*2.0 - 1.0) * s.www;\n\n return p;\n}\n\nfloat simplexNoise(vec4 v) {\n const vec2 C = vec2( 0.138196601125010504, // (5 - sqrt(5))/20 G4\n 0.309016994374947451); // (sqrt(5) - 1)/4 F4\n // First corner\n vec4 i = floor(v + dot(v, C.yyyy) );\n vec4 x0 = v - i + dot(i, C.xxxx);\n\n // Other corners\n\n // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI)\n vec4 i0;\n\n vec3 isX = step( x0.yzw, x0.xxx );\n vec3 isYZ = step( x0.zww, x0.yyz );\n\n // i0.x = dot( isX, vec3( 1.0 ) );\n i0.x = isX.x + isX.y + isX.z;\n i0.yzw = 1.0 - isX;\n\n // i0.y += dot( isYZ.xy, vec2( 1.0 ) );\n i0.y += isYZ.x + isYZ.y;\n i0.zw += 1.0 - isYZ.xy;\n\n i0.z += isYZ.z;\n i0.w += 1.0 - isYZ.z;\n\n // i0 now contains the unique values 0,1,2,3 in each channel\n vec4 i3 = clamp( i0, 0.0, 1.0 );\n vec4 i2 = clamp( i0-1.0, 0.0, 1.0 );\n vec4 i1 = clamp( i0-2.0, 0.0, 1.0 );\n\n // x0 = x0 - 0.0 + 0.0 * C\n vec4 x1 = x0 - i1 + 1.0 * C.xxxx;\n vec4 x2 = x0 - i2 + 2.0 * C.xxxx;\n vec4 x3 = x0 - i3 + 3.0 * C.xxxx;\n vec4 x4 = x0 - 1.0 + 4.0 * C.xxxx;\n\n // Permutations\n i = mod(i, 289.0);\n float j0 = permute( permute( permute( permute(i.w) + i.z) + i.y) + i.x);\n vec4 j1 = permute( permute( permute( permute (\n i.w + vec4(i1.w, i2.w, i3.w, 1.0 ))\n + i.z + vec4(i1.z, i2.z, i3.z, 1.0 ))\n + i.y + vec4(i1.y, i2.y, i3.y, 1.0 ))\n + i.x + vec4(i1.x, i2.x, i3.x, 1.0 ));\n\n // Gradients\n // ( 7*7*6 points uniformly over a cube, mapped onto a 4-octahedron.)\n // 7*7*6 = 294, which is close to the ring size 17*17 = 289.\n\n vec4 ip = vec4(1.0/294.0, 1.0/49.0, 1.0/7.0, 0.0) ;\n\n vec4 p0 = grad4(j0, ip);\n vec4 p1 = grad4(j1.x, ip);\n vec4 p2 = grad4(j1.y, ip);\n vec4 p3 = grad4(j1.z, ip);\n vec4 p4 = grad4(j1.w, ip);\n\n // Normalise gradients\n vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));\n p0 *= norm.x;\n p1 *= norm.y;\n p2 *= norm.z;\n p3 *= norm.w;\n p4 *= taylorInvSqrt(dot(p4,p4));\n\n // Mix contributions from the five corners\n vec3 m0 = max(0.6 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0);\n vec2 m1 = max(0.6 - vec2(dot(x3,x3), dot(x4,x4) ), 0.0);\n m0 = m0 * m0;\n m1 = m1 * m1;\n return 49.0 * ( dot(m0*m0, vec3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 )))\n + dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;\n\n}\n",a="\nfloat scale(float value, float fromMin, float fromMax, float toMin, float toMax) {\n return toMin + (value - fromMin) * (toMax - toMin) / (fromMax - fromMin);\n}\n",s="\nuniform float uTime;\nuniform float uNoise;\nuniform float uSpeed;\n\nvarying vec3 vPosition;\nvarying float vNoise;\n\n".concat(r,"\n").concat(a,"\n\nfloat fbm(vec4 x) {\n float v = 0.0;\n float a = 0.5;\n vec4 shift = vec4(100.0);\n #pragma unroll_loop_start\n for ( int i = 0; i < FRAGMENTATION_DEGREE; i ++ ) {\n v += a * simplexNoise(x);\n x = x * 2.0 + shift;\n a *= 0.5;\n }\n #pragma unroll_loop_end\n return v;\n}\n\nvoid main() {\n vPosition = position;\n vNoise = fbm(vec4((position / uNoise) - vec3(0.0, uTime * uSpeed, 0.0), 0.0));\n vNoise = scale(vNoise, -1.0, 1.0, 0.0, 1.0);\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4(vPosition, 1.0);\n}\n"),l=new t.SphereBufferGeometry(1,300,300),u=[],c=0;c<2;c++)u.push(new t.Vector2(Math.sin(c)/2+1,2*c-.8));var d=new t.LatheBufferGeometry(u,300),p=function(e){function n(n){var i,r=e.call(this)||this;if(r.needsRender=!0,n instanceof t.BufferGeometry)i=n;else if("ring"===n)i=d;else i=l;r.uniforms={uTime:{value:0},uColor1:{value:new t.Color("rgb(255, 177, 20)")},uColor2:{value:new t.Color("rgb(255, 0, 0)")},uNoise:{value:1.2},uSpeed:{value:1},uOpacity:{value:1}},r.defines={FRAGMENTATION_DEGREE:2};var a=new t.Mesh(i,new t.ShaderMaterial({uniforms:r.uniforms,defines:r.defines,vertexShader:s,fragmentShader:o,transparent:!0,depthWrite:!1,side:t.BackSide})),u=new t.Mesh(i,new t.ShaderMaterial({uniforms:r.uniforms,defines:r.defines,vertexShader:s,fragmentShader:o,transparent:!0,depthWrite:!1,side:t.FrontSide}));return a.scale.setScalar(.1),u.scale.setScalar(.1),r.add(a),r.add(u),r}return i(n,e),n.prototype.setTime=function(e){void 0===this.startTime&&(this.startTime=e),this.uniforms.uTime.value=(e-this.startTime)/1e3,this.needsRender=!0},Object.defineProperty(n.prototype,"color1",{get:function(){return this.uniforms.uColor1.value},set:function(e){this.uniforms.uColor1.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color2",{get:function(){return this.uniforms.uColor2.value},set:function(e){this.uniforms.uColor2.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this.uniforms.uSpeed.value},set:function(e){this.uniforms.uSpeed.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"noise",{get:function(){return this.uniforms.uSpeed.value},set:function(e){this.uniforms.uSpeed.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"opacity",{get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.uOpacity.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fragmentationDegree",{get:function(){return this.defines.FRAGMENTATION_DEGREE},set:function(e){this.defines.FRAGMENTATION_DEGREE=e,this.traverse((function(e){e instanceof t.Mesh&&e.material instanceof t.ShaderMaterial&&(e.material.needsUpdate=!0)})),this.needsRender=!0},enumerable:!1,configurable:!0}),n}(t.Group),v="\n\nuniform float uTime;\n\nvarying vec3 vNormal;\nvarying vec3 vWorldPosition;\nvarying float vNoise;\n\n".concat(r,"\n").concat(a,"\n\nvoid main(){\n\n vNormal = normalize( normalMatrix * normal );\n vec4 worldPosition = modelMatrix * vec4( position, 1.0 );\n vWorldPosition = worldPosition.xyz;\n vNoise = simplexNoise(vec4(position - vec3(0.0, uTime * 0.4, 0.0), 0));\n vNoise = scale(vNoise, -1.0, 1.0, 0.5, 1.0);\n\n gl_Position\t= projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}\n"),f=function(e){function n(n,i,o){void 0===n&&(n=1),void 0===i&&(i=.1),void 0===o&&(o=.2);var r=e.call(this)||this;r.needsRender=!0,r.uniforms={uTime:{value:0},uAttenuation:{value:.9*n},uAnglePower:{value:2},uSpotPosition:{value:r.position},uLightColor:{value:new t.Color(16777215)}};var a=new t.CylinderBufferGeometry(i,o,n,64,20,!0);a.applyMatrix4((new t.Matrix4).makeTranslation(0,-n/2,0)),a.applyMatrix4((new t.Matrix4).makeRotationX(-Math.PI/2));var s=new t.Mesh(a,new t.ShaderMaterial({uniforms:r.uniforms,vertexShader:v,fragmentShader:"\nuniform vec3 uLightColor;\nuniform vec3 uSpotPosition;\nuniform float uAttenuation;\nuniform float uAnglePower;\n\nvarying vec3 vNormal;\nvarying vec3 vWorldPosition;\nvarying float vNoise;\n\nvoid main() {\n float intensity;\n intensity\t= distance(vWorldPosition, uSpotPosition) / uAttenuation;\n intensity\t= 1.0 - clamp(intensity, 0.1, 1.0);\n\n vec3 normal = vec3(vNormal.x, vNormal.y, abs(vNormal.z));\n float angleIntensity = pow( dot(normal, vec3(0.0, 0.0, 1.0)), uAnglePower * vNoise );\n intensity\t= intensity * angleIntensity * vNoise;\n gl_FragColor = vec4( uLightColor, intensity );\n}\n",transparent:!0,side:t.FrontSide,depthWrite:!1}));return r.add(s),r}return i(n,e),n.prototype.setTime=function(e){void 0===this.startTime&&(this.startTime=e),this.uniforms.uTime.value=(e-this.startTime)/1e3,this.needsRender=!0},Object.defineProperty(n.prototype,"attenuation",{get:function(){return this.uniforms.uAttenuation.value},set:function(e){this.uniforms.uAttenuation.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"anglePower",{get:function(){return this.uniforms.uAnglePower.value},set:function(e){this.uniforms.uAnglePower.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.uniforms.uLightColor.value},set:function(e){this.uniforms.uLightColor.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),n}(t.Group),h="\nuniform vec3 uColor;\nuniform float uOpacity;\nvarying vec3 vPosition;\nvarying float vNoise;\n\nvoid main() {\n float gradient = mix(0.0, 1.0, 1.0 + vPosition.y);\n gl_FragColor = vec4(uColor, vNoise * gradient * uOpacity);\n}\n",m="\n\nuniform float uTime;\nuniform float uSpeed;\nuniform float uScale;\nuniform float uExpand;\nvarying float vNoise;\nvarying vec3 vPosition;\n\n".concat(r,"\n").concat(a,"\n\nvoid main(){\n\n vPosition = position;\n vNoise = simplexNoise(vec4(position.x * uScale, position.y + uTime * uSpeed, 0.0, 0.0));\n vNoise = scale(vNoise, 0.0, 1.0, 0.5, 1.0);\n\n vec4 transformed = vec4( position, 1.0 );\n transformed.x = transformed.x * scale(abs(transformed.y), 0.0, 1.0, 1.0, uExpand);\n\n gl_Position\t= projectionMatrix * modelViewMatrix * transformed;\n}\n"),y=new t.PlaneBufferGeometry(1,1,200,200);y.translate(0,-.5,0);var g=function(e){function n(){var n=e.call(this)||this;n.needsRender=!0;var i=n.outer=new t.Mesh(y,new t.ShaderMaterial({uniforms:{uTime:{value:0},uSpeed:{value:.75},uScale:{value:2},uExpand:{value:1.2},uColor:{value:new t.Color(.5,.5,.9)},uOpacity:{value:1}},vertexShader:m,fragmentShader:h,transparent:!0,side:t.DoubleSide,depthWrite:!1})),o=n.inner=new t.Mesh(y,new t.ShaderMaterial({uniforms:{uTime:{value:0},uSpeed:{value:2},uScale:{value:20},uExpand:{value:1.2},uColor:{value:new t.Color(1,1,1)},uOpacity:{value:.1}},vertexShader:m,fragmentShader:h,transparent:!0,side:t.DoubleSide,depthWrite:!1}));return i.rotateX(-Math.PI/2),o.rotateX(-Math.PI/2),n.add(i),n.add(o),n}return i(n,e),n.prototype.setTime=function(e){void 0===this.startTime&&(this.startTime=e);var t=(e-this.startTime)/1e3;this.inner.material.uniforms.uTime.value=t,this.outer.material.uniforms.uTime.value=t,this.needsRender=!0},Object.defineProperty(n.prototype,"expand",{get:function(){return this.outer.material.uniforms.uExpand.value},set:function(e){this.outer.material.uniforms.uExpand.value=e,this.inner.material.uniforms.uExpand.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this.inner.material.uniforms.speed.value},set:function(e){this.inner.material.uniforms.speed.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.outer.material.uniforms.color.value},set:function(e){this.outer.material.uniforms.color.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"flowColor",{get:function(){return this.inner.material.uniforms.color.value},set:function(e){this.inner.material.uniforms.color.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),n}(t.Group);function x(e,t){return e+t*(Math.random()-.5)}function b(e,n){var i=new t.Vector3(Math.random()-.5,Math.random()-.5,Math.random()-.5);return(new t.Vector3).addVectors(e,(new t.Vector3).multiplyVectors(n,i))}function w(e,t,n){return e*n+t*n*n/2}function S(e,t){for(var n=e.times.length,i=0;i<n&&t>e.times[i];)i++;if(0==i)return e.values[0];if(i==n)return e.values[n-1];var o=(t-e.times[i-1])/(e.times[i]-e.times[i-1]),r=e.values[i-1],a=e.values[i];return"number"==typeof e.values[0]?r+o*(a-r):r.clone().lerp(a,o)}var A=function(){function e(e,t,n,i,o,r,a,s,l,u,c,d,p,v){this.birthTime=e,this.deathAge=t,this.position=n.clone(),this.velocity=i.clone(),this.acceleration=o.clone(),this.angle=r,this.angleVelocity=a,this.angleAcceleration=s,this.color=l,this.colorTween=u,this.size=c,this.sizeTween=d,this.opacity=p,this.opacityTween=v}return e.prototype.getAlive=function(e){return this.deathAge>e-this.birthTime},e.prototype.getState=function(e){var n=this.getAlive(e),i=Math.min(this.deathAge,e-this.birthTime),o=function(e,n,i){return new t.Vector3(w(e.x,n.x,i),w(e.y,n.y,i),w(e.z,n.z,i))}(this.velocity,this.acceleration,i).add(this.position),r=w(this.angleVelocity,this.angleAcceleration,i)+this.angle,a=(this.sizeTween?S(this.sizeTween,i):0)+this.size,s=(this.colorTween?S(this.colorTween,i):new t.Vector3).add(this.color);return{alive:n,age:i,position:o,angle:r,size:a,color:(new t.Color).setHSL(s.x,s.y,s.z),opacity:(this.opacityTween?S(this.opacityTween,i):0)+this.opacity}},e}(),P=function(e){function n(n){var i,o,r,a,s,l,u,c,d,p,v,f,h,m,y,g,x,b,w,S,A,P,M,T,C,B,z,N,E,_,O,j,V,R,U,F,D,G,I=this,X=new t.BufferGeometry;X.setAttribute("position",new t.BufferAttribute(new Float32Array,3)),X.setAttribute("alive",new t.BufferAttribute(new Float32Array,1)),X.setAttribute("color",new t.BufferAttribute(new Float32Array,3)),X.setAttribute("opacity",new t.BufferAttribute(new Float32Array,1)),X.setAttribute("size",new t.BufferAttribute(new Float32Array,1)),X.setAttribute("angle",new t.BufferAttribute(new Float32Array,1));var W=new t.ShaderMaterial({uniforms:{map:{value:null!==(i=n.texture)&&void 0!==i?i:null}},defines:{USE_MAP:!!n.texture},vertexShader:"\nattribute vec3 color;\nattribute float opacity;\nattribute float size;\nattribute float alive; // float used as boolean (0 = false, 1 = true)\n\nvarying vec4 vColor;\n\n#if defined(USE_MAP)\n attribute float angle;\n varying float vAngle;\n#endif\n\nvoid main() {\n if (alive > 0.5) {\n vColor = vec4(color, opacity);\n } else {\n vColor = vec4(0.0, 0.0, 0.0, 0.0);\n }\n #if defined(USE_MAP)\n vAngle = angle;\n #endif\n vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n gl_PointSize = size * ( 300.0 / length( mvPosition.xyz ) );\n gl_Position = projectionMatrix * mvPosition;\n}\n",fragmentShader:"\nvarying vec4 vColor;\n\n#if defined(USE_MAP)\n uniform sampler2D map;\n varying float vAngle;\n#endif\n\nvoid main() {\n gl_FragColor = vColor;\n\n #if defined(USE_MAP)\n float c = cos(vAngle);\n float s = sin(vAngle);\n\n // rotate UV coordinates to rotate texture\n vec2 rotatedUV = vec2(\n c * (gl_PointCoord.x - 0.5) + s * (gl_PointCoord.y - 0.5) + 0.5,\n c * (gl_PointCoord.y - 0.5) - s * (gl_PointCoord.x - 0.5) + 0.5\n );\n vec4 rotatedTexture = texture2D(map, rotatedUV);\n gl_FragColor = vColor * rotatedTexture;\n #endif\n}\n",transparent:!0,blending:null!==(o=n.blending)&&void 0!==o?o:t.NormalBlending,depthWrite:!1});return(I=e.call(this,X,W)||this).instances=[],I.needsRender=!0,I.birthTime=Date.now()/1e3,I.disposed=!1,I.paused=!1,I.positionBase=null!==(a=null===(r=n.positionBase)||void 0===r?void 0:r.clone())&&void 0!==a?a:new t.Vector3,I.positionStyle=null!==(s=n.positionStyle)&&void 0!==s?s:"CUBE",I.positionCubeSpread=null!==(u=null===(l=n.positionCubeSpread)||void 0===l?void 0:l.clone())&&void 0!==u?u:new t.Vector3,I.positionSphereSpread=null!==(c=n.positionSphereSpread)&&void 0!==c?c:0,I.velocityStyle=null!==(d=n.velocityStyle)&&void 0!==d?d:"CUBE",I.velocityCubeBase=null!==(v=null===(p=n.velocityCubeBase)||void 0===p?void 0:p.clone())&&void 0!==v?v:new t.Vector3,I.velocityCubeSpread=null!==(h=null===(f=n.velocityCubeSpread)||void 0===f?void 0:f.clone())&&void 0!==h?h:new t.Vector3,I.velocitySphereBase=null!==(m=n.velocitySphereBase)&&void 0!==m?m:0,I.velocitySphereSpread=null!==(y=n.velocitySphereSpread)&&void 0!==y?y:0,I.accelerationBase=null!==(x=null===(g=n.accelerationBase)||void 0===g?void 0:g.clone())&&void 0!==x?x:new t.Vector3,I.accelerationSpread=null!==(w=null===(b=n.accelerationSpread)||void 0===b?void 0:b.clone())&&void 0!==w?w:new t.Vector3,I.angleBase=null!==(S=n.angleBase)&&void 0!==S?S:0,I.angleSpread=null!==(A=n.angleSpread)&&void 0!==A?A:0,I.angleVelocityBase=null!==(P=n.angleVelocityBase)&&void 0!==P?P:0,I.angleVelocitySpread=null!==(M=n.angleVelocitySpread)&&void 0!==M?M:0,I.angleAccelerationBase=null!==(T=n.angleAccelerationBase)&&void 0!==T?T:0,I.angleAccelerationSpread=null!==(C=n.angleAccelerationSpread)&&void 0!==C?C:0,I.sizeBase=null!==(B=n.sizeBase)&&void 0!==B?B:.1,I.sizeSpread=null!==(z=n.sizeSpread)&&void 0!==z?z:0,I.sizeTween=null!==(N=n.sizeTween)&&void 0!==N?N:null,I.colorBase=null!==(_=null===(E=n.colorBase)||void 0===E?void 0:E.clone())&&void 0!==_?_:new t.Vector3,I.colorSpread=null!==(j=null===(O=n.colorSpread)||void 0===O?void 0:O.clone())&&void 0!==j?j:new t.Vector3,I.colorTween=null!==(V=n.colorTween)&&void 0!==V?V:null,I.opacityBase=(null!==(R=n.opacityBase)&&void 0!==R?R:n.opacityTween)?0:1,I.opacitySpread=null!==(U=n.opacitySpread)&&void 0!==U?U:0,I.opacityTween=null!==(F=n.opacityTween)&&void 0!==F?F:null,I.particlesPerSecond=null!==(D=n.particlesPerSecond)&&void 0!==D?D:60,I.particleDeathAge=null!==(G=n.particleDeathAge)&&void 0!==G?G:1,I}return i(n,e),Object.defineProperty(n.prototype,"texture",{get:function(){return this.material.uniforms.map.value},set:function(e){this.material.uniforms.map.value=e,null===e?!1!==this.material.defines.USE_MAP&&(this.material.defines.USE_MAP=!1,this.material.needsUpdate=!0):!0!==this.material.defines.USE_MAP&&(this.material.defines.USE_MAP=!0,this.material.needsUpdate=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"blending",{get:function(){return this.material.blending},set:function(e){this.material.blending=e},enumerable:!1,configurable:!0}),n.prototype.createInstance=function(e){var n=this.positionBase.clone();switch(this.positionStyle){case"CUBE":n=b(this.positionBase,this.positionCubeSpread);break;case"SPHERE":var i=2*Math.random()-1,o=2*Math.PI*Math.random(),r=Math.sqrt(1-i*i),a=new t.Vector3(r*Math.cos(o),r*Math.sin(o),i);n=(new t.Vector3).addVectors(this.positionBase,a.multiplyScalar(this.positionSphereSpread))}var s=new t.Vector3;switch(this.velocityStyle){case"CUBE":s=b(this.velocityCubeBase,this.velocityCubeSpread);break;case"SPHERE":var l=(new t.Vector3).subVectors(n,this.positionBase),u=x(this.velocitySphereBase,this.velocitySphereSpread);s=l.normalize().multiplyScalar(u)}return new A(e,this.particleDeathAge,n,s,b(this.accelerationBase,this.accelerationSpread),x(this.angleBase,this.angleSpread),x(this.angleVelocityBase,this.angleVelocitySpread),x(this.angleAccelerationBase,this.angleAccelerationSpread),b(this.colorBase,this.colorSpread),this.colorTween,x(this.sizeBase,this.sizeSpread),this.sizeTween,x(this.opacityBase,this.opacitySpread),this.opacityTween)},n.prototype.pause=function(){!0!==this.paused&&(this.paused=!0,this.birthTime=Date.now()/1e3)},n.prototype.play=function(){!1!==this.paused&&(this.paused=!1,this.birthTime=Date.now()/1e3)},n.prototype.setTime=function(e){if(!this.disposed){var n,i=(e/=1e3)-this.birthTime,o=Math.ceil(this.particlesPerSecond*this.particleDeathAge);if(this.geometry.attributes.position.count<o)(c=new Float32Array(3*o)).set(this.geometry.attributes.position.array,0),(n=new t.BufferAttribute(c,3)).needsUpdate=!0,this.geometry.setAttribute("position",n);if(this.geometry.attributes.alive.count<o)(d=new Float32Array(o)).set(this.geometry.attributes.alive.array,0),(n=new t.BufferAttribute(d,1)).needsUpdate=!0,this.geometry.setAttribute("alive",n);if(this.geometry.attributes.color.count<o)(p=new Float32Array(3*o)).set(this.geometry.attributes.color.array,0),(n=new t.BufferAttribute(p,3)).needsUpdate=!0,this.geometry.setAttribute("color",n);if(this.geometry.attributes.opacity.count<o)(v=new Float32Array(o)).set(this.geometry.attributes.opacity.array,0),(n=new t.BufferAttribute(v,1)).needsUpdate=!0,this.geometry.setAttribute("opacity",n);if(this.geometry.attributes.size.count<o)(f=new Float32Array(o)).set(this.geometry.attributes.size.array,0),(n=new t.BufferAttribute(f,1)).needsUpdate=!0,this.geometry.setAttribute("size",n);if(this.geometry.attributes.angle.count<o)(h=new Float32Array(o)).set(this.geometry.attributes.angle.array,0),(n=new t.BufferAttribute(h,1)).needsUpdate=!0,this.geometry.setAttribute("angle",n);this.instances.length<o&&(this.instances.length=o);for(var r=0;r<this.instances.length;r++){var a=this.instances[r];if(r<o&&!1===this.paused&&(void 0===a||!1===a.getAlive(e))){var s=this.particleDeathAge/o*r;if(i>s){var l=e-(i-s)%this.particleDeathAge;this.instances[r]=a=this.createInstance(l)}}if(a){var u=a.getState(e),c=u.position,d=u.alive,p=u.color,v=u.opacity,f=u.size,h=u.angle;this.geometry.attributes.position.setXYZ(r,c.x,c.y,c.z),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.alive.setX(r,d?1:0),this.geometry.attributes.alive.needsUpdate=!0,this.geometry.attributes.color.setXYZ(r,p.r,p.g,p.b),this.geometry.attributes.color.needsUpdate=!0,this.geometry.attributes.opacity.setX(r,v),this.geometry.attributes.opacity.needsUpdate=!0,this.geometry.attributes.size.setX(r,f),this.geometry.attributes.size.needsUpdate=!0,this.geometry.attributes.angle.setX(r,h),this.geometry.attributes.angle.needsUpdate=!0}}this.geometry.computeBoundingBox(),this.geometry.boundingSphere||(this.geometry.boundingSphere=new t.Sphere),this.geometry.boundingBox.getBoundingSphere(this.geometry.boundingSphere),this.needsRender=!0}},n.prototype.dispose=function(){var e;this.disposed=!0,this.geometry.dispose(),null===(e=this.texture)||void 0===e||e.dispose(),this.material.dispose()},n}(t.Points);exports.Airflow=g,exports.Flame=p,exports.Particle=P,exports.SpotLight=f;
260
+ varying vec3 vPosition;
261
+ varying float vNoise;
262
+
263
+ void main() {
264
+ float alpha = 1.0;
265
+ float gradient = mix(0.0, 1.0, -vPosition.y + 1.75);
266
+ if(vNoise > 0.3 * gradient) {
267
+ alpha = 0.0;
268
+ }
269
+ float mask = mix(0.3, 1.0, -vPosition.y + 0.5);
270
+ alpha = clamp(alpha * (mask * 10.0), 0.0, 1.0);
271
+ vec3 color = mix(uColor1, uColor2, -vPosition.y + 0.5);
272
+ color.g = color.g * (1.0 + gradient * vNoise);
273
+ gl_FragColor = vec4(color, alpha * uOpacity);
274
+ }
275
+ `,Q=`
276
+ // Simplex 4D Noise
277
+ // by Ian McEwan, Ashima Arts
278
+ //
279
+ vec4 permute(vec4 x) {
280
+ return mod((x * 34.0 + 1.0) * x, 289.0);
281
+ }
282
+ float permute(float x) {
283
+ return floor( mod((x * 34.0 + 1.0) * x, 289.0) );
284
+ }
285
+ vec4 taylorInvSqrt(vec4 r) {
286
+ return 1.79284291400159 - 0.85373472095314 * r;
287
+ }
288
+ float taylorInvSqrt(float r) {
289
+ return 1.79284291400159 - 0.85373472095314 * r;
290
+ }
291
+
292
+ vec4 grad4(float j, vec4 ip) {
293
+ const vec4 ones = vec4(1.0, 1.0, 1.0, -1.0);
294
+ vec4 p,s;
295
+
296
+ p.xyz = floor( fract (vec3(j) * ip.xyz) * 7.0) * ip.z - 1.0;
297
+ p.w = 1.5 - dot(abs(p.xyz), ones.xyz);
298
+ s = vec4(lessThan(p, vec4(0.0)));
299
+ p.xyz = p.xyz + (s.xyz*2.0 - 1.0) * s.www;
300
+
301
+ return p;
302
+ }
303
+
304
+ float simplexNoise(vec4 v) {
305
+ const vec2 C = vec2( 0.138196601125010504, // (5 - sqrt(5))/20 G4
306
+ 0.309016994374947451); // (sqrt(5) - 1)/4 F4
307
+ // First corner
308
+ vec4 i = floor(v + dot(v, C.yyyy) );
309
+ vec4 x0 = v - i + dot(i, C.xxxx);
310
+
311
+ // Other corners
312
+
313
+ // Rank sorting originally contributed by Bill Licea-Kane, AMD (formerly ATI)
314
+ vec4 i0;
315
+
316
+ vec3 isX = step( x0.yzw, x0.xxx );
317
+ vec3 isYZ = step( x0.zww, x0.yyz );
318
+
319
+ // i0.x = dot( isX, vec3( 1.0 ) );
320
+ i0.x = isX.x + isX.y + isX.z;
321
+ i0.yzw = 1.0 - isX;
322
+
323
+ // i0.y += dot( isYZ.xy, vec2( 1.0 ) );
324
+ i0.y += isYZ.x + isYZ.y;
325
+ i0.zw += 1.0 - isYZ.xy;
326
+
327
+ i0.z += isYZ.z;
328
+ i0.w += 1.0 - isYZ.z;
329
+
330
+ // i0 now contains the unique values 0,1,2,3 in each channel
331
+ vec4 i3 = clamp( i0, 0.0, 1.0 );
332
+ vec4 i2 = clamp( i0-1.0, 0.0, 1.0 );
333
+ vec4 i1 = clamp( i0-2.0, 0.0, 1.0 );
334
+
335
+ // x0 = x0 - 0.0 + 0.0 * C
336
+ vec4 x1 = x0 - i1 + 1.0 * C.xxxx;
337
+ vec4 x2 = x0 - i2 + 2.0 * C.xxxx;
338
+ vec4 x3 = x0 - i3 + 3.0 * C.xxxx;
339
+ vec4 x4 = x0 - 1.0 + 4.0 * C.xxxx;
340
+
341
+ // Permutations
342
+ i = mod(i, 289.0);
343
+ float j0 = permute( permute( permute( permute(i.w) + i.z) + i.y) + i.x);
344
+ vec4 j1 = permute( permute( permute( permute (
345
+ i.w + vec4(i1.w, i2.w, i3.w, 1.0 ))
346
+ + i.z + vec4(i1.z, i2.z, i3.z, 1.0 ))
347
+ + i.y + vec4(i1.y, i2.y, i3.y, 1.0 ))
348
+ + i.x + vec4(i1.x, i2.x, i3.x, 1.0 ));
349
+
350
+ // Gradients
351
+ // ( 7*7*6 points uniformly over a cube, mapped onto a 4-octahedron.)
352
+ // 7*7*6 = 294, which is close to the ring size 17*17 = 289.
353
+
354
+ vec4 ip = vec4(1.0/294.0, 1.0/49.0, 1.0/7.0, 0.0) ;
355
+
356
+ vec4 p0 = grad4(j0, ip);
357
+ vec4 p1 = grad4(j1.x, ip);
358
+ vec4 p2 = grad4(j1.y, ip);
359
+ vec4 p3 = grad4(j1.z, ip);
360
+ vec4 p4 = grad4(j1.w, ip);
361
+
362
+ // Normalise gradients
363
+ vec4 norm = taylorInvSqrt(vec4(dot(p0,p0), dot(p1,p1), dot(p2, p2), dot(p3,p3)));
364
+ p0 *= norm.x;
365
+ p1 *= norm.y;
366
+ p2 *= norm.z;
367
+ p3 *= norm.w;
368
+ p4 *= taylorInvSqrt(dot(p4,p4));
369
+
370
+ // Mix contributions from the five corners
371
+ vec3 m0 = max(0.6 - vec3(dot(x0,x0), dot(x1,x1), dot(x2,x2)), 0.0);
372
+ vec2 m1 = max(0.6 - vec2(dot(x3,x3), dot(x4,x4) ), 0.0);
373
+ m0 = m0 * m0;
374
+ m1 = m1 * m1;
375
+ return 49.0 * ( dot(m0*m0, vec3( dot( p0, x0 ), dot( p1, x1 ), dot( p2, x2 )))
376
+ + dot(m1*m1, vec2( dot( p3, x3 ), dot( p4, x4 ) ) ) ) ;
377
+
378
+ }
379
+ `,K=`
380
+ float scale(float value, float fromMin, float fromMax, float toMin, float toMax) {
381
+ return toMin + (value - fromMin) * (toMax - toMin) / (fromMax - fromMin);
382
+ }
383
+ `,te=`
384
+ uniform float uTime;
385
+ uniform float uNoise;
386
+ uniform float uSpeed;
387
+
388
+ varying vec3 vPosition;
389
+ varying float vNoise;
390
+
391
+ `.concat(Q,`
392
+ `).concat(K,`
393
+
394
+ float fbm(vec4 x) {
395
+ float v = 0.0;
396
+ float a = 0.5;
397
+ vec4 shift = vec4(100.0);
398
+ #pragma unroll_loop_start
399
+ for ( int i = 0; i < FRAGMENTATION_DEGREE; i ++ ) {
400
+ v += a * simplexNoise(x);
401
+ x = x * 2.0 + shift;
402
+ a *= 0.5;
403
+ }
404
+ #pragma unroll_loop_end
405
+ return v;
406
+ }
407
+
408
+ void main() {
409
+ vPosition = position;
410
+ vNoise = fbm(vec4((position / uNoise) - vec3(0.0, uTime * uSpeed, 0.0), 0.0));
411
+ vNoise = scale(vNoise, -1.0, 1.0, 0.0, 1.0);
412
+
413
+ gl_Position = projectionMatrix * modelViewMatrix * vec4(vPosition, 1.0);
414
+ }
415
+ `),le=new i.SphereBufferGeometry(1,300,300),re=[];for(var x=0;x<2;x++)re.push(new i.Vector2(Math.sin(x)/2+1,x*2-.8));var ue=new i.LatheBufferGeometry(re,300),ce=function(r){A(n,r);function n(e){var t=r.call(this)||this;t.needsRender=!0;var o;if(e instanceof i.BufferGeometry)o=e;else switch(e){case"ring":o=ue;break;case"circle":default:o=le;break}t.uniforms={uTime:{value:0},uColor1:{value:new i.Color("rgb(255, 177, 20)")},uColor2:{value:new i.Color("rgb(255, 0, 0)")},uNoise:{value:1.2},uSpeed:{value:1},uOpacity:{value:1}},t.defines={FRAGMENTATION_DEGREE:2};var s=new i.Mesh(o,new i.ShaderMaterial({uniforms:t.uniforms,defines:t.defines,vertexShader:te,fragmentShader:ee,transparent:!0,depthWrite:!1,side:i.BackSide})),a=new i.Mesh(o,new i.ShaderMaterial({uniforms:t.uniforms,defines:t.defines,vertexShader:te,fragmentShader:ee,transparent:!0,depthWrite:!1,side:i.FrontSide}));return s.scale.setScalar(.1),a.scale.setScalar(.1),t.add(s),t.add(a),t}return n.prototype.setTime=function(e){this.startTime===void 0&&(this.startTime=e),this.uniforms.uTime.value=(e-this.startTime)/1e3,this.needsRender=!0},Object.defineProperty(n.prototype,"color1",{get:function(){return this.uniforms.uColor1.value},set:function(e){this.uniforms.uColor1.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color2",{get:function(){return this.uniforms.uColor2.value},set:function(e){this.uniforms.uColor2.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this.uniforms.uSpeed.value},set:function(e){this.uniforms.uSpeed.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"noise",{get:function(){return this.uniforms.uSpeed.value},set:function(e){this.uniforms.uSpeed.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"opacity",{get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.uOpacity.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"fragmentationDegree",{get:function(){return this.defines.FRAGMENTATION_DEGREE},set:function(e){this.defines.FRAGMENTATION_DEGREE=e,this.traverse(function(t){t instanceof i.Mesh&&t.material instanceof i.ShaderMaterial&&(t.material.needsUpdate=!0)}),this.needsRender=!0},enumerable:!1,configurable:!0}),n}(i.Group),ve=`
416
+ uniform vec3 uLightColor;
417
+ uniform vec3 uSpotPosition;
418
+ uniform float uAttenuation;
419
+ uniform float uAnglePower;
420
+
421
+ varying vec3 vNormal;
422
+ varying vec3 vWorldPosition;
423
+ varying float vNoise;
424
+
425
+ void main() {
426
+ float intensity;
427
+ intensity = distance(vWorldPosition, uSpotPosition) / uAttenuation;
428
+ intensity = 1.0 - clamp(intensity, 0.1, 1.0);
429
+
430
+ vec3 normal = vec3(vNormal.x, vNormal.y, abs(vNormal.z));
431
+ float angleIntensity = pow( dot(normal, vec3(0.0, 0.0, 1.0)), uAnglePower * vNoise );
432
+ intensity = intensity * angleIntensity * vNoise;
433
+ gl_FragColor = vec4( uLightColor, intensity );
434
+ }
435
+ `,de=`
436
+
437
+ uniform float uTime;
438
+
439
+ varying vec3 vNormal;
440
+ varying vec3 vWorldPosition;
441
+ varying float vNoise;
442
+
443
+ `.concat(Q,`
444
+ `).concat(K,`
445
+
446
+ void main(){
447
+
448
+ vNormal = normalize( normalMatrix * normal );
449
+ vec4 worldPosition = modelMatrix * vec4( position, 1.0 );
450
+ vWorldPosition = worldPosition.xyz;
451
+ vNoise = simplexNoise(vec4(position - vec3(0.0, uTime * 0.4, 0.0), 0));
452
+ vNoise = scale(vNoise, -1.0, 1.0, 0.5, 1.0);
453
+
454
+ gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
455
+ }
456
+ `),pe=function(r){A(n,r);function n(e,t,o){e===void 0&&(e=1),t===void 0&&(t=.1),o===void 0&&(o=.2);var s=r.call(this)||this;s.needsRender=!0,s.uniforms={uTime:{value:0},uAttenuation:{value:e*.9},uAnglePower:{value:2},uSpotPosition:{value:s.position},uLightColor:{value:new i.Color(16777215)}};var a=new i.CylinderBufferGeometry(t,o,e,64,20,!0);a.applyMatrix4(new i.Matrix4().makeTranslation(0,-e/2,0)),a.applyMatrix4(new i.Matrix4().makeRotationX(-Math.PI/2));var l=new i.Mesh(a,new i.ShaderMaterial({uniforms:s.uniforms,vertexShader:de,fragmentShader:ve,transparent:!0,side:i.FrontSide,depthWrite:!1}));return s.add(l),s}return n.prototype.setTime=function(e){this.startTime===void 0&&(this.startTime=e),this.uniforms.uTime.value=(e-this.startTime)/1e3,this.needsRender=!0},Object.defineProperty(n.prototype,"attenuation",{get:function(){return this.uniforms.uAttenuation.value},set:function(e){this.uniforms.uAttenuation.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"anglePower",{get:function(){return this.uniforms.uAnglePower.value},set:function(e){this.uniforms.uAnglePower.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.uniforms.uLightColor.value},set:function(e){this.uniforms.uLightColor.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),n}(i.Group),ne=`
457
+ uniform vec3 uColor;
458
+ uniform float uOpacity;
459
+ varying vec3 vPosition;
460
+ varying float vNoise;
461
+
462
+ void main() {
463
+ float gradient = mix(0.0, 1.0, 1.0 + vPosition.y);
464
+ gl_FragColor = vec4(uColor, vNoise * gradient * uOpacity);
465
+ }
466
+ `,ie=`
467
+
468
+ uniform float uTime;
469
+ uniform float uSpeed;
470
+ uniform float uScale;
471
+ uniform float uExpand;
472
+ varying float vNoise;
473
+ varying vec3 vPosition;
474
+
475
+ `.concat(Q,`
476
+ `).concat(K,`
477
+
478
+ void main(){
479
+
480
+ vPosition = position;
481
+ vNoise = simplexNoise(vec4(position.x * uScale, position.y + uTime * uSpeed, 0.0, 0.0));
482
+ vNoise = scale(vNoise, 0.0, 1.0, 0.5, 1.0);
483
+
484
+ vec4 transformed = vec4( position, 1.0 );
485
+ transformed.x = transformed.x * scale(abs(transformed.y), 0.0, 1.0, 1.0, uExpand);
486
+
487
+ gl_Position = projectionMatrix * modelViewMatrix * transformed;
488
+ }
489
+ `),J=new i.PlaneBufferGeometry(1,1,200,200);J.translate(0,-.5,0);var fe=function(r){A(n,r);function n(){var e=r.call(this)||this;e.needsRender=!0;var t=e.outer=new i.Mesh(J,new i.ShaderMaterial({uniforms:{uTime:{value:0},uSpeed:{value:.75},uScale:{value:2},uExpand:{value:1.2},uColor:{value:new i.Color(.5,.5,.9)},uOpacity:{value:1}},vertexShader:ie,fragmentShader:ne,transparent:!0,side:i.DoubleSide,depthWrite:!1})),o=e.inner=new i.Mesh(J,new i.ShaderMaterial({uniforms:{uTime:{value:0},uSpeed:{value:2},uScale:{value:20},uExpand:{value:1.2},uColor:{value:new i.Color(1,1,1)},uOpacity:{value:.1}},vertexShader:ie,fragmentShader:ne,transparent:!0,side:i.DoubleSide,depthWrite:!1}));return t.rotateX(-Math.PI/2),o.rotateX(-Math.PI/2),e.add(t),e.add(o),e}return n.prototype.setTime=function(e){this.startTime===void 0&&(this.startTime=e);var t=(e-this.startTime)/1e3;this.inner.material.uniforms.uTime.value=t,this.outer.material.uniforms.uTime.value=t,this.needsRender=!0},Object.defineProperty(n.prototype,"expand",{get:function(){return this.outer.material.uniforms.uExpand.value},set:function(e){this.outer.material.uniforms.uExpand.value=e,this.inner.material.uniforms.uExpand.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this.inner.material.uniforms.speed.value},set:function(e){this.inner.material.uniforms.speed.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"color",{get:function(){return this.outer.material.uniforms.color.value},set:function(e){this.outer.material.uniforms.color.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"flowColor",{get:function(){return this.inner.material.uniforms.color.value},set:function(e){this.inner.material.uniforms.color.value=e,this.needsRender=!0},enumerable:!1,configurable:!0}),n}(i.Group);function g(r,n){return r+n*(Math.random()-.5)}function S(r,n){var e=new i.Vector3(Math.random()-.5,Math.random()-.5,Math.random()-.5);return new i.Vector3().addVectors(r,new i.Vector3().multiplyVectors(n,e))}function w(r,n,e){return r*e+n*e*e/2}function he(r,n,e){return new i.Vector3(w(r.x,n.x,e),w(r.y,n.y,e),w(r.z,n.z,e))}function Z(r,n){for(var e=r.times.length,t=0;t<e&&n>r.times[t];)t++;if(t==0)return r.values[0];if(t==e)return r.values[e-1];var o=(n-r.times[t-1])/(r.times[t]-r.times[t-1]),s=r.values[t-1],a=r.values[t];return typeof r.values[0]=="number"?s+o*(a-s):s.clone().lerp(a,o)}var me=function(){function r(n,e,t,o,s,a,l,u,v,d,p,c,f,m){this.birthTime=n,this.deathAge=e,this.position=t.clone(),this.velocity=o.clone(),this.acceleration=s.clone(),this.angle=a,this.angleVelocity=l,this.angleAcceleration=u,this.color=v,this.colorTween=d,this.size=p,this.sizeTween=c,this.opacity=f,this.opacityTween=m}return r.prototype.getAlive=function(n){return this.deathAge>n-this.birthTime},r.prototype.getState=function(n){var e=this.getAlive(n),t=Math.min(this.deathAge,n-this.birthTime),o=he(this.velocity,this.acceleration,t).add(this.position),s=w(this.angleVelocity,this.angleAcceleration,t)+this.angle,a=(this.sizeTween?Z(this.sizeTween,t):0)+this.size,l=(this.colorTween?Z(this.colorTween,t):new i.Vector3).add(this.color),u=new i.Color().setHSL(l.x,l.y,l.z),v=(this.opacityTween?Z(this.opacityTween,t):0)+this.opacity;return{alive:e,age:t,position:o,angle:s,size:a,color:u,opacity:v}},r}(),ye=`
490
+ attribute vec3 color;
491
+ attribute float opacity;
492
+ attribute float size;
493
+ attribute float alive; // float used as boolean (0 = false, 1 = true)
494
+
495
+ varying vec4 vColor;
496
+
497
+ #if defined(USE_MAP)
498
+ attribute float angle;
499
+ varying float vAngle;
500
+ #endif
501
+
502
+ void main() {
503
+ if (alive > 0.5) {
504
+ vColor = vec4(color, opacity);
505
+ } else {
506
+ vColor = vec4(0.0, 0.0, 0.0, 0.0);
507
+ }
508
+ #if defined(USE_MAP)
509
+ vAngle = angle;
510
+ #endif
511
+ vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
512
+ gl_PointSize = size * ( 300.0 / length( mvPosition.xyz ) );
513
+ gl_Position = projectionMatrix * mvPosition;
514
+ }
515
+ `,ge=`
516
+ varying vec4 vColor;
517
+
518
+ #if defined(USE_MAP)
519
+ uniform sampler2D map;
520
+ varying float vAngle;
521
+ #endif
522
+
523
+ void main() {
524
+ gl_FragColor = vColor;
525
+
526
+ #if defined(USE_MAP)
527
+ float c = cos(vAngle);
528
+ float s = sin(vAngle);
529
+
530
+ // rotate UV coordinates to rotate texture
531
+ vec2 rotatedUV = vec2(
532
+ c * (gl_PointCoord.x - 0.5) + s * (gl_PointCoord.y - 0.5) + 0.5,
533
+ c * (gl_PointCoord.y - 0.5) - s * (gl_PointCoord.x - 0.5) + 0.5
534
+ );
535
+ vec4 rotatedTexture = texture2D(map, rotatedUV);
536
+ gl_FragColor = vColor * rotatedTexture;
537
+ #endif
538
+ }
539
+ `,be=function(r){A(n,r);function n(e){var t=this,o,s,a,l,u,v,d,p,c,f,m,b,h,_,P,T,M,E,C,z,B,R,N,V,O,j,D,F,U,G,I,X,H,k,L,q,W,Y,y=new i.BufferGeometry;y.setAttribute("position",new i.BufferAttribute(new Float32Array,3)),y.setAttribute("alive",new i.BufferAttribute(new Float32Array,1)),y.setAttribute("color",new i.BufferAttribute(new Float32Array,3)),y.setAttribute("opacity",new i.BufferAttribute(new Float32Array,1)),y.setAttribute("size",new i.BufferAttribute(new Float32Array,1)),y.setAttribute("angle",new i.BufferAttribute(new Float32Array,1));var oe=new i.ShaderMaterial({uniforms:{map:{value:(o=e.texture)!==null&&o!==void 0?o:null}},defines:{USE_MAP:!!e.texture},vertexShader:ye,fragmentShader:ge,transparent:!0,blending:(s=e.blending)!==null&&s!==void 0?s:i.NormalBlending,depthWrite:!1});return t=r.call(this,y,oe)||this,t.instances=[],t.needsRender=!0,t.birthTime=Date.now()/1e3,t.disposed=!1,t.paused=!1,t.positionBase=(l=(a=e.positionBase)===null||a===void 0?void 0:a.clone())!==null&&l!==void 0?l:new i.Vector3,t.positionStyle=(u=e.positionStyle)!==null&&u!==void 0?u:"CUBE",t.positionCubeSpread=(d=(v=e.positionCubeSpread)===null||v===void 0?void 0:v.clone())!==null&&d!==void 0?d:new i.Vector3,t.positionSphereSpread=(p=e.positionSphereSpread)!==null&&p!==void 0?p:0,t.velocityStyle=(c=e.velocityStyle)!==null&&c!==void 0?c:"CUBE",t.velocityCubeBase=(m=(f=e.velocityCubeBase)===null||f===void 0?void 0:f.clone())!==null&&m!==void 0?m:new i.Vector3,t.velocityCubeSpread=(h=(b=e.velocityCubeSpread)===null||b===void 0?void 0:b.clone())!==null&&h!==void 0?h:new i.Vector3,t.velocitySphereBase=(_=e.velocitySphereBase)!==null&&_!==void 0?_:0,t.velocitySphereSpread=(P=e.velocitySphereSpread)!==null&&P!==void 0?P:0,t.accelerationBase=(M=(T=e.accelerationBase)===null||T===void 0?void 0:T.clone())!==null&&M!==void 0?M:new i.Vector3,t.accelerationSpread=(C=(E=e.accelerationSpread)===null||E===void 0?void 0:E.clone())!==null&&C!==void 0?C:new i.Vector3,t.angleBase=(z=e.angleBase)!==null&&z!==void 0?z:0,t.angleSpread=(B=e.angleSpread)!==null&&B!==void 0?B:0,t.angleVelocityBase=(R=e.angleVelocityBase)!==null&&R!==void 0?R:0,t.angleVelocitySpread=(N=e.angleVelocitySpread)!==null&&N!==void 0?N:0,t.angleAccelerationBase=(V=e.angleAccelerationBase)!==null&&V!==void 0?V:0,t.angleAccelerationSpread=(O=e.angleAccelerationSpread)!==null&&O!==void 0?O:0,t.sizeBase=(j=e.sizeBase)!==null&&j!==void 0?j:.1,t.sizeSpread=(D=e.sizeSpread)!==null&&D!==void 0?D:0,t.sizeTween=(F=e.sizeTween)!==null&&F!==void 0?F:null,t.colorBase=(G=(U=e.colorBase)===null||U===void 0?void 0:U.clone())!==null&&G!==void 0?G:new i.Vector3,t.colorSpread=(X=(I=e.colorSpread)===null||I===void 0?void 0:I.clone())!==null&&X!==void 0?X:new i.Vector3,t.colorTween=(H=e.colorTween)!==null&&H!==void 0?H:null,t.opacityBase=((k=e.opacityBase)!==null&&k!==void 0?k:e.opacityTween)?0:1,t.opacitySpread=(L=e.opacitySpread)!==null&&L!==void 0?L:0,t.opacityTween=(q=e.opacityTween)!==null&&q!==void 0?q:null,t.particlesPerSecond=(W=e.particlesPerSecond)!==null&&W!==void 0?W:60,t.particleDeathAge=(Y=e.particleDeathAge)!==null&&Y!==void 0?Y:1,t}return Object.defineProperty(n.prototype,"texture",{get:function(){return this.material.uniforms.map.value},set:function(e){this.material.uniforms.map.value=e,e===null?this.material.defines.USE_MAP!==!1&&(this.material.defines.USE_MAP=!1,this.material.needsUpdate=!0):this.material.defines.USE_MAP!==!0&&(this.material.defines.USE_MAP=!0,this.material.needsUpdate=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"blending",{get:function(){return this.material.blending},set:function(e){this.material.blending=e},enumerable:!1,configurable:!0}),n.prototype.createInstance=function(e){var t=this.positionBase.clone();switch(this.positionStyle){case"CUBE":{t=S(this.positionBase,this.positionCubeSpread);break}case"SPHERE":{var o=2*Math.random()-1,s=Math.PI*2*Math.random(),a=Math.sqrt(1-o*o),l=new i.Vector3(a*Math.cos(s),a*Math.sin(s),o);t=new i.Vector3().addVectors(this.positionBase,l.multiplyScalar(this.positionSphereSpread));break}}var u=new i.Vector3;switch(this.velocityStyle){case"CUBE":{u=S(this.velocityCubeBase,this.velocityCubeSpread);break}case"SPHERE":{var v=new i.Vector3().subVectors(t,this.positionBase),d=g(this.velocitySphereBase,this.velocitySphereSpread);u=v.normalize().multiplyScalar(d);break}}var p=new me(e,this.particleDeathAge,t,u,S(this.accelerationBase,this.accelerationSpread),g(this.angleBase,this.angleSpread),g(this.angleVelocityBase,this.angleVelocitySpread),g(this.angleAccelerationBase,this.angleAccelerationSpread),S(this.colorBase,this.colorSpread),this.colorTween,g(this.sizeBase,this.sizeSpread),this.sizeTween,g(this.opacityBase,this.opacitySpread),this.opacityTween);return p},n.prototype.pause=function(){this.paused!==!0&&(this.paused=!0,this.birthTime=Date.now()/1e3)},n.prototype.play=function(){this.paused!==!1&&(this.paused=!1,this.birthTime=Date.now()/1e3)},n.prototype.setTime=function(e){if(!this.disposed){e/=1e3;var t=e-this.birthTime,o=Math.ceil(this.particlesPerSecond*this.particleDeathAge);if(this.geometry.attributes.position.count<o){var s=new Float32Array(o*3);s.set(this.geometry.attributes.position.array,0);var a=new i.BufferAttribute(s,3);a.needsUpdate=!0,this.geometry.setAttribute("position",a)}if(this.geometry.attributes.alive.count<o){var l=new Float32Array(o);l.set(this.geometry.attributes.alive.array,0);var a=new i.BufferAttribute(l,1);a.needsUpdate=!0,this.geometry.setAttribute("alive",a)}if(this.geometry.attributes.color.count<o){var u=new Float32Array(o*3);u.set(this.geometry.attributes.color.array,0);var a=new i.BufferAttribute(u,3);a.needsUpdate=!0,this.geometry.setAttribute("color",a)}if(this.geometry.attributes.opacity.count<o){var v=new Float32Array(o);v.set(this.geometry.attributes.opacity.array,0);var a=new i.BufferAttribute(v,1);a.needsUpdate=!0,this.geometry.setAttribute("opacity",a)}if(this.geometry.attributes.size.count<o){var d=new Float32Array(o);d.set(this.geometry.attributes.size.array,0);var a=new i.BufferAttribute(d,1);a.needsUpdate=!0,this.geometry.setAttribute("size",a)}if(this.geometry.attributes.angle.count<o){var p=new Float32Array(o);p.set(this.geometry.attributes.angle.array,0);var a=new i.BufferAttribute(p,1);a.needsUpdate=!0,this.geometry.setAttribute("angle",a)}this.instances.length<o&&(this.instances.length=o);for(var c=0;c<this.instances.length;c++){var f=this.instances[c];if(c<o&&this.paused===!1&&(f===void 0||f.getAlive(e)===!1)){var m=this.particleDeathAge/o*c;if(t>m){var b=e-(t-m)%this.particleDeathAge;this.instances[c]=f=this.createInstance(b)}}if(f){var h=f.getState(e),s=h.position,l=h.alive,u=h.color,v=h.opacity,d=h.size,p=h.angle;this.geometry.attributes.position.setXYZ(c,s.x,s.y,s.z),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.alive.setX(c,l?1:0),this.geometry.attributes.alive.needsUpdate=!0,this.geometry.attributes.color.setXYZ(c,u.r,u.g,u.b),this.geometry.attributes.color.needsUpdate=!0,this.geometry.attributes.opacity.setX(c,v),this.geometry.attributes.opacity.needsUpdate=!0,this.geometry.attributes.size.setX(c,d),this.geometry.attributes.size.needsUpdate=!0,this.geometry.attributes.angle.setX(c,p),this.geometry.attributes.angle.needsUpdate=!0}}this.geometry.computeBoundingBox(),this.geometry.boundingSphere||(this.geometry.boundingSphere=new i.Sphere),this.geometry.boundingBox.getBoundingSphere(this.geometry.boundingSphere),this.needsRender=!0}},n.prototype.dispose=function(){var e;this.disposed=!0,this.geometry.dispose(),(e=this.texture)===null||e===void 0||e.dispose(),this.material.dispose()},n}(i.Points);exports.Airflow=fe;exports.Flame=ce;exports.Particle=be;exports.SpotLight=pe;