@realsee/dnalogel 3.64.23-ke.3 → 3.64.23-ke.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/LICENSE-UPDATE.txt +5 -0
  3. package/TERMS.txt +87 -24
  4. package/dist/floorplan/MapviewFloorplanPlugin/Controller.d.ts +5 -0
  5. package/dist/index.cjs.js +27 -27
  6. package/dist/index.js +575 -562
  7. package/dist/index.umd.js +27 -27
  8. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  9. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  10. package/docs/classes/CSS3DRender.html +2 -2
  11. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  12. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  13. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  14. package/docs/classes/ModelRoomLabelController.html +2 -2
  15. package/docs/classes/MoveController.html +2 -2
  16. package/docs/classes/Object3DHelperController.html +2 -2
  17. package/docs/classes/PaintBrush.html +2 -2
  18. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  19. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  20. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  21. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  22. package/docs/classes/PanoTagPluginController.html +2 -2
  23. package/docs/classes/Sculpt.html +2 -2
  24. package/docs/classes/Util.BetterTween.html +2 -2
  25. package/docs/classes/Util.FiveDomEvents.html +2 -2
  26. package/docs/classes/Util.FivePuppet.html +2 -2
  27. package/docs/classes/Util.Interval.html +2 -2
  28. package/docs/classes/Util.LightTag.html +2 -2
  29. package/docs/classes/Util.LineSegments.html +2 -2
  30. package/docs/classes/Util.Magnifier.html +2 -2
  31. package/docs/classes/Util.Object3D.html +2 -2
  32. package/docs/classes/Util.PointHelper.html +2 -2
  33. package/docs/classes/Util.PointSelector.html +2 -2
  34. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  35. package/docs/classes/Util.Rectangle.html +2 -2
  36. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  37. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  38. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  39. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  40. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  41. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  42. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  43. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  44. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  45. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  47. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  49. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  50. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  51. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  52. package/docs/classes/WalkController.html +2 -2
  53. package/docs/enums/CameraMovementEffect.html +2 -2
  54. package/docs/enums/ContentType.html +2 -2
  55. package/docs/enums/DIRECTION.html +2 -2
  56. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  57. package/docs/enums/DimensionType.html +2 -2
  58. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  59. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  60. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  61. package/docs/enums/PointType.html +2 -2
  62. package/docs/enums/Rotation.html +2 -2
  63. package/docs/functions/AreaMakerPlugin.html +1 -1
  64. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  65. package/docs/functions/CameraMovementPlugin.html +2 -2
  66. package/docs/functions/CruisePlugin.html +1 -1
  67. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  68. package/docs/functions/GuideLinePlugin.html +1 -1
  69. package/docs/functions/ItemLabelPlugin.html +1 -1
  70. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  71. package/docs/functions/MeasurePlugin.html +1 -1
  72. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  73. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  74. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  75. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  76. package/docs/functions/ModelMakerPlugin.html +1 -1
  77. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  78. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  79. package/docs/functions/ModelViewPlugin.html +2 -2
  80. package/docs/functions/MovePlugin.html +1 -1
  81. package/docs/functions/Object3DHelperPlugin.html +1 -1
  82. package/docs/functions/PanoCompassPlugin.html +1 -1
  83. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  84. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  85. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  86. package/docs/functions/PanoMeasurePlugin.html +1 -1
  87. package/docs/functions/PanoRulerPlugin.html +2 -2
  88. package/docs/functions/PanoRulerProPlugin.html +2 -2
  89. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  90. package/docs/functions/PanoTagPlugin.html +1 -1
  91. package/docs/functions/PanoVideoPlugin.html +2 -2
  92. package/docs/functions/PipelinePlugin.html +1 -1
  93. package/docs/functions/SculptPlugin.html +2 -2
  94. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  95. package/docs/functions/Util.absoluteUrl.html +2 -2
  96. package/docs/functions/Util.awaitNextFrame.html +1 -1
  97. package/docs/functions/Util.blink.html +2 -2
  98. package/docs/functions/Util.bounding.html +1 -1
  99. package/docs/functions/Util.boundingBox.html +1 -1
  100. package/docs/functions/Util.boundingSphere.html +1 -1
  101. package/docs/functions/Util.boxVertex.html +2 -2
  102. package/docs/functions/Util.boxVertexes.html +1 -1
  103. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  104. package/docs/functions/Util.convexHull.html +2 -2
  105. package/docs/functions/Util.equal.html +2 -2
  106. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  107. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  108. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  109. package/docs/functions/Util.getFrameTime.html +2 -2
  110. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  111. package/docs/functions/Util.inside.html +1 -1
  112. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  113. package/docs/functions/Util.isModelLike.html +1 -1
  114. package/docs/functions/Util.isNil.html +2 -2
  115. package/docs/functions/Util.isPanoramaLike.html +1 -1
  116. package/docs/functions/Util.lookObject.html +2 -2
  117. package/docs/functions/Util.lookPoint.html +2 -2
  118. package/docs/functions/Util.nextFrame.html +1 -1
  119. package/docs/functions/Util.notNil.html +2 -2
  120. package/docs/functions/Util.reblink.html +2 -2
  121. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  122. package/docs/functions/Util.sculpt.createBox.html +1 -1
  123. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  124. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  125. package/docs/functions/Util.sculpt.createLine.html +2 -2
  126. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  127. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  128. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  129. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  130. package/docs/functions/Util.tag.html +1 -1
  131. package/docs/functions/Util.tweenProgress.html +1 -1
  132. package/docs/functions/Util.uuid.html +2 -2
  133. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  134. package/docs/functions/Util.worldBounding.html +1 -1
  135. package/docs/functions/Util.worldBoundingBox.html +1 -1
  136. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  137. package/docs/functions/createPolyline.html +2 -2
  138. package/docs/functions/pluginFlag.html +1 -1
  139. package/docs/hierarchy.html +1 -1
  140. package/docs/index.html +2 -2
  141. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  142. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  143. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  144. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  145. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  146. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  147. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  148. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  149. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  151. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  152. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  153. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  154. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  155. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  156. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  157. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  158. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  159. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  160. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  161. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  162. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  163. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  165. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  166. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  167. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  168. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  169. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  170. package/docs/interfaces/FloorplanBounding.html +2 -2
  171. package/docs/interfaces/FloorplanData.html +2 -2
  172. package/docs/interfaces/FloorplanEntrance.html +2 -2
  173. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  174. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  175. package/docs/interfaces/FloorplanFloorData.html +2 -2
  176. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  177. package/docs/interfaces/FloorplanObserver.html +2 -2
  178. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  179. package/docs/interfaces/FloorplanPosition.html +2 -2
  180. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  181. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  182. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  183. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  184. package/docs/interfaces/FloorplanServerData.html +2 -2
  185. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  186. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  187. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  188. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  189. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  190. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  191. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  192. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  193. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  194. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  195. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  196. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  197. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  198. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  199. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  200. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  201. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  202. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  203. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  207. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  208. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  209. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  211. package/docs/interfaces/HelperOffset.html +2 -2
  212. package/docs/interfaces/IFloorplanArea.html +2 -2
  213. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  214. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  215. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  216. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  217. package/docs/interfaces/MinMax.html +2 -2
  218. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  219. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  220. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  221. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  222. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  223. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  224. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  225. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  226. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  227. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  228. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  229. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  230. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  231. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  232. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  233. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  234. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  235. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  236. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  237. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  238. package/docs/interfaces/Object3DHelperState.html +2 -2
  239. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  240. package/docs/interfaces/PaintBrushAction.html +2 -2
  241. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  242. package/docs/interfaces/PaintBrushState.html +2 -2
  243. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  244. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  245. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  246. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  247. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  248. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  249. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  250. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  251. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  252. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  253. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  254. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  255. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  256. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  257. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  258. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  259. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  260. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  261. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  262. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  263. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  264. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  265. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  266. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  267. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  268. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  269. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  270. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  271. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  272. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  273. package/docs/interfaces/PluginEventMap.html +2 -2
  274. package/docs/interfaces/Point.html +2 -2
  275. package/docs/interfaces/Room.html +2 -2
  276. package/docs/interfaces/RoomInfo.html +2 -2
  277. package/docs/interfaces/RoomLabel.html +2 -2
  278. package/docs/interfaces/RoomRules.html +1 -1
  279. package/docs/interfaces/Rooms.html +1 -1
  280. package/docs/interfaces/Scissor.html +2 -2
  281. package/docs/interfaces/State.html +2 -2
  282. package/docs/interfaces/TagCacheInterface.html +2 -2
  283. package/docs/interfaces/TagConfig.html +2 -2
  284. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  285. package/docs/interfaces/TagIconUrl.html +2 -2
  286. package/docs/interfaces/TagObjectGroup.html +2 -2
  287. package/docs/interfaces/TagStyle.html +2 -2
  288. package/docs/interfaces/Tags.html +2 -2
  289. package/docs/interfaces/TemporaryState.html +2 -2
  290. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  291. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  292. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  293. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  294. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  295. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  296. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  297. package/docs/interfaces/Util.PointIntersection.html +2 -2
  298. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  299. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  300. package/docs/modules/AreaMakerPluginType.html +2 -2
  301. package/docs/modules/CruisePluginTypes.html +2 -2
  302. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  303. package/docs/modules/GuideLineItem.html +2 -2
  304. package/docs/modules/GuideLineModeItem.html +2 -2
  305. package/docs/modules/GuideLinePluginType.html +2 -2
  306. package/docs/modules/ModelMakerPluginType.html +2 -2
  307. package/docs/modules/PanoVideoPluginType.html +2 -2
  308. package/docs/modules/SculptData.html +2 -2
  309. package/docs/modules/SculptType.html +2 -2
  310. package/docs/modules/Util.html +2 -2
  311. package/docs/modules/Util.sculpt.html +2 -2
  312. package/docs/modules.html +2 -2
  313. package/docs/types/AddObject3DHelperConfig.html +2 -2
  314. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  315. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  316. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  317. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  318. package/docs/types/ArrayPosition.html +1 -1
  319. package/docs/types/AudioAppearance.html +1 -1
  320. package/docs/types/CSS3DRenderExportType.html +1 -1
  321. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  322. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  323. package/docs/types/ClassFunctionParameters.html +1 -1
  324. package/docs/types/Color.html +1 -1
  325. package/docs/types/ContentTypeConfigKey.html +1 -1
  326. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  327. package/docs/types/ContentTypeMap.html +1 -1
  328. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  329. package/docs/types/Create3DElementReturnType.html +1 -1
  330. package/docs/types/CruisePluginExportType.html +1 -1
  331. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  332. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  333. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  334. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  335. package/docs/types/DeprecatedTagProperty.html +2 -2
  336. package/docs/types/Direction-1.html +1 -1
  337. package/docs/types/Direction4.html +1 -1
  338. package/docs/types/ElementRenderer.html +2 -2
  339. package/docs/types/FloorplanRuleLabels.html +2 -2
  340. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  341. package/docs/types/GuideLinePluginExportType.html +1 -1
  342. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  343. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  344. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  345. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  346. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  347. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  348. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  349. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  350. package/docs/types/HelperEventMap.html +1 -1
  351. package/docs/types/InternalHelperEventMap.html +1 -1
  352. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  353. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  354. package/docs/types/MeasurePluginConfig.html +1 -1
  355. package/docs/types/MediaData.html +2 -2
  356. package/docs/types/MediaStore.html +1 -1
  357. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  358. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  359. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  360. package/docs/types/ModelId.html +1 -1
  361. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  362. package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
  363. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  364. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  365. package/docs/types/MoveArgs.html +2 -2
  366. package/docs/types/MoveOpts.html +2 -2
  367. package/docs/types/Object3DHelperEventMap.html +1 -1
  368. package/docs/types/ObjectFit.html +1 -1
  369. package/docs/types/PaintBrushEventMap.html +1 -1
  370. package/docs/types/PanoCompassPluginData.html +1 -1
  371. package/docs/types/PanoCompassPluginExportType.html +1 -1
  372. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  373. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  374. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  375. package/docs/types/PanoIndex.html +1 -1
  376. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  377. package/docs/types/PanoMeasureReturnType.html +1 -1
  378. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  379. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  380. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  381. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  382. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  383. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  384. package/docs/types/PipelinePluginParameterType.html +1 -1
  385. package/docs/types/PipelinePluginReturnType.html +1 -1
  386. package/docs/types/PlaneTag.html +2 -2
  387. package/docs/types/Point2DTag.html +2 -2
  388. package/docs/types/Point3DTag.html +2 -2
  389. package/docs/types/PointTagInstance.html +1 -1
  390. package/docs/types/Position.html +1 -1
  391. package/docs/types/PositionFrom.html +1 -1
  392. package/docs/types/RotateArgs.html +2 -2
  393. package/docs/types/RotateOpts.html +2 -2
  394. package/docs/types/RuleLabelsKey.html +1 -1
  395. package/docs/types/RuleLabelsValue.html +1 -1
  396. package/docs/types/ScaleCallback.html +1 -1
  397. package/docs/types/ScalePosition.html +2 -2
  398. package/docs/types/SculptData.BoxData.html +1 -1
  399. package/docs/types/SculptData.CircleData.html +1 -1
  400. package/docs/types/SculptData.CylinderData.html +1 -1
  401. package/docs/types/SculptData.PointData.html +1 -1
  402. package/docs/types/SculptData.PolygonData.html +1 -1
  403. package/docs/types/SculptData.PolylineData.html +1 -1
  404. package/docs/types/SculptData.PrismData.html +1 -1
  405. package/docs/types/SculptData.RectangleData.html +1 -1
  406. package/docs/types/SculptType.Theme.html +2 -2
  407. package/docs/types/StickType.html +1 -1
  408. package/docs/types/Tag.html +2 -2
  409. package/docs/types/Tag2D.html +2 -2
  410. package/docs/types/Tag3D.html +2 -2
  411. package/docs/types/TagClickParams.html +1 -1
  412. package/docs/types/TagConfigByKey.html +1 -1
  413. package/docs/types/TagContentType.html +1 -1
  414. package/docs/types/TagContentTypeMapping.html +1 -1
  415. package/docs/types/TagDimensionType.html +1 -1
  416. package/docs/types/TagElement.html +2 -2
  417. package/docs/types/TagEvents.html +1 -1
  418. package/docs/types/TagGLTFObject.html +1 -1
  419. package/docs/types/TagHooks.html +1 -1
  420. package/docs/types/TagId.html +1 -1
  421. package/docs/types/TagInstance.html +1 -1
  422. package/docs/types/TagPointType.html +2 -2
  423. package/docs/types/TagRendererMap.html +1 -1
  424. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  425. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  426. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  427. package/docs/types/Util.AdherePoint.html +2 -2
  428. package/docs/types/Util.PointSelectorConfig.html +1 -1
  429. package/docs/types/WorkCode.html +1 -1
  430. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  431. package/docs/variables/PLUGIN.html +1 -1
  432. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  433. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  434. package/docs/variables/Util.animeMap.html +1 -1
  435. package/docs/variables/defaultGlobalConfig.html +1 -1
  436. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  437. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  438. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  439. package/libs/base/BasePlugin.js +1 -1
  440. package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +5 -0
  441. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +53 -40
  442. package/libs/shared-utils/logger.js +1 -1
  443. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var N0 = Object.defineProperty, G0 = Object.defineProperties;
2
2
  var Q0 = Object.getOwnPropertyDescriptors;
3
3
  var Ko = Object.getOwnPropertySymbols;
4
4
  var md = Object.prototype.hasOwnProperty, pd = Object.prototype.propertyIsEnumerable;
