@realsee/dnalogel 3.81.3-alpha.2 → 3.81.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (550) hide show
  1. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
  2. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  3. package/dist/index.cjs.js +37 -37
  4. package/dist/index.js +562 -564
  5. package/dist/index.umd.js +37 -37
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  8. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  9. package/docs/classes/CSS3DRender.html +2 -2
  10. package/docs/classes/DigitalHuman.html +2 -2
  11. package/docs/classes/DigitalPerformanceV2.DigitalPerformanceV2PluginController.html +2 -2
  12. package/docs/classes/DigitalPlayground.html +2 -2
  13. package/docs/classes/DigitalStateMachine.html +2 -2
  14. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  15. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  16. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  17. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  18. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  19. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  20. package/docs/classes/ModelRoomLabelController.html +2 -2
  21. package/docs/classes/MoveController.html +2 -2
  22. package/docs/classes/Object3DHelperController.html +2 -2
  23. package/docs/classes/PaintBrush.html +2 -2
  24. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  25. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  26. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  27. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  28. package/docs/classes/PanoTagPluginController.html +2 -2
  29. package/docs/classes/Sculpt.html +2 -2
  30. package/docs/classes/Util.BetterTween.html +2 -2
  31. package/docs/classes/Util.FiveDomEvents.html +2 -2
  32. package/docs/classes/Util.FivePuppet.html +2 -2
  33. package/docs/classes/Util.Interval.html +2 -2
  34. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  35. package/docs/classes/Util.LightTag.html +2 -2
  36. package/docs/classes/Util.LineSegments.html +2 -2
  37. package/docs/classes/Util.Magnifier.html +2 -2
  38. package/docs/classes/Util.Object3D.html +2 -2
  39. package/docs/classes/Util.PointDomHelper.html +2 -2
  40. package/docs/classes/Util.PointHelper.html +2 -2
  41. package/docs/classes/Util.PointSelector.html +2 -2
  42. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  43. package/docs/classes/Util.Rectangle.html +2 -2
  44. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  45. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  47. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  49. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  50. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  51. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  52. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  53. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  54. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  55. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  56. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  57. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  58. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  59. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  60. package/docs/classes/WalkController.html +2 -2
  61. package/docs/enums/CameraMovementEffect.html +2 -2
  62. package/docs/enums/ContentType.html +2 -2
  63. package/docs/enums/DIRECTION.html +2 -2
  64. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  65. package/docs/enums/DimensionType.html +2 -2
  66. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  67. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  68. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  69. package/docs/enums/PointType.html +2 -2
  70. package/docs/enums/Rotation.html +2 -2
  71. package/docs/functions/AreaMakerPlugin.html +1 -1
  72. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  73. package/docs/functions/CameraMovementPlugin.html +2 -2
  74. package/docs/functions/CruisePlugin.html +1 -1
  75. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  76. package/docs/functions/DigitalPerformancePlugin.html +1 -1
  77. package/docs/functions/DigitalPerformanceV2.DigitalPerformanceV2Plugin.html +1 -1
  78. package/docs/functions/FloorplanGuidePlugin.html +1 -1
  79. package/docs/functions/GuideLinePlugin.html +1 -1
  80. package/docs/functions/ItemLabelPlugin.html +1 -1
  81. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  82. package/docs/functions/MeasurePlugin.html +1 -1
  83. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  84. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  85. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  86. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  87. package/docs/functions/ModelMakerPlugin.html +1 -1
  88. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  89. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  90. package/docs/functions/ModelViewPlugin.html +2 -2
  91. package/docs/functions/MovePlugin.html +1 -1
  92. package/docs/functions/Object3DHelperPlugin.html +1 -1
  93. package/docs/functions/PanoCompassPlugin.html +1 -1
  94. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  95. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  96. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  97. package/docs/functions/PanoMeasurePlugin.html +1 -1
  98. package/docs/functions/PanoRulerPlugin.html +2 -2
  99. package/docs/functions/PanoRulerProPlugin.html +2 -2
  100. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  101. package/docs/functions/PanoTagPlugin.html +1 -1
  102. package/docs/functions/PanoVideoPlugin.html +2 -2
  103. package/docs/functions/PipelinePlugin.html +1 -1
  104. package/docs/functions/SculptPlugin.html +2 -2
  105. package/docs/functions/SculptPluginForFive.html +2 -2
  106. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  107. package/docs/functions/Util.awaitNextFrame.html +1 -1
  108. package/docs/functions/Util.blink.html +2 -2
  109. package/docs/functions/Util.blinkWithPreset.html +2 -2
  110. package/docs/functions/Util.bounding.html +1 -1
  111. package/docs/functions/Util.boundingBox.html +1 -1
  112. package/docs/functions/Util.boundingSphere.html +1 -1
  113. package/docs/functions/Util.boxVertex.html +2 -2
  114. package/docs/functions/Util.boxVertexes.html +1 -1
  115. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  116. package/docs/functions/Util.cleanup.html +2 -2
  117. package/docs/functions/Util.convexHull.html +2 -2
  118. package/docs/functions/Util.equal.html +2 -2
  119. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  120. package/docs/functions/Util.generatePolygonGeometry.html +2 -2
  121. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  122. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  123. package/docs/functions/Util.getFrameTime.html +2 -2
  124. package/docs/functions/Util.getGeometryArea.html +1 -1
  125. package/docs/functions/Util.getGeometryInfo.html +1 -1
  126. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  127. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  128. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  129. package/docs/functions/Util.inside.html +1 -1
  130. package/docs/functions/Util.isModelLike.html +1 -1
  131. package/docs/functions/Util.isNil.html +2 -2
  132. package/docs/functions/Util.isPanoramaLike.html +1 -1
  133. package/docs/functions/Util.lookObject.html +2 -2
  134. package/docs/functions/Util.lookPoint.html +2 -2
  135. package/docs/functions/Util.nextFrame.html +1 -1
  136. package/docs/functions/Util.notNil.html +2 -2
  137. package/docs/functions/Util.reblink.html +2 -2
  138. package/docs/functions/Util.replaceStaticPrefix.html +2 -2
  139. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  140. package/docs/functions/Util.sculpt.createBox.html +1 -1
  141. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  142. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  143. package/docs/functions/Util.sculpt.createLine.html +2 -2
  144. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  145. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  146. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  147. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  148. package/docs/functions/Util.sculpt.transformUnit.html +2 -2
  149. package/docs/functions/Util.sculpt.transformUnitSquare.html +1 -1
  150. package/docs/functions/Util.tag.html +1 -1
  151. package/docs/functions/Util.triangleArea.html +2 -2
  152. package/docs/functions/Util.triangleCenter.html +2 -2
  153. package/docs/functions/Util.tweenProgress.html +1 -1
  154. package/docs/functions/Util.uuid.html +2 -2
  155. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  156. package/docs/functions/Util.worldBounding.html +1 -1
  157. package/docs/functions/Util.worldBoundingBox.html +1 -1
  158. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  159. package/docs/functions/createPolyline.html +2 -2
  160. package/docs/functions/pluginFlag.html +1 -1
  161. package/docs/functions/validatePolygon.html +1 -1
  162. package/docs/hierarchy.html +1 -1
  163. package/docs/index.html +2 -2
  164. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  165. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  166. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  167. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  168. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  169. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  170. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  171. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  172. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  173. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  174. package/docs/interfaces/BoxAnimationConfig.html +2 -2
  175. package/docs/interfaces/BoxPosition.html +2 -2
  176. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  177. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  178. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  179. package/docs/interfaces/ChapterLocation.html +2 -2
  180. package/docs/interfaces/ChapterTimeInfo.html +2 -2
  181. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  182. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  183. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  184. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  185. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  186. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  187. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  188. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  189. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  190. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  191. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  192. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  193. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  194. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  195. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  196. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  197. package/docs/interfaces/DigitalCameraKeyframe.html +2 -2
  198. package/docs/interfaces/DigitalCameraPlayer.html +2 -2
  199. package/docs/interfaces/DigitalCameraState.html +2 -2
  200. package/docs/interfaces/DigitalChapter.html +2 -2
  201. package/docs/interfaces/DigitalDataPlayer.html +2 -2
  202. package/docs/interfaces/DigitalDataState.html +2 -2
  203. package/docs/interfaces/DigitalEffectKeyframe.html +2 -2
  204. package/docs/interfaces/DigitalEffectState.html +2 -2
  205. package/docs/interfaces/DigitalItemKeyframe.html +2 -2
  206. package/docs/interfaces/DigitalItemState.html +2 -2
  207. package/docs/interfaces/DigitalModelKeyframe.html +2 -2
  208. package/docs/interfaces/DigitalModelPlayer.html +2 -2
  209. package/docs/interfaces/DigitalModelPlayerEffect.html +2 -2
  210. package/docs/interfaces/DigitalModelPlayerItem.html +2 -2
  211. package/docs/interfaces/DigitalModelState.html +2 -2
  212. package/docs/interfaces/DigitalPerformancePluginConfig.html +2 -2
  213. package/docs/interfaces/DigitalPerformanceV2.CameraState.html +2 -2
  214. package/docs/interfaces/DigitalPerformanceV2.DigitalCameraKeyframe.html +2 -2
  215. package/docs/interfaces/DigitalPerformanceV2.DigitalCameraPlayer.html +2 -2
  216. package/docs/interfaces/DigitalPerformanceV2.DigitalPerformanceV2PluginConfig.html +2 -2
  217. package/docs/interfaces/DigitalPerformanceV2.GroupChapterTimeInfo.html +2 -2
  218. package/docs/interfaces/DigitalPerformanceV2.GroupProgress.html +2 -2
  219. package/docs/interfaces/DigitalPerformanceV2.V2Progress.html +2 -2
  220. package/docs/interfaces/DigitalScript.html +2 -2
  221. package/docs/interfaces/DigitalSubTitleKeyframe.html +2 -2
  222. package/docs/interfaces/DigitalSubTitlePlayer.html +2 -2
  223. package/docs/interfaces/DigitalSubTitleState.html +2 -2
  224. package/docs/interfaces/ExtendedAnimationConfig.html +2 -2
  225. package/docs/interfaces/FloorplanBounding.html +2 -2
  226. package/docs/interfaces/FloorplanData.html +2 -2
  227. package/docs/interfaces/FloorplanEntrance.html +2 -2
  228. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  229. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  230. package/docs/interfaces/FloorplanFloorData.html +2 -2
  231. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  232. package/docs/interfaces/FloorplanObserver.html +2 -2
  233. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  234. package/docs/interfaces/FloorplanPosition.html +2 -2
  235. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  236. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  237. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  238. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  239. package/docs/interfaces/FloorplanServerData.html +2 -2
  240. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  241. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  242. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  243. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  244. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  245. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  246. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  247. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  248. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  249. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  250. package/docs/interfaces/GlobalProgress.html +2 -2
  251. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  252. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  253. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  254. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  255. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  256. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  257. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  258. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  259. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  260. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  261. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  262. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  263. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  264. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  265. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  266. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  267. package/docs/interfaces/HelperOffset.html +2 -2
  268. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  269. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  270. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  271. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  272. package/docs/interfaces/MinMax.html +2 -2
  273. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  274. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  275. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  276. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  277. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  278. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  279. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  280. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  281. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  282. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  283. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  284. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  285. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  286. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  287. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  288. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  289. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  290. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  291. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  292. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  293. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  294. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  295. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  296. package/docs/interfaces/Object3DHelperState.html +2 -2
  297. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  298. package/docs/interfaces/PaintBrushAction.html +2 -2
  299. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  300. package/docs/interfaces/PaintBrushState.html +2 -2
  301. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  302. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  303. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  304. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  305. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  306. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  307. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  308. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  309. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  310. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  311. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  312. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  313. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  314. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  315. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  316. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  317. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  318. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  319. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  320. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  321. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  322. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  323. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  324. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  325. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  326. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  327. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  328. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  329. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  330. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  331. package/docs/interfaces/PluginEventMap.html +2 -2
  332. package/docs/interfaces/Point.html +2 -2
  333. package/docs/interfaces/ProgressBarEvents.html +2 -2
  334. package/docs/interfaces/Room.html +2 -2
  335. package/docs/interfaces/RoomInfo.html +2 -2
  336. package/docs/interfaces/RoomLabel.html +2 -2
  337. package/docs/interfaces/RoomRules.html +1 -1
  338. package/docs/interfaces/Rooms.html +1 -1
  339. package/docs/interfaces/Scissor.html +2 -2
  340. package/docs/interfaces/SculptConfig.html +2 -2
  341. package/docs/interfaces/State.html +2 -2
  342. package/docs/interfaces/TagCacheInterface.html +2 -2
  343. package/docs/interfaces/TagConfig.html +14 -14
  344. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  345. package/docs/interfaces/TagIconAnimationConfig.html +2 -2
  346. package/docs/interfaces/TagIconUrl.html +2 -2
  347. package/docs/interfaces/TagObjectGroup.html +2 -2
  348. package/docs/interfaces/TagState.html +2 -2
  349. package/docs/interfaces/TagStyle.html +2 -2
  350. package/docs/interfaces/Tags.html +3 -3
  351. package/docs/interfaces/TemporaryState.html +2 -2
  352. package/docs/interfaces/TraceManager.html +2 -2
  353. package/docs/interfaces/TracePoint.html +2 -2
  354. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  355. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  356. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  357. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  358. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  359. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  360. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  361. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  362. package/docs/interfaces/Util.ObjectInitialState.html +2 -2
  363. package/docs/interfaces/Util.PointIntersection.html +2 -2
  364. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  365. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  366. package/docs/modules/AreaMakerPluginType.html +2 -2
  367. package/docs/modules/CruisePluginTypes.html +2 -2
  368. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  369. package/docs/modules/DigitalPerformanceV2.html +2 -2
  370. package/docs/modules/GuideLineItem.html +2 -2
  371. package/docs/modules/GuideLineModeItem.html +2 -2
  372. package/docs/modules/GuideLinePluginType.html +2 -2
  373. package/docs/modules/ModelMakerPluginType.html +2 -2
  374. package/docs/modules/PanoVideoPluginType.html +2 -2
  375. package/docs/modules/SculptData.html +2 -2
  376. package/docs/modules/SculptType.html +2 -2
  377. package/docs/modules/Util.html +2 -2
  378. package/docs/modules/Util.sculpt.html +2 -2
  379. package/docs/modules.html +2 -2
  380. package/docs/types/AddObject3DHelperConfig.html +2 -2
  381. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  382. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  383. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  384. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  385. package/docs/types/ArrayPosition.html +1 -1
  386. package/docs/types/AudioAppearance.html +1 -1
  387. package/docs/types/BoxTag.html +2 -2
  388. package/docs/types/CSS3DRenderExportType.html +1 -1
  389. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  390. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  391. package/docs/types/ClassFunctionParameters.html +1 -1
  392. package/docs/types/Color.html +1 -1
  393. package/docs/types/ContentTypeConfigKey.html +1 -1
  394. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  395. package/docs/types/ContentTypeMap.html +1 -1
  396. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  397. package/docs/types/Create3DElementReturnType.html +1 -1
  398. package/docs/types/CruisePluginExportType.html +1 -1
  399. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  400. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  401. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  402. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  403. package/docs/types/DeprecatedTagProperty.html +2 -2
  404. package/docs/types/DigitalPerformancePluginExportInterface.html +1 -1
  405. package/docs/types/DigitalPerformancePluginParamsInterface.html +1 -1
  406. package/docs/types/DigitalPerformanceV2.CameraCoordinateSpace.html +2 -2
  407. package/docs/types/DigitalPerformanceV2.CameraTransition.html +2 -2
  408. package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginExportInterface.html +1 -1
  409. package/docs/types/DigitalPerformanceV2.DigitalPerformanceV2PluginParamsInterface.html +1 -1
  410. package/docs/types/DigitalPerformanceV2.V2ProgressListener.html +1 -1
  411. package/docs/types/Direction-1.html +1 -1
  412. package/docs/types/Direction4.html +1 -1
  413. package/docs/types/ElementRenderer.html +2 -2
  414. package/docs/types/FloorplanGuidePluginParameterType.html +1 -1
  415. package/docs/types/FloorplanGuidePluginReturnType.html +1 -1
  416. package/docs/types/FloorplanRuleLabels.html +2 -2
  417. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  418. package/docs/types/GuideLinePluginExportType.html +1 -1
  419. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  420. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  421. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  422. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  423. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  424. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  425. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  426. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  427. package/docs/types/HelperEventMap.html +1 -1
  428. package/docs/types/InternalHelperEventMap.html +1 -1
  429. package/docs/types/KeyframeType.html +1 -1
  430. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  431. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  432. package/docs/types/MaskPosition.html +2 -2
  433. package/docs/types/MaskTag.html +2 -2
  434. package/docs/types/MeasureEndReason.html +1 -1
  435. package/docs/types/MeasurePluginConfig.html +2 -2
  436. package/docs/types/MeasurePluginEventMap.html +1 -1
  437. package/docs/types/MediaData.html +2 -2
  438. package/docs/types/MediaStore.html +1 -1
  439. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  440. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  441. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  442. package/docs/types/ModelId.html +1 -1
  443. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  444. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  445. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  446. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  447. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  448. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  449. package/docs/types/MoveArgs.html +2 -2
  450. package/docs/types/MoveOpts.html +2 -2
  451. package/docs/types/Object3DHelperEventMap.html +1 -1
  452. package/docs/types/ObjectFit.html +1 -1
  453. package/docs/types/PaintBrushEventMap.html +1 -1
  454. package/docs/types/PanoCompassPluginData.html +1 -1
  455. package/docs/types/PanoCompassPluginExportType.html +1 -1
  456. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  457. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  458. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  459. package/docs/types/PanoIndex.html +1 -1
  460. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  461. package/docs/types/PanoMeasureReturnType.html +1 -1
  462. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  463. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  464. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  465. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  466. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  467. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  468. package/docs/types/PipelinePluginParameterType.html +1 -1
  469. package/docs/types/PipelinePluginReturnType.html +1 -1
  470. package/docs/types/PlaneTag.html +2 -2
  471. package/docs/types/Point2DTag.html +2 -2
  472. package/docs/types/Point3DTag.html +2 -2
  473. package/docs/types/PointTagInstance.html +1 -1
  474. package/docs/types/PolygonPosition.html +2 -2
  475. package/docs/types/PolygonTag.html +2 -2
  476. package/docs/types/Position.html +1 -1
  477. package/docs/types/PositionFrom.html +1 -1
  478. package/docs/types/ProgressListener.html +1 -1
  479. package/docs/types/RotateArgs.html +2 -2
  480. package/docs/types/RotateOpts.html +2 -2
  481. package/docs/types/RuleLabelsKey.html +1 -1
  482. package/docs/types/RuleLabelsValue.html +1 -1
  483. package/docs/types/ScaleCallback.html +1 -1
  484. package/docs/types/ScalePosition.html +2 -2
  485. package/docs/types/SculptData.BoxData.html +1 -1
  486. package/docs/types/SculptData.CircleData.html +1 -1
  487. package/docs/types/SculptData.CylinderData.html +1 -1
  488. package/docs/types/SculptData.PointData.html +1 -1
  489. package/docs/types/SculptData.PolygonData.html +1 -1
  490. package/docs/types/SculptData.PolylineData.html +1 -1
  491. package/docs/types/SculptData.PrismData.html +1 -1
  492. package/docs/types/SculptData.RectangleData.html +1 -1
  493. package/docs/types/SculptType.Theme.html +2 -2
  494. package/docs/types/StateType.html +1 -1
  495. package/docs/types/StickType.html +1 -1
  496. package/docs/types/Tag.html +2 -2
  497. package/docs/types/Tag2D.html +2 -2
  498. package/docs/types/Tag3D.html +2 -2
  499. package/docs/types/TagClickParams.html +1 -1
  500. package/docs/types/TagConfigByKey.html +1 -1
  501. package/docs/types/TagContentType.html +1 -1
  502. package/docs/types/TagContentTypeMapping.html +1 -1
  503. package/docs/types/TagDimensionType.html +1 -1
  504. package/docs/types/TagElement.html +2 -2
  505. package/docs/types/TagEvents.html +1 -1
  506. package/docs/types/TagGLTFObject.html +1 -1
  507. package/docs/types/TagHooks.html +1 -1
  508. package/docs/types/TagId.html +1 -1
  509. package/docs/types/TagInstance.html +1 -1
  510. package/docs/types/TagPlacement.html +2 -2
  511. package/docs/types/TagPointType.html +2 -2
  512. package/docs/types/TagRendererMap.html +1 -1
  513. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  514. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  515. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  516. package/docs/types/Util.AdherePoint.html +2 -2
  517. package/docs/types/Util.PointSelectorConfig.html +1 -1
  518. package/docs/types/Util.SupportedTarget.html +2 -2
  519. package/docs/types/Util.Target.html +2 -2
  520. package/docs/types/Util.ThreeObject.html +2 -2
  521. package/docs/types/WorkCode.html +1 -1
  522. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  523. package/docs/variables/PLUGIN.html +1 -1
  524. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  525. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  526. package/docs/variables/Util.ANIME_PRESETS.html +2 -2
  527. package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +2 -2
  528. package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +2 -2
  529. package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +2 -2
  530. package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +2 -2
  531. package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +2 -2
  532. package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +2 -2
  533. package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +2 -2
  534. package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +2 -2
  535. package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +2 -2
  536. package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +2 -2
  537. package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +2 -2
  538. package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +2 -2
  539. package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +2 -2
  540. package/docs/variables/defaultGlobalConfig.html +1 -1
  541. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  542. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  543. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  544. package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +166 -168
  545. package/libs/PanoTagPlugin/controller/Tag/MaskTag.js +1 -1
  546. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -6
  547. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +1 -1
  548. package/libs/base/BasePlugin.js +1 -1
  549. package/libs/shared-utils/logger.js +1 -1
  550. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ var mb = Object.defineProperty, gb = Object.defineProperties;
2
2
  var vb = Object.getOwnPropertyDescriptors;
3
3
  var Ra = Object.getOwnPropertySymbols;
4
4
  var Td = Object.prototype.hasOwnProperty, Dd = Object.prototype.propertyIsEnumerable;
