@roomle/web-sdk 2.102.0 → 2.103.0-alpha.10
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.
- package/lib/{TextGeometry-a4cc5df3.nomodule.js → TextGeometry-05d9b32c.nomodule.js} +2 -2
- package/lib/{TextGeometry-a4cc5df3.nomodule.js.map → TextGeometry-05d9b32c.nomodule.js.map} +1 -1
- package/lib/{TextGeometry-086a9652.js → TextGeometry-35cc09bc.js} +2 -2
- package/lib/{TextGeometry-086a9652.js.map → TextGeometry-35cc09bc.js.map} +1 -1
- package/lib/{banana-for-scale-aa9ae31c.js → banana-for-scale-6c83a836.js} +2 -2
- package/lib/{banana-for-scale-aa9ae31c.js.map → banana-for-scale-6c83a836.js.map} +1 -1
- package/lib/{banana-for-scale-8dcfdf88.nomodule.js → banana-for-scale-8660fae6.nomodule.js} +2 -2
- package/lib/{banana-for-scale-8dcfdf88.nomodule.js.map → banana-for-scale-8660fae6.nomodule.js.map} +1 -1
- package/lib/{budgeteer-measure-99563441.js → budgeteer-measure-20f928bc.js} +2 -2
- package/lib/{budgeteer-measure-99563441.js.map → budgeteer-measure-20f928bc.js.map} +1 -1
- package/lib/budgeteer-measure.nomodule.js +1 -1
- package/lib/camera-behaviour-4f312343.nomodule.js +2 -0
- package/lib/{camera-behaviour-0d164e7e.nomodule.js.map → camera-behaviour-4f312343.nomodule.js.map} +1 -1
- package/lib/camera-behaviour-991b5c0b.js +2 -0
- package/lib/{camera-behaviour-14d56b59.js.map → camera-behaviour-991b5c0b.js.map} +1 -1
- package/lib/{component-dimensioning-853a0674.nomodule.js → component-dimensioning-3a5cc798.nomodule.js} +2 -2
- package/lib/component-dimensioning-3a5cc798.nomodule.js.map +1 -0
- package/lib/{component-dimensioning-fc4437c3.js → component-dimensioning-62f71ef7.js} +2 -2
- package/lib/component-dimensioning-62f71ef7.js.map +1 -0
- package/lib/{component-raycast-helper-cec7384a.nomodule.js → component-raycast-helper-759cf366.nomodule.js} +2 -2
- package/lib/component-raycast-helper-759cf366.nomodule.js.map +1 -0
- package/lib/{component-raycast-helper-ae3f1912.js → component-raycast-helper-db7df09b.js} +2 -2
- package/lib/component-raycast-helper-db7df09b.js.map +1 -0
- package/lib/{configurator-8723cac0.nomodule.js → configurator-8bfc51d9.nomodule.js} +2 -2
- package/lib/configurator-8bfc51d9.nomodule.js.map +1 -0
- package/lib/{configurator-5ad51cfc.js → configurator-e4550c5c.js} +2 -2
- package/lib/configurator-e4550c5c.js.map +1 -0
- package/lib/configurator-main-be228ca9.js +2 -0
- package/lib/configurator-main-be228ca9.js.map +1 -0
- package/lib/configurator-main.nomodule.js +1 -1
- package/lib/{continuous-drawing-helper-b23c3b6c.nomodule.js → continuous-drawing-helper-deb22b55.nomodule.js} +2 -2
- package/lib/continuous-drawing-helper-deb22b55.nomodule.js.map +1 -0
- package/lib/{continuous-drawing-helper-48c342f1.js → continuous-drawing-helper-fd1a89b0.js} +2 -2
- package/lib/continuous-drawing-helper-fd1a89b0.js.map +1 -0
- package/lib/{default-light-setting-d5086893.js → default-light-setting-712b96bf.js} +2 -2
- package/lib/default-light-setting-712b96bf.js.map +1 -0
- package/lib/{default-light-setting-1e7f91d4.nomodule.js → default-light-setting-a24273c1.nomodule.js} +2 -2
- package/lib/default-light-setting-a24273c1.nomodule.js.map +1 -0
- package/lib/definitions/common-core/src/cameracontrol/camera-control-2d.d.ts +1 -0
- package/lib/definitions/common-core/src/cameracontrol/camera-control.d.ts +1 -1
- package/lib/definitions/common-core/src/configurator-kernel-access.d.ts +7 -7
- package/lib/definitions/common-core/src/utils/clipboard-manager.d.ts +40 -0
- package/lib/definitions/common-core/src/utils/common-utils.d.ts +1 -0
- package/lib/definitions/common-core/src/utils/shims.d.ts +5 -0
- package/lib/definitions/common-core/src/utils/stats-helper.d.ts +3 -1
- package/lib/definitions/common-core/src/utils/threejs-utils.d.ts +2 -2
- package/lib/definitions/common-core/src/view-model/configurator-view-model.d.ts +4 -7
- package/lib/definitions/common-core/src/webgl/roomle-component-factory.d.ts +9 -2
- package/lib/definitions/common-core/src/webgl/roomle-webgl-renderer.d.ts +2 -0
- package/lib/definitions/configurator-core/src/utils/animation/animation-helper.d.ts +4 -0
- package/lib/definitions/configurator-core/src/utils/animation/animation-value-map.d.ts +16 -0
- package/lib/definitions/configurator-core/src/utils/animation/object-animations.d.ts +21 -0
- package/lib/definitions/configurator-core/src/utils/component-dimensioning-helper.d.ts +5 -0
- package/lib/definitions/packages/common-core/src/cameracontrol/camera-control-2d.d.ts +1 -0
- package/lib/definitions/packages/common-core/src/cameracontrol/camera-control.d.ts +1 -1
- package/lib/definitions/packages/common-core/src/configurator-kernel-access.d.ts +7 -7
- package/lib/definitions/packages/common-core/src/utils/clipboard-manager.d.ts +40 -0
- package/lib/definitions/packages/common-core/src/utils/common-utils.d.ts +1 -0
- package/lib/definitions/packages/common-core/src/utils/shims.d.ts +5 -0
- package/lib/definitions/packages/common-core/src/utils/stats-helper.d.ts +3 -1
- package/lib/definitions/packages/common-core/src/utils/threejs-utils.d.ts +2 -2
- package/lib/definitions/packages/common-core/src/view-model/configurator-view-model.d.ts +4 -7
- package/lib/definitions/packages/common-core/src/webgl/roomle-component-factory.d.ts +9 -2
- package/lib/definitions/packages/common-core/src/webgl/roomle-webgl-renderer.d.ts +2 -0
- package/lib/definitions/packages/configurator-core/src/utils/animation/animation-helper.d.ts +4 -0
- package/lib/definitions/packages/configurator-core/src/utils/animation/animation-value-map.d.ts +16 -0
- package/lib/definitions/packages/configurator-core/src/utils/animation/object-animations.d.ts +21 -0
- package/lib/definitions/packages/configurator-core/src/utils/component-dimensioning-helper.d.ts +5 -0
- package/lib/definitions/packages/planner-core/src/roomle-planner.d.ts +8 -0
- package/lib/definitions/packages/planner-core/src/webgl/planner-scene-event-handler.d.ts +2 -1
- package/lib/definitions/packages/planner-core/src/webgl/planner-scene-manager.d.ts +5 -2
- package/lib/definitions/packages/typings/kernel.d.ts +10 -0
- package/lib/definitions/planner-core/src/roomle-planner.d.ts +8 -0
- package/lib/definitions/planner-core/src/webgl/planner-scene-event-handler.d.ts +2 -1
- package/lib/definitions/planner-core/src/webgl/planner-scene-manager.d.ts +5 -2
- package/lib/definitions/typings/kernel.d.ts +10 -0
- package/lib/{dimensioning-helper-55fe20c9.nomodule.js → dimensioning-helper-4efda249.nomodule.js} +2 -2
- package/lib/{dimensioning-helper-55fe20c9.nomodule.js.map → dimensioning-helper-4efda249.nomodule.js.map} +1 -1
- package/lib/{dimensioning-helper-34ef3d47.js → dimensioning-helper-ebd08396.js} +2 -2
- package/lib/{dimensioning-helper-34ef3d47.js.map → dimensioning-helper-ebd08396.js.map} +1 -1
- package/lib/{external-objects-bf17eb19.js → external-objects-17074bf3.js} +2 -2
- package/lib/external-objects-17074bf3.js.map +1 -0
- package/lib/{external-objects-5b70c3f6.nomodule.js → external-objects-925fd215.nomodule.js} +2 -2
- package/lib/external-objects-925fd215.nomodule.js.map +1 -0
- package/lib/{glb-viewer-e3cd0e11.nomodule.js → glb-viewer-3685ee7f.nomodule.js} +2 -2
- package/lib/{glb-viewer-e3cd0e11.nomodule.js.map → glb-viewer-3685ee7f.nomodule.js.map} +1 -1
- package/lib/{glb-viewer-712da271.js → glb-viewer-7fbc96b9.js} +2 -2
- package/lib/{glb-viewer-712da271.js.map → glb-viewer-7fbc96b9.js.map} +1 -1
- package/lib/{glb-viewer-camera-behaviour-f25534ed.js → glb-viewer-camera-behaviour-39efe6c5.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-39efe6c5.js.map +1 -0
- package/lib/{glb-viewer-camera-behaviour-e7fbbfc3.nomodule.js → glb-viewer-camera-behaviour-6b750f8e.nomodule.js} +2 -2
- package/lib/glb-viewer-camera-behaviour-6b750f8e.nomodule.js.map +1 -0
- package/lib/glb-viewer-main-33e85689.js +2 -0
- package/lib/glb-viewer-main-33e85689.js.map +1 -0
- package/lib/glb-viewer-main.nomodule.js +1 -1
- package/lib/{imos-ix-poc-export-helper-24030336.js → imos-ix-poc-export-helper-29398641.js} +2 -2
- package/lib/imos-ix-poc-export-helper-29398641.js.map +1 -0
- package/lib/{imos-ix-poc-export-helper-0017e3fd.nomodule.js → imos-ix-poc-export-helper-4741d139.nomodule.js} +2 -2
- package/lib/imos-ix-poc-export-helper-4741d139.nomodule.js.map +1 -0
- package/lib/legacy/{Object3D-1f141c55.legacy.js → Object3D-75e1e628.legacy.js} +2 -2
- package/lib/legacy/{Object3D-1f141c55.legacy.js.map → Object3D-75e1e628.legacy.js.map} +1 -1
- package/lib/legacy/{SpotLightHelper-28698e83.legacy.js → SpotLightHelper-28e7faac.legacy.js} +2 -2
- package/lib/legacy/{SpotLightHelper-28698e83.legacy.js.map → SpotLightHelper-28e7faac.legacy.js.map} +1 -1
- package/lib/legacy/{TextGeometry-559f28ce.legacy.js → TextGeometry-207abd3d.legacy.js} +2 -2
- package/lib/legacy/{TextGeometry-559f28ce.legacy.js.map → TextGeometry-207abd3d.legacy.js.map} +1 -1
- package/lib/legacy/{banana-for-scale-d77b8dc6.legacy.js → banana-for-scale-1b850ab9.legacy.js} +2 -2
- package/lib/legacy/{banana-for-scale-d77b8dc6.legacy.js.map → banana-for-scale-1b850ab9.legacy.js.map} +1 -1
- package/lib/legacy/budgeteer-measure.legacy.js +1 -1
- package/lib/legacy/camera-behaviour-0b9ec1ec.legacy.js +2 -0
- package/lib/legacy/{camera-behaviour-23bab80a.legacy.js.map → camera-behaviour-0b9ec1ec.legacy.js.map} +1 -1
- package/lib/legacy/{component-dimensioning-c77dcc34.legacy.js → component-dimensioning-afd7ecd9.legacy.js} +2 -2
- package/lib/legacy/component-dimensioning-afd7ecd9.legacy.js.map +1 -0
- package/lib/legacy/{component-raycast-helper-65d9c1fd.legacy.js → component-raycast-helper-95538dc2.legacy.js} +2 -2
- package/lib/legacy/component-raycast-helper-95538dc2.legacy.js.map +1 -0
- package/lib/legacy/{configurator-c0e88dcd.legacy.js → configurator-128e3379.legacy.js} +2 -2
- package/lib/legacy/configurator-128e3379.legacy.js.map +1 -0
- package/lib/legacy/configurator-main.legacy.js +1 -1
- package/lib/legacy/{continuous-drawing-helper-e82c2750.legacy.js → continuous-drawing-helper-21f87a0c.legacy.js} +2 -2
- package/lib/legacy/continuous-drawing-helper-21f87a0c.legacy.js.map +1 -0
- package/lib/legacy/{default-light-setting-990c6493.legacy.js → default-light-setting-09a26050.legacy.js} +2 -2
- package/lib/legacy/default-light-setting-09a26050.legacy.js.map +1 -0
- package/lib/legacy/{dimensioning-helper-dc715aea.legacy.js → dimensioning-helper-6e468199.legacy.js} +2 -2
- package/lib/legacy/{dimensioning-helper-dc715aea.legacy.js.map → dimensioning-helper-6e468199.legacy.js.map} +1 -1
- package/lib/legacy/external-objects-f737274d.legacy.js +2 -0
- package/lib/legacy/external-objects-f737274d.legacy.js.map +1 -0
- package/lib/legacy/{glb-viewer-4f994d39.legacy.js → glb-viewer-33a640fa.legacy.js} +2 -2
- package/lib/legacy/{glb-viewer-4f994d39.legacy.js.map → glb-viewer-33a640fa.legacy.js.map} +1 -1
- package/lib/legacy/glb-viewer-camera-behaviour-c1b4b19d.legacy.js +2 -0
- package/lib/legacy/glb-viewer-camera-behaviour-c1b4b19d.legacy.js.map +1 -0
- package/lib/legacy/glb-viewer-main.legacy.js +1 -1
- package/lib/legacy/{imos-ix-poc-export-helper-2d394260.legacy.js → imos-ix-poc-export-helper-6189c274.legacy.js} +2 -2
- package/lib/legacy/imos-ix-poc-export-helper-6189c274.legacy.js.map +1 -0
- package/lib/legacy/{main-thread-to-worker-32b45184.legacy.js → main-thread-to-worker-aeb15e90.legacy.js} +3 -3
- package/lib/legacy/{main-thread-to-worker-32b45184.legacy.js.map → main-thread-to-worker-aeb15e90.legacy.js.map} +1 -1
- package/lib/legacy/{material-viewer-cc40b019.legacy.js → material-viewer-1228ef85.legacy.js} +2 -2
- package/lib/legacy/material-viewer-1228ef85.legacy.js.map +1 -0
- package/lib/legacy/material-viewer-main.legacy.js +1 -1
- package/lib/legacy/planner-b9e5ffbc.legacy.js +2 -0
- package/lib/legacy/{planner-37dc335e.legacy.js.map → planner-b9e5ffbc.legacy.js.map} +1 -1
- package/lib/legacy/planner-main.legacy.js +1 -1
- package/lib/legacy/query-params-helper-e441981e.legacy.js +2 -0
- package/lib/legacy/query-params-helper-e441981e.legacy.js.map +1 -0
- package/lib/legacy/roomle-configurator-43d8a7df.legacy.js +2 -0
- package/lib/legacy/{roomle-configurator-a6e7332c.legacy.js.map → roomle-configurator-43d8a7df.legacy.js.map} +1 -1
- package/lib/legacy/roomle-dependency-injection-2bec3106.legacy.js +9 -0
- package/lib/legacy/{roomle-dependency-injection-5ce79815.legacy.js.map → roomle-dependency-injection-2bec3106.legacy.js.map} +1 -1
- package/lib/legacy/roomle-sdk.legacy.js +1 -1
- package/lib/legacy/{script-loader-bf8a2793.legacy.js → script-loader-38e47782.legacy.js} +2 -2
- package/lib/legacy/script-loader-38e47782.legacy.js.map +1 -0
- package/lib/legacy/static/{ConfiguratorKernel-1823630e6676ba71.js → ConfiguratorKernel-ac54e8ae29bb7515.js} +4 -4
- package/lib/legacy/static/ConfiguratorKernel-da09c45efbeb2fdd.wasm +0 -0
- package/lib/legacy/static/RoomleCore-8cf2b942b45cec2a.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-85bddb604456b4a2.wasm +0 -0
- package/lib/legacy/static/stats.min-f33a6e08a8864d76.js +5 -0
- package/lib/legacy/stats-helper-92c1c890.legacy.js +2 -0
- package/lib/legacy/stats-helper-92c1c890.legacy.js.map +1 -0
- package/lib/legacy/tools-core-e0c3315a.legacy.js +2 -0
- package/lib/legacy/tools-core-e0c3315a.legacy.js.map +1 -0
- package/lib/{main-thread-to-worker-ff3b0e7b.nomodule.js → main-thread-to-worker-707405ab.nomodule.js} +3 -3
- package/lib/{main-thread-to-worker-ff3b0e7b.nomodule.js.map → main-thread-to-worker-707405ab.nomodule.js.map} +1 -1
- package/lib/{main-thread-to-worker-4e303a39.js → main-thread-to-worker-7f1066e7.js} +2 -2
- package/lib/{main-thread-to-worker-4e303a39.js.map → main-thread-to-worker-7f1066e7.js.map} +1 -1
- package/lib/{material-viewer-93d6acb8.js → material-viewer-1dbc1e3d.js} +2 -2
- package/lib/material-viewer-1dbc1e3d.js.map +1 -0
- package/lib/{material-viewer-6628574f.nomodule.js → material-viewer-371f5323.nomodule.js} +2 -2
- package/lib/material-viewer-371f5323.nomodule.js.map +1 -0
- package/lib/material-viewer-main-7fdc93e1.js +2 -0
- package/lib/material-viewer-main-7fdc93e1.js.map +1 -0
- package/lib/material-viewer-main.nomodule.js +1 -1
- package/lib/planner-93186afa.nomodule.js +2 -0
- package/lib/{planner-19f8a155.nomodule.js.map → planner-93186afa.nomodule.js.map} +1 -1
- package/lib/planner-bc628b35.js +2 -0
- package/lib/{planner-afeaf336.js.map → planner-bc628b35.js.map} +1 -1
- package/lib/planner-main-168461d3.js +2 -0
- package/lib/planner-main-168461d3.js.map +1 -0
- package/lib/planner-main.nomodule.js +1 -1
- package/lib/{query-params-helper-8731c6a6.nomodule.js → query-params-helper-0afbebc7.nomodule.js} +2 -2
- package/lib/query-params-helper-0afbebc7.nomodule.js.map +1 -0
- package/lib/{query-params-helper-7890ce69.js → query-params-helper-37c38de6.js} +2 -2
- package/lib/query-params-helper-37c38de6.js.map +1 -0
- package/lib/roomle-configurator-41f23a2f.js +2 -0
- package/lib/{roomle-configurator-7e9c0e56.js.map → roomle-configurator-41f23a2f.js.map} +1 -1
- package/lib/roomle-configurator-cfab1f28.nomodule.js +2 -0
- package/lib/{roomle-configurator-d874a5e8.nomodule.js.map → roomle-configurator-cfab1f28.nomodule.js.map} +1 -1
- package/lib/{roomle-dependency-injection-4fc591ec.js → roomle-dependency-injection-09bb062e.js} +3 -3
- package/lib/{roomle-dependency-injection-4fc591ec.js.map → roomle-dependency-injection-09bb062e.js.map} +1 -1
- package/lib/roomle-dependency-injection-d47addce.nomodule.js +9 -0
- package/lib/{roomle-dependency-injection-f723396b.nomodule.js.map → roomle-dependency-injection-d47addce.nomodule.js.map} +1 -1
- package/lib/{roomle-sdk-c5e991fd.js → roomle-sdk-378d58d9.js} +2 -2
- package/lib/roomle-sdk-378d58d9.js.map +1 -0
- package/lib/roomle-sdk.nomodule.js +1 -1
- package/lib/{script-loader-bfb0d681.js → script-loader-45a2970b.js} +2 -2
- package/lib/script-loader-45a2970b.js.map +1 -0
- package/lib/{script-loader-c85582e0.nomodule.js → script-loader-a5da478a.nomodule.js} +2 -2
- package/lib/script-loader-a5da478a.nomodule.js.map +1 -0
- package/lib/static/{ConfiguratorKernel-1823630e6676ba71.js → ConfiguratorKernel-ac54e8ae29bb7515.js} +1 -1
- package/lib/static/{ConfiguratorKernel-1823630e6676ba71.js.map → ConfiguratorKernel-ac54e8ae29bb7515.js.map} +1 -1
- package/lib/static/ConfiguratorKernel-da09c45efbeb2fdd.wasm +0 -0
- package/lib/static/RoomleCore-8cf2b942b45cec2a.wasm +0 -0
- package/lib/static/RoomleToolsCore-85bddb604456b4a2.wasm +0 -0
- package/lib/static/stats.min-f33a6e08a8864d76.js +1 -0
- package/lib/static/stats.min-f33a6e08a8864d76.js.map +1 -0
- package/lib/stats-helper-29fa1f6a.js +2 -0
- package/lib/stats-helper-29fa1f6a.js.map +1 -0
- package/lib/stats-helper-c8dfbc61.nomodule.js +2 -0
- package/lib/stats-helper-c8dfbc61.nomodule.js.map +1 -0
- package/lib/{tools-core-7860864f.nomodule.js → tools-core-11e769cf.nomodule.js} +2 -2
- package/lib/tools-core-11e769cf.nomodule.js.map +1 -0
- package/lib/{tools-core-2c50d898.js → tools-core-d48c6f2a.js} +2 -2
- package/lib/tools-core-d48c6f2a.js.map +1 -0
- package/package.json +2 -2
- package/lib/camera-behaviour-0d164e7e.nomodule.js +0 -2
- package/lib/camera-behaviour-14d56b59.js +0 -2
- package/lib/component-dimensioning-853a0674.nomodule.js.map +0 -1
- package/lib/component-dimensioning-fc4437c3.js.map +0 -1
- package/lib/component-raycast-helper-ae3f1912.js.map +0 -1
- package/lib/component-raycast-helper-cec7384a.nomodule.js.map +0 -1
- package/lib/configurator-5ad51cfc.js.map +0 -1
- package/lib/configurator-8723cac0.nomodule.js.map +0 -1
- package/lib/configurator-main-2a68cb31.js +0 -2
- package/lib/configurator-main-2a68cb31.js.map +0 -1
- package/lib/continuous-drawing-helper-48c342f1.js.map +0 -1
- package/lib/continuous-drawing-helper-b23c3b6c.nomodule.js.map +0 -1
- package/lib/default-light-setting-1e7f91d4.nomodule.js.map +0 -1
- package/lib/default-light-setting-d5086893.js.map +0 -1
- package/lib/external-objects-5b70c3f6.nomodule.js.map +0 -1
- package/lib/external-objects-bf17eb19.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-e7fbbfc3.nomodule.js.map +0 -1
- package/lib/glb-viewer-camera-behaviour-f25534ed.js.map +0 -1
- package/lib/glb-viewer-main-13939147.js +0 -2
- package/lib/glb-viewer-main-13939147.js.map +0 -1
- package/lib/imos-ix-poc-export-helper-0017e3fd.nomodule.js.map +0 -1
- package/lib/imos-ix-poc-export-helper-24030336.js.map +0 -1
- package/lib/legacy/camera-behaviour-23bab80a.legacy.js +0 -2
- package/lib/legacy/component-dimensioning-c77dcc34.legacy.js.map +0 -1
- package/lib/legacy/component-raycast-helper-65d9c1fd.legacy.js.map +0 -1
- package/lib/legacy/configurator-c0e88dcd.legacy.js.map +0 -1
- package/lib/legacy/continuous-drawing-helper-e82c2750.legacy.js.map +0 -1
- package/lib/legacy/default-light-setting-990c6493.legacy.js.map +0 -1
- package/lib/legacy/external-objects-01d5a216.legacy.js +0 -2
- package/lib/legacy/external-objects-01d5a216.legacy.js.map +0 -1
- package/lib/legacy/glb-viewer-camera-behaviour-ff03ed91.legacy.js +0 -2
- package/lib/legacy/glb-viewer-camera-behaviour-ff03ed91.legacy.js.map +0 -1
- package/lib/legacy/imos-ix-poc-export-helper-2d394260.legacy.js.map +0 -1
- package/lib/legacy/material-viewer-cc40b019.legacy.js.map +0 -1
- package/lib/legacy/planner-37dc335e.legacy.js +0 -2
- package/lib/legacy/query-params-helper-ad6b6b64.legacy.js +0 -2
- package/lib/legacy/query-params-helper-ad6b6b64.legacy.js.map +0 -1
- package/lib/legacy/roomle-configurator-a6e7332c.legacy.js +0 -2
- package/lib/legacy/roomle-dependency-injection-5ce79815.legacy.js +0 -9
- package/lib/legacy/script-loader-bf8a2793.legacy.js.map +0 -1
- package/lib/legacy/static/ConfiguratorKernel-4dd90e7297c160df.wasm +0 -0
- package/lib/legacy/static/RoomleCore-e79bd0b738d894cc.wasm +0 -0
- package/lib/legacy/static/RoomleToolsCore-88ea393d57d1de74.wasm +0 -0
- package/lib/legacy/stats-helper-b22817b5.legacy.js +0 -2
- package/lib/legacy/stats-helper-b22817b5.legacy.js.map +0 -1
- package/lib/legacy/tools-core-5de572bf.legacy.js +0 -2
- package/lib/legacy/tools-core-5de572bf.legacy.js.map +0 -1
- package/lib/material-viewer-6628574f.nomodule.js.map +0 -1
- package/lib/material-viewer-93d6acb8.js.map +0 -1
- package/lib/material-viewer-main-898e1ee5.js +0 -2
- package/lib/material-viewer-main-898e1ee5.js.map +0 -1
- package/lib/planner-19f8a155.nomodule.js +0 -2
- package/lib/planner-afeaf336.js +0 -2
- package/lib/planner-main-0448770e.js +0 -2
- package/lib/planner-main-0448770e.js.map +0 -1
- package/lib/query-params-helper-7890ce69.js.map +0 -1
- package/lib/query-params-helper-8731c6a6.nomodule.js.map +0 -1
- package/lib/roomle-configurator-7e9c0e56.js +0 -2
- package/lib/roomle-configurator-d874a5e8.nomodule.js +0 -2
- package/lib/roomle-dependency-injection-f723396b.nomodule.js +0 -9
- package/lib/roomle-sdk-c5e991fd.js.map +0 -1
- package/lib/script-loader-bfb0d681.js.map +0 -1
- package/lib/script-loader-c85582e0.nomodule.js.map +0 -1
- package/lib/static/ConfiguratorKernel-4dd90e7297c160df.wasm +0 -0
- package/lib/static/RoomleCore-e79bd0b738d894cc.wasm +0 -0
- package/lib/static/RoomleToolsCore-88ea393d57d1de74.wasm +0 -0
- package/lib/stats-helper-1fd27b96.nomodule.js +0 -2
- package/lib/stats-helper-1fd27b96.nomodule.js.map +0 -1
- package/lib/stats-helper-e9bf7cc5.js +0 -2
- package/lib/stats-helper-e9bf7cc5.js.map +0 -1
- package/lib/tools-core-2c50d898.js.map +0 -1
- package/lib/tools-core-7860864f.nomodule.js.map +0 -1
package/lib/legacy/{SpotLightHelper-28698e83.legacy.js → SpotLightHelper-28e7faac.legacy.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["./main-thread-to-worker-32b45184.legacy.js","./Object3D-1f141c55.legacy.js"],(function(t){var e,i,r,s,n,a,o,h,u,l,c,p,d,f,g,y,m,v,b,k,x,S,M,w,A,B,T,C,z,R,N,O,F,E,L,I;return{setters:[function(t){e=t.e,i=t.k,r=t.cd,s=t.bM,n=t._,a=t.a0,o=t.an},function(t){h=t.V,u=t.e,l=t.f,c=t.L,p=t.g,d=t.M,f=t.N,g=t.c,y=t.l,m=t.h,v=t.i,b=t.F,k=t.j,x=t.k,S=t.A,M=t.m,w=t.n,A=t.K,B=t.E,T=t.o,C=t.p,z=t.q,R=t.r,N=t.d,O=t.s,F=t.B,E=t.S,L=t.b,I=t.O}],execute:function(){var H=new h,W=new h,P=new h,X=new h,D=new h,q=new h,Z=new h,J=function(){return e((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new h,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new h(0,0,-1);i(this,t),this.origin=e,this.direction=r}),[{key:"set",value:function(t,e){return this.origin.copy(t),this.direction.copy(e),this}},{key:"copy",value:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}},{key:"at",value:function(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}},{key:"lookAt",value:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this}},{key:"recast",value:function(t){return this.origin.copy(this.at(t,H)),this}},{key:"closestPointToPoint",value:function(t,e){e.subVectors(t,this.origin);var i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(t){return Math.sqrt(this.distanceSqToPoint(t))}},{key:"distanceSqToPoint",value:function(t){var e=H.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(H.copy(this.origin).addScaledVector(this.direction,e),H.distanceToSquared(t))}},{key:"distanceSqToSegment",value:function(t,e,i,r){W.copy(t).add(e).multiplyScalar(.5),P.copy(e).sub(t).normalize(),X.copy(this.origin).sub(W);var s,n,a,o,h=.5*t.distanceTo(e),u=-this.direction.dot(P),l=X.dot(this.direction),c=-X.dot(P),p=X.lengthSq(),d=Math.abs(1-u*u);if(d>0)if(n=u*l-c,o=h*d,(s=u*c-l)>=0)if(n>=-o)if(n<=o){var f=1/d;a=(s*=f)*(s+u*(n*=f)+2*l)+n*(u*s+n+2*c)+p}else n=h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;else n=-h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;else n<=-o?a=-(s=Math.max(0,-(-u*h+l)))*s+(n=s>0?-h:Math.min(Math.max(-h,-c),h))*(n+2*c)+p:n<=o?(s=0,a=(n=Math.min(Math.max(-h,-c),h))*(n+2*c)+p):a=-(s=Math.max(0,-(u*h+l)))*s+(n=s>0?h:Math.min(Math.max(-h,-c),h))*(n+2*c)+p;else n=u>0?-h:h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;return i&&i.copy(this.origin).addScaledVector(this.direction,s),r&&r.copy(W).addScaledVector(P,n),a}},{key:"intersectSphere",value:function(t,e){H.subVectors(t.center,this.origin);var i=H.dot(this.direction),r=H.dot(H)-i*i,s=t.radius*t.radius;if(r>s)return null;var n=Math.sqrt(s-r),a=i-n,o=i+n;return o<0?null:a<0?this.at(o,e):this.at(a,e)}},{key:"intersectsSphere",value:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}},{key:"distanceToPlane",value:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}},{key:"intersectPlane",value:function(t,e){var i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}},{key:"intersectsPlane",value:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}},{key:"intersectBox",value:function(t,e){var i,r,s,n,a,o,h=1/this.direction.x,u=1/this.direction.y,l=1/this.direction.z,c=this.origin;return h>=0?(i=(t.min.x-c.x)*h,r=(t.max.x-c.x)*h):(i=(t.max.x-c.x)*h,r=(t.min.x-c.x)*h),u>=0?(s=(t.min.y-c.y)*u,n=(t.max.y-c.y)*u):(s=(t.max.y-c.y)*u,n=(t.min.y-c.y)*u),i>n||s>r?null:((s>i||isNaN(i))&&(i=s),(n<r||isNaN(r))&&(r=n),l>=0?(a=(t.min.z-c.z)*l,o=(t.max.z-c.z)*l):(a=(t.max.z-c.z)*l,o=(t.min.z-c.z)*l),i>o||a>r?null:((a>i||i!=i)&&(i=a),(o<r||r!=r)&&(r=o),r<0?null:this.at(i>=0?i:r,e)))}},{key:"intersectsBox",value:function(t){return null!==this.intersectBox(t,H)}},{key:"intersectTriangle",value:function(t,e,i,r,s){D.subVectors(e,t),q.subVectors(i,t),Z.crossVectors(D,q);var n,a=this.direction.dot(Z);if(a>0){if(r)return null;n=1}else{if(!(a<0))return null;n=-1,a=-a}X.subVectors(this.origin,t);var o=n*this.direction.dot(q.crossVectors(X,q));if(o<0)return null;var h=n*this.direction.dot(D.cross(X));if(h<0)return null;if(o+h>a)return null;var u=-n*X.dot(Z);return u<0?null:this.at(u/a,s)}},{key:"applyMatrix4",value:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}},{key:"equals",value:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),G=(new d).set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),V=(new d).set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Y(){var t={enabled:!0,workingColorSpace:c,spaces:{},convert:function(t,e,i){return!1!==this.enabled&&e!==i&&e&&i?(this.spaces[e].transfer===u&&(t.r=j(t.r),t.g=j(t.g),t.b=j(t.b)),this.spaces[e].primaries!==this.spaces[i].primaries&&(t.applyMatrix3(this.spaces[e].toXYZ),t.applyMatrix3(this.spaces[i].fromXYZ)),this.spaces[i].transfer===u&&(t.r=_(t.r),t.g=_(t.g),t.b=_(t.b)),t):t},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)},getPrimaries:function(t){return this.spaces[t].primaries},getTransfer:function(t){return t===f?p:this.spaces[t].transfer},getLuminanceCoefficients:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.workingColorSpace;return t.fromArray(this.spaces[e].luminanceCoefficients)},define:function(t){Object.assign(this.spaces,t)},_getMatrix:function(t,e,i){return t.copy(this.spaces[e].toXYZ).multiply(this.spaces[i].fromXYZ)},_getDrawingBufferColorSpace:function(t){return this.spaces[t].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.workingColorSpace;return this.spaces[t].workingColorSpaceConfig.unpackColorSpace}},e=[.64,.33,.3,.6,.15,.06],i=[.2126,.7152,.0722],s=[.3127,.329];return t.define(r(r({},c,{primaries:e,whitePoint:s,transfer:p,toXYZ:G,fromXYZ:V,luminanceCoefficients:i,workingColorSpaceConfig:{unpackColorSpace:l},outputColorSpaceConfig:{drawingBufferColorSpace:l}}),l,{primaries:e,whitePoint:s,transfer:u,toXYZ:G,fromXYZ:V,luminanceCoefficients:i,outputColorSpaceConfig:{drawingBufferColorSpace:l}})),t}var U=Y();function j(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function _(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}var $={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},K={h:0,s:0,l:0},Q={h:0,s:0,l:0};function tt(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}var et=function(){return e((function t(e,r,s){return i(this,t),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,r,s)}),[{key:"set",value:function(t,e,i){if(void 0===e&&void 0===i){var r=t;r&&r.isColor?this.copy(r):"number"==typeof r?this.setHex(r):"string"==typeof r&&this.setStyle(r)}else this.setRGB(t,e,i);return this}},{key:"setScalar",value:function(t){return this.r=t,this.g=t,this.b=t,this}},{key:"setHex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,U.toWorkingColorSpace(this,e),this}},{key:"setRGB",value:function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.workingColorSpace;return this.r=t,this.g=e,this.b=i,U.toWorkingColorSpace(this,r),this}},{key:"setHSL",value:function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.workingColorSpace;if(t=m(t,1),e=g(e,0,1),i=g(i,0,1),0===e)this.r=this.g=this.b=i;else{var s=i<=.5?i*(1+e):i+e-i*e,n=2*i-s;this.r=tt(n,s,t+1/3),this.g=tt(n,s,t),this.b=tt(n,s,t-1/3)}return U.toWorkingColorSpace(this,r),this}},{key:"setStyle",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;function r(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}if(e=/^(\w+)\(([^\)]*)\)/.exec(t)){var s,n=e[1],a=e[2];switch(n){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,i);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,i);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(e=/^\#([A-Fa-f\d]+)$/.exec(t)){var o=e[1],h=o.length;if(3===h)return this.setRGB(parseInt(o.charAt(0),16)/15,parseInt(o.charAt(1),16)/15,parseInt(o.charAt(2),16)/15,i);if(6===h)return this.setHex(parseInt(o,16),i);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,i);return this}},{key:"setColorName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,i=$[t.toLowerCase()];return void 0!==i?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}},{key:"copySRGBToLinear",value:function(t){return this.r=j(t.r),this.g=j(t.g),this.b=j(t.b),this}},{key:"copyLinearToSRGB",value:function(t){return this.r=_(t.r),this.g=_(t.g),this.b=_(t.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return U.fromWorkingColorSpace(it.copy(this),t),65536*Math.round(g(255*it.r,0,255))+256*Math.round(g(255*it.g,0,255))+Math.round(g(255*it.b,0,255))}},{key:"getHexString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return("000000"+this.getHex(t).toString(16)).slice(-6)}},{key:"getHSL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.workingColorSpace;U.fromWorkingColorSpace(it.copy(this),e);var i,r,s=it.r,n=it.g,a=it.b,o=Math.max(s,n,a),h=Math.min(s,n,a),u=(h+o)/2;if(h===o)i=0,r=0;else{var l=o-h;switch(r=u<=.5?l/(o+h):l/(2-o-h),o){case s:i=(n-a)/l+(n<a?6:0);break;case n:i=(a-s)/l+2;break;case a:i=(s-n)/l+4}i/=6}return t.h=i,t.s=r,t.l=u,t}},{key:"getRGB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.workingColorSpace;return U.fromWorkingColorSpace(it.copy(this),e),t.r=it.r,t.g=it.g,t.b=it.b,t}},{key:"getStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;U.fromWorkingColorSpace(it.copy(this),t);var e=it.r,i=it.g,r=it.b;return t!==l?"color(".concat(t," ").concat(e.toFixed(3)," ").concat(i.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(Math.round(255*e),",").concat(Math.round(255*i),",").concat(Math.round(255*r),")")}},{key:"offsetHSL",value:function(t,e,i){return this.getHSL(K),this.setHSL(K.h+t,K.s+e,K.l+i)}},{key:"add",value:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}},{key:"addColors",value:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}},{key:"addScalar",value:function(t){return this.r+=t,this.g+=t,this.b+=t,this}},{key:"sub",value:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}},{key:"multiply",value:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}},{key:"multiplyScalar",value:function(t){return this.r*=t,this.g*=t,this.b*=t,this}},{key:"lerp",value:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}},{key:"lerpColors",value:function(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}},{key:"lerpHSL",value:function(t,e){this.getHSL(K),t.getHSL(Q);var i=y(K.h,Q.h,e),r=y(K.s,Q.s,e),s=y(K.l,Q.l,e);return this.setHSL(i,r,s),this}},{key:"setFromVector3",value:function(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}},{key:"applyMatrix3",value:function(t){var e=this.r,i=this.g,r=this.b,s=t.elements;return this.r=s[0]*e+s[3]*i+s[6]*r,this.g=s[1]*e+s[4]*i+s[7]*r,this.b=s[2]*e+s[5]*i+s[8]*r,this}},{key:"equals",value:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}},{key:"fromBufferAttribute",value:function(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.r;case 2:return t.next=4,this.g;case 4:return t.next=6,this.b;case 6:case"end":return t.stop()}}),t,this)}))}])}(),it=new et;et.NAMES=$;var rt=0,st=function(t){function r(t){var e;return i(this,r),(e=a(this,r)).isLineBasicMaterial=!0,e.type="LineBasicMaterial",e.color=new et(16777215),e.map=null,e.linewidth=1,e.linecap="round",e.linejoin="round",e.fog=!0,e.setValues(t),e}return n(r,t),e(r,[{key:"copy",value:function(t){return o(r,"copy",this,3)([t]),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}])}(function(t){function r(){var t;return i(this,r),(t=a(this,r)).isMaterial=!0,Object.defineProperty(t,"id",{value:rt++}),t.uuid=T(),t.name="",t.type="Material",t.blending=v,t.side=b,t.vertexColors=!1,t.opacity=1,t.transparent=!1,t.alphaHash=!1,t.blendSrc=k,t.blendDst=x,t.blendEquation=S,t.blendSrcAlpha=null,t.blendDstAlpha=null,t.blendEquationAlpha=null,t.blendColor=new et(0,0,0),t.blendAlpha=0,t.depthFunc=M,t.depthTest=!0,t.depthWrite=!0,t.stencilWriteMask=255,t.stencilFunc=w,t.stencilRef=0,t.stencilFuncMask=255,t.stencilFail=A,t.stencilZFail=A,t.stencilZPass=A,t.stencilWrite=!1,t.clippingPlanes=null,t.clipIntersection=!1,t.clipShadows=!1,t.shadowSide=null,t.colorWrite=!0,t.precision=null,t.polygonOffset=!1,t.polygonOffsetFactor=0,t.polygonOffsetUnits=0,t.dithering=!1,t.alphaToCoverage=!1,t.premultipliedAlpha=!1,t.forceSinglePass=!1,t.visible=!0,t.toneMapped=!0,t.userData={},t.version=0,t._alphaTest=0,t}return n(r,t),e(r,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(t){if(void 0!==t)for(var e in t){var i=t[e];if(void 0!==i){var r=this[e];void 0!==r?r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[e]=i:console.warn("THREE.Material: '".concat(e,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(e,"' has value of undefined."))}}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(t){var e=[];for(var i in t){var r=t[i];delete r.metadata,e.push(r)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==v&&(i.blending=this.blending),this.side!==b&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),this.blendSrc!==k&&(i.blendSrc=this.blendSrc),this.blendDst!==x&&(i.blendDst=this.blendDst),this.blendEquation!==S&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==M&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==w&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==A&&(i.stencilFail=this.stencilFail),this.stencilZFail!==A&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==A&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),e){var s=r(t.textures),n=r(t.images);s.length>0&&(i.textures=s),n.length>0&&(i.images=n)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,i=null;if(null!==e){var r=e.length;i=new Array(r);for(var s=0;s!==r;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"onBuild",value:function(){console.warn("Material: onBuild() has been removed.")}}])}(B)),nt=new h,at=new N,ot=0,ht=function(){return e((function t(e,r){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i(this,t),Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:ot++}),this.name="",this.array=e,this.itemSize=r,this.count=void 0!==e?e.length/r:0,this.normalized=s,this.usage=R,this.updateRanges=[],this.gpuType=O,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"setUsage",value:function(t){return this.usage=t,this}},{key:"addUpdateRange",value:function(t,e){this.updateRanges.push({start:t,count:e})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}},{key:"copyAt",value:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var r=0,s=this.itemSize;r<s;r++)this.array[t+r]=e.array[i+r];return this}},{key:"copyArray",value:function(t){return this.array.set(t),this}},{key:"applyMatrix3",value:function(t){if(2===this.itemSize)for(var e=0,i=this.count;e<i;e++)at.fromBufferAttribute(this,e),at.applyMatrix3(t),this.setXY(e,at.x,at.y);else if(3===this.itemSize)for(var r=0,s=this.count;r<s;r++)nt.fromBufferAttribute(this,r),nt.applyMatrix3(t),this.setXYZ(r,nt.x,nt.y,nt.z);return this}},{key:"applyMatrix4",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.applyMatrix4(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"applyNormalMatrix",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.applyNormalMatrix(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"transformDirection",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.transformDirection(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"set",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(t,e),this}},{key:"getComponent",value:function(t,e){var i=this.array[t*this.itemSize+e];return this.normalized&&(i=C(i,this.array)),i}},{key:"setComponent",value:function(t,e,i){return this.normalized&&(i=z(i,this.array)),this.array[t*this.itemSize+e]=i,this}},{key:"getX",value:function(t){var e=this.array[t*this.itemSize];return this.normalized&&(e=C(e,this.array)),e}},{key:"setX",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize]=e,this}},{key:"getY",value:function(t){var e=this.array[t*this.itemSize+1];return this.normalized&&(e=C(e,this.array)),e}},{key:"setY",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+1]=e,this}},{key:"getZ",value:function(t){var e=this.array[t*this.itemSize+2];return this.normalized&&(e=C(e,this.array)),e}},{key:"setZ",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+2]=e,this}},{key:"getW",value:function(t){var e=this.array[t*this.itemSize+3];return this.normalized&&(e=C(e,this.array)),e}},{key:"setW",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+3]=e,this}},{key:"setXY",value:function(t,e,i){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array)),this.array[t+0]=e,this.array[t+1]=i,this}},{key:"setXYZ",value:function(t,e,i,r){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array),r=z(r,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=r,this}},{key:"setXYZW",value:function(t,e,i,r,s){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array),r=z(r,this.array),s=z(s,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=r,this.array[t+3]=s,this}},{key:"onUpload",value:function(t){return this.onUploadCallback=t,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==R&&(t.usage=this.usage),t}}])}(),ut=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Uint16Array(t),e,s])}return n(r,t),e(r)}(ht),lt=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Uint32Array(t),e,s])}return n(r,t),e(r)}(ht),ct=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Float32Array(t),e,s])}return n(r,t),e(r)}(ht),pt=0,dt=new L,ft=new I,gt=new h,yt=new F,mt=new F,vt=new h,bt=function(t){function r(){var t;return i(this,r),(t=a(this,r)).isBufferGeometry=!0,Object.defineProperty(t,"id",{value:pt++}),t.uuid=T(),t.name="",t.type="BufferGeometry",t.index=null,t.indirect=null,t.attributes={},t.morphAttributes={},t.morphTargetsRelative=!1,t.groups=[],t.boundingBox=null,t.boundingSphere=null,t.drawRange={start:0,count:1/0},t.userData={},t}return n(r,t),e(r,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(t){return Array.isArray(t)?this.index=new(function(t){for(var e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}(t)?lt:ut)(t,1):this.index=t,this}},{key:"setIndirect",value:function(t){return this.indirect=t,this}},{key:"getIndirect",value:function(){return this.indirect}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"setAttribute",value:function(t,e){return this.attributes[t]=e,this}},{key:"deleteAttribute",value:function(t){return delete this.attributes[t],this}},{key:"hasAttribute",value:function(t){return void 0!==this.attributes[t]}},{key:"addGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:t,count:e,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(t,e){this.drawRange.start=t,this.drawRange.count=e}},{key:"applyMatrix4",value:function(t){var e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var r=(new d).getNormalMatrix(t);i.applyNormalMatrix(r),i.needsUpdate=!0}var s=this.attributes.tangent;return void 0!==s&&(s.transformDirection(t),s.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(t){return dt.makeRotationFromQuaternion(t),this.applyMatrix4(dt),this}},{key:"rotateX",value:function(t){return dt.makeRotationX(t),this.applyMatrix4(dt),this}},{key:"rotateY",value:function(t){return dt.makeRotationY(t),this.applyMatrix4(dt),this}},{key:"rotateZ",value:function(t){return dt.makeRotationZ(t),this.applyMatrix4(dt),this}},{key:"translate",value:function(t,e,i){return dt.makeTranslation(t,e,i),this.applyMatrix4(dt),this}},{key:"scale",value:function(t,e,i){return dt.makeScale(t,e,i),this.applyMatrix4(dt),this}},{key:"lookAt",value:function(t){return ft.lookAt(t),ft.updateMatrix(),this.applyMatrix4(ft.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(gt).negate(),this.translate(gt.x,gt.y,gt.z),this}},{key:"setFromPoints",value:function(t){var e=this.getAttribute("position");if(void 0===e){for(var i=[],r=0,s=t.length;r<s;r++){var n=t[r];i.push(n.x,n.y,n.z||0)}this.setAttribute("position",new ct(i,3))}else{for(var a=Math.min(t.length,e.count),o=0;o<a;o++){var h=t[o];e.setXYZ(o,h.x,h.y,h.z||0)}t.length>e.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),e.needsUpdate=!0}return this}},{key:"computeBoundingBox",value:function(){null===this.boundingBox&&(this.boundingBox=new F);var t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),void this.boundingBox.set(new h(-1/0,-1/0,-1/0),new h(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(var i=0,r=e.length;i<r;i++){var s=e[i];yt.setFromBufferAttribute(s),this.morphTargetsRelative?(vt.addVectors(this.boundingBox.min,yt.min),this.boundingBox.expandByPoint(vt),vt.addVectors(this.boundingBox.max,yt.max),this.boundingBox.expandByPoint(vt)):(this.boundingBox.expandByPoint(yt.min),this.boundingBox.expandByPoint(yt.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}},{key:"computeBoundingSphere",value:function(){null===this.boundingSphere&&(this.boundingSphere=new E);var t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),void this.boundingSphere.set(new h,1/0);if(t){var i=this.boundingSphere.center;if(yt.setFromBufferAttribute(t),e)for(var r=0,s=e.length;r<s;r++){var n=e[r];mt.setFromBufferAttribute(n),this.morphTargetsRelative?(vt.addVectors(yt.min,mt.min),yt.expandByPoint(vt),vt.addVectors(yt.max,mt.max),yt.expandByPoint(vt)):(yt.expandByPoint(mt.min),yt.expandByPoint(mt.max))}yt.getCenter(i);for(var a=0,o=0,u=t.count;o<u;o++)vt.fromBufferAttribute(t,o),a=Math.max(a,i.distanceToSquared(vt));if(e)for(var l=0,c=e.length;l<c;l++)for(var p=e[l],d=this.morphTargetsRelative,f=0,g=p.count;f<g;f++)vt.fromBufferAttribute(p,f),d&&(gt.fromBufferAttribute(t,f),vt.add(gt)),a=Math.max(a,i.distanceToSquared(vt));this.boundingSphere.radius=Math.sqrt(a),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}},{key:"computeTangents",value:function(){var t=this.index,e=this.attributes;if(null!==t&&void 0!==e.position&&void 0!==e.normal&&void 0!==e.uv){var i=e.position,r=e.normal,s=e.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new ht(new Float32Array(4*i.count),4));for(var n=this.getAttribute("tangent"),a=[],o=[],u=0;u<i.count;u++)a[u]=new h,o[u]=new h;var l=new h,c=new h,p=new h,d=new N,f=new N,g=new N,y=new h,m=new h,v=this.groups;0===v.length&&(v=[{start:0,count:t.count}]);for(var b=0,k=v.length;b<k;++b)for(var x=v[b],S=x.start,M=S,w=S+x.count;M<w;M+=3)I(t.getX(M+0),t.getX(M+1),t.getX(M+2));for(var A=new h,B=new h,T=new h,C=new h,z=0,R=v.length;z<R;++z)for(var O=v[z],F=O.start,E=F,L=F+O.count;E<L;E+=3)H(t.getX(E+0)),H(t.getX(E+1)),H(t.getX(E+2))}else console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");function I(t,e,r){l.fromBufferAttribute(i,t),c.fromBufferAttribute(i,e),p.fromBufferAttribute(i,r),d.fromBufferAttribute(s,t),f.fromBufferAttribute(s,e),g.fromBufferAttribute(s,r),c.sub(l),p.sub(l),f.sub(d),g.sub(d);var n=1/(f.x*g.y-g.x*f.y);isFinite(n)&&(y.copy(c).multiplyScalar(g.y).addScaledVector(p,-f.y).multiplyScalar(n),m.copy(p).multiplyScalar(f.x).addScaledVector(c,-g.x).multiplyScalar(n),a[t].add(y),a[e].add(y),a[r].add(y),o[t].add(m),o[e].add(m),o[r].add(m))}function H(t){T.fromBufferAttribute(r,t),C.copy(T);var e=a[t];A.copy(e),A.sub(T.multiplyScalar(T.dot(e))).normalize(),B.crossVectors(C,e);var i=B.dot(o[t])<0?-1:1;n.setXYZW(t,A.x,A.y,A.z,i)}}},{key:"computeVertexNormals",value:function(){var t=this.index,e=this.getAttribute("position");if(void 0!==e){var i=this.getAttribute("normal");if(void 0===i)i=new ht(new Float32Array(3*e.count),3),this.setAttribute("normal",i);else for(var r=0,s=i.count;r<s;r++)i.setXYZ(r,0,0,0);var n=new h,a=new h,o=new h,u=new h,l=new h,c=new h,p=new h,d=new h;if(t)for(var f=0,g=t.count;f<g;f+=3){var y=t.getX(f+0),m=t.getX(f+1),v=t.getX(f+2);n.fromBufferAttribute(e,y),a.fromBufferAttribute(e,m),o.fromBufferAttribute(e,v),p.subVectors(o,a),d.subVectors(n,a),p.cross(d),u.fromBufferAttribute(i,y),l.fromBufferAttribute(i,m),c.fromBufferAttribute(i,v),u.add(p),l.add(p),c.add(p),i.setXYZ(y,u.x,u.y,u.z),i.setXYZ(m,l.x,l.y,l.z),i.setXYZ(v,c.x,c.y,c.z)}else for(var b=0,k=e.count;b<k;b+=3)n.fromBufferAttribute(e,b+0),a.fromBufferAttribute(e,b+1),o.fromBufferAttribute(e,b+2),p.subVectors(o,a),d.subVectors(n,a),p.cross(d),i.setXYZ(b+0,p.x,p.y,p.z),i.setXYZ(b+1,p.x,p.y,p.z),i.setXYZ(b+2,p.x,p.y,p.z);this.normalizeNormals(),i.needsUpdate=!0}}},{key:"normalizeNormals",value:function(){for(var t=this.attributes.normal,e=0,i=t.count;e<i;e++)vt.fromBufferAttribute(t,e),vt.normalize(),t.setXYZ(e,vt.x,vt.y,vt.z)}},{key:"toNonIndexed",value:function(){function t(t,e){for(var i=t.array,r=t.itemSize,s=t.normalized,n=new i.constructor(e.length*r),a=0,o=0,h=0,u=e.length;h<u;h++){a=t.isInterleavedBufferAttribute?e[h]*t.data.stride+t.offset:e[h]*r;for(var l=0;l<r;l++)n[o++]=i[a++]}return new ht(n,r,s)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;var e=new r,i=this.index.array,s=this.attributes;for(var n in s){var a=t(s[n],i);e.setAttribute(n,a)}var o=this.morphAttributes;for(var h in o){for(var u=[],l=o[h],c=0,p=l.length;c<p;c++){var d=t(l[c],i);u.push(d)}e.morphAttributes[h]=u}e.morphTargetsRelative=this.morphTargetsRelative;for(var f=this.groups,g=0,y=f.length;g<y;g++){var m=f[g];e.addGroup(m.start,m.count,m.materialIndex)}return e}},{key:"toJSON",value:function(){var t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(var i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};var r=this.index;null!==r&&(t.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var s=this.attributes;for(var n in s){var a=s[n];t.data.attributes[n]=a.toJSON(t.data)}var o={},h=!1;for(var u in this.morphAttributes){for(var l=this.morphAttributes[u],c=[],p=0,d=l.length;p<d;p++){var f=l[p];c.push(f.toJSON(t.data))}c.length>0&&(o[u]=c,h=!0)}h&&(t.data.morphAttributes=o,t.data.morphTargetsRelative=this.morphTargetsRelative);var g=this.groups;g.length>0&&(t.data.groups=JSON.parse(JSON.stringify(g)));var y=this.boundingSphere;return null!==y&&(t.data.boundingSphere={center:y.center.toArray(),radius:y.radius}),t}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var e={};this.name=t.name;var i=t.index;null!==i&&this.setIndex(i.clone(e));var r=t.attributes;for(var s in r){var n=r[s];this.setAttribute(s,n.clone(e))}var a=t.morphAttributes;for(var o in a){for(var h=[],u=a[o],l=0,c=u.length;l<c;l++)h.push(u[l].clone(e));this.morphAttributes[o]=h}this.morphTargetsRelative=t.morphTargetsRelative;for(var p=t.groups,d=0,f=p.length;d<f;d++){var g=p[d];this.addGroup(g.start,g.count,g.materialIndex)}var y=t.boundingBox;null!==y&&(this.boundingBox=y.clone());var m=t.boundingSphere;return null!==m&&(this.boundingSphere=m.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}])}(B),kt=new h,xt=new h,St=new L,Mt=new J,wt=new E,At=new h,Bt=new h,Tt=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bt,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new st;return i(this,r),(t=a(this,r)).isLine=!0,t.type="Line",t.geometry=e,t.material=s,t.updateMorphTargets(),t}return n(r,t),e(r,[{key:"copy",value:function(t,e){return o(r,"copy",this,3)([t,e]),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}},{key:"computeLineDistances",value:function(){var t=this.geometry;if(null===t.index){for(var e=t.attributes.position,i=[0],r=1,s=e.count;r<s;r++)kt.fromBufferAttribute(e,r-1),xt.fromBufferAttribute(e,r),i[r]=i[r-1],i[r]+=kt.distanceTo(xt);t.setAttribute("lineDistance",new ct(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}},{key:"raycast",value:function(t,e){var i=this.geometry,r=this.matrixWorld,s=t.params.Line.threshold,n=i.drawRange;if(null===i.boundingSphere&&i.computeBoundingSphere(),wt.copy(i.boundingSphere),wt.applyMatrix4(r),wt.radius+=s,!1!==t.ray.intersectsSphere(wt)){St.copy(r).invert(),Mt.copy(t.ray).applyMatrix4(St);var a=s/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,h=this.isLineSegments?2:1,u=i.index,l=i.attributes.position;if(null!==u){for(var c=Math.max(0,n.start),p=Math.min(u.count,n.start+n.count),d=c,f=p-1;d<f;d+=h){var g=u.getX(d),y=u.getX(d+1),m=Ct(this,t,Mt,o,g,y,d);m&&e.push(m)}if(this.isLineLoop){var v=u.getX(p-1),b=u.getX(c),k=Ct(this,t,Mt,o,v,b,p-1);k&&e.push(k)}}else{for(var x=Math.max(0,n.start),S=Math.min(l.count,n.start+n.count),M=x,w=S-1;M<w;M+=h){var A=Ct(this,t,Mt,o,M,M+1,M);A&&e.push(A)}if(this.isLineLoop){var B=Ct(this,t,Mt,o,S-1,x,S-1);B&&e.push(B)}}}}},{key:"updateMorphTargets",value:function(){var t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){var i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var r=0,s=i.length;r<s;r++){var n=i[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=r}}}}}])}(I);function Ct(t,e,i,r,s,n,a){var o=t.geometry.attributes.position;if(kt.fromBufferAttribute(o,s),xt.fromBufferAttribute(o,n),!(i.distanceSqToSegment(kt,xt,At,Bt)>r)){At.applyMatrix4(t.matrixWorld);var h=e.ray.origin.distanceTo(At);if(!(h<e.near||h>e.far))return{distance:h,point:Bt.clone().applyMatrix4(t.matrixWorld),index:a,face:null,faceIndex:null,barycoord:null,object:t}}}var zt=new h,Rt=new h,Nt=function(t){function r(t,e){var s;return i(this,r),(s=a(this,r,[t,e])).isLineSegments=!0,s.type="LineSegments",s}return n(r,t),e(r,[{key:"computeLineDistances",value:function(){var t=this.geometry;if(null===t.index){for(var e=t.attributes.position,i=[],r=0,s=e.count;r<s;r+=2)zt.fromBufferAttribute(e,r),Rt.fromBufferAttribute(e,r+1),i[r]=0===r?0:i[r-1],i[r+1]=i[r]+zt.distanceTo(Rt);t.setAttribute("lineDistance",new ct(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}])}(Tt),Ot=new h;t("SpotLightHelper",function(t){function r(t,e){var s;i(this,r),(s=a(this,r)).light=t,s.matrixAutoUpdate=!1,s.color=e,s.type="SpotLightHelper";for(var n=new bt,o=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],h=0,u=1;h<32;h++,u++){var l=h/32*Math.PI*2,c=u/32*Math.PI*2;o.push(Math.cos(l),Math.sin(l),1,Math.cos(c),Math.sin(c),1)}n.setAttribute("position",new ct(o,3));var p=new st({fog:!1,toneMapped:!1});return s.cone=new Nt(n,p),s.add(s.cone),s.update(),s}return n(r,t),e(r,[{key:"dispose",value:function(){this.cone.geometry.dispose(),this.cone.material.dispose()}},{key:"update",value:function(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),this.parent?(this.parent.updateWorldMatrix(!0),this.matrix.copy(this.parent.matrixWorld).invert().multiply(this.light.matrixWorld)):this.matrix.copy(this.light.matrixWorld),this.matrixWorld.copy(this.light.matrixWorld);var t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Ot.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(Ot),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}])}(I))}}}));
|
|
2
|
-
//# sourceMappingURL=SpotLightHelper-
|
|
1
|
+
System.register(["./main-thread-to-worker-aeb15e90.legacy.js","./Object3D-75e1e628.legacy.js"],(function(t){var e,i,r,s,n,a,o,h,u,l,c,p,d,f,g,y,m,v,b,k,x,S,M,w,A,B,T,C,z,R,N,O,F,E,L,I;return{setters:[function(t){e=t.e,i=t.k,r=t.ce,s=t.bM,n=t._,a=t.a0,o=t.an},function(t){h=t.V,u=t.e,l=t.f,c=t.L,p=t.g,d=t.M,f=t.N,g=t.c,y=t.l,m=t.h,v=t.i,b=t.F,k=t.j,x=t.k,S=t.A,M=t.m,w=t.n,A=t.K,B=t.E,T=t.o,C=t.p,z=t.q,R=t.r,N=t.d,O=t.s,F=t.B,E=t.S,L=t.b,I=t.O}],execute:function(){var H=new h,W=new h,P=new h,X=new h,D=new h,q=new h,Z=new h,J=function(){return e((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new h,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new h(0,0,-1);i(this,t),this.origin=e,this.direction=r}),[{key:"set",value:function(t,e){return this.origin.copy(t),this.direction.copy(e),this}},{key:"copy",value:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}},{key:"at",value:function(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}},{key:"lookAt",value:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this}},{key:"recast",value:function(t){return this.origin.copy(this.at(t,H)),this}},{key:"closestPointToPoint",value:function(t,e){e.subVectors(t,this.origin);var i=e.dot(this.direction);return i<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,i)}},{key:"distanceToPoint",value:function(t){return Math.sqrt(this.distanceSqToPoint(t))}},{key:"distanceSqToPoint",value:function(t){var e=H.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(H.copy(this.origin).addScaledVector(this.direction,e),H.distanceToSquared(t))}},{key:"distanceSqToSegment",value:function(t,e,i,r){W.copy(t).add(e).multiplyScalar(.5),P.copy(e).sub(t).normalize(),X.copy(this.origin).sub(W);var s,n,a,o,h=.5*t.distanceTo(e),u=-this.direction.dot(P),l=X.dot(this.direction),c=-X.dot(P),p=X.lengthSq(),d=Math.abs(1-u*u);if(d>0)if(n=u*l-c,o=h*d,(s=u*c-l)>=0)if(n>=-o)if(n<=o){var f=1/d;a=(s*=f)*(s+u*(n*=f)+2*l)+n*(u*s+n+2*c)+p}else n=h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;else n=-h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;else n<=-o?a=-(s=Math.max(0,-(-u*h+l)))*s+(n=s>0?-h:Math.min(Math.max(-h,-c),h))*(n+2*c)+p:n<=o?(s=0,a=(n=Math.min(Math.max(-h,-c),h))*(n+2*c)+p):a=-(s=Math.max(0,-(u*h+l)))*s+(n=s>0?h:Math.min(Math.max(-h,-c),h))*(n+2*c)+p;else n=u>0?-h:h,a=-(s=Math.max(0,-(u*n+l)))*s+n*(n+2*c)+p;return i&&i.copy(this.origin).addScaledVector(this.direction,s),r&&r.copy(W).addScaledVector(P,n),a}},{key:"intersectSphere",value:function(t,e){H.subVectors(t.center,this.origin);var i=H.dot(this.direction),r=H.dot(H)-i*i,s=t.radius*t.radius;if(r>s)return null;var n=Math.sqrt(s-r),a=i-n,o=i+n;return o<0?null:a<0?this.at(o,e):this.at(a,e)}},{key:"intersectsSphere",value:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}},{key:"distanceToPlane",value:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var i=-(this.origin.dot(t.normal)+t.constant)/e;return i>=0?i:null}},{key:"intersectPlane",value:function(t,e){var i=this.distanceToPlane(t);return null===i?null:this.at(i,e)}},{key:"intersectsPlane",value:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0}},{key:"intersectBox",value:function(t,e){var i,r,s,n,a,o,h=1/this.direction.x,u=1/this.direction.y,l=1/this.direction.z,c=this.origin;return h>=0?(i=(t.min.x-c.x)*h,r=(t.max.x-c.x)*h):(i=(t.max.x-c.x)*h,r=(t.min.x-c.x)*h),u>=0?(s=(t.min.y-c.y)*u,n=(t.max.y-c.y)*u):(s=(t.max.y-c.y)*u,n=(t.min.y-c.y)*u),i>n||s>r?null:((s>i||isNaN(i))&&(i=s),(n<r||isNaN(r))&&(r=n),l>=0?(a=(t.min.z-c.z)*l,o=(t.max.z-c.z)*l):(a=(t.max.z-c.z)*l,o=(t.min.z-c.z)*l),i>o||a>r?null:((a>i||i!=i)&&(i=a),(o<r||r!=r)&&(r=o),r<0?null:this.at(i>=0?i:r,e)))}},{key:"intersectsBox",value:function(t){return null!==this.intersectBox(t,H)}},{key:"intersectTriangle",value:function(t,e,i,r,s){D.subVectors(e,t),q.subVectors(i,t),Z.crossVectors(D,q);var n,a=this.direction.dot(Z);if(a>0){if(r)return null;n=1}else{if(!(a<0))return null;n=-1,a=-a}X.subVectors(this.origin,t);var o=n*this.direction.dot(q.crossVectors(X,q));if(o<0)return null;var h=n*this.direction.dot(D.cross(X));if(h<0)return null;if(o+h>a)return null;var u=-n*X.dot(Z);return u<0?null:this.at(u/a,s)}},{key:"applyMatrix4",value:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}},{key:"equals",value:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},{key:"clone",value:function(){return(new this.constructor).copy(this)}}])}(),G=(new d).set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),V=(new d).set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Y(){var t={enabled:!0,workingColorSpace:c,spaces:{},convert:function(t,e,i){return!1!==this.enabled&&e!==i&&e&&i?(this.spaces[e].transfer===u&&(t.r=j(t.r),t.g=j(t.g),t.b=j(t.b)),this.spaces[e].primaries!==this.spaces[i].primaries&&(t.applyMatrix3(this.spaces[e].toXYZ),t.applyMatrix3(this.spaces[i].fromXYZ)),this.spaces[i].transfer===u&&(t.r=_(t.r),t.g=_(t.g),t.b=_(t.b)),t):t},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)},getPrimaries:function(t){return this.spaces[t].primaries},getTransfer:function(t){return t===f?p:this.spaces[t].transfer},getLuminanceCoefficients:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.workingColorSpace;return t.fromArray(this.spaces[e].luminanceCoefficients)},define:function(t){Object.assign(this.spaces,t)},_getMatrix:function(t,e,i){return t.copy(this.spaces[e].toXYZ).multiply(this.spaces[i].fromXYZ)},_getDrawingBufferColorSpace:function(t){return this.spaces[t].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.workingColorSpace;return this.spaces[t].workingColorSpaceConfig.unpackColorSpace}},e=[.64,.33,.3,.6,.15,.06],i=[.2126,.7152,.0722],s=[.3127,.329];return t.define(r(r({},c,{primaries:e,whitePoint:s,transfer:p,toXYZ:G,fromXYZ:V,luminanceCoefficients:i,workingColorSpaceConfig:{unpackColorSpace:l},outputColorSpaceConfig:{drawingBufferColorSpace:l}}),l,{primaries:e,whitePoint:s,transfer:u,toXYZ:G,fromXYZ:V,luminanceCoefficients:i,outputColorSpaceConfig:{drawingBufferColorSpace:l}})),t}var U=Y();function j(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function _(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}var $={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},K={h:0,s:0,l:0},Q={h:0,s:0,l:0};function tt(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}var et=function(){return e((function t(e,r,s){return i(this,t),this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,r,s)}),[{key:"set",value:function(t,e,i){if(void 0===e&&void 0===i){var r=t;r&&r.isColor?this.copy(r):"number"==typeof r?this.setHex(r):"string"==typeof r&&this.setStyle(r)}else this.setRGB(t,e,i);return this}},{key:"setScalar",value:function(t){return this.r=t,this.g=t,this.b=t,this}},{key:"setHex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,U.toWorkingColorSpace(this,e),this}},{key:"setRGB",value:function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.workingColorSpace;return this.r=t,this.g=e,this.b=i,U.toWorkingColorSpace(this,r),this}},{key:"setHSL",value:function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.workingColorSpace;if(t=m(t,1),e=g(e,0,1),i=g(i,0,1),0===e)this.r=this.g=this.b=i;else{var s=i<=.5?i*(1+e):i+e-i*e,n=2*i-s;this.r=tt(n,s,t+1/3),this.g=tt(n,s,t),this.b=tt(n,s,t-1/3)}return U.toWorkingColorSpace(this,r),this}},{key:"setStyle",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;function r(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}if(e=/^(\w+)\(([^\)]*)\)/.exec(t)){var s,n=e[1],a=e[2];switch(n){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,i);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,i);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return r(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,i);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(e=/^\#([A-Fa-f\d]+)$/.exec(t)){var o=e[1],h=o.length;if(3===h)return this.setRGB(parseInt(o.charAt(0),16)/15,parseInt(o.charAt(1),16)/15,parseInt(o.charAt(2),16)/15,i);if(6===h)return this.setHex(parseInt(o,16),i);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,i);return this}},{key:"setColorName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,i=$[t.toLowerCase()];return void 0!==i?this.setHex(i,e):console.warn("THREE.Color: Unknown color "+t),this}},{key:"clone",value:function(){return new this.constructor(this.r,this.g,this.b)}},{key:"copy",value:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}},{key:"copySRGBToLinear",value:function(t){return this.r=j(t.r),this.g=j(t.g),this.b=j(t.b),this}},{key:"copyLinearToSRGB",value:function(t){return this.r=_(t.r),this.g=_(t.g),this.b=_(t.b),this}},{key:"convertSRGBToLinear",value:function(){return this.copySRGBToLinear(this),this}},{key:"convertLinearToSRGB",value:function(){return this.copyLinearToSRGB(this),this}},{key:"getHex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return U.fromWorkingColorSpace(it.copy(this),t),65536*Math.round(g(255*it.r,0,255))+256*Math.round(g(255*it.g,0,255))+Math.round(g(255*it.b,0,255))}},{key:"getHexString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return("000000"+this.getHex(t).toString(16)).slice(-6)}},{key:"getHSL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.workingColorSpace;U.fromWorkingColorSpace(it.copy(this),e);var i,r,s=it.r,n=it.g,a=it.b,o=Math.max(s,n,a),h=Math.min(s,n,a),u=(h+o)/2;if(h===o)i=0,r=0;else{var l=o-h;switch(r=u<=.5?l/(o+h):l/(2-o-h),o){case s:i=(n-a)/l+(n<a?6:0);break;case n:i=(a-s)/l+2;break;case a:i=(s-n)/l+4}i/=6}return t.h=i,t.s=r,t.l=u,t}},{key:"getRGB",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.workingColorSpace;return U.fromWorkingColorSpace(it.copy(this),e),t.r=it.r,t.g=it.g,t.b=it.b,t}},{key:"getStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;U.fromWorkingColorSpace(it.copy(this),t);var e=it.r,i=it.g,r=it.b;return t!==l?"color(".concat(t," ").concat(e.toFixed(3)," ").concat(i.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(Math.round(255*e),",").concat(Math.round(255*i),",").concat(Math.round(255*r),")")}},{key:"offsetHSL",value:function(t,e,i){return this.getHSL(K),this.setHSL(K.h+t,K.s+e,K.l+i)}},{key:"add",value:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}},{key:"addColors",value:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this}},{key:"addScalar",value:function(t){return this.r+=t,this.g+=t,this.b+=t,this}},{key:"sub",value:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}},{key:"multiply",value:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}},{key:"multiplyScalar",value:function(t){return this.r*=t,this.g*=t,this.b*=t,this}},{key:"lerp",value:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this}},{key:"lerpColors",value:function(t,e,i){return this.r=t.r+(e.r-t.r)*i,this.g=t.g+(e.g-t.g)*i,this.b=t.b+(e.b-t.b)*i,this}},{key:"lerpHSL",value:function(t,e){this.getHSL(K),t.getHSL(Q);var i=y(K.h,Q.h,e),r=y(K.s,Q.s,e),s=y(K.l,Q.l,e);return this.setHSL(i,r,s),this}},{key:"setFromVector3",value:function(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}},{key:"applyMatrix3",value:function(t){var e=this.r,i=this.g,r=this.b,s=t.elements;return this.r=s[0]*e+s[3]*i+s[6]*r,this.g=s[1]*e+s[4]*i+s[7]*r,this.b=s[2]*e+s[5]*i+s[8]*r,this}},{key:"equals",value:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}},{key:"fromArray",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.r=t[e],this.g=t[e+1],this.b=t[e+2],this}},{key:"toArray",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}},{key:"fromBufferAttribute",value:function(t,e){return this.r=t.getX(e),this.g=t.getY(e),this.b=t.getZ(e),this}},{key:"toJSON",value:function(){return this.getHex()}},{key:Symbol.iterator,value:s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.r;case 2:return t.next=4,this.g;case 4:return t.next=6,this.b;case 6:case"end":return t.stop()}}),t,this)}))}])}(),it=new et;et.NAMES=$;var rt=0,st=function(t){function r(t){var e;return i(this,r),(e=a(this,r)).isLineBasicMaterial=!0,e.type="LineBasicMaterial",e.color=new et(16777215),e.map=null,e.linewidth=1,e.linecap="round",e.linejoin="round",e.fog=!0,e.setValues(t),e}return n(r,t),e(r,[{key:"copy",value:function(t){return o(r,"copy",this,3)([t]),this.color.copy(t.color),this.map=t.map,this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this.fog=t.fog,this}}])}(function(t){function r(){var t;return i(this,r),(t=a(this,r)).isMaterial=!0,Object.defineProperty(t,"id",{value:rt++}),t.uuid=T(),t.name="",t.type="Material",t.blending=v,t.side=b,t.vertexColors=!1,t.opacity=1,t.transparent=!1,t.alphaHash=!1,t.blendSrc=k,t.blendDst=x,t.blendEquation=S,t.blendSrcAlpha=null,t.blendDstAlpha=null,t.blendEquationAlpha=null,t.blendColor=new et(0,0,0),t.blendAlpha=0,t.depthFunc=M,t.depthTest=!0,t.depthWrite=!0,t.stencilWriteMask=255,t.stencilFunc=w,t.stencilRef=0,t.stencilFuncMask=255,t.stencilFail=A,t.stencilZFail=A,t.stencilZPass=A,t.stencilWrite=!1,t.clippingPlanes=null,t.clipIntersection=!1,t.clipShadows=!1,t.shadowSide=null,t.colorWrite=!0,t.precision=null,t.polygonOffset=!1,t.polygonOffsetFactor=0,t.polygonOffsetUnits=0,t.dithering=!1,t.alphaToCoverage=!1,t.premultipliedAlpha=!1,t.forceSinglePass=!1,t.visible=!0,t.toneMapped=!0,t.userData={},t.version=0,t._alphaTest=0,t}return n(r,t),e(r,[{key:"alphaTest",get:function(){return this._alphaTest},set:function(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}},{key:"onBeforeRender",value:function(){}},{key:"onBeforeCompile",value:function(){}},{key:"customProgramCacheKey",value:function(){return this.onBeforeCompile.toString()}},{key:"setValues",value:function(t){if(void 0!==t)for(var e in t){var i=t[e];if(void 0!==i){var r=this[e];void 0!==r?r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[e]=i:console.warn("THREE.Material: '".concat(e,"' is not a property of THREE.").concat(this.type,"."))}else console.warn("THREE.Material: parameter '".concat(e,"' has value of undefined."))}}},{key:"toJSON",value:function(t){var e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});var i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function r(t){var e=[];for(var i in t){var r=t[i];delete r.metadata,e.push(r)}return e}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),void 0!==this.roughness&&(i.roughness=this.roughness),void 0!==this.metalness&&(i.metalness=this.metalness),void 0!==this.sheen&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(i.shininess=this.shininess),void 0!==this.clearcoat&&(i.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(i.dispersion=this.dispersion),void 0!==this.iridescence&&(i.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(i.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),void 0!==this.anisotropy&&(i.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(t).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(t).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(t).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(t).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(t).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(i.combine=this.combine)),void 0!==this.envMapRotation&&(i.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(i.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(i.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(i.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(i.size=this.size),null!==this.shadowSide&&(i.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==v&&(i.blending=this.blending),this.side!==b&&(i.side=this.side),!0===this.vertexColors&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),!0===this.transparent&&(i.transparent=!0),this.blendSrc!==k&&(i.blendSrc=this.blendSrc),this.blendDst!==x&&(i.blendDst=this.blendDst),this.blendEquation!==S&&(i.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(i.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(i.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==M&&(i.depthFunc=this.depthFunc),!1===this.depthTest&&(i.depthTest=this.depthTest),!1===this.depthWrite&&(i.depthWrite=this.depthWrite),!1===this.colorWrite&&(i.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==w&&(i.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(i.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==A&&(i.stencilFail=this.stencilFail),this.stencilZFail!==A&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==A&&(i.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(i.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(i.rotation=this.rotation),!0===this.polygonOffset&&(i.polygonOffset=!0),0!==this.polygonOffsetFactor&&(i.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(i.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(i.linewidth=this.linewidth),void 0!==this.dashSize&&(i.dashSize=this.dashSize),void 0!==this.gapSize&&(i.gapSize=this.gapSize),void 0!==this.scale&&(i.scale=this.scale),!0===this.dithering&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),!0===this.alphaHash&&(i.alphaHash=!0),!0===this.alphaToCoverage&&(i.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(i.premultipliedAlpha=!0),!0===this.forceSinglePass&&(i.forceSinglePass=!0),!0===this.wireframe&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(i.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(i.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(i.flatShading=!0),!1===this.visible&&(i.visible=!1),!1===this.toneMapped&&(i.toneMapped=!1),!1===this.fog&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData),e){var s=r(t.textures),n=r(t.images);s.length>0&&(i.textures=s),n.length>0&&(i.images=n)}return i}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.blendColor.copy(t.blendColor),this.blendAlpha=t.blendAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;var e=t.clippingPlanes,i=null;if(null!==e){var r=e.length;i=new Array(r);for(var s=0;s!==r;++s)i[s]=e[s].clone()}return this.clippingPlanes=i,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaHash=t.alphaHash,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"onBuild",value:function(){console.warn("Material: onBuild() has been removed.")}}])}(B)),nt=new h,at=new N,ot=0,ht=function(){return e((function t(e,r){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i(this,t),Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:ot++}),this.name="",this.array=e,this.itemSize=r,this.count=void 0!==e?e.length/r:0,this.normalized=s,this.usage=R,this.updateRanges=[],this.gpuType=O,this.version=0}),[{key:"onUploadCallback",value:function(){}},{key:"needsUpdate",set:function(t){!0===t&&this.version++}},{key:"setUsage",value:function(t){return this.usage=t,this}},{key:"addUpdateRange",value:function(t,e){this.updateRanges.push({start:t,count:e})}},{key:"clearUpdateRanges",value:function(){this.updateRanges.length=0}},{key:"copy",value:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this.gpuType=t.gpuType,this}},{key:"copyAt",value:function(t,e,i){t*=this.itemSize,i*=e.itemSize;for(var r=0,s=this.itemSize;r<s;r++)this.array[t+r]=e.array[i+r];return this}},{key:"copyArray",value:function(t){return this.array.set(t),this}},{key:"applyMatrix3",value:function(t){if(2===this.itemSize)for(var e=0,i=this.count;e<i;e++)at.fromBufferAttribute(this,e),at.applyMatrix3(t),this.setXY(e,at.x,at.y);else if(3===this.itemSize)for(var r=0,s=this.count;r<s;r++)nt.fromBufferAttribute(this,r),nt.applyMatrix3(t),this.setXYZ(r,nt.x,nt.y,nt.z);return this}},{key:"applyMatrix4",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.applyMatrix4(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"applyNormalMatrix",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.applyNormalMatrix(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"transformDirection",value:function(t){for(var e=0,i=this.count;e<i;e++)nt.fromBufferAttribute(this,e),nt.transformDirection(t),this.setXYZ(e,nt.x,nt.y,nt.z);return this}},{key:"set",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.array.set(t,e),this}},{key:"getComponent",value:function(t,e){var i=this.array[t*this.itemSize+e];return this.normalized&&(i=C(i,this.array)),i}},{key:"setComponent",value:function(t,e,i){return this.normalized&&(i=z(i,this.array)),this.array[t*this.itemSize+e]=i,this}},{key:"getX",value:function(t){var e=this.array[t*this.itemSize];return this.normalized&&(e=C(e,this.array)),e}},{key:"setX",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize]=e,this}},{key:"getY",value:function(t){var e=this.array[t*this.itemSize+1];return this.normalized&&(e=C(e,this.array)),e}},{key:"setY",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+1]=e,this}},{key:"getZ",value:function(t){var e=this.array[t*this.itemSize+2];return this.normalized&&(e=C(e,this.array)),e}},{key:"setZ",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+2]=e,this}},{key:"getW",value:function(t){var e=this.array[t*this.itemSize+3];return this.normalized&&(e=C(e,this.array)),e}},{key:"setW",value:function(t,e){return this.normalized&&(e=z(e,this.array)),this.array[t*this.itemSize+3]=e,this}},{key:"setXY",value:function(t,e,i){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array)),this.array[t+0]=e,this.array[t+1]=i,this}},{key:"setXYZ",value:function(t,e,i,r){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array),r=z(r,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=r,this}},{key:"setXYZW",value:function(t,e,i,r,s){return t*=this.itemSize,this.normalized&&(e=z(e,this.array),i=z(i,this.array),r=z(r,this.array),s=z(s,this.array)),this.array[t+0]=e,this.array[t+1]=i,this.array[t+2]=r,this.array[t+3]=s,this}},{key:"onUpload",value:function(t){return this.onUploadCallback=t,this}},{key:"clone",value:function(){return new this.constructor(this.array,this.itemSize).copy(this)}},{key:"toJSON",value:function(){var t={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(t.name=this.name),this.usage!==R&&(t.usage=this.usage),t}}])}(),ut=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Uint16Array(t),e,s])}return n(r,t),e(r)}(ht),lt=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Uint32Array(t),e,s])}return n(r,t),e(r)}(ht),ct=function(t){function r(t,e,s){return i(this,r),a(this,r,[new Float32Array(t),e,s])}return n(r,t),e(r)}(ht),pt=0,dt=new L,ft=new I,gt=new h,yt=new F,mt=new F,vt=new h,bt=function(t){function r(){var t;return i(this,r),(t=a(this,r)).isBufferGeometry=!0,Object.defineProperty(t,"id",{value:pt++}),t.uuid=T(),t.name="",t.type="BufferGeometry",t.index=null,t.indirect=null,t.attributes={},t.morphAttributes={},t.morphTargetsRelative=!1,t.groups=[],t.boundingBox=null,t.boundingSphere=null,t.drawRange={start:0,count:1/0},t.userData={},t}return n(r,t),e(r,[{key:"getIndex",value:function(){return this.index}},{key:"setIndex",value:function(t){return Array.isArray(t)?this.index=new(function(t){for(var e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}(t)?lt:ut)(t,1):this.index=t,this}},{key:"setIndirect",value:function(t){return this.indirect=t,this}},{key:"getIndirect",value:function(){return this.indirect}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"setAttribute",value:function(t,e){return this.attributes[t]=e,this}},{key:"deleteAttribute",value:function(t){return delete this.attributes[t],this}},{key:"hasAttribute",value:function(t){return void 0!==this.attributes[t]}},{key:"addGroup",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.groups.push({start:t,count:e,materialIndex:i})}},{key:"clearGroups",value:function(){this.groups=[]}},{key:"setDrawRange",value:function(t,e){this.drawRange.start=t,this.drawRange.count=e}},{key:"applyMatrix4",value:function(t){var e=this.attributes.position;void 0!==e&&(e.applyMatrix4(t),e.needsUpdate=!0);var i=this.attributes.normal;if(void 0!==i){var r=(new d).getNormalMatrix(t);i.applyNormalMatrix(r),i.needsUpdate=!0}var s=this.attributes.tangent;return void 0!==s&&(s.transformDirection(t),s.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}},{key:"applyQuaternion",value:function(t){return dt.makeRotationFromQuaternion(t),this.applyMatrix4(dt),this}},{key:"rotateX",value:function(t){return dt.makeRotationX(t),this.applyMatrix4(dt),this}},{key:"rotateY",value:function(t){return dt.makeRotationY(t),this.applyMatrix4(dt),this}},{key:"rotateZ",value:function(t){return dt.makeRotationZ(t),this.applyMatrix4(dt),this}},{key:"translate",value:function(t,e,i){return dt.makeTranslation(t,e,i),this.applyMatrix4(dt),this}},{key:"scale",value:function(t,e,i){return dt.makeScale(t,e,i),this.applyMatrix4(dt),this}},{key:"lookAt",value:function(t){return ft.lookAt(t),ft.updateMatrix(),this.applyMatrix4(ft.matrix),this}},{key:"center",value:function(){return this.computeBoundingBox(),this.boundingBox.getCenter(gt).negate(),this.translate(gt.x,gt.y,gt.z),this}},{key:"setFromPoints",value:function(t){var e=this.getAttribute("position");if(void 0===e){for(var i=[],r=0,s=t.length;r<s;r++){var n=t[r];i.push(n.x,n.y,n.z||0)}this.setAttribute("position",new ct(i,3))}else{for(var a=Math.min(t.length,e.count),o=0;o<a;o++){var h=t[o];e.setXYZ(o,h.x,h.y,h.z||0)}t.length>e.count&&console.warn("THREE.BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry."),e.needsUpdate=!0}return this}},{key:"computeBoundingBox",value:function(){null===this.boundingBox&&(this.boundingBox=new F);var t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),void this.boundingBox.set(new h(-1/0,-1/0,-1/0),new h(1/0,1/0,1/0));if(void 0!==t){if(this.boundingBox.setFromBufferAttribute(t),e)for(var i=0,r=e.length;i<r;i++){var s=e[i];yt.setFromBufferAttribute(s),this.morphTargetsRelative?(vt.addVectors(this.boundingBox.min,yt.min),this.boundingBox.expandByPoint(vt),vt.addVectors(this.boundingBox.max,yt.max),this.boundingBox.expandByPoint(vt)):(this.boundingBox.expandByPoint(yt.min),this.boundingBox.expandByPoint(yt.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}},{key:"computeBoundingSphere",value:function(){null===this.boundingSphere&&(this.boundingSphere=new E);var t=this.attributes.position,e=this.morphAttributes.position;if(t&&t.isGLBufferAttribute)return console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),void this.boundingSphere.set(new h,1/0);if(t){var i=this.boundingSphere.center;if(yt.setFromBufferAttribute(t),e)for(var r=0,s=e.length;r<s;r++){var n=e[r];mt.setFromBufferAttribute(n),this.morphTargetsRelative?(vt.addVectors(yt.min,mt.min),yt.expandByPoint(vt),vt.addVectors(yt.max,mt.max),yt.expandByPoint(vt)):(yt.expandByPoint(mt.min),yt.expandByPoint(mt.max))}yt.getCenter(i);for(var a=0,o=0,u=t.count;o<u;o++)vt.fromBufferAttribute(t,o),a=Math.max(a,i.distanceToSquared(vt));if(e)for(var l=0,c=e.length;l<c;l++)for(var p=e[l],d=this.morphTargetsRelative,f=0,g=p.count;f<g;f++)vt.fromBufferAttribute(p,f),d&&(gt.fromBufferAttribute(t,f),vt.add(gt)),a=Math.max(a,i.distanceToSquared(vt));this.boundingSphere.radius=Math.sqrt(a),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}},{key:"computeTangents",value:function(){var t=this.index,e=this.attributes;if(null!==t&&void 0!==e.position&&void 0!==e.normal&&void 0!==e.uv){var i=e.position,r=e.normal,s=e.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new ht(new Float32Array(4*i.count),4));for(var n=this.getAttribute("tangent"),a=[],o=[],u=0;u<i.count;u++)a[u]=new h,o[u]=new h;var l=new h,c=new h,p=new h,d=new N,f=new N,g=new N,y=new h,m=new h,v=this.groups;0===v.length&&(v=[{start:0,count:t.count}]);for(var b=0,k=v.length;b<k;++b)for(var x=v[b],S=x.start,M=S,w=S+x.count;M<w;M+=3)I(t.getX(M+0),t.getX(M+1),t.getX(M+2));for(var A=new h,B=new h,T=new h,C=new h,z=0,R=v.length;z<R;++z)for(var O=v[z],F=O.start,E=F,L=F+O.count;E<L;E+=3)H(t.getX(E+0)),H(t.getX(E+1)),H(t.getX(E+2))}else console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");function I(t,e,r){l.fromBufferAttribute(i,t),c.fromBufferAttribute(i,e),p.fromBufferAttribute(i,r),d.fromBufferAttribute(s,t),f.fromBufferAttribute(s,e),g.fromBufferAttribute(s,r),c.sub(l),p.sub(l),f.sub(d),g.sub(d);var n=1/(f.x*g.y-g.x*f.y);isFinite(n)&&(y.copy(c).multiplyScalar(g.y).addScaledVector(p,-f.y).multiplyScalar(n),m.copy(p).multiplyScalar(f.x).addScaledVector(c,-g.x).multiplyScalar(n),a[t].add(y),a[e].add(y),a[r].add(y),o[t].add(m),o[e].add(m),o[r].add(m))}function H(t){T.fromBufferAttribute(r,t),C.copy(T);var e=a[t];A.copy(e),A.sub(T.multiplyScalar(T.dot(e))).normalize(),B.crossVectors(C,e);var i=B.dot(o[t])<0?-1:1;n.setXYZW(t,A.x,A.y,A.z,i)}}},{key:"computeVertexNormals",value:function(){var t=this.index,e=this.getAttribute("position");if(void 0!==e){var i=this.getAttribute("normal");if(void 0===i)i=new ht(new Float32Array(3*e.count),3),this.setAttribute("normal",i);else for(var r=0,s=i.count;r<s;r++)i.setXYZ(r,0,0,0);var n=new h,a=new h,o=new h,u=new h,l=new h,c=new h,p=new h,d=new h;if(t)for(var f=0,g=t.count;f<g;f+=3){var y=t.getX(f+0),m=t.getX(f+1),v=t.getX(f+2);n.fromBufferAttribute(e,y),a.fromBufferAttribute(e,m),o.fromBufferAttribute(e,v),p.subVectors(o,a),d.subVectors(n,a),p.cross(d),u.fromBufferAttribute(i,y),l.fromBufferAttribute(i,m),c.fromBufferAttribute(i,v),u.add(p),l.add(p),c.add(p),i.setXYZ(y,u.x,u.y,u.z),i.setXYZ(m,l.x,l.y,l.z),i.setXYZ(v,c.x,c.y,c.z)}else for(var b=0,k=e.count;b<k;b+=3)n.fromBufferAttribute(e,b+0),a.fromBufferAttribute(e,b+1),o.fromBufferAttribute(e,b+2),p.subVectors(o,a),d.subVectors(n,a),p.cross(d),i.setXYZ(b+0,p.x,p.y,p.z),i.setXYZ(b+1,p.x,p.y,p.z),i.setXYZ(b+2,p.x,p.y,p.z);this.normalizeNormals(),i.needsUpdate=!0}}},{key:"normalizeNormals",value:function(){for(var t=this.attributes.normal,e=0,i=t.count;e<i;e++)vt.fromBufferAttribute(t,e),vt.normalize(),t.setXYZ(e,vt.x,vt.y,vt.z)}},{key:"toNonIndexed",value:function(){function t(t,e){for(var i=t.array,r=t.itemSize,s=t.normalized,n=new i.constructor(e.length*r),a=0,o=0,h=0,u=e.length;h<u;h++){a=t.isInterleavedBufferAttribute?e[h]*t.data.stride+t.offset:e[h]*r;for(var l=0;l<r;l++)n[o++]=i[a++]}return new ht(n,r,s)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;var e=new r,i=this.index.array,s=this.attributes;for(var n in s){var a=t(s[n],i);e.setAttribute(n,a)}var o=this.morphAttributes;for(var h in o){for(var u=[],l=o[h],c=0,p=l.length;c<p;c++){var d=t(l[c],i);u.push(d)}e.morphAttributes[h]=u}e.morphTargetsRelative=this.morphTargetsRelative;for(var f=this.groups,g=0,y=f.length;g<y;g++){var m=f[g];e.addGroup(m.start,m.count,m.materialIndex)}return e}},{key:"toJSON",value:function(){var t={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(var i in e)void 0!==e[i]&&(t[i]=e[i]);return t}t.data={attributes:{}};var r=this.index;null!==r&&(t.data.index={type:r.array.constructor.name,array:Array.prototype.slice.call(r.array)});var s=this.attributes;for(var n in s){var a=s[n];t.data.attributes[n]=a.toJSON(t.data)}var o={},h=!1;for(var u in this.morphAttributes){for(var l=this.morphAttributes[u],c=[],p=0,d=l.length;p<d;p++){var f=l[p];c.push(f.toJSON(t.data))}c.length>0&&(o[u]=c,h=!0)}h&&(t.data.morphAttributes=o,t.data.morphTargetsRelative=this.morphTargetsRelative);var g=this.groups;g.length>0&&(t.data.groups=JSON.parse(JSON.stringify(g)));var y=this.boundingSphere;return null!==y&&(t.data.boundingSphere={center:y.center.toArray(),radius:y.radius}),t}},{key:"clone",value:function(){return(new this.constructor).copy(this)}},{key:"copy",value:function(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;var e={};this.name=t.name;var i=t.index;null!==i&&this.setIndex(i.clone(e));var r=t.attributes;for(var s in r){var n=r[s];this.setAttribute(s,n.clone(e))}var a=t.morphAttributes;for(var o in a){for(var h=[],u=a[o],l=0,c=u.length;l<c;l++)h.push(u[l].clone(e));this.morphAttributes[o]=h}this.morphTargetsRelative=t.morphTargetsRelative;for(var p=t.groups,d=0,f=p.length;d<f;d++){var g=p[d];this.addGroup(g.start,g.count,g.materialIndex)}var y=t.boundingBox;null!==y&&(this.boundingBox=y.clone());var m=t.boundingSphere;return null!==m&&(this.boundingSphere=m.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this}},{key:"dispose",value:function(){this.dispatchEvent({type:"dispose"})}}])}(B),kt=new h,xt=new h,St=new L,Mt=new J,wt=new E,At=new h,Bt=new h,Tt=function(t){function r(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new bt,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new st;return i(this,r),(t=a(this,r)).isLine=!0,t.type="Line",t.geometry=e,t.material=s,t.updateMorphTargets(),t}return n(r,t),e(r,[{key:"copy",value:function(t,e){return o(r,"copy",this,3)([t,e]),this.material=Array.isArray(t.material)?t.material.slice():t.material,this.geometry=t.geometry,this}},{key:"computeLineDistances",value:function(){var t=this.geometry;if(null===t.index){for(var e=t.attributes.position,i=[0],r=1,s=e.count;r<s;r++)kt.fromBufferAttribute(e,r-1),xt.fromBufferAttribute(e,r),i[r]=i[r-1],i[r]+=kt.distanceTo(xt);t.setAttribute("lineDistance",new ct(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}},{key:"raycast",value:function(t,e){var i=this.geometry,r=this.matrixWorld,s=t.params.Line.threshold,n=i.drawRange;if(null===i.boundingSphere&&i.computeBoundingSphere(),wt.copy(i.boundingSphere),wt.applyMatrix4(r),wt.radius+=s,!1!==t.ray.intersectsSphere(wt)){St.copy(r).invert(),Mt.copy(t.ray).applyMatrix4(St);var a=s/((this.scale.x+this.scale.y+this.scale.z)/3),o=a*a,h=this.isLineSegments?2:1,u=i.index,l=i.attributes.position;if(null!==u){for(var c=Math.max(0,n.start),p=Math.min(u.count,n.start+n.count),d=c,f=p-1;d<f;d+=h){var g=u.getX(d),y=u.getX(d+1),m=Ct(this,t,Mt,o,g,y,d);m&&e.push(m)}if(this.isLineLoop){var v=u.getX(p-1),b=u.getX(c),k=Ct(this,t,Mt,o,v,b,p-1);k&&e.push(k)}}else{for(var x=Math.max(0,n.start),S=Math.min(l.count,n.start+n.count),M=x,w=S-1;M<w;M+=h){var A=Ct(this,t,Mt,o,M,M+1,M);A&&e.push(A)}if(this.isLineLoop){var B=Ct(this,t,Mt,o,S-1,x,S-1);B&&e.push(B)}}}}},{key:"updateMorphTargets",value:function(){var t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){var i=t[e[0]];if(void 0!==i){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var r=0,s=i.length;r<s;r++){var n=i[r].name||String(r);this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=r}}}}}])}(I);function Ct(t,e,i,r,s,n,a){var o=t.geometry.attributes.position;if(kt.fromBufferAttribute(o,s),xt.fromBufferAttribute(o,n),!(i.distanceSqToSegment(kt,xt,At,Bt)>r)){At.applyMatrix4(t.matrixWorld);var h=e.ray.origin.distanceTo(At);if(!(h<e.near||h>e.far))return{distance:h,point:Bt.clone().applyMatrix4(t.matrixWorld),index:a,face:null,faceIndex:null,barycoord:null,object:t}}}var zt=new h,Rt=new h,Nt=function(t){function r(t,e){var s;return i(this,r),(s=a(this,r,[t,e])).isLineSegments=!0,s.type="LineSegments",s}return n(r,t),e(r,[{key:"computeLineDistances",value:function(){var t=this.geometry;if(null===t.index){for(var e=t.attributes.position,i=[],r=0,s=e.count;r<s;r+=2)zt.fromBufferAttribute(e,r),Rt.fromBufferAttribute(e,r+1),i[r]=0===r?0:i[r-1],i[r+1]=i[r]+zt.distanceTo(Rt);t.setAttribute("lineDistance",new ct(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}])}(Tt),Ot=new h;t("SpotLightHelper",function(t){function r(t,e){var s;i(this,r),(s=a(this,r)).light=t,s.matrixAutoUpdate=!1,s.color=e,s.type="SpotLightHelper";for(var n=new bt,o=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],h=0,u=1;h<32;h++,u++){var l=h/32*Math.PI*2,c=u/32*Math.PI*2;o.push(Math.cos(l),Math.sin(l),1,Math.cos(c),Math.sin(c),1)}n.setAttribute("position",new ct(o,3));var p=new st({fog:!1,toneMapped:!1});return s.cone=new Nt(n,p),s.add(s.cone),s.update(),s}return n(r,t),e(r,[{key:"dispose",value:function(){this.cone.geometry.dispose(),this.cone.material.dispose()}},{key:"update",value:function(){this.light.updateWorldMatrix(!0,!1),this.light.target.updateWorldMatrix(!0,!1),this.parent?(this.parent.updateWorldMatrix(!0),this.matrix.copy(this.parent.matrixWorld).invert().multiply(this.light.matrixWorld)):this.matrix.copy(this.light.matrixWorld),this.matrixWorld.copy(this.light.matrixWorld);var t=this.light.distance?this.light.distance:1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Ot.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(Ot),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}])}(I))}}}));
|
|
2
|
+
//# sourceMappingURL=SpotLightHelper-28e7faac.legacy.js.map
|