5
- var $o = Math.pow, xl = (n, t, e) => t in n ? N0(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, V = (n, t) => {
5
+ var $o = Math.pow, xl = (n, t, e) => t in n ? N0(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, B = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  md.call(t, e) && xl(n, e, t[e]);
8
8
  if (Ko)
@@ -43,7 +43,7 @@ import { LineGeometry as EA, LineMaterial as MA, THREE_Line2 as xA, Line as kA }
43
43
  import { GLTFLoader as SA } from "@realsee/five/gltf-loader";
44
44
  function DA() {
45
45
  console.debug(
46
- "%c %c@realsee/dnalogel %cv3.64.23-ke.3",
46
+ "%c %c@realsee/dnalogel %cv3.64.23-ke.4",
47
47
  [
48
48
  "background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
49
49
  "background-repeat: no-repeat",
@@ -1693,7 +1693,7 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1693
1693
  z.addEventListener(te, Z, !1);
1694
1694
  });
1695
1695
  }
1696
- function B(z, _, Z) {
1696
+ function R(z, _, Z) {
1697
1697
  m(A(_), function(te) {
1698
1698
  z.removeEventListener(te, Z, !1);
1699
1699
  });
@@ -1706,7 +1706,7 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1706
1706
  }
1707
1707
  return !1;
1708
1708
  }
1709
- function R(z, _) {
1709
+ function V(z, _) {
1710
1710
  return z.indexOf(_) > -1;
1711
1711
  }
1712
1712
  function A(z) {
@@ -1774,7 +1774,7 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1774
1774
  * unbind the events
1775
1775
  */
1776
1776
  destroy: function() {
1777
- this.evEl && B(this.element, this.evEl, this.domHandler), this.evTarget && B(this.target, this.evTarget, this.domHandler), this.evWin && B(H(this.element), this.evWin, this.domHandler);
1777
+ this.evEl && R(this.element, this.evEl, this.domHandler), this.evTarget && R(this.target, this.evTarget, this.domHandler), this.evWin && R(H(this.element), this.evWin, this.domHandler);
1778
1778
  }
1779
1779
  };
1780
1780
  function Ke(z) {
@@ -2079,7 +2079,7 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2079
2079
  _.preventDefault();
2080
2080
  return;
2081
2081
  }
2082
- var te = this.actions, le = R(te, xi) && !kn[xi], Pe = R(te, rn) && !kn[rn], He = R(te, sn) && !kn[sn];
2082
+ var te = this.actions, le = V(te, xi) && !kn[xi], Pe = V(te, rn) && !kn[rn], He = V(te, sn) && !kn[sn];
2083
2083
  if (le) {
2084
2084
  var mt = z.pointers.length === 1, At = z.distance < 2, Mt = z.deltaTime < 250;
2085
2085
  if (mt && At && Mt)
@@ -2097,10 +2097,10 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2097
2097
  }
2098
2098
  };
2099
2099
  function Gr(z) {
2100
- if (R(z, xi))
2100
+ if (V(z, xi))
2101
2101
  return xi;
2102
- var _ = R(z, sn), Z = R(z, rn);
2103
- return _ && Z ? xi : _ || Z ? _ ? sn : rn : R(z, os) ? os : Et;
2102
+ var _ = V(z, sn), Z = V(z, rn);
2103
+ return _ && Z ? xi : _ || Z ? _ ? sn : rn : V(z, os) ? os : Et;
2104
2104
  }
2105
2105
  function Qr() {
2106
2106
  if (!js)
@@ -2782,7 +2782,7 @@ var yi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2782
2782
  Rotate: ki,
2783
2783
  Press: on,
2784
2784
  on: x,
2785
- off: B,
2785
+ off: R,
2786
2786
  each: m,
2787
2787
  merge: b,
2788
2788
  extend: v,
@@ -3023,18 +3023,18 @@ let rb = function(n) {
3023
3023
  if (n && D !== n)
3024
3024
  return;
3025
3025
  p.flag = k;
3026
- const x = p.layers.test(b.layers) === !0, B = p.element;
3027
- if (B.style.display = x === !0 ? "" : "none", x) {
3026
+ const x = p.layers.test(b.layers) === !0, R = p.element;
3027
+ if (R.style.display = x === !0 ? "" : "none", x) {
3028
3028
  p.onBeforeRender(t, v, b);
3029
3029
  let O;
3030
3030
  p.isCSS3DSprite ? (o.copy(b.matrixWorldInverse), o.transpose(), o.copyPosition(p.matrixWorld), o.scale(p.scale), o.elements[3] = 0, o.elements[7] = 0, o.elements[11] = 0, o.elements[15] = 1, O = f(o)) : O = f(p.matrixWorld);
3031
- let R = a.objects.get(p);
3032
- if (R === void 0 || R.style !== O) {
3033
- B.style.WebkitTransform = O, B.style.transform = O;
3031
+ let V = a.objects.get(p);
3032
+ if (V === void 0 || V.style !== O) {
3033
+ R.style.WebkitTransform = O, R.style.transform = O;
3034
3034
  let A = { style: O };
3035
3035
  a.objects.set(p, A);
3036
3036
  }
3037
- B.style.display = p.visible ? "" : "none", B.parentNode !== c && c.appendChild(B), p.onAfterRender(t, v, b);
3037
+ R.style.display = p.visible ? "" : "none", R.parentNode !== c && c.appendChild(R), p.onAfterRender(t, v, b);
3038
3038
  }
3039
3039
  }
3040
3040
  for (let D = 0, x = p.children.length; D < x; D++)
@@ -3047,7 +3047,7 @@ let rb = function(n) {
3047
3047
  let M = v.isOrthographicCamera ? "scale(" + b + ")translate(" + h(w) + "px," + h(k) + "px)" + d(v.matrixWorldInverse) : "translateZ(" + b + "px)" + d(v.matrixWorldInverse), D = M + "translate(" + s + "px," + r + "px)";
3048
3048
  a.camera.style !== D && (c.style.WebkitTransform = D, c.style.transform = D, a.camera.style = D);
3049
3049
  const x = p.uuid + "_" + performance.now().toString();
3050
- g(p, p, v, M, x), a.objects.forEach(function(B, O) {
3050
+ g(p, p, v, M, x), a.objects.forEach(function(R, O) {
3051
3051
  O.flag !== x && (O.element.remove(), a.objects.delete(O));
3052
3052
  });
3053
3053
  };
@@ -3737,7 +3737,7 @@ class di extends si {
3737
3737
  u(this, "_onHidden", () => {
3738
3738
  this.doms.forEach((e) => e.container.style.display = "none");
3739
3739
  });
3740
- this.paramsStyle = V({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new Ia();
3740
+ this.paramsStyle = B({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new Ia();
3741
3741
  const i = {
3742
3742
  color: new y.Color((o = e == null ? void 0 : e.lineColor) != null ? o : lb),
3743
3743
  linewidth: (a = e == null ? void 0 : e.lineWidth) != null ? a : cb,
@@ -3747,7 +3747,7 @@ class di extends si {
3747
3747
  opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
3748
3748
  depthWrite: !1,
3749
3749
  transparent: !0
3750
- }, s = new ub(ae(V({}, i), { dashed: !1, depthTest: !0 })), r = new fb(ae(V({}, i), { dashed: !0, depthTest: !1 }));
3750
+ }, s = new ub(ae(B({}, i), { dashed: !1, depthTest: !0 })), r = new fb(ae(B({}, i), { dashed: !0, depthTest: !1 }));
3751
3751
  if (this.line1 = new kd(this.geometry, s), this.line2 = new kd(this.geometry, r), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.five) {
3752
3752
  const h = (c = this.five.renderer) == null ? void 0 : c.getSize(new y.Vector2());
3753
3753
  h && this.setResolution(h.width, h.height);
@@ -3835,7 +3835,7 @@ class di extends si {
3835
3835
  }
3836
3836
  setStyle(e) {
3837
3837
  var r, o, a, l;
3838
- if (this.paramsStyle = V(V({}, this.paramsStyle), e), _e(e.lineColor)) {
3838
+ if (this.paramsStyle = B(B({}, this.paramsStyle), e), _e(e.lineColor)) {
3839
3839
  const c = new y.Color(e.lineColor);
3840
3840
  this.line1.material.three_color = c, this.line2.material.three_color = c;
3841
3841
  }
@@ -3967,7 +3967,7 @@ function yb() {
3967
3967
  lineColor: 3407837,
3968
3968
  lineOpacity: 0.7,
3969
3969
  occlusionVisibility: !0
3970
- }, i = new di(ae(V({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new di(ae(V({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
3970
+ }, i = new di(ae(B({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new di(ae(B({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
3971
3971
  return t.add(i, s), t;
3972
3972
  }
3973
3973
  function wb(n) {
@@ -4110,7 +4110,7 @@ function Xp(n, t = 3) {
4110
4110
  function xb(n, t) {
4111
4111
  const s = Li(n).intersectRaycaster(t)[0];
4112
4112
  if (s)
4113
- return ae(V({}, s), { raycaster: t, isVirtual: !1 });
4113
+ return ae(B({}, s), { raycaster: t, isVirtual: !1 });
4114
4114
  }
4115
4115
  const Sd = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, kb = new y.Vector3();
4116
4116
  function Qn(n) {
@@ -4287,7 +4287,7 @@ class sl extends yt {
4287
4287
  const i = Mb(this.five, e);
4288
4288
  let s = Bo(this.five, i);
4289
4289
  if (s) {
4290
- if (this.plane && this.planeMode === "vertical" && (s = ae(V({}, s), {
4290
+ if (this.plane && this.planeMode === "vertical" && (s = ae(B({}, s), {
4291
4291
  point: this.plane.projectPoint(s.point, new y.Vector3()),
4292
4292
  face: new y.Face3(0, 0, 0, this.plane.normal.clone()),
4293
4293
  originalPoint: s.point.clone()
@@ -4337,7 +4337,7 @@ class sl extends yt {
4337
4337
  return;
4338
4338
  }
4339
4339
  this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
4340
- const i = V({}, e);
4340
+ const i = B({}, e);
4341
4341
  if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
4342
4342
  const f = {
4343
4343
  x: this.mouseNdcPosition.x,
@@ -4397,8 +4397,8 @@ class sl extends yt {
4397
4397
  else {
4398
4398
  const x = new y.Raycaster();
4399
4399
  x.setFromCamera(p.clone(), this.five.camera);
4400
- const B = this.five.model.intersectRaycaster(x, void 0, !0)[0], O = 0.1, R = this.five.camera.position.distanceTo(p);
4401
- B && B.distance < R + O && (D = !0);
4400
+ const R = this.five.model.intersectRaycaster(x, void 0, !0)[0], O = 0.1, V = this.five.camera.position.distanceTo(p);
4401
+ R && R.distance < V + O && (D = !0);
4402
4402
  }
4403
4403
  if (D) {
4404
4404
  i.point = p.clone(), !this.plane && g instanceof y.Face3 && (i.face = g), i.isAdsorbed = !0;
@@ -4431,15 +4431,15 @@ class sl extends yt {
4431
4431
  u(this, "emitIntersectionUpdate", (e) => {
4432
4432
  this.emit("intersectionUpdate", e);
4433
4433
  });
4434
- this.five = e, this.config = V(V({}, this.config), i), this.actionIfNoIntersection = (a = (o = i == null ? void 0 : i.actionIfNoIntersection) != null ? o : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
4434
+ this.five = e, this.config = B(B({}, this.config), i), this.actionIfNoIntersection = (a = (o = i == null ? void 0 : i.actionIfNoIntersection) != null ? o : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
4435
4435
  const s = (l = i == null ? void 0 : i.mode) != null ? l : "auto";
4436
4436
  s === "auto" ? this.mode = Yp ? "fixed" : "cursor" : this.mode = s;
4437
4437
  const r = {
4438
4438
  autoFixPCPosition: this.mode === "cursor",
4439
4439
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
4440
4440
  };
4441
- this.pointSelectorHelper = new Up(this.five, ae(V({}, i == null ? void 0 : i.helper), {
4442
- magnifierParams: V(V({}, r), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams)
4441
+ this.pointSelectorHelper = new Up(this.five, ae(B({}, i == null ? void 0 : i.helper), {
4442
+ magnifierParams: B(B({}, r), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams)
4443
4443
  })), this.pointSelectorHelper.hide();
4444
4444
  }
4445
4445
  get position() {
@@ -4508,7 +4508,7 @@ class Zp extends y.Mesh {
4508
4508
  const rh = (n) => n ? n.visible === !1 ? !1 : rh(n.parent) : !0, Jp = 1, Td = `CSS3DObjectPlus@${Jp}`, Db = 216e-5, Tb = 3e-3;
4509
4509
  let qp = class extends gn {
4510
4510
  constructor(e) {
4511
- var D, x, B, O, R;
4511
+ var D, x, R, O, V;
4512
4512
  if (ni(e.cornerPoints) && ni(e.width))
4513
4513
  throw new Error("cornerPoints and width cannot be both empty");
4514
4514
  const i = (D = e.container) != null ? D : document.createElement("div"), s = (x = e.cornerPoints) != null ? x : (() => {
@@ -4519,7 +4519,7 @@ let qp = class extends gn {
4519
4519
  new de(A, -A, 0),
4520
4520
  new de(A, A, 0)
4521
4521
  ];
4522
- })(), r = (B = e.ratio) != null ? B : Tb, o = (O = e.dpr) != null ? O : 1, a = (R = e.pointerEvents) != null ? R : "auto", l = Math.max(Db, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), d = ur(c / r * o), f = ur(h / r * o), m = fi(...s);
4522
+ })(), r = (R = e.ratio) != null ? R : Tb, o = (O = e.dpr) != null ? O : 1, a = (V = e.pointerEvents) != null ? V : "auto", l = Math.max(Db, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), d = ur(c / r * o), f = ur(h / r * o), m = fi(...s);
4523
4523
  let g;
4524
4524
  if (l === r)
4525
4525
  i.style.width = `${d}px`, i.style.height = `${f}px`, g = i;
@@ -4869,8 +4869,8 @@ const Gb = (n) => {
4869
4869
  const t = n.elements, e = t[0], i = t[1], s = t[2], r = t[3], o = t[4], a = t[5], l = t[6], c = t[7], h = t[8], d = t[9], f = t[10], m = t[11], g = t[12], p = t[13], v = t[14], b = t[15], w = d * v * c - p * f * c + p * l * m - a * v * m - d * l * b + a * f * b, k = g * f * c - h * v * c - g * l * m + o * v * m + h * l * b - o * f * b, M = h * p * c - g * d * c + g * a * m - o * p * m - h * a * b + o * d * b, D = g * d * l - h * p * l - g * a * f + o * p * f + h * a * v - o * d * v, x = e * w + i * k + s * M + r * D;
4870
4870
  if (x === 0)
4871
4871
  return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
4872
- const B = 1 / x;
4873
- return t[0] = w * B, t[1] = (p * f * r - d * v * r - p * s * m + i * v * m + d * s * b - i * f * b) * B, t[2] = (a * v * r - p * l * r + p * s * c - i * v * c - a * s * b + i * l * b) * B, t[3] = (d * l * r - a * f * r - d * s * c + i * f * c + a * s * m - i * l * m) * B, t[4] = k * B, t[5] = (h * v * r - g * f * r + g * s * m - e * v * m - h * s * b + e * f * b) * B, t[6] = (g * l * r - o * v * r - g * s * c + e * v * c + o * s * b - e * l * b) * B, t[7] = (o * f * r - h * l * r + h * s * c - e * f * c - o * s * m + e * l * m) * B, t[8] = M * B, t[9] = (g * d * r - h * p * r - g * i * m + e * p * m + h * i * b - e * d * b) * B, t[10] = (o * p * r - g * a * r + g * i * c - e * p * c - o * i * b + e * a * b) * B, t[11] = (h * a * r - o * d * r - h * i * c + e * d * c + o * i * m - e * a * m) * B, t[12] = D * B, t[13] = (h * p * s - g * d * s + g * i * f - e * p * f - h * i * v + e * d * v) * B, t[14] = (g * a * s - o * p * s - g * i * l + e * p * l + o * i * v - e * a * v) * B, t[15] = (o * d * s - h * a * s + h * i * l - e * d * l - o * i * f + e * a * f) * B, n;
4872
+ const R = 1 / x;
4873
+ return t[0] = w * R, t[1] = (p * f * r - d * v * r - p * s * m + i * v * m + d * s * b - i * f * b) * R, t[2] = (a * v * r - p * l * r + p * s * c - i * v * c - a * s * b + i * l * b) * R, t[3] = (d * l * r - a * f * r - d * s * c + i * f * c + a * s * m - i * l * m) * R, t[4] = k * R, t[5] = (h * v * r - g * f * r + g * s * m - e * v * m - h * s * b + e * f * b) * R, t[6] = (g * l * r - o * v * r - g * s * c + e * v * c + o * s * b - e * l * b) * R, t[7] = (o * f * r - h * l * r + h * s * c - e * f * c - o * s * m + e * l * m) * R, t[8] = M * R, t[9] = (g * d * r - h * p * r - g * i * m + e * p * m + h * i * b - e * d * b) * R, t[10] = (o * p * r - g * a * r + g * i * c - e * p * c - o * i * b + e * a * b) * R, t[11] = (h * a * r - o * d * r - h * i * c + e * d * c + o * i * m - e * a * m) * R, t[12] = D * R, t[13] = (h * p * s - g * d * s + g * i * f - e * p * f - h * i * v + e * d * v) * R, t[14] = (g * a * s - o * p * s - g * i * l + e * p * l + o * i * v - e * a * v) * R, t[15] = (o * d * s - h * a * s + h * i * l - e * d * l - o * i * f + e * a * f) * R, n;
4874
4874
  };
4875
4875
  var sg = {
4876
4876
  update: null,
@@ -5028,8 +5028,8 @@ var Ub = function() {
5028
5028
  for (var w = 0, k = 1, M = n - 1; k !== M && g[k] <= b; ++k)
5029
5029
  w += t;
5030
5030
  --k;
5031
- var D = (b - g[k]) / (g[k + 1] - g[k]), x = w + D * t, B = o(x, h, f);
5032
- return B >= 1e-3 ? l(b, x, h, f) : B === 0 ? x : a(b, w, w + t, h, f);
5031
+ var D = (b - g[k]) / (g[k + 1] - g[k]), x = w + D * t, R = o(x, h, f);
5032
+ return R >= 1e-3 ? l(b, x, h, f) : R === 0 ? x : a(b, w, w + t, h, f);
5033
5033
  }
5034
5034
  return function(b) {
5035
5035
  return h === d && f === m || b === 0 || b === 1 ? b : r(v(b), d, m);
@@ -5594,8 +5594,8 @@ function at(n) {
5594
5594
  }
5595
5595
  function g(w) {
5596
5596
  for (var k = 0, M = l.animations, D = M.length; k < D; ) {
5597
- var x = M[k], B = x.animatable, O = x.tweens, R = O.length - 1, A = O[R];
5598
- R && (A = ol(O, function(Te) {
5597
+ var x = M[k], R = x.animatable, O = x.tweens, V = O.length - 1, A = O[V];
5598
+ V && (A = ol(O, function(Te) {
5599
5599
  return w < Te.end;
5600
5600
  })[0] || A);
5601
5601
  for (var P = Wi(w - A.start - A.delay, 0, A.duration) / A.duration, C = isNaN(P) ? 1 : A.easing(P), E = A.to.strings, T = A.round, L = [], F = A.to.numbers.length, H = void 0, q = 0; q < F; q++) {
@@ -5613,7 +5613,7 @@ function at(n) {
5613
5613
  isNaN(ye) || (Oe ? H += ye + Oe : H += ye + " ");
5614
5614
  }
5615
5615
  }
5616
- gg[x.type](B.target, x.property, H, B.transforms), x.currentValue = H, k++;
5616
+ gg[x.type](R.target, x.property, H, R.transforms), x.currentValue = H, k++;
5617
5617
  }
5618
5618
  }
5619
5619
  function p(w) {
@@ -5679,8 +5679,8 @@ function gy(n, t) {
5679
5679
  if (!s)
5680
5680
  p.push(Math.abs(o - M));
5681
5681
  else {
5682
- var D = l ? (s[0] - 1) / 2 : o % s[0], x = l ? (s[1] - 1) / 2 : Math.floor(o / s[0]), B = M % s[0], O = Math.floor(M / s[0]), R = D - B, A = x - O, P = Math.sqrt(R * R + A * A);
5683
- r === "x" && (P = -R), r === "y" && (P = -A), p.push(P);
5682
+ var D = l ? (s[0] - 1) / 2 : o % s[0], x = l ? (s[1] - 1) / 2 : Math.floor(o / s[0]), R = M % s[0], O = Math.floor(M / s[0]), V = D - R, A = x - O, P = Math.sqrt(V * V + A * A);
5683
+ r === "x" && (P = -V), r === "y" && (P = -A), p.push(P);
5684
5684
  }
5685
5685
  v = Math.max.apply(Math, p);
5686
5686
  }
@@ -5771,7 +5771,7 @@ function cl(n, t) {
5771
5771
  c && s.push(c);
5772
5772
  })) : s.push(l)));
5773
5773
  }), i = [...new Set(s.filter(Boolean))], Ay(i);
5774
- const r = at(V({
5774
+ const r = at(B({
5775
5775
  targets: i,
5776
5776
  duration: 300,
5777
5777
  easing: "linear",
@@ -5805,7 +5805,7 @@ function cl(n, t) {
5805
5805
  }), r;
5806
5806
  }
5807
5807
  function wg(n, t) {
5808
- return cl(n, V({
5808
+ return cl(n, B({
5809
5809
  update: (e) => {
5810
5810
  var i;
5811
5811
  e.animatables.forEach((s) => {
@@ -5844,26 +5844,26 @@ function by(n, t, e) {
5844
5844
  };
5845
5845
  for (; f !== 360; ) {
5846
5846
  let D = 0;
5847
- const x = g(f), B = (A) => {
5847
+ const x = g(f), R = (A) => {
5848
5848
  const P = A.distanceTo(x), C = new y.Raycaster(A, x.clone().sub(A).normalize()), E = s.model.intersectRaycaster(C, void 0, !0)[0], T = E == null ? void 0 : E.distance;
5849
5849
  _e(T) ? T > P && (D += 1) : D += 1;
5850
5850
  }, O = i.clampPoint(x, new y.Vector3());
5851
- B(O);
5852
- const R = new y.Vector3(o.x, x.y, o.z);
5853
- if (B(R), _e(m[D]) && f > m[D] || (m[D] = f), D === 2)
5851
+ R(O);
5852
+ const V = new y.Vector3(o.x, x.y, o.z);
5853
+ if (R(V), _e(m[D]) && f > m[D] || (m[D] = f), D === 2)
5854
5854
  break;
5855
5855
  f += 30;
5856
5856
  }
5857
5857
  const p = g((M = (k = m[2]) != null ? k : m[1]) != null ? M : 0), v = p.distanceTo(o), b = Ro(o.clone().sub(p).normalize());
5858
5858
  if (n.state.mode === "Mapview")
5859
5859
  return n.updateCamera(
5860
- V({
5860
+ B({
5861
5861
  offset: o,
5862
5862
  distance: v
5863
5863
  }, b),
5864
5864
  800
5865
5865
  );
5866
- n.setState(V({
5866
+ n.setState(B({
5867
5867
  mode: "Mapview",
5868
5868
  offset: o,
5869
5869
  distance: v
@@ -5885,7 +5885,7 @@ function Cg(n, t, e) {
5885
5885
  let b = 0;
5886
5886
  const w = f(h);
5887
5887
  if (((M) => {
5888
- const D = M.distanceTo(w), x = new y.Raycaster(M, w.clone().sub(M).normalize()), B = s.model.intersectRaycaster(x, void 0, !0)[0], O = B == null ? void 0 : B.distance;
5888
+ const D = M.distanceTo(w), x = new y.Raycaster(M, w.clone().sub(M).normalize()), R = s.model.intersectRaycaster(x, void 0, !0)[0], O = R == null ? void 0 : R.distance;
5889
5889
  _e(O) ? O > D && (b += 1) : b += 1;
5890
5890
  })(t), d[b] = h, b === 1)
5891
5891
  break;
@@ -5894,13 +5894,13 @@ function Cg(n, t, e) {
5894
5894
  const m = f((v = d[1]) != null ? v : 0), g = Ro(t.clone().sub(m).normalize());
5895
5895
  if (n.state.mode === "Mapview")
5896
5896
  return n.updateCamera(
5897
- V({
5897
+ B({
5898
5898
  offset: t,
5899
5899
  distance: i
5900
5900
  }, g),
5901
5901
  800
5902
5902
  );
5903
- n.setState(V({
5903
+ n.setState(B({
5904
5904
  mode: "Mapview",
5905
5905
  offset: t,
5906
5906
  distance: i
@@ -6012,7 +6012,7 @@ class fr {
6012
6012
  if (!o)
6013
6013
  return !1;
6014
6014
  const M = o.slice(1);
6015
- return M[0] ? this.notify(ae(V({}, t), { object: M[0].object, intersects: M })) : !1;
6015
+ return M[0] ? this.notify(ae(B({}, t), { object: M[0].object, intersects: M })) : !1;
6016
6016
  };
6017
6017
  let f = i;
6018
6018
  for (h.push(f); f.parent; )
@@ -6030,7 +6030,7 @@ class fr {
6030
6030
  continue;
6031
6031
  const x = D[`${e}Handler`];
6032
6032
  if (x)
6033
- for (const [B, O] of x) {
6033
+ for (const [R, O] of x) {
6034
6034
  if (O != null && O.noEmitWhenNotInScene && m.type !== "Scene")
6035
6035
  continue;
6036
6036
  if (O.skipPano && a) {
@@ -6059,7 +6059,7 @@ class fr {
6059
6059
  continue;
6060
6060
  M._hovered = !1;
6061
6061
  }
6062
- const R = B({
6062
+ const V = R({
6063
6063
  type: e,
6064
6064
  target: M,
6065
6065
  origDomEvent: s,
@@ -6069,7 +6069,7 @@ class fr {
6069
6069
  l = !0;
6070
6070
  }
6071
6071
  });
6072
- c.push(R != null ? R : !0);
6072
+ c.push(V != null ? V : !0);
6073
6073
  }
6074
6074
  }
6075
6075
  if (g === !1)
@@ -6112,7 +6112,7 @@ class fr {
6112
6112
  * @return {void}
6113
6113
  */
6114
6114
  addEventListener(t, e, i, s) {
6115
- t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i, V({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
6115
+ t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i, B({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
6116
6116
  }
6117
6117
  removeEventListener(t, e, i, ...s) {
6118
6118
  var o, a;
@@ -6311,7 +6311,7 @@ const KT = (n, t) => {
6311
6311
  var P, C;
6312
6312
  const e = new yt();
6313
6313
  let i = (C = (P = t == null ? void 0 : t.initialState) == null ? void 0 : P.enabled) != null ? C : !0, s = !1, r = !0, o = null;
6314
- const l = V(V({}, {
6314
+ const l = B(B({}, {
6315
6315
  lookAtCurrentCamera: !1,
6316
6316
  lockedPanoIndex: null,
6317
6317
  lockedLatitude: null,
@@ -6365,7 +6365,7 @@ const KT = (n, t) => {
6365
6365
  var E, T;
6366
6366
  i || (i = !0, c.add(d), !s && ((T = (E = n.work) == null ? void 0 : E.model) != null && T.file) && g(), x());
6367
6367
  }, k = () => {
6368
- i && (c.remove(d), r = !0, B(), i = !1);
6368
+ i && (c.remove(d), r = !0, R(), i = !1);
6369
6369
  }, M = (E, T = {}) => {
6370
6370
  const L = p();
6371
6371
  if (!L)
@@ -6387,16 +6387,16 @@ const KT = (n, t) => {
6387
6387
  return;
6388
6388
  const E = n.getPose();
6389
6389
  E.fov = h.fov, E.offset = m, E.distance = f, typeof l.lockedLatitude == "number" && (E.latitude = l.lockedLatitude), typeof l.lockedLongitude == "number" && (E.longitude = l.lockedLongitude), typeof l.lockedPanoIndex == "number" && (E.offset = n.work.observers[l.lockedPanoIndex].standingPosition.clone()), l.lookAtCurrentCamera && (E.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), h.setFromPose(E), r = !0;
6390
- }, B = () => {
6390
+ }, R = () => {
6391
6391
  !i || r !== !0 || !o || !o.domElement.parentNode || o.domElement.parentNode.offsetWidth === 0 || (o.render(c, h), r = !1);
6392
6392
  }, O = () => {
6393
6393
  o && o.dispose(), o = null;
6394
- }, R = (E) => {
6394
+ }, V = (E) => {
6395
6395
  Object.assign(l, E), x();
6396
6396
  }, A = () => ({
6397
6397
  enabled: i
6398
6398
  });
6399
- return n.on("loaded", b), n.on("willLoad", v), n.on("cameraDirectionUpdate", x), n.on("dispose", O), n.on("renderFrame", B), n.on("cameraPositionUpdate", x), { appendTo: M, refresh: D, changeConfigs: R, enable: w, disable: k, getCurrentState: A, hooks: e };
6399
+ return n.on("loaded", b), n.on("willLoad", v), n.on("cameraDirectionUpdate", x), n.on("dispose", O), n.on("renderFrame", R), n.on("cameraPositionUpdate", x), { appendTo: M, refresh: D, changeConfigs: V, enable: w, disable: k, getCurrentState: A, hooks: e };
6400
6400
  };
6401
6401
  function gr(n) {
6402
6402
  const t = [];
@@ -6603,7 +6603,7 @@ class Po {
6603
6603
  s && (e ? s.add(i) : s.remove(i));
6604
6604
  });
6605
6605
  u(this, "createObject", (t, e) => {
6606
- const i = new qp(ae(V({ cornerPoints: t }, e), { style: e.wrapperStyle }));
6606
+ const i = new qp(ae(B({ cornerPoints: t }, e), { style: e.wrapperStyle }));
6607
6607
  return i.element.classList.add(`${yc}__container`), i.element.id = `${yc}__container--${i.uuid}`, i;
6608
6608
  });
6609
6609
  t && this.setScene(t);
@@ -6632,7 +6632,7 @@ class Po {
6632
6632
  setState(t, e = { userAction: !0 }) {
6633
6633
  if (this.state.disposed)
6634
6634
  return Qs();
6635
- const i = V({}, this.state);
6635
+ const i = B({}, this.state);
6636
6636
  this.state = Object.assign(this.state, t), i.visible !== this.state.visible && (t.visible ? this.handleShow() : this.handleHide()), i.enabled !== this.state.enabled && (t.enabled ? this.handleEnable() : this.handleDisable()), i.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e.userAction });
6637
6637
  }
6638
6638
  dispose() {
@@ -6807,7 +6807,7 @@ let Ry = class extends Po {
6807
6807
  return Object.assign(h, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
6808
6808
  })(), { autoRender: r } = s;
6809
6809
  s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
6810
- const o = this.create3DElement(this.five.camera, e, ae(V({}, s), { autoRender: !1 }));
6810
+ const o = this.create3DElement(this.five.camera, e, ae(B({}, s), { autoRender: !1 }));
6811
6811
  if (!o)
6812
6812
  return;
6813
6813
  const a = o.dispose;
@@ -6821,7 +6821,7 @@ let Ry = class extends Po {
6821
6821
  }, c = () => {
6822
6822
  hi(this.five).then(() => l());
6823
6823
  };
6824
- return r && c(), ae(V({}, o), { render: r ? void 0 : c });
6824
+ return r && c(), ae(B({}, o), { render: r ? void 0 : c });
6825
6825
  });
6826
6826
  this.five = e;
6827
6827
  }
@@ -7490,21 +7490,21 @@ function Pi(n, t, e, i, s, r, o, a, l, c, h, d) {
7490
7490
  p[n[g].key] = g;
7491
7491
  const v = [], b = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), k = [];
7492
7492
  for (g = m; g--; ) {
7493
- const B = d(s, r, g), O = e(B);
7494
- let R = o.get(O);
7495
- R ? i && k.push(() => R.p(B, t)) : (R = c(O, B), R.c()), b.set(O, v[g] = R), O in p && w.set(O, Math.abs(g - p[O]));
7493
+ const R = d(s, r, g), O = e(R);
7494
+ let V = o.get(O);
7495
+ V ? i && k.push(() => V.p(R, t)) : (V = c(O, R), V.c()), b.set(O, v[g] = V), O in p && w.set(O, Math.abs(g - p[O]));
7496
7496
  }
7497
7497
  const M = /* @__PURE__ */ new Set(), D = /* @__PURE__ */ new Set();
7498
- function x(B) {
7499
- N(B, 1), B.m(a, h), o.set(B.key, B), h = B.first, m--;
7498
+ function x(R) {
7499
+ N(R, 1), R.m(a, h), o.set(R.key, R), h = R.first, m--;
7500
7500
  }
7501
7501
  for (; f && m; ) {
7502
- const B = v[m - 1], O = n[f - 1], R = B.key, A = O.key;
7503
- B === O ? (h = B.first, f--, m--) : b.has(A) ? !o.has(R) || M.has(R) ? x(B) : D.has(A) ? f-- : w.get(R) > w.get(A) ? (D.add(R), x(B)) : (M.add(A), f--) : (l(O, o), f--);
7502
+ const R = v[m - 1], O = n[f - 1], V = R.key, A = O.key;
7503
+ R === O ? (h = R.first, f--, m--) : b.has(A) ? !o.has(V) || M.has(V) ? x(R) : D.has(A) ? f-- : w.get(V) > w.get(A) ? (D.add(V), x(R)) : (M.add(A), f--) : (l(O, o), f--);
7504
7504
  }
7505
7505
  for (; f--; ) {
7506
- const B = n[f];
7507
- b.has(B.key) || l(B, o);
7506
+ const R = n[f];
7507
+ b.has(R.key) || l(R, o);
7508
7508
  }
7509
7509
  for (; m; )
7510
7510
  x(v[m - 1]);
@@ -8123,8 +8123,8 @@ function I1(n, t, e) {
8123
8123
  return !1;
8124
8124
  const k = new kr(), M = s.camera.position.clone(), D = new de(b.position.x, b.position.y, b.position.z), x = D.distanceTo(M);
8125
8125
  k.set(M.clone(), D.clone().sub(M).normalize());
8126
- const [B] = s.model.intersectRaycaster(k);
8127
- return !(B && B.distance + 1 < x);
8126
+ const [R] = s.model.intersectRaycaster(k);
8127
+ return !(R && R.distance + 1 < x);
8128
8128
  }
8129
8129
  function h(b, w) {
8130
8130
  const M = new de(b.position.x, b.position.y, b.position.z).clone().project(s.camera), D = Math.ceil((M.x + 1) / 2 * w.x), x = Math.ceil((-M.y + 1) / 2 * w.y);
@@ -8133,15 +8133,15 @@ function I1(n, t, e) {
8133
8133
  function d(b) {
8134
8134
  const { rendererSize: w } = b, k = /* @__PURE__ */ new Map();
8135
8135
  function M(x) {
8136
- const B = k.get(x.id);
8137
- if (B)
8138
- return B;
8139
- const { x: O, y: R, z: A } = x.position, P = new de(O, R, A).clone().distanceTo(s.camera.position);
8136
+ const R = k.get(x.id);
8137
+ if (R)
8138
+ return R;
8139
+ const { x: O, y: V, z: A } = x.position, P = new de(O, V, A).clone().distanceTo(s.camera.position);
8140
8140
  return k.set(x.id, P), P;
8141
8141
  }
8142
8142
  return r.map((x) => {
8143
- const B = c(x), O = B ? h(x, w) : x.transform, R = M(x), P = r.filter((C) => C.visible && M(C) < R).length * 10;
8144
- return ae(V({}, x), { visible: B, transform: O, zIndex: P });
8143
+ const R = c(x), O = R ? h(x, w) : x.transform, V = M(x), P = r.filter((C) => C.visible && M(C) < V).length * 10;
8144
+ return ae(B({}, x), { visible: R, transform: O, zIndex: P });
8145
8145
  });
8146
8146
  }
8147
8147
  function f() {
@@ -9061,7 +9061,7 @@ function $1(n, t) {
9061
9061
  return s;
9062
9062
  }
9063
9063
  function ew(n, t, e) {
9064
- let i, s, r, o, a, l, c, h, d, f, m, g, p, { pxmm: v } = t, { roomAreaEnable: b } = t, { roomNameEnable: w } = t, { roomNameOtherTypeEnable: k } = t, { roomDimensionEnable: M } = t, { room: D } = t, { hoveredRoom: x } = t, { getRoomAreaText: B } = t, { getRoomDimensionText: O } = t, { getLabelElement: R } = t, { adaptiveRoomLabelVisibleEnable: A } = t;
9064
+ let i, s, r, o, a, l, c, h, d, f, m, g, p, { pxmm: v } = t, { roomAreaEnable: b } = t, { roomNameEnable: w } = t, { roomNameOtherTypeEnable: k } = t, { roomDimensionEnable: M } = t, { room: D } = t, { hoveredRoom: x } = t, { getRoomAreaText: R } = t, { getRoomDimensionText: O } = t, { getLabelElement: V } = t, { adaptiveRoomLabelVisibleEnable: A } = t;
9065
9065
  function P(ce, xe) {
9066
9066
  if (xe.width === 0 || xe.height === 0)
9067
9067
  return () => !1;
@@ -9091,12 +9091,12 @@ function ew(n, t, e) {
9091
9091
  e(7, K = ce.detail);
9092
9092
  };
9093
9093
  return n.$$set = (ce) => {
9094
- "pxmm" in ce && e(21, v = ce.pxmm), "roomAreaEnable" in ce && e(0, b = ce.roomAreaEnable), "roomNameEnable" in ce && e(1, w = ce.roomNameEnable), "roomNameOtherTypeEnable" in ce && e(2, k = ce.roomNameOtherTypeEnable), "roomDimensionEnable" in ce && e(3, M = ce.roomDimensionEnable), "room" in ce && e(4, D = ce.room), "hoveredRoom" in ce && e(22, x = ce.hoveredRoom), "getRoomAreaText" in ce && e(23, B = ce.getRoomAreaText), "getRoomDimensionText" in ce && e(24, O = ce.getRoomDimensionText), "getLabelElement" in ce && e(5, R = ce.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ce && e(25, A = ce.adaptiveRoomLabelVisibleEnable);
9094
+ "pxmm" in ce && e(21, v = ce.pxmm), "roomAreaEnable" in ce && e(0, b = ce.roomAreaEnable), "roomNameEnable" in ce && e(1, w = ce.roomNameEnable), "roomNameOtherTypeEnable" in ce && e(2, k = ce.roomNameOtherTypeEnable), "roomDimensionEnable" in ce && e(3, M = ce.roomDimensionEnable), "room" in ce && e(4, D = ce.room), "hoveredRoom" in ce && e(22, x = ce.hoveredRoom), "getRoomAreaText" in ce && e(23, R = ce.getRoomAreaText), "getRoomDimensionText" in ce && e(24, O = ce.getRoomDimensionText), "getLabelElement" in ce && e(5, V = ce.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ce && e(25, A = ce.adaptiveRoomLabelVisibleEnable);
9095
9095
  }, n.$$.update = () => {
9096
9096
  var ce, xe;
9097
9097
  n.$$.dirty[0] & /*getLabelElement, room*/
9098
- 48 && e(16, i = R == null ? void 0 : R(D)), n.$$.dirty[0] & /*room, getRoomAreaText*/
9099
- 8388624 && e(15, s = D.size ? B(D.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
9098
+ 48 && e(16, i = V == null ? void 0 : V(D)), n.$$.dirty[0] & /*room, getRoomAreaText*/
9099
+ 8388624 && e(15, s = D.size ? R(D.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
9100
9100
  16777232 && e(14, r = D != null && D.dimension ? O((ce = D.dimension) == null ? void 0 : ce.width, (xe = D.dimension) == null ? void 0 : xe.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
9101
9101
  768 && e(32, o = { width: ie, height: se }), n.$$.dirty[0] & /*room*/
9102
9102
  16 | n.$$.dirty[1] & /*labelElementSize*/
@@ -9119,7 +9119,7 @@ function ew(n, t, e) {
9119
9119
  k,
9120
9120
  M,
9121
9121
  D,
9122
- R,
9122
+ V,
9123
9123
  ee,
9124
9124
  K,
9125
9125
  ie,
@@ -9137,7 +9137,7 @@ function ew(n, t, e) {
9137
9137
  q,
9138
9138
  v,
9139
9139
  x,
9140
- B,
9140
+ R,
9141
9141
  O,
9142
9142
  A,
9143
9143
  ue,
@@ -10441,7 +10441,7 @@ function zw(n, t, e) {
10441
10441
  "roomLabelsEnable" in d && e(5, s = d.roomLabelsEnable), "roomDimensionEnable" in d && e(6, r = d.roomDimensionEnable), "floorIndex" in d && e(7, o = d.floorIndex), "floorplanData" in d && e(0, a = d.floorplanData);
10442
10442
  }, n.$$.update = () => {
10443
10443
  n.$$.dirty & /*floorplanData, floorIndex*/
10444
- 129 && e(1, i = a.floorDatas[o].rooms.map((d) => ae(V({}, d), {
10444
+ 129 && e(1, i = a.floorDatas[o].rooms.map((d) => ae(B({}, d), {
10445
10445
  path: d.path.map((f) => Yg(f, a.bounding))
10446
10446
  })));
10447
10447
  }, [
@@ -11100,19 +11100,19 @@ function sC(n) {
11100
11100
  ), x = (
11101
11101
  /*cameraEnable*/
11102
11102
  n[4] && bu(n)
11103
- ), B = (
11103
+ ), R = (
11104
11104
  /*compassEnable*/
11105
11105
  n[23] && yu(n)
11106
11106
  );
11107
11107
  return {
11108
11108
  c() {
11109
- Ae(t.$$.fragment), e = oe(), p && p.c(), i = oe(), Ae(s.$$.fragment), r = oe(), Ae(o.$$.fragment), a = oe(), M && M.c(), l = oe(), D && D.c(), c = oe(), x && x.c(), h = oe(), B && B.c(), d = Be();
11109
+ Ae(t.$$.fragment), e = oe(), p && p.c(), i = oe(), Ae(s.$$.fragment), r = oe(), Ae(o.$$.fragment), a = oe(), M && M.c(), l = oe(), D && D.c(), c = oe(), x && x.c(), h = oe(), R && R.c(), d = Be();
11110
11110
  },
11111
- m(O, R) {
11112
- ge(t, O, R), Y(O, e, R), p && p.m(O, R), Y(O, i, R), ge(s, O, R), Y(O, r, R), ge(o, O, R), Y(O, a, R), M && M.m(O, R), Y(O, l, R), D && D.m(O, R), Y(O, c, R), x && x.m(O, R), Y(O, h, R), B && B.m(O, R), Y(O, d, R), f = !0;
11111
+ m(O, V) {
11112
+ ge(t, O, V), Y(O, e, V), p && p.m(O, V), Y(O, i, V), ge(s, O, V), Y(O, r, V), ge(o, O, V), Y(O, a, V), M && M.m(O, V), Y(O, l, V), D && D.m(O, V), Y(O, c, V), x && x.m(O, V), Y(O, h, V), R && R.m(O, V), Y(O, d, V), f = !0;
11113
11113
  },
11114
- p(O, R) {
11115
- const A = R & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
11114
+ p(O, V) {
11115
+ const A = V & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
11116
11116
  5188 ? Lt(m, [
11117
11117
  {
11118
11118
  floorIndex: (
@@ -11135,11 +11135,11 @@ function sC(n) {
11135
11135
  ]) : {};
11136
11136
  t.$set(A), /*highlightEnable*/
11137
11137
  O[3] || /*hoverEnable*/
11138
- O[5] ? p ? (p.p(O, R), R & /*highlightEnable, hoverEnable*/
11138
+ O[5] ? p ? (p.p(O, V), V & /*highlightEnable, hoverEnable*/
11139
11139
  40 && N(p, 1)) : (p = gu(O), p.c(), N(p, 1), p.m(i.parentNode, i)) : p && (Ie(), X(p, 1, 1, () => {
11140
11140
  p = null;
11141
11141
  }), Ee());
11142
- const P = R & /*floorplanData, floorIndex*/
11142
+ const P = V & /*floorplanData, floorIndex*/
11143
11143
  4100 ? Lt(v, [
11144
11144
  {
11145
11145
  floorplanData: (
@@ -11153,7 +11153,7 @@ function sC(n) {
11153
11153
  }
11154
11154
  ]) : {};
11155
11155
  s.$set(P);
11156
- const C = R & /*floorplanData, floorIndex*/
11156
+ const C = V & /*floorplanData, floorIndex*/
11157
11157
  4100 ? Lt(w, [
11158
11158
  {
11159
11159
  floorplanData: (
@@ -11167,31 +11167,31 @@ function sC(n) {
11167
11167
  }
11168
11168
  ]) : {};
11169
11169
  o.$set(C), /*roomLabelsEnable*/
11170
- O[6] ? M ? (M.p(O, R), R & /*roomLabelsEnable*/
11170
+ O[6] ? M ? (M.p(O, V), V & /*roomLabelsEnable*/
11171
11171
  64 && N(M, 1)) : (M = vu(O), M.c(), N(M, 1), M.m(l.parentNode, l)) : M && (Ie(), X(M, 1, 1, () => {
11172
11172
  M = null;
11173
11173
  }), Ee()), /*ruleLabelsEnable*/
11174
- O[11] ? D ? (D.p(O, R), R & /*ruleLabelsEnable*/
11174
+ O[11] ? D ? (D.p(O, V), V & /*ruleLabelsEnable*/
11175
11175
  2048 && N(D, 1)) : (D = Au(O), D.c(), N(D, 1), D.m(c.parentNode, c)) : D && (Ie(), X(D, 1, 1, () => {
11176
11176
  D = null;
11177
11177
  }), Ee()), /*cameraEnable*/
11178
- O[4] ? x ? (x.p(O, R), R & /*cameraEnable*/
11178
+ O[4] ? x ? (x.p(O, V), V & /*cameraEnable*/
11179
11179
  16 && N(x, 1)) : (x = bu(O), x.c(), N(x, 1), x.m(h.parentNode, h)) : x && (Ie(), X(x, 1, 1, () => {
11180
11180
  x = null;
11181
11181
  }), Ee()), /*compassEnable*/
11182
- O[23] ? B ? (B.p(O, R), R & /*compassEnable*/
11183
- 8388608 && N(B, 1)) : (B = yu(O), B.c(), N(B, 1), B.m(d.parentNode, d)) : B && (Ie(), X(B, 1, 1, () => {
11184
- B = null;
11182
+ O[23] ? R ? (R.p(O, V), V & /*compassEnable*/
11183
+ 8388608 && N(R, 1)) : (R = yu(O), R.c(), N(R, 1), R.m(d.parentNode, d)) : R && (Ie(), X(R, 1, 1, () => {
11184
+ R = null;
11185
11185
  }), Ee());
11186
11186
  },
11187
11187
  i(O) {
11188
- f || (N(t.$$.fragment, O), N(p), N(s.$$.fragment, O), N(o.$$.fragment, O), N(M), N(D), N(x), N(B), f = !0);
11188
+ f || (N(t.$$.fragment, O), N(p), N(s.$$.fragment, O), N(o.$$.fragment, O), N(M), N(D), N(x), N(R), f = !0);
11189
11189
  },
11190
11190
  o(O) {
11191
- X(t.$$.fragment, O), X(p), X(s.$$.fragment, O), X(o.$$.fragment, O), X(M), X(D), X(x), X(B), f = !1;
11191
+ X(t.$$.fragment, O), X(p), X(s.$$.fragment, O), X(o.$$.fragment, O), X(M), X(D), X(x), X(R), f = !1;
11192
11192
  },
11193
11193
  d(O) {
11194
- ve(t, O), O && U(e), p && p.d(O), O && U(i), ve(s, O), O && U(r), ve(o, O), O && U(a), M && M.d(O), O && U(l), D && D.d(O), O && U(c), x && x.d(O), O && U(h), B && B.d(O), O && U(d);
11194
+ ve(t, O), O && U(e), p && p.d(O), O && U(i), ve(s, O), O && U(r), ve(o, O), O && U(a), M && M.d(O), O && U(l), D && D.d(O), O && U(c), x && x.d(O), O && U(h), R && R.d(O), O && U(d);
11195
11195
  }
11196
11196
  };
11197
11197
  }
@@ -11620,12 +11620,12 @@ function oC(n) {
11620
11620
  };
11621
11621
  }
11622
11622
  function aC(n, t, e) {
11623
- let i, s, { panoIndex: r } = t, { isCurrent: o } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: v } = t, { floorplanData: b } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: k } = t, { getLabelElement: M } = t, { getRuleDistanceText: D } = t, { adaptiveRoomLabelVisibleEnable: x } = t, { highlightData: B } = t, { missingFloorConfig: O } = t, { lastPanoramaLongitude: R } = t, { cameraImageUrl: A } = t, { northDesc: P } = t, { compassEnable: C } = t, { store: E = void 0 } = t;
11623
+ let i, s, { panoIndex: r } = t, { isCurrent: o } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: f } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: v } = t, { floorplanData: b } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: k } = t, { getLabelElement: M } = t, { getRuleDistanceText: D } = t, { adaptiveRoomLabelVisibleEnable: x } = t, { highlightData: R } = t, { missingFloorConfig: O } = t, { lastPanoramaLongitude: V } = t, { cameraImageUrl: A } = t, { northDesc: P } = t, { compassEnable: C } = t, { store: E = void 0 } = t;
11624
11624
  const T = Th(void 0);
11625
11625
  return T.subscribe((L) => {
11626
11626
  E && e(26, E.roomOnMouse = L, E);
11627
11627
  }), n.$$set = (L) => {
11628
- "panoIndex" in L && e(0, r = L.panoIndex), "isCurrent" in L && e(1, o = L.isCurrent), "floorIndex" in L && e(2, a = L.floorIndex), "highlightEnable" in L && e(3, l = L.highlightEnable), "cameraEnable" in L && e(4, c = L.cameraEnable), "hoverEnable" in L && e(5, h = L.hoverEnable), "roomLabelsEnable" in L && e(6, d = L.roomLabelsEnable), "roomAreaEnable" in L && e(7, f = L.roomAreaEnable), "roomNameEnable" in L && e(8, m = L.roomNameEnable), "roomNameOtherTypeEnable" in L && e(9, g = L.roomNameOtherTypeEnable), "roomDimensionEnable" in L && e(10, p = L.roomDimensionEnable), "ruleLabelsEnable" in L && e(11, v = L.ruleLabelsEnable), "floorplanData" in L && e(12, b = L.floorplanData), "getRoomAreaText" in L && e(13, w = L.getRoomAreaText), "getRoomDimensionText" in L && e(14, k = L.getRoomDimensionText), "getLabelElement" in L && e(15, M = L.getLabelElement), "getRuleDistanceText" in L && e(16, D = L.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in L && e(17, x = L.adaptiveRoomLabelVisibleEnable), "highlightData" in L && e(18, B = L.highlightData), "missingFloorConfig" in L && e(19, O = L.missingFloorConfig), "lastPanoramaLongitude" in L && e(20, R = L.lastPanoramaLongitude), "cameraImageUrl" in L && e(21, A = L.cameraImageUrl), "northDesc" in L && e(22, P = L.northDesc), "compassEnable" in L && e(23, C = L.compassEnable), "store" in L && e(26, E = L.store);
11628
+ "panoIndex" in L && e(0, r = L.panoIndex), "isCurrent" in L && e(1, o = L.isCurrent), "floorIndex" in L && e(2, a = L.floorIndex), "highlightEnable" in L && e(3, l = L.highlightEnable), "cameraEnable" in L && e(4, c = L.cameraEnable), "hoverEnable" in L && e(5, h = L.hoverEnable), "roomLabelsEnable" in L && e(6, d = L.roomLabelsEnable), "roomAreaEnable" in L && e(7, f = L.roomAreaEnable), "roomNameEnable" in L && e(8, m = L.roomNameEnable), "roomNameOtherTypeEnable" in L && e(9, g = L.roomNameOtherTypeEnable), "roomDimensionEnable" in L && e(10, p = L.roomDimensionEnable), "ruleLabelsEnable" in L && e(11, v = L.ruleLabelsEnable), "floorplanData" in L && e(12, b = L.floorplanData), "getRoomAreaText" in L && e(13, w = L.getRoomAreaText), "getRoomDimensionText" in L && e(14, k = L.getRoomDimensionText), "getLabelElement" in L && e(15, M = L.getLabelElement), "getRuleDistanceText" in L && e(16, D = L.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in L && e(17, x = L.adaptiveRoomLabelVisibleEnable), "highlightData" in L && e(18, R = L.highlightData), "missingFloorConfig" in L && e(19, O = L.missingFloorConfig), "lastPanoramaLongitude" in L && e(20, V = L.lastPanoramaLongitude), "cameraImageUrl" in L && e(21, A = L.cameraImageUrl), "northDesc" in L && e(22, P = L.northDesc), "compassEnable" in L && e(23, C = L.compassEnable), "store" in L && e(26, E = L.store);
11629
11629
  }, n.$$.update = () => {
11630
11630
  n.$$.dirty & /*floorplanData, floorIndex*/
11631
11631
  4100 && e(27, i = b.floorDatas[a]), n.$$.dirty & /*floorData*/
@@ -11649,9 +11649,9 @@ function aC(n, t, e) {
11649
11649
  M,
11650
11650
  D,
11651
11651
  x,
11652
- B,
11653
- O,
11654
11652
  R,
11653
+ O,
11654
+ V,
11655
11655
  A,
11656
11656
  P,
11657
11657
  C,
@@ -12059,9 +12059,9 @@ function hC(n) {
12059
12059
  };
12060
12060
  }
12061
12061
  function dC(n, t, e) {
12062
- let { duration: i = 0 } = t, { visible: s } = t, { northDesc: r } = t, { panoIndex: o } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: d } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: g } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: b } = t, { floorplanData: w } = t, { lastPanoramaLongitude: k } = t, { cameraImageUrl: M } = t, { getRoomAreaText: D } = t, { getRoomDimensionText: x } = t, { getLabelElement: B } = t, { getRuleDistanceText: O } = t, { adaptiveRoomLabelVisibleEnable: R } = t, { highlightData: A } = t, { missingFloorConfig: P } = t, { store: C = void 0 } = t;
12062
+ let { duration: i = 0 } = t, { visible: s } = t, { northDesc: r } = t, { panoIndex: o } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: d } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: m } = t, { roomNameEnable: g } = t, { roomNameOtherTypeEnable: p } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: b } = t, { floorplanData: w } = t, { lastPanoramaLongitude: k } = t, { cameraImageUrl: M } = t, { getRoomAreaText: D } = t, { getRoomDimensionText: x } = t, { getLabelElement: R } = t, { getRuleDistanceText: O } = t, { adaptiveRoomLabelVisibleEnable: V } = t, { highlightData: A } = t, { missingFloorConfig: P } = t, { store: C = void 0 } = t;
12063
12063
  return n.$$set = (E) => {
12064
- "duration" in E && e(0, i = E.duration), "visible" in E && e(1, s = E.visible), "northDesc" in E && e(2, r = E.northDesc), "panoIndex" in E && e(3, o = E.panoIndex), "floorIndex" in E && e(4, a = E.floorIndex), "cameraEnable" in E && e(5, l = E.cameraEnable), "hoverEnable" in E && e(6, c = E.hoverEnable), "highlightEnable" in E && e(7, h = E.highlightEnable), "compassEnable" in E && e(8, d = E.compassEnable), "roomLabelsEnable" in E && e(9, f = E.roomLabelsEnable), "roomAreaEnable" in E && e(10, m = E.roomAreaEnable), "roomNameEnable" in E && e(11, g = E.roomNameEnable), "roomNameOtherTypeEnable" in E && e(12, p = E.roomNameOtherTypeEnable), "roomDimensionEnable" in E && e(13, v = E.roomDimensionEnable), "ruleLabelsEnable" in E && e(14, b = E.ruleLabelsEnable), "floorplanData" in E && e(15, w = E.floorplanData), "lastPanoramaLongitude" in E && e(16, k = E.lastPanoramaLongitude), "cameraImageUrl" in E && e(17, M = E.cameraImageUrl), "getRoomAreaText" in E && e(18, D = E.getRoomAreaText), "getRoomDimensionText" in E && e(19, x = E.getRoomDimensionText), "getLabelElement" in E && e(20, B = E.getLabelElement), "getRuleDistanceText" in E && e(21, O = E.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in E && e(22, R = E.adaptiveRoomLabelVisibleEnable), "highlightData" in E && e(23, A = E.highlightData), "missingFloorConfig" in E && e(24, P = E.missingFloorConfig), "store" in E && e(25, C = E.store);
12064
+ "duration" in E && e(0, i = E.duration), "visible" in E && e(1, s = E.visible), "northDesc" in E && e(2, r = E.northDesc), "panoIndex" in E && e(3, o = E.panoIndex), "floorIndex" in E && e(4, a = E.floorIndex), "cameraEnable" in E && e(5, l = E.cameraEnable), "hoverEnable" in E && e(6, c = E.hoverEnable), "highlightEnable" in E && e(7, h = E.highlightEnable), "compassEnable" in E && e(8, d = E.compassEnable), "roomLabelsEnable" in E && e(9, f = E.roomLabelsEnable), "roomAreaEnable" in E && e(10, m = E.roomAreaEnable), "roomNameEnable" in E && e(11, g = E.roomNameEnable), "roomNameOtherTypeEnable" in E && e(12, p = E.roomNameOtherTypeEnable), "roomDimensionEnable" in E && e(13, v = E.roomDimensionEnable), "ruleLabelsEnable" in E && e(14, b = E.ruleLabelsEnable), "floorplanData" in E && e(15, w = E.floorplanData), "lastPanoramaLongitude" in E && e(16, k = E.lastPanoramaLongitude), "cameraImageUrl" in E && e(17, M = E.cameraImageUrl), "getRoomAreaText" in E && e(18, D = E.getRoomAreaText), "getRoomDimensionText" in E && e(19, x = E.getRoomDimensionText), "getLabelElement" in E && e(20, R = E.getLabelElement), "getRuleDistanceText" in E && e(21, O = E.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in E && e(22, V = E.adaptiveRoomLabelVisibleEnable), "highlightData" in E && e(23, A = E.highlightData), "missingFloorConfig" in E && e(24, P = E.missingFloorConfig), "store" in E && e(25, C = E.store);
12065
12065
  }, [
12066
12066
  i,
12067
12067
  s,
@@ -12083,9 +12083,9 @@ function dC(n, t, e) {
12083
12083
  M,
12084
12084
  D,
12085
12085
  x,
12086
- B,
12087
- O,
12088
12086
  R,
12087
+ O,
12088
+ V,
12089
12089
  A,
12090
12090
  P,
12091
12091
  C
@@ -12243,7 +12243,7 @@ let Kn = class {
12243
12243
  /**
12244
12244
  * @realsee/dnalogel 版本号
12245
12245
  */
12246
- u(this, "VERSION", "3.64.23-ke.3");
12246
+ u(this, "VERSION", "3.64.23-ke.4");
12247
12247
  u(this, "NAME");
12248
12248
  u(this, "five");
12249
12249
  u(this, "workUtil");
@@ -12458,7 +12458,7 @@ let MC = class extends wn {
12458
12458
  * plugin.updateShowState({ longitude: Math.PI / 2 })
12459
12459
  */
12460
12460
  u(this, "updateShowState", (e) => {
12461
- this.showState = V(V({}, this.showState), e);
12461
+ this.showState = B(B({}, this.showState), e);
12462
12462
  });
12463
12463
  u(this, "_disable", (e) => {
12464
12464
  var s, r, o;
@@ -12485,7 +12485,7 @@ let MC = class extends wn {
12485
12485
  immediately: !1,
12486
12486
  isAutoShow: !1,
12487
12487
  userAction: !0
12488
- }, s = V(V({}, i), e), r = () => $(this, null, function* () {
12488
+ }, s = B(B({}, i), e), r = () => $(this, null, function* () {
12489
12489
  this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
12490
12490
  let a = !1, l;
12491
12491
  this.showRejection = (d) => {
@@ -12515,7 +12515,7 @@ let MC = class extends wn {
12515
12515
  u(this, "_hide", (e) => {
12516
12516
  var r;
12517
12517
  (r = this.showRejection) == null || r.call(this, ti.BreakOffByHide), this.showPromise = void 0;
12518
- const s = V(V({}, {
12518
+ const s = B(B({}, {
12519
12519
  userAction: !0,
12520
12520
  isAutoHide: !1
12521
12521
  }), e);
@@ -12586,7 +12586,7 @@ let MC = class extends wn {
12586
12586
  this.floorIndex = e, this.updateSize(), this.render();
12587
12587
  }
12588
12588
  });
12589
- i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = V({
12589
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = B({
12590
12590
  mode: "Floorplan",
12591
12591
  longitude: 0,
12592
12592
  latitude: Math.PI / 2,
@@ -12616,12 +12616,12 @@ let MC = class extends wn {
12616
12616
  cameraImageUrl: Un,
12617
12617
  attachedTo: vs.BOUNDING_CENTER,
12618
12618
  getLabelElement: void 0,
12619
- missingFloorConfig: V(V({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
12619
+ missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
12620
12620
  i18n: (d) => d,
12621
12621
  getRoomAreaText: (d) => (d / 1e6).toFixed(1) + "㎡",
12622
12622
  getRoomDimensionText: (d, f) => (d / 1e3).toFixed(1) + "m × " + (f / 1e3).toFixed(1) + "m",
12623
12623
  getRuleDistanceText: (d) => d.toString()
12624
- }, r = i ? br(i, ["selector", "scale"]) : {}, o = V(V({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(V(V({}, s), r), { missingFloorConfig: o });
12624
+ }, r = i ? br(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(B(B({}, s), r), { missingFloorConfig: o });
12625
12625
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
12626
12626
  }
12627
12627
  load(e, i, s = !0) {
@@ -12691,8 +12691,8 @@ let MC = class extends wn {
12691
12691
  }
12692
12692
  updateState(e, i) {
12693
12693
  var a;
12694
- const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? V(V({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(V(V({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
12695
- this.state = ae(V(V({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
12694
+ const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
12695
+ this.state = ae(B(B({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
12696
12696
  }
12697
12697
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
12698
12698
  *
@@ -12721,7 +12721,7 @@ let MC = class extends wn {
12721
12721
  render(e) {
12722
12722
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
12723
12723
  return;
12724
- const i = ae(V({}, this.state.config), {
12724
+ const i = ae(B({}, this.state.config), {
12725
12725
  visible: this.state.visible,
12726
12726
  duration: e != null ? e : 0,
12727
12727
  panoIndex: this.panoIndex,
@@ -15497,7 +15497,7 @@ let DC = class extends wn {
15497
15497
  * plugin.updateShowState({ longitude: Math.PI / 2 })
15498
15498
  */
15499
15499
  u(this, "updateShowState", (e) => {
15500
- this.showState = V(V({}, this.showState), e);
15500
+ this.showState = B(B({}, this.showState), e);
15501
15501
  });
15502
15502
  u(this, "_disable", (e) => {
15503
15503
  var s, r, o;
@@ -15524,7 +15524,7 @@ let DC = class extends wn {
15524
15524
  immediately: !1,
15525
15525
  isAutoShow: !1,
15526
15526
  userAction: !0
15527
- }, s = V(V({}, i), e), r = () => $(this, null, function* () {
15527
+ }, s = B(B({}, i), e), r = () => $(this, null, function* () {
15528
15528
  this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
15529
15529
  let a = !1, l;
15530
15530
  this.showRejection = (d) => {
@@ -15554,7 +15554,7 @@ let DC = class extends wn {
15554
15554
  u(this, "_hide", (e) => {
15555
15555
  var r;
15556
15556
  (r = this.showRejection) == null || r.call(this, ti.BreakOffByHide), this.showPromise = void 0;
15557
- const s = V(V({}, {
15557
+ const s = B(B({}, {
15558
15558
  userAction: !0,
15559
15559
  isAutoHide: !1
15560
15560
  }), e);
@@ -15585,7 +15585,10 @@ let DC = class extends wn {
15585
15585
  if (!i || this.state.visible || this.state.config.autoShowEnable === !1 || this.isHiddenByHideFunc)
15586
15586
  return;
15587
15587
  const s = this.five.getCurrentState();
15588
- s.mode === this.showState.mode && SC(s) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
15588
+ if (s.mode !== this.showState.mode)
15589
+ return;
15590
+ const r = this.getRelativePose(s);
15591
+ SC(r) && (this.updateState({ visible: !0 }, !0), this._show({ isAutoShow: !0 }));
15589
15592
  });
15590
15593
  /** panoIndex 改变时,更新 floorIndex */
15591
15594
  u(this, "onFivePanoArrived", (e) => {
@@ -15597,7 +15600,9 @@ let DC = class extends wn {
15597
15600
  if (!this.state.visible || this.showPromise)
15598
15601
  return;
15599
15602
  const s = this.five.getCurrentState();
15600
- this.updatePosition(), this.updateSize(), kC(s) && (this.updateState({ visible: !1 }, i), this._hide({ userAction: i }));
15603
+ this.updatePosition(), this.updateSize();
15604
+ const r = this.getRelativePose(s);
15605
+ kC(r) && (this.updateState({ visible: !1 }, i), this._hide({ userAction: i }));
15601
15606
  });
15602
15607
  /** 户型图展示中,转动三维模型,结束时应该自动修复模型状态 */
15603
15608
  u(this, "onFiveWantsPanGesture", (e, i) => {
@@ -15622,7 +15627,7 @@ let DC = class extends wn {
15622
15627
  this.floorIndex = e, this.updateSize(), this.render();
15623
15628
  }
15624
15629
  });
15625
- i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = V({
15630
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = B({
15626
15631
  mode: "Mapview",
15627
15632
  longitude: 0,
15628
15633
  latitude: Math.PI / 2
@@ -15651,12 +15656,12 @@ let DC = class extends wn {
15651
15656
  attachedTo: vs.BOUNDING_CENTER,
15652
15657
  getLabelElement: void 0,
15653
15658
  adaptiveRoomLabelVisibleEnable: !0,
15654
- missingFloorConfig: V(V({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
15659
+ missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
15655
15660
  i18n: (h) => h,
15656
15661
  getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
15657
15662
  getRoomDimensionText: (h, d) => (h / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
15658
15663
  getRuleDistanceText: (h) => h.toString()
15659
- }, r = i ? br(i, ["selector", "scale"]) : {}, o = V(V({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(V(V({}, s), r), { missingFloorConfig: o });
15664
+ }, r = i ? br(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(B(B({}, s), r), { missingFloorConfig: o });
15660
15665
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), hi(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
15661
15666
  }
15662
15667
  load(e, i, s = !0) {
@@ -15753,8 +15758,8 @@ let DC = class extends wn {
15753
15758
  }
15754
15759
  updateState(e, i) {
15755
15760
  var a;
15756
- const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? V(V({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(V(V({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
15757
- this.state = ae(V(V({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
15761
+ const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
15762
+ this.state = ae(B(B({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
15758
15763
  }
15759
15764
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
15760
15765
  *
@@ -15780,10 +15785,18 @@ let DC = class extends wn {
15780
15785
  const e = this.five;
15781
15786
  this.hasAddedEventListener = !1, e.off("modelLoaded", this.onFiveModelLoaded), e.off("modeChange", this.onFiveModeChange), e.off("panoArrived", this.onFivePanoArrived), e.off("cameraUpdate", this.onFiveCameraUpdate), e.off("wantsPanGesture", this.onFiveWantsPanGesture), e.off("wantsTapGesture", this.onFiveWantsTapGesture), e.off("wantsChangeMode", this.onFiveWantsChangeMode), e.off("modelShownFloorChange", this.onModelShownFloorChange);
15782
15787
  }
15788
+ /** 获取相对于 showState 的 pose 偏差
15789
+ * @description 将当前相机状态的 longitude 减去 showState.longitude,归一化后返回
15790
+ * 这样自动隐藏逻辑会检查相对偏差,而不是绝对值
15791
+ */
15792
+ getRelativePose(e) {
15793
+ const i = this.showState.longitude || 0, r = ((e.longitude - i) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
15794
+ return ae(B({}, e), { longitude: r });
15795
+ }
15783
15796
  render(e) {
15784
15797
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
15785
15798
  return;
15786
- const i = ae(V({}, this.state.config), {
15799
+ const i = ae(B({}, this.state.config), {
15787
15800
  visible: this.state.visible,
15788
15801
  duration: e != null ? e : 0,
15789
15802
  panoIndex: this.panoIndex,
@@ -15919,13 +15932,13 @@ let TC = class extends wn {
15919
15932
  cameraImageUrl: Un,
15920
15933
  attachedTo: vs.BOUNDING_CENTER,
15921
15934
  getLabelElement: void 0,
15922
- missingFloorConfig: V(V({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
15935
+ missingFloorConfig: B(B({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
15923
15936
  i18n: (h) => h,
15924
15937
  adaptiveRoomLabelVisibleEnable: !0,
15925
15938
  getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
15926
15939
  getRoomDimensionText: (h, d) => (h / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
15927
15940
  getRuleDistanceText: (h) => h.toString()
15928
- }, r = i ? br(i, ["selector", "scale"]) : {}, o = V(V({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(V(V({}, s), r), { missingFloorConfig: o });
15941
+ }, r = i ? br(i, ["selector", "scale"]) : {}, o = B(B({}, s.missingFloorConfig), r.missingFloorConfig), a = ae(B(B({}, s), r), { missingFloorConfig: o });
15929
15942
  this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
15930
15943
  }
15931
15944
  load(e, i, s = !0) {
@@ -16028,8 +16041,8 @@ let TC = class extends wn {
16028
16041
  }
16029
16042
  updateState(e, i) {
16030
16043
  var a;
16031
- const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? V(V({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(V(V({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
16032
- this.state = ae(V(V({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
16044
+ const s = this.state, r = (a = e.config) != null && a.missingFloorConfig ? B(B({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, o = e.config ? ae(B(B({}, s.config), e.config), { missingFloorConfig: r }) : s.config;
16045
+ this.state = ae(B(B({}, this.state), e), { config: o }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
16033
16046
  }
16034
16047
  addEventListener() {
16035
16048
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -16059,7 +16072,7 @@ let TC = class extends wn {
16059
16072
  render(e) {
16060
16073
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
16061
16074
  return;
16062
- const i = ae(V({}, this.state.config), {
16075
+ const i = ae(B({}, this.state.config), {
16063
16076
  visible: this.state.visible,
16064
16077
  duration: e != null ? e : 0,
16065
16078
  panoIndex: this.panoIndex,
@@ -16140,10 +16153,10 @@ function jC(n, t, e) {
16140
16153
  var w, k;
16141
16154
  let i, s, r, o, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, d = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, m = (k = (w = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : w.floorIndex) != null ? k : 0;
16142
16155
  function g(M, D) {
16143
- const x = M.bounding, B = M.observers[D];
16144
- if (!B)
16156
+ const x = M.bounding, R = M.observers[D];
16157
+ if (!R)
16145
16158
  return "";
16146
- const O = (x.max.x - x.min.x) * l, R = (x.max.y - x.min.y) * l, A = Math.floor(B.positionInImage.x * O), P = Math.floor(B.positionInImage.y * R);
16159
+ const O = (x.max.x - x.min.x) * l, V = (x.max.y - x.min.y) * l, A = Math.floor(R.positionInImage.x * O), P = Math.floor(R.positionInImage.y * V);
16147
16160
  return `translate(${A}px, ${P}px)`;
16148
16161
  }
16149
16162
  function p(M) {
@@ -16798,10 +16811,10 @@ function ZC(n, t, e) {
16798
16811
  }, n.$$.update = () => {
16799
16812
  if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
16800
16813
  1800) {
16801
- const x = Math.min(m, g), { max: B, min: O } = o.bounding, R = B.x - O.x, A = B.y - O.y, P = function() {
16802
- return R > A ? [x, x / R * A] : [x / A * R, x];
16814
+ const x = Math.min(m, g), { max: R, min: O } = o.bounding, V = R.x - O.x, A = R.y - O.y, P = function() {
16815
+ return V > A ? [x, x / V * A] : [x / A * V, x];
16803
16816
  }();
16804
- e(10, p = P[0]), e(13, v = P[1]), e(11, d = p / R);
16817
+ e(10, p = P[0]), e(13, v = P[1]), e(11, d = p / V);
16805
16818
  }
16806
16819
  }, [
16807
16820
  i,
@@ -16880,7 +16893,7 @@ let qC = class extends wn {
16880
16893
  highlightEnable: !1,
16881
16894
  cameraImageUrl: Un,
16882
16895
  missingFloorImageUrl: this.staticPrefix + "/release/web/saas/missing-floor.d687a5ed.png"
16883
- }, r = V(V({}, s), i == null ? void 0 : i.configs);
16896
+ }, r = B(B({}, s), i == null ? void 0 : i.configs);
16884
16897
  this.state = { enabled: !0, visible: !0, config: r }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
16885
16898
  }
16886
16899
  load(e, i, s = !0) {
@@ -16964,8 +16977,8 @@ let qC = class extends wn {
16964
16977
  this.hooks.emit("hide", { userAction: i }), this.render();
16965
16978
  }
16966
16979
  updateState(e, i) {
16967
- const s = this.state, r = e.config ? V(V({}, s.config), e.config) : s.config;
16968
- this.state = ae(V(V({}, this.state), e), { config: r }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
16980
+ const s = this.state, r = e.config ? B(B({}, s.config), e.config) : s.config;
16981
+ this.state = ae(B(B({}, this.state), e), { config: r }), !Nt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
16969
16982
  }
16970
16983
  render() {
16971
16984
  if (this.disposed || !this.state.enabled)
@@ -16976,7 +16989,7 @@ let qC = class extends wn {
16976
16989
  }
16977
16990
  if (!this.data || !this.wrapper)
16978
16991
  return;
16979
- const e = ae(V({}, this.state.config), {
16992
+ const e = ae(B({}, this.state.config), {
16980
16993
  five: this.five,
16981
16994
  floorplanData: this.data,
16982
16995
  visible: this.state.visible,
@@ -17099,7 +17112,7 @@ function Kg(n, t) {
17099
17112
  n.traverse((e) => {
17100
17113
  var i;
17101
17114
  if (e.type === "Mesh") {
17102
- const s = e, r = V({ map: s.material.map || {} }, t);
17115
+ const s = e, r = B({ map: s.material.map || {} }, t);
17103
17116
  s.material = new Ao(r), s.renderOrder = 1, ((i = e.parent) == null ? void 0 : i.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
17104
17117
  }
17105
17118
  });
@@ -17463,34 +17476,34 @@ var Nu = $g.Zlib, iv = {
17463
17476
  l[0][0] = 1;
17464
17477
  for (var c = r.slice(0), h = r.slice(0), d = 1; d <= e; ++d) {
17465
17478
  c[d] = t - s[n + 1 - d], h[d] = s[n + d] - t;
17466
- for (var f = 0, R = 0; R < d; ++R) {
17467
- var m = h[R + 1], g = c[d - R];
17468
- l[d][R] = m + g;
17469
- var p = l[R][d - 1] / l[d][R];
17470
- l[R][d] = f + m * p, f = g * p;
17479
+ for (var f = 0, V = 0; V < d; ++V) {
17480
+ var m = h[V + 1], g = c[d - V];
17481
+ l[d][V] = m + g;
17482
+ var p = l[V][d - 1] / l[d][V];
17483
+ l[V][d] = f + m * p, f = g * p;
17471
17484
  }
17472
17485
  l[d][d] = f;
17473
17486
  }
17474
17487
  for (var d = 0; d <= e; ++d)
17475
17488
  a[0][d] = l[d][e];
17476
- for (var R = 0; R <= e; ++R) {
17489
+ for (var V = 0; V <= e; ++V) {
17477
17490
  for (var v = 0, b = 1, w = [], o = 0; o <= e; ++o)
17478
17491
  w[o] = r.slice(0);
17479
17492
  w[0][0] = 1;
17480
17493
  for (var k = 1; k <= i; ++k) {
17481
- var M = 0, D = R - k, x = e - k;
17482
- R >= k && (w[b][0] = w[v][0] / l[x + 1][D], M = w[b][0] * l[D][x]);
17483
- for (var B = D >= -1 ? 1 : -D, O = R - 1 <= x ? k - 1 : e - R, d = B; d <= O; ++d)
17494
+ var M = 0, D = V - k, x = e - k;
17495
+ V >= k && (w[b][0] = w[v][0] / l[x + 1][D], M = w[b][0] * l[D][x]);
17496
+ for (var R = D >= -1 ? 1 : -D, O = V - 1 <= x ? k - 1 : e - V, d = R; d <= O; ++d)
17484
17497
  w[b][d] = (w[v][d] - w[v][d - 1]) / l[x + 1][D + d], M += w[b][d] * l[D + d][x];
17485
- R <= x && (w[b][k] = -w[v][k - 1] / l[x + 1][R], M += w[b][k] * l[R][x]), a[k][R] = M;
17498
+ V <= x && (w[b][k] = -w[v][k - 1] / l[x + 1][V], M += w[b][k] * l[V][x]), a[k][V] = M;
17486
17499
  var d = v;
17487
17500
  v = b, b = d;
17488
17501
  }
17489
17502
  }
17490
- for (var R = e, k = 1; k <= i; ++k) {
17503
+ for (var V = e, k = 1; k <= i; ++k) {
17491
17504
  for (var d = 0; d <= e; ++d)
17492
- a[k][d] *= R;
17493
- R *= e - k;
17505
+ a[k][d] *= V;
17506
+ V *= e - k;
17494
17507
  }
17495
17508
  return a;
17496
17509
  },
@@ -18636,7 +18649,7 @@ var nv = function() {
18636
18649
  if (T >= 180) {
18637
18650
  for (var L = T / 180, F = E / L, H = C + F, q = A.times[P - 1], ee = A.times[P] - q, K = ee / L, ie = q + K, se = [], ue = []; ie < A.times[P]; )
18638
18651
  se.push(ie), ie += K, ue.push(H), H += F;
18639
- A.times = R(A.times, P, se), A.values = R(A.values, P, ue);
18652
+ A.times = V(A.times, P, se), A.values = V(A.values, P, ue);
18640
18653
  }
18641
18654
  }
18642
18655
  }
@@ -18698,7 +18711,7 @@ var nv = function() {
18698
18711
  var H = T.split(",").slice(1), q = parseInt(H[0]), ee = parseInt(H[1]), K = T.split(",").slice(3);
18699
18712
  K = K.map(function(ie) {
18700
18713
  return ie.trim().replace(/^"/, "");
18701
- }), E = "connections", T = [q, ee], B(T, K), L[E] === void 0 && (L[E] = []);
18714
+ }), E = "connections", T = [q, ee], R(T, K), L[E] === void 0 && (L[E] = []);
18702
18715
  }
18703
18716
  E === "Node" && (L.id = T), E in L && Array.isArray(L[E]) ? L[E].push(T) : E !== "a" ? L[E] = T : L.a = T, this.setCurrentProp(L, E), E === "a" && T.slice(-1) !== "," && (L.a = D(T));
18704
18717
  },
@@ -19079,7 +19092,7 @@ var nv = function() {
19079
19092
  function x(A, P, C) {
19080
19093
  return P === void 0 && (P = 0), C === void 0 && (C = A.byteLength), kl.decodeText(new Uint8Array(A, P, C));
19081
19094
  }
19082
- function B(A, P) {
19095
+ function R(A, P) {
19083
19096
  for (var C = 0, E = A.length, T = P.length; C < T; C++, E++)
19084
19097
  A[E] = P[C];
19085
19098
  }
@@ -19088,7 +19101,7 @@ var nv = function() {
19088
19101
  A[L] = P[T];
19089
19102
  return A;
19090
19103
  }
19091
- function R(A, P, C) {
19104
+ function V(A, P, C) {
19092
19105
  return A.slice(0, P).concat(C).concat(A.slice(P));
19093
19106
  }
19094
19107
  return i;
@@ -19136,9 +19149,9 @@ const bL = (n, t) => {
19136
19149
  return;
19137
19150
  const b = n.model.bounding, w = b.max.x - b.min.x, k = b.max.z - b.min.z, M = Math.max(w, k), {
19138
19151
  max: { x: D, z: x },
19139
- min: { x: B, y: O, z: R }
19152
+ min: { x: R, y: O, z: V }
19140
19153
  } = b;
19141
- s.yBase = O, r = { x: (D + B) / 2, y: O - 1.6, z: (x + R) / 2 }, o = [0, l - Math.PI / 2, 0], a = 45e-4 * M, KC(v, { position: r, rotation: o, scale: a });
19154
+ s.yBase = O, r = { x: (D + R) / 2, y: O - 1.6, z: (x + V) / 2 }, o = [0, l - Math.PI / 2, 0], a = 45e-4 * M, KC(v, { position: r, rotation: o, scale: a });
19142
19155
  }
19143
19156
  return { load: c, disable: m, enable: f };
19144
19157
  };
@@ -19159,13 +19172,13 @@ const nP = ({ x: n, y: t, z: e }) => new de(n, t, e), yL = (n, t) => {
19159
19172
  const M = nP(k), D = (P = w == null ? void 0 : w.rad) != null ? P : r, x = (C = w == null ? void 0 : w.fbx_url) != null ? C : o;
19160
19173
  if (e.rad = D, D === void 0)
19161
19174
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${D}`));
19162
- const B = yield new nv().loadAsync(x);
19163
- B.position.copy(M), B.rotation.z = D, B.scale.set(0.8, 0.8, 0.8), Kg(B, { transparent: !0, side: y.DoubleSide });
19164
- const O = (F = (L = (T = (E = B.children) == null ? void 0 : E[0]) == null ? void 0 : T.children) == null ? void 0 : L[3]) == null ? void 0 : F.clone();
19175
+ const R = yield new nv().loadAsync(x);
19176
+ R.position.copy(M), R.rotation.z = D, R.scale.set(0.8, 0.8, 0.8), Kg(R, { transparent: !0, side: y.DoubleSide });
19177
+ const O = (F = (L = (T = (E = R.children) == null ? void 0 : E[0]) == null ? void 0 : T.children) == null ? void 0 : L[3]) == null ? void 0 : F.clone();
19165
19178
  if (!O)
19166
19179
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${O}`));
19167
- const R = (H = t.name) != null ? H : "入户门";
19168
- return O.material = new Ao({ transparent: !0, map: iP(R) }), O.renderOrder = 3, B.children[0].add(O), e.object = B, !0;
19180
+ const V = (H = t.name) != null ? H : "入户门";
19181
+ return O.material = new Ao({ transparent: !0, map: iP(V) }), O.renderOrder = 3, R.children[0].add(O), e.object = R, !0;
19169
19182
  }), c = () => {
19170
19183
  if (e.animation)
19171
19184
  return;
@@ -19186,14 +19199,14 @@ const nP = ({ x: n, y: t, z: e }) => new de(n, t, e), yL = (n, t) => {
19186
19199
  return A = requestAnimationFrame(E), () => {
19187
19200
  cancelAnimationFrame(A);
19188
19201
  };
19189
- }, R = { play: () => {
19202
+ }, V = { play: () => {
19190
19203
  D || (M.play(), D = x(), requestAnimationFrame(() => {
19191
19204
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
19192
19205
  }));
19193
19206
  }, stop: () => {
19194
19207
  M.stop(), D == null || D(), D = void 0;
19195
19208
  } };
19196
- e.animation = R;
19209
+ e.animation = V;
19197
19210
  }, h = (w) => {
19198
19211
  var M;
19199
19212
  if (!e.object)
@@ -19245,7 +19258,7 @@ const kc = (n, t, e) => {
19245
19258
  const t = {}, e = (l, c, ...h) => $(void 0, [l, c, ...h], function* (r, o, a = { preload: !0 }) {
19246
19259
  return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), r.mode && r.mode !== n.currentMode && (yield n.changeMode(r.mode)), a.preload && r.panoIndex !== void 0 && r.panoIndex !== n.panoIndex && (yield n.preloadPano(r.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), r.panoIndex === void 0 && r.fov === void 0 && r.latitude === void 0 && r.longitude === void 0 ? !0 : yield new Promise((d, f) => {
19247
19260
  const m = r.panoIndex !== void 0 ? r.panoIndex : n.panoIndex;
19248
- m !== void 0 ? n.moveToPano(m, V({
19261
+ m !== void 0 ? n.moveToPano(m, B({
19249
19262
  duration: o,
19250
19263
  // 移动耗时
19251
19264
  moveEndCallback: () => d(!0),
@@ -19487,7 +19500,7 @@ const hP = `<style type="text/css">
19487
19500
  const D = v[M], x = (k = w.observers[0]) == null ? void 0 : k.standingPosition;
19488
19501
  if (!x)
19489
19502
  return;
19490
- const B = D.map(({ x: O, z: R, observers: A }) => {
19503
+ const R = D.map(({ x: O, z: V, observers: A }) => {
19491
19504
  const P = A.length > 0 ? p.rooms[p.observers[A[0]]].name : "", C = b[P] ? b[P].floor : null;
19492
19505
  let E = 1 / 0, T = {
19493
19506
  index: 0,
@@ -19503,28 +19516,28 @@ const hP = `<style type="text/css">
19503
19516
  x: ie.x,
19504
19517
  y: ie.y,
19505
19518
  z: ie.z
19506
- }, ue = dP({ x: O, z: R }, se);
19519
+ }, ue = dP({ x: O, z: V }, se);
19507
19520
  C ? ue < E && Math.abs(se.y - C) < 0.3 && (E = ue, T = se) : ue < E && (E = ue, T = se);
19508
19521
  });
19509
- const L = new de(O, T.y, R);
19522
+ const L = new de(O, T.y, V);
19510
19523
  Object.assign(L, { observers: A });
19511
- const F = b[P] ? b[P].roof : null, H = F ? new de(O, F, R) : null;
19524
+ const F = b[P] ? b[P].roof : null, H = F ? new de(O, F, V) : null;
19512
19525
  return H && Object.assign(H, { observers: A }), { origin: L, vertical: H };
19513
19526
  });
19514
19527
  o[M] = {
19515
- origins: B.map((O) => O.origin),
19528
+ origins: R.map((O) => O.origin),
19516
19529
  rules: []
19517
19530
  };
19518
- for (const { origin: O, vertical: R } of B) {
19519
- if (!R)
19531
+ for (const { origin: O, vertical: V } of R) {
19532
+ if (!V)
19520
19533
  continue;
19521
- const A = i(M, O.distanceTo(R));
19522
- s.append(A), o[M].rules.push({ vertical: !0, rule: [O, R], $element: A });
19534
+ const A = i(M, O.distanceTo(V));
19535
+ s.append(A), o[M].rules.push({ vertical: !0, rule: [O, V], $element: A });
19523
19536
  }
19524
- for (let O = 0; O < B.length; O++) {
19525
- let R = O + 1;
19526
- R >= B.length && (R = 0);
19527
- const { origin: A } = B[O], { origin: P } = B[R], C = i(M, A.distanceTo(P));
19537
+ for (let O = 0; O < R.length; O++) {
19538
+ let V = O + 1;
19539
+ V >= R.length && (V = 0);
19540
+ const { origin: A } = R[O], { origin: P } = R[V], C = i(M, A.distanceTo(P));
19528
19541
  s.append(C), o[M].rules.push({ vertical: !1, rule: [A, P], $element: C });
19529
19542
  }
19530
19543
  }
@@ -19533,7 +19546,7 @@ const hP = `<style type="text/css">
19533
19546
  const w = p || t.roomInfo, k = v || t.roomRules;
19534
19547
  if (!w || !k)
19535
19548
  throw new Error("标尺数据依赖不齐全!");
19536
- return e.loaded = !1, e.options = V(V({}, e.options), b || {}), n.model.loaded ? a(w, k) : yield new Promise((M) => n.once("modelLoaded", () => M(a(w, k))));
19549
+ return e.loaded = !1, e.options = B(B({}, e.options), b || {}), n.model.loaded ? a(w, k) : yield new Promise((M) => n.once("modelLoaded", () => M(a(w, k))));
19537
19550
  });
19538
19551
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
19539
19552
  const c = (p, v, b, w) => {
@@ -19561,8 +19574,8 @@ const hP = `<style type="text/css">
19561
19574
  }
19562
19575
  return M.length === 0 ? !1 : M;
19563
19576
  }, h = () => {
19564
- var R;
19565
- const p = (R = n.getElement()) == null ? void 0 : R.parentElement;
19577
+ var V;
19578
+ const p = (V = n.getElement()) == null ? void 0 : V.parentElement;
19566
19579
  if (!p || !e.loaded || Object.keys(o).length <= 0)
19567
19580
  return;
19568
19581
  const { panoIndex: v, camera: b, currentMode: w } = n;
@@ -19577,7 +19590,7 @@ const hP = `<style type="text/css">
19577
19590
  P.style.display = "none";
19578
19591
  return;
19579
19592
  }
19580
- const M = b.position, D = b.getWorldDirection(new de()), x = p.clientWidth, B = p.clientHeight;
19593
+ const M = b.position, D = b.getWorldDirection(new de()), x = p.clientWidth, R = p.clientHeight;
19581
19594
  if (w !== Ft.Mode.Panorama) {
19582
19595
  for (const A in o)
19583
19596
  for (const { $element: P } of o[A].rules)
@@ -19626,7 +19639,7 @@ const hP = `<style type="text/css">
19626
19639
  C.style.display = "none";
19627
19640
  continue;
19628
19641
  }
19629
- const ie = E.clone().project(b), se = (ie.x + 1) / 2 * x, ue = (-ie.y + 1) / 2 * B, Oe = T.clone().project(b), ye = (Oe.x + 1) / 2 * x, Te = (-Oe.y + 1) / 2 * B, fe = Math.sqrt(Math.pow(ye - se, 2) + Math.pow(Te - ue, 2));
19642
+ const ie = E.clone().project(b), se = (ie.x + 1) / 2 * x, ue = (-ie.y + 1) / 2 * R, Oe = T.clone().project(b), ye = (Oe.x + 1) / 2 * x, Te = (-Oe.y + 1) / 2 * R, fe = Math.sqrt(Math.pow(ye - se, 2) + Math.pow(Te - ue, 2));
19630
19643
  let ce = fe, xe = 50;
19631
19644
  const pe = c(
19632
19645
  { x: ~~se, y: ~~ue },
@@ -19635,7 +19648,7 @@ const hP = `<style type="text/css">
19635
19648
  y: ~~Te
19636
19649
  },
19637
19650
  x,
19638
- B
19651
+ R
19639
19652
  );
19640
19653
  if (pe && pe.length === 1 && (O === E ? (ce = Math.sqrt(Math.pow(pe[0].x - se, 2) + Math.pow(pe[0].y - ue, 2)), xe = ce / fe * 50) : O === T && (ce = Math.sqrt(Math.pow(pe[0].x - ye, 2) + Math.pow(pe[0].y - Te, 2)), xe = 100 - ce / fe * 50)), pe && pe.length === 2) {
19641
19654
  const me = {
@@ -19973,24 +19986,24 @@ function yP(n, t, e) {
19973
19986
  [{ x: a, y: 0 }, { x: a, y: l }],
19974
19987
  [{ x: 0, y: l }, { x: a, y: l }]
19975
19988
  ], x = [];
19976
- for (let B = 0; B < D.length; B++) {
19977
- const O = rv([k, M], [D[B][0], D[B][1]], !0);
19989
+ for (let R = 0; R < D.length; R++) {
19990
+ const O = rv([k, M], [D[R][0], D[R][1]], !0);
19978
19991
  O && x.push(O);
19979
19992
  }
19980
19993
  return x.length === 0 ? !1 : x;
19981
19994
  }, h = (k, M) => {
19982
- const D = k.clone().project(i.camera), x = (D.x + 1) / 2 * a, B = (-D.y + 1) / 2 * l, O = M.clone().project(i.camera), R = (O.x + 1) / 2 * a, A = (-O.y + 1) / 2 * l, P = Math.sqrt(Math.pow(R - x, 2) + Math.pow(A - B, 2));
19995
+ const D = k.clone().project(i.camera), x = (D.x + 1) / 2 * a, R = (-D.y + 1) / 2 * l, O = M.clone().project(i.camera), V = (O.x + 1) / 2 * a, A = (-O.y + 1) / 2 * l, P = Math.sqrt(Math.pow(V - x, 2) + Math.pow(A - R, 2));
19983
19996
  return {
19984
19997
  startLeft: x,
19985
- startTop: B,
19986
- endLeft: R,
19998
+ startTop: R,
19999
+ endLeft: V,
19987
20000
  endTop: A,
19988
20001
  distance: P
19989
20002
  };
19990
20003
  }, d = (k, M, D) => {
19991
- const x = i.camera.position, B = i.camera.getWorldDirection(new de()), O = k.clone().sub(x).normalize().angleTo(B), R = M.clone().sub(x).normalize().angleTo(B), A = k.distanceTo(M), C = M.clone().sub(M.clone().sub(k).divide(new de(2, 2, 2))).distanceTo(x), { startLeft: E, startTop: T, endLeft: L, endTop: F, distance: H } = h(k, M), ee = -((Math.PI / 2 - Math.atan2(L - E, T - F)) / Math.PI) * 180;
20004
+ const x = i.camera.position, R = i.camera.getWorldDirection(new de()), O = k.clone().sub(x).normalize().angleTo(R), V = M.clone().sub(x).normalize().angleTo(R), A = k.distanceTo(M), C = M.clone().sub(M.clone().sub(k).divide(new de(2, 2, 2))).distanceTo(x), { startLeft: E, startTop: T, endLeft: L, endTop: F, distance: H } = h(k, M), ee = -((Math.PI / 2 - Math.atan2(L - E, T - F)) / Math.PI) * 180;
19992
20005
  let K = !0;
19993
- D || (K = !1), !Nt(k, D) && !Nt(M, D) && (K = !1), A < 0.3 && (K = !1), O > Math.PI / 2 && (K = !1), R > Math.PI / 2 && (K = !1), C / A > 8 && (K = !1);
20006
+ D || (K = !1), !Nt(k, D) && !Nt(M, D) && (K = !1), A < 0.3 && (K = !1), O > Math.PI / 2 && (K = !1), V > Math.PI / 2 && (K = !1), C / A > 8 && (K = !1);
19994
20007
  let ie = 50, se = H;
19995
20008
  const ue = c({ x: ~~E, y: ~~T }, { x: ~~L, y: ~~F });
19996
20009
  if (ue && ue.length === 1 && (Nt(k, D) ? (se = Math.sqrt(Math.pow(ue[0].x - E, 2) + Math.pow(ue[0].y - T, 2)), ie = se / H * 50) : Nt(M, D) && (se = Math.sqrt(Math.pow(ue[0].x - L, 2) + Math.pow(ue[0].y - F, 2)), ie = 100 - se / H * 50)), ue && ue.length === 2) {
@@ -20015,12 +20028,12 @@ function yP(n, t, e) {
20015
20028
  return e(0, o = []);
20016
20029
  if (i.currentMode !== Ft.Mode.Panorama)
20017
20030
  return e(0, o = []);
20018
- const D = i.camera.position, x = i.camera.getWorldDirection(new de()), B = M.lines.map((P) => new de(P.start[0], -P.start[1], -P.start[2])), O = M.lines.map((P) => new de(P.end[0], -P.end[1], -P.end[2])), [R] = B.concat(O).sort((P, C) => {
20031
+ const D = i.camera.position, x = i.camera.getWorldDirection(new de()), R = M.lines.map((P) => new de(P.start[0], -P.start[1], -P.start[2])), O = M.lines.map((P) => new de(P.end[0], -P.end[1], -P.end[2])), [V] = R.concat(O).sort((P, C) => {
20019
20032
  const E = P.clone().setY(0).sub(D).normalize().angleTo(x.clone().setY(0)), T = C.clone().setY(0).sub(D).normalize().angleTo(x.clone().setY(0));
20020
20033
  return E - T;
20021
20034
  }), A = M.lines.map((P) => {
20022
20035
  var se, ue;
20023
- const C = P.start, E = P.end, { startLeft: T, startTop: L, distance: F, deg: H, visible: q, labelOffset: ee, ruleLength: K } = d(new de(C[0], -C[1], -C[2]), new de(E[0], -E[1], -E[2]), R), ie = [];
20036
+ const C = P.start, E = P.end, { startLeft: T, startTop: L, distance: F, deg: H, visible: q, labelOffset: ee, ruleLength: K } = d(new de(C[0], -C[1], -C[2]), new de(E[0], -E[1], -E[2]), V), ie = [];
20024
20037
  return P.children && ((se = P.children) == null ? void 0 : se.length) > 0 && ((ue = P.children) == null || ue.forEach((Oe) => {
20025
20038
  const ye = Oe.start, Te = Oe.end, { distance: fe } = h(new de(ye[0], -ye[1], -ye[2]), new de(Te[0], -Te[1], -Te[2]));
20026
20039
  ie.push({ width: fe, state: Oe.state });
@@ -20069,7 +20082,7 @@ let CP = class {
20069
20082
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
20070
20083
  "style",
20071
20084
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
20072
- ), e && (e.data && this.load(e.data), this.state.options = V(V({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => $(this, null, function* () {
20085
+ ), e && (e.data && this.load(e.data), this.state.options = B(B({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => $(this, null, function* () {
20073
20086
  var r, o;
20074
20087
  (o = (r = this.five.getElement()) == null ? void 0 : r.parentNode) == null || o.append(this.container);
20075
20088
  })), this.five.once("dispose", () => this.dispose());
@@ -20266,7 +20279,7 @@ class MP extends wn {
20266
20279
  this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
20267
20280
  visible: !0,
20268
20281
  enabled: !0,
20269
- config: V(V({}, this.state.config), i || {})
20282
+ config: B(B({}, this.state.config), i || {})
20270
20283
  });
20271
20284
  }
20272
20285
  /**
@@ -20329,7 +20342,7 @@ class MP extends wn {
20329
20342
  this.state = {
20330
20343
  visible: (r = e.visible) != null ? r : s.visible,
20331
20344
  enabled: (o = e.enabled) != null ? o : s.enabled,
20332
- config: V(V({}, s.config), e.config || {})
20345
+ config: B(B({}, s.config), e.config || {})
20333
20346
  }, this.hooks.emit("stateChange", {
20334
20347
  state: this.state,
20335
20348
  prevState: s,
@@ -20339,7 +20352,7 @@ class MP extends wn {
20339
20352
  load(e, i, s = !0) {
20340
20353
  return $(this, null, function* () {
20341
20354
  const r = yield this.formatData(e);
20342
- JSON.stringify(this.data) !== JSON.stringify(r) && (this.hooks.emit("dataChange", r, this.data), this.data = V({}, r), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
20355
+ JSON.stringify(this.data) !== JSON.stringify(r) && (this.hooks.emit("dataChange", r, this.data), this.data = B({}, r), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
20343
20356
  });
20344
20357
  }
20345
20358
  formatData(e) {
@@ -20515,7 +20528,7 @@ class cv {
20515
20528
  class HP extends cv {
20516
20529
  constructor(e) {
20517
20530
  var i;
20518
- e.contentStyle = ae(V({}, e.contentStyle), {
20531
+ e.contentStyle = ae(B({}, e.contentStyle), {
20519
20532
  background: "rgba(195,195,195,0.70)",
20520
20533
  border: "0.5px solid rgba(255,255,255,0.6)",
20521
20534
  borderRadius: "999px"
@@ -20525,7 +20538,7 @@ class HP extends cv {
20525
20538
  this.line = e.line, (i = this.params.userDistanceItem) != null && i.element ? this.containerDom.appendChild(this.params.userDistanceItem.element) : this.containerDom.appendChild(this.contentDom);
20526
20539
  }
20527
20540
  update(e) {
20528
- var B;
20541
+ var R;
20529
20542
  if (this.line.mesh.visible === !1) {
20530
20543
  this.hide();
20531
20544
  return;
@@ -20542,7 +20555,7 @@ class HP extends cv {
20542
20555
  return;
20543
20556
  }
20544
20557
  const b = (f.x + 1) / 2 * s, w = -(f.y - 1) / 2 * r, M = -(Math.atan((m.y - g.y) / (m.x - g.x)) * 180) / Math.PI, D = this.containerDom.parentElement && this.contentDom.clientWidth > p ? -20 : 0;
20545
- this.containerDom.style.transform = `translate(${b}px, ${w}px) rotate(${M}deg) translateY(${D}px)`, this.show(), (B = this.params.userDistanceItem) == null || B.update({ line: this.line, polyline: this.line.getPolyline() });
20558
+ this.containerDom.style.transform = `translate(${b}px, ${w}px) rotate(${M}deg) translateY(${D}px)`, this.show(), (R = this.params.userDistanceItem) == null || R.update({ line: this.line, polyline: this.line.getPolyline() });
20546
20559
  const x = this.getCurrentContent();
20547
20560
  this.contentDom.innerText = x;
20548
20561
  }
@@ -20670,8 +20683,8 @@ let ml = class {
20670
20683
  });
20671
20684
  });
20672
20685
  var i, s, r;
20673
- this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = ae(V({}, t.pointSelectorConfig), {
20674
- helper: V({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
20686
+ this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = ae(B({}, t.pointSelectorConfig), {
20687
+ helper: B({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
20675
20688
  }), this.container = t.container, this.isMobile = (r = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? r : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new wr(new wi([0, 0, 0]), new wi([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new wr(new wi([0, 0, 0]), new wi([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new ei(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
20676
20689
  const e = this.five.getElement();
20677
20690
  e && (e.addEventListener("touchstart", ua), e.addEventListener("contextmenu", ua));
@@ -21227,9 +21240,9 @@ function h2(n) {
21227
21240
  }
21228
21241
  class d2 extends cv {
21229
21242
  constructor(e) {
21230
- e.containerStyle = ae(V({}, e.containerStyle), {
21243
+ e.containerStyle = ae(B({}, e.containerStyle), {
21231
21244
  zIndex: "1"
21232
- }), e.contentStyle = ae(V({}, e.contentStyle), {
21245
+ }), e.contentStyle = ae(B({}, e.contentStyle), {
21233
21246
  background: "#6386FF",
21234
21247
  borderRadius: "2px"
21235
21248
  });
@@ -21632,8 +21645,8 @@ class Vn extends ml {
21632
21645
  const [w, k] = b.points, M = w.position.clone().project(o), D = k.position.clone().project(o);
21633
21646
  if (!Is(M) && !Is(D))
21634
21647
  return null;
21635
- const x = new Gt(M.x * l, M.y * c), B = new Gt(D.x * l, D.y * c);
21636
- return { id: b.id, points: [x, B] };
21648
+ const x = new Gt(M.x * l, M.y * c), R = new Gt(D.x * l, D.y * c);
21649
+ return { id: b.id, points: [x, R] };
21637
21650
  }).filter((b) => !!b);
21638
21651
  if (d.length === 0)
21639
21652
  return;
@@ -21674,9 +21687,9 @@ class Vn extends ml {
21674
21687
  const s = i.type === "area", r = Array.isArray(i) && ((o = i[0]) == null ? void 0 : o.type) === "line";
21675
21688
  s && this.unHighlightArea(i), r && this.unHighlightLines(i);
21676
21689
  }
21677
- }).appendTo(this.container), this.pointSelector = new sl(this.five, ae(V({}, this.pointSelectorConfig), {
21690
+ }).appendTo(this.container), this.pointSelector = new sl(this.five, ae(B({}, this.pointSelectorConfig), {
21678
21691
  mode: this.editParams.pointSelectorMode,
21679
- helper: V({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
21692
+ helper: B({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
21680
21693
  })), this.pointSelector.enable(), this.polyline = new Cr({ model: this.model }), this.area = new Oc(void 0, {
21681
21694
  five: this.five,
21682
21695
  model: this.model,
@@ -21884,8 +21897,8 @@ class rf extends ml {
21884
21897
  const [w, k] = b.points, M = w.position.clone().project(a), D = k.position.clone().project(a);
21885
21898
  if (!Is(M) && !Is(D))
21886
21899
  return null;
21887
- const x = new Gt(M.x * c, M.y * h), B = new Gt(D.x * c, D.y * h);
21888
- return { id: b.id, points: [x, B] };
21900
+ const x = new Gt(M.x * c, M.y * h), R = new Gt(D.x * c, D.y * h);
21901
+ return { id: b.id, points: [x, R] };
21889
21902
  }).filter((b) => !!b);
21890
21903
  if (f.length === 0)
21891
21904
  return;
@@ -22150,7 +22163,7 @@ class C2 {
22150
22163
  const t = Li(this.five).intersectRaycaster(this.raycaster)[0];
22151
22164
  return t || null;
22152
22165
  });
22153
- this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = wv(V({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = Ob, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new rr(
22166
+ this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = wv(B({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = Ob, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new rr(
22154
22167
  new CA(0.04, 0.08, 32),
22155
22168
  new Ao({ color: 1245179, opacity: 0, side: Rp, transparent: !0 })
22156
22169
  ), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
@@ -23841,15 +23854,15 @@ function sI(n, t, e) {
23841
23854
  e(5, c = A === "allow");
23842
23855
  }, x = (A) => {
23843
23856
  e(12, d = A);
23844
- }, B = (A) => {
23857
+ }, R = (A) => {
23845
23858
  A.isEmpty && p("start");
23846
23859
  };
23847
23860
  Qt(() => {
23848
- i.hook.on("revoke", B), i.hook.on("measureTypeChange", x), i.hook.on("modeChange", M), i.hook.on("pointsChange", k), i.hook.on("allowAddPointStateChange", D), i.hook.on("readyComplete", b), i.hook.on("notReadyComplete", w), i.hook.on("complete", M);
23861
+ i.hook.on("revoke", R), i.hook.on("measureTypeChange", x), i.hook.on("modeChange", M), i.hook.on("pointsChange", k), i.hook.on("allowAddPointStateChange", D), i.hook.on("readyComplete", b), i.hook.on("notReadyComplete", w), i.hook.on("complete", M);
23849
23862
  }), mi(() => {
23850
23863
  i.hook.off("measureTypeChange", x), i.hook.off("modeChange", M), i.hook.off("allowAddPointStateChange", D), i.hook.off("readyComplete", b), i.hook.off("pointsChange", k), i.hook.off("notReadyComplete", w), i.hook.off("complete", M);
23851
23864
  });
23852
- const O = () => i.revoke(), R = () => {
23865
+ const O = () => i.revoke(), V = () => {
23853
23866
  h === "start" ? f() : h === "add" ? m() : (h === "end" || h === "complete") && v();
23854
23867
  };
23855
23868
  return n.$$set = (A) => {
@@ -23872,7 +23885,7 @@ function sI(n, t, e) {
23872
23885
  v,
23873
23886
  d,
23874
23887
  O,
23875
- R
23888
+ V
23876
23889
  ];
23877
23890
  }
23878
23891
  class rI extends Ce {
@@ -24268,7 +24281,7 @@ class gI extends Kn {
24268
24281
  ), this.allowMeasureType = Array.from(new Set((m = (f = i.editParams) == null ? void 0 : f.allowMeasureType) != null ? m : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new Hn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
24269
24282
  const s = (v = (p = i.editParams) == null ? void 0 : p.pointSelectorMode) != null ? v : Yp ? "fixed" : "cursor", r = (b = this.params.openParams) != null ? b : {};
24270
24283
  if (this.params.useUIController !== !1) {
24271
- const w = V({
24284
+ const w = B({
24272
24285
  container: this.container,
24273
24286
  openParams: r,
24274
24287
  i18n: i.i18n,
@@ -24278,7 +24291,7 @@ class gI extends Kn {
24278
24291
  this.useUIController = new oI(this, w);
24279
24292
  }
24280
24293
  if (this.params.useGuideController !== !1) {
24281
- const w = V({
24294
+ const w = B({
24282
24295
  container: this.container,
24283
24296
  pointSelectorMode: s,
24284
24297
  i18n: i.i18n
@@ -24305,7 +24318,7 @@ class gI extends Kn {
24305
24318
  e.list && (i = {
24306
24319
  polylines: e.list.map((r) => r.polyline).map((r) => {
24307
24320
  var o;
24308
- return ae(V({}, r), {
24321
+ return ae(B({}, r), {
24309
24322
  visibleFiveMode: (o = r.visibleFiveMode) != null ? o : ["Panorama"]
24310
24323
  });
24311
24324
  })
@@ -24416,7 +24429,7 @@ class gI extends Kn {
24416
24429
  pointSelectorConfig: this.params.pointSelectorConfig,
24417
24430
  magnifierParams: this.params.magnifierParams,
24418
24431
  getMeasureType: () => this.currentMeasureType,
24419
- mouseGroup: wv(V({}, e.crossHairParameter)),
24432
+ mouseGroup: wv(B({}, e.crossHairParameter)),
24420
24433
  userDistanceItemCreator: this.params.userDistanceItemCreator
24421
24434
  };
24422
24435
  }
@@ -24461,11 +24474,11 @@ class Xn extends si {
24461
24474
  size: (f = e == null ? void 0 : e.size) != null ? f : 8,
24462
24475
  map: Pf || (Pf = new y.TextureLoader().load(vI)),
24463
24476
  sizeAttenuation: !1
24464
- }, a = new y.PointsMaterial(ae(V({}, o), {
24477
+ }, a = new y.PointsMaterial(ae(B({}, o), {
24465
24478
  color: (m = e == null ? void 0 : e.color) != null ? m : 16777215,
24466
24479
  depthTest: !0,
24467
24480
  opacity: (g = e == null ? void 0 : e.opacity) != null ? g : 1
24468
- })), l = new y.PointsMaterial(ae(V({}, o), {
24481
+ })), l = new y.PointsMaterial(ae(B({}, o), {
24469
24482
  size: a.size,
24470
24483
  color: a.color,
24471
24484
  depthWrite: !1,
@@ -24530,10 +24543,10 @@ class Do extends di {
24530
24543
  u(this, "pointGroup", new si());
24531
24544
  u(this, "_paramsStyle");
24532
24545
  u(this, "setStyle", (e) => {
24533
- super.setStyle(e), this._paramsStyle = V(V({}, this._paramsStyle), e), this.pointMeshes.forEach(
24546
+ super.setStyle(e), this._paramsStyle = B(B({}, this._paramsStyle), e), this.pointMeshes.forEach(
24534
24547
  (i) => {
24535
24548
  var s, r, o;
24536
- return i.setStyle(ae(V({}, this._paramsStyle), { color: (o = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? o : (r = this._paramsStyle) == null ? void 0 : r.lineColor, tip: void 0 }));
24549
+ return i.setStyle(ae(B({}, this._paramsStyle), { color: (o = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? o : (r = this._paramsStyle) == null ? void 0 : r.lineColor, tip: void 0 }));
24537
24550
  }
24538
24551
  ), this.updateEdgePointsVisibility(), this.needsRender = !0;
24539
24552
  });
@@ -24566,7 +24579,7 @@ class Do extends di {
24566
24579
  const i = e.map(Fe).filter(_e);
24567
24580
  this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
24568
24581
  var o, a, l;
24569
- const r = new Xn(ae(V({}, this.style), {
24582
+ const r = new Xn(ae(B({}, this.style), {
24570
24583
  color: (l = (o = this._paramsStyle) == null ? void 0 : o.pointColor) != null ? l : (a = this._paramsStyle) == null ? void 0 : a.lineColor,
24571
24584
  tip: void 0
24572
24585
  }));
@@ -24632,7 +24645,7 @@ class Al extends si {
24632
24645
  return this._geometry;
24633
24646
  }
24634
24647
  setStyle(e) {
24635
- this.paramsStyle = V(V({}, this.paramsStyle), e), _e(e.color) && (this.meshFont.material.color.set(new y.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), _e(e.opacity) && (this.meshFont.material.opacity = e.opacity, this.meshBackground.material.opacity = 0.3 / 0.5 * this.meshFont.material.opacity, this.needsRender = !0), this.setOcclusionVisibility(e);
24648
+ this.paramsStyle = B(B({}, this.paramsStyle), e), _e(e.color) && (this.meshFont.material.color.set(new y.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), _e(e.opacity) && (this.meshFont.material.opacity = e.opacity, this.meshBackground.material.opacity = 0.3 / 0.5 * this.meshFont.material.opacity, this.needsRender = !0), this.setOcclusionVisibility(e);
24636
24649
  }
24637
24650
  highlight(e) {
24638
24651
  var i, s;
@@ -24685,7 +24698,7 @@ class Br extends Al {
24685
24698
  return this.points.length >= 3 ? new y.Vector3().crossVectors(this.points[1].clone().sub(this.points[0]), this.points[2].clone().sub(this.points[0])).normalize() : new y.Vector3(0, 0, 1);
24686
24699
  }
24687
24700
  get style() {
24688
- return ae(V({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
24701
+ return ae(B({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
24689
24702
  }
24690
24703
  get isBlank() {
24691
24704
  return !!this.geometry.isBlank;
@@ -24709,7 +24722,7 @@ class Br extends Al {
24709
24722
  }
24710
24723
  setStyle(e) {
24711
24724
  var s;
24712
- this._paramsStyle = V(V({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
24725
+ this._paramsStyle = B(B({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
24713
24726
  const i = (s = this._paramsStyle.occlusionVisibility) != null ? s : !0;
24714
24727
  this.areaDom && (this.areaDom.intersectCheck = !i), this.updateAreaItems();
24715
24728
  }
@@ -25250,12 +25263,12 @@ class TI extends yt {
25250
25263
  polygonStyle: this.polygonStyle
25251
25264
  });
25252
25265
  this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
25253
- const i = new Xn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new Do(ae(V({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), r = new Br(this.polygonStyle), o = new di(ae(V({}, this.lineStyle), {
25266
+ const i = new Xn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new Do(ae(B({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), r = new Br(this.polygonStyle), o = new di(ae(B({}, this.lineStyle), {
25254
25267
  lineOpacity: 0.5,
25255
25268
  lineColor: 3407837,
25256
25269
  dashed: !0,
25257
25270
  cssStyle: "pointer-events: none; color: #fff; opacity: 0.5;"
25258
- })), a = new di(ae(V({}, this.lineStyle), {
25271
+ })), a = new di(ae(B({}, this.lineStyle), {
25259
25272
  lineOpacity: 0.5,
25260
25273
  lineColor: 3407837,
25261
25274
  dashed: !0,
@@ -25689,20 +25702,20 @@ function RI(n, t, e) {
25689
25702
  100
25690
25703
  );
25691
25704
  const k = (x) => {
25692
- const B = Object.keys(f);
25705
+ const R = Object.keys(f);
25693
25706
  let O = x.target;
25694
25707
  for (; O; ) {
25695
- const R = O.getAttribute("class");
25696
- if (!R) {
25708
+ const V = O.getAttribute("class");
25709
+ if (!V) {
25697
25710
  O = O.parentNode;
25698
25711
  continue;
25699
25712
  }
25700
- if (R.includes("PanoSpatialTagPlugin__tag-content")) {
25713
+ if (V.includes("PanoSpatialTagPlugin__tag-content")) {
25701
25714
  O = null;
25702
25715
  break;
25703
25716
  }
25704
- B.forEach((A) => {
25705
- R.includes(A) && f[A](i);
25717
+ R.forEach((A) => {
25718
+ V.includes(A) && f[A](i);
25706
25719
  }), O = O.parentNode;
25707
25720
  }
25708
25721
  };
@@ -25712,8 +25725,8 @@ function RI(n, t, e) {
25712
25725
  const M = jv.subscribe((x) => {
25713
25726
  if (x === null)
25714
25727
  return;
25715
- const [B, O] = x.split("-PanoSpatialTagPlugin-");
25716
- i === B && (m.emit("clickOrigin", { id: i, show: b }), w || (e(10, b = h), e(12, h = !h), w = setTimeout(
25728
+ const [R, O] = x.split("-PanoSpatialTagPlugin-");
25729
+ i === R && (m.emit("clickOrigin", { id: i, show: b }), w || (e(10, b = h), e(12, h = !h), w = setTimeout(
25717
25730
  () => {
25718
25731
  w = void 0;
25719
25732
  },
@@ -25992,10 +26005,10 @@ const Yl = 1e-3, Of = 0.01, WI = "https://vrlab-image4.ljcdn.com/release/web/Pan
25992
26005
  }, x = () => {
25993
26006
  p.forbidden || !p.enabled || (p.timeoutId && clearTimeout(p.timeoutId), p.timeoutId = setTimeout(() => {
25994
26007
  p.timeoutId = void 0;
25995
- const fe = B();
26008
+ const fe = R();
25996
26009
  fe.length && (p.tags = p.tags.concat(fe), D());
25997
26010
  }, s));
25998
- }, B = () => {
26011
+ }, R = () => {
25999
26012
  const { clientWidth: fe, clientHeight: ce } = n.getElement(), xe = [], pe = n.camera, We = new y.Frustum(), Ge = new y.Matrix4(), De = pe.getWorldDirection(new y.Vector3());
26000
26013
  Ge.multiplyMatrices(pe.projectionMatrix, pe.matrixWorldInverse), We.setFromProjectionMatrix(Ge);
26001
26014
  const Qe = p.tags.filter((ke) => We.containsPoint(ke.position) && !ke.destroying).length, me = p.points.reduce((ke, Se) => {
@@ -26096,7 +26109,7 @@ const Yl = 1e-3, Of = 0.01, WI = "https://vrlab-image4.ljcdn.com/release/web/Pan
26096
26109
  weight: (pe = ce.weight) != null ? pe : -1
26097
26110
  };
26098
26111
  }), fe.render && (p.render = fe.render), fe.template && (p.template = fe.template), fe.events && (p.events = fe.events), fe.enabled === !1 && (p.enabled = fe.enabled), fe.folded === !0 && (p.folded = fe.folded);
26099
- }, R = (fe) => {
26112
+ }, V = (fe) => {
26100
26113
  p.intersectObjects = fe, x();
26101
26114
  }, A = () => {
26102
26115
  p.enabled = !0, x();
@@ -26131,7 +26144,7 @@ const Yl = 1e-3, Of = 0.01, WI = "https://vrlab-image4.ljcdn.com/release/web/Pan
26131
26144
  };
26132
26145
  return window.addEventListener("resize", F, !1), (Te = n == null ? void 0 : n.model) != null && Te.loaded ? H() : n.once("modelLoaded", H), n.on("dispose", q), {
26133
26146
  load: O,
26134
- setIntersectObjects: R,
26147
+ setIntersectObjects: V,
26135
26148
  unfoldAll: C,
26136
26149
  foldAll: E,
26137
26150
  unfold: T,
@@ -26430,10 +26443,10 @@ function eE(n, t, e) {
26430
26443
  const L = T.map((H) => {
26431
26444
  const q = b(E, H), ee = H.name.length * $I, K = M(H.modelPosition[1], c), se = (o ? v(E, H) : !0) && !k([q[0], q[1] + K], ee);
26432
26445
  if (!se)
26433
- return ae(V({}, H), { visible: se });
26446
+ return ae(B({}, H), { visible: se });
26434
26447
  g.push(q);
26435
26448
  const ue = w(q);
26436
- return ae(V({}, H), {
26449
+ return ae(B({}, H), {
26437
26450
  visible: se,
26438
26451
  transform: ue,
26439
26452
  strokeLength: K
@@ -26444,7 +26457,7 @@ function eE(n, t, e) {
26444
26457
  })).sort((H, q) => H.distance - q.distance);
26445
26458
  return L.map((H) => {
26446
26459
  const q = F.findIndex((ee) => ee.itemLabelItem.id === H.id);
26447
- return q !== void 0 ? ae(V({}, H), { zIndex: q * 10 }) : H;
26460
+ return q !== void 0 ? ae(B({}, H), { zIndex: q * 10 }) : H;
26448
26461
  });
26449
26462
  }, x = () => {
26450
26463
  g = [], e(1, d = D(r, d));
@@ -26452,18 +26465,18 @@ function eE(n, t, e) {
26452
26465
  zg(() => {
26453
26466
  A();
26454
26467
  });
26455
- const B = () => {
26468
+ const R = () => {
26456
26469
  e(4, p = !1), O();
26457
26470
  };
26458
26471
  Qt(() => {
26459
- e(1, d = a), h = a, x(), R(), r.on("cameraUpdate", B);
26472
+ e(1, d = a), h = a, x(), V(), r.on("cameraUpdate", R);
26460
26473
  });
26461
26474
  const O = _v(
26462
26475
  () => {
26463
26476
  e(4, p = !0), x();
26464
26477
  },
26465
26478
  300
26466
- ), R = () => {
26479
+ ), V = () => {
26467
26480
  window.addEventListener("resize", P, !1);
26468
26481
  }, A = () => {
26469
26482
  h !== a && (e(1, d = a), h = a, x());
@@ -26471,7 +26484,7 @@ function eE(n, t, e) {
26471
26484
  r.once("renderFrame", x);
26472
26485
  };
26473
26486
  mi(() => {
26474
- r.off("cameraUpdate", B), window.removeEventListener("resize", P, !1);
26487
+ r.off("cameraUpdate", R), window.removeEventListener("resize", P, !1);
26475
26488
  });
26476
26489
  function C() {
26477
26490
  f = this.clientWidth, m = this.clientHeight, e(2, f), e(3, m);
@@ -26511,7 +26524,7 @@ let tE = class extends Ce {
26511
26524
  }
26512
26525
  };
26513
26526
  function iE(n) {
26514
- return n.model_item_labels.map((t) => V({
26527
+ return n.model_item_labels.map((t) => B({
26515
26528
  modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
26516
26529
  }, t));
26517
26530
  }
@@ -26670,15 +26683,15 @@ const sE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
26670
26683
  for (let C = 1; C < M; C++)
26671
26684
  x.push(1, C / M);
26672
26685
  x.push(1, 1);
26673
- const B = [];
26686
+ const R = [];
26674
26687
  for (let C = 0; C < M; C++)
26675
- B.push(C, C + 1, M * 2 - C, C, M * 2 - C, M * 2 + 1 - C);
26676
- k.setAttribute("position", new y.BufferAttribute(new Float32Array(D), 3)), k.setAttribute("uv", new y.BufferAttribute(new Float32Array(x), 2)), k.setIndex(new y.BufferAttribute(new Uint32Array(B), 1));
26688
+ R.push(C, C + 1, M * 2 - C, C, M * 2 - C, M * 2 + 1 - C);
26689
+ k.setAttribute("position", new y.BufferAttribute(new Float32Array(D), 3)), k.setAttribute("uv", new y.BufferAttribute(new Float32Array(x), 2)), k.setIndex(new y.BufferAttribute(new Uint32Array(R), 1));
26677
26690
  const O = new y.MeshBasicMaterial({
26678
26691
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
26679
26692
  side: y.DoubleSide
26680
- }), R = new y.Mesh(k, O);
26681
- R.renderOrder = 1, R.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
26693
+ }), V = new y.Mesh(k, O);
26694
+ V.renderOrder = 1, V.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
26682
26695
  const A = [b[1], b[2], b[3], b[0]], P = i.create3DDomContainer(A);
26683
26696
  if (P != null && P.container) {
26684
26697
  const C = document.createElement("div");
@@ -26686,9 +26699,9 @@ const sE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
26686
26699
  const E = document.createElement("img");
26687
26700
  E.src = Qh, E.style.width = "200px", E.style.pointerEvents = "auto", E.onclick = () => {
26688
26701
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
26689
- }, C.appendChild(E), s.set(R, P);
26702
+ }, C.appendChild(E), s.set(V, P);
26690
26703
  }
26691
- return R;
26704
+ return V;
26692
26705
  }), h = (b) => {
26693
26706
  const w = new y.TextureLoader().load(b);
26694
26707
  return w.minFilter = y.LinearFilter, w.magFilter = y.LinearFilter, w.format = y.RGBFormat, w;
@@ -26699,17 +26712,17 @@ const sE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
26699
26712
  x.onreadystatechange = () => {
26700
26713
  if (x.readyState === 4)
26701
26714
  if (x.status === 200) {
26702
- const B = window.URL || window.webkitURL;
26703
- k = k || document.createElement("video"), k.crossOrigin = "anonymous", k.muted = !0, k.loop = !0, k.playsInline = !0, k.src = B.createObjectURL(x.response);
26715
+ const R = window.URL || window.webkitURL;
26716
+ k = k || document.createElement("video"), k.crossOrigin = "anonymous", k.muted = !0, k.loop = !0, k.playsInline = !0, k.src = R.createObjectURL(x.response);
26704
26717
  const O = new y.VideoTexture(k);
26705
26718
  O.minFilter = y.LinearFilter, O.magFilter = y.LinearFilter, O.format = y.RGBFormat, M(Object.assign(O, { videoSource: b }));
26706
26719
  } else
26707
26720
  D(new Error("Video download Error: " + x.status));
26708
- }, x.onerror = (B) => D(B), x.open("GET", b), x.responseType = "blob", x.send();
26721
+ }, x.onerror = (R) => D(R), x.open("GET", b), x.responseType = "blob", x.send();
26709
26722
  });
26710
26723
  }, f = (b, w) => $(void 0, null, function* () {
26711
26724
  const { video_src: k, video_poster_src: M, points: D } = b;
26712
- e.videoSource = k, e.rectPoints = nE(D).map((x) => x.map(({ x: B, y: O, z: R }) => new y.Vector3(B, O, R))), e.imageTexture = h(M), w && (e.videoElement = w), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!b.enable, e.enabled && a();
26725
+ e.videoSource = k, e.rectPoints = nE(D).map((x) => x.map(({ x: R, y: O, z: V }) => new y.Vector3(R, O, V))), e.imageTexture = h(M), w && (e.videoElement = w), e.videoTexture = yield d(e.videoSource, e.videoElement), e.enabled = !!b.enable, e.enabled && a();
26713
26726
  }), m = (b) => {
26714
26727
  if (!e.enabled)
26715
26728
  return;
@@ -26723,14 +26736,14 @@ const sE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
26723
26736
  return;
26724
26737
  const b = n.camera.position;
26725
26738
  if (s.forEach((w, k) => {
26726
- const M = w.css3DObject.position.clone(), D = M.clone().sub(b).normalize(), x = new y.Raycaster(b, D), B = n.model.intersectRaycaster(x)[0], O = M.distanceTo(b), R = 0.01;
26727
- B && B.distance + R < O ? w.hide() : w.show();
26739
+ const M = w.css3DObject.position.clone(), D = M.clone().sub(b).normalize(), x = new y.Raycaster(b, D), R = n.model.intersectRaycaster(x)[0], O = M.distanceTo(b), V = 0.01;
26740
+ R && R.distance + V < O ? w.hide() : w.show();
26728
26741
  }), !o()) {
26729
26742
  const w = e.rectPoints.find((k) => {
26730
26743
  const M = k[0].clone().add(k[1]).add(k[2]).add(k[3]).divideScalar(4);
26731
26744
  return k.map((D) => D.clone().add(M).divideScalar(2)).filter((D) => {
26732
- const x = D.distanceTo(b), B = new y.Raycaster(b, D.clone().sub(b).normalize()), O = n.model.intersectRaycaster(B)[0], R = 0.01;
26733
- return !(O && O.distance + R < x);
26745
+ const x = D.distanceTo(b), R = new y.Raycaster(b, D.clone().sub(b).normalize()), O = n.model.intersectRaycaster(R)[0], V = 0.01;
26746
+ return !(O && O.distance + V < x);
26734
26747
  }).length >= 2;
26735
26748
  });
26736
26749
  (!w || w.length === 0) && r(!0);
@@ -26973,7 +26986,7 @@ const { Raycaster: uE, Vector3: RL } = y, Rf = (n, t, e, i) => {
26973
26986
  }
26974
26987
  }, mE = (n) => `translate(${n[0]}px, ${n[1]}px)`;
26975
26988
  function Vf(n) {
26976
- return n.map((t) => V({
26989
+ return n.map((t) => B({
26977
26990
  observerIndex: void 0,
26978
26991
  visible: !1,
26979
26992
  isFold: !1
@@ -27152,15 +27165,15 @@ function AE(n, t, e) {
27152
27165
  }, M = (T, L) => {
27153
27166
  const F = L.map((q) => {
27154
27167
  if (T.state.panoIndex !== q.panoIndex)
27155
- return ae(V({}, q), { visible: !1 });
27168
+ return ae(B({}, q), { visible: !1 });
27156
27169
  const ee = k(T, q);
27157
27170
  q.name.length * vE;
27158
27171
  const K = fE(q.modelPosition[1], l), ie = T.currentMode === Ft.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, se = r ? b(T, q) : !1, ue = ie && !se;
27159
27172
  if (!ue)
27160
- return ae(V({}, q), { visible: ue });
27173
+ return ae(B({}, q), { visible: ue });
27161
27174
  p.push(ee);
27162
27175
  const Oe = mE(ee);
27163
- return ae(V({}, q), {
27176
+ return ae(B({}, q), {
27164
27177
  visible: ue,
27165
27178
  transform: Oe,
27166
27179
  strokeLength: K
@@ -27171,20 +27184,20 @@ function AE(n, t, e) {
27171
27184
  })).sort((q, ee) => q.distance - ee.distance);
27172
27185
  return F.map((q) => {
27173
27186
  const ee = H.findIndex((K) => K.itemLabelItem.id === q.id);
27174
- return ee !== void 0 ? ae(V({}, q), { zIndex: ee * 10 }) : q;
27187
+ return ee !== void 0 ? ae(B({}, q), { zIndex: ee * 10 }) : q;
27175
27188
  });
27176
27189
  }, D = () => {
27177
27190
  p = [], e(1, d = M(s, d));
27178
27191
  }, x = () => {
27179
- e(5, v = !1), B();
27180
- }, B = _v(
27192
+ e(5, v = !1), R();
27193
+ }, R = _v(
27181
27194
  () => {
27182
27195
  e(5, v = !0), D();
27183
27196
  },
27184
27197
  300
27185
27198
  ), O = () => {
27186
27199
  s.once("renderFrame", D);
27187
- }, R = () => {
27200
+ }, V = () => {
27188
27201
  window.addEventListener("resize", O, !1);
27189
27202
  }, A = () => {
27190
27203
  h !== o && (e(1, d = Vf(o)), h = o, D());
@@ -27213,14 +27226,14 @@ function AE(n, t, e) {
27213
27226
  longitude: Math.PI + Math.atan2(ee.x, ee.z),
27214
27227
  latitude: Math.acos(ee.y / ee.length()) - Math.PI / 2
27215
27228
  };
27216
- s.setState(ae(V({}, K), {
27229
+ s.setState(ae(B({}, K), {
27217
27230
  mode: Ft.Mode.Panorama,
27218
27231
  panoIndex: T.observerIndex
27219
27232
  })), s.once("initAnimationEnded", () => {
27220
- e(1, d = d.map((ie) => ae(V({}, ie), {
27233
+ e(1, d = d.map((ie) => ae(B({}, ie), {
27221
27234
  isFold: ie.id !== T.id
27222
27235
  }))), s.once("cameraUpdate", () => {
27223
- e(1, d = d.map((ie) => ae(V({}, ie), { isFold: !1 })));
27236
+ e(1, d = d.map((ie) => ae(B({}, ie), { isFold: !1 })));
27224
27237
  });
27225
27238
  });
27226
27239
  }
@@ -27228,7 +27241,7 @@ function AE(n, t, e) {
27228
27241
  zg(() => {
27229
27242
  A();
27230
27243
  }), Qt(() => {
27231
- e(1, d = Vf(o)), h = o, D(), R(), s.on("cameraUpdate", x);
27244
+ e(1, d = Vf(o)), h = o, D(), V(), s.on("cameraUpdate", x);
27232
27245
  }), mi(() => {
27233
27246
  s.off("cameraUpdate", x), window.removeEventListener("resize", O, !1);
27234
27247
  });
@@ -27275,7 +27288,7 @@ class bE extends Ce {
27275
27288
  }
27276
27289
  }
27277
27290
  function yE(n) {
27278
- return n.item_labels.map((t) => ae(V({}, t), {
27291
+ return n.item_labels.map((t) => ae(B({}, t), {
27279
27292
  modelPosition: [t.position[0], t.position[1], t.position[2]],
27280
27293
  observerIndex: void 0
27281
27294
  }));
@@ -27542,18 +27555,18 @@ class TE extends Kn {
27542
27555
  D.left = F, D.top = H, D.inSight = q && T < Math.PI / 2, D.cameraToward = xE(this.five), q ? l.push({ disFromCameraToLabel: P, left: F, top: H, index: x }) : D.transform = "translate(-50%, -50%)";
27543
27556
  } else
27544
27557
  D.inSight = !1;
27545
- const R = D, { svelteApp: B } = R, O = cn(R, ["svelteApp"]);
27558
+ const V = D, { svelteApp: R } = V, O = cn(V, ["svelteApp"]);
27546
27559
  (A = D.svelteApp) == null || A.$set({ props: O });
27547
27560
  }), l.length > 1) {
27548
27561
  let D = 0;
27549
- l.sort((x, B) => B.disFromCameraToLabel - x.disFromCameraToLabel);
27562
+ l.sort((x, R) => R.disFromCameraToLabel - x.disFromCameraToLabel);
27550
27563
  for (let x = 1; x < l.length; x++) {
27551
- const { index: B, left: O, top: R } = l[x - 1], { index: A, left: P, top: C } = l[x], E = this.container.children[B], T = this.container.children[A];
27564
+ const { index: R, left: O, top: V } = l[x - 1], { index: A, left: P, top: C } = l[x], E = this.container.children[R], T = this.container.children[A];
27552
27565
  if (!E || !T)
27553
27566
  return;
27554
27567
  const L = {
27555
27568
  left: r * O / 100,
27556
- top: o * R / 100,
27569
+ top: o * V / 100,
27557
27570
  width: (d = (h = (c = E.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
27558
27571
  height: (g = (m = (f = E.children) == null ? void 0 : f[0]) == null ? void 0 : m.clientHeight) != null ? g : 0
27559
27572
  }, F = {
@@ -27562,7 +27575,7 @@ class TE extends Kn {
27562
27575
  width: (b = (v = (p = T.children) == null ? void 0 : p[0]) == null ? void 0 : v.clientWidth) != null ? b : 0,
27563
27576
  height: (M = (k = (w = T.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? M : 0
27564
27577
  };
27565
- ME(L, F) && (D++, this.labelItems[B].transform = `translate(-50%, ${(D - 1) * 100 - 50}%)`, this.labelItems[A].transform = `translate(-50%, ${D * 100 - 50}%)`);
27578
+ ME(L, F) && (D++, this.labelItems[R].transform = `translate(-50%, ${(D - 1) * 100 - 50}%)`, this.labelItems[A].transform = `translate(-50%, ${D * 100 - 50}%)`);
27566
27579
  }
27567
27580
  }
27568
27581
  });
@@ -27615,7 +27628,7 @@ class TE extends Kn {
27615
27628
  position: d,
27616
27629
  toward: SE(o.rad)
27617
27630
  });
27618
- }), this.labelItems = this.doorLabels.map((o) => ae(V({}, o), {
27631
+ }), this.labelItems = this.doorLabels.map((o) => ae(B({}, o), {
27619
27632
  left: 0,
27620
27633
  top: 0,
27621
27634
  visible: !1,
@@ -27630,7 +27643,7 @@ class TE extends Kn {
27630
27643
  }
27631
27644
  setState(e, i) {
27632
27645
  const s = this.state;
27633
- this.state = V(V({}, s), e);
27646
+ this.state = B(B({}, s), e);
27634
27647
  const r = s.enabled && s.visible, o = this.state.enabled && this.state.visible;
27635
27648
  r !== o && this.applyState();
27636
27649
  }
@@ -27762,8 +27775,8 @@ function qE(n) {
27762
27775
  if (s.length === 0)
27763
27776
  return { geometry: new y.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
27764
27777
  const r = new y.CurvePath();
27765
- s.forEach((R) => {
27766
- const A = KE(R);
27778
+ s.forEach((V) => {
27779
+ const A = KE(V);
27767
27780
  A && r.add(A);
27768
27781
  });
27769
27782
  const o = Math.ceil(r.getLength() * 100);
@@ -27771,30 +27784,30 @@ function qE(n) {
27771
27784
  const a = r.getPoints(o), l = a.length;
27772
27785
  if (l <= 2)
27773
27786
  return { geometry: new y.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
27774
- const c = WE(a.map((R) => [R.x, R.z])), d = (l - 1) * YE * XE, f = 2 * l, m = f * ZE, g = f * JE, p = new Uint32Array(d), v = new Float32Array(m), b = new Float32Array(g);
27787
+ const c = WE(a.map((V) => [V.x, V.z])), d = (l - 1) * YE * XE, f = 2 * l, m = f * ZE, g = f * JE, p = new Uint32Array(d), v = new Float32Array(m), b = new Float32Array(g);
27775
27788
  let w = 0, k = 0;
27776
- for (let R = 0; R < l; R++) {
27777
- const [A, P] = c[R][0], C = a[R], { x: E, y: T, z: L } = C, F = new de(E + A * i, T + 0.05, L + P * i);
27778
- v[R * 6 + 0] = F.x, v[R * 6 + 1] = F.y, v[R * 6 + 2] = F.z;
27789
+ for (let V = 0; V < l; V++) {
27790
+ const [A, P] = c[V][0], C = a[V], { x: E, y: T, z: L } = C, F = new de(E + A * i, T + 0.05, L + P * i);
27791
+ v[V * 6 + 0] = F.x, v[V * 6 + 1] = F.y, v[V * 6 + 2] = F.z;
27779
27792
  const H = new de(E - A * i, T + 0.05, L - P * i);
27780
- v[R * 6 + 3] = H.x, v[R * 6 + 4] = H.y, v[R * 6 + 5] = H.z, w += R > 0 ? a[R - 1].clone().sub(a[R]).length() : 0;
27793
+ v[V * 6 + 3] = H.x, v[V * 6 + 4] = H.y, v[V * 6 + 5] = H.z, w += V > 0 ? a[V - 1].clone().sub(a[V]).length() : 0;
27781
27794
  const q = w / e;
27782
- k = q, b[R * 4 + 0] = 0, b[R * 4 + 1] = q, b[R * 4 + 2] = 1, b[R * 4 + 3] = q;
27795
+ k = q, b[V * 4 + 0] = 0, b[V * 4 + 1] = q, b[V * 4 + 2] = 1, b[V * 4 + 3] = q;
27783
27796
  const ee = new y.Vector3().lerpVectors(F, H, 0.5);
27784
- n.skipPositions && n.skipPositions.some((ie) => ie.distanceTo(ee) < 0.26) || R !== l - 1 && (p[R * 6 + 0] = R * 2 + 0, p[R * 6 + 1] = R * 2 + 2, p[R * 6 + 2] = R * 2 + 1, p[R * 6 + 3] = R * 2 + 2, p[R * 6 + 4] = R * 2 + 3, p[R * 6 + 5] = R * 2 + 1);
27797
+ n.skipPositions && n.skipPositions.some((ie) => ie.distanceTo(ee) < 0.26) || V !== l - 1 && (p[V * 6 + 0] = V * 2 + 0, p[V * 6 + 1] = V * 2 + 2, p[V * 6 + 2] = V * 2 + 1, p[V * 6 + 3] = V * 2 + 2, p[V * 6 + 4] = V * 2 + 3, p[V * 6 + 5] = V * 2 + 1);
27785
27798
  }
27786
27799
  const M = [];
27787
27800
  let D;
27788
27801
  const x = [];
27789
- for (let R = 0; R < l - 1; R++) {
27790
- if (D !== void 0 && R <= D)
27802
+ for (let V = 0; V < l - 1; V++) {
27803
+ if (D !== void 0 && V <= D)
27791
27804
  continue;
27792
- const A = R + 1, P = {
27793
- x: v[R * 6 + 0],
27794
- y: v[R * 6 + 2]
27805
+ const A = V + 1, P = {
27806
+ x: v[V * 6 + 0],
27807
+ y: v[V * 6 + 2]
27795
27808
  }, C = {
27796
- x: v[R * 6 + 3],
27797
- y: v[R * 6 + 5]
27809
+ x: v[V * 6 + 3],
27810
+ y: v[V * 6 + 5]
27798
27811
  }, E = {
27799
27812
  x: v[A * 6 + 0],
27800
27813
  y: v[A * 6 + 2]
@@ -27802,8 +27815,8 @@ function qE(n) {
27802
27815
  x: v[A * 6 + 3],
27803
27816
  y: v[A * 6 + 5]
27804
27817
  }, L = Vv([P, C], [E, T]);
27805
- if (L && M.push(R), !L && M.length) {
27806
- M.push(R);
27818
+ if (L && M.push(V), !L && M.length) {
27819
+ M.push(V);
27807
27820
  const F = new y.Vector2(P.x, P.y).distanceTo(new y.Vector2(E.x, E.y)), H = new y.Vector2(C.x, C.y).distanceTo(new y.Vector2(T.x, T.y)), q = 300, ee = [], K = [], ie = Math.max(0, M[0] - e * q), se = M[0];
27808
27821
  for (let Te = ie; Te < se; Te++)
27809
27822
  F < H ? ee.push({ x: v[Te * 6 + 0], y: v[Te * 6 + 2] }) : ee.push({ x: v[Te * 6 + 3], y: v[Te * 6 + 5] });
@@ -27840,10 +27853,10 @@ function qE(n) {
27840
27853
  M.length = 0;
27841
27854
  }
27842
27855
  }
27843
- const B = new Float32Array(f);
27844
- x.forEach((R) => {
27856
+ const R = new Float32Array(f);
27857
+ x.forEach((V) => {
27845
27858
  for (let A = 0; A < l - 1; A++)
27846
- A >= R.start && A <= R.end ? (B[A * 2 + 0] = 1, B[A * 2 + 1] = 1) : B[A] !== 1 && (B[A * 2 + 0] = 0, B[A * 2 + 1] = 0);
27859
+ A >= V.start && A <= V.end ? (R[A * 2 + 0] = 1, R[A * 2 + 1] = 1) : R[A] !== 1 && (R[A * 2 + 0] = 0, R[A * 2 + 1] = 0);
27847
27860
  });
27848
27861
  const O = new y.BufferGeometry();
27849
27862
  return O.setAttribute("position", new y.BufferAttribute(v, 3)), O.setAttribute("uv", new y.BufferAttribute(b, 2)), O.setIndex(new y.BufferAttribute(p, 1)), { geometry: O, maxV: k, animationWillError: x, curvePath: r, curvePoints: a };
@@ -28486,7 +28499,7 @@ class Oo {
28486
28499
  this.cache_visible.clear(), this.cache_raycasterDistance.clear();
28487
28500
  }
28488
28501
  static generateCameraTagKey(t, e, i = 3) {
28489
- const s = V(V({}, e.five.getCurrentState()), t), r = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
28502
+ const s = B(B({}, e.five.getCurrentState()), t), r = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
28490
28503
  return r ? [
28491
28504
  //
28492
28505
  r.x.toFixed(i),
@@ -28791,21 +28804,21 @@ function Jl(n, t, e) {
28791
28804
  const s = {}, r = {}, o = {};
28792
28805
  t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, k]) => {
28793
28806
  var A, P;
28794
- const M = w, D = M.split("-"), x = w.startsWith("["), B = x ? D[0].slice(1, -1) : void 0, O = x ? D.slice(1) : D, R = B ? ["PanoramaLike", "ModelLike"].includes(B) ? (A = r[B]) != null ? A : r[B] = {} : (P = o[B]) != null ? P : o[B] = {} : s;
28795
- if (!R[M]) {
28796
- if (O.length === 0 && (R[M] = k), O.length === 1) {
28807
+ const M = w, D = M.split("-"), x = w.startsWith("["), R = x ? D[0].slice(1, -1) : void 0, O = x ? D.slice(1) : D, V = R ? ["PanoramaLike", "ModelLike"].includes(R) ? (A = r[R]) != null ? A : r[R] = {} : (P = o[R]) != null ? P : o[R] = {} : s;
28808
+ if (!V[M]) {
28809
+ if (O.length === 0 && (V[M] = k), O.length === 1) {
28797
28810
  const [C] = O;
28798
- (n.contentType === C || C === "Any") && (R[M] = k);
28811
+ (n.contentType === C || C === "Any") && (V[M] = k);
28799
28812
  }
28800
28813
  if (O.length === 2) {
28801
28814
  const [C = "Any", E = "Any"] = O;
28802
- C === "Mixin" && n.contentType === E && (R[M] = k), (n.stickType === C || C === "Any") && (n.contentType === E || E === "Any") && (R[M] = k);
28815
+ C === "Mixin" && n.contentType === E && (V[M] = k), (n.stickType === C || C === "Any") && (n.contentType === E || E === "Any") && (V[M] = k);
28803
28816
  }
28804
28817
  if (O.length === 3) {
28805
28818
  const [C = "Any", E, T] = O;
28806
28819
  if (E === "Audio" && n.contentType === "Audio") {
28807
28820
  const L = n;
28808
- (L.stickType === C || C === "Any") && L.data.appearance === T && (R[M] = k);
28821
+ (L.stickType === C || C === "Any") && L.data.appearance === T && (V[M] = k);
28809
28822
  }
28810
28823
  }
28811
28824
  }
@@ -28819,7 +28832,7 @@ function Jl(n, t, e) {
28819
28832
  const M = h[w];
28820
28833
  h[w] = tt({}, l, M, ...Object.values(k), a, { _isMerged: !0 });
28821
28834
  });
28822
- const f = ae(V({}, c), { configWithFiveMode: h });
28835
+ const f = ae(B({}, c), { configWithFiveMode: h });
28823
28836
  return Xf(f), Object.values(h).forEach((w) => Xf(w)), f._isMerged = !0, f;
28824
28837
  }
28825
28838
  function Zf(n) {
@@ -28906,7 +28919,7 @@ class Yh {
28906
28919
  const s = JSON.parse(JSON.stringify(e.data)), r = (l = e.initialConfig) != null ? l : e.config ? JSON.parse(JSON.stringify(e.config)) : {};
28907
28920
  e.initialConfig = r;
28908
28921
  const o = Jl(e, t.config), a = this.getConfig(e);
28909
- e.config = a, this.id = (c = e.id) != null ? c : kt(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (d = a.initialData) != null && d.important ? tt(e.data, s, a.initialData) : tt(e.data, a.initialData, s), this.state = V({
28922
+ e.config = a, this.id = (c = e.id) != null ? c : kt(), this.enabled = (h = e.enabled) != null ? h : !0, this.contentType = e.contentType, this.data = (d = a.initialData) != null && d.important ? tt(e.data, s, a.initialData) : tt(e.data, a.initialData, s), this.state = B({
28910
28923
  visible: void 0,
28911
28924
  unfolded: !this.can("fold")
28912
28925
  }, a.initialState), this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
@@ -28971,7 +28984,7 @@ class Yh {
28971
28984
  if (ni(r))
28972
28985
  return this;
28973
28986
  const o = this.workUtil.getObserverPosition(r), a = this.centerPosition.clone().sub(o).normalize();
28974
- this.five.setState(V({
28987
+ this.five.setState(B({
28975
28988
  mode: "Panorama",
28976
28989
  workCode: this.workUtil.workCode,
28977
28990
  panoIndex: r
@@ -29015,7 +29028,7 @@ class Yh {
29015
29028
  console.warn("tagDom is empty");
29016
29029
  return;
29017
29030
  }
29018
- yield (s ? cl : wg)(r, V({
29031
+ yield (s ? cl : wg)(r, B({
29019
29032
  begin: () => {
29020
29033
  s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
29021
29034
  },
@@ -29069,7 +29082,7 @@ class Yh {
29069
29082
  * @param deepMerge 是否深度合并 data,默认为 true
29070
29083
  */
29071
29084
  setData(t, e = !0) {
29072
- e ? this.data = tt(this.data, t) : this.data = V(V({}, this.data), t), this.hooks.emit("dataChanged", this.data);
29085
+ e ? this.data = tt(this.data, t) : this.data = B(B({}, this.data), t), this.hooks.emit("dataChanged", this.data);
29073
29086
  }
29074
29087
  /**
29075
29088
  * @description 修改标签位置
@@ -29108,7 +29121,7 @@ class Yh {
29108
29121
  return (l = r != null ? r : i) != null ? l : {};
29109
29122
  }
29110
29123
  getDistance(t, e = 3) {
29111
- const i = V(V({}, this.five.getCurrentState()), t), { panoIndex: s, mode: r } = i, o = r === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
29124
+ const i = B(B({}, this.five.getCurrentState()), t), { panoIndex: s, mode: r } = i, o = r === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
29112
29125
  return !o || !a ? -1 : o.distanceTo(a);
29113
29126
  }
29114
29127
  /**
@@ -29122,7 +29135,7 @@ class Yh {
29122
29135
  getVisible(t) {
29123
29136
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
29124
29137
  return !1;
29125
- const e = V(V({}, this.five.getCurrentState()), t);
29138
+ const e = B(B({}, this.five.getCurrentState()), t);
29126
29139
  let i = this.cache.getVisible(this, e);
29127
29140
  return ni(i) && (i = this.computeVisible(e).value, this.cache.setVisible(this, e, i)), i;
29128
29141
  }
@@ -29178,7 +29191,7 @@ class Yh {
29178
29191
  return t != null ? t : "Dom";
29179
29192
  }
29180
29193
  computeVisible(t) {
29181
- const e = V(V({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, r = [];
29194
+ const e = B(B({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, r = [];
29182
29195
  return (() => {
29183
29196
  var c, d, f, m;
29184
29197
  const l = (c = this.getConfig().visibleConfig) != null ? c : {};
@@ -29199,7 +29212,7 @@ class Yh {
29199
29212
  if (l.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
29200
29213
  const h = this.computeVisibleByFloorIndex(), { value: p } = h, v = cn(h, ["value"]);
29201
29214
  if (p === !1)
29202
- return V({ value: !1, checkedList: r, reason: "followModelVisibility check failed" }, v);
29215
+ return B({ value: !1, checkedList: r, reason: "followModelVisibility check failed" }, v);
29203
29216
  }
29204
29217
  if (ps(s) && l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && i !== void 0) {
29205
29218
  if (r.push("visiblePanoIndex"), Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(i))
@@ -29307,9 +29320,9 @@ class Yh {
29307
29320
  const v = (() => {
29308
29321
  if (!ys(this))
29309
29322
  return;
29310
- const D = this.plugin.tags.filter(ys).map((B) => {
29323
+ const D = this.plugin.tags.filter(ys).map((R) => {
29311
29324
  var O;
29312
- return (O = B.model) == null ? void 0 : O.object;
29325
+ return (O = R.model) == null ? void 0 : O.object;
29313
29326
  }).filter(_e), [x] = mn.intersectObjects(D, !0);
29314
29327
  return x;
29315
29328
  })(), b = s.distanceTo(f), w = (c = e.distanceAccuracy) != null ? c : 0.01;
@@ -29388,7 +29401,7 @@ class Yh {
29388
29401
  }).map((a) => ({ tag: a, id: a.id, tagConfig: a.getConfig().unfoldedConfig })).filter(({ tagConfig: a }) => {
29389
29402
  var l, c;
29390
29403
  return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
29391
- }).map((a) => ae(V({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
29404
+ }).map((a) => ae(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
29392
29405
  const c = l.autoUnfold.distance;
29393
29406
  return !(c && va(a, c) === !1);
29394
29407
  }).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
@@ -29428,7 +29441,7 @@ class Yh {
29428
29441
  return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
29429
29442
  if (!this.enabled)
29430
29443
  return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
29431
- const t = ae(V({}, this.computeVisible()), {
29444
+ const t = ae(B({}, this.computeVisible()), {
29432
29445
  tagInstance: this
29433
29446
  });
29434
29447
  return t.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: t } : this.state.visible ? { reason: "应该是能看见才对", info: t } : t.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: t } : { reason: (e = t.reason.type) != null ? e : t.reason, info: t };
@@ -29540,7 +29553,7 @@ class xM extends Yh {
29540
29553
  const Wv = 1, Jf = `CSS3DObject@${Wv}`, kM = 216e-5, SM = 3e-3;
29541
29554
  class Uv extends gn {
29542
29555
  constructor(e) {
29543
- var D, x, B, O, R;
29556
+ var D, x, R, O, V;
29544
29557
  if (ni(e.cornerPoints) && ni(e.width))
29545
29558
  throw new Error("cornerPoints and width cannot be both empty");
29546
29559
  const i = (D = e.container) != null ? D : document.createElement("div"), s = (x = e.cornerPoints) != null ? x : (() => {
@@ -29551,7 +29564,7 @@ class Uv extends gn {
29551
29564
  new de(A, -A, 0),
29552
29565
  new de(A, A, 0)
29553
29566
  ];
29554
- })(), r = (B = e.ratio) != null ? B : SM, o = (O = e.dpr) != null ? O : 1, a = (R = e.pointerEvents) != null ? R : "auto", l = Math.max(kM, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
29567
+ })(), r = (R = e.ratio) != null ? R : SM, o = (O = e.dpr) != null ? O : 1, a = (V = e.pointerEvents) != null ? V : "auto", l = Math.max(kM, r), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
29555
29568
  let d = ur(c / r * o), f = ur(h / r * o);
29556
29569
  const m = fi(...s);
29557
29570
  let g;
@@ -30222,12 +30235,12 @@ function QM(n, t, e) {
30222
30235
  const c = `__EMOJI_SPLIT_${Aa}__`, h = `__EMOJI_${Aa}__`, d = `__SPACE_${Aa}__`, f = `__NEW_LINE_${Aa}__`;
30223
30236
  let m, g, p = [];
30224
30237
  function v(x) {
30225
- const B = [], O = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
30226
- return x.slice().replace(O, (R) => `${c}${h}${R}${c}`).split(c).forEach((R) => R.startsWith(h) ? B.push({
30238
+ const R = [], O = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
30239
+ return x.slice().replace(O, (V) => `${c}${h}${V}${c}`).split(c).forEach((V) => V.startsWith(h) ? R.push({
30227
30240
  id: kt(),
30228
- content: R.slice(h.length)
30229
- }) : B.push(...R.split("").map((A) => A === " " ? d : A === `
30230
- ` ? f : A).map((A) => ({ id: kt(), content: A })))), B;
30241
+ content: V.slice(h.length)
30242
+ }) : R.push(...V.split("").map((A) => A === " " ? d : A === `
30243
+ ` ? f : A).map((A) => ({ id: kt(), content: A })))), R;
30231
30244
  }
30232
30245
  function b() {
30233
30246
  if (!g)
@@ -30243,13 +30256,13 @@ function QM(n, t, e) {
30243
30256
  clearTimeout(m), m = setTimeout(b, x ? s : r);
30244
30257
  }
30245
30258
  function k(x) {
30246
- const B = function() {
30247
- const O = aM((R) => x[R].getBoundingClientRect().x, [Math.min(x.length - 1, 10), Math.min(x.length - 1, 30)]);
30259
+ const R = function() {
30260
+ const O = aM((V) => x[V].getBoundingClientRect().x, [Math.min(x.length - 1, 10), Math.min(x.length - 1, 30)]);
30248
30261
  if (O > 0)
30249
30262
  return O;
30250
30263
  }();
30251
30264
  g = at({
30252
- targets: x.slice(0, B).filter(_e),
30265
+ targets: x.slice(0, R).filter(_e),
30253
30266
  autoplay: !1,
30254
30267
  duration: 400,
30255
30268
  scale: [0.7, 1],
@@ -30261,14 +30274,14 @@ function QM(n, t, e) {
30261
30274
  easing: "easeInOutCubic"
30262
30275
  }), a && g.seek(g.duration);
30263
30276
  }
30264
- function M(x, B) {
30277
+ function M(x, R) {
30265
30278
  Ze[x ? "unshift" : "push"](() => {
30266
- p[B] = x, e(1, p);
30279
+ p[R] = x, e(1, p);
30267
30280
  });
30268
30281
  }
30269
- function D(x, B) {
30282
+ function D(x, R) {
30270
30283
  Ze[x ? "unshift" : "push"](() => {
30271
- p[B] = x, e(1, p);
30284
+ p[R] = x, e(1, p);
30272
30285
  });
30273
30286
  }
30274
30287
  return n.$$set = (x) => {
@@ -32108,7 +32121,7 @@ function ux({
32108
32121
  head: 0,
32109
32122
  tail: 0
32110
32123
  };
32111
- return ae(V({}, i), {
32124
+ return ae(B({}, i), {
32112
32125
  total: i.head + i.tail
32113
32126
  });
32114
32127
  }
@@ -32361,8 +32374,8 @@ var ba = lk, Ka = {}, ck = {
32361
32374
  }
32362
32375
  };
32363
32376
  (function(n, t) {
32364
- var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", g = "[object Object]", p = "[object Promise]", v = "[object RegExp]", b = "[object Set]", w = "[object String]", k = "[object Symbol]", M = "[object WeakMap]", D = "[object ArrayBuffer]", x = "[object DataView]", B = "[object Float32Array]", O = "[object Float64Array]", R = "[object Int8Array]", A = "[object Int16Array]", P = "[object Int32Array]", C = "[object Uint8Array]", E = "[object Uint8ClampedArray]", T = "[object Uint16Array]", L = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
32365
- K[r] = K[o] = K[D] = K[x] = K[a] = K[l] = K[B] = K[O] = K[R] = K[A] = K[P] = K[f] = K[m] = K[g] = K[v] = K[b] = K[w] = K[k] = K[C] = K[E] = K[T] = K[L] = !0, K[c] = K[h] = K[M] = !1;
32377
+ var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, r = "[object Arguments]", o = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", d = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", g = "[object Object]", p = "[object Promise]", v = "[object RegExp]", b = "[object Set]", w = "[object String]", k = "[object Symbol]", M = "[object WeakMap]", D = "[object ArrayBuffer]", x = "[object DataView]", R = "[object Float32Array]", O = "[object Float64Array]", V = "[object Int8Array]", A = "[object Int16Array]", P = "[object Int32Array]", C = "[object Uint8Array]", E = "[object Uint8ClampedArray]", T = "[object Uint16Array]", L = "[object Uint32Array]", F = /[\\^$.*+?()[\]{}|]/g, H = /\w*$/, q = /^\[object .+?Constructor\]$/, ee = /^(?:0|[1-9]\d*)$/, K = {};
32378
+ K[r] = K[o] = K[D] = K[x] = K[a] = K[l] = K[R] = K[O] = K[V] = K[A] = K[P] = K[f] = K[m] = K[g] = K[v] = K[b] = K[w] = K[k] = K[C] = K[E] = K[T] = K[L] = !0, K[c] = K[h] = K[M] = !1;
32366
32379
  var ie = typeof yi == "object" && yi && yi.Object === Object && yi, se = typeof self == "object" && self && self.Object === Object && self, ue = ie || se || Function("return this")(), Oe = t && !t.nodeType && t, ye = Oe && !0 && n && !n.nodeType && n, Te = ye && ye.exports === Oe;
32367
32380
  function fe(I, j) {
32368
32381
  return I.set(j[0], j[1]), I;
@@ -32712,9 +32725,9 @@ var ba = lk, Ka = {}, ck = {
32712
32725
  return new Re(+I);
32713
32726
  case x:
32714
32727
  return ki(I, ne);
32715
- case B:
32716
- case O:
32717
32728
  case R:
32729
+ case O:
32730
+ case V:
32718
32731
  case A:
32719
32732
  case P:
32720
32733
  case C:
@@ -32814,8 +32827,8 @@ var $a = {}, dk = {
32814
32827
  }
32815
32828
  };
32816
32829
  (function(n, t) {
32817
- var e = 200, i = "__lodash_hash_undefined__", s = 1, r = 2, o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", f = "[object Error]", m = "[object Function]", g = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", b = "[object Null]", w = "[object Object]", k = "[object Promise]", M = "[object Proxy]", D = "[object RegExp]", x = "[object Set]", B = "[object String]", O = "[object Symbol]", R = "[object Undefined]", A = "[object WeakMap]", P = "[object ArrayBuffer]", C = "[object DataView]", E = "[object Float32Array]", T = "[object Float64Array]", L = "[object Int8Array]", F = "[object Int16Array]", H = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", ie = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ye = {};
32818
- ye[E] = ye[T] = ye[L] = ye[F] = ye[H] = ye[q] = ye[ee] = ye[K] = ye[ie] = !0, ye[a] = ye[l] = ye[P] = ye[h] = ye[C] = ye[d] = ye[f] = ye[m] = ye[p] = ye[v] = ye[w] = ye[D] = ye[x] = ye[B] = ye[A] = !1;
32830
+ var e = 200, i = "__lodash_hash_undefined__", s = 1, r = 2, o = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", f = "[object Error]", m = "[object Function]", g = "[object GeneratorFunction]", p = "[object Map]", v = "[object Number]", b = "[object Null]", w = "[object Object]", k = "[object Promise]", M = "[object Proxy]", D = "[object RegExp]", x = "[object Set]", R = "[object String]", O = "[object Symbol]", V = "[object Undefined]", A = "[object WeakMap]", P = "[object ArrayBuffer]", C = "[object DataView]", E = "[object Float32Array]", T = "[object Float64Array]", L = "[object Int8Array]", F = "[object Int16Array]", H = "[object Int32Array]", q = "[object Uint8Array]", ee = "[object Uint8ClampedArray]", K = "[object Uint16Array]", ie = "[object Uint32Array]", se = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ye = {};
32831
+ ye[E] = ye[T] = ye[L] = ye[F] = ye[H] = ye[q] = ye[ee] = ye[K] = ye[ie] = !0, ye[a] = ye[l] = ye[P] = ye[h] = ye[C] = ye[d] = ye[f] = ye[m] = ye[p] = ye[v] = ye[w] = ye[D] = ye[x] = ye[R] = ye[A] = !1;
32819
32832
  var Te = typeof yi == "object" && yi && yi.Object === Object && yi, fe = typeof self == "object" && self && self.Object === Object && self, ce = Te || fe || Function("return this")(), xe = t && !t.nodeType && t, pe = xe && !0 && n && !n.nodeType && n, We = pe && pe.exports === xe, Ge = We && Te.process, De = function() {
32820
32833
  try {
32821
32834
  return Ge && Ge.binding && Ge.binding("util");
@@ -33029,7 +33042,7 @@ var $a = {}, dk = {
33029
33042
  return Fs(I) ? ne : ke(ne, J(I));
33030
33043
  }
33031
33044
  function ki(I) {
33032
- return I == null ? I === void 0 ? R : b : oi && oi in Object(I) ? te(I) : Zt(I);
33045
+ return I == null ? I === void 0 ? V : b : oi && oi in Object(I) ? te(I) : Zt(I);
33033
33046
  }
33034
33047
  function Ln(I) {
33035
33048
  return Gi(I) && ki(I) == a;
@@ -33122,7 +33135,7 @@ var $a = {}, dk = {
33122
33135
  case f:
33123
33136
  return I.name == j.name && I.message == j.message;
33124
33137
  case D:
33125
- case B:
33138
+ case R:
33126
33139
  return I == j + "";
33127
33140
  case p:
33128
33141
  var Ye = Ke;
@@ -34242,7 +34255,7 @@ function zk(n, t, e) {
34242
34255
  loaded: () => e(6, r = ke)
34243
34256
  })(me);
34244
34257
  }), p = dl();
34245
- let { timingFunction: v = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: k = 0 } = t, { duration: M = 500 } = t, { autoplay: D = !1 } = t, { autoplayDuration: x = 3e3 } = t, { autoplayDirection: B = Zn } = t, { pauseOnFocus: O = !1 } = t, { autoplayProgressVisible: R = !1 } = t, { dots: A = !0 } = t, { swiping: P = !0 } = t, { particlesToShow: C = 1 } = t, { particlesToScroll: E = 1 } = t;
34258
+ let { timingFunction: v = "ease-in-out" } = t, { arrows: b = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: k = 0 } = t, { duration: M = 500 } = t, { autoplay: D = !1 } = t, { autoplayDuration: x = 3e3 } = t, { autoplayDirection: R = Zn } = t, { pauseOnFocus: O = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: A = !0 } = t, { swiping: P = !0 } = t, { particlesToShow: C = 1 } = t, { particlesToScroll: E = 1 } = t;
34246
34259
  function T(me, ke) {
34247
34260
  return $(this, null, function* () {
34248
34261
  const Se = vo(ke, "animated", !0);
@@ -34338,7 +34351,7 @@ function zk(n, t, e) {
34338
34351
  }
34339
34352
  const Qe = (me) => se(me.detail);
34340
34353
  return n.$$set = (me) => {
34341
- "timingFunction" in me && e(0, v = me.timingFunction), "arrows" in me && e(1, b = me.arrows), "infinite" in me && e(2, w = me.infinite), "initialPageIndex" in me && e(24, k = me.initialPageIndex), "duration" in me && e(25, M = me.duration), "autoplay" in me && e(26, D = me.autoplay), "autoplayDuration" in me && e(27, x = me.autoplayDuration), "autoplayDirection" in me && e(28, B = me.autoplayDirection), "pauseOnFocus" in me && e(29, O = me.pauseOnFocus), "autoplayProgressVisible" in me && e(3, R = me.autoplayProgressVisible), "dots" in me && e(4, A = me.dots), "swiping" in me && e(30, P = me.swiping), "particlesToShow" in me && e(31, C = me.particlesToShow), "particlesToScroll" in me && e(32, E = me.particlesToScroll), "$$scope" in me && e(36, s = me.$$scope);
34354
+ "timingFunction" in me && e(0, v = me.timingFunction), "arrows" in me && e(1, b = me.arrows), "infinite" in me && e(2, w = me.infinite), "initialPageIndex" in me && e(24, k = me.initialPageIndex), "duration" in me && e(25, M = me.duration), "autoplay" in me && e(26, D = me.autoplay), "autoplayDuration" in me && e(27, x = me.autoplayDuration), "autoplayDirection" in me && e(28, R = me.autoplayDirection), "pauseOnFocus" in me && e(29, O = me.pauseOnFocus), "autoplayProgressVisible" in me && e(3, V = me.autoplayProgressVisible), "dots" in me && e(4, A = me.dots), "swiping" in me && e(30, P = me.swiping), "particlesToShow" in me && e(31, C = me.particlesToShow), "particlesToScroll" in me && e(32, E = me.particlesToScroll), "$$scope" in me && e(36, s = me.$$scope);
34342
34355
  }, n.$$.update = () => {
34343
34356
  n.$$.dirty[0] & /*currentPageIndex*/
34344
34357
  32 && p("pageChange", o), n.$$.dirty[0] & /*infinite*/
@@ -34346,7 +34359,7 @@ function zk(n, t, e) {
34346
34359
  33554432 && (d.durationMsInit = M), n.$$.dirty[0] & /*autoplay*/
34347
34360
  67108864 && (d.autoplay = D), n.$$.dirty[0] & /*autoplayDuration*/
34348
34361
  134217728 && (d.autoplayDuration = x), n.$$.dirty[0] & /*autoplayDirection*/
34349
- 268435456 && (d.autoplayDirection = B), n.$$.dirty[0] & /*pauseOnFocus*/
34362
+ 268435456 && (d.autoplayDirection = R), n.$$.dirty[0] & /*pauseOnFocus*/
34350
34363
  536870912 && (d.pauseOnFocus = O), n.$$.dirty[1] & /*particlesToShow*/
34351
34364
  1 && (d.particlesToShowInit = C), n.$$.dirty[1] & /*particlesToScroll*/
34352
34365
  2 && (d.particlesToScrollInit = E);
@@ -34354,7 +34367,7 @@ function zk(n, t, e) {
34354
34367
  v,
34355
34368
  b,
34356
34369
  w,
34357
- R,
34370
+ V,
34358
34371
  A,
34359
34372
  o,
34360
34373
  r,
@@ -34379,7 +34392,7 @@ function zk(n, t, e) {
34379
34392
  M,
34380
34393
  D,
34381
34394
  x,
34382
- B,
34395
+ R,
34383
34396
  O,
34384
34397
  P,
34385
34398
  C,
@@ -34765,7 +34778,7 @@ function Nk(n, t, e) {
34765
34778
  tag: o,
34766
34779
  mediaInstance: i
34767
34780
  });
34768
- }, B = (C) => {
34781
+ }, R = (C) => {
34769
34782
  e(11, g = !0), e(0, r.paused = !0, r), w.emit("playStateChange", {
34770
34783
  event: C,
34771
34784
  state: "paused",
@@ -34775,7 +34788,7 @@ function Nk(n, t, e) {
34775
34788
  }, O = (C) => {
34776
34789
  i && i.pause();
34777
34790
  };
34778
- function R(C) {
34791
+ function V(C) {
34779
34792
  Ze[C ? "unshift" : "push"](() => {
34780
34793
  r.videoInstance = C, e(0, r);
34781
34794
  });
@@ -34814,9 +34827,9 @@ function Nk(n, t, e) {
34814
34827
  M,
34815
34828
  D,
34816
34829
  x,
34817
- B,
34818
- O,
34819
34830
  R,
34831
+ O,
34832
+ V,
34820
34833
  A,
34821
34834
  P
34822
34835
  ];
@@ -35217,8 +35230,8 @@ function Yk(n) {
35217
35230
  function Xk(n, t, e) {
35218
35231
  let i, s, r, o, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: d = 0 } = t, { unfolded: f = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: g } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: v = {} } = t;
35219
35232
  const { autoplayVideo: b = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: k = !1 } = v;
35220
- let M = [], D = 0, x, B = null;
35221
- const O = Wn("hooks"), R = Wn("mediaStore");
35233
+ let M = [], D = 0, x, R = null;
35234
+ const O = Wn("hooks"), V = Wn("mediaStore");
35222
35235
  function A() {
35223
35236
  const L = M[D], F = L == null ? void 0 : L.videoInstance;
35224
35237
  F && (F.paused ? (F.muted = !1, F.play()) : F.pause());
@@ -35241,14 +35254,14 @@ function Xk(n, t, e) {
35241
35254
  F && F.pause();
35242
35255
  },
35243
35256
  a
35244
- ), B = setInterval(
35257
+ ), R = setInterval(
35245
35258
  () => {
35246
35259
  o && (x == null || x.goToNext());
35247
35260
  },
35248
35261
  3e3
35249
35262
  );
35250
35263
  }), mi(() => {
35251
- clearInterval(B), O.off("click", A);
35264
+ clearInterval(R), O.off("click", A);
35252
35265
  });
35253
35266
  function P(L, F) {
35254
35267
  n.$$.not_equal(M[F], L) && (M[F] = L, e(8, M));
@@ -35259,7 +35272,7 @@ function Xk(n, t, e) {
35259
35272
  });
35260
35273
  }
35261
35274
  const E = (L) => {
35262
- i || R.set({ currentMediaElement: null }), e(11, D = L.detail);
35275
+ i || V.set({ currentMediaElement: null }), e(11, D = L.detail);
35263
35276
  };
35264
35277
  function T(L) {
35265
35278
  n.$$.not_equal(M[0], L) && (M[0] = L, e(8, M));
@@ -35288,7 +35301,7 @@ function Xk(n, t, e) {
35288
35301
  x,
35289
35302
  s,
35290
35303
  b,
35291
- R,
35304
+ V,
35292
35305
  p,
35293
35306
  v,
35294
35307
  P,
@@ -35835,42 +35848,42 @@ function eS(n) {
35835
35848
  n[8]
35836
35849
  );
35837
35850
  },
35838
- m(x, B) {
35839
- Y(x, t, B), ge(e, t, null), W(t, i), W(t, s), W(t, r), W(t, o), b && b.m(o, null), W(o, a), W(o, l), W(l, c), W(c, h), W(h, f), W(o, m), w && w.m(o, null), W(o, g), k && k.m(o, null), v = !0;
35851
+ m(x, R) {
35852
+ Y(x, t, R), ge(e, t, null), W(t, i), W(t, s), W(t, r), W(t, o), b && b.m(o, null), W(o, a), W(o, l), W(l, c), W(c, h), W(h, f), W(o, m), w && w.m(o, null), W(o, g), k && k.m(o, null), v = !0;
35840
35853
  },
35841
- p(x, [B]) {
35842
- var R, A;
35854
+ p(x, [R]) {
35855
+ var V, A;
35843
35856
  const O = {};
35844
- B & /*unfolded*/
35857
+ R & /*unfolded*/
35845
35858
  16 && (O.visible = /*unfolded*/
35846
- x[4]), e.$set(O), B & /*unfolded*/
35859
+ x[4]), e.$set(O), R & /*unfolded*/
35847
35860
  16 && G(
35848
35861
  s,
35849
35862
  "transition-delay",
35850
35863
  /*unfolded*/
35851
35864
  x[4] ? ya + "ms" : wa + Zm - Xm - 40 + "ms"
35852
35865
  ), /*data*/
35853
- x[3].headerPictureUrl ? b ? b.p(x, B) : (b = Fm(x), b.c(), b.m(o, a)) : b && (b.d(1), b = null), (!v || B & /*data*/
35866
+ x[3].headerPictureUrl ? b ? b.p(x, R) : (b = Fm(x), b.c(), b.m(o, a)) : b && (b.d(1), b = null), (!v || R & /*data*/
35854
35867
  8) && d !== (d = /*data*/
35855
35868
  x[3].title + "") && Ne(f, d), /*primaryTags*/
35856
- ((R = x[2].length) != null ? R : 0) + /*secondaryTags*/
35857
- ((A = x[5].length) != null ? A : 0) > 0 ? w ? w.p(x, B) : (w = Hm(x), w.c(), w.m(o, g)) : w && (w.d(1), w = null), /*havePrice*/
35869
+ ((V = x[2].length) != null ? V : 0) + /*secondaryTags*/
35870
+ ((A = x[5].length) != null ? A : 0) > 0 ? w ? w.p(x, R) : (w = Hm(x), w.c(), w.m(o, g)) : w && (w.d(1), w = null), /*havePrice*/
35858
35871
  x[7] || /*data*/
35859
- x[3].highlightText ? k ? k.p(x, B) : (k = Qm(x), k.c(), k.m(o, null)) : k && (k.d(1), k = null), B & /*unfolded*/
35872
+ x[3].highlightText ? k ? k.p(x, R) : (k = Qm(x), k.c(), k.m(o, null)) : k && (k.d(1), k = null), R & /*unfolded*/
35860
35873
  16 && G(
35861
35874
  o,
35862
35875
  "transition-delay",
35863
35876
  /*unfolded*/
35864
35877
  x[4] ? ya + wa + "ms" : "0ms"
35865
- ), (!v || B & /*theme*/
35878
+ ), (!v || R & /*theme*/
35866
35879
  64 && p !== (p = pt(`marketing ${/*theme*/
35867
- x[6]}`) + " svelte-sezqcq")) && S(t, "class", p), (!v || B & /*theme, unfolded*/
35880
+ x[6]}`) + " svelte-sezqcq")) && S(t, "class", p), (!v || R & /*theme, unfolded*/
35868
35881
  80) && he(
35869
35882
  t,
35870
35883
  "unfolded",
35871
35884
  /*unfolded*/
35872
35885
  x[4]
35873
- ), (!v || B & /*theme, folded*/
35886
+ ), (!v || R & /*theme, folded*/
35874
35887
  320) && he(
35875
35888
  t,
35876
35889
  "folded",
@@ -36104,7 +36117,7 @@ function oS(n, t, e) {
36104
36117
  e(
36105
36118
  5,
36106
36119
  f.onplay = (v) => {
36107
- h.emit("playStateChange", V({
36120
+ h.emit("playStateChange", B({
36108
36121
  event: v,
36109
36122
  state: "playing",
36110
36123
  mediaInstance: f
@@ -36114,7 +36127,7 @@ function oS(n, t, e) {
36114
36127
  ), e(
36115
36128
  5,
36116
36129
  f.onpause = (v) => {
36117
- h.emit("playStateChange", V({
36130
+ h.emit("playStateChange", B({
36118
36131
  event: v,
36119
36132
  state: "paused",
36120
36133
  mediaInstance: f
@@ -36124,7 +36137,7 @@ function oS(n, t, e) {
36124
36137
  ), e(
36125
36138
  5,
36126
36139
  f.onended = (v) => {
36127
- h.emit("playStateChange", V({
36140
+ h.emit("playStateChange", B({
36128
36141
  event: v,
36129
36142
  state: "paused",
36130
36143
  mediaInstance: f
@@ -36155,11 +36168,11 @@ function oS(n, t, e) {
36155
36168
  v !== f && (m || f == null || f.pause());
36156
36169
  });
36157
36170
  function p(v) {
36158
- f && (h.emit("click", V({
36171
+ f && (h.emit("click", B({
36159
36172
  event: v,
36160
36173
  target: "AudioTagPlayIcon",
36161
36174
  audioInstance: f
36162
- }, l)), d.set({ currentMediaElement: f }), h.emit("playStateChange", V({
36175
+ }, l)), d.set({ currentMediaElement: f }), h.emit("playStateChange", B({
36163
36176
  event: v,
36164
36177
  state: f.paused ? "playing" : "paused",
36165
36178
  mediaInstance: f
@@ -36434,7 +36447,7 @@ function qm(n) {
36434
36447
  ], m = !0);
36435
36448
  },
36436
36449
  p(w, k) {
36437
- var B, O;
36450
+ var R, O;
36438
36451
  const M = {};
36439
36452
  k & /*unfolded*/
36440
36453
  64 && (M.visible = /*unfolded*/
@@ -36462,7 +36475,7 @@ function qm(n) {
36462
36475
  48 && (x.outDelay = /*foldTextDelay*/
36463
36476
  w[4] + 20 * Math.min(
36464
36477
  /*content*/
36465
- (O = (B = w[5]) == null ? void 0 : B.length) != null ? O : 10,
36478
+ (O = (R = w[5]) == null ? void 0 : R.length) != null ? O : 10,
36466
36479
  15
36467
36480
  )), d.$set(x), (!f || k & /*unfolded*/
36468
36481
  64) && he(
@@ -37211,7 +37224,7 @@ function DS(n) {
37211
37224
  const o = h0(t);
37212
37225
  return ec.set(t, o), o;
37213
37226
  })(), { width: s, height: r } = yield i;
37214
- return ae(V({}, n), {
37227
+ return ae(B({}, n), {
37215
37228
  width: s / e,
37216
37229
  height: r / e
37217
37230
  });
@@ -37223,7 +37236,7 @@ function TS(n) {
37223
37236
  if (!t)
37224
37237
  throw new Error("KeyframeIcon requires steps");
37225
37238
  const { width: r, height: o } = yield h0(e), a = r / i, l = o / i, c = a / t, h = l, d = 1 / s * t + "s";
37226
- return ae(V({}, n), {
37239
+ return ae(B({}, n), {
37227
37240
  width: c,
37228
37241
  height: h,
37229
37242
  duration: d
@@ -37669,7 +37682,7 @@ function HS(n) {
37669
37682
  }
37670
37683
  function tr(n) {
37671
37684
  const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, r = (s != null ? s : t) * i, o = typeof e == "number" ? r * (e / t) : void 0;
37672
- return ae(V({}, n), { width: r, height: o });
37685
+ return ae(B({}, n), { width: r, height: o });
37673
37686
  }
37674
37687
  function NS(n, t, e) {
37675
37688
  let i, s, r, o, a, l, c, h, d, f, m, { width: g = null } = t, { icon: p = null } = t, { shadow: v = !1 } = t;
@@ -37683,7 +37696,7 @@ function NS(n, t, e) {
37683
37696
  function k(D) {
37684
37697
  return $(this, null, function* () {
37685
37698
  if (typeof m == "number")
37686
- return ae(V({}, D), { width: m });
37699
+ return ae(B({}, D), { width: m });
37687
37700
  const x = yield DS(D);
37688
37701
  return b("iconLoaded", x), x;
37689
37702
  });
@@ -37696,7 +37709,7 @@ function NS(n, t, e) {
37696
37709
  }), n.$$set = (D) => {
37697
37710
  "width" in D && e(1, g = D.width), "icon" in D && e(14, p = D.icon), "shadow" in D && e(0, v = D.shadow);
37698
37711
  }, n.$$.update = () => {
37699
- var D, x, B;
37712
+ var D, x, R;
37700
37713
  n.$$.dirty & /*icon*/
37701
37714
  16384 && e(7, i = p == null ? void 0 : p.url), n.$$.dirty & /*icon*/
37702
37715
  16384 && e(11, s = p == null ? void 0 : p.bgcolor), n.$$.dirty & /*icon*/
@@ -37704,7 +37717,7 @@ function NS(n, t, e) {
37704
37717
  16384 && e(2, o = (x = p == null ? void 0 : p.steps) != null ? x : 1), n.$$.dirty & /*icon*/
37705
37718
  16384 && e(6, a = p == null ? void 0 : p.fps), n.$$.dirty & /*icon*/
37706
37719
  16384 && e(5, l = p == null ? void 0 : p.ratio), n.$$.dirty & /*icon*/
37707
- 16384 && e(4, c = (B = p == null ? void 0 : p.scale) != null ? B : 1), n.$$.dirty & /*icon*/
37720
+ 16384 && e(4, c = (R = p == null ? void 0 : p.scale) != null ? R : 1), n.$$.dirty & /*icon*/
37708
37721
  16384 && e(3, h = p == null ? void 0 : p.width), n.$$.dirty & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
37709
37722
  252 && e(9, d = ft({
37710
37723
  url: i,
@@ -38215,9 +38228,9 @@ function s5(n) {
38215
38228
  },
38216
38229
  p(D, x) {
38217
38230
  var O;
38218
- let B = d;
38219
- d = M(D, x), d === B ? ~d && k[d].p(D, x) : (f && (Ie(), X(k[B], 1, 1, () => {
38220
- k[B] = null;
38231
+ let R = d;
38232
+ d = M(D, x), d === R ? ~d && k[d].p(D, x) : (f && (Ie(), X(k[R], 1, 1, () => {
38233
+ k[R] = null;
38221
38234
  }), Ee()), ~d ? (f = k[d], f ? f.p(D, x) : (f = k[d] = w[d](D), f.c()), N(f, 1), f.m(i, null)) : f = null), (!p || x & /*tag*/
38222
38235
  1) && he(
38223
38236
  i,
@@ -38633,9 +38646,9 @@ function m5(n, t, e) {
38633
38646
  function w(O) {
38634
38647
  O ? h.emit("exposure", { id: o, type: "start" }) : h.emit("exposure", { id: o, type: "end" });
38635
38648
  }
38636
- function k(O, R, A) {
38649
+ function k(O, V, A) {
38637
38650
  var P, C;
38638
- return !(!O.enabled || !R.visible || !R.enabled || !A.visible || !((P = O.state) != null && P.visible) || ((C = O.temporaryState) == null ? void 0 : C.visible) === !1 || O instanceof u0 && O.loading);
38651
+ return !(!O.enabled || !V.visible || !V.enabled || !A.visible || !((P = O.state) != null && P.visible) || ((C = O.temporaryState) == null ? void 0 : C.visible) === !1 || O instanceof u0 && O.loading);
38639
38652
  }
38640
38653
  function M(O) {
38641
38654
  Ze[O ? "unshift" : "push"](() => {
@@ -38648,16 +38661,16 @@ function m5(n, t, e) {
38648
38661
  c.contentDom = O, e(0, c);
38649
38662
  });
38650
38663
  }
38651
- const B = (O) => {
38664
+ const R = (O) => {
38652
38665
  c.entryFromModel && bi(c.five.state.mode) ? (O.stopPropagation(), c.find({ targetMode: "Panorama" })) : h.emit("click", { event: O, target: "TagContent", tag: c });
38653
38666
  };
38654
38667
  return n.$$set = (O) => {
38655
38668
  "tag" in O && e(0, c = O.tag), "hooks" in O && e(1, h = O.hooks), "rendererMap" in O && e(2, d = O.rendererMap), "contentTypeMap" in O && e(3, f = O.contentTypeMap), "state" in O && e(6, m = O.state), "mediaStore" in O && e(7, g = O.mediaStore), "temporaryState" in O && e(8, p = O.temporaryState);
38656
38669
  }, n.$$.update = () => {
38657
- var O, R, A, P, C, E, T, L, F, H, q;
38670
+ var O, V, A, P, C, E, T, L, F, H, q;
38658
38671
  n.$$.dirty & /*tag*/
38659
38672
  1 && e(12, i = (O = c.state) == null ? void 0 : O.unfolded), n.$$.dirty & /*tag*/
38660
- 1 && e(11, s = (R = c.state) == null ? void 0 : R.visible), n.$$.dirty & /*state, temporaryState, tag*/
38673
+ 1 && e(11, s = (V = c.state) == null ? void 0 : V.visible), n.$$.dirty & /*state, temporaryState, tag*/
38661
38674
  321 && e(13, r = m.visible && p.visible && ((A = c.state) == null ? void 0 : A.visible)), n.$$.dirty & /*tag*/
38662
38675
  1 && (o = c.id), n.$$.dirty & /*tag, state, temporaryState*/
38663
38676
  321 && e(5, a = !k(c, m, p)), n.$$.dirty & /*isVisible*/
@@ -38682,7 +38695,7 @@ function m5(n, t, e) {
38682
38695
  M,
38683
38696
  D,
38684
38697
  x,
38685
- B
38698
+ R
38686
38699
  ];
38687
38700
  }
38688
38701
  let id = class extends Ce {
@@ -38747,7 +38760,7 @@ class u0 extends Yh {
38747
38760
  c.classList.add("tag-media-container");
38748
38761
  const h = "black";
38749
38762
  c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
38750
- const d = V({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || d.mode === "behind" ? "behind" : "front", m = new Uv(ae(V({}, d), { mode: f })), g = this.computeNormal();
38763
+ const d = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || d.mode === "behind" ? "behind" : "front", m = new Uv(ae(B({}, d), { mode: f })), g = this.computeNormal();
38751
38764
  m.position.add(g.clone().setLength(Ho.Z_FIGHTING_OFFSET)), s.add(m);
38752
38765
  let p;
38753
38766
  m.mode === "behind" && this.config.clickable !== !1 && (p = this.addObjectClickHandler(this, m, (b) => {
@@ -38828,7 +38841,7 @@ class v5 extends Yh {
38828
38841
  (a = (o = this.tag3DContentSvelte) == null ? void 0 : o.dispose) == null || a.call(o);
38829
38842
  const c = document.createElement("div");
38830
38843
  c.classList.add("tag-media-container");
38831
- const h = V({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new Uv(ae(V({}, h), { mode: d })), m = this.computeNormal();
38844
+ const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new Uv(ae(B({}, h), { mode: d })), m = this.computeNormal();
38832
38845
  f.position.add(m.clone().setLength(Ho.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
38833
38846
  let g;
38834
38847
  f.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, f, (v) => {
@@ -39049,11 +39062,11 @@ function y5(n, t, e) {
39049
39062
  1 && e(3, s = !i), n.$$.dirty & /*tag*/
39050
39063
  64 && e(2, r = (b = (v = l.style) == null ? void 0 : v.point) != null && b.url ? (w = l.style) == null ? void 0 : w.point : { url: rE }), n.$$.dirty & /*tag*/
39051
39064
  64 && e(1, o = (() => {
39052
- var D, x, B, O;
39065
+ var D, x, R, O;
39053
39066
  const k = (x = (D = l.style) == null ? void 0 : D.point) == null ? void 0 : x.width;
39054
39067
  if (typeof k == "number")
39055
39068
  return k;
39056
- const M = (O = (B = l.style) == null ? void 0 : B.point) == null ? void 0 : O.size;
39069
+ const M = (O = (R = l.style) == null ? void 0 : R.point) == null ? void 0 : O.size;
39057
39070
  if (typeof M == "number")
39058
39071
  return M;
39059
39072
  if (M === "S")
@@ -39383,18 +39396,18 @@ function k5(n, t, e) {
39383
39396
  return n.$$set = (D) => {
39384
39397
  "tag" in D && e(0, m = D.tag), "mediaStore" in D && e(1, g = D.mediaStore), "rendererMap" in D && e(2, p = D.rendererMap), "contentTypeMap" in D && e(3, v = D.contentTypeMap), "state" in D && e(4, b = D.state), "temporaryState" in D && e(5, w = D.temporaryState);
39385
39398
  }, n.$$.update = () => {
39386
- var D, x, B, O;
39399
+ var D, x, R, O;
39387
39400
  n.$$.dirty & /*tag, rendererMap*/
39388
39401
  5 && e(8, i = (() => {
39389
- var R, A, P;
39390
- return !(((A = (R = m.style) == null ? void 0 : R.point) == null ? void 0 : A.enabled) === !1 || ((P = p.get(m.contentType)) == null ? void 0 : P.usePoint) === !1 || m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Panorama" || m.contentType === "Audio" && m.data.appearance === "plane");
39402
+ var V, A, P;
39403
+ return !(((A = (V = m.style) == null ? void 0 : V.point) == null ? void 0 : A.enabled) === !1 || ((P = p.get(m.contentType)) == null ? void 0 : P.usePoint) === !1 || m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Panorama" || m.contentType === "Audio" && m.data.appearance === "plane");
39391
39404
  })()), n.$$.dirty & /*tag, havePoint*/
39392
39405
  257 && e(15, s = (() => !(m.stickType !== "2DPoint" || m.entryFromModel && bi(m.five.state.mode) && i))()), n.$$.dirty & /*tag*/
39393
39406
  1 && e(14, r = m.id), n.$$.dirty & /*tag*/
39394
39407
  1 && e(7, o = m.screenPosition), n.$$.dirty & /*tag*/
39395
39408
  1 && e(13, a = m.enabled === !1 || !m.state), n.$$.dirty & /*tag, screenPosition*/
39396
39409
  129 && e(12, l = !((D = m.state) != null && D.visible) || ((x = m.temporaryState) == null ? void 0 : x.visible) === !1 || !o), n.$$.dirty & /*tag*/
39397
- 1 && e(6, c = (B = m.state) == null ? void 0 : B.unfolded), n.$$.dirty & /*screenPosition*/
39410
+ 1 && e(6, c = (R = m.state) == null ? void 0 : R.unfolded), n.$$.dirty & /*screenPosition*/
39398
39411
  128 && e(11, h = (o == null ? void 0 : o.leftPx) + "px"), n.$$.dirty & /*screenPosition*/
39399
39412
  128 && e(10, d = (o == null ? void 0 : o.topPx) + "px"), n.$$.dirty & /*unfolded, tag*/
39400
39413
  65 && e(9, f = c ? ((O = m.zIndex) != null ? O : 0) + (c ? 1e6 : 0) : void 0);
@@ -39754,7 +39767,7 @@ class Gc extends bM {
39754
39767
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
39755
39768
  this.TagContainerSvelte = new O5({
39756
39769
  target: this.container,
39757
- props: ae(V({}, a), { state: ae(V({}, this.state), { enabled: !1 }) })
39770
+ props: ae(B({}, a), { state: ae(B({}, this.state), { enabled: !1 }) })
39758
39771
  }), Vo(() => {
39759
39772
  var l;
39760
39773
  (l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
@@ -39763,7 +39776,7 @@ class Gc extends bM {
39763
39776
  }
39764
39777
  }), this.renderQueue.clear();
39765
39778
  });
39766
- this.params = tt({}, { debug: !1, config: this.config }, V({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), hM(1, { namespace: Uh.PlayAudio });
39779
+ this.params = tt({}, { debug: !1, config: this.config }, B({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), hM(1, { namespace: Uh.PlayAudio });
39767
39780
  try {
39768
39781
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = f0 + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
39769
39782
  get: function() {
@@ -39879,7 +39892,7 @@ class Gc extends bM {
39879
39892
  setState(e, i) {
39880
39893
  if (this.checkDisposed())
39881
39894
  return;
39882
- const { userAction: s = !0 } = i != null ? i : {}, r = V({}, this.state);
39895
+ const { userAction: s = !0 } = i != null ? i : {}, r = B({}, this.state);
39883
39896
  this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: s });
39884
39897
  }
39885
39898
  /**
@@ -40256,7 +40269,7 @@ function V5(n, t, e) {
40256
40269
  }), i.push(l);
40257
40270
  });
40258
40271
  const s = t.transform, r = i.map((o) => dr(new y.Vector3().fromArray(o), s).toArray());
40259
- return [ae(V({}, e), { type: "CatmullRomCurve3", points: r })];
40272
+ return [ae(B({}, e), { type: "CatmullRomCurve3", points: r })];
40260
40273
  }
40261
40274
  const F5 = (
40262
40275
  /* glsl */
@@ -40551,7 +40564,7 @@ class Qc {
40551
40564
  unitLength: r * i,
40552
40565
  skipPositions: this.skippedPositions
40553
40566
  });
40554
- this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = V(V({}, this.geometryStyle), e);
40567
+ this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(o), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = B(B({}, this.geometryStyle), e);
40555
40568
  }
40556
40569
  /** 设置线条材质 */
40557
40570
  setMartial(t) {
@@ -40559,7 +40572,7 @@ class Qc {
40559
40572
  if (this.disposed)
40560
40573
  return this.logError("disposed");
40561
40574
  this.setDefaultVisible((i = t == null ? void 0 : t.visible) != null ? i : !1), this.setColor((s = t == null ? void 0 : t.color) != null ? s : "#ffffff"), this.setOpacity((r = t == null ? void 0 : t.opacity) != null ? r : 0.5), this.setTextureUrl((a = (o = t == null ? void 0 : t.texture) == null ? void 0 : o.url) != null ? a : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (t == null ? void 0 : t.background_color) !== void 0 && this.setBackgroundColor(t.background_color), (t == null ? void 0 : t.background_opacity) !== void 0 && this.setBackgroundOpacity(t.background_opacity), (t == null ? void 0 : t.border_color) !== void 0 && this.setBorderColor(t.border_color), (t == null ? void 0 : t.border_opacity) !== void 0 && this.setBorderOpacity(t.border_opacity), (t == null ? void 0 : t.border_width) !== void 0 && this.setBorderWidth(t.border_width), (t == null ? void 0 : t.background_clip) !== void 0 && this.setBackgroundClip(t.background_clip);
40562
- const e = V(V({}, this.materialStyle), t);
40575
+ const e = B(B({}, this.materialStyle), t);
40563
40576
  this.materialStyle = e;
40564
40577
  }
40565
40578
  /** 设置模型状态 */
@@ -40568,7 +40581,7 @@ class Qc {
40568
40581
  const s = new y.Vector3(), r = new y.Vector3().fromArray(t.translate);
40569
40582
  r.y += this.heightOffset, s.add(r), this.group.position.copy(s), i(this.startTagContainer, r), i(this.endTagContainer, r);
40570
40583
  }
40571
- const e = V(V({}, this.meshStyle), t);
40584
+ const e = B(B({}, this.meshStyle), t);
40572
40585
  this.meshStyle = e;
40573
40586
  function i(s, r) {
40574
40587
  if (!(s != null && s.tag))
@@ -40709,7 +40722,7 @@ class Qc {
40709
40722
  s.tag = o, N5(o) && (s.tag.element = (h) => {
40710
40723
  var m, g;
40711
40724
  (m = s.app) == null || m.$destroy();
40712
- const d = t === "start" ? ae(V({}, o.data), { name: this.name, distance: Math.round((g = i == null ? void 0 : i.getLength()) != null ? g : 0), i18n: this.plugin.config.i18n }) : o.data, f = new B5({ target: h, intro: !0, props: d });
40725
+ const d = t === "start" ? ae(B({}, o.data), { name: this.name, distance: Math.round((g = i == null ? void 0 : i.getLength()) != null ? g : 0), i18n: this.plugin.config.i18n }) : o.data, f = new B5({ target: h, intro: !0, props: d });
40713
40726
  return s.app = f, () => f.$destroy();
40714
40727
  }), s.plugin.load({ tagList: [s.tag] });
40715
40728
  const a = this.meshStyle.translate;
@@ -40821,7 +40834,7 @@ class p0 extends Kn {
40821
40834
  return this.disposedErrorLog();
40822
40835
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
40823
40836
  return this.disableErrorLog();
40824
- const s = V({}, this.state);
40837
+ const s = B({}, this.state);
40825
40838
  this.state = tt({}, this.state, e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== s.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== s.speed && this.changeSpeed(e.speed), Nt(s, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 });
40826
40839
  }
40827
40840
  /**
@@ -40928,7 +40941,7 @@ let g0 = class extends p0 {
40928
40941
  this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
40929
40942
  });
40930
40943
  u(this, "moveToStart", () => {
40931
- this.five.setState(ae(V({}, ic(this.curve, 0, this.curveOffset)), { mode: "Model" }));
40944
+ this.five.setState(ae(B({}, ic(this.curve, 0, this.curveOffset)), { mode: "Model" }));
40932
40945
  });
40933
40946
  u(this, "playFromStart", () => {
40934
40947
  this.clearPauseData(), this.setState({ playing: !0 });
@@ -40956,7 +40969,7 @@ let g0 = class extends p0 {
40956
40969
  }
40957
40970
  load(e, i) {
40958
40971
  var a, l, c, h, d, f, m, g, p;
40959
- this.handlePause(), this.clear(), this.data = V({ id: kt() }, e);
40972
+ this.handlePause(), this.clear(), this.data = B({ id: kt() }, e);
40960
40973
  const s = (() => {
40961
40974
  if (this.data.path instanceof y.Curve)
40962
40975
  return this.data.path.curves[0];
@@ -40998,7 +41011,7 @@ let g0 = class extends p0 {
40998
41011
  let r = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
40999
41012
  (r < 0 || r >= 1) && (r = 0);
41000
41013
  const o = ic(this.curve, r, this.curveOffset);
41001
- if (this.hooks.emit("progressChange", r), this.five.setState(ae(V({}, o), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
41014
+ if (this.hooks.emit("progressChange", r), this.five.setState(ae(B({}, o), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
41002
41015
  const c = this.addInterruptListener(() => {
41003
41016
  this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
41004
41017
  });
@@ -41099,7 +41112,7 @@ class nd extends p0 {
41099
41112
  var h, d;
41100
41113
  this.clear();
41101
41114
  const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
41102
- this.data = V({ id: o.keyframesId }, o), this.hooks.emit("dataChange", o, r);
41115
+ this.data = B({ id: o.keyframesId }, o), this.hooks.emit("dataChange", o, r);
41103
41116
  let a = [], l;
41104
41117
  const c = this.data.keyframes.filter((f) => f.data.panoIndex !== void 0);
41105
41118
  c.filter((f, m) => {
@@ -41133,7 +41146,7 @@ class nd extends p0 {
41133
41146
  * @description Play from first keyframe
41134
41147
  */
41135
41148
  playFromStart(e) {
41136
- return this.playFrom(ae(V({}, e), { index: 0 }));
41149
+ return this.playFrom(ae(B({}, e), { index: 0 }));
41137
41150
  }
41138
41151
  /**
41139
41152
  * @description Format data
@@ -41151,7 +41164,7 @@ class nd extends p0 {
41151
41164
  keyframes: i.keyframes.map((s, r) => {
41152
41165
  var l;
41153
41166
  const o = i.keyframes[r + 1], a = (() => !o || o.start === void 0 || s.end === void 0 ? 0 : o.start - s.end)();
41154
- return ae(V({ id: (l = s.uuid) != null ? l : kt(), moveIndex: r, stay: a, index: r }, s), { guildPluginOptions: i.guildPluginOptions });
41167
+ return ae(B({ id: (l = s.uuid) != null ? l : kt(), moveIndex: r, stay: a, index: r }, s), { guildPluginOptions: i.guildPluginOptions });
41155
41168
  })
41156
41169
  };
41157
41170
  if (i.panoIndexList) {
@@ -41172,11 +41185,11 @@ class nd extends p0 {
41172
41185
  i.moveType === void 0 || i.moveType === "justMove" ? s.push({
41173
41186
  moveIndex: c,
41174
41187
  stay: i.stay,
41175
- data: V({ effect: "Move", panoIndex: l, moveEffect: r }, h != null ? h : {})
41176
- }) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: r } }), h && s.push({ moveIndex: c, stay: i.stay, data: V({ effect: "Rotate", panoIndex: l }, h) }));
41188
+ data: B({ effect: "Move", panoIndex: l, moveEffect: r }, h != null ? h : {})
41189
+ }) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: r } }), h && s.push({ moveIndex: c, stay: i.stay, data: B({ effect: "Rotate", panoIndex: l }, h) }));
41177
41190
  }), {
41178
41191
  keyframesId: kt(),
41179
- keyframes: s.map((l, c) => V({ id: kt(), index: c }, l)),
41192
+ keyframes: s.map((l, c) => B({ id: kt(), index: c }, l)),
41180
41193
  guildPluginOptions: i.guildPluginOptions,
41181
41194
  useGuildLine: i.useGuildLine
41182
41195
  };
@@ -41479,9 +41492,9 @@ class A0 {
41479
41492
  const i = t === "panorama" ? this.panoramaItem : this.modelItem, s = t === "panorama" ? e.panorama_style : e.model_style, r = e.path, o = s, a = s, l = s;
41480
41493
  if (e.pano_group) {
41481
41494
  const h = t === "panorama" && e.panorama_style.skip_group === !0;
41482
- i.setGeometryByPanoGroup(e.pano_group, V(ae(V({}, e), { skipPanoGroup: h }), o));
41495
+ i.setGeometryByPanoGroup(e.pano_group, B(ae(B({}, e), { skipPanoGroup: h }), o));
41483
41496
  } else
41484
- e.path && i.setGeometryByPath(r, V({}, o));
41497
+ e.path && i.setGeometryByPath(r, B({}, o));
41485
41498
  i.name = e.name, i.setMeshStyle(l), i.setMartial(a), i.setVisibleFloorIndexes((c = e.visible_floor_indexes) != null ? c : null), i.setStartTag(s == null ? void 0 : s.start_tag), i.setEndTag(s == null ? void 0 : s.end_tag);
41486
41499
  }
41487
41500
  show() {
@@ -41496,7 +41509,7 @@ class A0 {
41496
41509
  walk(t) {
41497
41510
  return $(this, null, function* () {
41498
41511
  if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
41499
- const e = V({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield Cs(Y5(this.five, e));
41512
+ const e = B({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield Cs(Y5(this.five, e));
41500
41513
  if (i)
41501
41514
  return this.logError(i.message);
41502
41515
  } else {
@@ -41585,7 +41598,7 @@ let X5 = class extends wn {
41585
41598
  var m, g, p, v, b, w, k;
41586
41599
  const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
41587
41600
  this.hooks.emit("dataChange", o, r), this.data = o;
41588
- const a = o.config, l = !o.lines && o.routes, c = ae(V({}, a), {
41601
+ const a = o.config, l = !o.lines && o.routes, c = ae(B({}, a), {
41589
41602
  panorama_style: {
41590
41603
  visible: !!l,
41591
41604
  unit_length: (m = a == null ? void 0 : a.unitHeight) != null ? m : 0.4,
@@ -41634,8 +41647,8 @@ let X5 = class extends wn {
41634
41647
  var r;
41635
41648
  if (this.disposed)
41636
41649
  return this.disposedErrorLog();
41637
- const s = V({}, this.state);
41638
- this.state = V(V({}, this.state), e), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), Nt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 }), this.five.needsRender = !0);
41650
+ const s = B({}, this.state);
41651
+ this.state = B(B({}, this.state), e), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), Nt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 }), this.five.needsRender = !0);
41639
41652
  }
41640
41653
  /** 添加一个 GuideLineItem */
41641
41654
  addGuideLineItem(e) {
@@ -41924,7 +41937,7 @@ function aD(n, t) {
41924
41937
  return n;
41925
41938
  }
41926
41939
  function lD(n) {
41927
- const t = ws(V({
41940
+ const t = ws(B({
41928
41941
  position: "absolute",
41929
41942
  display: "block",
41930
41943
  borderRadius: "4px",
@@ -42110,7 +42123,7 @@ function fD() {
42110
42123
  ] };
42111
42124
  }
42112
42125
  function _n(n) {
42113
- const t = ws(V({
42126
+ const t = ws(B({
42114
42127
  background: "#FFFFFF",
42115
42128
  width: "9px",
42116
42129
  height: "9px",
@@ -42776,11 +42789,11 @@ class PD {
42776
42789
  return yD();
42777
42790
  if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
42778
42791
  return CD();
42779
- const i = V({}, this.state);
42780
- this.state = V(V({}, this.state), t), t.disposed !== void 0 && t.disposed !== i.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: i });
42792
+ const i = B({}, this.state);
42793
+ this.state = B(B({}, this.state), t), t.disposed !== void 0 && t.disposed !== i.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: i });
42781
42794
  }
42782
42795
  addControllers(t) {
42783
- this.controllers = V(V({}, this.controllers), t), this.setState(this.state);
42796
+ this.controllers = B(B({}, this.controllers), t), this.setState(this.state);
42784
42797
  }
42785
42798
  /**
42786
42799
  * @description 初始化 helpers 的位置
@@ -43016,7 +43029,7 @@ class ED extends Go {
43016
43029
  this.scale(i);
43017
43030
  }
43018
43031
  scale(e) {
43019
- var R, A;
43032
+ var V, A;
43020
43033
  if (!this.startInfo)
43021
43034
  return;
43022
43035
  const i = this.originObject3D, { startPoint: s, plane: r } = this.startInfo, o = this.helperObject3D.cornerPositions;
@@ -43068,8 +43081,8 @@ class ED extends Go {
43068
43081
  }
43069
43082
  const w = new de().subVectors(o[1], o[0]).length() / d.length(), k = new de().subVectors(o[3], o[0]).length() / f.length(), M = new de(w, k, 1), D = new y.Matrix4().scale(M);
43070
43083
  i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(D) : i.scale.applyMatrix4(D), s.position.copy(a);
43071
- const x = new de().addVectors(o[0], o[2]).divideScalar(2), B = new de().subVectors(x, l), O = new y.Matrix4().setPosition(B);
43072
- i.applyMatrix4(O), (R = this.helperObject3D.css3DInstance) == null || R.css3DObject.applyMatrix4(O), (A = this.helperObject3D.plane) == null || A.applyMatrix4(O), this.internalHooks.emit("applyObjectScale", { matrix: D }), this.internalHooks.emit("applyObjectPosition", { matrix: O }), this.render();
43084
+ const x = new de().addVectors(o[0], o[2]).divideScalar(2), R = new de().subVectors(x, l), O = new y.Matrix4().setPosition(R);
43085
+ i.applyMatrix4(O), (V = this.helperObject3D.css3DInstance) == null || V.css3DObject.applyMatrix4(O), (A = this.helperObject3D.plane) == null || A.applyMatrix4(O), this.internalHooks.emit("applyObjectScale", { matrix: D }), this.internalHooks.emit("applyObjectPosition", { matrix: O }), this.render();
43073
43086
  }
43074
43087
  dragEnd() {
43075
43088
  this.isDragging && (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
@@ -43447,8 +43460,8 @@ class y0 extends Kn {
43447
43460
  return TD();
43448
43461
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
43449
43462
  return OD();
43450
- const s = V({}, this.state);
43451
- this.state = V(V({}, this.state), e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: s });
43463
+ const s = B({}, this.state);
43464
+ this.state = B(B({}, this.state), e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: s });
43452
43465
  }
43453
43466
  getObject3DHelper(e) {
43454
43467
  return this.objectHelperMap.get(e);
@@ -43470,7 +43483,7 @@ class y0 extends Kn {
43470
43483
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
43471
43484
  return;
43472
43485
  }
43473
- const s = new PD(), r = [], o = (w = this.five.getElement()) == null ? void 0 : w.parentElement, a = this.five.camera, c = V(V({}, {
43486
+ const s = new PD(), r = [], o = (w = this.five.getElement()) == null ? void 0 : w.parentElement, a = this.five.camera, c = B(B({}, {
43474
43487
  moveHelper: !0,
43475
43488
  rotateHelper: !0,
43476
43489
  scaleHelper: !0,
@@ -43481,7 +43494,7 @@ class y0 extends Kn {
43481
43494
  return typeof k == "boolean" ? k : k.enable;
43482
43495
  };
43483
43496
  if (b(h)) {
43484
- const k = V(V({}, this.getConfig(c.moveHelper)), c), M = new oD(e, V({}, k)), D = new no(
43497
+ const k = B(B({}, this.getConfig(c.moveHelper)), c), M = new oD(e, B({}, k)), D = new no(
43485
43498
  this.five,
43486
43499
  v,
43487
43500
  vD,
@@ -43494,7 +43507,7 @@ class y0 extends Kn {
43494
43507
  s.addControllers({ moveController: D.helperController }), r.push(() => D.dispose());
43495
43508
  }
43496
43509
  if (b(d)) {
43497
- const k = V(V({}, this.getConfig(c.rotateHelper)), c), M = new cD(e, V({ container: o }, k)), D = new no(
43510
+ const k = B(B({}, this.getConfig(c.rotateHelper)), c), M = new cD(e, B({ container: o }, k)), D = new no(
43498
43511
  this.five,
43499
43512
  v,
43500
43513
  ID,
@@ -43534,16 +43547,16 @@ class y0 extends Kn {
43534
43547
  s.addControllers({ scaleController: M.helperController }), r.push(() => M.dispose()), hi(this.five).then(() => {
43535
43548
  var D, x;
43536
43549
  if (e.isCSS3DObjectPlus) {
43537
- const B = e;
43538
- if (!B || B.mode !== "front")
43550
+ const R = e;
43551
+ if (!R || R.mode !== "front")
43539
43552
  return;
43540
43553
  const O = (D = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? D : ih(this.five);
43541
- O && (this.css3DObjectParentMap.set(B, B.parent), B.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(O), (x = this.css3DRender.getBehindCSS3DObjectGroup()) == null || x.add(B), this.css3DRender.render(this.five.camera));
43554
+ O && (this.css3DObjectParentMap.set(R, R.parent), R.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(O), (x = this.css3DRender.getBehindCSS3DObjectGroup()) == null || x.add(R), this.css3DRender.render(this.five.camera));
43542
43555
  } else
43543
43556
  e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
43544
43557
  });
43545
43558
  } else {
43546
- const k = V(V({}, this.getConfig(c.scaleHelper)), c), M = new kD(e, k), D = new no(
43559
+ const k = B(B({}, this.getConfig(c.scaleHelper)), c), M = new kD(e, k), D = new no(
43547
43560
  this.five,
43548
43561
  v,
43549
43562
  DD,
@@ -43936,7 +43949,7 @@ class BD extends Kn {
43936
43949
  r.video_list.forEach((l) => {
43937
43950
  this.controllerMap.set(
43938
43951
  l.render_id,
43939
- new yp(this.five, ae(V({}, l), {
43952
+ new yp(this.five, ae(B({}, l), {
43940
43953
  fiveUtil: this.fiveUtil,
43941
43954
  panoIndex: o,
43942
43955
  renderID: a,
@@ -44015,7 +44028,7 @@ class BD extends Kn {
44015
44028
  const r = s.render_id;
44016
44029
  this.controllerMap.set(
44017
44030
  s.render_id,
44018
- new yp(this.five, ae(V({}, s), {
44031
+ new yp(this.five, ae(B({}, s), {
44019
44032
  fiveUtil: this.fiveUtil,
44020
44033
  panoIndex: e,
44021
44034
  renderID: r,
@@ -44213,7 +44226,7 @@ class ir extends y.Mesh {
44213
44226
  u(this, "opacityAnime");
44214
44227
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
44215
44228
  u(this, "uPreMeter", 1);
44216
- e.geometryConfig && (this.geometryConfig = V(V({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = ir.calculatePath(e.path.map((l) => new y.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = ir.formatTexture(e.texture);
44229
+ e.geometryConfig && (this.geometryConfig = B(B({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = ir.calculatePath(e.path.map((l) => new y.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = ir.formatTexture(e.texture);
44217
44230
  const { radius: s, tubularSegments: r, radialSegments: o } = this.geometryConfig, a = ir.formatTexture(e.texture);
44218
44231
  this.geometry = ir.formatGeometryUV(
44219
44232
  new y.TubeBufferGeometry(this.path, r, s, o),
@@ -44499,7 +44512,7 @@ let $D = class extends wn {
44499
44512
  return $(this, arguments, function* (e = {}) {
44500
44513
  if (this.state.visible)
44501
44514
  return;
44502
- const i = V({
44515
+ const i = B({
44503
44516
  userAction: !0,
44504
44517
  anime: { duration: 500 }
44505
44518
  }, e);
@@ -44516,7 +44529,7 @@ let $D = class extends wn {
44516
44529
  return $(this, arguments, function* (e = {}) {
44517
44530
  if (this.state.visible === !1)
44518
44531
  return;
44519
- const i = V({
44532
+ const i = B({
44520
44533
  userAction: !0,
44521
44534
  anime: { duration: 500 }
44522
44535
  }, e);
@@ -44622,7 +44635,7 @@ let $D = class extends wn {
44622
44635
  }
44623
44636
  updateState(e, i) {
44624
44637
  const s = this.state;
44625
- this.state = V(V({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
44638
+ this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
44626
44639
  }
44627
44640
  /** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
44628
44641
  loadPipeTexture(e) {
@@ -44755,8 +44768,8 @@ function nT(n, t, e) {
44755
44768
  } } = t, { rendererIfNeed: d = void 0 } = t, { rendererData: f = void 0 } = t, m, g, p, v;
44756
44769
  const b = (D) => {
44757
44770
  if (r.state.mode !== "Panorama") {
44758
- const O = -(10 + 54 * (1 - fl(D.latitude) / 90)), R = O + 20, A = R >= 0 ? 0 : -R / 44;
44759
- e(7, g.style.transform = `scaleY(${A})`, g), e(7, g.style.top = `${R}px`, g), e(8, p.style.top = `${O}px`, p);
44771
+ const O = -(10 + 54 * (1 - fl(D.latitude) / 90)), V = O + 20, A = V >= 0 ? 0 : -V / 44;
44772
+ e(7, g.style.transform = `scaleY(${A})`, g), e(7, g.style.top = `${V}px`, g), e(8, p.style.top = `${O}px`, p);
44760
44773
  }
44761
44774
  };
44762
44775
  Qt(() => {
@@ -45176,14 +45189,14 @@ let aT = class extends wn {
45176
45189
  visible: !0
45177
45190
  };
45178
45191
  this.state = Object.assign(s, i == null ? void 0 : i.initialState);
45179
- const r = V({
45192
+ const r = B({
45180
45193
  modelDepthTest: !0
45181
45194
  }, i == null ? void 0 : i.config);
45182
45195
  this._config = r, this.modelGroup = new y.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
45183
45196
  }
45184
45197
  /** 插件配置项 */
45185
45198
  get config() {
45186
- return V({}, this._config);
45199
+ return B({}, this._config);
45187
45200
  }
45188
45201
  /** 是否已经被销毁 */
45189
45202
  get disposed() {
@@ -45235,7 +45248,7 @@ let aT = class extends wn {
45235
45248
  return Promise.resolve();
45236
45249
  if (this.disposed)
45237
45250
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
45238
- const i = V({ userAction: !0 }, e);
45251
+ const i = B({ userAction: !0 }, e);
45239
45252
  this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
45240
45253
  });
45241
45254
  }
@@ -45247,7 +45260,7 @@ let aT = class extends wn {
45247
45260
  return $(this, null, function* () {
45248
45261
  if (this.state.visible === !1)
45249
45262
  return;
45250
- const i = V({ userAction: !0 }, e);
45263
+ const i = B({ userAction: !0 }, e);
45251
45264
  this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
45252
45265
  });
45253
45266
  }
@@ -45306,7 +45319,7 @@ let aT = class extends wn {
45306
45319
  */
45307
45320
  updateConfig(e, i = {}) {
45308
45321
  var o;
45309
- const s = this.config, r = V(V({}, s), e);
45322
+ const s = this.config, r = B(B({}, s), e);
45310
45323
  this._config = r, this.hooks.emit("configChange", { prevConfig: s, config: r, userAction: (o = i.userAction) != null ? o : !0 });
45311
45324
  }
45312
45325
  /** 根据 ID 获取标注 */
@@ -45320,9 +45333,9 @@ let aT = class extends wn {
45320
45333
  return i(e) ? {
45321
45334
  list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
45322
45335
  const r = new y.Shape(), o = s.object_data.points[0];
45323
- return r.moveTo(o[0], o[2]), s.object_data.points.slice(1).forEach((l) => r.lineTo(l[0], l[2])), r.lineTo(o[0], o[2]), ae(V({}, s), {
45336
+ return r.moveTo(o[0], o[2]), s.object_data.points.slice(1).forEach((l) => r.lineTo(l[0], l[2])), r.lineTo(o[0], o[2]), ae(B({}, s), {
45324
45337
  floor_index: s.object_data.floorIndex,
45325
- object_data: ae(V({}, s.object_data), {
45338
+ object_data: ae(B({}, s.object_data), {
45326
45339
  bottom_y: o[1] + s.object_data.fixedY,
45327
45340
  shape: r.toJSON(),
45328
45341
  height: s.object_data.height + s.object_data.fixedHeight
@@ -45346,7 +45359,7 @@ let aT = class extends wn {
45346
45359
  }
45347
45360
  updateState(e, i) {
45348
45361
  const s = this.state;
45349
- this.state = V(V({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
45362
+ this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
45350
45363
  }
45351
45364
  _enable(e) {
45352
45365
  this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
@@ -45440,7 +45453,7 @@ class lT extends Kn {
45440
45453
  visible: !0
45441
45454
  };
45442
45455
  this.state = Object.assign(s, i == null ? void 0 : i.initialState);
45443
- const r = V({
45456
+ const r = B({
45444
45457
  width: 1.4,
45445
45458
  yOffset: 0.01,
45446
45459
  yRotate: 0,
@@ -45453,7 +45466,7 @@ class lT extends Kn {
45453
45466
  }
45454
45467
  /** 插件配置项 */
45455
45468
  get config() {
45456
- return V({}, this._config);
45469
+ return B({}, this._config);
45457
45470
  }
45458
45471
  /** 是否已经被销毁 */
45459
45472
  get disposed() {
@@ -45491,7 +45504,7 @@ class lT extends Kn {
45491
45504
  return Promise.resolve();
45492
45505
  if (this.disposed)
45493
45506
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
45494
- const i = V({ userAction: !0 }, e);
45507
+ const i = B({ userAction: !0 }, e);
45495
45508
  this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
45496
45509
  });
45497
45510
  }
@@ -45503,7 +45516,7 @@ class lT extends Kn {
45503
45516
  return $(this, null, function* () {
45504
45517
  if (this.state.visible === !1)
45505
45518
  return;
45506
- const i = V({ userAction: !0 }, e);
45519
+ const i = B({ userAction: !0 }, e);
45507
45520
  this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
45508
45521
  });
45509
45522
  }
@@ -45528,7 +45541,7 @@ class lT extends Kn {
45528
45541
  */
45529
45542
  updateConfig(e, i = {}) {
45530
45543
  var o;
45531
- const s = this.config, r = V(V({}, s), e);
45544
+ const s = this.config, r = B(B({}, s), e);
45532
45545
  this._config = r, s.imageURL !== r.imageURL && this.reloadTexture(r.imageURL), s.yOffset !== r.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), s.yRotate !== r.yRotate && this.updateMeshQuaternion(r.yRotate), s.width !== r.width && (this.mesh.geometry = new y.PlaneBufferGeometry(r.width, r.width)), this.hooks.emit("configChange", { prevConfig: s, config: r, userAction: (o = i.userAction) != null ? o : !0 });
45533
45546
  }
45534
45547
  /** 问什么看不到模型 */
@@ -45544,7 +45557,7 @@ class lT extends Kn {
45544
45557
  }
45545
45558
  updateState(e, i) {
45546
45559
  const s = this.state;
45547
- this.state = V(V({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
45560
+ this.state = B(B({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
45548
45561
  }
45549
45562
  /** 根据各种条件更新 Mesh 的可见性 */
45550
45563
  updateMeshVisible() {
@@ -45700,7 +45713,7 @@ class E0 extends si {
45700
45713
  if (o !== 0 && a === void 0)
45701
45714
  return;
45702
45715
  const l = (c = this.lines[o]) != null ? c : (() => {
45703
- const h = new Do(ae(V({}, this.style), {
45716
+ const h = new Do(ae(B({}, this.style), {
45704
45717
  pointVisibility: this.withDots ? { startPoint: o === 0, endPoint: !0 } : !1
45705
45718
  }));
45706
45719
  return this.lines[o] = h, this.add(h), h;
@@ -45709,7 +45722,7 @@ class E0 extends si {
45709
45722
  }), s.length === 0 ? (this.lines.forEach((r) => r.removeFromParent()), this.lines = []) : s.length === 1 || this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((r) => r.removeFromParent());
45710
45723
  }
45711
45724
  setStyle(e) {
45712
- this.paramsStyle = V(V({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
45725
+ this.paramsStyle = B(B({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
45713
45726
  }
45714
45727
  highlight() {
45715
45728
  this.lines.forEach((e) => e.highlight());
@@ -45720,13 +45733,13 @@ class E0 extends si {
45720
45733
  }
45721
45734
  class ks extends E0 {
45722
45735
  constructor(...e) {
45723
- super(ae(V({}, e[0]), { withDots: !1 }));
45736
+ super(ae(B({}, e[0]), { withDots: !1 }));
45724
45737
  u(this, "name", "PolylineMesh");
45725
45738
  }
45726
45739
  }
45727
45740
  class Nn extends E0 {
45728
45741
  constructor(...e) {
45729
- super(ae(V({}, e[0]), { withDots: !0 }));
45742
+ super(ae(B({}, e[0]), { withDots: !0 }));
45730
45743
  u(this, "name", "PolylineWithDotsMesh");
45731
45744
  }
45732
45745
  }
@@ -45756,7 +45769,7 @@ class _i extends si {
45756
45769
  const s = i != null ? i : this;
45757
45770
  return s.updateMatrixWorld(), db(s, e);
45758
45771
  });
45759
- e != null && e.id && (this.uuid = e.id), this.config = V({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (_e((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = ae(V({}, e.style), { occlusionMode: this.config.occlusionMode })), _e((r = this.config) == null ? void 0 : r.occlusionVisibility) && (e.style = ae(V({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), bt("esc", () => {
45772
+ e != null && e.id && (this.uuid = e.id), this.config = B({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (_e((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = ae(B({}, e.style), { occlusionMode: this.config.occlusionMode })), _e((r = this.config) == null ? void 0 : r.occlusionVisibility) && (e.style = ae(B({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), bt("esc", () => {
45760
45773
  this.stopCreating();
45761
45774
  }), this.config.defaultAction && (bt("backspace, delete", () => {
45762
45775
  this.selected && this.delete();
@@ -45895,7 +45908,7 @@ class Qo extends Pl {
45895
45908
  enable() {
45896
45909
  super.enable();
45897
45910
  const e = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
45898
- ct.modules.object3DHelper.addObject3DHelper(this.originObject, V({ positionFrom: "boundingBox" }, e));
45911
+ ct.modules.object3DHelper.addObject3DHelper(this.originObject, B({ positionFrom: "boundingBox" }, e));
45899
45912
  const i = ct.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
45900
45913
  i.hooks.on("move", this.onObjectUpdate), i.hooks.on("rotate", this.onObjectUpdate), i.hooks.on("scale", this.onObjectUpdate);
45901
45914
  }
@@ -45974,13 +45987,13 @@ class Ip extends _i {
45974
45987
  u(this, "polyLineMesh");
45975
45988
  u(this, "_editor");
45976
45989
  u(this, "creatingObject");
45977
- e && (this.polyLineMesh = new Nn(V(V({}, e.style), e)), this.add(this.polyLineMesh));
45990
+ e && (this.polyLineMesh = new Nn(B(B({}, e.style), e)), this.add(this.polyLineMesh));
45978
45991
  }
45979
45992
  get editor() {
45980
45993
  return this._editor || (this._editor = new uT(this)), this._editor;
45981
45994
  }
45982
45995
  get data() {
45983
- return ae(V({}, this.baseData), {
45996
+ return ae(B({}, this.baseData), {
45984
45997
  points: ui(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
45985
45998
  style: {
45986
45999
  lineColor: new y.Color(this.polyLineMesh.lineColor).getHex(),
@@ -46031,7 +46044,7 @@ function fT(n, t, e) {
46031
46044
  return;
46032
46045
  const { promise: s, resolve: r, reject: o } = Ss(), a = (D = e == null ? void 0 : e.limit) != null ? D : "none", l = new ks(n.style);
46033
46046
  i.add(l);
46034
- const c = new ks(ae(V({}, n.style), { dashed: !0, lengthEnable: !1 }));
46047
+ const c = new ks(ae(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
46035
46048
  i.add(c), t.enable();
46036
46049
  const h = [];
46037
46050
  let d, f, m;
@@ -46041,14 +46054,14 @@ function fT(n, t, e) {
46041
46054
  v() && (h.push(g.pop()), n.setPoints(h), M(m), t.pointSelectorHelper.magnifier.render());
46042
46055
  }, k = (x) => {
46043
46056
  g.length = 0;
46044
- const B = h.length === 0 ? x.point : d.clone();
46045
- h.push(B), n.setPoints(h);
46057
+ const R = h.length === 0 ? x.point : d.clone();
46058
+ h.push(R), n.setPoints(h);
46046
46059
  }, M = (x) => {
46047
- const B = () => {
46060
+ const R = () => {
46048
46061
  l.setPoints([]), c.setPoints([]), d = null;
46049
46062
  };
46050
46063
  if (!x || (m = x, !(h != null && h.length)))
46051
- return B();
46064
+ return R();
46052
46065
  const O = h.at(-1).clone();
46053
46066
  a === "none" ? (d = x.point, l.setPoints([O, d])) : a === "xoz" ? (f = f != null ? f : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), t.plane = f, d = f.projectPoint(x.point, new y.Vector3()), l.setPoints([O, d]), c.setPoints([d, x.point])) : a === "y" && (h.length === 1 ? (d = x.point, l.setPoints([O, d])) : (f = f != null ? f : new y.Plane().setFromCoplanarPoints(h[0], h[1], new y.Vector3(0, 1, 0).add(h[0])), t.plane = f, d = f.projectPoint(x.point, new y.Vector3()), l.setPoints([O, d]), c.setPoints([d, x.point])));
46054
46067
  };
@@ -46086,13 +46099,13 @@ class Ep extends _i {
46086
46099
  u(this, "type", "Point");
46087
46100
  u(this, "pointMesh");
46088
46101
  u(this, "_editor");
46089
- e && (this.pointMesh = new Xn(V(V({}, e.style), e)), this.add(this.pointMesh));
46102
+ e && (this.pointMesh = new Xn(B(B({}, e.style), e)), this.add(this.pointMesh));
46090
46103
  }
46091
46104
  get editor() {
46092
46105
  return this._editor || (this._editor = new mT(this)), this._editor;
46093
46106
  }
46094
46107
  get data() {
46095
- return ae(V({}, this.baseData), {
46108
+ return ae(B({}, this.baseData), {
46096
46109
  point: ui(this.applyObjectMatrixWorld(this.pointMesh.position)),
46097
46110
  style: {
46098
46111
  color: this.pointMesh.color.getHex(),
@@ -46152,7 +46165,7 @@ class x0 extends Br {
46152
46165
  i && this.setPoints(i), s && this.setStyle(s);
46153
46166
  }
46154
46167
  get style() {
46155
- return ae(V({}, super.style), {
46168
+ return ae(B({}, super.style), {
46156
46169
  lineWidth: this.lineWidth,
46157
46170
  lineColor: this.lineColor
46158
46171
  });
@@ -46169,7 +46182,7 @@ class x0 extends Br {
46169
46182
  }), !1;
46170
46183
  }
46171
46184
  setPoints(e, i) {
46172
- super.setPoints(e, V({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, V({ closed: !0 }, i)), this.addIfNotExists(this.line));
46185
+ super.setPoints(e, B({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, B({ closed: !0 }, i)), this.addIfNotExists(this.line));
46173
46186
  }
46174
46187
  setStyle(e) {
46175
46188
  super.setStyle(e), this.line.setStyle(e);
@@ -46208,13 +46221,13 @@ class Mp extends _i {
46208
46221
  u(this, "areaMesh");
46209
46222
  u(this, "_editor");
46210
46223
  u(this, "creatingObject");
46211
- e && (this.areaMesh = new Xc(V(V({}, e.style), e)), this.add(this.areaMesh));
46224
+ e && (this.areaMesh = new Xc(B(B({}, e.style), e)), this.add(this.areaMesh));
46212
46225
  }
46213
46226
  get editor() {
46214
46227
  return this._editor || (this._editor = new pT(this)), this._editor;
46215
46228
  }
46216
46229
  get data() {
46217
- return this.updateMatrixWorld(), ae(V({}, this.baseData), {
46230
+ return this.updateMatrixWorld(), ae(B({}, this.baseData), {
46218
46231
  points: ui(this.applyObjectMatrixWorld(this.areaMesh.points)),
46219
46232
  style: {
46220
46233
  color: this.areaMesh.color.getHex(),
@@ -46269,7 +46282,7 @@ function cd(n, t, e) {
46269
46282
  }
46270
46283
  const a = (O = e == null ? void 0 : e.limit) != null ? O : "none", l = new ks(n.style);
46271
46284
  o == null || o.add(l);
46272
- const c = new ks(ae(V({}, n.style), { dashed: !0, lengthEnable: !1 }));
46285
+ const c = new ks(ae(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
46273
46286
  o == null || o.add(c), t.enable();
46274
46287
  const h = [];
46275
46288
  let d, f, m = !1, g;
@@ -46277,29 +46290,29 @@ function cd(n, t, e) {
46277
46290
  v() && (p.push(h.pop()), D(g), t.pointSelectorHelper.magnifier.render());
46278
46291
  }, k = () => {
46279
46292
  b() && (h.push(p.pop()), D(g), t.pointSelectorHelper.magnifier.render());
46280
- }, M = (R) => {
46293
+ }, M = (V) => {
46281
46294
  p.length = 0;
46282
- const A = h.length === 0 ? R.point : d.clone();
46295
+ const A = h.length === 0 ? V.point : d.clone();
46283
46296
  h.push(A), n.setPoints(h, { closed: !1 }), m && (x(), s());
46284
- }, D = (R) => {
46297
+ }, D = (V) => {
46285
46298
  const A = () => {
46286
46299
  l.setPoints([]), c.setPoints([]), n.setPoints(h), t.pointSelectorHelper.magnifier.render();
46287
46300
  };
46288
- if (!R || (g = R, !(h != null && h.length)))
46301
+ if (!V || (g = V, !(h != null && h.length)))
46289
46302
  return A();
46290
46303
  const P = h.at(-1).clone();
46291
- if (h.length < 3 && (a === "none" ? (d = R.point, l.setPoints([P, d]), c.setPoints([])) : a === "xoz" ? (f = f != null ? f : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), t.plane = f, d = f.projectPoint(R.point, new y.Vector3()), l.setPoints([P, d]), c.setPoints([d, R.point])) : a === "y" && (h.length === 1 ? (d = R.point, l.setPoints([P, d]), c.setPoints([])) : (f = f != null ? f : new y.Plane().setFromCoplanarPoints(h[0], h[1], new y.Vector3(0, 1, 0).add(h[0])), t.plane = f, d = f.projectPoint(R.point, new y.Vector3()), l.setPoints([P, d]), c.setPoints([d, R.point])))), h.length >= 3) {
46292
- d = n.projectPoint(R.point);
46304
+ if (h.length < 3 && (a === "none" ? (d = V.point, l.setPoints([P, d]), c.setPoints([])) : a === "xoz" ? (f = f != null ? f : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), t.plane = f, d = f.projectPoint(V.point, new y.Vector3()), l.setPoints([P, d]), c.setPoints([d, V.point])) : a === "y" && (h.length === 1 ? (d = V.point, l.setPoints([P, d]), c.setPoints([])) : (f = f != null ? f : new y.Plane().setFromCoplanarPoints(h[0], h[1], new y.Vector3(0, 1, 0).add(h[0])), t.plane = f, d = f.projectPoint(V.point, new y.Vector3()), l.setPoints([P, d]), c.setPoints([d, V.point])))), h.length >= 3) {
46305
+ d = n.projectPoint(V.point);
46293
46306
  const C = h[0], E = 0.2;
46294
- C.distanceTo(d) < E || C.distanceTo(R.point) < E ? (d = C, R.point.copy(C), t.pointSelectorHelper.updateWithIntersect(R, { emitEvent: !1 }), m = !0) : m = !1, l.setPoints([P, d]), c.setPoints([d, R.point]);
46307
+ C.distanceTo(d) < E || C.distanceTo(V.point) < E ? (d = C, V.point.copy(C), t.pointSelectorHelper.updateWithIntersect(V, { emitEvent: !1 }), m = !0) : m = !1, l.setPoints([P, d]), c.setPoints([d, V.point]);
46295
46308
  }
46296
46309
  h.length >= 2 ? (n.setPoints([...h, d], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, l.setStyle({ lineColor: 16734553 }), c.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, l.setStyle({ lineColor: n.lineColor }), c.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]);
46297
46310
  }, x = () => {
46298
- t.off("select", M), t.off("intersectionUpdate", D), t.off("disable", B), t.plane = null, t.disable(), o == null || o.remove(l, c);
46299
- }, B = () => {
46311
+ t.off("select", M), t.off("intersectionUpdate", D), t.off("disable", R), t.plane = null, t.disable(), o == null || o.remove(l, c);
46312
+ }, R = () => {
46300
46313
  x(), o == null || o.remove(n, c, l), r(new Error("Cancelled"));
46301
46314
  };
46302
- return t.on("select", M), t.on("intersectionUpdate", D), t.on("disable", B), {
46315
+ return t.on("select", M), t.on("intersectionUpdate", D), t.on("disable", R), {
46303
46316
  finished: i,
46304
46317
  canUndo: v,
46305
46318
  canRedo: b,
@@ -46447,7 +46460,7 @@ class Mr extends si {
46447
46460
  return this.edgeMesh.color;
46448
46461
  }
46449
46462
  setStyle(e = {}) {
46450
- this.paramStyle = V(V({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
46463
+ this.paramStyle = B(B({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
46451
46464
  }
46452
46465
  /**
46453
46466
  * Check if the prism is a box (has 4 bottom positions)
@@ -46517,13 +46530,13 @@ class xp extends _i {
46517
46530
  u(this, "type", "Prism");
46518
46531
  u(this, "prismMesh");
46519
46532
  u(this, "_editor");
46520
- e && (this.prismMesh = new Mr(V(V({}, e.style), e)), this.add(this.prismMesh));
46533
+ e && (this.prismMesh = new Mr(B(B({}, e.style), e)), this.add(this.prismMesh));
46521
46534
  }
46522
46535
  get editor() {
46523
46536
  return this._editor || (this._editor = new k0(this.prismMesh)), this._editor;
46524
46537
  }
46525
46538
  get data() {
46526
- return ae(V({}, this.baseData), {
46539
+ return ae(B({}, this.baseData), {
46527
46540
  points: ui(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
46528
46541
  heightPoint: ui(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
46529
46542
  style: {
@@ -46692,7 +46705,7 @@ class el extends hd {
46692
46705
  i && this.setPoints(i), s && this.setStyle(s);
46693
46706
  }
46694
46707
  get style() {
46695
- return V(V({}, super.style), this.line.style);
46708
+ return B(B({}, super.style), this.line.style);
46696
46709
  }
46697
46710
  get lineWidth() {
46698
46711
  return this.line.lineWidth;
@@ -46723,13 +46736,13 @@ class kp extends _i {
46723
46736
  u(this, "type", "Rectangle");
46724
46737
  u(this, "rectangleMesh");
46725
46738
  u(this, "_editor");
46726
- e && (this.rectangleMesh = new el(V(V({}, e.style), e)), this.add(this.rectangleMesh));
46739
+ e && (this.rectangleMesh = new el(B(B({}, e.style), e)), this.add(this.rectangleMesh));
46727
46740
  }
46728
46741
  get editor() {
46729
46742
  return this._editor || (this._editor = new D0(this.rectangleMesh)), this._editor;
46730
46743
  }
46731
46744
  get data() {
46732
- return ae(V({}, this.baseData), {
46745
+ return ae(B({}, this.baseData), {
46733
46746
  points: ui(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
46734
46747
  style: {
46735
46748
  color: this.rectangleMesh.color.getHex(),
@@ -46780,29 +46793,29 @@ function wT(n, t, e) {
46780
46793
  const { promise: i, reject: s, resolve: r } = Ss(), o = n.parent;
46781
46794
  if (!o)
46782
46795
  return s(new Error("No container"));
46783
- const a = (k = e == null ? void 0 : e.limit) != null ? k : "none", l = new Nn(ae(V({}, n.style), { dashed: !0 })), c = new Nn(ae(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Nn(ae(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
46796
+ const a = (k = e == null ? void 0 : e.limit) != null ? k : "none", l = new Nn(ae(B({}, n.style), { dashed: !0 })), c = new Nn(ae(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Nn(ae(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
46784
46797
  o.add(l, h, c), t.enable();
46785
46798
  const d = [];
46786
46799
  let f = new y.Vector3(), m = new y.Vector3();
46787
46800
  const g = new y.Plane(), p = () => {
46788
46801
  d.push(f.clone()), d.length === 1 ? (a === "xoz" && g.setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), d[0]), a === "none" && g.setFromNormalAndCoplanarPoint(m, d[0])) : d.length === 2 ? a === "y" || a === "xoz" ? (b(), r()) : h.setPoints([d[0], d[1]]) : d.length === 3 && (b(), r());
46789
46802
  }, v = (M) => {
46790
- var x, B;
46803
+ var x, R;
46791
46804
  if (!(M != null && M.raycaster))
46792
46805
  return;
46793
46806
  const D = (x = d.at(-1)) == null ? void 0 : x.clone();
46794
46807
  if (d.length === 0) {
46795
- f = M.point.clone(), m = (B = M.face) == null ? void 0 : B.normal;
46808
+ f = M.point.clone(), m = (R = M.face) == null ? void 0 : R.normal;
46796
46809
  return;
46797
46810
  }
46798
46811
  if (d.length === 1 && a === "y") {
46799
- const R = new y.Line3(new y.Vector3(0, 1, 0).add(d[0]), new y.Vector3(0, -1, 0).add(d[0])).closestPointToPoint(M.point, !1, new y.Vector3());
46800
- n.setPoints([d[0], R, M.point]);
46812
+ const V = new y.Line3(new y.Vector3(0, 1, 0).add(d[0]), new y.Vector3(0, -1, 0).add(d[0])).closestPointToPoint(M.point, !1, new y.Vector3());
46813
+ n.setPoints([d[0], V, M.point]);
46801
46814
  return;
46802
46815
  }
46803
46816
  if (d.length === 1 && a === "xoz") {
46804
- const O = new y.Line3(new y.Vector3(1, 0, 0).add(d[0]), new y.Vector3(-1, 0, 0).add(d[0])), R = M.raycaster.ray.intersectPlane(g, new y.Vector3()), A = O.closestPointToPoint(R, !1, new y.Vector3());
46805
- n.setPoints([d[0], A, R]);
46817
+ const O = new y.Line3(new y.Vector3(1, 0, 0).add(d[0]), new y.Vector3(-1, 0, 0).add(d[0])), V = M.raycaster.ray.intersectPlane(g, new y.Vector3()), A = O.closestPointToPoint(V, !1, new y.Vector3());
46818
+ n.setPoints([d[0], A, V]);
46806
46819
  return;
46807
46820
  }
46808
46821
  if (d.length === 1 && a === "none") {
@@ -46811,8 +46824,8 @@ function wT(n, t, e) {
46811
46824
  }
46812
46825
  if (d.length === 2 && a === "none") {
46813
46826
  o.remove(l);
46814
- const O = M.raycaster.ray.intersectPlane(g, new y.Vector3()), R = d[0].distanceTo(d[1]) / 2, A = new y.Vector3().lerpVectors(d[0], d[1], 0.5), P = new y.Vector3().subVectors(O, A).normalize();
46815
- f = new y.Vector3().addVectors(A, P.multiplyScalar(R));
46827
+ const O = M.raycaster.ray.intersectPlane(g, new y.Vector3()), V = d[0].distanceTo(d[1]) / 2, A = new y.Vector3().lerpVectors(d[0], d[1], 0.5), P = new y.Vector3().subVectors(O, A).normalize();
46828
+ f = new y.Vector3().addVectors(A, P.multiplyScalar(V));
46816
46829
  const C = [d[0], f, d[1]], E = T0(C, ct.modules.five.camera.position);
46817
46830
  n.setPoints(E);
46818
46831
  return;
@@ -46829,7 +46842,7 @@ function CT(n, t, e) {
46829
46842
  const { promise: i, reject: s, resolve: r } = Ss(), o = n.parent;
46830
46843
  if (!o)
46831
46844
  return s(new Error("No container"));
46832
- const a = (k = e == null ? void 0 : e.limit) != null ? k : "none", l = new Nn(ae(V({}, n.style), { dashed: !0 })), c = new Nn(ae(V({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Nn(ae(V({}, n.style), { dashed: !1, lengthEnable: !1 }));
46845
+ const a = (k = e == null ? void 0 : e.limit) != null ? k : "none", l = new Nn(ae(B({}, n.style), { dashed: !0 })), c = new Nn(ae(B({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new Nn(ae(B({}, n.style), { dashed: !1, lengthEnable: !1 }));
46833
46846
  o.add(l, h, c), t.enable(), t.setAdherePoints(yT(t.five, { excludes: [n] }));
46834
46847
  const d = [];
46835
46848
  let f = new y.Vector3(), m = new y.Vector3();
@@ -46843,12 +46856,12 @@ function CT(n, t, e) {
46843
46856
  } else
46844
46857
  d.length === 3 && (b(), r());
46845
46858
  }, v = (M) => {
46846
- var x, B, O, R;
46859
+ var x, R, O, V;
46847
46860
  if (!M || !(M != null && M.raycaster))
46848
46861
  return;
46849
46862
  const D = (x = d.at(-1)) == null ? void 0 : x.clone();
46850
46863
  if (d.length === 0) {
46851
- f = M.point.clone(), m = (B = M.face) == null ? void 0 : B.normal;
46864
+ f = M.point.clone(), m = (R = M.face) == null ? void 0 : R.normal;
46852
46865
  return;
46853
46866
  }
46854
46867
  if (d.length === 1) {
@@ -46860,7 +46873,7 @@ function CT(n, t, e) {
46860
46873
  const T = es([d[0], d[1], M.point]);
46861
46874
  g.setFromNormalAndCoplanarPoint(T, d[0]);
46862
46875
  }
46863
- c.setPoints([(R = M.originalPoint) != null ? R : M.point, M.point]);
46876
+ c.setPoints([(V = M.originalPoint) != null ? V : M.point, M.point]);
46864
46877
  const A = new y.Vector3().crossVectors(d[0].clone().sub(d[1]), g.normal).normalize();
46865
46878
  f = new y.Line3(d[1].clone().add(A), d[1].clone().sub(A)).closestPointToPoint(M.point, !1, new y.Vector3());
46866
46879
  const C = [d[0], d[1], f], E = T0(C, ct.modules.five.camera.position);
@@ -46940,13 +46953,13 @@ class Sp extends _i {
46940
46953
  u(this, "type", "Circle");
46941
46954
  u(this, "circleMesh");
46942
46955
  u(this, "_editor");
46943
- e && (this.circleMesh = new jo(V(V({}, e.style), e)), this.add(this.circleMesh));
46956
+ e && (this.circleMesh = new jo(B(B({}, e.style), e)), this.add(this.circleMesh));
46944
46957
  }
46945
46958
  get editor() {
46946
46959
  return this._editor || (this._editor = new L0(this.circleMesh)), this._editor;
46947
46960
  }
46948
46961
  get data() {
46949
- return ae(V({}, this.baseData), {
46962
+ return ae(B({}, this.baseData), {
46950
46963
  center: ui(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
46951
46964
  normal: ui(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
46952
46965
  radius: this.circleMesh.radius,
@@ -47060,7 +47073,7 @@ class Zc extends si {
47060
47073
  this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: e, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
47061
47074
  }
47062
47075
  setStyle(e) {
47063
- this.params = V(V({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
47076
+ this.params = B(B({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
47064
47077
  }
47065
47078
  highlight() {
47066
47079
  this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
@@ -47125,13 +47138,13 @@ class Dp extends _i {
47125
47138
  u(this, "type", "Cylinder");
47126
47139
  u(this, "cylinderMesh");
47127
47140
  u(this, "_editor");
47128
- e && (this.cylinderMesh = new Zc(V(V({}, e.style), e)), this.add(this.cylinderMesh));
47141
+ e && (this.cylinderMesh = new Zc(B(B({}, e.style), e)), this.add(this.cylinderMesh));
47129
47142
  }
47130
47143
  get editor() {
47131
47144
  return this._editor || (this._editor = new j0(this.cylinderMesh)), this._editor;
47132
47145
  }
47133
47146
  get data() {
47134
- return ae(V({}, this.baseData), {
47147
+ return ae(B({}, this.baseData), {
47135
47148
  bottomCenter: ui(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
47136
47149
  topCenter: ui(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
47137
47150
  radius: this.cylinderMesh.radius,
@@ -47305,13 +47318,13 @@ class Tp extends _i {
47305
47318
  u(this, "type", "Box");
47306
47319
  u(this, "boxMesh");
47307
47320
  u(this, "_editor");
47308
- e && (this.boxMesh = new Jc(V(V({}, e.style), e)), this.add(this.boxMesh));
47321
+ e && (this.boxMesh = new Jc(B(B({}, e.style), e)), this.add(this.boxMesh));
47309
47322
  }
47310
47323
  get editor() {
47311
47324
  return this._editor || (this._editor = new B0(this.boxMesh)), this._editor;
47312
47325
  }
47313
47326
  get data() {
47314
- return ae(V({}, this.baseData), {
47327
+ return ae(B({}, this.baseData), {
47315
47328
  points: ui(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
47316
47329
  heightPoint: ui(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
47317
47330
  style: {
@@ -47387,13 +47400,13 @@ class Lp extends _i {
47387
47400
  u(this, "lineMesh");
47388
47401
  u(this, "_editor");
47389
47402
  u(this, "creatingObject");
47390
- e && (this.lineMesh = new Do(V(V({}, e.style), e)), this.add(this.lineMesh));
47403
+ e && (this.lineMesh = new Do(B(B({}, e.style), e)), this.add(this.lineMesh));
47391
47404
  }
47392
47405
  get editor() {
47393
47406
  return this._editor || (this._editor = new dT(this)), this._editor;
47394
47407
  }
47395
47408
  get data() {
47396
- return ae(V({}, this.baseData), {
47409
+ return ae(B({}, this.baseData), {
47397
47410
  points: ui(this.applyObjectMatrixWorld(this.lineMesh.points)),
47398
47411
  style: {
47399
47412
  lineColor: new y.Color(this.lineMesh.color).getHex(),
@@ -47438,13 +47451,13 @@ class Lp extends _i {
47438
47451
  }
47439
47452
  }
47440
47453
  function V0(n, t, e) {
47441
- var B;
47454
+ var R;
47442
47455
  const i = n.parent;
47443
47456
  if (!i)
47444
47457
  return;
47445
- const { promise: s, resolve: r, reject: o } = Ss(), a = (B = e == null ? void 0 : e.limit) != null ? B : "none", l = new di(n.style);
47458
+ const { promise: s, resolve: r, reject: o } = Ss(), a = (R = e == null ? void 0 : e.limit) != null ? R : "none", l = new di(n.style);
47446
47459
  i.add(l);
47447
- const c = new di(ae(V({}, n.style), { dashed: !0, lengthEnable: !1 }));
47460
+ const c = new di(ae(B({}, n.style), { dashed: !0, lengthEnable: !1 }));
47448
47461
  i.add(c), t.enable();
47449
47462
  const h = [];
47450
47463
  let d, f, m;
@@ -47456,14 +47469,14 @@ function V0(n, t, e) {
47456
47469
  if (!O)
47457
47470
  return;
47458
47471
  g.length = 0;
47459
- const R = h.length === 0 ? O.point : d.clone();
47460
- h.push(R), n.setPoints(h), h.length === 2 && (D(), r());
47472
+ const V = h.length === 0 ? O.point : d.clone();
47473
+ h.push(V), n.setPoints(h), h.length === 2 && (D(), r());
47461
47474
  }, M = (O) => {
47462
- const R = () => {
47475
+ const V = () => {
47463
47476
  l.setPoints([]), c.setPoints([]), t.pointSelectorHelper.magnifier.render();
47464
47477
  };
47465
47478
  if (!(h != null && h.length) || !O)
47466
- return R();
47479
+ return V();
47467
47480
  m = O;
47468
47481
  const A = h.at(-1).clone();
47469
47482
  a === "none" ? (d = O.point, l.setPoints([A, d])) : a === "xoz" ? (t.plane = f, f = f != null ? f : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), h[0]), d = f.projectPoint(O.point, new y.Vector3()), l.setPoints([A, d]), c.setPoints([d, O.point])) : a === "y" && (O.isVirtual ? (d = Qn({
@@ -47533,8 +47546,8 @@ const nr = class extends yt {
47533
47546
  this.clear();
47534
47547
  const s = (r = e == null ? void 0 : e.items) == null ? void 0 : r.map((o) => {
47535
47548
  var l;
47536
- const a = ae(V({}, o), {
47537
- style: V(V({}, (l = this.theme) == null ? void 0 : l[o.type.toLowerCase()]), o.style)
47549
+ const a = ae(B({}, o), {
47550
+ style: B(B({}, (l = this.theme) == null ? void 0 : l[o.type.toLowerCase()]), o.style)
47538
47551
  });
47539
47552
  return o.type === "Point" ? new Ep(a, i) : o.type === "line" ? new Lp(a, i) : o.type === "Polyline" ? new Ip(a, i) : o.type === "Polygon" ? new Mp(a, i) : o.type === "Prism" ? new xp(a, i) : o.type === "Rectangle" ? new kp(a, i) : o.type === "Circle" ? new Sp(a, i) : o.type === "Cylinder" ? new Dp(a, i) : o.type === "Box" ? new Tp(a, i) : null;
47540
47553
  });
@@ -48074,7 +48087,7 @@ const OT = (n, t) => {
48074
48087
  class jp extends F0 {
48075
48088
  constructor(...e) {
48076
48089
  const i = e[0], s = Ji(i.model), r = new y.Vector3().lerpVectors(ci(s, 0), ci(s, 5), 0.5);
48077
- super(ae(V({}, i), { position: r }));
48090
+ super(ae(B({}, i), { position: r }));
48078
48091
  u(this, "onModelShownFloorChange", (e) => {
48079
48092
  this.updateFiveCurrentFloorState(e), this.updateVisible();
48080
48093
  });
@@ -48258,7 +48271,7 @@ class FT extends wn {
48258
48271
  points: [ci(x, 2), ci(x, 3), ci(x, 7), ci(x, 6)],
48259
48272
  heightPoint: ci(x, 1)
48260
48273
  }), c.position.copy(w), c.quaternion.copy(v), c.setStyle(i(r));
48261
- const B = ((a = r.extend) == null ? void 0 : a.index) !== void 0 ? this.five.work.observers[r.extend.index].position : null, O = B ? RT(Ji(c), c, B, [0, 1, 4, 5]) : ci(Ji(c), (l = r.object_data.positionIndex) != null ? l : 5), R = (L) => ({
48274
+ const R = ((a = r.extend) == null ? void 0 : a.index) !== void 0 ? this.five.work.observers[r.extend.index].position : null, O = R ? RT(Ji(c), c, R, [0, 1, 4, 5]) : ci(Ji(c), (l = r.object_data.positionIndex) != null ? l : 5), V = (L) => ({
48262
48275
  0: [1, 3, 4],
48263
48276
  1: [0, 2, 5],
48264
48277
  2: [1, 3, 6],
@@ -48274,7 +48287,7 @@ class FT extends wn {
48274
48287
  P = L;
48275
48288
  break;
48276
48289
  }
48277
- const C = R(P), E = [];
48290
+ const C = V(P), E = [];
48278
48291
  C.forEach((L, F) => {
48279
48292
  const H = ci(A, L), q = O.distanceTo(H), ee = VT(q);
48280
48293
  if (!ee)
@@ -48309,7 +48322,7 @@ class FT extends wn {
48309
48322
  return this.items.find((i) => i.rawData.id === e);
48310
48323
  }
48311
48324
  registerTagRenderer(e) {
48312
- this.tagRendererMap = V(V({}, this.tagRendererMap), e), this.updateTagRenderer();
48325
+ this.tagRendererMap = B(B({}, this.tagRendererMap), e), this.updateTagRenderer();
48313
48326
  }
48314
48327
  hasCustomTagRenderer(e) {
48315
48328
  return !!this.tagRendererMap[e];
@@ -48452,8 +48465,8 @@ class FT extends wn {
48452
48465
  m.boundingBox || m.computeBoundingBox();
48453
48466
  const D = m.boundingBox.getSize(new y.Vector3());
48454
48467
  for (let x = 0; x < 6; x++) {
48455
- const B = b.material[x];
48456
- x === 0 || x === 1 ? B.uniforms.faceSize.value.set(D.z, D.y) : x === 2 || x === 3 ? B.uniforms.faceSize.value.set(D.x, D.z) : B.uniforms.faceSize.value.set(D.x, D.y);
48468
+ const R = b.material[x];
48469
+ x === 0 || x === 1 ? R.uniforms.faceSize.value.set(D.z, D.y) : x === 2 || x === 3 ? R.uniforms.faceSize.value.set(D.x, D.z) : R.uniforms.faceSize.value.set(D.x, D.y);
48457
48470
  }
48458
48471
  for (const x of b.material)
48459
48472
  x.uniforms.size.value.copy(D);
@@ -48463,13 +48476,13 @@ class FT extends wn {
48463
48476
  let k = 0;
48464
48477
  const M = X0.shared.add((D, x) => {
48465
48478
  k += x;
48466
- let B = k / w;
48467
- B > 1 && (B = 1);
48468
- let O = Math.abs((B - 0.5) * 2);
48479
+ let R = k / w;
48480
+ R > 1 && (R = 1);
48481
+ let O = Math.abs((R - 0.5) * 2);
48469
48482
  O = O * 2 - 0.5;
48470
- for (const R of b.material)
48471
- R.uniforms.progress.value = O;
48472
- B === 1 && (M(), b.visible = !1, this.playEaseInAnimation(o, () => {
48483
+ for (const V of b.material)
48484
+ V.uniforms.progress.value = O;
48485
+ R === 1 && (M(), b.visible = !1, this.playEaseInAnimation(o, () => {
48473
48486
  this.activeAnimations.delete(r.rawData.id), a();
48474
48487
  })), this.five.needsRender = !0;
48475
48488
  });