5
- var pi = Math.pow, vc = (n, t, e) => t in n ? mb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, _ = (n, t) => {
5
+ var pi = Math.pow, vc = (n, t, e) => t in n ? mb(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, R = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  Td.call(t, e) && vc(n, e, t[e]);
8
8
  if (Ra)
@@ -43,7 +43,7 @@ import { LineGeometry as eA, LineMaterial as tA, THREE_Line2 as iA, Line as ev }
43
43
  import { GLTFLoader as tv } from "@realsee/five/gltf-loader";
44
44
  function nA() {
45
45
  console.debug(
46
- "%c %c@realsee/dnalogel %cv3.81.3-alpha.2",
46
+ "%c %c@realsee/dnalogel %cv3.81.4-alpha.1",
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",
@@ -1723,7 +1723,7 @@ var _i = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
1723
1723
  }
1724
1724
  return !1;
1725
1725
  }
1726
- function R(N, U) {
1726
+ function _(N, U) {
1727
1727
  return N.indexOf(U) > -1;
1728
1728
  }
1729
1729
  function A(N) {
@@ -2096,7 +2096,7 @@ var _i = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2096
2096
  U.preventDefault();
2097
2097
  return;
2098
2098
  }
2099
- var re = this.actions, Pe = R(re, Ni) && !qn[Ni], je = R(re, Pn) && !qn[Pn], Qe = R(re, wn) && !qn[wn];
2099
+ var re = this.actions, Pe = _(re, Ni) && !qn[Ni], je = _(re, Pn) && !qn[Pn], Qe = _(re, wn) && !qn[wn];
2100
2100
  if (Pe) {
2101
2101
  var Ct = N.pointers.length === 1, xt = N.distance < 2, Rt = N.deltaTime < 250;
2102
2102
  if (Ct && xt && Rt)
@@ -2114,10 +2114,10 @@ var _i = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
2114
2114
  }
2115
2115
  };
2116
2116
  function vr(N) {
2117
- if (R(N, Ni))
2117
+ if (_(N, Ni))
2118
2118
  return Ni;
2119
- var U = R(N, wn), J = R(N, Pn);
2120
- return U && J ? Ni : U || J ? U ? wn : Pn : R(N, Ss) ? Ss : jt;
2119
+ var U = _(N, wn), J = _(N, Pn);
2120
+ return U && J ? Ni : U || J ? U ? wn : Pn : _(N, Ss) ? Ss : jt;
2121
2121
  }
2122
2122
  function yr() {
2123
2123
  if (!ho)
@@ -3122,8 +3122,8 @@ let DA = function(n) {
3122
3122
  g.onBeforeRender(t, v, y);
3123
3123
  let z;
3124
3124
  g.isCSS3DSprite ? (r.copy(y.matrixWorldInverse), r.transpose(), r.copyPosition(g.matrixWorld), r.scale(g.scale), r.elements[3] = 0, r.elements[7] = 0, r.elements[11] = 0, r.elements[15] = 1, z = d(r)) : z = d(g.matrixWorld);
3125
- let R = a.objects.get(g);
3126
- if (R === void 0 || R.style !== z) {
3125
+ let _ = a.objects.get(g);
3126
+ if (_ === void 0 || _.style !== z) {
3127
3127
  j.style.WebkitTransform = z, j.style.transform = z;
3128
3128
  let A = { style: z };
3129
3129
  a.objects.set(g, A);
@@ -3975,7 +3975,7 @@ class Di extends Pi {
3975
3975
  f(this, "onPanoArrived", () => {
3976
3976
  setTimeout(() => this.updateDomItems({ force: !0 }), 100);
3977
3977
  });
3978
- this.paramsStyle = _({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new sl();
3978
+ this.paramsStyle = R({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new sl();
3979
3979
  const i = {
3980
3980
  color: new b.Color((r = e == null ? void 0 : e.lineColor) != null ? r : HA),
3981
3981
  linewidth: (a = e == null ? void 0 : e.lineWidth) != null ? a : NA,
@@ -3985,7 +3985,7 @@ class Di extends Pi {
3985
3985
  opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
3986
3986
  depthWrite: !1,
3987
3987
  transparent: !0
3988
- }, s = new QA(ue(_({}, i), { dashed: !1, depthTest: !0 })), o = new XA(ue(_({}, i), { dashed: !0, depthTest: !1 }));
3988
+ }, s = new QA(ue(R({}, i), { dashed: !1, depthTest: !0 })), o = new XA(ue(R({}, i), { dashed: !0, depthTest: !1 }));
3989
3989
  this.line1 = new Wd(this.geometry, s), this.line2 = new Wd(this.geometry, o), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.initFiveListeners(), e && this.setStyle(e), e != null && e.points && this.setPoints(e.points), this.addEventListener("removed", () => {
3990
3990
  this.removeFiveListeners(), ei.cacheObject.delete(this), ei.checkDom(this);
3991
3991
  }), this.addEventListener("added", () => {
@@ -4079,7 +4079,7 @@ class Di extends Pi {
4079
4079
  }
4080
4080
  setStyle(e) {
4081
4081
  var o, r, a, l;
4082
- if (this.paramsStyle = _(_({}, this.paramsStyle), e), Ge(e.lineColor)) {
4082
+ if (this.paramsStyle = R(R({}, this.paramsStyle), e), Ge(e.lineColor)) {
4083
4083
  const c = new b.Color(e.lineColor);
4084
4084
  this.line1.material.three_color = c, this.line2.material.three_color = c;
4085
4085
  }
@@ -4147,8 +4147,8 @@ class Di extends Pi {
4147
4147
  return document.body.removeChild(M), E;
4148
4148
  };
4149
4149
  let z = 0;
4150
- const R = j(u);
4151
- y > 0 && R > y && (z = -20), this.doms[a].container.innerHTML = ru(u, {
4150
+ const _ = j(u);
4151
+ y > 0 && _ > y && (z = -20), this.doms[a].container.innerHTML = ru(u, {
4152
4152
  style: `${S} ${this.paramsStyle.cssStyle || ""}`,
4153
4153
  offsetY: z
4154
4154
  });
@@ -4237,7 +4237,7 @@ function $A() {
4237
4237
  lineColor: 3407837,
4238
4238
  lineOpacity: 0.7,
4239
4239
  occlusionVisibility: !0
4240
- }, i = new Di(ue(_({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new Di(ue(_({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
4240
+ }, i = new Di(ue(R({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new Di(ue(R({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
4241
4241
  return t.add(i, s), t;
4242
4242
  }
4243
4243
  function ew(n) {
@@ -4339,7 +4339,7 @@ class dv {
4339
4339
  f(this, "abortUpdateMagnifier", () => {
4340
4340
  });
4341
4341
  var s, o, r, a, l;
4342
- this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new nu(t, ue(_({ dragEnabled: !0 }, e == null ? void 0 : e.magnifierParams), { skipPanorama: (s = e == null ? void 0 : e.skipPanorama) != null ? s : !1 }));
4342
+ this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new nu(t, ue(R({ dragEnabled: !0 }, e == null ? void 0 : e.magnifierParams), { skipPanorama: (s = e == null ? void 0 : e.skipPanorama) != null ? s : !1 }));
4343
4343
  let i = null;
4344
4344
  (e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? i = new Av(t) : (e == null ? void 0 : e.pointHelper) === "highlight" ? i = new sw(t) : (e == null ? void 0 : e.pointHelper) === null ? i = null : i = e.pointHelper, this.pointHelper = i, this.group.name = "five-point-selector", this.five.scene.add(this.group), (l = this.magnifier) == null || l.appendTo((a = (r = e.container) != null ? r : (o = t.getElement()) == null ? void 0 : o.parentElement) != null ? a : document.body);
4345
4345
  }
@@ -4381,7 +4381,7 @@ function pv(n, t = 3) {
4381
4381
  function rw(n, t) {
4382
4382
  const s = Si(n).intersectRaycaster(t)[0];
4383
4383
  if (s)
4384
- return ue(_({}, s), { raycaster: t, isVirtual: !1 });
4384
+ return ue(R({}, s), { raycaster: t, isVirtual: !1 });
4385
4385
  }
4386
4386
  const Ud = `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`, aw = new b.Vector3();
4387
4387
  function _n(n) {
@@ -4559,7 +4559,7 @@ class Wl extends St {
4559
4559
  this.config.hitFilter && (i.hitFilter = this.config.hitFilter);
4560
4560
  let s = ya(this.five, i);
4561
4561
  if (s) {
4562
- if (this.plane && this.planeMode === "vertical" && (s = ue(_({}, s), {
4562
+ if (this.plane && this.planeMode === "vertical" && (s = ue(R({}, s), {
4563
4563
  point: this.plane.projectPoint(s.point, new b.Vector3()),
4564
4564
  face: new b.Face3(0, 0, 0, this.plane.normal.clone()),
4565
4565
  originalPoint: s.point.clone()
@@ -4609,7 +4609,7 @@ class Wl extends St {
4609
4609
  return;
4610
4610
  }
4611
4611
  this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
4612
- const i = _({}, e);
4612
+ const i = R({}, e);
4613
4613
  if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
4614
4614
  const d = {
4615
4615
  x: this.mouseNdcPosition.x,
@@ -4669,8 +4669,8 @@ class Wl extends St {
4669
4669
  else {
4670
4670
  const S = new b.Raycaster();
4671
4671
  S.setFromCamera(g.clone(), this.five.camera);
4672
- const j = this.five.model.intersectRaycaster(S)[0], z = 0.1, R = this.five.camera.position.distanceTo(g);
4673
- j && j.distance < R + z && (L = !0);
4672
+ const j = this.five.model.intersectRaycaster(S)[0], z = 0.1, _ = this.five.camera.position.distanceTo(g);
4673
+ j && j.distance < _ + z && (L = !0);
4674
4674
  }
4675
4675
  if (L) {
4676
4676
  i.point = g.clone(), !this.plane && m instanceof b.Face3 && (i.face = m), i.isAdsorbed = !0;
@@ -4703,15 +4703,15 @@ class Wl extends St {
4703
4703
  f(this, "emitIntersectionUpdate", (e) => {
4704
4704
  this.emit("intersectionUpdate", e);
4705
4705
  });
4706
- this.five = e, this.config = _(_({}, this.config), i), this.actionIfNoIntersection = (a = (r = i == null ? void 0 : i.actionIfNoIntersection) != null ? r : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
4706
+ this.five = e, this.config = R(R({}, this.config), i), this.actionIfNoIntersection = (a = (r = i == null ? void 0 : i.actionIfNoIntersection) != null ? r : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
4707
4707
  const s = (l = i == null ? void 0 : i.mode) != null ? l : "auto";
4708
4708
  s === "auto" ? this.mode = fv ? "fixed" : "cursor" : this.mode = s;
4709
4709
  const o = {
4710
4710
  autoFixPCPosition: this.mode === "cursor",
4711
4711
  initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
4712
4712
  };
4713
- this.pointSelectorHelper = new dv(this.five, ue(_({}, i == null ? void 0 : i.helper), {
4714
- magnifierParams: _(_({}, o), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams),
4713
+ this.pointSelectorHelper = new dv(this.five, ue(R({}, i == null ? void 0 : i.helper), {
4714
+ magnifierParams: R(R({}, o), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams),
4715
4715
  skipPanorama: (h = i == null ? void 0 : i.skipPanorama) != null ? h : !1
4716
4716
  })), this.pointSelectorHelper.hide();
4717
4717
  }
@@ -4781,7 +4781,7 @@ class gv extends b.Mesh {
4781
4781
  const lu = (n) => n ? n.visible === !1 ? !1 : lu(n.parent) : !0, vv = 1, Xd = `CSS3DObjectPlus@${vv}`, lw = 216e-5, cw = 3e-3;
4782
4782
  let yv = class extends Vn {
4783
4783
  constructor(e) {
4784
- var L, S, j, z, R;
4784
+ var L, S, j, z, _;
4785
4785
  if (wi(e.cornerPoints) && wi(e.width))
4786
4786
  throw new Error("cornerPoints and width cannot be both empty");
4787
4787
  const i = (L = e.container) != null ? L : document.createElement("div"), s = (S = e.cornerPoints) != null ? S : (() => {
@@ -4792,7 +4792,7 @@ let yv = class extends Vn {
4792
4792
  new fe(A, -A, 0),
4793
4793
  new fe(A, A, 0)
4794
4794
  ];
4795
- })(), o = (j = e.ratio) != null ? j : cw, r = (z = e.dpr) != null ? z : 1, a = (R = e.pointerEvents) != null ? R : "auto", l = Math.max(lw, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = No(c / o * r), d = No(h / o * r), p = Et(...s);
4795
+ })(), o = (j = e.ratio) != null ? j : cw, r = (z = e.dpr) != null ? z : 1, a = (_ = e.pointerEvents) != null ? _ : "auto", l = Math.max(lw, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = No(c / o * r), d = No(h / o * r), p = Et(...s);
4796
4796
  let m;
4797
4797
  if (l === o)
4798
4798
  i.style.width = `${u}px`, i.style.height = `${d}px`, m = i;
@@ -5867,8 +5867,8 @@ function lt(n) {
5867
5867
  }
5868
5868
  function m(w) {
5869
5869
  for (var I = 0, C = l.animations, L = C.length; I < L; ) {
5870
- var S = C[I], j = S.animatable, z = S.tweens, R = z.length - 1, A = z[R];
5871
- R && (A = Ql(z, function(Ae) {
5870
+ var S = C[I], j = S.animatable, z = S.tweens, _ = z.length - 1, A = z[_];
5871
+ _ && (A = Ql(z, function(Ae) {
5872
5872
  return w < Ae.end;
5873
5873
  })[0] || A);
5874
5874
  for (var M = ln(w - A.start - A.delay, 0, A.duration) / A.duration, E = isNaN(M) ? 1 : A.easing(M), k = A.to.strings, x = A.round, T = [], O = A.to.numbers.length, B = void 0, q = 0; q < O; q++) {
@@ -5952,8 +5952,8 @@ function Xw(n, t) {
5952
5952
  if (!s)
5953
5953
  g.push(Math.abs(r - C));
5954
5954
  else {
5955
- var L = l ? (s[0] - 1) / 2 : r % s[0], S = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j = C % s[0], z = Math.floor(C / s[0]), R = L - j, A = S - z, M = Math.sqrt(R * R + A * A);
5956
- o === "x" && (M = -R), o === "y" && (M = -A), g.push(M);
5955
+ var L = l ? (s[0] - 1) / 2 : r % s[0], S = l ? (s[1] - 1) / 2 : Math.floor(r / s[0]), j = C % s[0], z = Math.floor(C / s[0]), _ = L - j, A = S - z, M = Math.sqrt(_ * _ + A * A);
5956
+ o === "x" && (M = -_), o === "y" && (M = -A), g.push(M);
5957
5957
  }
5958
5958
  v = Math.max.apply(Math, g);
5959
5959
  }
@@ -6256,7 +6256,7 @@ function Zl(n, t) {
6256
6256
  if (o.length === 0)
6257
6257
  return $r("No valid targets found"), yl();
6258
6258
  Bn.storeState(o);
6259
- const r = ue(_(_({}, Au), t), {
6259
+ const r = ue(R(R({}, Au), t), {
6260
6260
  targets: o,
6261
6261
  update: $w(o, t || {})
6262
6262
  }), a = lt(r);
@@ -6291,7 +6291,7 @@ function Xv(n, t) {
6291
6291
  if (o.length === 0)
6292
6292
  return $r("No valid targets found"), yl();
6293
6293
  Bn.storeState(o);
6294
- const r = ue(_(_({}, Au), t), {
6294
+ const r = ue(R(R({}, Au), t), {
6295
6295
  targets: o,
6296
6296
  update: e2(o, t || {})
6297
6297
  }), a = lt(r);
@@ -6320,7 +6320,7 @@ function Xv(n, t) {
6320
6320
  }
6321
6321
  function t2(n, t, e) {
6322
6322
  const i = Wv[t];
6323
- return Zl(n, _(_({}, i), e));
6323
+ return Zl(n, R(R({}, i), e));
6324
6324
  }
6325
6325
  function i2() {
6326
6326
  Bn.clear();
@@ -6330,7 +6330,7 @@ function n2(n, t) {
6330
6330
  a.setFromCamera({ x: o, y: r }, n.camera);
6331
6331
  const c = e.intersectRaycaster(a)[0];
6332
6332
  if (c)
6333
- return ue(_({}, c), { raycaster: a, isVirtual: !1 });
6333
+ return ue(R({}, c), { raycaster: a, isVirtual: !1 });
6334
6334
  }
6335
6335
  function s2(n, t) {
6336
6336
  const e = n.getElement();
@@ -6545,7 +6545,7 @@ class ea {
6545
6545
  s && (e ? s.add(i) : s.remove(i));
6546
6546
  });
6547
6547
  f(this, "createObject", (t, e) => {
6548
- const i = new yv(ue(_({ cornerPoints: t }, e), { style: e.wrapperStyle }));
6548
+ const i = new yv(ue(R({ cornerPoints: t }, e), { style: e.wrapperStyle }));
6549
6549
  return i.element.classList.add(`${fh}__container`), i.element.id = `${fh}__container--${i.uuid}`, i;
6550
6550
  });
6551
6551
  t && this.setScene(t);
@@ -6574,7 +6574,7 @@ class ea {
6574
6574
  setState(t, e = { userAction: !0 }) {
6575
6575
  if (this.state.disposed)
6576
6576
  return Ao();
6577
- const i = _({}, this.state);
6577
+ const i = R({}, this.state);
6578
6578
  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 });
6579
6579
  }
6580
6580
  dispose() {
@@ -6749,7 +6749,7 @@ let f2 = class extends ea {
6749
6749
  return Object.assign(h, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
6750
6750
  })(), { autoRender: o } = s;
6751
6751
  s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
6752
- const r = this.create3DElement(this.five.camera, e, ue(_({}, s), { autoRender: !1 }));
6752
+ const r = this.create3DElement(this.five.camera, e, ue(R({}, s), { autoRender: !1 }));
6753
6753
  if (!r)
6754
6754
  return;
6755
6755
  const a = r.dispose;
@@ -6763,7 +6763,7 @@ let f2 = class extends ea {
6763
6763
  }, c = () => {
6764
6764
  Ti(this.five).then(() => l());
6765
6765
  };
6766
- return o && c(), ue(_({}, r), { render: o ? void 0 : c });
6766
+ return o && c(), ue(R({}, r), { render: o ? void 0 : c });
6767
6767
  });
6768
6768
  this.five = e;
6769
6769
  }
@@ -7325,8 +7325,8 @@ function N2(n, t, e) {
7325
7325
  const j = m(d), z = (M) => {
7326
7326
  const E = M.distanceTo(j), k = new b.Raycaster(M, j.clone().sub(M).normalize()), x = s.model.intersectRaycaster(k)[0], T = x == null ? void 0 : x.distance;
7327
7327
  Ge(T) ? T > E && (S += 1) : S += 1;
7328
- }, R = i.clampPoint(j, new b.Vector3());
7329
- z(R);
7328
+ }, _ = i.clampPoint(j, new b.Vector3());
7329
+ z(_);
7330
7330
  const A = new b.Vector3(r.x, j.y, r.z);
7331
7331
  if (z(A), Ge(p[S]) && d > p[S] || (p[S] = d), S === 2)
7332
7332
  break;
@@ -7344,13 +7344,13 @@ function N2(n, t, e) {
7344
7344
  }
7345
7345
  if (n.state.mode === "Mapview")
7346
7346
  return n.updateCamera(
7347
- _({
7347
+ R({
7348
7348
  offset: r,
7349
7349
  distance: y
7350
7350
  }, w),
7351
7351
  800
7352
7352
  );
7353
- n.setState(_({
7353
+ n.setState(R({
7354
7354
  mode: "Mapview",
7355
7355
  offset: r,
7356
7356
  distance: y
@@ -7381,13 +7381,13 @@ function t1(n, t, e) {
7381
7381
  const p = d((v = u[1]) != null ? v : 0), m = Hs(t.clone().sub(p).normalize());
7382
7382
  if (n.state.mode === "Mapview")
7383
7383
  return n.updateCamera(
7384
- _({
7384
+ R({
7385
7385
  offset: t,
7386
7386
  distance: i
7387
7387
  }, m),
7388
7388
  800
7389
7389
  );
7390
- n.setState(_({
7390
+ n.setState(R({
7391
7391
  mode: "Mapview",
7392
7392
  offset: t,
7393
7393
  distance: i
@@ -7506,7 +7506,7 @@ class Uo {
7506
7506
  if (!r)
7507
7507
  return !1;
7508
7508
  const S = r.slice(1);
7509
- return S[0] ? this.notify(ue(_({}, t), { object: S[0].object, intersects: S })) : !1;
7509
+ return S[0] ? this.notify(ue(R({}, t), { object: S[0].object, intersects: S })) : !1;
7510
7510
  };
7511
7511
  let d = i;
7512
7512
  for (h.push(d); d.parent; )
@@ -7524,7 +7524,7 @@ class Uo {
7524
7524
  continue;
7525
7525
  const z = j[`${e}Handler`];
7526
7526
  if (z)
7527
- for (const [R, A] of z) {
7527
+ for (const [_, A] of z) {
7528
7528
  if (A != null && A.noEmitWhenNotInScene && p.type !== "Scene")
7529
7529
  continue;
7530
7530
  if (A.skipPano && a) {
@@ -7553,7 +7553,7 @@ class Uo {
7553
7553
  continue;
7554
7554
  S._hovered = !1;
7555
7555
  }
7556
- const M = R({
7556
+ const M = _({
7557
7557
  type: e,
7558
7558
  target: S,
7559
7559
  origDomEvent: s,
@@ -7606,7 +7606,7 @@ class Uo {
7606
7606
  * @return {void}
7607
7607
  */
7608
7608
  addEventListener(t, e, i, s) {
7609
- 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, _({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
7609
+ 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, R({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
7610
7610
  }
7611
7611
  removeEventListener(t, e, i, ...s) {
7612
7612
  var r, a;
@@ -7877,7 +7877,7 @@ const BL = (n, t) => {
7877
7877
  var M, E;
7878
7878
  const e = new St();
7879
7879
  let i = (E = (M = t == null ? void 0 : t.initialState) == null ? void 0 : M.enabled) != null ? E : !0, s = !1, o = !0, r = null;
7880
- const l = _(_({}, {
7880
+ const l = R(R({}, {
7881
7881
  lookAtCurrentCamera: !1,
7882
7882
  lockedPanoIndex: null,
7883
7883
  lockedLatitude: null,
@@ -7962,12 +7962,12 @@ const BL = (n, t) => {
7962
7962
  !i || o !== !0 || !r || !r.domElement.parentNode || r.domElement.parentNode.offsetWidth === 0 || (r.render(c, h), o = !1);
7963
7963
  }, z = () => {
7964
7964
  r && r.dispose(), r = null;
7965
- }, R = (k) => {
7965
+ }, _ = (k) => {
7966
7966
  Object.assign(l, k), S();
7967
7967
  }, A = () => ({
7968
7968
  enabled: i
7969
7969
  });
7970
- return n.on("loaded", y), n.on("willLoad", v), n.on("cameraDirectionUpdate", S), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", S), { appendTo: C, refresh: L, changeConfigs: R, enable: w, disable: I, getCurrentState: A, hooks: e };
7970
+ return n.on("loaded", y), n.on("willLoad", v), n.on("cameraDirectionUpdate", S), n.on("dispose", z), n.on("renderFrame", j), n.on("cameraPositionUpdate", S), { appendTo: C, refresh: L, changeConfigs: _, enable: w, disable: I, getCurrentState: A, hooks: e };
7971
7971
  };
7972
7972
  class n1 extends ev {
7973
7973
  constructor(...t) {
@@ -8601,16 +8601,16 @@ function hi(n, t, e, i, s, o, r, a, l, c, h, u) {
8601
8601
  const v = [], y = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), I = [];
8602
8602
  for (m = p; m--; ) {
8603
8603
  const j = u(s, o, m), z = e(j);
8604
- let R = r.get(z);
8605
- R ? i && I.push(() => R.p(j, t)) : (R = c(z, j), R.c()), y.set(z, v[m] = R), z in g && w.set(z, Math.abs(m - g[z]));
8604
+ let _ = r.get(z);
8605
+ _ ? i && I.push(() => _.p(j, t)) : (_ = c(z, j), _.c()), y.set(z, v[m] = _), z in g && w.set(z, Math.abs(m - g[z]));
8606
8606
  }
8607
8607
  const C = /* @__PURE__ */ new Set(), L = /* @__PURE__ */ new Set();
8608
8608
  function S(j) {
8609
8609
  H(j, 1), j.m(a, h), r.set(j.key, j), h = j.first, p--;
8610
8610
  }
8611
8611
  for (; d && p; ) {
8612
- const j = v[p - 1], z = n[d - 1], R = j.key, A = z.key;
8613
- j === z ? (h = j.first, d--, p--) : y.has(A) ? !r.has(R) || C.has(R) ? S(j) : L.has(A) ? d-- : w.get(R) > w.get(A) ? (L.add(R), S(j)) : (C.add(A), d--) : (l(z, r), d--);
8612
+ const j = v[p - 1], z = n[d - 1], _ = j.key, A = z.key;
8613
+ j === z ? (h = j.first, d--, p--) : y.has(A) ? !r.has(_) || C.has(_) ? S(j) : L.has(A) ? d-- : w.get(_) > w.get(A) ? (L.add(_), S(j)) : (C.add(A), d--) : (l(z, r), d--);
8614
8614
  }
8615
8615
  for (; d--; ) {
8616
8616
  const j = n[d];
@@ -9396,8 +9396,8 @@ function N3(n, t, e) {
9396
9396
  return !1;
9397
9397
  const L = new or(), S = s.camera.position.clone(), j = new fe(I.position.x, I.position.y, I.position.z), z = j.distanceTo(S);
9398
9398
  L.set(S.clone(), j.clone().sub(S).normalize());
9399
- const [R] = s.model.intersectRaycaster(L);
9400
- return !(R && R.distance + 1 < z);
9399
+ const [_] = s.model.intersectRaycaster(L);
9400
+ return !(_ && _.distance + 1 < z);
9401
9401
  }
9402
9402
  function d(I, C) {
9403
9403
  const S = new fe(I.position.x, I.position.y, I.position.z).clone().project(s.camera), j = Math.ceil((S.x + 1) / 2 * C.x), z = Math.ceil((-S.y + 1) / 2 * C.y);
@@ -9406,15 +9406,15 @@ function N3(n, t, e) {
9406
9406
  function p(I) {
9407
9407
  const { rendererSize: C } = I, L = /* @__PURE__ */ new Map();
9408
9408
  function S(z) {
9409
- const R = L.get(z.id);
9410
- if (R)
9411
- return R;
9409
+ const _ = L.get(z.id);
9410
+ if (_)
9411
+ return _;
9412
9412
  const { x: A, y: M, z: E } = z.position, k = new fe(A, M, E).clone().distanceTo(s.camera.position);
9413
9413
  return L.set(z.id, k), k;
9414
9414
  }
9415
9415
  return o.map((z) => {
9416
- const R = u(z), A = R ? d(z, C) : z.transform, M = S(z), k = o.filter((x) => x.visible && S(x) < M).length * 10;
9417
- return ue(_({}, z), { visible: R, transform: A, zIndex: k });
9416
+ const _ = u(z), A = _ ? d(z, C) : z.transform, M = S(z), k = o.filter((x) => x.visible && S(x) < M).length * 10;
9417
+ return ue(R({}, z), { visible: _, transform: A, zIndex: k });
9418
9418
  });
9419
9419
  }
9420
9420
  function m() {
@@ -10366,7 +10366,7 @@ function vP(n, t) {
10366
10366
  return s;
10367
10367
  }
10368
10368
  function yP(n, t, e) {
10369
- let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, { pxmm: I } = t, { roomAreaEnable: C } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: S } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom: R } = t, { getRoomAreaText: A } = t, { getRoomDimensionText: M } = t, { getLabelElement: E } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { fontSize: x } = t;
10369
+ let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, { pxmm: I } = t, { roomAreaEnable: C } = t, { roomNameEnable: L } = t, { roomNameOtherTypeEnable: S } = t, { roomDimensionEnable: j } = t, { room: z } = t, { hoveredRoom: _ } = t, { getRoomAreaText: A } = t, { getRoomDimensionText: M } = t, { getLabelElement: E } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { fontSize: x } = t;
10370
10370
  function T(ce, be) {
10371
10371
  if (be.width === 0 || be.height === 0)
10372
10372
  return () => !1;
@@ -10383,7 +10383,7 @@ function yP(n, t, e) {
10383
10383
  }
10384
10384
  const O = z.roomLabel, B = O.positionInImage.x * 100 + "%", q = O.positionInImage.y * 100 + "%";
10385
10385
  let ie = 0, Z = 0, se = 0, $ = 0, oe = !1;
10386
- R.subscribe(function(be) {
10386
+ _.subscribe(function(be) {
10387
10387
  e(27, oe = !!be && be.id === z.id);
10388
10388
  });
10389
10389
  const De = (ce) => {
@@ -10396,7 +10396,7 @@ function yP(n, t, e) {
10396
10396
  e(7, Z = ce.detail);
10397
10397
  };
10398
10398
  return n.$$set = (ce) => {
10399
- "pxmm" in ce && e(21, I = ce.pxmm), "roomAreaEnable" in ce && e(0, C = ce.roomAreaEnable), "roomNameEnable" in ce && e(1, L = ce.roomNameEnable), "roomNameOtherTypeEnable" in ce && e(2, S = ce.roomNameOtherTypeEnable), "roomDimensionEnable" in ce && e(3, j = ce.roomDimensionEnable), "room" in ce && e(4, z = ce.room), "hoveredRoom" in ce && e(22, R = ce.hoveredRoom), "getRoomAreaText" in ce && e(23, A = ce.getRoomAreaText), "getRoomDimensionText" in ce && e(24, M = ce.getRoomDimensionText), "getLabelElement" in ce && e(5, E = ce.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ce && e(25, k = ce.adaptiveRoomLabelVisibleEnable), "fontSize" in ce && e(26, x = ce.fontSize);
10399
+ "pxmm" in ce && e(21, I = ce.pxmm), "roomAreaEnable" in ce && e(0, C = ce.roomAreaEnable), "roomNameEnable" in ce && e(1, L = ce.roomNameEnable), "roomNameOtherTypeEnable" in ce && e(2, S = ce.roomNameOtherTypeEnable), "roomDimensionEnable" in ce && e(3, j = ce.roomDimensionEnable), "room" in ce && e(4, z = ce.room), "hoveredRoom" in ce && e(22, _ = ce.hoveredRoom), "getRoomAreaText" in ce && e(23, A = ce.getRoomAreaText), "getRoomDimensionText" in ce && e(24, M = ce.getRoomDimensionText), "getLabelElement" in ce && e(5, E = ce.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ce && e(25, k = ce.adaptiveRoomLabelVisibleEnable), "fontSize" in ce && e(26, x = ce.fontSize);
10400
10400
  }, n.$$.update = () => {
10401
10401
  var ce, be;
10402
10402
  n.$$.dirty[0] & /*fontSize*/
@@ -10446,7 +10446,7 @@ function yP(n, t, e) {
10446
10446
  B,
10447
10447
  q,
10448
10448
  I,
10449
- R,
10449
+ _,
10450
10450
  A,
10451
10451
  M,
10452
10452
  k,
@@ -11751,7 +11751,7 @@ function KP(n, t, e) {
11751
11751
  "roomLabelsEnable" in u && e(4, s = u.roomLabelsEnable), "roomDimensionEnable" in u && e(5, o = u.roomDimensionEnable), "floorIndex" in u && e(6, r = u.floorIndex), "floorplanData" in u && e(7, a = u.floorplanData);
11752
11752
  }, n.$$.update = () => {
11753
11753
  n.$$.dirty & /*floorplanData, floorIndex*/
11754
- 192 && e(0, i = a.floorDatas[r].rooms.map((u) => ue(_({}, u), {
11754
+ 192 && e(0, i = a.floorDatas[r].rooms.map((u) => ue(R({}, u), {
11755
11755
  path: u.path.map((d) => w1(d, a.bounding))
11756
11756
  })));
11757
11757
  }, [
@@ -12418,11 +12418,11 @@ function wC(n) {
12418
12418
  c() {
12419
12419
  ve(t.$$.fragment), e = he(), g && g.c(), i = he(), ve(s.$$.fragment), o = he(), ve(r.$$.fragment), a = he(), C && C.c(), l = he(), L && L.c(), c = he(), S && S.c(), h = he(), j && j.c(), u = Ve();
12420
12420
  },
12421
- m(z, R) {
12422
- me(t, z, R), X(z, e, R), g && g.m(z, R), X(z, i, R), me(s, z, R), X(z, o, R), me(r, z, R), X(z, a, R), C && C.m(z, R), X(z, l, R), L && L.m(z, R), X(z, c, R), S && S.m(z, R), X(z, h, R), j && j.m(z, R), X(z, u, R), d = !0;
12421
+ m(z, _) {
12422
+ me(t, z, _), X(z, e, _), g && g.m(z, _), X(z, i, _), me(s, z, _), X(z, o, _), me(r, z, _), X(z, a, _), C && C.m(z, _), X(z, l, _), L && L.m(z, _), X(z, c, _), S && S.m(z, _), X(z, h, _), j && j.m(z, _), X(z, u, _), d = !0;
12423
12423
  },
12424
- p(z, R) {
12425
- const A = R & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
12424
+ p(z, _) {
12425
+ const A = _ & /*floorIndex, floorplanData, roomLabelsEnable, roomDimensionEnable*/
12426
12426
  5188 ? yt(p, [
12427
12427
  {
12428
12428
  floorIndex: (
@@ -12445,11 +12445,11 @@ function wC(n) {
12445
12445
  ]) : {};
12446
12446
  t.$set(A), /*highlightEnable*/
12447
12447
  z[3] || /*hoverEnable*/
12448
- z[5] ? g ? (g.p(z, R), R & /*highlightEnable, hoverEnable*/
12448
+ z[5] ? g ? (g.p(z, _), _ & /*highlightEnable, hoverEnable*/
12449
12449
  40 && H(g, 1)) : (g = zf(z), g.c(), H(g, 1), g.m(i.parentNode, i)) : g && (xe(), Y(g, 1, 1, () => {
12450
12450
  g = null;
12451
12451
  }), Se());
12452
- const M = R & /*floorplanData, floorIndex*/
12452
+ const M = _ & /*floorplanData, floorIndex*/
12453
12453
  4100 ? yt(v, [
12454
12454
  {
12455
12455
  floorplanData: (
@@ -12463,7 +12463,7 @@ function wC(n) {
12463
12463
  }
12464
12464
  ]) : {};
12465
12465
  s.$set(M);
12466
- const E = R & /*floorplanData, floorIndex*/
12466
+ const E = _ & /*floorplanData, floorIndex*/
12467
12467
  4100 ? yt(w, [
12468
12468
  {
12469
12469
  floorplanData: (
@@ -12477,19 +12477,19 @@ function wC(n) {
12477
12477
  }
12478
12478
  ]) : {};
12479
12479
  r.$set(E), /*roomLabelsEnable*/
12480
- z[6] ? C ? (C.p(z, R), R & /*roomLabelsEnable*/
12480
+ z[6] ? C ? (C.p(z, _), _ & /*roomLabelsEnable*/
12481
12481
  64 && H(C, 1)) : (C = Of(z), C.c(), H(C, 1), C.m(l.parentNode, l)) : C && (xe(), Y(C, 1, 1, () => {
12482
12482
  C = null;
12483
12483
  }), Se()), /*ruleLabelsEnable*/
12484
- z[11] ? L ? (L.p(z, R), R & /*ruleLabelsEnable*/
12484
+ z[11] ? L ? (L.p(z, _), _ & /*ruleLabelsEnable*/
12485
12485
  2048 && H(L, 1)) : (L = jf(z), L.c(), H(L, 1), L.m(c.parentNode, c)) : L && (xe(), Y(L, 1, 1, () => {
12486
12486
  L = null;
12487
12487
  }), Se()), /*cameraEnable*/
12488
- z[4] ? S ? (S.p(z, R), R & /*cameraEnable*/
12488
+ z[4] ? S ? (S.p(z, _), _ & /*cameraEnable*/
12489
12489
  16 && H(S, 1)) : (S = Rf(z), S.c(), H(S, 1), S.m(h.parentNode, h)) : S && (xe(), Y(S, 1, 1, () => {
12490
12490
  S = null;
12491
12491
  }), Se()), /*compassEnable*/
12492
- z[23] ? j ? (j.p(z, R), R & /*compassEnable*/
12492
+ z[23] ? j ? (j.p(z, _), _ & /*compassEnable*/
12493
12493
  8388608 && H(j, 1)) : (j = _f(z), j.c(), H(j, 1), j.m(u.parentNode, u)) : j && (xe(), Y(j, 1, 1, () => {
12494
12494
  j = null;
12495
12495
  }), Se());
@@ -12930,12 +12930,12 @@ function CC(n) {
12930
12930
  };
12931
12931
  }
12932
12932
  function IC(n, t, e) {
12933
- let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: d } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: m } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: y } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: I } = t, { getLabelElement: C } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: S } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude: R } = t, { cameraImageUrl: A } = t, { northDesc: M } = t, { compassEnable: E } = t, { store: k = void 0 } = t;
12933
+ let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: d } = t, { roomNameEnable: p } = t, { roomNameOtherTypeEnable: m } = t, { roomDimensionEnable: g } = t, { ruleLabelsEnable: v } = t, { floorplanData: y } = t, { getRoomAreaText: w } = t, { getRoomDimensionText: I } = t, { getLabelElement: C } = t, { getRuleDistanceText: L } = t, { adaptiveRoomLabelVisibleEnable: S } = t, { highlightData: j } = t, { missingFloorConfig: z } = t, { lastPanoramaLongitude: _ } = t, { cameraImageUrl: A } = t, { northDesc: M } = t, { compassEnable: E } = t, { store: k = void 0 } = t;
12934
12934
  const x = Gu(void 0);
12935
12935
  return x.subscribe((T) => {
12936
12936
  k && e(26, k.roomOnMouse = T, k);
12937
12937
  }), n.$$set = (T) => {
12938
- "panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, d = T.roomAreaEnable), "roomNameEnable" in T && e(8, p = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, m = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, y = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, I = T.getRoomDimensionText), "getLabelElement" in T && e(15, C = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, S = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20, R = T.lastPanoramaLongitude), "cameraImageUrl" in T && e(21, A = T.cameraImageUrl), "northDesc" in T && e(22, M = T.northDesc), "compassEnable" in T && e(23, E = T.compassEnable), "store" in T && e(26, k = T.store);
12938
+ "panoIndex" in T && e(0, o = T.panoIndex), "isCurrent" in T && e(1, r = T.isCurrent), "floorIndex" in T && e(2, a = T.floorIndex), "highlightEnable" in T && e(3, l = T.highlightEnable), "cameraEnable" in T && e(4, c = T.cameraEnable), "hoverEnable" in T && e(5, h = T.hoverEnable), "roomLabelsEnable" in T && e(6, u = T.roomLabelsEnable), "roomAreaEnable" in T && e(7, d = T.roomAreaEnable), "roomNameEnable" in T && e(8, p = T.roomNameEnable), "roomNameOtherTypeEnable" in T && e(9, m = T.roomNameOtherTypeEnable), "roomDimensionEnable" in T && e(10, g = T.roomDimensionEnable), "ruleLabelsEnable" in T && e(11, v = T.ruleLabelsEnable), "floorplanData" in T && e(12, y = T.floorplanData), "getRoomAreaText" in T && e(13, w = T.getRoomAreaText), "getRoomDimensionText" in T && e(14, I = T.getRoomDimensionText), "getLabelElement" in T && e(15, C = T.getLabelElement), "getRuleDistanceText" in T && e(16, L = T.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in T && e(17, S = T.adaptiveRoomLabelVisibleEnable), "highlightData" in T && e(18, j = T.highlightData), "missingFloorConfig" in T && e(19, z = T.missingFloorConfig), "lastPanoramaLongitude" in T && e(20, _ = T.lastPanoramaLongitude), "cameraImageUrl" in T && e(21, A = T.cameraImageUrl), "northDesc" in T && e(22, M = T.northDesc), "compassEnable" in T && e(23, E = T.compassEnable), "store" in T && e(26, k = T.store);
12939
12939
  }, n.$$.update = () => {
12940
12940
  n.$$.dirty & /*floorplanData, floorIndex*/
12941
12941
  4100 && e(27, i = y.floorDatas[a]), n.$$.dirty & /*floorData*/
@@ -12961,7 +12961,7 @@ function IC(n, t, e) {
12961
12961
  S,
12962
12962
  j,
12963
12963
  z,
12964
- R,
12964
+ _,
12965
12965
  A,
12966
12966
  M,
12967
12967
  E,
@@ -13369,9 +13369,9 @@ function kC(n) {
13369
13369
  };
13370
13370
  }
13371
13371
  function xC(n, t, e) {
13372
- let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: p } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: y } = t, { floorplanData: w } = t, { lastPanoramaLongitude: I } = t, { cameraImageUrl: C } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: S } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: R } = t, { highlightData: A } = t, { missingFloorConfig: M } = t, { store: E = void 0 } = t;
13372
+ let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: d } = t, { roomAreaEnable: p } = t, { roomNameEnable: m } = t, { roomNameOtherTypeEnable: g } = t, { roomDimensionEnable: v } = t, { ruleLabelsEnable: y } = t, { floorplanData: w } = t, { lastPanoramaLongitude: I } = t, { cameraImageUrl: C } = t, { getRoomAreaText: L } = t, { getRoomDimensionText: S } = t, { getLabelElement: j } = t, { getRuleDistanceText: z } = t, { adaptiveRoomLabelVisibleEnable: _ } = t, { highlightData: A } = t, { missingFloorConfig: M } = t, { store: E = void 0 } = t;
13373
13373
  return n.$$set = (k) => {
13374
- "duration" in k && e(0, i = k.duration), "visible" in k && e(1, s = k.visible), "northDesc" in k && e(2, o = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, h = k.highlightEnable), "compassEnable" in k && e(8, u = k.compassEnable), "roomLabelsEnable" in k && e(9, d = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, p = k.roomAreaEnable), "roomNameEnable" in k && e(11, m = k.roomNameEnable), "roomNameOtherTypeEnable" in k && e(12, g = k.roomNameOtherTypeEnable), "roomDimensionEnable" in k && e(13, v = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(14, y = k.ruleLabelsEnable), "floorplanData" in k && e(15, w = k.floorplanData), "lastPanoramaLongitude" in k && e(16, I = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(17, C = k.cameraImageUrl), "getRoomAreaText" in k && e(18, L = k.getRoomAreaText), "getRoomDimensionText" in k && e(19, S = k.getRoomDimensionText), "getLabelElement" in k && e(20, j = k.getLabelElement), "getRuleDistanceText" in k && e(21, z = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(22, R = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(23, A = k.highlightData), "missingFloorConfig" in k && e(24, M = k.missingFloorConfig), "store" in k && e(25, E = k.store);
13374
+ "duration" in k && e(0, i = k.duration), "visible" in k && e(1, s = k.visible), "northDesc" in k && e(2, o = k.northDesc), "panoIndex" in k && e(3, r = k.panoIndex), "floorIndex" in k && e(4, a = k.floorIndex), "cameraEnable" in k && e(5, l = k.cameraEnable), "hoverEnable" in k && e(6, c = k.hoverEnable), "highlightEnable" in k && e(7, h = k.highlightEnable), "compassEnable" in k && e(8, u = k.compassEnable), "roomLabelsEnable" in k && e(9, d = k.roomLabelsEnable), "roomAreaEnable" in k && e(10, p = k.roomAreaEnable), "roomNameEnable" in k && e(11, m = k.roomNameEnable), "roomNameOtherTypeEnable" in k && e(12, g = k.roomNameOtherTypeEnable), "roomDimensionEnable" in k && e(13, v = k.roomDimensionEnable), "ruleLabelsEnable" in k && e(14, y = k.ruleLabelsEnable), "floorplanData" in k && e(15, w = k.floorplanData), "lastPanoramaLongitude" in k && e(16, I = k.lastPanoramaLongitude), "cameraImageUrl" in k && e(17, C = k.cameraImageUrl), "getRoomAreaText" in k && e(18, L = k.getRoomAreaText), "getRoomDimensionText" in k && e(19, S = k.getRoomDimensionText), "getLabelElement" in k && e(20, j = k.getLabelElement), "getRuleDistanceText" in k && e(21, z = k.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in k && e(22, _ = k.adaptiveRoomLabelVisibleEnable), "highlightData" in k && e(23, A = k.highlightData), "missingFloorConfig" in k && e(24, M = k.missingFloorConfig), "store" in k && e(25, E = k.store);
13375
13375
  }, [
13376
13376
  i,
13377
13377
  s,
@@ -13395,7 +13395,7 @@ function xC(n, t, e) {
13395
13395
  S,
13396
13396
  j,
13397
13397
  z,
13398
- R,
13398
+ _,
13399
13399
  A,
13400
13400
  M,
13401
13401
  E
@@ -13553,7 +13553,7 @@ let Cs = class {
13553
13553
  /**
13554
13554
  * @realsee/dnalogel 版本号
13555
13555
  */
13556
- f(this, "VERSION", "3.81.3-alpha.2");
13556
+ f(this, "VERSION", "3.81.4-alpha.1");
13557
13557
  f(this, "NAME");
13558
13558
  f(this, "five");
13559
13559
  f(this, "workUtil");
@@ -13772,7 +13772,7 @@ let NC = class extends vn {
13772
13772
  * plugin.updateShowState({ longitude: Math.PI / 2 })
13773
13773
  */
13774
13774
  f(this, "updateShowState", (e) => {
13775
- this.showState = _(_({}, this.showState), e);
13775
+ this.showState = R(R({}, this.showState), e);
13776
13776
  });
13777
13777
  f(this, "_disable", (e) => {
13778
13778
  var s, o, r;
@@ -13799,7 +13799,7 @@ let NC = class extends vn {
13799
13799
  immediately: !1,
13800
13800
  isAutoShow: !1,
13801
13801
  userAction: !0
13802
- }, s = _(_({}, i), e), o = () => K(this, null, function* () {
13802
+ }, s = R(R({}, i), e), o = () => K(this, null, function* () {
13803
13803
  this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
13804
13804
  let a = !1, l;
13805
13805
  this.showRejection = (u) => {
@@ -13829,7 +13829,7 @@ let NC = class extends vn {
13829
13829
  f(this, "_hide", (e) => {
13830
13830
  var o;
13831
13831
  (o = this.showRejection) == null || o.call(this, gi.BreakOffByHide), this.showPromise = void 0;
13832
- const s = _(_({}, {
13832
+ const s = R(R({}, {
13833
13833
  userAction: !0,
13834
13834
  isAutoHide: !1
13835
13835
  }), e);
@@ -13900,7 +13900,7 @@ let NC = class extends vn {
13900
13900
  this.floorIndex = e, this.updateSize(), this.render();
13901
13901
  }
13902
13902
  });
13903
- i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = _({
13903
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = R({
13904
13904
  mode: "Floorplan",
13905
13905
  longitude: 0,
13906
13906
  latitude: Math.PI / 2,
@@ -13930,12 +13930,12 @@ let NC = class extends vn {
13930
13930
  cameraImageUrl: fn,
13931
13931
  attachedTo: Gs.BOUNDING_CENTER,
13932
13932
  getLabelElement: void 0,
13933
- missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
13933
+ missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
13934
13934
  i18n: (u) => u,
13935
13935
  getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
13936
13936
  getRoomDimensionText: (u, d) => (u / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
13937
13937
  getRuleDistanceText: (u) => u.toString()
13938
- }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(_(_({}, s), o), { missingFloorConfig: r });
13938
+ }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = R(R({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(R(R({}, s), o), { missingFloorConfig: r });
13939
13939
  this.state = { enabled: !0, visible: !1, config: a }, this.panoIndex = e.getCurrentState().panoIndex, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
13940
13940
  }
13941
13941
  load(e, i, s = !0) {
@@ -14005,8 +14005,8 @@ let NC = class extends vn {
14005
14005
  }
14006
14006
  updateState(e, i) {
14007
14007
  var a;
14008
- const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
14009
- this.state = ue(_(_({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
14008
+ const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? R(R({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(R(R({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
14009
+ this.state = ue(R(R({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
14010
14010
  }
14011
14011
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
14012
14012
  *
@@ -14035,7 +14035,7 @@ let NC = class extends vn {
14035
14035
  render(e) {
14036
14036
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
14037
14037
  return;
14038
- const i = ue(_({}, this.state.config), {
14038
+ const i = ue(R({}, this.state.config), {
14039
14039
  visible: this.state.visible,
14040
14040
  duration: e != null ? e : 0,
14041
14041
  panoIndex: this.panoIndex,
@@ -16811,7 +16811,7 @@ let QC = class extends vn {
16811
16811
  * plugin.updateShowState({ longitude: Math.PI / 2 })
16812
16812
  */
16813
16813
  f(this, "updateShowState", (e) => {
16814
- this.showState = _(_({}, this.showState), e);
16814
+ this.showState = R(R({}, this.showState), e);
16815
16815
  });
16816
16816
  f(this, "_disable", (e) => {
16817
16817
  var s, o, r;
@@ -16838,7 +16838,7 @@ let QC = class extends vn {
16838
16838
  immediately: !1,
16839
16839
  isAutoShow: !1,
16840
16840
  userAction: !0
16841
- }, s = _(_({}, i), e), o = () => K(this, null, function* () {
16841
+ }, s = R(R({}, i), e), o = () => K(this, null, function* () {
16842
16842
  this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
16843
16843
  let a = !1, l;
16844
16844
  this.showRejection = (u) => {
@@ -16868,7 +16868,7 @@ let QC = class extends vn {
16868
16868
  f(this, "_hide", (e) => {
16869
16869
  var o;
16870
16870
  (o = this.showRejection) == null || o.call(this, gi.BreakOffByHide), this.showPromise = void 0;
16871
- const s = _(_({}, {
16871
+ const s = R(R({}, {
16872
16872
  userAction: !0,
16873
16873
  isAutoHide: !1
16874
16874
  }), e);
@@ -16940,7 +16940,7 @@ let QC = class extends vn {
16940
16940
  this.floorIndex = e, this.updateSize(), this.render();
16941
16941
  }
16942
16942
  });
16943
- i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = _({
16943
+ i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = R({
16944
16944
  mode: "Mapview",
16945
16945
  longitude: 0,
16946
16946
  latitude: Math.PI / 2,
@@ -16972,12 +16972,12 @@ let QC = class extends vn {
16972
16972
  attachedTo: Gs.BOUNDING_CENTER,
16973
16973
  getLabelElement: void 0,
16974
16974
  adaptiveRoomLabelVisibleEnable: !0,
16975
- missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
16975
+ missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
16976
16976
  i18n: (u) => u,
16977
16977
  getRoomAreaText: (u) => (u / 1e6).toFixed(1) + "㎡",
16978
16978
  getRoomDimensionText: (u, d) => (u / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
16979
16979
  getRuleDistanceText: (u) => u.toString()
16980
- }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(_(_({}, s), o), { missingFloorConfig: r });
16980
+ }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = R(R({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(R(R({}, s), o), { missingFloorConfig: r });
16981
16981
  this.state = { enabled: !0, visible: !1, config: a }, this.panoIndex = e.getCurrentState().panoIndex, this.initContainer(), Ti(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
16982
16982
  }
16983
16983
  load(e, i, s = !0) {
@@ -17074,8 +17074,8 @@ let QC = class extends vn {
17074
17074
  }
17075
17075
  updateState(e, i) {
17076
17076
  var a;
17077
- const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
17078
- this.state = ue(_(_({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
17077
+ const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? R(R({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(R(R({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
17078
+ this.state = ue(R(R({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
17079
17079
  }
17080
17080
  /** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
17081
17081
  *
@@ -17107,12 +17107,12 @@ let QC = class extends vn {
17107
17107
  */
17108
17108
  getRelativePose(e) {
17109
17109
  const i = this.showState.longitude || 0, o = ((e.longitude - i) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
17110
- return ue(_({}, e), { longitude: o });
17110
+ return ue(R({}, e), { longitude: o });
17111
17111
  }
17112
17112
  render(e) {
17113
17113
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
17114
17114
  return;
17115
- const i = ue(_({}, this.state.config), {
17115
+ const i = ue(R({}, this.state.config), {
17116
17116
  visible: this.state.visible,
17117
17117
  duration: e != null ? e : 0,
17118
17118
  panoIndex: this.panoIndex,
@@ -17248,13 +17248,13 @@ let XC = class extends vn {
17248
17248
  cameraImageUrl: fn,
17249
17249
  attachedTo: Gs.BOUNDING_CENTER,
17250
17250
  getLabelElement: void 0,
17251
- missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
17251
+ missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
17252
17252
  i18n: (h) => h,
17253
17253
  adaptiveRoomLabelVisibleEnable: !0,
17254
17254
  getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
17255
17255
  getRoomDimensionText: (h, u) => (h / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
17256
17256
  getRuleDistanceText: (h) => h.toString()
17257
- }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(_(_({}, s), o), { missingFloorConfig: r });
17257
+ }, o = i ? Jo(i, ["selector", "scale"]) : {}, r = R(R({}, s.missingFloorConfig), o.missingFloorConfig), a = ue(R(R({}, s), o), { missingFloorConfig: r });
17258
17258
  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();
17259
17259
  }
17260
17260
  load(e, i, s = !0) {
@@ -17357,8 +17357,8 @@ let XC = class extends vn {
17357
17357
  }
17358
17358
  updateState(e, i) {
17359
17359
  var a;
17360
- const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
17361
- this.state = ue(_(_({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
17360
+ const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? R(R({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(R(R({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
17361
+ this.state = ue(R(R({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
17362
17362
  }
17363
17363
  addEventListener() {
17364
17364
  if (!this.state.enabled || this.hasAddedEventListener)
@@ -17388,7 +17388,7 @@ let XC = class extends vn {
17388
17388
  render(e) {
17389
17389
  if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
17390
17390
  return;
17391
- const i = ue(_({}, this.state.config), {
17391
+ const i = ue(R({}, this.state.config), {
17392
17392
  visible: this.state.visible,
17393
17393
  duration: e != null ? e : 0,
17394
17394
  panoIndex: this.panoIndex,
@@ -17472,7 +17472,7 @@ function JC(n, t, e) {
17472
17472
  const S = C.bounding, j = C.observers[L];
17473
17473
  if (!j)
17474
17474
  return "";
17475
- const z = (S.max.x - S.min.x) * l, R = (S.max.y - S.min.y) * l, A = Math.floor(j.positionInImage.x * z), M = Math.floor(j.positionInImage.y * R);
17475
+ const z = (S.max.x - S.min.x) * l, _ = (S.max.y - S.min.y) * l, A = Math.floor(j.positionInImage.x * z), M = Math.floor(j.positionInImage.y * _);
17476
17476
  return `translate(${A}px, ${M}px)`;
17477
17477
  }
17478
17478
  function g(C) {
@@ -18127,10 +18127,10 @@ function u5(n, t, e) {
18127
18127
  }, n.$$.update = () => {
18128
18128
  if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
18129
18129
  1800) {
18130
- const S = Math.min(p, m), { max: j, min: z } = r.bounding, R = j.x - z.x, A = j.y - z.y, M = function() {
18131
- return R > A ? [S, S / R * A] : [S / A * R, S];
18130
+ const S = Math.min(p, m), { max: j, min: z } = r.bounding, _ = j.x - z.x, A = j.y - z.y, M = function() {
18131
+ return _ > A ? [S, S / _ * A] : [S / A * _, S];
18132
18132
  }();
18133
- e(10, g = M[0]), e(13, v = M[1]), e(11, u = g / R);
18133
+ e(10, g = M[0]), e(13, v = M[1]), e(11, u = g / _);
18134
18134
  }
18135
18135
  }, [
18136
18136
  i,
@@ -18208,7 +18208,7 @@ let d5 = class extends Me {
18208
18208
  highlightEnable: !1,
18209
18209
  cameraImageUrl: fn,
18210
18210
  missingFloorImageUrl: Xi(i == null ? void 0 : i.staticPrefix, ps)
18211
- }, o = _(_({}, s), i == null ? void 0 : i.configs);
18211
+ }, o = R(R({}, s), i == null ? void 0 : i.configs);
18212
18212
  this.state = { enabled: !0, visible: !0, config: o }, 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);
18213
18213
  }
18214
18214
  load(e, i, s = !0) {
@@ -18292,8 +18292,8 @@ let d5 = class extends Me {
18292
18292
  this.hooks.emit("hide", { userAction: i }), this.render();
18293
18293
  }
18294
18294
  updateState(e, i) {
18295
- const s = this.state, o = e.config ? _(_({}, s.config), e.config) : s.config;
18296
- this.state = ue(_(_({}, this.state), e), { config: o }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
18295
+ const s = this.state, o = e.config ? R(R({}, s.config), e.config) : s.config;
18296
+ this.state = ue(R(R({}, this.state), e), { config: o }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
18297
18297
  }
18298
18298
  render() {
18299
18299
  if (this.disposed || !this.state.enabled)
@@ -18304,7 +18304,7 @@ let d5 = class extends Me {
18304
18304
  }
18305
18305
  if (!this.data || !this.wrapper)
18306
18306
  return;
18307
- const e = ue(_({}, this.state.config), {
18307
+ const e = ue(R({}, this.state.config), {
18308
18308
  five: this.five,
18309
18309
  floorplanData: this.data,
18310
18310
  visible: this.state.visible,
@@ -18400,10 +18400,10 @@ function v5(n, t, e) {
18400
18400
  var C, L;
18401
18401
  let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, { cameraSize: u = 36 } = t, { cameraOffset: d = 28.5 } = t, p = a.getCurrentState().panoIndex, m = a.getCurrentState().longitude, g = (L = (C = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : C.floorIndex) != null ? L : 0;
18402
18402
  function v(S, j) {
18403
- const z = S.bounding, R = S.observers[j];
18404
- if (!R)
18403
+ const z = S.bounding, _ = S.observers[j];
18404
+ if (!_)
18405
18405
  return "";
18406
- const A = (z.max.x - z.min.x) * l, M = (z.max.y - z.min.y) * l, E = Math.floor(R.positionInImage.x * A), k = Math.floor(R.positionInImage.y * M);
18406
+ const A = (z.max.x - z.min.x) * l, M = (z.max.y - z.min.y) * l, E = Math.floor(_.positionInImage.x * A), k = Math.floor(_.positionInImage.y * M);
18407
18407
  return `translate(${E}px, ${k}px)`;
18408
18408
  }
18409
18409
  function y(S) {
@@ -20179,7 +20179,7 @@ function J5(n) {
20179
20179
  };
20180
20180
  }
20181
20181
  function K5(n, t, e) {
20182
- let i, { five: s } = t, { visible: o } = t, { hoverEnable: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, { extraObjects: c = [] } = t, { highlightData: h } = t, { missingFloorImageUrl: u } = t, { missingFloorConfig: d } = t, { clickEnable: p = !0 } = t, { roomLabelsEnable: m = !1 } = t, { roomNameEnable: g = !0 } = t, { roomNameOtherTypeEnable: v = !0 } = t, { roomAreaEnable: y = !0 } = t, { adaptiveRoomLabelVisibleEnable: w = !0 } = t, { getRoomAreaText: I = ($) => ($ / 1e6).toFixed(1) + "㎡" } = t, { getLabelElement: C = void 0 } = t, { compassEnable: L = !1 } = t, { northDesc: S = "北" } = t, { compassHeight: j = 50 } = t, { observerDotSize: z = 12 } = t, { displayedFloorIndex: R } = t, { shouldShowRadar: A = !0 } = t, { cameraSize: M = 36 } = t, { cameraOffset: E = 28.5 } = t, { onFloorplanClick: k = void 0 } = t, x = 0, T = 0, O = 0, B = 0, q = 0;
20182
+ let i, { five: s } = t, { visible: o } = t, { hoverEnable: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, { extraObjects: c = [] } = t, { highlightData: h } = t, { missingFloorImageUrl: u } = t, { missingFloorConfig: d } = t, { clickEnable: p = !0 } = t, { roomLabelsEnable: m = !1 } = t, { roomNameEnable: g = !0 } = t, { roomNameOtherTypeEnable: v = !0 } = t, { roomAreaEnable: y = !0 } = t, { adaptiveRoomLabelVisibleEnable: w = !0 } = t, { getRoomAreaText: I = ($) => ($ / 1e6).toFixed(1) + "㎡" } = t, { getLabelElement: C = void 0 } = t, { compassEnable: L = !1 } = t, { northDesc: S = "北" } = t, { compassHeight: j = 50 } = t, { observerDotSize: z = 12 } = t, { displayedFloorIndex: _ } = t, { shouldShowRadar: A = !0 } = t, { cameraSize: M = 36 } = t, { cameraOffset: E = 28.5 } = t, { onFloorplanClick: k = void 0 } = t, x = 0, T = 0, O = 0, B = 0, q = 0;
20183
20183
  function ie($) {
20184
20184
  if (!p || !k)
20185
20185
  return;
@@ -20187,7 +20187,7 @@ function K5(n, t, e) {
20187
20187
  k({
20188
20188
  imageX: le,
20189
20189
  imageY: ce,
20190
- floorIndex: R,
20190
+ floorIndex: _,
20191
20191
  originalEvent: $
20192
20192
  });
20193
20193
  }
@@ -20197,7 +20197,7 @@ function K5(n, t, e) {
20197
20197
  e(26, O = $.detail);
20198
20198
  };
20199
20199
  return n.$$set = ($) => {
20200
- "five" in $ && e(0, s = $.five), "visible" in $ && e(1, o = $.visible), "hoverEnable" in $ && e(2, r = $.hoverEnable), "floorplanData" in $ && e(3, a = $.floorplanData), "cameraImageUrl" in $ && e(4, l = $.cameraImageUrl), "extraObjects" in $ && e(5, c = $.extraObjects), "highlightData" in $ && e(6, h = $.highlightData), "missingFloorImageUrl" in $ && e(7, u = $.missingFloorImageUrl), "missingFloorConfig" in $ && e(8, d = $.missingFloorConfig), "clickEnable" in $ && e(9, p = $.clickEnable), "roomLabelsEnable" in $ && e(10, m = $.roomLabelsEnable), "roomNameEnable" in $ && e(11, g = $.roomNameEnable), "roomNameOtherTypeEnable" in $ && e(12, v = $.roomNameOtherTypeEnable), "roomAreaEnable" in $ && e(13, y = $.roomAreaEnable), "adaptiveRoomLabelVisibleEnable" in $ && e(14, w = $.adaptiveRoomLabelVisibleEnable), "getRoomAreaText" in $ && e(15, I = $.getRoomAreaText), "getLabelElement" in $ && e(16, C = $.getLabelElement), "compassEnable" in $ && e(17, L = $.compassEnable), "northDesc" in $ && e(18, S = $.northDesc), "compassHeight" in $ && e(19, j = $.compassHeight), "observerDotSize" in $ && e(20, z = $.observerDotSize), "displayedFloorIndex" in $ && e(21, R = $.displayedFloorIndex), "shouldShowRadar" in $ && e(22, A = $.shouldShowRadar), "cameraSize" in $ && e(23, M = $.cameraSize), "cameraOffset" in $ && e(24, E = $.cameraOffset), "onFloorplanClick" in $ && e(32, k = $.onFloorplanClick);
20200
+ "five" in $ && e(0, s = $.five), "visible" in $ && e(1, o = $.visible), "hoverEnable" in $ && e(2, r = $.hoverEnable), "floorplanData" in $ && e(3, a = $.floorplanData), "cameraImageUrl" in $ && e(4, l = $.cameraImageUrl), "extraObjects" in $ && e(5, c = $.extraObjects), "highlightData" in $ && e(6, h = $.highlightData), "missingFloorImageUrl" in $ && e(7, u = $.missingFloorImageUrl), "missingFloorConfig" in $ && e(8, d = $.missingFloorConfig), "clickEnable" in $ && e(9, p = $.clickEnable), "roomLabelsEnable" in $ && e(10, m = $.roomLabelsEnable), "roomNameEnable" in $ && e(11, g = $.roomNameEnable), "roomNameOtherTypeEnable" in $ && e(12, v = $.roomNameOtherTypeEnable), "roomAreaEnable" in $ && e(13, y = $.roomAreaEnable), "adaptiveRoomLabelVisibleEnable" in $ && e(14, w = $.adaptiveRoomLabelVisibleEnable), "getRoomAreaText" in $ && e(15, I = $.getRoomAreaText), "getLabelElement" in $ && e(16, C = $.getLabelElement), "compassEnable" in $ && e(17, L = $.compassEnable), "northDesc" in $ && e(18, S = $.northDesc), "compassHeight" in $ && e(19, j = $.compassHeight), "observerDotSize" in $ && e(20, z = $.observerDotSize), "displayedFloorIndex" in $ && e(21, _ = $.displayedFloorIndex), "shouldShowRadar" in $ && e(22, A = $.shouldShowRadar), "cameraSize" in $ && e(23, M = $.cameraSize), "cameraOffset" in $ && e(24, E = $.cameraOffset), "onFloorplanClick" in $ && e(32, k = $.onFloorplanClick);
20201
20201
  }, n.$$.update = () => {
20202
20202
  var $;
20203
20203
  if (n.$$.dirty[0] & /*clientWidth, clientHeight, floorplanData, contentWidth*/
@@ -20208,7 +20208,7 @@ function K5(n, t, e) {
20208
20208
  e(27, B = ce[0]), e(29, q = ce[1]), e(28, x = B / Ae);
20209
20209
  }
20210
20210
  n.$$.dirty[0] & /*floorplanData, displayedFloorIndex*/
20211
- 2097160 && e(30, i = (($ = a.floorDatas[R]) == null ? void 0 : $.rooms.length) > 0);
20211
+ 2097160 && e(30, i = (($ = a.floorDatas[_]) == null ? void 0 : $.rooms.length) > 0);
20212
20212
  }, [
20213
20213
  s,
20214
20214
  o,
@@ -20231,7 +20231,7 @@ function K5(n, t, e) {
20231
20231
  S,
20232
20232
  j,
20233
20233
  z,
20234
- R,
20234
+ _,
20235
20235
  A,
20236
20236
  M,
20237
20237
  E,
@@ -20365,7 +20365,7 @@ let eI = class extends vn {
20365
20365
  highlightEnable: !1,
20366
20366
  cameraImageUrl: hC,
20367
20367
  missingFloorImageUrl: Xi(i == null ? void 0 : i.staticPrefix, ps),
20368
- missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i == null ? void 0 : i.missingFloorConfig),
20368
+ missingFloorConfig: R(R({}, this.defaultMissingFloorConfig), i == null ? void 0 : i.missingFloorConfig),
20369
20369
  clickEnable: !0,
20370
20370
  roomLabelsEnable: !1,
20371
20371
  roomNameEnable: !0,
@@ -20381,7 +20381,7 @@ let eI = class extends vn {
20381
20381
  cameraSize: 36,
20382
20382
  cameraOffset: 28.5,
20383
20383
  i18n: (i == null ? void 0 : i.i18n) || ((l) => l)
20384
- }, o = _(_({}, s), i == null ? void 0 : i.configs);
20384
+ }, o = R(R({}, s), i == null ? void 0 : i.configs);
20385
20385
  this.state = { enabled: !0, visible: !0, config: o }, 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), e.on("panoArrived", this.handlePanoArrived);
20386
20386
  }
20387
20387
  load(e, i, s = !0) {
@@ -20481,8 +20481,8 @@ let eI = class extends vn {
20481
20481
  }
20482
20482
  updateState(e, i) {
20483
20483
  var a;
20484
- const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
20485
- this.state = ue(_(_({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
20484
+ const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? R(R({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? ue(R(R({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
20485
+ this.state = ue(R(R({}, this.state), e), { config: r }), !Qt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
20486
20486
  }
20487
20487
  render() {
20488
20488
  var r, a;
@@ -20494,7 +20494,7 @@ let eI = class extends vn {
20494
20494
  }
20495
20495
  if (!this.data || !this.wrapper)
20496
20496
  return;
20497
- const e = (a = (r = this.five.work.observers[this.five.getCurrentState().panoIndex]) == null ? void 0 : r.floorIndex) != null ? a : 0, i = this.state.displayedFloorIndex !== void 0 ? this.state.displayedFloorIndex : e, s = i === e, o = ue(_({}, this.state.config), {
20497
+ const e = (a = (r = this.five.work.observers[this.five.getCurrentState().panoIndex]) == null ? void 0 : r.floorIndex) != null ? a : 0, i = this.state.displayedFloorIndex !== void 0 ? this.state.displayedFloorIndex : e, s = i === e, o = ue(R({}, this.state.config), {
20498
20498
  five: this.five,
20499
20499
  floorplanData: this.data,
20500
20500
  visible: this.state.visible,
@@ -20622,7 +20622,7 @@ function x1(n, t) {
20622
20622
  n.traverse((e) => {
20623
20623
  var i;
20624
20624
  if (e.type === "Mesh") {
20625
- const s = e, o = _({ map: s.material.map || {} }, t);
20625
+ const s = e, o = R({ map: s.material.map || {} }, t);
20626
20626
  s.material = new Zr(o), s.renderOrder = 1, ((i = e.parent) == null ? void 0 : i.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
20627
20627
  }
20628
20628
  });
@@ -20986,34 +20986,34 @@ var Ap = S1.Zlib, L1 = {
20986
20986
  l[0][0] = 1;
20987
20987
  for (var c = o.slice(0), h = o.slice(0), u = 1; u <= e; ++u) {
20988
20988
  c[u] = t - s[n + 1 - u], h[u] = s[n + u] - t;
20989
- for (var d = 0, R = 0; R < u; ++R) {
20990
- var p = h[R + 1], m = c[u - R];
20991
- l[u][R] = p + m;
20992
- var g = l[R][u - 1] / l[u][R];
20993
- l[R][u] = d + p * g, d = m * g;
20989
+ for (var d = 0, _ = 0; _ < u; ++_) {
20990
+ var p = h[_ + 1], m = c[u - _];
20991
+ l[u][_] = p + m;
20992
+ var g = l[_][u - 1] / l[u][_];
20993
+ l[_][u] = d + p * g, d = m * g;
20994
20994
  }
20995
20995
  l[u][u] = d;
20996
20996
  }
20997
20997
  for (var u = 0; u <= e; ++u)
20998
20998
  a[0][u] = l[u][e];
20999
- for (var R = 0; R <= e; ++R) {
20999
+ for (var _ = 0; _ <= e; ++_) {
21000
21000
  for (var v = 0, y = 1, w = [], r = 0; r <= e; ++r)
21001
21001
  w[r] = o.slice(0);
21002
21002
  w[0][0] = 1;
21003
21003
  for (var I = 1; I <= i; ++I) {
21004
- var C = 0, L = R - I, S = e - I;
21005
- R >= I && (w[y][0] = w[v][0] / l[S + 1][L], C = w[y][0] * l[L][S]);
21006
- for (var j = L >= -1 ? 1 : -L, z = R - 1 <= S ? I - 1 : e - R, u = j; u <= z; ++u)
21004
+ var C = 0, L = _ - I, S = e - I;
21005
+ _ >= I && (w[y][0] = w[v][0] / l[S + 1][L], C = w[y][0] * l[L][S]);
21006
+ for (var j = L >= -1 ? 1 : -L, z = _ - 1 <= S ? I - 1 : e - _, u = j; u <= z; ++u)
21007
21007
  w[y][u] = (w[v][u] - w[v][u - 1]) / l[S + 1][L + u], C += w[y][u] * l[L + u][S];
21008
- R <= S && (w[y][I] = -w[v][I - 1] / l[S + 1][R], C += w[y][I] * l[R][S]), a[I][R] = C;
21008
+ _ <= S && (w[y][I] = -w[v][I - 1] / l[S + 1][_], C += w[y][I] * l[_][S]), a[I][_] = C;
21009
21009
  var u = v;
21010
21010
  v = y, y = u;
21011
21011
  }
21012
21012
  }
21013
- for (var R = e, I = 1; I <= i; ++I) {
21013
+ for (var _ = e, I = 1; I <= i; ++I) {
21014
21014
  for (var u = 0; u <= e; ++u)
21015
- a[I][u] *= R;
21016
- R *= e - I;
21015
+ a[I][u] *= _;
21016
+ _ *= e - I;
21017
21017
  }
21018
21018
  return a;
21019
21019
  },
@@ -22159,7 +22159,7 @@ var z1 = function() {
22159
22159
  if (x >= 180) {
22160
22160
  for (var T = x / 180, O = k / T, B = E + O, q = A.times[M - 1], ie = A.times[M] - q, Z = ie / T, se = q + Z, $ = [], oe = []; se < A.times[M]; )
22161
22161
  $.push(se), se += Z, oe.push(B), B += O;
22162
- A.times = R(A.times, M, $), A.values = R(A.values, M, oe);
22162
+ A.times = _(A.times, M, $), A.values = _(A.values, M, oe);
22163
22163
  }
22164
22164
  }
22165
22165
  }
@@ -22611,7 +22611,7 @@ var z1 = function() {
22611
22611
  A[T] = M[x];
22612
22612
  return A;
22613
22613
  }
22614
- function R(A, M, E) {
22614
+ function _(A, M, E) {
22615
22615
  return A.slice(0, M).concat(E).concat(A.slice(M));
22616
22616
  }
22617
22617
  return i;
@@ -22663,9 +22663,9 @@ const fz = (n, t) => {
22663
22663
  return;
22664
22664
  const y = n.model.bounding, w = y.max.x - y.min.x, I = y.max.z - y.min.z, C = Math.max(w, I), {
22665
22665
  max: { x: L, z: S },
22666
- min: { x: j, y: z, z: R }
22666
+ min: { x: j, y: z, z: _ }
22667
22667
  } = y;
22668
- s.yBase = z, o = { x: (L + j) / 2, y: z - 1.6, z: (S + R) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * C, tI(v, { position: o, rotation: r, scale: a });
22668
+ s.yBase = z, o = { x: (L + j) / 2, y: z - 1.6, z: (S + _) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * C, tI(v, { position: o, rotation: r, scale: a });
22669
22669
  }
22670
22670
  return { load: c, disable: p, enable: d };
22671
22671
  };
@@ -22691,8 +22691,8 @@ const rI = ({ x: n, y: t, z: e }) => new fe(n, t, e), pz = (n, t) => {
22691
22691
  const z = (O = (T = (x = (k = j.children) == null ? void 0 : k[0]) == null ? void 0 : x.children) == null ? void 0 : T[3]) == null ? void 0 : O.clone();
22692
22692
  if (!z)
22693
22693
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${z}`));
22694
- const R = (B = t.name) != null ? B : "入户门";
22695
- return z.material = new Zr({ transparent: !0, map: oI(R) }), z.renderOrder = 3, j.children[0].add(z), e.object = j, !0;
22694
+ const _ = (B = t.name) != null ? B : "入户门";
22695
+ return z.material = new Zr({ transparent: !0, map: oI(_) }), z.renderOrder = 3, j.children[0].add(z), e.object = j, !0;
22696
22696
  }), c = () => {
22697
22697
  if (e.animation)
22698
22698
  return;
@@ -22713,14 +22713,14 @@ const rI = ({ x: n, y: t, z: e }) => new fe(n, t, e), pz = (n, t) => {
22713
22713
  return A = requestAnimationFrame(k), () => {
22714
22714
  cancelAnimationFrame(A);
22715
22715
  };
22716
- }, R = { play: () => {
22716
+ }, _ = { play: () => {
22717
22717
  L || (C.play(), L = S(), requestAnimationFrame(() => {
22718
22718
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
22719
22719
  }));
22720
22720
  }, stop: () => {
22721
22721
  C.stop(), L == null || L(), L = void 0;
22722
22722
  } };
22723
- e.animation = R;
22723
+ e.animation = _;
22724
22724
  }, h = (w) => {
22725
22725
  var C;
22726
22726
  if (!e.object)
@@ -22772,7 +22772,7 @@ const Mh = (n, t, e) => {
22772
22772
  const t = {}, e = (l, c, ...h) => K(void 0, [l, c, ...h], function* (o, r, a = { preload: !0 }) {
22773
22773
  return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((u, d) => {
22774
22774
  const p = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
22775
- p !== void 0 ? n.moveToPano(p, _({
22775
+ p !== void 0 ? n.moveToPano(p, R({
22776
22776
  duration: r,
22777
22777
  // 移动耗时
22778
22778
  moveEndCallback: () => u(!0),
@@ -23014,7 +23014,7 @@ const fI = `<style type="text/css">
23014
23014
  const L = v[C], S = (I = w.observers[0]) == null ? void 0 : I.standingPosition;
23015
23015
  if (!S)
23016
23016
  return;
23017
- const j = L.map(({ x: z, z: R, observers: A }) => {
23017
+ const j = L.map(({ x: z, z: _, observers: A }) => {
23018
23018
  const M = A.length > 0 ? g.rooms[g.observers[A[0]]].name : "", E = y[M] ? y[M].floor : null;
23019
23019
  let k = 1 / 0, x = {
23020
23020
  index: 0,
@@ -23030,28 +23030,28 @@ const fI = `<style type="text/css">
23030
23030
  x: se.x,
23031
23031
  y: se.y,
23032
23032
  z: se.z
23033
- }, oe = pI({ x: z, z: R }, $);
23033
+ }, oe = pI({ x: z, z: _ }, $);
23034
23034
  E ? oe < k && Math.abs($.y - E) < 0.3 && (k = oe, x = $) : oe < k && (k = oe, x = $);
23035
23035
  });
23036
- const T = new fe(z, x.y, R);
23036
+ const T = new fe(z, x.y, _);
23037
23037
  Object.assign(T, { observers: A });
23038
- const O = y[M] ? y[M].roof : null, B = O ? new fe(z, O, R) : null;
23038
+ const O = y[M] ? y[M].roof : null, B = O ? new fe(z, O, _) : null;
23039
23039
  return B && Object.assign(B, { observers: A }), { origin: T, vertical: B };
23040
23040
  });
23041
23041
  r[C] = {
23042
23042
  origins: j.map((z) => z.origin),
23043
23043
  rules: []
23044
23044
  };
23045
- for (const { origin: z, vertical: R } of j) {
23046
- if (!R)
23045
+ for (const { origin: z, vertical: _ } of j) {
23046
+ if (!_)
23047
23047
  continue;
23048
- const A = i(C, z.distanceTo(R));
23049
- s.append(A), r[C].rules.push({ vertical: !0, rule: [z, R], $element: A });
23048
+ const A = i(C, z.distanceTo(_));
23049
+ s.append(A), r[C].rules.push({ vertical: !0, rule: [z, _], $element: A });
23050
23050
  }
23051
23051
  for (let z = 0; z < j.length; z++) {
23052
- let R = z + 1;
23053
- R >= j.length && (R = 0);
23054
- const { origin: A } = j[z], { origin: M } = j[R], E = i(C, A.distanceTo(M));
23052
+ let _ = z + 1;
23053
+ _ >= j.length && (_ = 0);
23054
+ const { origin: A } = j[z], { origin: M } = j[_], E = i(C, A.distanceTo(M));
23055
23055
  s.append(E), r[C].rules.push({ vertical: !1, rule: [A, M], $element: E });
23056
23056
  }
23057
23057
  }
@@ -23060,7 +23060,7 @@ const fI = `<style type="text/css">
23060
23060
  const w = g || t.roomInfo, I = v || t.roomRules;
23061
23061
  if (!w || !I)
23062
23062
  throw new Error("标尺数据依赖不齐全!");
23063
- return e.loaded = !1, e.options = _(_({}, e.options), y || {}), n.model.loaded ? a(w, I) : yield new Promise((C) => n.once("modelLoaded", () => C(a(w, I))));
23063
+ return e.loaded = !1, e.options = R(R({}, e.options), y || {}), n.model.loaded ? a(w, I) : yield new Promise((C) => n.once("modelLoaded", () => C(a(w, I))));
23064
23064
  });
23065
23065
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
23066
23066
  const c = (g, v, y, w) => {
@@ -23088,8 +23088,8 @@ const fI = `<style type="text/css">
23088
23088
  }
23089
23089
  return C.length === 0 ? !1 : C;
23090
23090
  }, h = () => {
23091
- var R;
23092
- const g = (R = n.getElement()) == null ? void 0 : R.parentElement;
23091
+ var _;
23092
+ const g = (_ = n.getElement()) == null ? void 0 : _.parentElement;
23093
23093
  if (!g || !e.loaded || Object.keys(r).length <= 0)
23094
23094
  return;
23095
23095
  const { panoIndex: v, camera: y, currentMode: w } = n;
@@ -23506,18 +23506,18 @@ function CI(n, t, e) {
23506
23506
  }
23507
23507
  return S.length === 0 ? !1 : S;
23508
23508
  }, h = (I, C) => {
23509
- const L = I.clone().project(i.camera), S = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = C.clone().project(i.camera), R = (z.x + 1) / 2 * a, A = (-z.y + 1) / 2 * l, M = Math.sqrt(Math.pow(R - S, 2) + Math.pow(A - j, 2));
23509
+ const L = I.clone().project(i.camera), S = (L.x + 1) / 2 * a, j = (-L.y + 1) / 2 * l, z = C.clone().project(i.camera), _ = (z.x + 1) / 2 * a, A = (-z.y + 1) / 2 * l, M = Math.sqrt(Math.pow(_ - S, 2) + Math.pow(A - j, 2));
23510
23510
  return {
23511
23511
  startLeft: S,
23512
23512
  startTop: j,
23513
- endLeft: R,
23513
+ endLeft: _,
23514
23514
  endTop: A,
23515
23515
  distance: M
23516
23516
  };
23517
23517
  }, u = (I, C, L) => {
23518
- const S = i.camera.position, j = i.camera.getWorldDirection(new fe()), z = I.clone().sub(S).normalize().angleTo(j), R = C.clone().sub(S).normalize().angleTo(j), A = I.distanceTo(C), E = C.clone().sub(C.clone().sub(I).divide(new fe(2, 2, 2))).distanceTo(S), { startLeft: k, startTop: x, endLeft: T, endTop: O, distance: B } = h(I, C), ie = -((Math.PI / 2 - Math.atan2(T - k, x - O)) / Math.PI) * 180;
23518
+ const S = i.camera.position, j = i.camera.getWorldDirection(new fe()), z = I.clone().sub(S).normalize().angleTo(j), _ = C.clone().sub(S).normalize().angleTo(j), A = I.distanceTo(C), E = C.clone().sub(C.clone().sub(I).divide(new fe(2, 2, 2))).distanceTo(S), { startLeft: k, startTop: x, endLeft: T, endTop: O, distance: B } = h(I, C), ie = -((Math.PI / 2 - Math.atan2(T - k, x - O)) / Math.PI) * 180;
23519
23519
  let Z = !0;
23520
- L || (Z = !1), !Qt(I, L) && !Qt(C, L) && (Z = !1), A < 0.3 && (Z = !1), z > Math.PI / 2 && (Z = !1), R > Math.PI / 2 && (Z = !1), E / A > 8 && (Z = !1);
23520
+ L || (Z = !1), !Qt(I, L) && !Qt(C, L) && (Z = !1), A < 0.3 && (Z = !1), z > Math.PI / 2 && (Z = !1), _ > Math.PI / 2 && (Z = !1), E / A > 8 && (Z = !1);
23521
23521
  let se = 50, $ = B;
23522
23522
  const oe = c({ x: ~~k, y: ~~x }, { x: ~~T, y: ~~O });
23523
23523
  if (oe && oe.length === 1 && (Qt(I, L) ? ($ = Math.sqrt(Math.pow(oe[0].x - k, 2) + Math.pow(oe[0].y - x, 2)), se = $ / B * 50) : Qt(C, L) && ($ = Math.sqrt(Math.pow(oe[0].x - T, 2) + Math.pow(oe[0].y - O, 2)), se = 100 - $ / B * 50)), oe && oe.length === 2) {
@@ -23542,12 +23542,12 @@ function CI(n, t, e) {
23542
23542
  return e(0, r = []);
23543
23543
  if (i.currentMode !== Ut.Mode.Panorama)
23544
23544
  return e(0, r = []);
23545
- const L = i.camera.position, S = i.camera.getWorldDirection(new fe()), j = C.lines.map((M) => new fe(M.start[0], -M.start[1], -M.start[2])), z = C.lines.map((M) => new fe(M.end[0], -M.end[1], -M.end[2])), [R] = j.concat(z).sort((M, E) => {
23545
+ const L = i.camera.position, S = i.camera.getWorldDirection(new fe()), j = C.lines.map((M) => new fe(M.start[0], -M.start[1], -M.start[2])), z = C.lines.map((M) => new fe(M.end[0], -M.end[1], -M.end[2])), [_] = j.concat(z).sort((M, E) => {
23546
23546
  const k = M.clone().setY(0).sub(L).normalize().angleTo(S.clone().setY(0)), x = E.clone().setY(0).sub(L).normalize().angleTo(S.clone().setY(0));
23547
23547
  return k - x;
23548
23548
  }), A = C.lines.map((M) => {
23549
23549
  var $, oe;
23550
- const E = M.start, k = M.end, { startLeft: x, startTop: T, distance: O, deg: B, visible: q, labelOffset: ie, ruleLength: Z } = u(new fe(E[0], -E[1], -E[2]), new fe(k[0], -k[1], -k[2]), R), se = [];
23550
+ const E = M.start, k = M.end, { startLeft: x, startTop: T, distance: O, deg: B, visible: q, labelOffset: ie, ruleLength: Z } = u(new fe(E[0], -E[1], -E[2]), new fe(k[0], -k[1], -k[2]), _), se = [];
23551
23551
  return M.children && (($ = M.children) == null ? void 0 : $.length) > 0 && ((oe = M.children) == null || oe.forEach((De) => {
23552
23552
  const ne = De.start, Ae = De.end, { distance: le } = h(new fe(ne[0], -ne[1], -ne[2]), new fe(Ae[0], -Ae[1], -Ae[2]));
23553
23553
  se.push({ width: le, state: De.state });
@@ -23596,7 +23596,7 @@ let MI = class {
23596
23596
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
23597
23597
  "style",
23598
23598
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
23599
- ), e && (e.data && this.load(e.data), this.state.options = _(_({}, 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", () => K(this, null, function* () {
23599
+ ), e && (e.data && this.load(e.data), this.state.options = R(R({}, 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", () => K(this, null, function* () {
23600
23600
  var o, r;
23601
23601
  (r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
23602
23602
  })), this.five.once("dispose", () => this.dispose());
@@ -23793,7 +23793,7 @@ class SI extends vn {
23793
23793
  this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
23794
23794
  visible: !0,
23795
23795
  enabled: !0,
23796
- config: _(_({}, this.state.config), i || {})
23796
+ config: R(R({}, this.state.config), i || {})
23797
23797
  });
23798
23798
  }
23799
23799
  /**
@@ -23856,7 +23856,7 @@ class SI extends vn {
23856
23856
  this.state = {
23857
23857
  visible: (o = e.visible) != null ? o : s.visible,
23858
23858
  enabled: (r = e.enabled) != null ? r : s.enabled,
23859
- config: _(_({}, s.config), e.config || {})
23859
+ config: R(R({}, s.config), e.config || {})
23860
23860
  }, this.hooks.emit("stateChange", {
23861
23861
  state: this.state,
23862
23862
  prevState: s,
@@ -23866,7 +23866,7 @@ class SI extends vn {
23866
23866
  load(e, i, s = !0) {
23867
23867
  return K(this, null, function* () {
23868
23868
  const o = yield this.formatData(e);
23869
- JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = _({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
23869
+ JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = R({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
23870
23870
  });
23871
23871
  }
23872
23872
  formatData(e) {
@@ -24042,7 +24042,7 @@ class B1 {
24042
24042
  class WI extends B1 {
24043
24043
  constructor(e) {
24044
24044
  var i;
24045
- e.contentStyle = ue(_({}, e.contentStyle), {
24045
+ e.contentStyle = ue(R({}, e.contentStyle), {
24046
24046
  background: "#FFFFFF",
24047
24047
  color: "#041066",
24048
24048
  fontFamily: "Arial-BoldMT",
@@ -24152,8 +24152,8 @@ class WI extends B1 {
24152
24152
  }
24153
24153
  const w = Et(l, c).distanceTo(e.camera.position), I = e.camera.fov || 60, C = 2 * Math.tan(0.5 * I / 180 * Math.PI), L = Math.max(Math.min(1 - C * w / 40, 1), 0);
24154
24154
  this.contentDom.style.setProperty("--distance-scale", L.toString());
24155
- const S = (d.x + 1) / 2 * s, j = -(d.y - 1) / 2 * o, R = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, A = this.containerDom.parentElement && this.contentDom.clientWidth > g ? -20 : 0;
24156
- this.containerDom.style.transform = `translate(${S}px, ${j}px) rotate(${R}deg) translateY(${A}px)`, this.show(), (E = this.params.userDistanceItem) == null || E.update({ line: this.line, polyline: this.line.getPolyline() });
24155
+ const S = (d.x + 1) / 2 * s, j = -(d.y - 1) / 2 * o, _ = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, A = this.containerDom.parentElement && this.contentDom.clientWidth > g ? -20 : 0;
24156
+ this.containerDom.style.transform = `translate(${S}px, ${j}px) rotate(${_}deg) translateY(${A}px)`, this.show(), (E = this.params.userDistanceItem) == null || E.update({ line: this.line, polyline: this.line.getPolyline() });
24157
24157
  const M = this.getCurrentContent();
24158
24158
  this.contentDom.innerText = M;
24159
24159
  }
@@ -24281,8 +24281,8 @@ let oc = class {
24281
24281
  });
24282
24282
  });
24283
24283
  var i, s, o;
24284
- 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 = ue(_({}, t.pointSelectorConfig), {
24285
- helper: _({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
24284
+ 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 = ue(R({}, t.pointSelectorConfig), {
24285
+ helper: R({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
24286
24286
  }), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new $o(new Fi([0, 0, 0]), new Fi([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 $o(new Fi([0, 0, 0]), new Fi([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new Ft(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
24287
24287
  const e = this.five.getElement();
24288
24288
  e && (e.addEventListener("touchstart", qa), e.addEventListener("contextmenu", qa));
@@ -24457,9 +24457,9 @@ let N1 = class extends Pi {
24457
24457
  };
24458
24458
  class QI extends B1 {
24459
24459
  constructor(e) {
24460
- e.containerStyle = ue(_({}, e.containerStyle), {
24460
+ e.containerStyle = ue(R({}, e.containerStyle), {
24461
24461
  zIndex: "1"
24462
- }), e.contentStyle = ue(_({}, e.contentStyle), {
24462
+ }), e.contentStyle = ue(R({}, e.contentStyle), {
24463
24463
  background: "#6386FF",
24464
24464
  borderRadius: "2px"
24465
24465
  });
@@ -24904,9 +24904,9 @@ class cs extends oc {
24904
24904
  const s = i.type === "area", o = Array.isArray(i) && ((r = i[0]) == null ? void 0 : r.type) === "line";
24905
24905
  s && this.unHighlightArea(i), o && this.unHighlightLines(i);
24906
24906
  }
24907
- }).appendTo(this.container), this.pointSelector = new Wl(this.five, ue(_({}, this.pointSelectorConfig), {
24907
+ }).appendTo(this.container), this.pointSelector = new Wl(this.five, ue(R({}, this.pointSelectorConfig), {
24908
24908
  mode: this.editParams.pointSelectorMode,
24909
- helper: _({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
24909
+ helper: R({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
24910
24910
  })), this.pointSelector.enable(), this.polyline = new er({ model: this.model }), this.area = new Eh(void 0, {
24911
24911
  five: this.five,
24912
24912
  model: this.model,
@@ -25380,7 +25380,7 @@ class nM {
25380
25380
  const t = Si(this.five).intersectRaycaster(this.raycaster)[0];
25381
25381
  return t || null;
25382
25382
  });
25383
- this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = W1(_({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = uw, 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 jo(
25383
+ this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = W1(R({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = uw, 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 jo(
25384
25384
  new qb(0.04, 0.08, 32),
25385
25385
  new Zr({ color: 1245179, opacity: 0, side: $0, transparent: !0 })
25386
25386
  ), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
@@ -27079,7 +27079,7 @@ function BM(n, t, e) {
27079
27079
  }), ti(() => {
27080
27080
  i.hook.off("measureTypeChange", S), i.hook.off("modeChange", C), i.hook.off("allowAddPointStateChange", L), i.hook.off("readyComplete", y), i.hook.off("pointsChange", I), i.hook.off("notReadyComplete", w), i.hook.off("complete", C);
27081
27081
  });
27082
- const z = () => i.revoke(), R = () => {
27082
+ const z = () => i.revoke(), _ = () => {
27083
27083
  h === "start" ? d() : h === "add" ? p() : (h === "end" || h === "complete") && v();
27084
27084
  };
27085
27085
  return n.$$set = (A) => {
@@ -27102,7 +27102,7 @@ function BM(n, t, e) {
27102
27102
  v,
27103
27103
  u,
27104
27104
  z,
27105
- R
27105
+ _
27106
27106
  ];
27107
27107
  }
27108
27108
  class VM extends Me {
@@ -27495,7 +27495,7 @@ class JM extends Cs {
27495
27495
  ), this.allowMeasureType = Array.from(new Set((p = (d = i.editParams) == null ? void 0 : d.allowMeasureType) != null ? p : ["line"])), this.currentMeasureType = (m = this.allowMeasureType[0]) != null ? m : "line", this.group = new jn(), 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";
27496
27496
  const s = (v = (g = i.editParams) == null ? void 0 : g.pointSelectorMode) != null ? v : fv ? "fixed" : "cursor", o = (y = this.params.openParams) != null ? y : {};
27497
27497
  if (this.params.useUIController !== !1) {
27498
- const w = _({
27498
+ const w = R({
27499
27499
  container: this.container,
27500
27500
  openParams: o,
27501
27501
  i18n: i.i18n,
@@ -27505,7 +27505,7 @@ class JM extends Cs {
27505
27505
  this.useUIController = new HM(this, w);
27506
27506
  }
27507
27507
  if (this.params.useGuideController !== !1) {
27508
- const w = _({
27508
+ const w = R({
27509
27509
  container: this.container,
27510
27510
  pointSelectorMode: s,
27511
27511
  i18n: i.i18n
@@ -27532,7 +27532,7 @@ class JM extends Cs {
27532
27532
  e.list && (i = {
27533
27533
  polylines: e.list.map((o) => o.polyline).map((o) => {
27534
27534
  var r;
27535
- return ue(_({}, o), {
27535
+ return ue(R({}, o), {
27536
27536
  visibleFiveMode: (r = o.visibleFiveMode) != null ? r : ["Panorama"]
27537
27537
  });
27538
27538
  })
@@ -27643,7 +27643,7 @@ class JM extends Cs {
27643
27643
  pointSelectorConfig: this.params.pointSelectorConfig,
27644
27644
  magnifierParams: this.params.magnifierParams,
27645
27645
  getMeasureType: () => this.currentMeasureType,
27646
- mouseGroup: W1(_({}, e.crossHairParameter)),
27646
+ mouseGroup: W1(R({}, e.crossHairParameter)),
27647
27647
  userDistanceItemCreator: this.params.userDistanceItemCreator
27648
27648
  };
27649
27649
  }
@@ -27688,11 +27688,11 @@ class mn extends Pi {
27688
27688
  size: (d = e == null ? void 0 : e.size) != null ? d : 8,
27689
27689
  map: Kp || (Kp = new b.TextureLoader().load(KM)),
27690
27690
  sizeAttenuation: !1
27691
- }, a = new b.PointsMaterial(ue(_({}, r), {
27691
+ }, a = new b.PointsMaterial(ue(R({}, r), {
27692
27692
  color: (p = e == null ? void 0 : e.color) != null ? p : 16777215,
27693
27693
  depthTest: !0,
27694
27694
  opacity: (m = e == null ? void 0 : e.opacity) != null ? m : 1
27695
- })), l = new b.PointsMaterial(ue(_({}, r), {
27695
+ })), l = new b.PointsMaterial(ue(R({}, r), {
27696
27696
  size: a.size,
27697
27697
  color: a.color,
27698
27698
  depthWrite: !1,
@@ -27757,10 +27757,10 @@ class ca extends Di {
27757
27757
  f(this, "pointGroup", new Pi());
27758
27758
  f(this, "_paramsStyle");
27759
27759
  f(this, "setStyle", (e) => {
27760
- super.setStyle(e), this._paramsStyle = _(_({}, this._paramsStyle), e), this.pointMeshes.forEach(
27760
+ super.setStyle(e), this._paramsStyle = R(R({}, this._paramsStyle), e), this.pointMeshes.forEach(
27761
27761
  (i) => {
27762
27762
  var s, o, r;
27763
- return i.setStyle(ue(_({}, this._paramsStyle), { color: (r = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? r : (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
27763
+ return i.setStyle(ue(R({}, this._paramsStyle), { color: (r = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? r : (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
27764
27764
  }
27765
27765
  ), this.updateEdgePointsVisibility(), this.needsRender = !0;
27766
27766
  });
@@ -27793,7 +27793,7 @@ class ca extends Di {
27793
27793
  const i = e.map(Fe).filter(Ge);
27794
27794
  this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
27795
27795
  var r, a, l;
27796
- const o = new mn(ue(_({}, this.style), {
27796
+ const o = new mn(ue(R({}, this.style), {
27797
27797
  color: (l = (r = this._paramsStyle) == null ? void 0 : r.pointColor) != null ? l : (a = this._paramsStyle) == null ? void 0 : a.lineColor,
27798
27798
  tip: void 0
27799
27799
  }));
@@ -27859,7 +27859,7 @@ class ac extends Pi {
27859
27859
  return this._geometry;
27860
27860
  }
27861
27861
  setStyle(e) {
27862
- this.paramsStyle = _(_({}, this.paramsStyle), e), Ge(e.color) && (this.meshFont.material.color.set(new b.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), Ge(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);
27862
+ this.paramsStyle = R(R({}, this.paramsStyle), e), Ge(e.color) && (this.meshFont.material.color.set(new b.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), Ge(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);
27863
27863
  }
27864
27864
  highlight(e) {
27865
27865
  var i, s;
@@ -27912,7 +27912,7 @@ class cr extends ac {
27912
27912
  return this.points.length >= 3 ? new b.Vector3().crossVectors(this.points[1].clone().sub(this.points[0]), this.points[2].clone().sub(this.points[0])).normalize() : new b.Vector3(0, 0, 1);
27913
27913
  }
27914
27914
  get style() {
27915
- return ue(_({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
27915
+ return ue(R({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
27916
27916
  }
27917
27917
  get isBlank() {
27918
27918
  return !!this.geometry.isBlank;
@@ -27935,7 +27935,7 @@ class cr extends ac {
27935
27935
  }
27936
27936
  setStyle(e) {
27937
27937
  var s;
27938
- this._paramsStyle = _(_({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
27938
+ this._paramsStyle = R(R({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
27939
27939
  const i = (s = this._paramsStyle.occlusionVisibility) != null ? s : !0;
27940
27940
  this.areaDom && (this.areaDom.intersectCheck = !i), this.updateAreaItems();
27941
27941
  }
@@ -28536,12 +28536,12 @@ class mE extends St {
28536
28536
  polygonStyle: this.polygonStyle
28537
28537
  });
28538
28538
  this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
28539
- const i = new mn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new ca(ue(_({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), o = new cr(this.polygonStyle), r = new Di(ue(_({}, this.lineStyle), {
28539
+ const i = new mn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new ca(ue(R({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), o = new cr(this.polygonStyle), r = new Di(ue(R({}, this.lineStyle), {
28540
28540
  lineOpacity: 0.5,
28541
28541
  lineColor: 3407837,
28542
28542
  dashed: !0,
28543
28543
  cssStyle: "pointer-events: none; opacity: 0.5;"
28544
- })), a = new Di(ue(_({}, this.lineStyle), {
28544
+ })), a = new Di(ue(R({}, this.lineStyle), {
28545
28545
  lineOpacity: 0.5,
28546
28546
  lineColor: 3407837,
28547
28547
  dashed: !0,
@@ -28562,18 +28562,18 @@ class mE extends St {
28562
28562
  return;
28563
28563
  }
28564
28564
  if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(i), i.position.copy(I.point), c = null, h = !1), e.points.length >= 1)
28565
- if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(ue(_({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), s.setPoints([e.points.at(-1), I.point]), I.isAdsorbed)
28565
+ if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(ue(R({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), s.setPoints([e.points.at(-1), I.point]), I.isAdsorbed)
28566
28566
  r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
28567
28567
  else {
28568
28568
  const C = e.points.at(-1);
28569
28569
  if (Math.abs(I.point.y - C.y) > 0.2) {
28570
28570
  const S = new b.Vector3(I.point.x, C.y, I.point.z);
28571
- r.setStyle(ue(_({}, this.lineStyle), {
28571
+ r.setStyle(ue(R({}, this.lineStyle), {
28572
28572
  lineOpacity: 0.5,
28573
28573
  lineColor: 3407837,
28574
28574
  dashed: !0,
28575
28575
  cssStyle: "pointer-events: none; opacity: 0.5;"
28576
- })), a.setStyle(ue(_({}, this.lineStyle), {
28576
+ })), a.setStyle(ue(R({}, this.lineStyle), {
28577
28577
  lineOpacity: 0.5,
28578
28578
  lineColor: 3407837,
28579
28579
  dashed: !0,
@@ -28581,12 +28581,12 @@ class mE extends St {
28581
28581
  })), r.setPoints([C, S]), a.setPoints([S, I.point]), l.position.copy(S), c = S.clone(), h = !0;
28582
28582
  } else {
28583
28583
  let S = new b.Vector3();
28584
- Math.abs(I.point.x - C.x) < Math.abs(I.point.z - C.z) ? S = new b.Vector3(I.point.x, C.y, C.z) : S = new b.Vector3(C.x, C.y, I.point.z), r.setStyle(ue(_({}, this.lineStyle), {
28584
+ Math.abs(I.point.x - C.x) < Math.abs(I.point.z - C.z) ? S = new b.Vector3(I.point.x, C.y, C.z) : S = new b.Vector3(C.x, C.y, I.point.z), r.setStyle(ue(R({}, this.lineStyle), {
28585
28585
  lineOpacity: 0.5,
28586
28586
  lineColor: 3407837,
28587
28587
  dashed: !0,
28588
28588
  cssStyle: "pointer-events: none; opacity: 0.5;"
28589
- })), a.setStyle(ue(_({}, this.lineStyle), {
28589
+ })), a.setStyle(ue(R({}, this.lineStyle), {
28590
28590
  lineOpacity: 0.5,
28591
28591
  lineColor: 3407837,
28592
28592
  dashed: !0,
@@ -28597,7 +28597,7 @@ class mE extends St {
28597
28597
  }
28598
28598
  if (e.points.length >= 2) {
28599
28599
  const C = [...e.points, I.point];
28600
- J1(C) ? (o.setStyle(_({}, this.polygonStyle)), o.setPoints(C), this.group.addIfNotExists(o)) : o.removeFromParent();
28600
+ J1(C) ? (o.setStyle(R({}, this.polygonStyle)), o.setPoints(C), this.group.addIfNotExists(o)) : o.removeFromParent();
28601
28601
  }
28602
28602
  }, v = (I) => {
28603
28603
  if (!I)
@@ -28651,12 +28651,12 @@ class mE extends St {
28651
28651
  f(this, "setLengthEnable", (e) => {
28652
28652
  this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((i) => {
28653
28653
  i.changeConfig({
28654
- lineStyle: _({}, this.lineStyle),
28655
- polygonStyle: _({}, this.polygonStyle)
28654
+ lineStyle: R({}, this.lineStyle),
28655
+ polygonStyle: R({}, this.polygonStyle)
28656
28656
  }), this.addMeshEventListeners(i);
28657
28657
  }), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
28658
- lineStyle: _({}, this.lineStyle),
28659
- polygonStyle: _({}, this.polygonStyle)
28658
+ lineStyle: R({}, this.lineStyle),
28659
+ polygonStyle: R({}, this.polygonStyle)
28660
28660
  }), this.five.needsRender = !0;
28661
28661
  });
28662
28662
  /**
@@ -28667,16 +28667,16 @@ class mE extends St {
28667
28667
  if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((i) => {
28668
28668
  try {
28669
28669
  i.changeConfig({
28670
- lineStyle: _({}, this.lineStyle),
28671
- polygonStyle: _({}, this.polygonStyle)
28670
+ lineStyle: R({}, this.lineStyle),
28671
+ polygonStyle: R({}, this.polygonStyle)
28672
28672
  }), this.addMeshEventListeners(i);
28673
28673
  } catch (s) {
28674
28674
  }
28675
28675
  }), this.currentMeasureMesh)
28676
28676
  try {
28677
28677
  this.currentMeasureMesh.changeConfig({
28678
- lineStyle: _({}, this.lineStyle),
28679
- polygonStyle: _({}, this.polygonStyle)
28678
+ lineStyle: R({}, this.lineStyle),
28679
+ polygonStyle: R({}, this.polygonStyle)
28680
28680
  });
28681
28681
  } catch (i) {
28682
28682
  }
@@ -28691,16 +28691,16 @@ class mE extends St {
28691
28691
  if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((i) => {
28692
28692
  try {
28693
28693
  i.changeConfig({
28694
- lineStyle: _({}, this.lineStyle),
28695
- polygonStyle: _({}, this.polygonStyle)
28694
+ lineStyle: R({}, this.lineStyle),
28695
+ polygonStyle: R({}, this.polygonStyle)
28696
28696
  }), this.addMeshEventListeners(i);
28697
28697
  } catch (s) {
28698
28698
  }
28699
28699
  }), this.currentMeasureMesh)
28700
28700
  try {
28701
28701
  this.currentMeasureMesh.changeConfig({
28702
- lineStyle: _({}, this.lineStyle),
28703
- polygonStyle: _({}, this.polygonStyle)
28702
+ lineStyle: R({}, this.lineStyle),
28703
+ polygonStyle: R({}, this.polygonStyle)
28704
28704
  });
28705
28705
  } catch (i) {
28706
28706
  }
@@ -29237,7 +29237,7 @@ class mE extends St {
29237
29237
  });
29238
29238
  this.five = e;
29239
29239
  const s = { unit: "m", lengthEnable: !0, precision: 2 };
29240
- this.config = i ? _(_({}, s), i) : s, this.group = new Pi(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), gt("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
29240
+ this.config = i ? R(R({}, s), i) : s, this.group = new Pi(), this.group.name = "MeasureGroup", this.group.__five__ = this.five, this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), gt("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
29241
29241
  }
29242
29242
  get pointSelector() {
29243
29243
  return this._pointSelector ? this._pointSelector : (this._pointSelector = new Wl(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 }), this._pointSelector);
@@ -29483,20 +29483,20 @@ function PE(n, t, e) {
29483
29483
  );
29484
29484
  const C = (j) => {
29485
29485
  const z = Object.keys(d);
29486
- let R = j.target;
29487
- for (; R; ) {
29488
- const A = R.getAttribute("class");
29486
+ let _ = j.target;
29487
+ for (; _; ) {
29488
+ const A = _.getAttribute("class");
29489
29489
  if (!A) {
29490
- R = R.parentNode;
29490
+ _ = _.parentNode;
29491
29491
  continue;
29492
29492
  }
29493
29493
  if (A.includes("PanoSpatialTagPlugin__tag-content")) {
29494
- R = null;
29494
+ _ = null;
29495
29495
  break;
29496
29496
  }
29497
29497
  z.forEach((M) => {
29498
29498
  A.includes(M) && d[M](i);
29499
- }), R = R.parentNode;
29499
+ }), _ = _.parentNode;
29500
29500
  }
29501
29501
  };
29502
29502
  zt(() => {
@@ -29505,7 +29505,7 @@ function PE(n, t, e) {
29505
29505
  const L = sy.subscribe((j) => {
29506
29506
  if (j === null)
29507
29507
  return;
29508
- const [z, R] = j.split("-PanoSpatialTagPlugin-");
29508
+ const [z, _] = j.split("-PanoSpatialTagPlugin-");
29509
29509
  i === z && (p.emit("clickOrigin", { id: i, show: w }), I || (e(11, w = h), e(13, h = !h), I = setTimeout(
29510
29510
  () => {
29511
29511
  I = void 0;
@@ -29892,7 +29892,7 @@ const Fc = 1e-3, cm = 0.01, hm = Mu, Ez = (n, t) => {
29892
29892
  weight: (te = ce.weight) != null ? te : -1
29893
29893
  };
29894
29894
  }), le.render && (g.render = le.render), le.template && (g.template = le.template), le.events && (g.events = le.events), le.enabled === !1 && (g.enabled = le.enabled), le.folded === !0 && (g.folded = le.folded);
29895
- }, R = (le) => {
29895
+ }, _ = (le) => {
29896
29896
  g.intersectObjects = le, S();
29897
29897
  }, A = () => {
29898
29898
  g.enabled = !0, S();
@@ -29927,7 +29927,7 @@ const Fc = 1e-3, cm = 0.01, hm = Mu, Ez = (n, t) => {
29927
29927
  };
29928
29928
  return window.addEventListener("resize", O, !1), (Ae = n == null ? void 0 : n.model) != null && Ae.loaded ? B() : n.once("modelLoaded", B), n.on("dispose", q), {
29929
29929
  load: z,
29930
- setIntersectObjects: R,
29930
+ setIntersectObjects: _,
29931
29931
  unfoldAll: E,
29932
29932
  foldAll: k,
29933
29933
  unfold: x,
@@ -30226,10 +30226,10 @@ function _E(n, t, e) {
30226
30226
  const T = x.map((B) => {
30227
30227
  const q = y(k, B), ie = B.name.length * RE, Z = C(B.modelPosition[1], c), $ = (r ? v(k, B) : !0) && !I([q[0], q[1] + Z], ie);
30228
30228
  if (!$)
30229
- return ue(_({}, B), { visible: $ });
30229
+ return ue(R({}, B), { visible: $ });
30230
30230
  m.push(q);
30231
30231
  const oe = w(q);
30232
- return ue(_({}, B), {
30232
+ return ue(R({}, B), {
30233
30233
  visible: $,
30234
30234
  transform: oe,
30235
30235
  strokeLength: Z
@@ -30240,7 +30240,7 @@ function _E(n, t, e) {
30240
30240
  })).sort((B, q) => B.distance - q.distance);
30241
30241
  return T.map((B) => {
30242
30242
  const q = O.findIndex((ie) => ie.itemLabelItem.id === B.id);
30243
- return q !== void 0 ? ue(_({}, B), { zIndex: q * 10 }) : B;
30243
+ return q !== void 0 ? ue(R({}, B), { zIndex: q * 10 }) : B;
30244
30244
  });
30245
30245
  }, S = () => {
30246
30246
  m = [], e(1, u = L(o, u));
@@ -30252,14 +30252,14 @@ function _E(n, t, e) {
30252
30252
  e(4, g = !1), z();
30253
30253
  };
30254
30254
  zt(() => {
30255
- e(1, u = a), h = a, S(), R(), o.on("cameraUpdate", j);
30255
+ e(1, u = a), h = a, S(), _(), o.on("cameraUpdate", j);
30256
30256
  });
30257
30257
  const z = oy(
30258
30258
  () => {
30259
30259
  e(4, g = !0), S();
30260
30260
  },
30261
30261
  300
30262
- ), R = () => {
30262
+ ), _ = () => {
30263
30263
  window.addEventListener("resize", M, !1);
30264
30264
  }, A = () => {
30265
30265
  h !== a && (e(1, u = a), h = a, S());
@@ -30307,7 +30307,7 @@ let FE = class extends Me {
30307
30307
  }
30308
30308
  };
30309
30309
  function BE(n) {
30310
- return n.model_item_labels.map((t) => _({
30310
+ return n.model_item_labels.map((t) => R({
30311
30311
  modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
30312
30312
  }, t));
30313
30313
  }
@@ -30473,8 +30473,8 @@ const HE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
30473
30473
  const z = new b.MeshBasicMaterial({
30474
30474
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
30475
30475
  side: b.DoubleSide
30476
- }), R = new b.Mesh(I, z);
30477
- R.renderOrder = 1, R.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
30476
+ }), _ = new b.Mesh(I, z);
30477
+ _.renderOrder = 1, _.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
30478
30478
  const A = [y[1], y[2], y[3], y[0]], M = i.create3DDomContainer(A);
30479
30479
  if (M != null && M.container) {
30480
30480
  const E = document.createElement("div");
@@ -30482,9 +30482,9 @@ const HE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
30482
30482
  const k = document.createElement("img");
30483
30483
  k.src = sd, k.style.width = "200px", k.style.pointerEvents = "auto", k.onclick = () => {
30484
30484
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
30485
- }, E.appendChild(k), s.set(R, M);
30485
+ }, E.appendChild(k), s.set(_, M);
30486
30486
  }
30487
- return R;
30487
+ return _;
30488
30488
  }), h = (y) => {
30489
30489
  const w = new b.TextureLoader().load(y);
30490
30490
  return w.minFilter = b.LinearFilter, w.magFilter = b.LinearFilter, w.format = b.RGBFormat, w;
@@ -30505,7 +30505,7 @@ const HE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
30505
30505
  });
30506
30506
  }, d = (y, w) => K(void 0, null, function* () {
30507
30507
  const { video_src: I, video_poster_src: C, points: L } = y;
30508
- e.videoSource = I, e.rectPoints = VE(L).map((S) => S.map(({ x: j, y: z, z: R }) => new b.Vector3(j, z, R))), e.imageTexture = h(C), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!y.enable, e.enabled && a();
30508
+ e.videoSource = I, e.rectPoints = VE(L).map((S) => S.map(({ x: j, y: z, z: _ }) => new b.Vector3(j, z, _))), e.imageTexture = h(C), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!y.enable, e.enabled && a();
30509
30509
  }), p = (y) => {
30510
30510
  if (!e.enabled)
30511
30511
  return;
@@ -30519,14 +30519,14 @@ const HE = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
30519
30519
  return;
30520
30520
  const y = n.camera.position;
30521
30521
  if (s.forEach((w, I) => {
30522
- const C = w.css3DObject.position.clone(), L = C.clone().sub(y).normalize(), S = new b.Raycaster(y, L), j = n.model.intersectRaycaster(S)[0], z = C.distanceTo(y), R = 0.01;
30523
- j && j.distance + R < z ? w.hide() : w.show();
30522
+ const C = w.css3DObject.position.clone(), L = C.clone().sub(y).normalize(), S = new b.Raycaster(y, L), j = n.model.intersectRaycaster(S)[0], z = C.distanceTo(y), _ = 0.01;
30523
+ j && j.distance + _ < z ? w.hide() : w.show();
30524
30524
  }), !r()) {
30525
30525
  const w = e.rectPoints.find((I) => {
30526
30526
  const C = I[0].clone().add(I[1]).add(I[2]).add(I[3]).divideScalar(4);
30527
30527
  return I.map((L) => L.clone().add(C).divideScalar(2)).filter((L) => {
30528
- const S = L.distanceTo(y), j = new b.Raycaster(y, L.clone().sub(y).normalize()), z = n.model.intersectRaycaster(j)[0], R = 0.01;
30529
- return !(z && z.distance + R < S);
30528
+ const S = L.distanceTo(y), j = new b.Raycaster(y, L.clone().sub(y).normalize()), z = n.model.intersectRaycaster(j)[0], _ = 0.01;
30529
+ return !(z && z.distance + _ < S);
30530
30530
  }).length >= 2;
30531
30531
  });
30532
30532
  (!w || w.length === 0) && o(!0);
@@ -30769,7 +30769,7 @@ const { Raycaster: ZE, Vector3: Lz } = b, mm = (n, t, e, i) => {
30769
30769
  }
30770
30770
  }, JE = (n) => `translate(${n[0]}px, ${n[1]}px)`;
30771
30771
  function gm(n) {
30772
- return n.map((t) => _({
30772
+ return n.map((t) => R({
30773
30773
  observerIndex: void 0,
30774
30774
  visible: !1,
30775
30775
  isFold: !1
@@ -30948,15 +30948,15 @@ function t4(n, t, e) {
30948
30948
  }, C = (x, T) => {
30949
30949
  const O = T.map((q) => {
30950
30950
  if (x.state.panoIndex !== q.panoIndex)
30951
- return ue(_({}, q), { visible: !1 });
30951
+ return ue(R({}, q), { visible: !1 });
30952
30952
  const ie = I(x, q);
30953
30953
  q.name.length * e4;
30954
30954
  const Z = qE(q.modelPosition[1], l), se = x.currentMode === Ut.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, $ = o ? y(x, q) : !1, oe = se && !$;
30955
30955
  if (!oe)
30956
- return ue(_({}, q), { visible: oe });
30956
+ return ue(R({}, q), { visible: oe });
30957
30957
  g.push(ie);
30958
30958
  const De = JE(ie);
30959
- return ue(_({}, q), {
30959
+ return ue(R({}, q), {
30960
30960
  visible: oe,
30961
30961
  transform: De,
30962
30962
  strokeLength: Z
@@ -30967,7 +30967,7 @@ function t4(n, t, e) {
30967
30967
  })).sort((q, ie) => q.distance - ie.distance);
30968
30968
  return O.map((q) => {
30969
30969
  const ie = B.findIndex((Z) => Z.itemLabelItem.id === q.id);
30970
- return ie !== void 0 ? ue(_({}, q), { zIndex: ie * 10 }) : q;
30970
+ return ie !== void 0 ? ue(R({}, q), { zIndex: ie * 10 }) : q;
30971
30971
  });
30972
30972
  }, L = () => {
30973
30973
  g = [], e(1, u = C(s, u));
@@ -30980,7 +30980,7 @@ function t4(n, t, e) {
30980
30980
  300
30981
30981
  ), z = () => {
30982
30982
  s.once("renderFrame", L);
30983
- }, R = () => {
30983
+ }, _ = () => {
30984
30984
  window.addEventListener("resize", z, !1);
30985
30985
  }, A = () => {
30986
30986
  h !== r && (e(1, u = gm(r)), h = r, L());
@@ -31009,14 +31009,14 @@ function t4(n, t, e) {
31009
31009
  longitude: Math.PI + Math.atan2(ie.x, ie.z),
31010
31010
  latitude: Math.acos(ie.y / ie.length()) - Math.PI / 2
31011
31011
  };
31012
- s.setState(ue(_({}, Z), {
31012
+ s.setState(ue(R({}, Z), {
31013
31013
  mode: Ut.Mode.Panorama,
31014
31014
  panoIndex: x.observerIndex
31015
31015
  })), s.once("initAnimationEnded", () => {
31016
- e(1, u = u.map((se) => ue(_({}, se), {
31016
+ e(1, u = u.map((se) => ue(R({}, se), {
31017
31017
  isFold: se.id !== x.id
31018
31018
  }))), s.once("cameraUpdate", () => {
31019
- e(1, u = u.map((se) => ue(_({}, se), { isFold: !1 })));
31019
+ e(1, u = u.map((se) => ue(R({}, se), { isFold: !1 })));
31020
31020
  });
31021
31021
  });
31022
31022
  }
@@ -31024,7 +31024,7 @@ function t4(n, t, e) {
31024
31024
  u1(() => {
31025
31025
  A();
31026
31026
  }), zt(() => {
31027
- e(1, u = gm(r)), h = r, L(), R(), s.on("cameraUpdate", S);
31027
+ e(1, u = gm(r)), h = r, L(), _(), s.on("cameraUpdate", S);
31028
31028
  }), ti(() => {
31029
31029
  s.off("cameraUpdate", S), window.removeEventListener("resize", z, !1);
31030
31030
  });
@@ -31071,7 +31071,7 @@ class i4 extends Me {
31071
31071
  }
31072
31072
  }
31073
31073
  function n4(n) {
31074
- return n.item_labels.map((t) => ue(_({}, t), {
31074
+ return n.item_labels.map((t) => ue(R({}, t), {
31075
31075
  modelPosition: [t.position[0], t.position[1], t.position[2]],
31076
31076
  observerIndex: void 0
31077
31077
  }));
@@ -31341,18 +31341,18 @@ class p4 extends Cs {
31341
31341
  L.left = O, L.top = B, L.inSight = q && x < Math.PI / 2, L.cameraToward = h4(this.five), q ? l.push({ disFromCameraToLabel: M, left: O, top: B, index: S }) : L.transform = "translate(-50%, -50%)";
31342
31342
  } else
31343
31343
  L.inSight = !1;
31344
- const R = L, { svelteApp: j } = R, z = ns(R, ["svelteApp"]);
31344
+ const _ = L, { svelteApp: j } = _, z = ns(_, ["svelteApp"]);
31345
31345
  (A = L.svelteApp) == null || A.$set({ props: z });
31346
31346
  }), l.length > 1) {
31347
31347
  let L = 0;
31348
31348
  l.sort((S, j) => j.disFromCameraToLabel - S.disFromCameraToLabel);
31349
31349
  for (let S = 1; S < l.length; S++) {
31350
- const { index: j, left: z, top: R } = l[S - 1], { index: A, left: M, top: E } = l[S], k = this.container.children[j], x = this.container.children[A];
31350
+ const { index: j, left: z, top: _ } = l[S - 1], { index: A, left: M, top: E } = l[S], k = this.container.children[j], x = this.container.children[A];
31351
31351
  if (!k || !x)
31352
31352
  return;
31353
31353
  const T = {
31354
31354
  left: o * z / 100,
31355
- top: r * R / 100,
31355
+ top: r * _ / 100,
31356
31356
  width: (u = (h = (c = k.children) == null ? void 0 : c[0]) == null ? void 0 : h.clientWidth) != null ? u : 0,
31357
31357
  height: (m = (p = (d = k.children) == null ? void 0 : d[0]) == null ? void 0 : p.clientHeight) != null ? m : 0
31358
31358
  }, O = {
@@ -31414,7 +31414,7 @@ class p4 extends Cs {
31414
31414
  position: u,
31415
31415
  toward: d4(r.rad)
31416
31416
  });
31417
- }), this.labelItems = this.doorLabels.map((r) => ue(_({}, r), {
31417
+ }), this.labelItems = this.doorLabels.map((r) => ue(R({}, r), {
31418
31418
  left: 0,
31419
31419
  top: 0,
31420
31420
  visible: !1,
@@ -31429,7 +31429,7 @@ class p4 extends Cs {
31429
31429
  }
31430
31430
  setState(e, i) {
31431
31431
  const s = this.state;
31432
- this.state = _(_({}, s), e);
31432
+ this.state = R(R({}, s), e);
31433
31433
  const o = s.enabled && s.visible, r = this.state.enabled && this.state.visible;
31434
31434
  o !== r && this.applyState();
31435
31435
  }
@@ -31561,8 +31561,8 @@ function O4(n) {
31561
31561
  if (s.length === 0)
31562
31562
  return { geometry: new b.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
31563
31563
  const o = new b.CurvePath();
31564
- s.forEach((R) => {
31565
- const A = j4(R);
31564
+ s.forEach((_) => {
31565
+ const A = j4(_);
31566
31566
  A && o.add(A);
31567
31567
  });
31568
31568
  const r = Math.ceil(o.getLength() * 100);
@@ -31570,30 +31570,30 @@ function O4(n) {
31570
31570
  const a = o.getPoints(r), l = a.length;
31571
31571
  if (l <= 2)
31572
31572
  return { geometry: new b.BufferGeometry(), maxV: 0, curvePath: null, curvePoints: null };
31573
- const c = x4(a.map((R) => [R.x, R.z])), u = (l - 1) * T4 * D4, d = 2 * l, p = d * L4, m = d * z4, g = new Uint32Array(u), v = new Float32Array(p), y = new Float32Array(m);
31573
+ const c = x4(a.map((_) => [_.x, _.z])), u = (l - 1) * T4 * D4, d = 2 * l, p = d * L4, m = d * z4, g = new Uint32Array(u), v = new Float32Array(p), y = new Float32Array(m);
31574
31574
  let w = 0, I = 0;
31575
- for (let R = 0; R < l; R++) {
31576
- const [A, M] = c[R][0], E = a[R], { x: k, y: x, z: T } = E, O = new fe(k + A * i, x + 0.05, T + M * i);
31577
- v[R * 6 + 0] = O.x, v[R * 6 + 1] = O.y, v[R * 6 + 2] = O.z;
31575
+ for (let _ = 0; _ < l; _++) {
31576
+ const [A, M] = c[_][0], E = a[_], { x: k, y: x, z: T } = E, O = new fe(k + A * i, x + 0.05, T + M * i);
31577
+ v[_ * 6 + 0] = O.x, v[_ * 6 + 1] = O.y, v[_ * 6 + 2] = O.z;
31578
31578
  const B = new fe(k - A * i, x + 0.05, T - M * i);
31579
- v[R * 6 + 3] = B.x, v[R * 6 + 4] = B.y, v[R * 6 + 5] = B.z, w += R > 0 ? a[R - 1].clone().sub(a[R]).length() : 0;
31579
+ v[_ * 6 + 3] = B.x, v[_ * 6 + 4] = B.y, v[_ * 6 + 5] = B.z, w += _ > 0 ? a[_ - 1].clone().sub(a[_]).length() : 0;
31580
31580
  const q = w / e;
31581
- I = q, y[R * 4 + 0] = 0, y[R * 4 + 1] = q, y[R * 4 + 2] = 1, y[R * 4 + 3] = q;
31581
+ I = q, y[_ * 4 + 0] = 0, y[_ * 4 + 1] = q, y[_ * 4 + 2] = 1, y[_ * 4 + 3] = q;
31582
31582
  const ie = new b.Vector3().lerpVectors(O, B, 0.5);
31583
- n.skipPositions && n.skipPositions.some((se) => se.distanceTo(ie) < 0.26) || R !== l - 1 && (g[R * 6 + 0] = R * 2 + 0, g[R * 6 + 1] = R * 2 + 2, g[R * 6 + 2] = R * 2 + 1, g[R * 6 + 3] = R * 2 + 2, g[R * 6 + 4] = R * 2 + 3, g[R * 6 + 5] = R * 2 + 1);
31583
+ n.skipPositions && n.skipPositions.some((se) => se.distanceTo(ie) < 0.26) || _ !== l - 1 && (g[_ * 6 + 0] = _ * 2 + 0, g[_ * 6 + 1] = _ * 2 + 2, g[_ * 6 + 2] = _ * 2 + 1, g[_ * 6 + 3] = _ * 2 + 2, g[_ * 6 + 4] = _ * 2 + 3, g[_ * 6 + 5] = _ * 2 + 1);
31584
31584
  }
31585
31585
  const C = [];
31586
31586
  let L;
31587
31587
  const S = [];
31588
- for (let R = 0; R < l - 1; R++) {
31589
- if (L !== void 0 && R <= L)
31588
+ for (let _ = 0; _ < l - 1; _++) {
31589
+ if (L !== void 0 && _ <= L)
31590
31590
  continue;
31591
- const A = R + 1, M = {
31592
- x: v[R * 6 + 0],
31593
- y: v[R * 6 + 2]
31591
+ const A = _ + 1, M = {
31592
+ x: v[_ * 6 + 0],
31593
+ y: v[_ * 6 + 2]
31594
31594
  }, E = {
31595
- x: v[R * 6 + 3],
31596
- y: v[R * 6 + 5]
31595
+ x: v[_ * 6 + 3],
31596
+ y: v[_ * 6 + 5]
31597
31597
  }, k = {
31598
31598
  x: v[A * 6 + 0],
31599
31599
  y: v[A * 6 + 2]
@@ -31601,8 +31601,8 @@ function O4(n) {
31601
31601
  x: v[A * 6 + 3],
31602
31602
  y: v[A * 6 + 5]
31603
31603
  }, T = ly([M, E], [k, x]);
31604
- if (T && C.push(R), !T && C.length) {
31605
- C.push(R);
31604
+ if (T && C.push(_), !T && C.length) {
31605
+ C.push(_);
31606
31606
  const O = new b.Vector2(M.x, M.y).distanceTo(new b.Vector2(k.x, k.y)), B = new b.Vector2(E.x, E.y).distanceTo(new b.Vector2(x.x, x.y)), q = 300, ie = [], Z = [], se = Math.max(0, C[0] - e * q), $ = C[0];
31607
31607
  for (let Ae = se; Ae < $; Ae++)
31608
31608
  O < B ? ie.push({ x: v[Ae * 6 + 0], y: v[Ae * 6 + 2] }) : ie.push({ x: v[Ae * 6 + 3], y: v[Ae * 6 + 5] });
@@ -31640,9 +31640,9 @@ function O4(n) {
31640
31640
  }
31641
31641
  }
31642
31642
  const j = new Float32Array(d);
31643
- S.forEach((R) => {
31643
+ S.forEach((_) => {
31644
31644
  for (let A = 0; A < l - 1; A++)
31645
- A >= R.start && A <= R.end ? (j[A * 2 + 0] = 1, j[A * 2 + 1] = 1) : j[A] !== 1 && (j[A * 2 + 0] = 0, j[A * 2 + 1] = 0);
31645
+ A >= _.start && A <= _.end ? (j[A * 2 + 0] = 1, j[A * 2 + 1] = 1) : j[A] !== 1 && (j[A * 2 + 0] = 0, j[A * 2 + 1] = 0);
31646
31646
  });
31647
31647
  const z = new b.BufferGeometry();
31648
31648
  return z.setAttribute("position", new b.BufferAttribute(v, 3)), z.setAttribute("uv", new b.BufferAttribute(y, 2)), z.setIndex(new b.BufferAttribute(g, 1)), { geometry: z, maxV: I, animationWillError: S, curvePath: o, curvePoints: a };
@@ -32543,7 +32543,7 @@ class da {
32543
32543
  this.cache_visible.clear(), this.cache_raycasterDistance.clear();
32544
32544
  }
32545
32545
  static generateCameraTagKey(t, e, i = 3) {
32546
- const s = _(_({}, e.five.getCurrentState()), t), o = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
32546
+ const s = R(R({}, e.five.getCurrentState()), t), o = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
32547
32547
  return o ? [
32548
32548
  //
32549
32549
  o.x.toFixed(i),
@@ -32746,18 +32746,18 @@ class ak extends Cs {
32746
32746
  const o = {}, r = {}, a = {};
32747
32747
  this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([I, C]) => {
32748
32748
  var M, E;
32749
- const L = I, S = L.split("-"), j = I.startsWith("["), z = j ? S[0].slice(1, -1) : void 0, R = j ? S.slice(1) : S, A = z ? ["PanoramaLike", "ModelLike"].includes(z) ? (M = r[z]) != null ? M : r[z] = {} : (E = a[z]) != null ? E : a[z] = {} : o;
32749
+ const L = I, S = L.split("-"), j = I.startsWith("["), z = j ? S[0].slice(1, -1) : void 0, _ = j ? S.slice(1) : S, A = z ? ["PanoramaLike", "ModelLike"].includes(z) ? (M = r[z]) != null ? M : r[z] = {} : (E = a[z]) != null ? E : a[z] = {} : o;
32750
32750
  if (!A[L]) {
32751
- if (R.length === 0 && (A[L] = C), R.length === 1) {
32752
- const [k] = R;
32751
+ if (_.length === 0 && (A[L] = C), _.length === 1) {
32752
+ const [k] = _;
32753
32753
  (e.contentType === k || k === "Any") && (A[L] = C);
32754
32754
  }
32755
- if (R.length === 2) {
32756
- const [k = "Any", x = "Any"] = R;
32755
+ if (_.length === 2) {
32756
+ const [k = "Any", x = "Any"] = _;
32757
32757
  k === "Mixin" && e.contentType === x && (A[L] = C), (e.stickType === k || k === "Any") && (e.contentType === x || x === "Any") && (A[L] = C);
32758
32758
  }
32759
- if (R.length === 3) {
32760
- const [k = "Any", x, T] = R;
32759
+ if (_.length === 3) {
32760
+ const [k = "Any", x, T] = _;
32761
32761
  if (x === "Audio" && e.contentType === "Audio") {
32762
32762
  const O = e;
32763
32763
  (O.stickType === k || k === "Any") && O.data.appearance === T && (A[L] = C);
@@ -32774,7 +32774,7 @@ class ak extends Cs {
32774
32774
  const L = u[I];
32775
32775
  u[I] = it({}, c, L, ...Object.values(C), l, { _isMerged: !0 });
32776
32776
  });
32777
- const p = ue(_({}, h), { configWithFiveMode: u });
32777
+ const p = ue(R({}, h), { configWithFiveMode: u });
32778
32778
  return _l(p), Object.values(u).forEach((I) => _l(I)), p._isMerged = !0, p;
32779
32779
  }
32780
32780
  }
@@ -32894,21 +32894,21 @@ function Hc(n, t, e) {
32894
32894
  const s = {}, o = {}, r = {};
32895
32895
  t.contentTypeConfig && Object.entries(t.contentTypeConfig).forEach(([w, I]) => {
32896
32896
  var A, M;
32897
- const C = w, L = C.split("-"), S = w.startsWith("["), j = S ? L[0].slice(1, -1) : void 0, z = S ? L.slice(1) : L, R = j ? ["PanoramaLike", "ModelLike"].includes(j) ? (A = o[j]) != null ? A : o[j] = {} : (M = r[j]) != null ? M : r[j] = {} : s;
32898
- if (!R[C]) {
32899
- if (z.length === 0 && (R[C] = I), z.length === 1) {
32897
+ const C = w, L = C.split("-"), S = w.startsWith("["), j = S ? L[0].slice(1, -1) : void 0, z = S ? L.slice(1) : L, _ = j ? ["PanoramaLike", "ModelLike"].includes(j) ? (A = o[j]) != null ? A : o[j] = {} : (M = r[j]) != null ? M : r[j] = {} : s;
32898
+ if (!_[C]) {
32899
+ if (z.length === 0 && (_[C] = I), z.length === 1) {
32900
32900
  const [E] = z;
32901
- (n.contentType === E || E === "Any") && (R[C] = I);
32901
+ (n.contentType === E || E === "Any") && (_[C] = I);
32902
32902
  }
32903
32903
  if (z.length === 2) {
32904
32904
  const [E = "Any", k = "Any"] = z;
32905
- E === "Mixin" && n.contentType === k && (R[C] = I), (n.stickType === E || E === "Any") && (n.contentType === k || k === "Any") && (R[C] = I);
32905
+ E === "Mixin" && n.contentType === k && (_[C] = I), (n.stickType === E || E === "Any") && (n.contentType === k || k === "Any") && (_[C] = I);
32906
32906
  }
32907
32907
  if (z.length === 3) {
32908
32908
  const [E = "Any", k, x] = z;
32909
32909
  if (k === "Audio" && n.contentType === "Audio") {
32910
32910
  const T = n;
32911
- (T.stickType === E || E === "Any") && T.data.appearance === x && (R[C] = I);
32911
+ (T.stickType === E || E === "Any") && T.data.appearance === x && (_[C] = I);
32912
32912
  }
32913
32913
  }
32914
32914
  }
@@ -32922,7 +32922,7 @@ function Hc(n, t, e) {
32922
32922
  const C = h[w];
32923
32923
  h[w] = it({}, l, C, ...Object.values(I), a, { _isMerged: !0 });
32924
32924
  });
32925
- const d = ue(_({}, c), { configWithFiveMode: h });
32925
+ const d = ue(R({}, c), { configWithFiveMode: h });
32926
32926
  return _l(d), Object.values(h).forEach((w) => _l(w)), d._isMerged = !0, d;
32927
32927
  }
32928
32928
  function Mm(n) {
@@ -33026,7 +33026,7 @@ class ur {
33026
33026
  const r = Hc(e, t.config), a = this.getConfig(e);
33027
33027
  e.config = a, this.id = (h = e.id) != null ? h : Mt(), this.enabled = (u = e.enabled) != null ? u : !0, this.contentType = e.contentType, this.hoverEnabled = (p = (d = a.popoverConfig) == null ? void 0 : d.enabled) != null ? p : !0, this.data = (m = a.initialData) != null && m.important ? it(e.data, s, a.initialData) : it(e.data, a.initialData, s);
33028
33028
  let l;
33029
- typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state = _({
33029
+ typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state = R({
33030
33030
  visible: void 0,
33031
33031
  unfolded: l
33032
33032
  }, a.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.normalLineLength = (v = (g = e.style) == null ? void 0 : g.point) == null ? void 0 : v.normalLen, this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
@@ -33112,7 +33112,7 @@ class ur {
33112
33112
  if (wi(o))
33113
33113
  return this;
33114
33114
  const r = this.workUtil.getObserverPosition(o), a = this.centerPosition.clone().sub(r).normalize();
33115
- this.five.setState(_({
33115
+ this.five.setState(R({
33116
33116
  mode: "Panorama",
33117
33117
  workCode: this.workUtil.workCode,
33118
33118
  panoIndex: o
@@ -33170,7 +33170,7 @@ class ur {
33170
33170
  return;
33171
33171
  }
33172
33172
  const r = s ? Zl : Xv;
33173
- this._currentBlinkInstance = r(o, _({
33173
+ this._currentBlinkInstance = r(o, R({
33174
33174
  begin: () => {
33175
33175
  s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
33176
33176
  },
@@ -33233,7 +33233,7 @@ class ur {
33233
33233
  * @param deepMerge 是否深度合并 data,默认为 true
33234
33234
  */
33235
33235
  setData(t, e = !0) {
33236
- e ? this.data = it(this.data, t) : this.data = _(_({}, this.data), t), this.hooks.emit("dataChanged", this.data);
33236
+ e ? this.data = it(this.data, t) : this.data = R(R({}, this.data), t), this.hooks.emit("dataChanged", this.data);
33237
33237
  }
33238
33238
  /**
33239
33239
  * @description 修改标签位置
@@ -33272,7 +33272,7 @@ class ur {
33272
33272
  return (l = o != null ? o : i) != null ? l : {};
33273
33273
  }
33274
33274
  getDistance(t, e = 3) {
33275
- const i = _(_({}, this.five.getCurrentState()), t), { panoIndex: s, mode: o } = i, r = o === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
33275
+ const i = R(R({}, this.five.getCurrentState()), t), { panoIndex: s, mode: o } = i, r = o === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
33276
33276
  return !r || !a ? -1 : r.distanceTo(a);
33277
33277
  }
33278
33278
  /**
@@ -33300,7 +33300,7 @@ class ur {
33300
33300
  getVisible(t) {
33301
33301
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
33302
33302
  return !1;
33303
- const e = _(_({}, this.five.getCurrentState()), t);
33303
+ const e = R(R({}, this.five.getCurrentState()), t);
33304
33304
  let i = this.cache.getVisible(this, e);
33305
33305
  return wi(i) && (i = this.computeVisible(e).value, this.cache.setVisible(this, e, i)), i;
33306
33306
  }
@@ -33361,7 +33361,7 @@ class ur {
33361
33361
  return t != null ? t : "Dom";
33362
33362
  }
33363
33363
  computeVisible(t) {
33364
- const e = _(_({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, o = [];
33364
+ const e = R(R({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, o = [];
33365
33365
  return (() => {
33366
33366
  var c, u, d, p;
33367
33367
  const l = (c = this.getConfig().visibleConfig) != null ? c : {};
@@ -33382,7 +33382,7 @@ class ur {
33382
33382
  if (l.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
33383
33383
  const h = this.computeVisibleByFloorIndex(), { value: g } = h, v = ns(h, ["value"]);
33384
33384
  if (g === !1)
33385
- return _({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
33385
+ return R({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
33386
33386
  }
33387
33387
  if (ds(s) && l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && i !== void 0) {
33388
33388
  if (o.push("visiblePanoIndex"), Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(i))
@@ -33469,38 +33469,36 @@ class ur {
33469
33469
  }
33470
33470
  /** 通过射线检测标签可用性 */
33471
33471
  computeVisibleByIntersect(t) {
33472
- var l, c, h, u, d;
33472
+ var l, c, h, u;
33473
33473
  const e = eo(eo((l = this.getConfig().visibleConfig) != null ? l : {}).intersectRaycaster), i = t != null ? t : this.five.getCurrentState().panoIndex, s = ds(this.five.getCurrentState().mode) ? this.workUtil.getObserverPosition(i) : this.five.camera.position;
33474
33474
  if (s === void 0)
33475
33475
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: i } };
33476
- if (e.hideWhenModelNotLoaded && ((c = this.fiveUtil.model) == null ? void 0 : c.loaded) === !1)
33477
- return { value: !1, reason: { type: "model not loaded", fivePanoIndex: i } };
33478
33476
  const o = As(
33479
33477
  (() => {
33480
- var m;
33481
- const p = (m = e.checkPoints) != null ? m : "center";
33482
- return p === "center" ? Cm(this) : p === "corner" ? Lh(this) : Array.isArray(p) ? p : [];
33478
+ var p;
33479
+ const d = (p = e.checkPoints) != null ? p : "center";
33480
+ return d === "center" ? Cm(this) : d === "corner" ? Lh(this) : Array.isArray(d) ? d : [];
33483
33481
  })()
33484
33482
  );
33485
33483
  let r = 0, a = 0;
33486
- for (const p of o) {
33487
- const m = new b.Vector3().subVectors(p, s).normalize();
33488
- let g;
33489
- Rn.set(s, m);
33490
- const [v] = this.fiveUtil.model.intersectRaycaster(Rn);
33491
- g = v == null ? void 0 : v.distance;
33492
- const y = (() => {
33484
+ for (const d of o) {
33485
+ const p = new b.Vector3().subVectors(d, s).normalize();
33486
+ let m;
33487
+ Rn.set(s, p);
33488
+ const [g] = this.fiveUtil.model.intersectRaycaster(Rn);
33489
+ m = g == null ? void 0 : g.distance;
33490
+ const v = (() => {
33493
33491
  if (!Qs(this))
33494
33492
  return;
33495
- const S = this.plugin.tags.filter(Qs).map((z) => {
33496
- var R;
33497
- return (R = z.model) == null ? void 0 : R.object;
33498
- }).filter(Ge), [j] = Rn.intersectObjects(S, !0);
33499
- return j;
33500
- })(), w = s.distanceTo(p), I = (h = e.distanceAccuracy) != null ? h : 0.01;
33501
- g = Math.min(g != null ? g : 1 / 0, (u = y == null ? void 0 : y.distance) != null ? u : 1 / 0), g + I >= w ? r++ : a++;
33502
- const L = (d = e.needPassed) != null ? d : 1;
33503
- if (r >= L)
33493
+ const L = this.plugin.tags.filter(Qs).map((j) => {
33494
+ var z;
33495
+ return (z = j.model) == null ? void 0 : z.object;
33496
+ }).filter(Ge), [S] = Rn.intersectObjects(L, !0);
33497
+ return S;
33498
+ })(), y = s.distanceTo(d), w = (c = e.distanceAccuracy) != null ? c : 0.01;
33499
+ m = Math.min(m != null ? m : 1 / 0, (h = v == null ? void 0 : v.distance) != null ? h : 1 / 0), m + w >= y ? r++ : a++;
33500
+ const C = (u = e.needPassed) != null ? u : 1;
33501
+ if (r >= C)
33504
33502
  return { value: !0 };
33505
33503
  }
33506
33504
  return a === 0 ? { value: !0 } : {
@@ -33574,7 +33572,7 @@ class ur {
33574
33572
  }).map((l) => ({ tag: l, id: l.id, tagConfig: l.getConfig().unfoldedConfig })).filter(({ tagConfig: l }) => {
33575
33573
  var c, h;
33576
33574
  return !(typeof l == "function" || l.keep || l.autoUnfold === !1 || ((c = l.autoUnfold) == null ? void 0 : c.enable) === !1 || ((h = l.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance");
33577
- }).map((l) => ue(_({}, l), { distance: l.tag.getDistance() })).filter(({ distance: l, tagConfig: c }) => {
33575
+ }).map((l) => ue(R({}, l), { distance: l.tag.getDistance() })).filter(({ distance: l, tagConfig: c }) => {
33578
33576
  const h = c.autoUnfold.distance;
33579
33577
  return !(h && Lr(l, h) === !1);
33580
33578
  }).sort((l, c) => l.distance - c.distance).findIndex((l) => l.id === this.id);
@@ -33642,7 +33640,7 @@ class ur {
33642
33640
  return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
33643
33641
  if (!this.enabled)
33644
33642
  return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
33645
- const t = ue(_({}, this.computeVisible()), {
33643
+ const t = ue(R({}, this.computeVisible()), {
33646
33644
  tagInstance: this
33647
33645
  });
33648
33646
  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 };
@@ -33778,7 +33776,7 @@ class uk extends ur {
33778
33776
  * 使用屏幕空间反投影方法,确保任意视角下都保持固定像素距离
33779
33777
  */
33780
33778
  updateTagNormalLinePosition(e) {
33781
- var L, S, j, z, R, A, M;
33779
+ var L, S, j, z, _, A, M;
33782
33780
  if (!this.screenPosition || !this.tagNormalLine)
33783
33781
  return;
33784
33782
  const { force: i = !1 } = e != null ? e : {};
@@ -33792,7 +33790,7 @@ class uk extends ur {
33792
33790
  if (!E && !k)
33793
33791
  return;
33794
33792
  }
33795
- if (o.position = new b.Vector3().fromArray(this.position).toArray(), o.screenLeft = (z = this.screenPosition.leftPx) != null ? z : 0, o.screenTop = (R = this.screenPosition.topPx) != null ? R : 0, o.scale = (A = this.screenPosition.scale) != null ? A : 1, o.visible = this.visible, !this.five.renderer)
33793
+ if (o.position = new b.Vector3().fromArray(this.position).toArray(), o.screenLeft = (z = this.screenPosition.leftPx) != null ? z : 0, o.screenTop = (_ = this.screenPosition.topPx) != null ? _ : 0, o.scale = (A = this.screenPosition.scale) != null ? A : 1, o.visible = this.visible, !this.five.renderer)
33796
33794
  return;
33797
33795
  const a = this.five.renderer.getSize(Nc), l = Bt(
33798
33796
  Fe(this.originPosition),
@@ -33885,7 +33883,7 @@ class uk extends ur {
33885
33883
  const vy = 1, Em = `CSS3DObject@${vy}`, dk = 216e-5, fk = 3e-3;
33886
33884
  class yy extends Vn {
33887
33885
  constructor(e) {
33888
- var L, S, j, z, R;
33886
+ var L, S, j, z, _;
33889
33887
  if (wi(e.cornerPoints) && wi(e.width))
33890
33888
  throw new Error("cornerPoints and width cannot be both empty");
33891
33889
  const i = (L = e.container) != null ? L : document.createElement("div"), s = (S = e.cornerPoints) != null ? S : (() => {
@@ -33896,7 +33894,7 @@ class yy extends Vn {
33896
33894
  new fe(A, -A, 0),
33897
33895
  new fe(A, A, 0)
33898
33896
  ];
33899
- })(), o = (j = e.ratio) != null ? j : fk, r = (z = e.dpr) != null ? z : 1, a = (R = e.pointerEvents) != null ? R : "auto", l = Math.max(dk, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
33897
+ })(), o = (j = e.ratio) != null ? j : fk, r = (z = e.dpr) != null ? z : 1, a = (_ = e.pointerEvents) != null ? _ : "auto", l = Math.max(dk, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]);
33900
33898
  let u = No(c / o * r), d = No(h / o * r);
33901
33899
  const p = Et(...s);
33902
33900
  let m;
@@ -34568,10 +34566,10 @@ function xk(n, t, e) {
34568
34566
  let p, m, g = [];
34569
34567
  function v(S) {
34570
34568
  const j = [], z = 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"));
34571
- return S.slice().replace(z, (R) => `${c}${h}${R}${c}`).split(c).forEach((R) => R.startsWith(h) ? j.push({
34569
+ return S.slice().replace(z, (_) => `${c}${h}${_}${c}`).split(c).forEach((_) => _.startsWith(h) ? j.push({
34572
34570
  id: Mt(),
34573
- content: R.slice(h.length)
34574
- }) : j.push(...R.split("").map((A) => A === " " ? u : A === `
34571
+ content: _.slice(h.length)
34572
+ }) : j.push(..._.split("").map((A) => A === " " ? u : A === `
34575
34573
  ` ? d : A).map((A) => ({ id: Mt(), content: A })))), j;
34576
34574
  }
34577
34575
  function y() {
@@ -34589,7 +34587,7 @@ function xk(n, t, e) {
34589
34587
  }
34590
34588
  function I(S) {
34591
34589
  const j = function() {
34592
- const z = Q4((R) => S[R].getBoundingClientRect().x, [Math.min(S.length - 1, 10), Math.min(S.length - 1, 30)]);
34590
+ const z = Q4((_) => S[_].getBoundingClientRect().x, [Math.min(S.length - 1, 10), Math.min(S.length - 1, 30)]);
34593
34591
  if (z > 0)
34594
34592
  return z;
34595
34593
  }();
@@ -36453,7 +36451,7 @@ function q8({
36453
36451
  head: 0,
36454
36452
  tail: 0
36455
36453
  };
36456
- return ue(_({}, i), {
36454
+ return ue(R({}, i), {
36457
36455
  total: i.head + i.tail
36458
36456
  });
36459
36457
  }
@@ -36706,8 +36704,8 @@ var el = Qx, Fl = {}, Xx = {
36706
36704
  }
36707
36705
  };
36708
36706
  (function(n, t) {
36709
- var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]", g = "[object Promise]", v = "[object RegExp]", y = "[object Set]", w = "[object String]", I = "[object Symbol]", C = "[object WeakMap]", L = "[object ArrayBuffer]", S = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", R = "[object Int8Array]", A = "[object Int16Array]", M = "[object Int32Array]", E = "[object Uint8Array]", k = "[object Uint8ClampedArray]", x = "[object Uint16Array]", T = "[object Uint32Array]", O = /[\\^$.*+?()[\]{}|]/g, B = /\w*$/, q = /^\[object .+?Constructor\]$/, ie = /^(?:0|[1-9]\d*)$/, Z = {};
36710
- Z[o] = Z[r] = Z[L] = Z[S] = Z[a] = Z[l] = Z[j] = Z[z] = Z[R] = Z[A] = Z[M] = Z[d] = Z[p] = Z[m] = Z[v] = Z[y] = Z[w] = Z[I] = Z[E] = Z[k] = Z[x] = Z[T] = !0, Z[c] = Z[h] = Z[C] = !1;
36707
+ var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", d = "[object Map]", p = "[object Number]", m = "[object Object]", g = "[object Promise]", v = "[object RegExp]", y = "[object Set]", w = "[object String]", I = "[object Symbol]", C = "[object WeakMap]", L = "[object ArrayBuffer]", S = "[object DataView]", j = "[object Float32Array]", z = "[object Float64Array]", _ = "[object Int8Array]", A = "[object Int16Array]", M = "[object Int32Array]", E = "[object Uint8Array]", k = "[object Uint8ClampedArray]", x = "[object Uint16Array]", T = "[object Uint32Array]", O = /[\\^$.*+?()[\]{}|]/g, B = /\w*$/, q = /^\[object .+?Constructor\]$/, ie = /^(?:0|[1-9]\d*)$/, Z = {};
36708
+ Z[o] = Z[r] = Z[L] = Z[S] = Z[a] = Z[l] = Z[j] = Z[z] = Z[_] = Z[A] = Z[M] = Z[d] = Z[p] = Z[m] = Z[v] = Z[y] = Z[w] = Z[I] = Z[E] = Z[k] = Z[x] = Z[T] = !0, Z[c] = Z[h] = Z[C] = !1;
36711
36709
  var se = typeof _i == "object" && _i && _i.Object === Object && _i, $ = typeof self == "object" && self && self.Object === Object && self, oe = se || $ || Function("return this")(), De = t && !t.nodeType && t, ne = De && !0 && n && !n.nodeType && n, Ae = ne && ne.exports === De;
36712
36710
  function le(D, G) {
36713
36711
  return D.set(G[0], G[1]), D;
@@ -37059,7 +37057,7 @@ var el = Qx, Fl = {}, Xx = {
37059
37057
  return Gi(D, de);
37060
37058
  case j:
37061
37059
  case z:
37062
- case R:
37060
+ case _:
37063
37061
  case A:
37064
37062
  case M:
37065
37063
  case E:
@@ -37159,7 +37157,7 @@ var Bl = {}, Zx = {
37159
37157
  }
37160
37158
  };
37161
37159
  (function(n, t) {
37162
- var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", I = "[object Promise]", C = "[object Proxy]", L = "[object RegExp]", S = "[object Set]", j = "[object String]", z = "[object Symbol]", R = "[object Undefined]", A = "[object WeakMap]", M = "[object ArrayBuffer]", E = "[object DataView]", k = "[object Float32Array]", x = "[object Float64Array]", T = "[object Int8Array]", O = "[object Int16Array]", B = "[object Int32Array]", q = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", se = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, oe = /^\[object .+?Constructor\]$/, De = /^(?:0|[1-9]\d*)$/, ne = {};
37160
+ var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", d = "[object Error]", p = "[object Function]", m = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", y = "[object Null]", w = "[object Object]", I = "[object Promise]", C = "[object Proxy]", L = "[object RegExp]", S = "[object Set]", j = "[object String]", z = "[object Symbol]", _ = "[object Undefined]", A = "[object WeakMap]", M = "[object ArrayBuffer]", E = "[object DataView]", k = "[object Float32Array]", x = "[object Float64Array]", T = "[object Int8Array]", O = "[object Int16Array]", B = "[object Int32Array]", q = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", Z = "[object Uint16Array]", se = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, oe = /^\[object .+?Constructor\]$/, De = /^(?:0|[1-9]\d*)$/, ne = {};
37163
37161
  ne[k] = ne[x] = ne[T] = ne[O] = ne[B] = ne[q] = ne[ie] = ne[Z] = ne[se] = !0, ne[a] = ne[l] = ne[M] = ne[h] = ne[E] = ne[u] = ne[d] = ne[p] = ne[g] = ne[v] = ne[w] = ne[L] = ne[S] = ne[j] = ne[A] = !1;
37164
37162
  var Ae = typeof _i == "object" && _i && _i.Object === Object && _i, le = typeof self == "object" && self && self.Object === Object && self, ce = Ae || le || Function("return this")(), be = t && !t.nodeType && t, te = be && !0 && n && !n.nodeType && n, Te = te && te.exports === be, _e = Te && Ae.process, ye = function() {
37165
37163
  try {
@@ -37374,7 +37372,7 @@ var Bl = {}, Zx = {
37374
37372
  return go(D) ? de : we(de, ee(D));
37375
37373
  }
37376
37374
  function Gi(D) {
37377
- return D == null ? D === void 0 ? R : y : Ii && Ii in Object(D) ? re(D) : oi(D);
37375
+ return D == null ? D === void 0 ? _ : y : Ii && Ii in Object(D) ? re(D) : oi(D);
37378
37376
  }
37379
37377
  function es(D) {
37380
37378
  return sn(D) && Gi(D) == a;
@@ -38587,7 +38585,7 @@ function yS(n, t, e) {
38587
38585
  loaded: () => e(6, o = we)
38588
38586
  })(pe);
38589
38587
  }), g = Gn();
38590
- let { timingFunction: v = "ease-in-out" } = t, { arrows: y = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: I = 0 } = t, { duration: C = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: S = 3e3 } = t, { autoplayDirection: j = bs } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: R = !1 } = t, { dots: A = !0 } = t, { swiping: M = !0 } = t, { particlesToShow: E = 1 } = t, { particlesToScroll: k = 1 } = t;
38588
+ let { timingFunction: v = "ease-in-out" } = t, { arrows: y = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: I = 0 } = t, { duration: C = 500 } = t, { autoplay: L = !1 } = t, { autoplayDuration: S = 3e3 } = t, { autoplayDirection: j = bs } = t, { pauseOnFocus: z = !1 } = t, { autoplayProgressVisible: _ = !1 } = t, { dots: A = !0 } = t, { swiping: M = !0 } = t, { particlesToShow: E = 1 } = t, { particlesToScroll: k = 1 } = t;
38591
38589
  function x(pe, we) {
38592
38590
  return K(this, null, function* () {
38593
38591
  const Oe = Xr(we, "animated", !0);
@@ -38683,7 +38681,7 @@ function yS(n, t, e) {
38683
38681
  }
38684
38682
  const Le = (pe) => $(pe.detail);
38685
38683
  return n.$$set = (pe) => {
38686
- "timingFunction" in pe && e(0, v = pe.timingFunction), "arrows" in pe && e(1, y = pe.arrows), "infinite" in pe && e(2, w = pe.infinite), "initialPageIndex" in pe && e(24, I = pe.initialPageIndex), "duration" in pe && e(25, C = pe.duration), "autoplay" in pe && e(26, L = pe.autoplay), "autoplayDuration" in pe && e(27, S = pe.autoplayDuration), "autoplayDirection" in pe && e(28, j = pe.autoplayDirection), "pauseOnFocus" in pe && e(29, z = pe.pauseOnFocus), "autoplayProgressVisible" in pe && e(3, R = pe.autoplayProgressVisible), "dots" in pe && e(4, A = pe.dots), "swiping" in pe && e(30, M = pe.swiping), "particlesToShow" in pe && e(31, E = pe.particlesToShow), "particlesToScroll" in pe && e(32, k = pe.particlesToScroll), "$$scope" in pe && e(36, s = pe.$$scope);
38684
+ "timingFunction" in pe && e(0, v = pe.timingFunction), "arrows" in pe && e(1, y = pe.arrows), "infinite" in pe && e(2, w = pe.infinite), "initialPageIndex" in pe && e(24, I = pe.initialPageIndex), "duration" in pe && e(25, C = pe.duration), "autoplay" in pe && e(26, L = pe.autoplay), "autoplayDuration" in pe && e(27, S = pe.autoplayDuration), "autoplayDirection" in pe && e(28, j = pe.autoplayDirection), "pauseOnFocus" in pe && e(29, z = pe.pauseOnFocus), "autoplayProgressVisible" in pe && e(3, _ = pe.autoplayProgressVisible), "dots" in pe && e(4, A = pe.dots), "swiping" in pe && e(30, M = pe.swiping), "particlesToShow" in pe && e(31, E = pe.particlesToShow), "particlesToScroll" in pe && e(32, k = pe.particlesToScroll), "$$scope" in pe && e(36, s = pe.$$scope);
38687
38685
  }, n.$$.update = () => {
38688
38686
  n.$$.dirty[0] & /*currentPageIndex*/
38689
38687
  32 && g("pageChange", r), n.$$.dirty[0] & /*infinite*/
@@ -38699,7 +38697,7 @@ function yS(n, t, e) {
38699
38697
  v,
38700
38698
  y,
38701
38699
  w,
38702
- R,
38700
+ _,
38703
38701
  A,
38704
38702
  r,
38705
38703
  o,
@@ -39120,7 +39118,7 @@ function ES(n, t, e) {
39120
39118
  }, z = (E) => {
39121
39119
  i && i.pause();
39122
39120
  };
39123
- function R(E) {
39121
+ function _(E) {
39124
39122
  qe[E ? "unshift" : "push"](() => {
39125
39123
  o.videoInstance = E, e(0, o);
39126
39124
  });
@@ -39161,7 +39159,7 @@ function ES(n, t, e) {
39161
39159
  S,
39162
39160
  j,
39163
39161
  z,
39164
- R,
39162
+ _,
39165
39163
  A,
39166
39164
  M
39167
39165
  ];
@@ -39563,7 +39561,7 @@ function LS(n, t, e) {
39563
39561
  let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: d = !0 } = t, { animation: p = !0 } = t, { mediaItemConfig: m } = t, { enableCarousel: g = !0 } = t, { autoplayConfig: v = {} } = t;
39564
39562
  const { autoplayVideo: y = !1, autoplayCarousel: w = !0, autoplayVideoInCarousel: I = !1 } = v;
39565
39563
  let C = [], L = 0, S, j = null;
39566
- const z = dn("hooks"), R = dn("mediaStore");
39564
+ const z = dn("hooks"), _ = dn("mediaStore");
39567
39565
  function A() {
39568
39566
  const T = C[L], O = T == null ? void 0 : T.videoInstance;
39569
39567
  O && (O.paused ? (O.muted = !1, O.play()) : O.pause());
@@ -39604,7 +39602,7 @@ function LS(n, t, e) {
39604
39602
  });
39605
39603
  }
39606
39604
  const k = (T) => {
39607
- i || R.set({ currentMediaElement: null }), e(11, L = T.detail);
39605
+ i || _.set({ currentMediaElement: null }), e(11, L = T.detail);
39608
39606
  };
39609
39607
  function x(T) {
39610
39608
  n.$$.not_equal(C[0], T) && (C[0] = T, e(8, C));
@@ -39633,7 +39631,7 @@ function LS(n, t, e) {
39633
39631
  S,
39634
39632
  s,
39635
39633
  y,
39636
- R,
39634
+ _,
39637
39635
  g,
39638
39636
  v,
39639
39637
  M,
@@ -40273,7 +40271,7 @@ function NS(n) {
40273
40271
  ), z = (
40274
40272
  /*hasTags*/
40275
40273
  n[11] && vg(n)
40276
- ), R = (
40274
+ ), _ = (
40277
40275
  /*showMedia*/
40278
40276
  n[15] && /*mediaData*/
40279
40277
  n[16] && /*mediaData*/
@@ -40291,7 +40289,7 @@ function NS(n) {
40291
40289
  );
40292
40290
  return {
40293
40291
  c() {
40294
- t = W("div"), ve(e.$$.fragment), i = he(), s = W("div"), o = he(), r = W("div"), j && j.c(), a = he(), l = W("div"), c = W("div"), h = W("div"), u = W("div"), p = Be(d), m = he(), z && z.c(), g = he(), R && R.c(), v = he(), A && A.c(), y = he(), M && M.c(), w = he(), E && E.c(), P(s, "class", "line svelte-biv7k0"), F(
40292
+ t = W("div"), ve(e.$$.fragment), i = he(), s = W("div"), o = he(), r = W("div"), j && j.c(), a = he(), l = W("div"), c = W("div"), h = W("div"), u = W("div"), p = Be(d), m = he(), z && z.c(), g = he(), _ && _.c(), v = he(), A && A.c(), y = he(), M && M.c(), w = he(), E && E.c(), P(s, "class", "line svelte-biv7k0"), F(
40295
40293
  s,
40296
40294
  "transition-delay",
40297
40295
  /*unfolded*/
@@ -40342,7 +40340,7 @@ function NS(n) {
40342
40340
  );
40343
40341
  },
40344
40342
  m(k, x) {
40345
- X(k, t, x), me(e, t, null), V(t, i), V(t, s), V(t, o), V(t, r), j && j.m(r, null), V(r, a), V(r, l), V(l, c), V(c, h), V(h, u), V(u, p), V(l, m), z && z.m(l, null), V(l, g), R && R.m(l, null), V(l, v), A && A.m(l, null), V(l, y), M && M.m(l, null), V(l, w), E && E.m(l, null), C = !0, L || (S = Re(
40343
+ X(k, t, x), me(e, t, null), V(t, i), V(t, s), V(t, o), V(t, r), j && j.m(r, null), V(r, a), V(r, l), V(l, c), V(c, h), V(h, u), V(u, p), V(l, m), z && z.m(l, null), V(l, g), _ && _.m(l, null), V(l, v), A && A.m(l, null), V(l, y), M && M.m(l, null), V(l, w), E && E.m(l, null), C = !0, L || (S = Re(
40346
40344
  window,
40347
40345
  "resize",
40348
40346
  /*onwindowresize*/
@@ -40372,9 +40370,9 @@ function NS(n) {
40372
40370
  k[11] ? z ? z.p(k, x) : (z = vg(k), z.c(), z.m(l, g)) : z && (z.d(1), z = null), /*showMedia*/
40373
40371
  k[15] && /*mediaData*/
40374
40372
  k[16] && /*mediaData*/
40375
- k[16].length > 0 ? R ? (R.p(k, x), x[0] & /*showMedia, mediaData*/
40376
- 98304 && H(R, 1)) : (R = Ag(k), R.c(), H(R, 1), R.m(l, v)) : R && (xe(), Y(R, 1, 1, () => {
40377
- R = null;
40373
+ k[16].length > 0 ? _ ? (_.p(k, x), x[0] & /*showMedia, mediaData*/
40374
+ 98304 && H(_, 1)) : (_ = Ag(k), _.c(), H(_, 1), _.m(l, v)) : _ && (xe(), Y(_, 1, 1, () => {
40375
+ _ = null;
40378
40376
  }), Se()), /*data*/
40379
40377
  k[2].description ? A ? A.p(k, x) : (A = wg(k), A.c(), A.m(l, y)) : A && (A.d(1), A = null), /*havePrice*/
40380
40378
  k[3] || /*data*/
@@ -40427,19 +40425,19 @@ function NS(n) {
40427
40425
  );
40428
40426
  },
40429
40427
  i(k) {
40430
- C || (H(e.$$.fragment, k), H(R), C = !0);
40428
+ C || (H(e.$$.fragment, k), H(_), C = !0);
40431
40429
  },
40432
40430
  o(k) {
40433
- Y(e.$$.fragment, k), Y(R), C = !1;
40431
+ Y(e.$$.fragment, k), Y(_), C = !1;
40434
40432
  },
40435
40433
  d(k) {
40436
- k && Q(t), ge(e), j && j.d(), z && z.d(), R && R.d(), A && A.d(), M && M.d(), E && E.d(), L = !1, S();
40434
+ k && Q(t), ge(e), j && j.d(), z && z.d(), _ && _.d(), A && A.d(), M && M.d(), E && E.d(), L = !1, S();
40437
40435
  }
40438
40436
  };
40439
40437
  }
40440
40438
  const GS = 499, WS = 238, US = 280, md = 40;
40441
40439
  function QS(n, t, e) {
40442
- let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, I, C, L, { tag: S } = t, j = 0, z, R = 0, A = !1;
40440
+ let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, I, C, L, { tag: S } = t, j = 0, z, _ = 0, A = !1;
40443
40441
  function M(x) {
40444
40442
  Math.abs(z - x) > 5 && (e(20, z = x), setTimeout(
40445
40443
  () => {
@@ -40474,9 +40472,9 @@ function QS(n, t, e) {
40474
40472
  if (ie === !0)
40475
40473
  return u ? WS : US;
40476
40474
  })()), n.$$.dirty[0] & /*tagsCalculated, maxWidth, tagsOffsetHeight, maxTagsLength*/
40477
- 7340096 && (!A || d && d > 0) && (e(21, R = Math.max(1, Math.floor(((d || 172) - 20) / md))), z !== void 0 && z > 40 && e(21, R = Math.max(1, R - 1)), e(22, A = !0)), n.$$.dirty[0] & /*data, maxTagsLength*/
40478
- 2097156 && e(5, p = (o.brandTags || []).filter(Boolean).slice(0, R)), n.$$.dirty[0] & /*maxTagsLength, primaryTags*/
40479
- 2097184 && e(23, m = Math.max(0, R - p.length)), n.$$.dirty[0] & /*data, secondaryTagsLimit*/
40475
+ 7340096 && (!A || d && d > 0) && (e(21, _ = Math.max(1, Math.floor(((d || 172) - 20) / md))), z !== void 0 && z > 40 && e(21, _ = Math.max(1, _ - 1)), e(22, A = !0)), n.$$.dirty[0] & /*data, maxTagsLength*/
40476
+ 2097156 && e(5, p = (o.brandTags || []).filter(Boolean).slice(0, _)), n.$$.dirty[0] & /*maxTagsLength, primaryTags*/
40477
+ 2097184 && e(23, m = Math.max(0, _ - p.length)), n.$$.dirty[0] & /*data, secondaryTagsLimit*/
40480
40478
  8388612 && e(4, g = (o.tags || []).filter(Boolean).slice(0, m)), n.$$.dirty[0] & /*primaryTags, secondaryTags*/
40481
40479
  48 && e(11, I = p.length > 0 || g.length > 0), n.$$.dirty[0] & /*havePrice, data*/
40482
40480
  12 && (r || o.highlightText), n.$$.dirty[0] & /*tag*/
@@ -40504,7 +40502,7 @@ function QS(n, t, e) {
40504
40502
  s,
40505
40503
  M,
40506
40504
  z,
40507
- R,
40505
+ _,
40508
40506
  A,
40509
40507
  m,
40510
40508
  u,
@@ -40880,7 +40878,7 @@ function JS(n, t, e) {
40880
40878
  e(
40881
40879
  5,
40882
40880
  d.onplay = (v) => {
40883
- h.emit("playStateChange", _({
40881
+ h.emit("playStateChange", R({
40884
40882
  event: v,
40885
40883
  state: "playing",
40886
40884
  mediaInstance: d
@@ -40890,7 +40888,7 @@ function JS(n, t, e) {
40890
40888
  ), e(
40891
40889
  5,
40892
40890
  d.onpause = (v) => {
40893
- h.emit("playStateChange", _({
40891
+ h.emit("playStateChange", R({
40894
40892
  event: v,
40895
40893
  state: "paused",
40896
40894
  mediaInstance: d
@@ -40900,7 +40898,7 @@ function JS(n, t, e) {
40900
40898
  ), e(
40901
40899
  5,
40902
40900
  d.onended = (v) => {
40903
- h.emit("playStateChange", _({
40901
+ h.emit("playStateChange", R({
40904
40902
  event: v,
40905
40903
  state: "paused",
40906
40904
  mediaInstance: d
@@ -40931,11 +40929,11 @@ function JS(n, t, e) {
40931
40929
  v !== d && (p || d == null || d.pause());
40932
40930
  });
40933
40931
  function g(v) {
40934
- d && (h.emit("click", _({
40932
+ d && (h.emit("click", R({
40935
40933
  event: v,
40936
40934
  target: "AudioTagPlayIcon",
40937
40935
  audioInstance: d
40938
- }, l)), u.set({ currentMediaElement: d }), h.emit("playStateChange", _({
40936
+ }, l)), u.set({ currentMediaElement: d }), h.emit("playStateChange", R({
40939
40937
  event: v,
40940
40938
  state: d.paused ? "playing" : "paused",
40941
40939
  mediaInstance: d
@@ -41966,7 +41964,7 @@ function w9(n) {
41966
41964
  const r = zy(t);
41967
41965
  return Qc.set(t, r), r;
41968
41966
  })(), { width: s, height: o } = yield i;
41969
- return ue(_({}, n), {
41967
+ return ue(R({}, n), {
41970
41968
  width: s / e,
41971
41969
  height: o / e
41972
41970
  });
@@ -41978,7 +41976,7 @@ function P9(n) {
41978
41976
  if (!t)
41979
41977
  throw new Error("KeyframeIcon requires steps");
41980
41978
  const { width: o, height: r } = yield zy(e), a = o / i, l = r / i, c = a / t, h = l, u = 1 / s * t + "s";
41981
- return ue(_({}, n), {
41979
+ return ue(R({}, n), {
41982
41980
  width: c,
41983
41981
  height: h,
41984
41982
  duration: u
@@ -42749,7 +42747,7 @@ function B9(n) {
42749
42747
  }
42750
42748
  function us(n) {
42751
42749
  const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
42752
- return ue(_({}, n), { width: o, height: r });
42750
+ return ue(R({}, n), { width: o, height: r });
42753
42751
  }
42754
42752
  function Br(n) {
42755
42753
  if (!n)
@@ -42772,7 +42770,7 @@ function V9(n, t, e) {
42772
42770
  function C(x) {
42773
42771
  return K(this, null, function* () {
42774
42772
  if (typeof m == "number")
42775
- return ue(_({}, x), { width: m });
42773
+ return ue(R({}, x), { width: m });
42776
42774
  const T = yield w9(x);
42777
42775
  return w("iconLoaded", T), T;
42778
42776
  });
@@ -42784,19 +42782,19 @@ function V9(n, t, e) {
42784
42782
  L();
42785
42783
  });
42786
42784
  let S = null, j = null, z = null;
42787
- const R = /* @__PURE__ */ new Map();
42785
+ const _ = /* @__PURE__ */ new Map();
42788
42786
  let A = null;
42789
42787
  function M(x) {
42790
42788
  return K(this, null, function* () {
42791
- const T = R.get(x);
42789
+ const T = _.get(x);
42792
42790
  if (T)
42793
42791
  return yield T;
42794
42792
  const O = fetch(x, { cache: "force-cache" }).then((B) => B.text());
42795
- R.set(x, O);
42793
+ _.set(x, O);
42796
42794
  try {
42797
42795
  return yield O;
42798
42796
  } catch (B) {
42799
- throw R.delete(x), B;
42797
+ throw _.delete(x), B;
42800
42798
  }
42801
42799
  });
42802
42800
  }
@@ -43146,7 +43144,7 @@ function X9(n) {
43146
43144
  }
43147
43145
  function Y9(n) {
43148
43146
  const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
43149
- return ue(_({}, n), { width: o, height: r });
43147
+ return ue(R({}, n), { width: o, height: r });
43150
43148
  }
43151
43149
  function Z9(n, t, e) {
43152
43150
  let i, s, o, r, a, { width: l = null } = t, { icon: c = null } = t, { shadow: h = !1 } = t;
@@ -43883,9 +43881,9 @@ function yT(n, t, e) {
43883
43881
  function w(z) {
43884
43882
  z ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
43885
43883
  }
43886
- function I(z, R, A) {
43884
+ function I(z, _, A) {
43887
43885
  var M, E;
43888
- return !(!z.enabled || !R.visible || !R.enabled || !A.visible || !((M = z.state) != null && M.visible) || ((E = z.temporaryState) == null ? void 0 : E.visible) === !1 || z instanceof jy && z.loading);
43886
+ return !(!z.enabled || !_.visible || !_.enabled || !A.visible || !((M = z.state) != null && M.visible) || ((E = z.temporaryState) == null ? void 0 : E.visible) === !1 || z instanceof jy && z.loading);
43889
43887
  }
43890
43888
  function C(z) {
43891
43889
  qe[z ? "unshift" : "push"](() => {
@@ -43904,10 +43902,10 @@ function yT(n, t, e) {
43904
43902
  return n.$$set = (z) => {
43905
43903
  "tag" in z && e(0, c = z.tag), "hooks" in z && e(1, h = z.hooks), "rendererMap" in z && e(2, u = z.rendererMap), "contentTypeMap" in z && e(3, d = z.contentTypeMap), "state" in z && e(6, p = z.state), "mediaStore" in z && e(7, m = z.mediaStore), "temporaryState" in z && e(8, g = z.temporaryState);
43906
43904
  }, n.$$.update = () => {
43907
- var z, R, A, M, E, k, x, T, O, B, q;
43905
+ var z, _, A, M, E, k, x, T, O, B, q;
43908
43906
  n.$$.dirty & /*tag*/
43909
43907
  1 && e(12, i = (z = c.state) == null ? void 0 : z.unfolded), n.$$.dirty & /*tag*/
43910
- 1 && e(11, s = (R = c.state) == null ? void 0 : R.visible), n.$$.dirty & /*state, temporaryState, tag*/
43908
+ 1 && e(11, s = (_ = c.state) == null ? void 0 : _.visible), n.$$.dirty & /*state, temporaryState, tag*/
43911
43909
  321 && e(13, o = p.visible && g.visible && ((A = c.state) == null ? void 0 : A.visible)), n.$$.dirty & /*tag*/
43912
43910
  1 && (r = c.id), n.$$.dirty & /*tag, state, temporaryState*/
43913
43911
  321 && e(5, a = !I(c, p, g)), n.$$.dirty & /*isVisible*/
@@ -43997,7 +43995,7 @@ class jy extends ur {
43997
43995
  c.classList.add("tag-media-container");
43998
43996
  const h = "black";
43999
43997
  c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
44000
- const u = _({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new yy(ue(_({}, u), { mode: d })), m = this.computeNormal();
43998
+ const u = R({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new yy(ue(R({}, u), { mode: d })), m = this.computeNormal();
44001
43999
  p.position.add(m.clone().setLength(an.Z_FIGHTING_OFFSET)), s.add(p);
44002
44000
  let g;
44003
44001
  p.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, p, (y) => {
@@ -44373,7 +44371,7 @@ function ST(n, t) {
44373
44371
  return n;
44374
44372
  }
44375
44373
  function TT(n) {
44376
- const t = Xs(_({
44374
+ const t = Xs(R({
44377
44375
  position: "absolute",
44378
44376
  display: "block",
44379
44377
  borderRadius: "4px",
@@ -44609,7 +44607,7 @@ function jT() {
44609
44607
  ] };
44610
44608
  }
44611
44609
  function os(n) {
44612
- const t = Xs(_({
44610
+ const t = Xs(R({
44613
44611
  background: "#FFFF00",
44614
44612
  width: "9px",
44615
44613
  height: "9px",
@@ -45119,11 +45117,11 @@ class By {
45119
45117
  f(this, "camera");
45120
45118
  f(this, "container");
45121
45119
  f(this, "defaults");
45122
- this.camera = t, this.container = e, this.defaults = _({}, i || {});
45120
+ this.camera = t, this.container = e, this.defaults = R({}, i || {});
45123
45121
  }
45124
45122
  /** 创建无限长直线(Line + LineBasicMaterial),穿过整个平面 */
45125
45123
  createSolidLine(t, e, i) {
45126
- const s = _(_({ color: 16777215, renderOrder: Zi.DRAG_GUIDE_LINE }, this.defaults), i || {}), o = e.clone().normalize(), r = this.computeInfiniteLineLength(t), a = t.clone().add(o.clone().multiplyScalar(-r)), l = t.clone().add(o.clone().multiplyScalar(r)), c = new Float32Array([a.x, a.y, a.z, l.x, l.y, l.z]), h = new b.BufferGeometry();
45124
+ const s = R(R({ color: 16777215, renderOrder: Zi.DRAG_GUIDE_LINE }, this.defaults), i || {}), o = e.clone().normalize(), r = this.computeInfiniteLineLength(t), a = t.clone().add(o.clone().multiplyScalar(-r)), l = t.clone().add(o.clone().multiplyScalar(r)), c = new Float32Array([a.x, a.y, a.z, l.x, l.y, l.z]), h = new b.BufferGeometry();
45127
45125
  h.setAttribute("position", new b.BufferAttribute(c, 3));
45128
45126
  const u = new b.LineBasicMaterial({
45129
45127
  color: s.color,
@@ -45153,7 +45151,7 @@ class By {
45153
45151
  }
45154
45152
  /** 更新默认配置 */
45155
45153
  updateDefaults(t) {
45156
- this.defaults = _(_({}, this.defaults), t);
45154
+ this.defaults = R(R({}, this.defaults), t);
45157
45155
  }
45158
45156
  }
45159
45157
  var Y0, Z0;
@@ -45455,11 +45453,11 @@ class UT {
45455
45453
  return NT();
45456
45454
  if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
45457
45455
  return WT();
45458
- const i = _({}, this.state);
45459
- this.state = _(_({}, 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 });
45456
+ const i = R({}, this.state);
45457
+ this.state = R(R({}, 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 });
45460
45458
  }
45461
45459
  addControllers(t) {
45462
- this.controllers = _(_({}, this.controllers), t), this.setState(this.state);
45460
+ this.controllers = R(R({}, this.controllers), t), this.setState(this.state);
45463
45461
  }
45464
45462
  /**
45465
45463
  * @description 初始化 helpers 的位置
@@ -45765,7 +45763,7 @@ class XT extends Ia {
45765
45763
  this.scale(i);
45766
45764
  }
45767
45765
  scale(e) {
45768
- var R, A;
45766
+ var _, A;
45769
45767
  if (!this.startInfo)
45770
45768
  return;
45771
45769
  const i = this.originObject3D, { startPoint: s, plane: o } = this.startInfo, r = this.helperObject3D.cornerPositions;
@@ -45818,7 +45816,7 @@ class XT extends Ia {
45818
45816
  const w = new fe().subVectors(r[1], r[0]).length() / u.length(), I = new fe().subVectors(r[3], r[0]).length() / d.length(), C = new fe(w, I, 1), L = new b.Matrix4().scale(C);
45819
45817
  i.isCSS3DObjectPlus && i.applyScaleMatrix4 ? i.applyScaleMatrix4(L) : i.scale.applyMatrix4(L), s.position.copy(a);
45820
45818
  const S = new fe().addVectors(r[0], r[2]).divideScalar(2), j = new fe().subVectors(S, l), z = new b.Matrix4().setPosition(j);
45821
- i.applyMatrix4(z), (R = this.helperObject3D.css3DInstance) == null || R.css3DObject.applyMatrix4(z), (A = this.helperObject3D.plane) == null || A.applyMatrix4(z), this.internalHooks.emit("applyObjectScale", { matrix: L }), this.internalHooks.emit("applyObjectPosition", { matrix: z }), this.render();
45819
+ i.applyMatrix4(z), (_ = this.helperObject3D.css3DInstance) == null || _.css3DObject.applyMatrix4(z), (A = this.helperObject3D.plane) == null || A.applyMatrix4(z), this.internalHooks.emit("applyObjectScale", { matrix: L }), this.internalHooks.emit("applyObjectPosition", { matrix: z }), this.render();
45822
45820
  }
45823
45821
  dragEnd() {
45824
45822
  this.isDragging && (this.startInfo = void 0, this.isDragging = !1, "onScaleEnd" in this.helperObject3D && typeof this.helperObject3D.onScaleEnd == "function" && this.helperObject3D.onScaleEnd(), this.hooks.emit("scaleEnd"), this.render());
@@ -46099,8 +46097,8 @@ class $T extends Ia {
46099
46097
  return [];
46100
46098
  const g = [], v = m.count;
46101
46099
  for (let z = 0; z < v; z++) {
46102
- const R = new b.Vector3().fromBufferAttribute(m, z);
46103
- d.updateMatrixWorld(!0), R.applyMatrix4(d.matrixWorld), g.push(R);
46100
+ const _ = new b.Vector3().fromBufferAttribute(m, z);
46101
+ d.updateMatrixWorld(!0), _.applyMatrix4(d.matrixWorld), g.push(_);
46104
46102
  }
46105
46103
  const y = g.slice(0, 4);
46106
46104
  if (!y || y.length < 4)
@@ -46113,8 +46111,8 @@ class $T extends Ia {
46113
46111
  const z = new b.Vector3();
46114
46112
  if (e.ray.intersectPlane(I, z), !z)
46115
46113
  return;
46116
- const R = new b.Matrix4().getInverse(this.helperObject3D.matrixWorld);
46117
- S = z.clone().applyMatrix4(R);
46114
+ const _ = new b.Matrix4().getInverse(this.helperObject3D.matrixWorld);
46115
+ S = z.clone().applyMatrix4(_);
46118
46116
  }
46119
46117
  const j = s.clone().applyMatrix4(new b.Matrix4().getInverse(this.helperObject3D.matrixWorld));
46120
46118
  (c = (l = this.config) == null ? void 0 : l.scaleCallback) == null || c.call(l, {
@@ -46616,8 +46614,8 @@ class Vy extends Cs {
46616
46614
  return e7();
46617
46615
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
46618
46616
  return i7();
46619
- const s = _({}, this.state);
46620
- this.state = _(_({}, 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 });
46617
+ const s = R({}, this.state);
46618
+ this.state = R(R({}, 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 });
46621
46619
  }
46622
46620
  getObject3DHelper(e) {
46623
46621
  return this.objectHelperMap.get(e);
@@ -46639,7 +46637,7 @@ class Vy extends Cs {
46639
46637
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
46640
46638
  return;
46641
46639
  }
46642
- const s = new UT(), o = [], r = (I = this.five.getElement()) == null ? void 0 : I.parentElement, a = this.five.camera, c = _(_({}, {
46640
+ const s = new UT(), o = [], r = (I = this.five.getElement()) == null ? void 0 : I.parentElement, a = this.five.camera, c = R(R({}, {
46643
46641
  moveHelper: !0,
46644
46642
  rotateHelper: !0,
46645
46643
  scaleHelper: !0,
@@ -46650,7 +46648,7 @@ class Vy extends Cs {
46650
46648
  return typeof C == "boolean" ? C : C.enable;
46651
46649
  }, w = {};
46652
46650
  if (y(h)) {
46653
- const C = _(_({}, this.getConfig(c.moveHelper)), c), L = new xT(e, _({}, C)), S = new zr(
46651
+ const C = R(R({}, this.getConfig(c.moveHelper)), c), L = new xT(e, R({}, C)), S = new zr(
46654
46652
  this.five,
46655
46653
  v,
46656
46654
  BT,
@@ -46663,7 +46661,7 @@ class Vy extends Cs {
46663
46661
  w.moveController = S.helperController, o.push(() => S.dispose());
46664
46662
  }
46665
46663
  if (y(u)) {
46666
- const C = _(_({}, this.getConfig(c.rotateHelper)), c), L = new DT(e, _({ container: r }, C)), S = new zr(
46664
+ const C = R(R({}, this.getConfig(c.rotateHelper)), c), L = new DT(e, R({ container: r }, C)), S = new zr(
46667
46665
  this.five,
46668
46666
  v,
46669
46667
  QT,
@@ -46706,13 +46704,13 @@ class Vy extends Cs {
46706
46704
  const z = e;
46707
46705
  if (!z || z.mode !== "front")
46708
46706
  return;
46709
- const R = (S = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? S : su(this.five);
46710
- R && (this.css3DObjectParentMap.set(z, z.parent), z.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(R), (j = this.css3DRender.getBehindCSS3DObjectGroup()) == null || j.add(z), this.css3DRender.render(this.five.camera));
46707
+ const _ = (S = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? S : su(this.five);
46708
+ _ && (this.css3DObjectParentMap.set(z, z.parent), z.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(_), (j = this.css3DRender.getBehindCSS3DObjectGroup()) == null || j.add(z), this.css3DRender.render(this.five.camera));
46711
46709
  } else
46712
46710
  e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
46713
46711
  });
46714
46712
  } else {
46715
- const C = _(_({}, this.getConfig(c.scaleHelper)), c), L = new qT(e, C), S = new zr(
46713
+ const C = R(R({}, this.getConfig(c.scaleHelper)), c), L = new qT(e, C), S = new zr(
46716
46714
  this.five,
46717
46715
  v,
46718
46716
  $T,
@@ -46796,7 +46794,7 @@ class n7 {
46796
46794
  return this._pointSelector;
46797
46795
  const t = (i = this.config) == null ? void 0 : i.magnifier;
46798
46796
  let e = t === null || t === !1 ? { magnifier: null } : { magnifierParams: t };
46799
- return (s = this.config) != null && s.hideCursorCircle && (e = ue(_({}, e), { pointHelper: null })), this._pointSelector = new Wl(this.five, {
46797
+ return (s = this.config) != null && s.hideCursorCircle && (e = ue(R({}, e), { pointHelper: null })), this._pointSelector = new Wl(this.five, {
46800
46798
  mode: "cursor",
46801
46799
  helper: e,
46802
46800
  hitFilter: (o = this.config) == null ? void 0 : o.hitFilter
@@ -46883,7 +46881,7 @@ class Ny extends Pi {
46883
46881
  if (r !== 0 && a === void 0)
46884
46882
  return;
46885
46883
  const l = (c = this.lines[r]) != null ? c : (() => {
46886
- const h = new ca(ue(_({}, this.style), {
46884
+ const h = new ca(ue(R({}, this.style), {
46887
46885
  pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
46888
46886
  }));
46889
46887
  return this.lines[r] = h, this.add(h), h;
@@ -46892,7 +46890,7 @@ class Ny extends Pi {
46892
46890
  }), s.length === 0 ? (this.lines.forEach((o) => o.removeFromParent()), this.lines = []) : s.length === 1 || this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((o) => o.removeFromParent());
46893
46891
  }
46894
46892
  setStyle(e) {
46895
- this.paramsStyle = _(_({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
46893
+ this.paramsStyle = R(R({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
46896
46894
  }
46897
46895
  highlight() {
46898
46896
  this.lines.forEach((e) => e.highlight());
@@ -46903,13 +46901,13 @@ class Ny extends Pi {
46903
46901
  }
46904
46902
  class io extends Ny {
46905
46903
  constructor(...e) {
46906
- super(ue(_({}, e[0]), { withDots: !1 }));
46904
+ super(ue(R({}, e[0]), { withDots: !1 }));
46907
46905
  f(this, "name", "PolylineMesh");
46908
46906
  }
46909
46907
  }
46910
46908
  class fs extends Ny {
46911
46909
  constructor(...e) {
46912
- super(ue(_({}, e[0]), { withDots: !0 }));
46910
+ super(ue(R({}, e[0]), { withDots: !0 }));
46913
46911
  f(this, "name", "PolylineWithDotsMesh");
46914
46912
  }
46915
46913
  }
@@ -46939,7 +46937,7 @@ class Ji extends Pi {
46939
46937
  const s = i != null ? i : this;
46940
46938
  return s.updateMatrixWorld(), WA(s, e);
46941
46939
  });
46942
- e != null && e.id && (this.uuid = e.id), this.config = _({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (Ge((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = ue(_({}, e.style), { occlusionMode: this.config.occlusionMode })), Ge((o = this.config) == null ? void 0 : o.occlusionVisibility) && (e.style = ue(_({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), gt("esc", () => {
46940
+ e != null && e.id && (this.uuid = e.id), this.config = R({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (Ge((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = ue(R({}, e.style), { occlusionMode: this.config.occlusionMode })), Ge((o = this.config) == null ? void 0 : o.occlusionVisibility) && (e.style = ue(R({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), gt("esc", () => {
46943
46941
  this.stopCreating();
46944
46942
  }), this.config.defaultAction && (gt("backspace, delete", () => {
46945
46943
  this.selected && this.delete();
@@ -47094,19 +47092,19 @@ class Ma extends fc {
47094
47092
  });
47095
47093
  // 移动中的处理
47096
47094
  f(this, "onMove", () => {
47097
- this.currentOperation && (this.currentOperation = ue(_({}, this.currentOperation), {
47095
+ this.currentOperation && (this.currentOperation = ue(R({}, this.currentOperation), {
47098
47096
  status: "moving"
47099
47097
  }), this.onObjectUpdate(!1));
47100
47098
  });
47101
47099
  // 旋转中的处理
47102
47100
  f(this, "onRotate", () => {
47103
- this.currentOperation && (this.currentOperation = ue(_({}, this.currentOperation), {
47101
+ this.currentOperation && (this.currentOperation = ue(R({}, this.currentOperation), {
47104
47102
  status: "rotating"
47105
47103
  }), this.onObjectUpdate(!1));
47106
47104
  });
47107
47105
  // 缩放中的处理
47108
47106
  f(this, "onScale", () => {
47109
- this.currentOperation && (this.currentOperation = ue(_({}, this.currentOperation), {
47107
+ this.currentOperation && (this.currentOperation = ue(R({}, this.currentOperation), {
47110
47108
  status: "scaling"
47111
47109
  }), this.onObjectUpdate(!1));
47112
47110
  });
@@ -47126,7 +47124,7 @@ class Ma extends fc {
47126
47124
  this.hooks.emit("objectUpdate");
47127
47125
  return;
47128
47126
  }
47129
- const i = ue(_({}, this.currentOperation), {
47127
+ const i = ue(R({}, this.currentOperation), {
47130
47128
  end_timestamp: e ? Date.now() : void 0,
47131
47129
  // 只在松手时设置结束时间
47132
47130
  is_handle_end: e
@@ -47142,7 +47140,7 @@ class Ma extends fc {
47142
47140
  enable() {
47143
47141
  super.enable();
47144
47142
  const e = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
47145
- rt.modules.object3DHelper.addObject3DHelper(this.originObject, _({ positionFrom: "boundingBox" }, e));
47143
+ rt.modules.object3DHelper.addObject3DHelper(this.originObject, R({ positionFrom: "boundingBox" }, e));
47146
47144
  const i = rt.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
47147
47145
  i.hooks.on("moveStart", this.onMoveStart), i.hooks.on("rotateStart", this.onRotateStart), i.hooks.on("scaleStart", this.onScaleStart), i.hooks.on("move", this.onMove), i.hooks.on("rotate", this.onRotate), i.hooks.on("scale", this.onScale), i.hooks.on("moveEnd", this.onMoveEnd), i.hooks.on("rotateEnd", this.onRotateEnd), i.hooks.on("scaleEnd", this.onScaleEnd);
47148
47146
  }
@@ -47221,13 +47219,13 @@ class Ug extends Ji {
47221
47219
  f(this, "polyLineMesh");
47222
47220
  f(this, "_editor");
47223
47221
  f(this, "creatingObject");
47224
- e && (this.polyLineMesh = new fs(_(_({}, e.style), e)), this.add(this.polyLineMesh));
47222
+ e && (this.polyLineMesh = new fs(R(R({}, e.style), e)), this.add(this.polyLineMesh));
47225
47223
  }
47226
47224
  get editor() {
47227
47225
  return this._editor || (this._editor = new r7(this)), this._editor;
47228
47226
  }
47229
47227
  get data() {
47230
- return ue(_({}, this.baseData), {
47228
+ return ue(R({}, this.baseData), {
47231
47229
  points: ci(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
47232
47230
  style: {
47233
47231
  lineColor: new b.Color(this.polyLineMesh.lineColor).getHex(),
@@ -47278,7 +47276,7 @@ function a7(n, t, e) {
47278
47276
  return;
47279
47277
  const { promise: s, resolve: o, reject: r } = so(), a = (L = e == null ? void 0 : e.limit) != null ? L : "none", l = new io(n.style);
47280
47278
  i.add(l);
47281
- const c = new io(ue(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
47279
+ const c = new io(ue(R({}, n.style), { dashed: !0, lengthEnable: !1 }));
47282
47280
  i.add(c), t.enable();
47283
47281
  const h = [];
47284
47282
  let u, d, p;
@@ -47333,13 +47331,13 @@ class Qg extends Ji {
47333
47331
  f(this, "type", "Point");
47334
47332
  f(this, "pointMesh");
47335
47333
  f(this, "_editor");
47336
- e && (this.pointMesh = new mn(_(_({}, e.style), e)), this.add(this.pointMesh));
47334
+ e && (this.pointMesh = new mn(R(R({}, e.style), e)), this.add(this.pointMesh));
47337
47335
  }
47338
47336
  get editor() {
47339
47337
  return this._editor || (this._editor = new l7(this)), this._editor;
47340
47338
  }
47341
47339
  get data() {
47342
- return ue(_({}, this.baseData), {
47340
+ return ue(R({}, this.baseData), {
47343
47341
  point: ci(this.applyObjectMatrixWorld(this.pointMesh.position)),
47344
47342
  style: {
47345
47343
  color: this.pointMesh.color.getHex(),
@@ -47399,7 +47397,7 @@ class Fh extends cr {
47399
47397
  i && this.setPoints(i), s && this.setStyle(s);
47400
47398
  }
47401
47399
  get style() {
47402
- return ue(_({}, super.style), {
47400
+ return ue(R({}, super.style), {
47403
47401
  lineWidth: this.lineWidth,
47404
47402
  lineColor: this.lineColor
47405
47403
  });
@@ -47416,10 +47414,10 @@ class Fh extends cr {
47416
47414
  }), !1;
47417
47415
  }
47418
47416
  setPoints(e, i) {
47419
- super.setPoints(e, _({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, _({ closed: !0 }, i)), this.addIfNotExists(this.line));
47417
+ super.setPoints(e, R({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, R({ closed: !0 }, i)), this.addIfNotExists(this.line));
47420
47418
  }
47421
47419
  setStyle(e) {
47422
- super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(ue(_({}, e), {
47420
+ super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(ue(R({}, e), {
47423
47421
  // 强制设置line的lineOpacity
47424
47422
  lineOpacity: e.lineOpacity
47425
47423
  })) : this.line.setStyle(e), this.needsRender = !0;
@@ -47587,7 +47585,7 @@ class Vh extends Ji {
47587
47585
  f(this, "maxHistorySize", 50);
47588
47586
  f(this, "_editor");
47589
47587
  f(this, "creatingObject");
47590
- e && (this.areaMesh = new Bh(_(_({}, e.style), e)), this.areaMesh.userData = (s = this.areaMesh.userData) != null ? s : {}, typeof this.areaMesh.userData.dragSelectPixelDistance != "number" && (this.areaMesh.userData.dragSelectPixelDistance = 10), this.add(this.areaMesh));
47588
+ e && (this.areaMesh = new Bh(R(R({}, e.style), e)), this.areaMesh.userData = (s = this.areaMesh.userData) != null ? s : {}, typeof this.areaMesh.userData.dragSelectPixelDistance != "number" && (this.areaMesh.userData.dragSelectPixelDistance = 10), this.add(this.areaMesh));
47591
47589
  }
47592
47590
  get editor() {
47593
47591
  return this._editor || (this._editor = new c7(this)), this._editor;
@@ -47598,7 +47596,7 @@ class Vh extends Ji {
47598
47596
  typeof e == "function" && e(), this._editor && this._editor.updatePointMeshes();
47599
47597
  }
47600
47598
  get data() {
47601
- return this.updateMatrixWorld(), ue(_({}, this.baseData), {
47599
+ return this.updateMatrixWorld(), ue(R({}, this.baseData), {
47602
47600
  points: ci(this.applyObjectMatrixWorld(this.areaMesh.points)),
47603
47601
  style: {
47604
47602
  color: this.areaMesh.color.getHex(),
@@ -47689,7 +47687,7 @@ function Cd(n, t, e) {
47689
47687
  l && c && c.model && c.model.bounding && typeof ((De = c.model.bounding.max) == null ? void 0 : De.y) == "number" && (u = c.model.bounding.max.y + 1);
47690
47688
  const d = new io(n.style);
47691
47689
  r == null || r.add(d);
47692
- const p = new io(ue(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
47690
+ const p = new io(ue(R({}, n.style), { dashed: !0, lengthEnable: !1 }));
47693
47691
  r == null || r.add(p);
47694
47692
  let m = [];
47695
47693
  const g = (ne = w) => {
@@ -47707,7 +47705,7 @@ function Cd(n, t, e) {
47707
47705
  const ne = (le = (Ae = n.line) == null ? void 0 : Ae.style) != null ? le : n.style;
47708
47706
  m = w.map((ce, be) => {
47709
47707
  var Te, _e;
47710
- const te = new mn(ue(_({}, ne), {
47708
+ const te = new mn(ue(R({}, ne), {
47711
47709
  color: (Te = ne.pointColor) != null ? Te : ne.lineColor,
47712
47710
  tip: void 0,
47713
47711
  point: ce
@@ -47724,12 +47722,12 @@ function Cd(n, t, e) {
47724
47722
  t.enable(), l && t.setAdherePoints([]);
47725
47723
  const w = [];
47726
47724
  let I, C, L = !1, S;
47727
- const j = [], z = () => w.length > 0, R = () => j.length > 0, A = () => {
47725
+ const j = [], z = () => w.length > 0, _ = () => j.length > 0, A = () => {
47728
47726
  var ne;
47729
47727
  z() && (j.push(w.pop()), k(S), v(), (ne = e == null ? void 0 : e.onUndo) == null || ne.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
47730
47728
  }, M = () => {
47731
47729
  var ne;
47732
- R() && (w.push(j.pop()), k(S), v(), (ne = e == null ? void 0 : e.onRedo) == null || ne.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
47730
+ _() && (w.push(j.pop()), k(S), v(), (ne = e == null ? void 0 : e.onRedo) == null || ne.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
47733
47731
  }, E = (ne) => {
47734
47732
  var le, ce;
47735
47733
  j.length = 0;
@@ -47781,7 +47779,7 @@ function Cd(n, t, e) {
47781
47779
  return t.on("select", E), t.on("intersectionUpdate", k), t.on("disable", T), {
47782
47780
  finished: i,
47783
47781
  canUndo: z,
47784
- canRedo: R,
47782
+ canRedo: _,
47785
47783
  undo: A,
47786
47784
  redo: M
47787
47785
  };
@@ -48065,7 +48063,7 @@ class Ys extends Pi {
48065
48063
  return this.edgeMesh.color;
48066
48064
  }
48067
48065
  setStyle(e = {}) {
48068
- this.paramStyle = _(_({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
48066
+ this.paramStyle = R(R({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
48069
48067
  }
48070
48068
  /**
48071
48069
  * Check if the prism is a box (has 4 bottom positions)
@@ -48293,13 +48291,13 @@ class Zg extends Ji {
48293
48291
  f(this, "type", "Prism");
48294
48292
  f(this, "prismMesh");
48295
48293
  f(this, "_editor");
48296
- e && (this.prismMesh = new Ys(_(_({}, e.style), e)), this.add(this.prismMesh));
48294
+ e && (this.prismMesh = new Ys(R(R({}, e.style), e)), this.add(this.prismMesh));
48297
48295
  }
48298
48296
  get editor() {
48299
48297
  return this._editor || (this._editor = new Wy(this.prismMesh)), this._editor;
48300
48298
  }
48301
48299
  get data() {
48302
- return ue(_({}, this.baseData), {
48300
+ return ue(R({}, this.baseData), {
48303
48301
  points: ci(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
48304
48302
  heightPoint: ci(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
48305
48303
  style: {
@@ -48420,7 +48418,7 @@ class Qy extends Ma {
48420
48418
  const u = h, d = (u + 2) % 4, p = (u + 1) % 4, m = (u + 3) % 4, g = l[u].clone(), v = i.clone(), y = l[p].clone().sub(g), w = l[m].clone().sub(g), I = y.length(), C = w.length();
48421
48419
  if (I < 1e-6 || C < 1e-6)
48422
48420
  return l.map((x) => x.clone());
48423
- const L = y.clone().normalize(), S = w.clone().normalize(), j = v.clone().sub(g), z = j.dot(L), R = j.dot(S), A = g.clone().add(L.clone().multiplyScalar(z)), M = g.clone().add(S.clone().multiplyScalar(R)), E = g.clone().add(L.clone().multiplyScalar(z)).add(S.clone().multiplyScalar(R)), k = l.map((x) => x.clone());
48421
+ const L = y.clone().normalize(), S = w.clone().normalize(), j = v.clone().sub(g), z = j.dot(L), _ = j.dot(S), A = g.clone().add(L.clone().multiplyScalar(z)), M = g.clone().add(S.clone().multiplyScalar(_)), E = g.clone().add(L.clone().multiplyScalar(z)).add(S.clone().multiplyScalar(_)), k = l.map((x) => x.clone());
48424
48422
  return k[u] = g, k[p] = A, k[m] = M, k[d] = E, k;
48425
48423
  };
48426
48424
  o === "top" ? t.setPoints([
@@ -48495,7 +48493,7 @@ class Vl extends Id {
48495
48493
  i && this.setPoints(i), s && this.setStyle(s);
48496
48494
  }
48497
48495
  get style() {
48498
- return _(_({}, super.style), this.line.style);
48496
+ return R(R({}, super.style), this.line.style);
48499
48497
  }
48500
48498
  get lineWidth() {
48501
48499
  return this.line.lineWidth;
@@ -48526,13 +48524,13 @@ class Gh extends Ji {
48526
48524
  f(this, "type", "Rectangle");
48527
48525
  f(this, "rectangleMesh");
48528
48526
  f(this, "_editor");
48529
- e && (this.rectangleMesh = new Vl(_(_({}, e.style), e)), this.add(this.rectangleMesh));
48527
+ e && (this.rectangleMesh = new Vl(R(R({}, e.style), e)), this.add(this.rectangleMesh));
48530
48528
  }
48531
48529
  get editor() {
48532
48530
  return this._editor || (this._editor = new Qy(this.rectangleMesh)), this._editor;
48533
48531
  }
48534
48532
  get data() {
48535
- return ue(_({}, this.baseData), {
48533
+ return ue(R({}, this.baseData), {
48536
48534
  points: ci(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
48537
48535
  style: {
48538
48536
  color: this.rectangleMesh.color.getHex(),
@@ -48583,7 +48581,7 @@ function A7(n, t, e) {
48583
48581
  const { promise: i, reject: s, resolve: o } = so(), r = n.parent;
48584
48582
  if (!r)
48585
48583
  return s(new Error("No container"));
48586
- const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new fs(ue(_({}, n.style), { dashed: !0 })), c = new fs(ue(_({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new fs(ue(_({}, n.style), { dashed: !1, lengthEnable: !1 }));
48584
+ const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new fs(ue(R({}, n.style), { dashed: !0 })), c = new fs(ue(R({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new fs(ue(R({}, n.style), { dashed: !1, lengthEnable: !1 }));
48587
48585
  r.add(l, h, c), t.enable();
48588
48586
  const u = [];
48589
48587
  let d = new b.Vector3(), p = new b.Vector3();
@@ -48600,13 +48598,13 @@ function A7(n, t, e) {
48600
48598
  return;
48601
48599
  }
48602
48600
  if (u.length === 1 && a === "y") {
48603
- const R = new b.Line3(new b.Vector3(0, 1, 0).add(u[0]), new b.Vector3(0, -1, 0).add(u[0])).closestPointToPoint(C.point, !1, new b.Vector3());
48604
- n.setPoints([u[0], R, C.point]);
48601
+ const _ = new b.Line3(new b.Vector3(0, 1, 0).add(u[0]), new b.Vector3(0, -1, 0).add(u[0])).closestPointToPoint(C.point, !1, new b.Vector3());
48602
+ n.setPoints([u[0], _, C.point]);
48605
48603
  return;
48606
48604
  }
48607
48605
  if (u.length === 1 && a === "xoz") {
48608
- const z = new b.Line3(new b.Vector3(1, 0, 0).add(u[0]), new b.Vector3(-1, 0, 0).add(u[0])), R = C.raycaster.ray.intersectPlane(m, new b.Vector3()), A = z.closestPointToPoint(R, !1, new b.Vector3());
48609
- n.setPoints([u[0], A, R]);
48606
+ const z = new b.Line3(new b.Vector3(1, 0, 0).add(u[0]), new b.Vector3(-1, 0, 0).add(u[0])), _ = C.raycaster.ray.intersectPlane(m, new b.Vector3()), A = z.closestPointToPoint(_, !1, new b.Vector3());
48607
+ n.setPoints([u[0], A, _]);
48610
48608
  return;
48611
48609
  }
48612
48610
  if (u.length === 1 && a === "none") {
@@ -48615,8 +48613,8 @@ function A7(n, t, e) {
48615
48613
  }
48616
48614
  if (u.length === 2 && a === "none") {
48617
48615
  r.remove(l);
48618
- const z = C.raycaster.ray.intersectPlane(m, new b.Vector3()), R = u[0].distanceTo(u[1]) / 2, A = new b.Vector3().lerpVectors(u[0], u[1], 0.5), M = new b.Vector3().subVectors(z, A).normalize();
48619
- d = new b.Vector3().addVectors(A, M.multiplyScalar(R));
48616
+ const z = C.raycaster.ray.intersectPlane(m, new b.Vector3()), _ = u[0].distanceTo(u[1]) / 2, A = new b.Vector3().lerpVectors(u[0], u[1], 0.5), M = new b.Vector3().subVectors(z, A).normalize();
48617
+ d = new b.Vector3().addVectors(A, M.multiplyScalar(_));
48620
48618
  const E = [u[0], d, u[1]], k = Xy(E, rt.modules.five.camera.position);
48621
48619
  n.setPoints(k);
48622
48620
  return;
@@ -48633,7 +48631,7 @@ function w7(n, t, e) {
48633
48631
  const { promise: i, reject: s, resolve: o } = so(), r = n.parent;
48634
48632
  if (!r)
48635
48633
  return s(new Error("No container"));
48636
- const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new fs(ue(_({}, n.style), { dashed: !0 })), c = new fs(ue(_({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new fs(ue(_({}, n.style), { dashed: !1, lengthEnable: !1 }));
48634
+ const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new fs(ue(R({}, n.style), { dashed: !0 })), c = new fs(ue(R({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new fs(ue(R({}, n.style), { dashed: !1, lengthEnable: !1 }));
48637
48635
  r.add(l, h, c), t.enable(), t.setAdherePoints(b7(t.five, { excludes: [n] }));
48638
48636
  const u = [];
48639
48637
  let d = new b.Vector3(), p = new b.Vector3();
@@ -48648,7 +48646,7 @@ function w7(n, t, e) {
48648
48646
  } else
48649
48647
  u.length === 3 && (y(), o());
48650
48648
  }, v = (C) => {
48651
- var S, j, z, R;
48649
+ var S, j, z, _;
48652
48650
  if (!C || !(C != null && C.raycaster))
48653
48651
  return;
48654
48652
  const L = (S = u.at(-1)) == null ? void 0 : S.clone();
@@ -48665,7 +48663,7 @@ function w7(n, t, e) {
48665
48663
  const x = yi([u[0], u[1], C.point]);
48666
48664
  m.setFromNormalAndCoplanarPoint(x, u[0]);
48667
48665
  }
48668
- c.setPoints([(R = C.originalPoint) != null ? R : C.point, C.point]);
48666
+ c.setPoints([(_ = C.originalPoint) != null ? _ : C.point, C.point]);
48669
48667
  const A = new b.Vector3().crossVectors(u[0].clone().sub(u[1]), m.normal).normalize();
48670
48668
  d = new b.Line3(u[1].clone().add(A), u[1].clone().sub(A)).closestPointToPoint(C.point, !1, new b.Vector3());
48671
48669
  const E = [u[0], u[1], d], k = Xy(E, rt.modules.five.camera.position);
@@ -48745,13 +48743,13 @@ class qg extends Ji {
48745
48743
  f(this, "type", "Circle");
48746
48744
  f(this, "circleMesh");
48747
48745
  f(this, "_editor");
48748
- e && (this.circleMesh = new pa(_(_({}, e.style), e)), this.add(this.circleMesh));
48746
+ e && (this.circleMesh = new pa(R(R({}, e.style), e)), this.add(this.circleMesh));
48749
48747
  }
48750
48748
  get editor() {
48751
48749
  return this._editor || (this._editor = new Yy(this.circleMesh)), this._editor;
48752
48750
  }
48753
48751
  get data() {
48754
- return ue(_({}, this.baseData), {
48752
+ return ue(R({}, this.baseData), {
48755
48753
  center: ci(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
48756
48754
  normal: ci(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
48757
48755
  radius: this.circleMesh.radius,
@@ -48865,7 +48863,7 @@ class Wh extends Pi {
48865
48863
  this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: e, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
48866
48864
  }
48867
48865
  setStyle(e) {
48868
- this.params = _(_({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
48866
+ this.params = R(R({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
48869
48867
  }
48870
48868
  highlight() {
48871
48869
  this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
@@ -48930,13 +48928,13 @@ class Jg extends Ji {
48930
48928
  f(this, "type", "Cylinder");
48931
48929
  f(this, "cylinderMesh");
48932
48930
  f(this, "_editor");
48933
- e && (this.cylinderMesh = new Wh(_(_({}, e.style), e)), this.add(this.cylinderMesh));
48931
+ e && (this.cylinderMesh = new Wh(R(R({}, e.style), e)), this.add(this.cylinderMesh));
48934
48932
  }
48935
48933
  get editor() {
48936
48934
  return this._editor || (this._editor = new Jy(this.cylinderMesh)), this._editor;
48937
48935
  }
48938
48936
  get data() {
48939
- return ue(_({}, this.baseData), {
48937
+ return ue(R({}, this.baseData), {
48940
48938
  bottomCenter: ci(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
48941
48939
  topCenter: ci(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
48942
48940
  radius: this.cylinderMesh.radius,
@@ -49110,13 +49108,13 @@ class Qh extends Ji {
49110
49108
  f(this, "type", "Box");
49111
49109
  f(this, "boxMesh");
49112
49110
  f(this, "_editor");
49113
- e && (this.boxMesh = new Uh(_(_({}, e.style), e)), this.add(this.boxMesh));
49111
+ e && (this.boxMesh = new Uh(R(R({}, e.style), e)), this.add(this.boxMesh));
49114
49112
  }
49115
49113
  get editor() {
49116
49114
  return this._editor || (this._editor = new $y(this.boxMesh)), this._editor;
49117
49115
  }
49118
49116
  get data() {
49119
- return ue(_({}, this.baseData), {
49117
+ return ue(R({}, this.baseData), {
49120
49118
  points: ci(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
49121
49119
  heightPoint: ci(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
49122
49120
  style: {
@@ -49177,7 +49175,7 @@ function eb(n, t, e) {
49177
49175
  return;
49178
49176
  }
49179
49177
  const r = new Vl(n.style);
49180
- o.add(r), yield Md(r, t, ue(_({}, e), {
49178
+ o.add(r), yield Md(r, t, ue(R({}, e), {
49181
49179
  onPointPlaced: () => {
49182
49180
  var v;
49183
49181
  (v = e == null ? void 0 : e.onPointPlaced) == null || v.call(e);
@@ -49219,13 +49217,13 @@ class Kg extends Ji {
49219
49217
  f(this, "lineMesh");
49220
49218
  f(this, "_editor");
49221
49219
  f(this, "creatingObject");
49222
- e && (this.lineMesh = new ca(_(_({}, e.style), e)), this.add(this.lineMesh));
49220
+ e && (this.lineMesh = new ca(R(R({}, e.style), e)), this.add(this.lineMesh));
49223
49221
  }
49224
49222
  get editor() {
49225
49223
  return this._editor || (this._editor = new o7(this)), this._editor;
49226
49224
  }
49227
49225
  get data() {
49228
- return ue(_({}, this.baseData), {
49226
+ return ue(R({}, this.baseData), {
49229
49227
  points: ci(this.applyObjectMatrixWorld(this.lineMesh.points)),
49230
49228
  style: {
49231
49229
  lineColor: new b.Color(this.lineMesh.color).getHex(),
@@ -49276,7 +49274,7 @@ function tb(n, t, e) {
49276
49274
  return;
49277
49275
  const { promise: s, resolve: o, reject: r } = so(), a = (j = e == null ? void 0 : e.limit) != null ? j : "none", l = new Di(n.style);
49278
49276
  i.add(l);
49279
- const c = new Di(ue(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
49277
+ const c = new Di(ue(R({}, n.style), { dashed: !0, lengthEnable: !1 }));
49280
49278
  i.add(c), t.enable();
49281
49279
  const h = [];
49282
49280
  let u, d, p;
@@ -49288,14 +49286,14 @@ function tb(n, t, e) {
49288
49286
  if (!z)
49289
49287
  return;
49290
49288
  m.length = 0;
49291
- const R = h.length === 0 ? z.point : u.clone();
49292
- h.push(R), n.setPoints(h), h.length === 2 && (L(), o());
49289
+ const _ = h.length === 0 ? z.point : u.clone();
49290
+ h.push(_), n.setPoints(h), h.length === 2 && (L(), o());
49293
49291
  }, C = (z) => {
49294
- const R = () => {
49292
+ const _ = () => {
49295
49293
  l.setPoints([]), c.setPoints([]), t.pointSelectorHelper.magnifier.render();
49296
49294
  };
49297
49295
  if (!(h != null && h.length) || !z)
49298
- return R();
49296
+ return _();
49299
49297
  p = z;
49300
49298
  const A = h.at(-1).clone();
49301
49299
  a === "none" ? (u = z.point, l.setPoints([A, u])) : a === "xoz" ? (t.plane = d, d = d != null ? d : new b.Plane().setFromNormalAndCoplanarPoint(new b.Vector3(0, 1, 0), h[0]), u = d.projectPoint(z.point, new b.Vector3()), l.setPoints([A, u]), c.setPoints([u, z.point])) : a === "y" && (z.isVirtual ? (u = _n({
@@ -49346,7 +49344,7 @@ const zo = class extends St {
49346
49344
  const e = this.items.find((i) => i.selected && i.type === "Polygon");
49347
49345
  e && typeof e.redo == "function" && (e.redo(), this.five.needsRender = !0);
49348
49346
  });
49349
- this.five = e, this.theme = i, this.config = _({
49347
+ this.five = e, this.theme = i, this.config = R({
49350
49348
  magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
49351
49349
  }, s), this.group = new Pi(), this.group.name = "Sculpt", this.group.__sculpt__ = this, this.group.__five__ = this.five, e.scene.add(this.group), zo.modules.init(e, this.config), gt("ctrl+z, command+z", this.undo), gt("ctrl+shift+z, command+shift+z", this.redo), zo.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o, origDomEvent: r }) => {
49352
49350
  var l;
@@ -49376,8 +49374,8 @@ const zo = class extends St {
49376
49374
  this.clear();
49377
49375
  const s = (o = e == null ? void 0 : e.items) == null ? void 0 : o.map((r) => {
49378
49376
  var l;
49379
- const a = ue(_({}, r), {
49380
- style: _(_({}, (l = this.theme) == null ? void 0 : l[r.type.toLowerCase()]), r.style)
49377
+ const a = ue(R({}, r), {
49378
+ style: R(R({}, (l = this.theme) == null ? void 0 : l[r.type.toLowerCase()]), r.style)
49381
49379
  });
49382
49380
  return r.type === "Point" ? new Qg(a, i) : r.type === "line" ? new Kg(a, i) : r.type === "Polyline" ? new Ug(a, i) : r.type === "Polygon" ? new Vh(a, i) : r.type === "Prism" ? new Zg(a, i) : r.type === "Rectangle" ? new Gh(a, i) : r.type === "Circle" ? new qg(a, i) : r.type === "Cylinder" ? new Jg(a, i) : r.type === "Box" ? new Qh(a, i) : null;
49383
49381
  });
@@ -49633,7 +49631,7 @@ class E7 extends ur {
49633
49631
  (l = (a = this.tag3DContentSvelte) == null ? void 0 : a.dispose) == null || l.call(a);
49634
49632
  const h = document.createElement("div");
49635
49633
  h.classList.add("tag-media-container");
49636
- const u = _({ mode: "front", cornerPoints: c, container: h }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new yy(ue(_({}, u), { mode: d })), m = this.computeNormal();
49634
+ const u = R({ mode: "front", cornerPoints: c, container: h }, this.config.tag3DConfig), d = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new yy(ue(R({}, u), { mode: d })), m = this.computeNormal();
49637
49635
  p.position.add(m.clone().setLength(an.Z_FIGHTING_OFFSET)), this.plugin.group.add(p);
49638
49636
  let g;
49639
49637
  p.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, p, (y) => {
@@ -49852,7 +49850,7 @@ class x7 extends ur {
49852
49850
  * 更新标签数据
49853
49851
  */
49854
49852
  set(e, i = !0) {
49855
- super.set(e, i), e.style && (this.tagStyle = _(_({}, this.tagStyle), e.style)), e.position && (this.boxShape ? this.updateSculptBox() : this.initializeSculptBox()), e.style && this.boxShape && this.updateBoxStyle();
49853
+ super.set(e, i), e.style && (this.tagStyle = R(R({}, this.tagStyle), e.style)), e.position && (this.boxShape ? this.updateSculptBox() : this.initializeSculptBox()), e.style && this.boxShape && this.updateBoxStyle();
49856
49854
  }
49857
49855
  /**
49858
49856
  * 设置标签数据
@@ -50152,7 +50150,7 @@ class S7 extends ur {
50152
50150
  * 更新标签数据
50153
50151
  */
50154
50152
  set(e, i = !0) {
50155
- super.set(e, i), e.style && (this.tagStyle = _(_({}, this.tagStyle), e.style)), e.position && (this.polygonShape ? this.updateSculptPolygon() : this.initializeSculptPolygon()), e.style && this.polygonShape && this.updatePolygonStyle();
50153
+ super.set(e, i), e.style && (this.tagStyle = R(R({}, this.tagStyle), e.style)), e.position && (this.polygonShape ? this.updateSculptPolygon() : this.initializeSculptPolygon()), e.style && this.polygonShape && this.updatePolygonStyle();
50156
50154
  }
50157
50155
  /**
50158
50156
  * 获取多边形的所有角点(世界坐标)
@@ -50709,7 +50707,7 @@ const Ye = class extends ur {
50709
50707
  */
50710
50708
  set(e, i = !0) {
50711
50709
  var o, r;
50712
- super.set(e, i), e.style && (this.tagStyle = _(_({}, this.tagStyle), e.style), (o = e.style) != null && o.mask && this.updateMaskStyle());
50710
+ super.set(e, i), e.style && (this.tagStyle = R(R({}, this.tagStyle), e.style), (o = e.style) != null && o.mask && this.updateMaskStyle());
50713
50711
  const s = (r = e.mask) != null ? r : e.maskUrl;
50714
50712
  s && s !== this.maskUrl && (this.maskUrl = s, this.updateSharedMeshTexture()), e.color !== void 0 && (this.targetColor = il(e.color), this.updateMaskStyle()), this.maskMesh && this.updateMaskStyle();
50715
50713
  }
@@ -50726,7 +50724,7 @@ const Ye = class extends ur {
50726
50724
  try {
50727
50725
  if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model || !this.maskUrl)
50728
50726
  return !1;
50729
- const s = _(_({}, this.five.getCurrentState()), e), { panoIndex: o } = s;
50727
+ const s = R(R({}, this.five.getCurrentState()), e), { panoIndex: o } = s;
50730
50728
  return o !== ((i = this.fiveState) == null ? void 0 : i.panoIndex) ? !1 : super.getVisible(s);
50731
50729
  } catch (s) {
50732
50730
  return !1;
@@ -50738,7 +50736,7 @@ const Ye = class extends ur {
50738
50736
  */
50739
50737
  computeVisible(e) {
50740
50738
  var o, r, a;
50741
- const i = _(_({}, this.five.getCurrentState()), e), { panoIndex: s } = i;
50739
+ const i = R(R({}, this.five.getCurrentState()), e), { panoIndex: s } = i;
50742
50740
  return s !== ((o = this.fiveState) == null ? void 0 : o.panoIndex) ? {
50743
50741
  value: !1,
50744
50742
  reason: {
@@ -50980,7 +50978,7 @@ const Ye = class extends ur {
50980
50978
  const s = Ye.sharedMeshRegistry.get(e);
50981
50979
  s && (s.tagsByColorKey.delete(i), s.styleIndexByColorKey.delete(i), s.tagsByColorKey.size === 0 ? (s.mesh.parent && s.mesh.parent.remove(s.mesh), s.mesh.geometry.dispose(), s.mesh.material.dispose(), s.material.uniforms.mergedTexture.value.dispose(), Ye.releaseMaskTexture(s.maskSource), Ye.sharedMeshRegistry.delete(e)) : Ye.rebuildEntryMaterial(s));
50982
50980
  }
50983
- this.maskMesh = void 0, this._sharedMeshKey = null, this.sharedStyleIndex = -1, this.maskTexture = void 0;
50981
+ this.maskMesh = void 0, this._sharedMeshKey = null, this.sharedStyleIndex = -1, this.maskTexture = void 0, this.five.needsRender = !0;
50984
50982
  }
50985
50983
  /**
50986
50984
  * 清理 MaskTag 特有的资源(公开方法)
@@ -51659,7 +51657,7 @@ function G7(n, t, e) {
51659
51657
  pause: () => c("audioPause"),
51660
51658
  timeupdate: (Z) => c("audioTimeUpdate", Z.detail),
51661
51659
  duration: (Z) => c("audioDuration", Z.detail)
51662
- }, R = (Z) => {
51660
+ }, _ = (Z) => {
51663
51661
  I(Z), m(Z);
51664
51662
  }, A = (Z) => {
51665
51663
  L(h) && y(Z);
@@ -51727,7 +51725,7 @@ function G7(n, t, e) {
51727
51725
  S,
51728
51726
  z,
51729
51727
  j,
51730
- R,
51728
+ _,
51731
51729
  A,
51732
51730
  M,
51733
51731
  E,
@@ -52721,11 +52719,11 @@ function P6(n) {
52721
52719
  /*$$scope*/
52722
52720
  n[37],
52723
52721
  t0
52724
- ), R = (
52722
+ ), _ = (
52725
52723
  /*#slots*/
52726
52724
  n[38].arrow
52727
52725
  ), A = ms(
52728
- R,
52726
+ _,
52729
52727
  n,
52730
52728
  /*$$scope*/
52731
52729
  n[37],
@@ -52776,12 +52774,12 @@ function P6(n) {
52776
52774
  ), A && A.p && (!m || E[1] & /*$$scope*/
52777
52775
  64) && vs(
52778
52776
  A,
52779
- R,
52777
+ _,
52780
52778
  M,
52781
52779
  /*$$scope*/
52782
52780
  M[37],
52783
52781
  m ? gs(
52784
- R,
52782
+ _,
52785
52783
  /*$$scope*/
52786
52784
  M[37],
52787
52785
  E,
@@ -52813,7 +52811,7 @@ function C6(n) {
52813
52811
  return `${t.toString().padStart(2, "0")}:${e.toString().padStart(2, "0")}`;
52814
52812
  }
52815
52813
  function I6(n, t, e) {
52816
- let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, I, C, L, S, j, z, R, A, M, E, { $$slots: k = {}, $$scope: x } = t, { tag: T } = t, { config: O = {} } = t, { theme: B = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ie = null } = t, { audioPlaying: Z = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: $ = 0 } = t, oe = 0, De = "00:00", ne = null, Ae = 0, le = 0;
52814
+ let i, s, o, r, a, l, c, h, u, d, p, m, g, v, y, w, I, C, L, S, j, z, _, A, M, E, { $$slots: k = {}, $$scope: x } = t, { tag: T } = t, { config: O = {} } = t, { theme: B = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ie = null } = t, { audioPlaying: Z = !1 } = t, { audioCurrentTime: se = 0 } = t, { audioDuration: $ = 0 } = t, oe = 0, De = "00:00", ne = null, Ae = 0, le = 0;
52817
52815
  function ce() {
52818
52816
  return $ > 0 ? se / $ * 100 : 0;
52819
52817
  }
@@ -52900,8 +52898,8 @@ function I6(n, t, e) {
52900
52898
  12 && e(30, S = i ? T.data.brandTags || [] : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
52901
52899
  12 && e(29, j = i ? T.data.tags || [] : []), n.$$.dirty[0] & /*marketingBrandTags*/
52902
52900
  1073741824 && e(4, z = S.filter(Boolean).slice(0, 2)), n.$$.dirty[0] & /*primaryTags*/
52903
- 16 && e(28, R = Math.max(0, 2 - z.length)), n.$$.dirty[0] & /*remainingCount, marketingTags*/
52904
- 805306368 && e(13, A = R > 0 ? j.filter(Boolean).slice(0, R) : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
52901
+ 16 && e(28, _ = Math.max(0, 2 - z.length)), n.$$.dirty[0] & /*remainingCount, marketingTags*/
52902
+ 805306368 && e(13, A = _ > 0 ? j.filter(Boolean).slice(0, _) : []), n.$$.dirty[0] & /*isMarketingTag, tag*/
52905
52903
  12 && e(12, M = i && ((Oe = T.data.price) == null ? void 0 : Oe.value) || ""), n.$$.dirty[0] & /*isMarketingTag, tag*/
52906
52904
  12 && e(11, E = i && ((Xe = T.data.price) == null ? void 0 : Xe.unit) || "");
52907
52905
  }, e(14, L = 1), [
@@ -52933,7 +52931,7 @@ function I6(n, t, e) {
52933
52931
  ie,
52934
52932
  se,
52935
52933
  $,
52936
- R,
52934
+ _,
52937
52935
  j,
52938
52936
  S,
52939
52937
  v,
@@ -53928,7 +53926,7 @@ function H6(n) {
53928
53926
  function N6(n, t, e) {
53929
53927
  let i, s, o, r, a, l, c, h, u, d;
53930
53928
  const p = dn("hooks");
53931
- let { tag: m } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: y = document.body } = t, { popoverContainer: w = null } = t, { theme: I = void 0 } = t, { visible: C = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: S = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration: R = 0 } = t;
53929
+ let { tag: m } = t, { config: g = {} } = t, { triggerElement: v } = t, { wrapperElement: y = document.body } = t, { popoverContainer: w = null } = t, { theme: I = void 0 } = t, { visible: C = !0 } = t, { closePopover: L = void 0 } = t, { audioInstance: S = null } = t, { audioPlaying: j = !1 } = t, { audioCurrentTime: z = 0 } = t, { audioDuration: _ = 0 } = t;
53932
53930
  const A = Gn();
53933
53931
  let M, E = { width: 0, height: 0 }, k = null, x = s;
53934
53932
  function T(te, { duration: Te = 400, easing: _e = ra, x: ye = 0, y: Le = 0 }) {
@@ -54036,7 +54034,7 @@ function N6(n, t, e) {
54036
54034
  });
54037
54035
  }
54038
54036
  return n.$$set = (te) => {
54039
- "tag" in te && e(0, m = te.tag), "config" in te && e(1, g = te.config), "triggerElement" in te && e(26, v = te.triggerElement), "wrapperElement" in te && e(25, y = te.wrapperElement), "popoverContainer" in te && e(27, w = te.popoverContainer), "theme" in te && e(2, I = te.theme), "visible" in te && e(3, C = te.visible), "closePopover" in te && e(28, L = te.closePopover), "audioInstance" in te && e(4, S = te.audioInstance), "audioPlaying" in te && e(5, j = te.audioPlaying), "audioCurrentTime" in te && e(6, z = te.audioCurrentTime), "audioDuration" in te && e(7, R = te.audioDuration);
54037
+ "tag" in te && e(0, m = te.tag), "config" in te && e(1, g = te.config), "triggerElement" in te && e(26, v = te.triggerElement), "wrapperElement" in te && e(25, y = te.wrapperElement), "popoverContainer" in te && e(27, w = te.popoverContainer), "theme" in te && e(2, I = te.theme), "visible" in te && e(3, C = te.visible), "closePopover" in te && e(28, L = te.closePopover), "audioInstance" in te && e(4, S = te.audioInstance), "audioPlaying" in te && e(5, j = te.audioPlaying), "audioCurrentTime" in te && e(6, z = te.audioCurrentTime), "audioDuration" in te && e(7, _ = te.audioDuration);
54040
54038
  }, n.$$.update = () => {
54041
54039
  if (n.$$.dirty[0] & /*theme, tag*/
54042
54040
  5 && e(18, i = (() => Ge(I) ? I : Ge(m.data.theme) && ["light", "dark"].includes(m.data.theme) ? m.data.theme : m.contentType === "Marketing" ? "light" : "dark")()), n.$$.dirty[0] & /*config*/
@@ -54084,7 +54082,7 @@ function N6(n, t, e) {
54084
54082
  S,
54085
54083
  j,
54086
54084
  z,
54087
- R,
54085
+ _,
54088
54086
  x,
54089
54087
  M,
54090
54088
  $,
@@ -54608,7 +54606,7 @@ function Z6(n) {
54608
54606
  function q6(n, t, e) {
54609
54607
  let i, s, o, r, a, l, c, h, u, d, p, { tag: m } = t, { mediaStore: g } = t, { rendererMap: v = /* @__PURE__ */ new Map() } = t, { contentTypeMap: y = /* @__PURE__ */ new Map() } = t, { state: w } = t, { temporaryState: I } = t, { wrapperElement: C = null } = t, { popoverContainer: L = null } = t;
54610
54608
  const S = dn("hooks");
54611
- let j = !1, z, R, A = null, M = !1, E = !1, k = null, x = null, T = !1, O = 0, B = 0;
54609
+ let j = !1, z, _, A = null, M = !1, E = !1, k = null, x = null, T = !1, O = 0, B = 0;
54612
54610
  const q = {
54613
54611
  audioInstanceReady: (te) => {
54614
54612
  e(14, x = te.detail), e(15, T = !x.paused);
@@ -54628,11 +54626,11 @@ function q6(n, t, e) {
54628
54626
  };
54629
54627
  let ie = !1;
54630
54628
  const Z = (te) => {
54631
- if (R && clearTimeout(R), te === !0 && !ie) {
54629
+ if (_ && clearTimeout(_), te === !0 && !ie) {
54632
54630
  ie = !0, e(11, j = !0);
54633
54631
  return;
54634
54632
  }
54635
- R = setTimeout(
54633
+ _ = setTimeout(
54636
54634
  () => {
54637
54635
  var Te;
54638
54636
  !M && !E && !((Te = m.config.popoverConfig) != null && Te.debug) && (ie = !1, e(11, j = !1));
@@ -54640,7 +54638,7 @@ function q6(n, t, e) {
54640
54638
  300
54641
54639
  );
54642
54640
  }, se = () => {
54643
- M = !0, R && clearTimeout(R);
54641
+ M = !0, _ && clearTimeout(_);
54644
54642
  }, $ = () => {
54645
54643
  M = !1, Z(!1);
54646
54644
  }, oe = (te) => {
@@ -54650,7 +54648,7 @@ function q6(n, t, e) {
54650
54648
  E = !0;
54651
54649
  const Te = (ye = (_e = m.currentConfig) == null ? void 0 : _e.popoverConfig) == null ? void 0 : ye.trigger;
54652
54650
  if (m.isPopoverConfigEnabled() && m.isHoverEnabled() && Te === "hover") {
54653
- if (R && clearTimeout(R), z !== void 0)
54651
+ if (_ && clearTimeout(_), z !== void 0)
54654
54652
  return;
54655
54653
  ((pe = (Le = m.currentConfig) == null ? void 0 : Le.popoverConfig) == null ? void 0 : pe.triggerDelay) > 0 ? z = setTimeout(
54656
54654
  () => {
@@ -54675,7 +54673,7 @@ function q6(n, t, e) {
54675
54673
  ie = !1, e(11, j = !1);
54676
54674
  }
54677
54675
  zt(() => () => {
54678
- z && clearTimeout(z), R && clearTimeout(R);
54676
+ z && clearTimeout(z), _ && clearTimeout(_);
54679
54677
  });
54680
54678
  function le(te) {
54681
54679
  A = te, e(12, A);
@@ -55145,7 +55143,7 @@ class Xh extends lk {
55145
55143
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
55146
55144
  this.TagContainerSvelte = new iD({
55147
55145
  target: this.container,
55148
- props: ue(_({}, a), { state: ue(_({}, this.state), { enabled: !1 }) })
55146
+ props: ue(R({}, a), { state: ue(R({}, this.state), { enabled: !1 }) })
55149
55147
  }), Aa(() => {
55150
55148
  var l;
55151
55149
  (l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
@@ -55154,7 +55152,7 @@ class Xh extends lk {
55154
55152
  }
55155
55153
  }), this.renderQueue.clear();
55156
55154
  });
55157
- this.params = it({}, { debug: !1, config: this.config }, _({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), q4(1, { namespace: rd.PlayAudio });
55155
+ this.params = it({}, { debug: !1, config: this.config }, R({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), q4(1, { namespace: rd.PlayAudio });
55158
55156
  try {
55159
55157
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = nb + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
55160
55158
  get: function() {
@@ -55291,7 +55289,7 @@ class Xh extends lk {
55291
55289
  setState(e, i) {
55292
55290
  if (this.checkDisposed())
55293
55291
  return;
55294
- const { userAction: s = !0 } = i != null ? i : {}, o = _({}, this.state);
55292
+ const { userAction: s = !0 } = i != null ? i : {}, o = R({}, this.state);
55295
55293
  this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: s });
55296
55294
  }
55297
55295
  /**
@@ -55374,9 +55372,9 @@ class Xh extends lk {
55374
55372
  if (o) {
55375
55373
  if (i.stickType && i.stickType !== o.stickType) {
55376
55374
  console.log(`[PanoTagPlugin] stickType changed from ${o.stickType} to ${i.stickType}, recreating tag`);
55377
- const r = _({}, o);
55375
+ const r = R({}, o);
55378
55376
  this.destroyTagById(e), this.five.ready().then(() => {
55379
- this.addTag(_(_({}, r), i));
55377
+ this.addTag(R(R({}, r), i));
55380
55378
  });
55381
55379
  return;
55382
55380
  }
@@ -55923,7 +55921,7 @@ function lD(n, t, e) {
55923
55921
  }), i.push(l);
55924
55922
  });
55925
55923
  const s = t.transform, o = i.map((r) => Bt(new b.Vector3().fromArray(r), s).toArray());
55926
- return [ue(_({}, e), { type: "CatmullRomCurve3", points: o })];
55924
+ return [ue(R({}, e), { type: "CatmullRomCurve3", points: o })];
55927
55925
  }
55928
55926
  const cD = (
55929
55927
  /* glsl */
@@ -56234,7 +56232,7 @@ class Yh {
56234
56232
  unitLength: o * i,
56235
56233
  skipPositions: this.skippedPositions
56236
56234
  });
56237
- this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = _(_({}, this.geometryStyle), e);
56235
+ this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = R(R({}, this.geometryStyle), e);
56238
56236
  }
56239
56237
  /** 设置线条材质 */
56240
56238
  setMartial(t) {
@@ -56244,7 +56242,7 @@ class Yh {
56244
56242
  this.setDefaultVisible((s = t == null ? void 0 : t.visible) != null ? s : !1), this.setColor((o = t == null ? void 0 : t.color) != null ? o : "#ffffff"), this.setOpacity((r = t == null ? void 0 : t.opacity) != null ? r : 0.5);
56245
56243
  const e = Xi(this.plugin.staticPrefix, ec);
56246
56244
  this.setTextureUrl((l = (a = t == null ? void 0 : t.texture) == null ? void 0 : a.url) != null ? l : e), (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);
56247
- const i = _(_({}, this.materialStyle), t);
56245
+ const i = R(R({}, this.materialStyle), t);
56248
56246
  this.materialStyle = i;
56249
56247
  }
56250
56248
  /** 设置模型状态 */
@@ -56253,7 +56251,7 @@ class Yh {
56253
56251
  const s = new b.Vector3(), o = new b.Vector3().fromArray(t.translate);
56254
56252
  o.y += this.heightOffset, s.add(o), this.group.position.copy(s), i(this.startTagContainer, o), i(this.endTagContainer, o);
56255
56253
  }
56256
- const e = _(_({}, this.meshStyle), t);
56254
+ const e = R(R({}, this.meshStyle), t);
56257
56255
  this.meshStyle = e;
56258
56256
  function i(s, o) {
56259
56257
  if (!(s != null && s.tag))
@@ -56398,7 +56396,7 @@ class Yh {
56398
56396
  s.tag = r, uD(r) && (s.tag.element = (h) => {
56399
56397
  var v, y, w;
56400
56398
  (v = s.app) == null || v.$destroy();
56401
- const u = (y = i == null ? void 0 : i.getLength()) != null ? y : 0, d = (w = this.plugin.config.i18n) != null ? w : (I) => I, p = this.plugin.config.formatDistance ? this.plugin.config.formatDistance(u) : `${d("全程")}${Math.round(u)}${d("米")}`, m = t === "start" ? ue(_({}, r.data), { name: this.name, distance: p }) : r.data, g = new rD({ target: h, intro: !0, props: _({ fontSize: this.currentFontSize }, m) });
56399
+ const u = (y = i == null ? void 0 : i.getLength()) != null ? y : 0, d = (w = this.plugin.config.i18n) != null ? w : (I) => I, p = this.plugin.config.formatDistance ? this.plugin.config.formatDistance(u) : `${d("全程")}${Math.round(u)}${d("米")}`, m = t === "start" ? ue(R({}, r.data), { name: this.name, distance: p }) : r.data, g = new rD({ target: h, intro: !0, props: R({ fontSize: this.currentFontSize }, m) });
56402
56400
  return s.app = g, () => g.$destroy();
56403
56401
  }), s.plugin.load({ tagList: [s.tag] });
56404
56402
  const a = this.meshStyle.translate;
@@ -56510,7 +56508,7 @@ class ob extends Cs {
56510
56508
  return this.disposedErrorLog();
56511
56509
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
56512
56510
  return this.disableErrorLog();
56513
- const s = _({}, this.state);
56511
+ const s = R({}, this.state);
56514
56512
  this.state = it({}, 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), Qt(s, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 });
56515
56513
  }
56516
56514
  /**
@@ -56624,7 +56622,7 @@ class rb extends ob {
56624
56622
  this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
56625
56623
  });
56626
56624
  f(this, "moveToStart", () => {
56627
- this.five.setState(ue(_({}, th(this.curve, 0, this.curveOffset)), { mode: "Model" }));
56625
+ this.five.setState(ue(R({}, th(this.curve, 0, this.curveOffset)), { mode: "Model" }));
56628
56626
  });
56629
56627
  f(this, "playFromStart", () => {
56630
56628
  this.clearPauseData(), this.setState({ playing: !0 });
@@ -56652,7 +56650,7 @@ class rb extends ob {
56652
56650
  }
56653
56651
  load(e, i) {
56654
56652
  var a, l, c, h, u, d, p, m, g;
56655
- this.handlePause(), this.clear(), this.data = _({ id: Mt() }, e);
56653
+ this.handlePause(), this.clear(), this.data = R({ id: Mt() }, e);
56656
56654
  const s = (() => {
56657
56655
  if (this.data.path instanceof b.Curve)
56658
56656
  return this.data.path.curves[0];
@@ -56694,7 +56692,7 @@ class rb extends ob {
56694
56692
  let o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
56695
56693
  (o < 0 || o >= 1) && (o = 0);
56696
56694
  const r = th(this.curve, o, this.curveOffset);
56697
- if (this.hooks.emit("progressChange", o), this.five.setState(ue(_({}, r), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
56695
+ if (this.hooks.emit("progressChange", o), this.five.setState(ue(R({}, r), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
56698
56696
  const c = this.addInterruptListener(() => {
56699
56697
  this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
56700
56698
  });
@@ -56784,7 +56782,7 @@ class kd extends ob {
56784
56782
  var h, u;
56785
56783
  this.clear();
56786
56784
  const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
56787
- this.data = _({ id: r.keyframesId }, r), this.hooks.emit("dataChange", r, o);
56785
+ this.data = R({ id: r.keyframesId }, r), this.hooks.emit("dataChange", r, o);
56788
56786
  let a = [], l;
56789
56787
  const c = this.data.keyframes.filter((d) => d.data.panoIndex !== void 0);
56790
56788
  c.filter((d, p) => {
@@ -56818,7 +56816,7 @@ class kd extends ob {
56818
56816
  * @description Play from first keyframe
56819
56817
  */
56820
56818
  playFromStart(e) {
56821
- return this.playFrom(ue(_({}, e), { index: 0 }));
56819
+ return this.playFrom(ue(R({}, e), { index: 0 }));
56822
56820
  }
56823
56821
  /**
56824
56822
  * @description Format data
@@ -56836,7 +56834,7 @@ class kd extends ob {
56836
56834
  keyframes: i.keyframes.map((s, o) => {
56837
56835
  var l;
56838
56836
  const r = i.keyframes[o + 1], a = (() => !r || r.start === void 0 || s.end === void 0 ? 0 : r.start - s.end)();
56839
- return ue(_({ id: (l = s.uuid) != null ? l : Mt(), moveIndex: o, stay: a, index: o }, s), { guildPluginOptions: i.guildPluginOptions });
56837
+ return ue(R({ id: (l = s.uuid) != null ? l : Mt(), moveIndex: o, stay: a, index: o }, s), { guildPluginOptions: i.guildPluginOptions });
56840
56838
  })
56841
56839
  };
56842
56840
  if (i.panoIndexList) {
@@ -56857,11 +56855,11 @@ class kd extends ob {
56857
56855
  i.moveType === void 0 || i.moveType === "justMove" ? s.push({
56858
56856
  moveIndex: c,
56859
56857
  stay: i.stay,
56860
- data: _({ effect: "Move", panoIndex: l, moveEffect: o }, h != null ? h : {})
56861
- }) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data: _({ effect: "Rotate", panoIndex: l }, h) }));
56858
+ data: R({ effect: "Move", panoIndex: l, moveEffect: o }, h != null ? h : {})
56859
+ }) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data: R({ effect: "Rotate", panoIndex: l }, h) }));
56862
56860
  }), {
56863
56861
  keyframesId: Mt(),
56864
- keyframes: s.map((l, c) => _({ id: Mt(), index: c }, l)),
56862
+ keyframes: s.map((l, c) => R({ id: Mt(), index: c }, l)),
56865
56863
  guildPluginOptions: i.guildPluginOptions,
56866
56864
  useGuildLine: i.useGuildLine
56867
56865
  };
@@ -57083,7 +57081,7 @@ class kd extends ob {
57083
57081
  })(), c = this.five.getCurrentState(), h = Math.PI * 2;
57084
57082
  let u = e.longitude;
57085
57083
  u !== void 0 && (u = (u % h + h) % h, e.direction === "left" ? u <= c.longitude && (u += h) : e.direction === "right" && u >= c.longitude && (u -= h));
57086
- const d = (() => i.duration ? i.duration : l ? dD(c, ue(_({}, e), { longitude: u })) / l : 800)();
57084
+ const d = (() => i.duration ? i.duration : l ? dD(c, ue(R({}, e), { longitude: u })) / l : 800)();
57087
57085
  r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = d);
57088
57086
  const p = this.getSpeededDuration(d);
57089
57087
  return new Promise((m) => {
@@ -57248,9 +57246,9 @@ class lb {
57248
57246
  const i = t === "panorama" ? this.panoramaItem : this.modelItem, s = t === "panorama" ? e.panorama_style : e.model_style, o = e.path, r = s, a = s, l = s;
57249
57247
  if (e.pano_group) {
57250
57248
  const h = t === "panorama" && e.panorama_style.skip_group === !0;
57251
- i.setGeometryByPanoGroup(e.pano_group, _(ue(_({}, e), { skipPanoGroup: h }), r));
57249
+ i.setGeometryByPanoGroup(e.pano_group, R(ue(R({}, e), { skipPanoGroup: h }), r));
57252
57250
  } else
57253
- e.path && i.setGeometryByPath(o, _({}, r));
57251
+ e.path && i.setGeometryByPath(o, R({}, r));
57254
57252
  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);
57255
57253
  }
57256
57254
  show() {
@@ -57265,7 +57263,7 @@ class lb {
57265
57263
  walk(t) {
57266
57264
  return K(this, null, function* () {
57267
57265
  if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
57268
- const e = _({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield Js(gD(this.five, e));
57266
+ const e = R({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield Js(gD(this.five, e));
57269
57267
  if (i)
57270
57268
  return this.logError(i.message);
57271
57269
  } else {
@@ -57354,7 +57352,7 @@ let vD = class extends vn {
57354
57352
  var m, g, v, y, w, I, C;
57355
57353
  const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
57356
57354
  this.hooks.emit("dataChange", r, o), this.data = r;
57357
- const a = r.config, l = !r.lines && r.routes, c = (m = a == null ? void 0 : a.arrowTextureUrl) != null ? m : Xi(this.staticPrefix, Iu), h = ue(_({}, a), {
57355
+ const a = r.config, l = !r.lines && r.routes, c = (m = a == null ? void 0 : a.arrowTextureUrl) != null ? m : Xi(this.staticPrefix, Iu), h = ue(R({}, a), {
57358
57356
  model_style: {
57359
57357
  texture: { url: c }
57360
57358
  },
@@ -57406,8 +57404,8 @@ let vD = class extends vn {
57406
57404
  var o;
57407
57405
  if (this.disposed)
57408
57406
  return this.disposedErrorLog();
57409
- const s = _({}, this.state);
57410
- this.state = _(_({}, 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), Qt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 }), this.five.needsRender = !0);
57407
+ const s = R({}, this.state);
57408
+ this.state = R(R({}, 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), Qt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 }), this.five.needsRender = !0);
57411
57409
  }
57412
57410
  /** 添加一个 GuideLineItem */
57413
57411
  addGuideLineItem(e) {
@@ -57418,19 +57416,19 @@ let vD = class extends vn {
57418
57416
  }
57419
57417
  processItemUrls(e) {
57420
57418
  var o, r, a, l;
57421
- const i = _({}, e), s = ec;
57419
+ const i = R({}, e), s = ec;
57422
57420
  if (i.panorama_style) {
57423
57421
  const c = (r = (o = i.panorama_style.texture) == null ? void 0 : o.url) != null ? r : s;
57424
- i.panorama_style = ue(_({}, i.panorama_style), {
57425
- texture: ue(_({}, i.panorama_style.texture), {
57422
+ i.panorama_style = ue(R({}, i.panorama_style), {
57423
+ texture: ue(R({}, i.panorama_style.texture), {
57426
57424
  url: Xi(this.staticPrefix, c)
57427
57425
  })
57428
57426
  });
57429
57427
  }
57430
57428
  if (i.model_style) {
57431
57429
  const c = (l = (a = i.model_style.texture) == null ? void 0 : a.url) != null ? l : s;
57432
- i.model_style = ue(_({}, i.model_style), {
57433
- texture: ue(_({}, i.model_style.texture), {
57430
+ i.model_style = ue(R({}, i.model_style), {
57431
+ texture: ue(R({}, i.model_style.texture), {
57434
57432
  url: Xi(this.staticPrefix, c)
57435
57433
  })
57436
57434
  });
@@ -57859,7 +57857,7 @@ class PD extends Cs {
57859
57857
  o.video_list.forEach((l) => {
57860
57858
  this.controllerMap.set(
57861
57859
  l.render_id,
57862
- new x0(this.five, ue(_({}, l), {
57860
+ new x0(this.five, ue(R({}, l), {
57863
57861
  fiveUtil: this.fiveUtil,
57864
57862
  panoIndex: r,
57865
57863
  renderID: a,
@@ -57938,7 +57936,7 @@ class PD extends Cs {
57938
57936
  const o = s.render_id;
57939
57937
  this.controllerMap.set(
57940
57938
  s.render_id,
57941
- new x0(this.five, ue(_({}, s), {
57939
+ new x0(this.five, ue(R({}, s), {
57942
57940
  fiveUtil: this.fiveUtil,
57943
57941
  panoIndex: e,
57944
57942
  renderID: o,
@@ -58136,7 +58134,7 @@ class Do extends b.Mesh {
58136
58134
  f(this, "opacityAnime");
58137
58135
  /** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
58138
58136
  f(this, "uPreMeter", 1);
58139
- e.geometryConfig && (this.geometryConfig = _(_({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = Do.calculatePath(e.path.map((l) => new b.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = Do.formatTexture(e.texture);
58137
+ e.geometryConfig && (this.geometryConfig = R(R({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = Do.calculatePath(e.path.map((l) => new b.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = Do.formatTexture(e.texture);
58140
58138
  const { radius: s, tubularSegments: o, radialSegments: r } = this.geometryConfig, a = Do.formatTexture(e.texture);
58141
58139
  this.geometry = Do.formatGeometryUV(
58142
58140
  new b.TubeBufferGeometry(this.path, o, s, r),
@@ -58422,7 +58420,7 @@ let FD = class extends vn {
58422
58420
  return K(this, arguments, function* (e = {}) {
58423
58421
  if (this.state.visible)
58424
58422
  return;
58425
- const i = _({
58423
+ const i = R({
58426
58424
  userAction: !0,
58427
58425
  anime: { duration: 500 }
58428
58426
  }, e);
@@ -58439,7 +58437,7 @@ let FD = class extends vn {
58439
58437
  return K(this, arguments, function* (e = {}) {
58440
58438
  if (this.state.visible === !1)
58441
58439
  return;
58442
- const i = _({
58440
+ const i = R({
58443
58441
  userAction: !0,
58444
58442
  anime: { duration: 500 }
58445
58443
  }, e);
@@ -58545,7 +58543,7 @@ let FD = class extends vn {
58545
58543
  }
58546
58544
  updateState(e, i) {
58547
58545
  const s = this.state;
58548
- this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
58546
+ this.state = R(R({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
58549
58547
  }
58550
58548
  /** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
58551
58549
  loadPipeTexture(e) {
@@ -58818,7 +58816,7 @@ function HD(n) {
58818
58816
  }
58819
58817
  function ND(n, t, e) {
58820
58818
  let i, s, o, r, a, l, c, h, u, { content: d } = t, { five: p = void 0 } = t, { visible: m = !0 } = t, { opacity: g = 1 } = t, { zIndex: v = 0 } = t, { transform: y = void 0 } = t, { onClick: w = () => {
58821
- } } = t, { rendererIfNeed: I = void 0 } = t, { rendererData: C = void 0 } = t, { fontSize: L } = t, S, j, z, R;
58819
+ } } = t, { rendererIfNeed: I = void 0 } = t, { rendererData: C = void 0 } = t, { fontSize: L } = t, S, j, z, _;
58822
58820
  const A = (x) => {
58823
58821
  if (p.state.mode !== "Panorama") {
58824
58822
  const B = -(10 + 54 * (1 - mi(x.latitude) / 90)), q = B + h, ie = q >= 0 ? 0 : -q / -u;
@@ -58826,9 +58824,9 @@ function ND(n, t, e) {
58826
58824
  }
58827
58825
  };
58828
58826
  zt(() => {
58829
- S && typeof I == "function" && (R = I(S, C)), p && (A(p.camera.pose), p.on("cameraUpdate", A));
58827
+ S && typeof I == "function" && (_ = I(S, C)), p && (A(p.camera.pose), p.on("cameraUpdate", A));
58830
58828
  }), ti(() => {
58831
- R == null || R(), p == null || p.off("cameraUpdate", A);
58829
+ _ == null || _(), p == null || p.off("cameraUpdate", A);
58832
58830
  });
58833
58831
  function M(x) {
58834
58832
  qe[x ? "unshift" : "push"](() => {
@@ -59275,14 +59273,14 @@ let QD = class extends vn {
59275
59273
  visible: !0
59276
59274
  };
59277
59275
  this.state = Object.assign(s, i == null ? void 0 : i.initialState);
59278
- const o = _({
59276
+ const o = R({
59279
59277
  modelDepthTest: !0
59280
59278
  }, i == null ? void 0 : i.config);
59281
59279
  this._config = o, this.modelGroup = new b.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
59282
59280
  }
59283
59281
  /** 插件配置项 */
59284
59282
  get config() {
59285
- return _({}, this._config);
59283
+ return R({}, this._config);
59286
59284
  }
59287
59285
  /** 是否已经被销毁 */
59288
59286
  get disposed() {
@@ -59334,7 +59332,7 @@ let QD = class extends vn {
59334
59332
  return Promise.resolve();
59335
59333
  if (this.disposed)
59336
59334
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
59337
- const i = _({ userAction: !0 }, e);
59335
+ const i = R({ userAction: !0 }, e);
59338
59336
  this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
59339
59337
  });
59340
59338
  }
@@ -59346,7 +59344,7 @@ let QD = class extends vn {
59346
59344
  return K(this, null, function* () {
59347
59345
  if (this.state.visible === !1)
59348
59346
  return;
59349
- const i = _({ userAction: !0 }, e);
59347
+ const i = R({ userAction: !0 }, e);
59350
59348
  this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
59351
59349
  });
59352
59350
  }
@@ -59405,7 +59403,7 @@ let QD = class extends vn {
59405
59403
  */
59406
59404
  updateConfig(e, i = {}) {
59407
59405
  var r;
59408
- const s = this.config, o = _(_({}, s), e);
59406
+ const s = this.config, o = R(R({}, s), e);
59409
59407
  this._config = o, this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
59410
59408
  }
59411
59409
  /** 根据 ID 获取标注 */
@@ -59419,9 +59417,9 @@ let QD = class extends vn {
59419
59417
  return i(e) ? {
59420
59418
  list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
59421
59419
  const o = new b.Shape(), r = s.object_data.points[0];
59422
- return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]), ue(_({}, s), {
59420
+ return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]), ue(R({}, s), {
59423
59421
  floor_index: s.object_data.floorIndex,
59424
- object_data: ue(_({}, s.object_data), {
59422
+ object_data: ue(R({}, s.object_data), {
59425
59423
  bottom_y: r[1] + s.object_data.fixedY,
59426
59424
  shape: o.toJSON(),
59427
59425
  height: s.object_data.height + s.object_data.fixedHeight
@@ -59445,7 +59443,7 @@ let QD = class extends vn {
59445
59443
  }
59446
59444
  updateState(e, i) {
59447
59445
  const s = this.state;
59448
- this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
59446
+ this.state = R(R({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
59449
59447
  }
59450
59448
  _enable(e) {
59451
59449
  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);
@@ -59539,7 +59537,7 @@ class XD extends Cs {
59539
59537
  visible: !0
59540
59538
  };
59541
59539
  this.state = Object.assign(s, i == null ? void 0 : i.initialState);
59542
- const o = _({
59540
+ const o = R({
59543
59541
  width: 1.4,
59544
59542
  yOffset: 0.01,
59545
59543
  yRotate: 0,
@@ -59552,7 +59550,7 @@ class XD extends Cs {
59552
59550
  }
59553
59551
  /** 插件配置项 */
59554
59552
  get config() {
59555
- return _({}, this._config);
59553
+ return R({}, this._config);
59556
59554
  }
59557
59555
  /** 是否已经被销毁 */
59558
59556
  get disposed() {
@@ -59590,7 +59588,7 @@ class XD extends Cs {
59590
59588
  return Promise.resolve();
59591
59589
  if (this.disposed)
59592
59590
  return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
59593
- const i = _({ userAction: !0 }, e);
59591
+ const i = R({ userAction: !0 }, e);
59594
59592
  this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
59595
59593
  });
59596
59594
  }
@@ -59602,7 +59600,7 @@ class XD extends Cs {
59602
59600
  return K(this, null, function* () {
59603
59601
  if (this.state.visible === !1)
59604
59602
  return;
59605
- const i = _({ userAction: !0 }, e);
59603
+ const i = R({ userAction: !0 }, e);
59606
59604
  this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
59607
59605
  });
59608
59606
  }
@@ -59627,7 +59625,7 @@ class XD extends Cs {
59627
59625
  */
59628
59626
  updateConfig(e, i = {}) {
59629
59627
  var r;
59630
- const s = this.config, o = _(_({}, s), e);
59628
+ const s = this.config, o = R(R({}, s), e);
59631
59629
  this._config = o, s.imageURL !== o.imageURL && this.reloadTexture(o.imageURL), s.yOffset !== o.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), s.yRotate !== o.yRotate && this.updateMeshQuaternion(o.yRotate), s.width !== o.width && (this.mesh.geometry = new b.PlaneBufferGeometry(o.width, o.width)), this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
59632
59630
  }
59633
59631
  /** 问什么看不到模型 */
@@ -59643,7 +59641,7 @@ class XD extends Cs {
59643
59641
  }
59644
59642
  updateState(e, i) {
59645
59643
  const s = this.state;
59646
- this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
59644
+ this.state = R(R({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
59647
59645
  }
59648
59646
  /** 根据各种条件更新 Mesh 的可见性 */
59649
59647
  updateMeshVisible() {
@@ -59866,7 +59864,7 @@ const R0 = (n, t) => {
59866
59864
  class oh extends xd {
59867
59865
  constructor(...e) {
59868
59866
  const i = e[0], s = no(i.model), o = new b.Vector3().lerpVectors(ls(s, 0), ls(s, 5), 0.5);
59869
- super(ue(_({}, i), { position: o }));
59867
+ super(ue(R({}, i), { position: o }));
59870
59868
  f(this, "onModelShownFloorChange", (e) => {
59871
59869
  this.updateFiveCurrentFloorState(e), this.updateVisible();
59872
59870
  });
@@ -60067,7 +60065,7 @@ class tL extends vn {
60067
60065
  return this.items.find((i) => i.rawData.id === e);
60068
60066
  }
60069
60067
  registerTagRenderer(e) {
60070
- this.tagRendererMap = _(_({}, this.tagRendererMap), e), this.updateTagRenderer();
60068
+ this.tagRendererMap = R(R({}, this.tagRendererMap), e), this.updateTagRenderer();
60071
60069
  }
60072
60070
  hasCustomTagRenderer(e) {
60073
60071
  return !!this.tagRendererMap[e];
@@ -61405,7 +61403,7 @@ function hL(n, t = 0, e = 300) {
61405
61403
  }
61406
61404
  }
61407
61405
  l.push(...S), l.sort((T, O) => T.timeStamp - O.timeStamp);
61408
- const j = n.track.duration * 1e3, z = j + y, R = l[l.length - 1], A = l.filter(
61406
+ const j = n.track.duration * 1e3, z = j + y, _ = l[l.length - 1], A = l.filter(
61409
61407
  (T) => T.timeStamp === 0 && Math.abs(T.position[0] - i.position[0]) < 1e-3 && Math.abs(T.position[1] - i.position[1]) < 1e-3 && Math.abs(T.position[2] - i.position[2]) < 1e-3
61410
61408
  );
61411
61409
  return console.log(`动画转换完成:
@@ -61414,10 +61412,10 @@ function hL(n, t = 0, e = 300) {
61414
61412
  - 移动速度: ${g.toFixed(2)} 单位/秒
61415
61413
  - 动作延迟时间: ${y}ms (${(y / 1e3).toFixed(2)}s)
61416
61414
  - 计算总时间: ${z}ms (${(z / 1e3).toFixed(2)}s)
61417
- - 实际最后时间戳: ${R == null ? void 0 : R.timeStamp}ms (${((R == null ? void 0 : R.timeStamp) / 1e3).toFixed(2)}s)
61415
+ - 实际最后时间戳: ${_ == null ? void 0 : _.timeStamp}ms (${((_ == null ? void 0 : _.timeStamp) / 1e3).toFixed(2)}s)
61418
61416
  - 关键帧数量: ${l.length}
61419
61417
  - 初始位置关键帧数量: ${A.length}
61420
- - 速度一致性: ${(((R == null ? void 0 : R.timeStamp) - y) / 1e3 / n.track.duration * 100).toFixed(1)}% (100%为完全一致)`), {
61418
+ - 速度一致性: ${(((_ == null ? void 0 : _.timeStamp) - y) / 1e3 / n.track.duration * 100).toFixed(1)}% (100%为完全一致)`), {
61421
61419
  id: n.id,
61422
61420
  name: n.name || "默认角色",
61423
61421
  type: "model",
@@ -61443,7 +61441,7 @@ class dL {
61443
61441
  f(this, "_autoPlayOnNaturalEnd", !1);
61444
61442
  // 新增:playing-players-changed 事件监听集合
61445
61443
  f(this, "playingPlayersListeners", /* @__PURE__ */ new Set());
61446
- this.five = t, this.config = _({
61444
+ this.five = t, this.config = R({
61447
61445
  autoPlay: !1,
61448
61446
  loop: !1,
61449
61447
  debug: !1
@@ -61786,7 +61784,7 @@ class dL {
61786
61784
  * 获取当前状态
61787
61785
  */
61788
61786
  getState() {
61789
- return _({}, this.state);
61787
+ return R({}, this.state);
61790
61788
  }
61791
61789
  /**
61792
61790
  * 获取可用章节列表
@@ -61827,7 +61825,7 @@ class dL {
61827
61825
  var a, l;
61828
61826
  if (!t || !t.players || !Array.isArray(t.players))
61829
61827
  return t;
61830
- const s = (a = t.players[0]) != null && a.fiveState ? _({}, t.players[0].fiveState) : void 0;
61828
+ const s = (a = t.players[0]) != null && a.fiveState ? R({}, t.players[0].fiveState) : void 0;
61831
61829
  if (s && s.offset && e) {
61832
61830
  const c = new fe(s.offset.x, s.offset.y, s.offset.z), h = Bt(c, e == null ? void 0 : e.transform);
61833
61831
  s.offset = { x: h.x, y: h.y, z: h.z };
@@ -61842,7 +61840,7 @@ class dL {
61842
61840
  let r = 0;
61843
61841
  return t.players.forEach((c, h) => {
61844
61842
  var p, m, g;
61845
- let u = _({}, c);
61843
+ let u = R({}, c);
61846
61844
  if (e && ((p = u.track) != null && p.path && Array.isArray(u.track.path) && (u.track.path = u.track.path.map((v) => {
61847
61845
  const y = Bt(new fe(v.x, v.y, v.z), e == null ? void 0 : e.transform);
61848
61846
  return {
@@ -61856,7 +61854,7 @@ class dL {
61856
61854
  new fe(v.point.x, v.point.y, v.point.z),
61857
61855
  e == null ? void 0 : e.transform
61858
61856
  );
61859
- return ue(_({}, v), {
61857
+ return ue(R({}, v), {
61860
61858
  point: {
61861
61859
  x: y.x,
61862
61860
  y: y.y,
@@ -62838,7 +62836,7 @@ class pb {
62838
62836
  f(this, "chapterFloorModel", null);
62839
62837
  /** five 'modeChange' 楼层重放监听的反订阅句柄(chapterFloorMap 启用时挂载,停用/reset/dispose 时清理) */
62840
62838
  f(this, "unsubFloorModeChange", null);
62841
- this.five = t, this.config = _({ autoPlay: !1, loop: !1, debug: !1, showTrace: !1 }, e), this.playground = new ML(t, this.config.debug), this.unsubClockTick = this.playground.getClock().onTick(() => this.emitProgress());
62839
+ this.five = t, this.config = R({ autoPlay: !1, loop: !1, debug: !1, showTrace: !1 }, e), this.playground = new ML(t, this.config.debug), this.unsubClockTick = this.playground.getClock().onTick(() => this.emitProgress());
62842
62840
  }
62843
62841
  /** 加载剧本:预加载资源 + 将模型加入 five 场景;autoPlay 时自动播放首章 */
62844
62842
  loadScript(t) {
@@ -63093,7 +63091,7 @@ class pb {
63093
63091
  return this.rejectKeyframe("index 越界");
63094
63092
  if (e.timeStamp !== void 0 && !(Number.isFinite(e.timeStamp) && e.timeStamp >= 0))
63095
63093
  return this.rejectKeyframe("time 必须为非负有限数");
63096
- const o = _(_({}, s.keyframes[t]), e);
63094
+ const o = R(R({}, s.keyframes[t]), e);
63097
63095
  return s.keyframes[t] = o, s.keyframes.sort((r, a) => r.timeStamp - a.timeStamp), this.afterKeyframesChanged(s);
63098
63096
  }
63099
63097
  /** 移除指定下标关键帧。拒绝(保持序列不变):未加载 script / 无章节 / index 越界。 */
@@ -63107,7 +63105,7 @@ class pb {
63107
63105
  /** 获取当前章节的运镜关键帧(升序副本;无章节/无 camera player 时返回空数组) */
63108
63106
  getCameraKeyframes() {
63109
63107
  const t = this.getCameraPlayer();
63110
- return t ? t.keyframes.map((e) => _({}, e)) : [];
63108
+ return t ? t.keyframes.map((e) => R({}, e)) : [];
63111
63109
  }
63112
63110
  /**
63113
63111
  * 序列化当前章节的运镜 player。
@@ -63533,13 +63531,13 @@ class pb {
63533
63531
  return this.emitKeyframesChanged(e), { success: !0, keyframes: e };
63534
63532
  }
63535
63533
  emitKeyframesChanged(t) {
63536
- this.keyframesChangedListeners.forEach((e) => e(t.map((i) => _({}, i))));
63534
+ this.keyframesChangedListeners.forEach((e) => e(t.map((i) => R({}, i))));
63537
63535
  }
63538
63536
  emitCurrentChapterChanged() {
63539
63537
  if (this.currentChapterChangedListeners.size === 0)
63540
63538
  return;
63541
63539
  const t = this.getCurrentChapterInfo();
63542
- this.currentChapterChangedListeners.forEach((e) => e(_({}, t)));
63540
+ this.currentChapterChangedListeners.forEach((e) => e(R({}, t)));
63543
63541
  }
63544
63542
  /** 当前章节索引(0-based;无当前章节为 -1),按引用或名称匹配 */
63545
63543
  getCurrentChapterIndex() {