@realsee/dnalogel 2.12.0-alpha.2 → 2.12.0-alpha.4

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 (269) hide show
  1. package/dist/PanoTagPlugin/controller/TagRender.d.ts +2 -1
  2. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
  3. package/dist/index.cjs.js +3 -3
  4. package/dist/index.js +188 -187
  5. package/dist/index.umd.js +17 -17
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +25 -25
  9. package/docs/classes/Magnifier.html +20 -20
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +25 -25
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  14. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  15. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  16. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  17. package/docs/classes/PanoTagPluginController.html +45 -45
  18. package/docs/classes/Util.BetterTween.html +8 -8
  19. package/docs/classes/Util.FivePointSelector.html +12 -12
  20. package/docs/classes/Util.Interval.html +12 -12
  21. package/docs/classes/Util.Magnifier.html +17 -17
  22. package/docs/classes/Util.PointDomHelper.html +11 -11
  23. package/docs/classes/Util.PointHelper.html +11 -11
  24. package/docs/classes/Util.Rectangle.html +13 -13
  25. package/docs/enums/CameraMovementEffect.html +7 -7
  26. package/docs/enums/ContentType.html +19 -19
  27. package/docs/enums/DIRECTION.html +9 -9
  28. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/DimensionType.html +7 -7
  30. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  31. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  32. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  33. package/docs/enums/PointType.html +7 -7
  34. package/docs/enums/Rotation.html +8 -8
  35. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  36. package/docs/functions/CameraMovementPlugin.html +5 -4
  37. package/docs/functions/CruisePlugin.html +5 -4
  38. package/docs/functions/GuideLinePlugin.html +6 -5
  39. package/docs/functions/ItemLabelPlugin.html +5 -4
  40. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  41. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  42. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  43. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  44. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  45. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  46. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  47. package/docs/functions/ModelViewPlugin.html +5 -4
  48. package/docs/functions/Object3DHelperPlugin.html +5 -4
  49. package/docs/functions/PanoCompassPlugin.html +5 -4
  50. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  51. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  52. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  53. package/docs/functions/PanoMeasurePlugin.html +5 -4
  54. package/docs/functions/PanoRulerPlugin.html +5 -4
  55. package/docs/functions/PanoRulerProPlugin.html +5 -4
  56. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  57. package/docs/functions/PanoTagPlugin.html +5 -4
  58. package/docs/functions/PanoVideoPlugin.html +5 -4
  59. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  60. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  61. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  62. package/docs/functions/Util.getFrameTime.html +5 -5
  63. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  64. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  65. package/docs/functions/Util.isNil.html +5 -5
  66. package/docs/functions/Util.nextFrame.html +5 -5
  67. package/docs/functions/Util.notNil.html +5 -5
  68. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  69. package/docs/functions/Util.tweenProgress.html +5 -5
  70. package/docs/functions/pluginFlag.html +6 -5
  71. package/docs/index.html +5 -4
  72. package/docs/interfaces/AddTagConfig.html +6 -6
  73. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  74. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  75. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  76. package/docs/interfaces/EventMap.html +15 -15
  77. package/docs/interfaces/FloorplanBounding.html +8 -8
  78. package/docs/interfaces/FloorplanData.html +10 -10
  79. package/docs/interfaces/FloorplanEntrance.html +11 -11
  80. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  81. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  82. package/docs/interfaces/FloorplanFloorData.html +9 -9
  83. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  84. package/docs/interfaces/FloorplanObserver.html +9 -9
  85. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  86. package/docs/interfaces/FloorplanPosition.html +7 -7
  87. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  88. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  89. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  90. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  91. package/docs/interfaces/FloorplanServerData.html +7 -7
  92. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  93. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  94. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  95. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  96. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  98. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  99. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  101. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  102. package/docs/interfaces/HelperOffset.html +8 -8
  103. package/docs/interfaces/ImagePlaneGroup.html +68 -0
  104. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  105. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  106. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  107. package/docs/interfaces/MinMax.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  109. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  110. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  111. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  112. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  113. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  114. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  115. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  116. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  117. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  118. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  119. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  120. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  121. package/docs/interfaces/Object3DHelperState.html +8 -8
  122. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  123. package/docs/interfaces/PaintBrushAction.html +12 -12
  124. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  125. package/docs/interfaces/PaintBrushState.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  127. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  128. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  129. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  130. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  132. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  133. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  134. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  135. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  136. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  137. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  139. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  140. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  141. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  142. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  143. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  144. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  145. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  146. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  147. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  149. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  150. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  151. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  152. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  153. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  154. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  155. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  156. package/docs/interfaces/Point.html +8 -8
  157. package/docs/interfaces/Room.html +9 -9
  158. package/docs/interfaces/RoomInfo.html +7 -7
  159. package/docs/interfaces/RoomLabel.html +14 -14
  160. package/docs/interfaces/RoomRules.html +6 -5
  161. package/docs/interfaces/Rooms.html +6 -5
  162. package/docs/interfaces/Scissor.html +9 -9
  163. package/docs/interfaces/State.html +8 -8
  164. package/docs/interfaces/TagCacheInterface.html +12 -12
  165. package/docs/interfaces/TagConfig.html +11 -11
  166. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  167. package/docs/interfaces/TagIconUrl.html +11 -11
  168. package/docs/interfaces/TagObjectGroup.html +6 -6
  169. package/docs/interfaces/TagStyle.html +6 -6
  170. package/docs/interfaces/Tags.html +9 -9
  171. package/docs/interfaces/TemporaryState.html +6 -6
  172. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  173. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  174. package/docs/modules/PanoVideoPluginType.html +5 -5
  175. package/docs/modules/Util.html +5 -5
  176. package/docs/modules.html +6 -4
  177. package/docs/types/ArrayPosition.html +6 -5
  178. package/docs/types/AudioAppearance.html +6 -5
  179. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  180. package/docs/types/CSS3DRenderExportType.html +6 -5
  181. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  182. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  183. package/docs/types/ClassFunctionParameters.html +6 -5
  184. package/docs/types/Color.html +6 -5
  185. package/docs/types/ContentTypeConfigKey.html +6 -5
  186. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  187. package/docs/types/ContentTypeMap.html +6 -5
  188. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  189. package/docs/types/Create3DElementReturnType.html +6 -5
  190. package/docs/types/CruisePluginExportType.html +6 -5
  191. package/docs/types/Direction-1.html +6 -5
  192. package/docs/types/Direction4.html +6 -5
  193. package/docs/types/FloorplanRuleLabels.html +6 -5
  194. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  195. package/docs/types/GuideLinePluginExportType.html +6 -5
  196. package/docs/types/HelperEventMap.html +6 -5
  197. package/docs/types/LoadTagConfig.html +6 -5
  198. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  199. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  200. package/docs/types/MediaData.html +6 -5
  201. package/docs/types/MediaStore.html +6 -5
  202. package/docs/types/ModelElement.html +6 -5
  203. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  204. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  205. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  206. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  207. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  208. package/docs/types/MoveArgs.html +6 -5
  209. package/docs/types/MoveOpts.html +6 -5
  210. package/docs/types/Object3DHelperEventMap.html +6 -5
  211. package/docs/types/ObjectFit.html +6 -5
  212. package/docs/types/PaintBrushEventMap.html +6 -5
  213. package/docs/types/PanoCompassPluginData.html +6 -5
  214. package/docs/types/PanoCompassPluginExportType.html +6 -5
  215. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  216. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  217. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  218. package/docs/types/PanoIndex.html +6 -5
  219. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  220. package/docs/types/PanoMeasureReturnType.html +6 -5
  221. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  222. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  223. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  224. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  225. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  226. package/docs/types/PlaneTag.html +6 -5
  227. package/docs/types/PlaneTagElement.html +6 -5
  228. package/docs/types/Point2DElement.html +6 -5
  229. package/docs/types/Point2DTag.html +6 -5
  230. package/docs/types/Point3DElement.html +6 -5
  231. package/docs/types/Point3DTag.html +6 -5
  232. package/docs/types/PointTag.html +6 -5
  233. package/docs/types/PointTagElement.html +6 -5
  234. package/docs/types/Position.html +6 -5
  235. package/docs/types/RotateArgs.html +6 -5
  236. package/docs/types/RotateOpts.html +6 -5
  237. package/docs/types/RuleLabelsKey.html +6 -5
  238. package/docs/types/RuleLabelsValue.html +6 -5
  239. package/docs/types/StickType.html +6 -5
  240. package/docs/types/Tag.html +6 -5
  241. package/docs/types/Tag2D.html +6 -5
  242. package/docs/types/Tag3D.html +6 -5
  243. package/docs/types/TagContentType.html +6 -5
  244. package/docs/types/TagDimensionType.html +6 -5
  245. package/docs/types/TagElement.html +6 -5
  246. package/docs/types/TagEvents.html +6 -5
  247. package/docs/types/TagGLTFObject.html +6 -5
  248. package/docs/types/TagHooks.html +6 -5
  249. package/docs/types/TagIconSize.html +6 -5
  250. package/docs/types/TagId.html +6 -5
  251. package/docs/types/TagPointType.html +6 -5
  252. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  253. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  254. package/docs/types/WorkCode.html +6 -5
  255. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  256. package/docs/variables/PLUGIN.html +6 -5
  257. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  258. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  259. package/docs/variables/VERSION.html +6 -5
  260. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  261. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  262. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  263. package/libs/PanoTagPlugin/controller/TagRender.d.ts +2 -1
  264. package/libs/PanoTagPlugin/controller/TagRender.js +45 -44
  265. package/libs/PanoTagPlugin/controller/index.js +3 -3
  266. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -0
  267. package/libs/base/BasePlugin.js +1 -1
  268. package/libs/shared-utils/three/loadTexture.js +19 -19
  269. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28,10 +28,10 @@ var W = (i, t, e) => new Promise((n, o) => {
28
28
  a((e = e.apply(i, t)).next());
29
29
  });
30
30
  import * as hi from "@tweenjs/tween.js";
31
- import bn, { Tween as ec, Easing as tc } from "@tweenjs/tween.js";
31
+ import yn, { Tween as ec, Easing as tc } from "@tweenjs/tween.js";
32
32
  import { Camera as nc, Five as Ve, Subscribe as Xe } from "@realsee/five";
33
33
  import * as I from "three";
34
- import { Vector3 as U, Group as yn, Raycaster as Mt, MeshBasicMaterial as wn, CanvasTexture as ic, AnimationMixer as oc, Color as xn, TextureLoader as ma, Vector2 as We, PlaneGeometry as sc, sRGBEncoding as rc, Mesh as mn, CurvePath as ac, LineCurve3 as lc, TubeGeometry as cc, ShaderMaterial as pa, SphereGeometry as uc, DoubleSide as ga, RingGeometry as dc, Quaternion as so, Euler as To, Matrix4 as un, Object3D as hc, VideoTexture as fc, LinearFilter as zo, Vector4 as mc, SphereBufferGeometry as pc } from "three";
34
+ import { Vector3 as U, Group as Gt, Raycaster as Mt, MeshBasicMaterial as wn, CanvasTexture as ic, AnimationMixer as oc, Color as xn, TextureLoader as ma, Vector2 as We, PlaneGeometry as sc, sRGBEncoding as rc, Mesh as pn, CurvePath as ac, LineCurve3 as lc, TubeGeometry as cc, ShaderMaterial as pa, SphereGeometry as uc, DoubleSide as ga, RingGeometry as dc, Quaternion as so, Euler as To, Matrix4 as dn, Object3D as hc, VideoTexture as fc, LinearFilter as zo, Vector4 as mc, SphereBufferGeometry as pc } from "three";
35
35
  import { CSS3DRenderer as gc, CSS3DObject as Wi } from "three/examples/jsm/renderers/CSS3DRenderer";
36
36
  import { Line as Aa } from "@realsee/five/line";
37
37
  import { FBXLoader as va } from "three/examples/jsm/loaders/FBXLoader";
@@ -88,12 +88,12 @@ function Pc(i, t, e, n = tc.Linear.None) {
88
88
  return requestAnimationFrame(s), o;
89
89
  }
90
90
  var mt = /* @__PURE__ */ ((i) => (i.Drawline = "Drawline", i.Undo = "Undo", i.Exit = "Exit", i))(mt || {});
91
- const pn = Symbol("$$PAINT_BRUSH_EVENT$$");
91
+ const gn = Symbol("$$PAINT_BRUSH_EVENT$$");
92
92
  function Qn(i) {
93
- return i[pn] || (i[pn] = {}), i[pn];
93
+ return i[gn] || (i[gn] = {}), i[gn];
94
94
  }
95
95
  function Ic(i) {
96
- i[pn] || delete i[pn];
96
+ i[gn] || delete i[gn];
97
97
  }
98
98
  class kc {
99
99
  hasListener(t) {
@@ -741,14 +741,14 @@ class Oo extends gc {
741
741
  function Sc(i) {
742
742
  return typeof Symbol == "undefined" ? `$Symbol<${i}>$` : Symbol(i);
743
743
  }
744
- const gn = Sc("$$EVENT$$");
744
+ const An = Sc("$$EVENT$$");
745
745
  function On(i) {
746
- return i[gn] || (i[gn] = {}), i[gn];
746
+ return i[An] || (i[An] = {}), i[An];
747
747
  }
748
748
  function Mc(i) {
749
- i[gn] || delete i[gn];
749
+ i[An] || delete i[An];
750
750
  }
751
- class qt {
751
+ class Jt {
752
752
  hasListener(t) {
753
753
  const e = On(this);
754
754
  return Boolean((e == null ? void 0 : e[t]) && e[t].length > 0);
@@ -829,7 +829,7 @@ class Qc extends Wi {
829
829
  m(this, "centerPosition");
830
830
  m(this, "ratio");
831
831
  m(this, "mode", "front");
832
- m(this, "hooks", new qt());
832
+ m(this, "hooks", new Jt());
833
833
  m(this, "opacityMesh");
834
834
  m(this, "selfVisible", !0);
835
835
  m(this, "parentVisibleListenerDisposer");
@@ -941,7 +941,7 @@ class wa extends I.Group {
941
941
  m(this, "isCSS3DGroup", !0);
942
942
  m(this, "mode");
943
943
  m(this, "CSS3DObjectLength", 0);
944
- m(this, "hooks", new qt());
944
+ m(this, "hooks", new Jt());
945
945
  this.mode = e;
946
946
  }
947
947
  add(...e) {
@@ -978,8 +978,8 @@ class Hc extends wa {
978
978
  }), super.add(...e), this;
979
979
  }
980
980
  }
981
- const Gc = 3, Ni = "CSS3DRenderer", dn = `${Ni}@${Gc}`, jt = () => {
982
- console.error(`${dn} is disposed`);
981
+ const Gc = 3, Ni = "CSS3DRenderer", hn = `${Ni}@${Gc}`, jt = () => {
982
+ console.error(`${hn} is disposed`);
983
983
  }, Le = {
984
984
  css3DObjects: [],
985
985
  frontModeStore: {
@@ -1000,7 +1000,7 @@ function Nc(i) {
1000
1000
  }
1001
1001
  class En {
1002
1002
  constructor(t) {
1003
- m(this, "hooks", new qt());
1003
+ m(this, "hooks", new Jt());
1004
1004
  m(this, "state", {
1005
1005
  enabled: !0,
1006
1006
  visible: !0,
@@ -1025,7 +1025,7 @@ class En {
1025
1025
  return Object.assign(x, n);
1026
1026
  })(), s = e.map(Cn);
1027
1027
  if ((s == null ? void 0 : s.length) < 4)
1028
- return console.error(`${dn}: requires 4 point but params may have fewer`);
1028
+ return console.error(`${hn}: requires 4 point but params may have fewer`);
1029
1029
  const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: u, pointerEvents: d } = o;
1030
1030
  let h = !1;
1031
1031
  const f = this.createObject(s, { ratio: r, dpr: a, container: u, mode: l, pointerEvents: d });
@@ -1143,7 +1143,7 @@ class En {
1143
1143
  if (t) {
1144
1144
  const s = (o = Le.behindModeStore.scene) != null ? o : this.scene;
1145
1145
  if (!s) {
1146
- console.error(`${dn}: scene is required when mode is behind`);
1146
+ console.error(`${hn}: scene is required when mode is behind`);
1147
1147
  return;
1148
1148
  }
1149
1149
  const r = new Rc(s);
@@ -1169,13 +1169,13 @@ class En {
1169
1169
  if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
1170
1170
  const o = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
1171
1171
  if (!o)
1172
- return console.error(`${dn}: css3DScene is required when mode is front`);
1172
+ return console.error(`${hn}: css3DScene is required when mode is front`);
1173
1173
  Le.frontModeStore.css3DRenderer.renderEveryFrame(o, t);
1174
1174
  }
1175
1175
  if (((n = (e = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : e.CSS3DObjectLength) != null ? n : 0) > 0) {
1176
1176
  const o = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
1177
1177
  if (!o)
1178
- return console.error(`${dn}: css3DScene is required when mode is behind`);
1178
+ return console.error(`${hn}: css3DScene is required when mode is behind`);
1179
1179
  Le.behindModeStore.css3DRenderer.renderEveryFrame(o, t);
1180
1180
  }
1181
1181
  }
@@ -1324,7 +1324,7 @@ const H1 = (i) => {
1324
1324
  i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
1325
1325
  });
1326
1326
  const o = (u, d = 2, h = 0.1) => {
1327
- const f = d / 2, v = c(u, h), p = new yn();
1327
+ const f = d / 2, v = c(u, h), p = new Gt();
1328
1328
  p.add(
1329
1329
  ki(
1330
1330
  new U(v.x + f, v.y, v.z),
@@ -1382,7 +1382,7 @@ function Fo() {
1382
1382
  function ut(i) {
1383
1383
  i.forEach(Ia);
1384
1384
  }
1385
- function Jt(i) {
1385
+ function Zt(i) {
1386
1386
  return typeof i == "function";
1387
1387
  }
1388
1388
  function ne(i, t) {
@@ -1395,7 +1395,7 @@ function _e(i, t) {
1395
1395
  function Yc(i) {
1396
1396
  return Object.keys(i).length === 0;
1397
1397
  }
1398
- function Zt(i, t, e, n) {
1398
+ function Kt(i, t, e, n) {
1399
1399
  if (i) {
1400
1400
  const o = ka(i, t, e, n);
1401
1401
  return i[0](o);
@@ -1404,7 +1404,7 @@ function Zt(i, t, e, n) {
1404
1404
  function ka(i, t, e, n) {
1405
1405
  return i[1] && n ? Be(e.ctx.slice(), i[1](n(t))) : e.ctx;
1406
1406
  }
1407
- function Kt(i, t, e, n) {
1407
+ function $t(i, t, e, n) {
1408
1408
  if (i[2] && n) {
1409
1409
  const o = i[2](n(e));
1410
1410
  if (t.dirty === void 0)
@@ -1419,13 +1419,13 @@ function Kt(i, t, e, n) {
1419
1419
  }
1420
1420
  return t.dirty;
1421
1421
  }
1422
- function $t(i, t, e, n, o, s) {
1422
+ function en(i, t, e, n, o, s) {
1423
1423
  if (o) {
1424
1424
  const r = ka(t, e, n, s);
1425
1425
  i.p(r, o);
1426
1426
  }
1427
1427
  }
1428
- function en(i) {
1428
+ function tn(i) {
1429
1429
  if (i.ctx.length > 32) {
1430
1430
  const t = [], e = i.ctx.length / 32;
1431
1431
  for (let n = 0; n < e; n++)
@@ -1438,24 +1438,24 @@ function Me(i) {
1438
1438
  return i == null ? "" : i;
1439
1439
  }
1440
1440
  function xi(i) {
1441
- return i && Jt(i.destroy) ? i.destroy : X;
1441
+ return i && Zt(i.destroy) ? i.destroy : X;
1442
1442
  }
1443
1443
  const xa = typeof window != "undefined";
1444
1444
  let Da = xa ? () => window.performance.now() : () => Date.now(), ro = xa ? (i) => requestAnimationFrame(i) : X;
1445
- const Gt = /* @__PURE__ */ new Set();
1445
+ const Wt = /* @__PURE__ */ new Set();
1446
1446
  function La(i) {
1447
- Gt.forEach((t) => {
1448
- t.c(i) || (Gt.delete(t), t.f());
1449
- }), Gt.size !== 0 && ro(La);
1447
+ Wt.forEach((t) => {
1448
+ t.c(i) || (Wt.delete(t), t.f());
1449
+ }), Wt.size !== 0 && ro(La);
1450
1450
  }
1451
1451
  function Sa(i) {
1452
1452
  let t;
1453
- return Gt.size === 0 && ro(La), {
1453
+ return Wt.size === 0 && ro(La), {
1454
1454
  promise: new Promise((e) => {
1455
- Gt.add(t = { c: i, f: e });
1455
+ Wt.add(t = { c: i, f: e });
1456
1456
  }),
1457
1457
  abort() {
1458
- Gt.delete(t);
1458
+ Wt.delete(t);
1459
1459
  }
1460
1460
  };
1461
1461
  }
@@ -1665,11 +1665,11 @@ function Xi(i, t) {
1665
1665
  function Lt(i) {
1666
1666
  return Ct().$$.context.get(i);
1667
1667
  }
1668
- function tn(i, t) {
1668
+ function nn(i, t) {
1669
1669
  const e = i.$$.callbacks[t.type];
1670
1670
  e && e.slice().forEach((n) => n.call(this, t));
1671
1671
  }
1672
- const hn = [], Qe = [], $n = [], Yi = [], Qa = Promise.resolve();
1672
+ const fn = [], Qe = [], $n = [], Yi = [], Qa = Promise.resolve();
1673
1673
  let Ui = !1;
1674
1674
  function Oa() {
1675
1675
  Ui || (Ui = !0, Qa.then(lo));
@@ -1688,18 +1688,18 @@ let Hn = 0;
1688
1688
  function lo() {
1689
1689
  const i = Pn;
1690
1690
  do {
1691
- for (; Hn < hn.length; ) {
1692
- const t = hn[Hn];
1691
+ for (; Hn < fn.length; ) {
1692
+ const t = fn[Hn];
1693
1693
  Hn++, at(t), tu(t.$$);
1694
1694
  }
1695
- for (at(null), hn.length = 0, Hn = 0; Qe.length; )
1695
+ for (at(null), fn.length = 0, Hn = 0; Qe.length; )
1696
1696
  Qe.pop()();
1697
1697
  for (let t = 0; t < $n.length; t += 1) {
1698
1698
  const e = $n[t];
1699
1699
  Di.has(e) || (Di.add(e), e());
1700
1700
  }
1701
1701
  $n.length = 0;
1702
- } while (hn.length);
1702
+ } while (fn.length);
1703
1703
  for (; Yi.length; )
1704
1704
  Yi.pop()();
1705
1705
  Ui = !1, Di.clear(), at(i);
@@ -1711,11 +1711,11 @@ function tu(i) {
1711
1711
  i.dirty = [-1], i.fragment && i.fragment.p(i.ctx, t), i.after_update.forEach(Ie);
1712
1712
  }
1713
1713
  }
1714
- let rn;
1714
+ let an;
1715
1715
  function Ra() {
1716
- return rn || (rn = Promise.resolve(), rn.then(() => {
1717
- rn = null;
1718
- })), rn;
1716
+ return an || (an = Promise.resolve(), an.then(() => {
1717
+ an = null;
1718
+ })), an;
1719
1719
  }
1720
1720
  function ri(i, t, e) {
1721
1721
  i.dispatchEvent(za(`${t ? "intro" : "outro"}${e}`));
@@ -1770,7 +1770,7 @@ function Tt(i, t, e) {
1770
1770
  let u = !1;
1771
1771
  return {
1772
1772
  start() {
1773
- u || (u = !0, _i(i), Jt(n) ? (n = n(), Ra().then(c)) : c());
1773
+ u || (u = !0, _i(i), Zt(n) ? (n = n(), Ra().then(c)) : c());
1774
1774
  },
1775
1775
  invalidate() {
1776
1776
  u = !1;
@@ -1780,7 +1780,7 @@ function Tt(i, t, e) {
1780
1780
  }
1781
1781
  };
1782
1782
  }
1783
- function nn(i, t, e) {
1783
+ function on(i, t, e) {
1784
1784
  let n = t(i, e), o = !0, s;
1785
1785
  const r = pt;
1786
1786
  r.r += 1;
@@ -1800,7 +1800,7 @@ function nn(i, t, e) {
1800
1800
  return o;
1801
1801
  });
1802
1802
  }
1803
- return Jt(n) ? Ra().then(() => {
1803
+ return Zt(n) ? Ra().then(() => {
1804
1804
  n = n(), a();
1805
1805
  }) : a(), {
1806
1806
  end(l) {
@@ -1911,7 +1911,7 @@ function K(i) {
1911
1911
  function J(i, t, e, n) {
1912
1912
  const { fragment: o, after_update: s } = i.$$;
1913
1913
  o && o.m(t, e), n || Ie(() => {
1914
- const r = i.$$.on_mount.map(Ia).filter(Jt);
1914
+ const r = i.$$.on_mount.map(Ia).filter(Zt);
1915
1915
  i.$$.on_destroy ? i.$$.on_destroy.push(...r) : ut(r), i.$$.on_mount = [];
1916
1916
  }), s.forEach(Ie);
1917
1917
  }
@@ -1920,7 +1920,7 @@ function Z(i, t) {
1920
1920
  e.fragment !== null && (ut(e.on_destroy), e.fragment && e.fragment.d(t), e.on_destroy = e.fragment = null, e.ctx = []);
1921
1921
  }
1922
1922
  function ou(i, t) {
1923
- i.$$.dirty[0] === -1 && (hn.push(i), Oa(), i.$$.dirty.fill(0)), i.$$.dirty[t / 31 | 0] |= 1 << t % 31;
1923
+ i.$$.dirty[0] === -1 && (fn.push(i), Oa(), i.$$.dirty.fill(0)), i.$$.dirty[t / 31 | 0] |= 1 << t % 31;
1924
1924
  }
1925
1925
  function ie(i, t, e, n, o, s, r, a = [-1]) {
1926
1926
  const l = Pn;
@@ -1963,7 +1963,7 @@ class oe {
1963
1963
  Z(this, 1), this.$destroy = X;
1964
1964
  }
1965
1965
  $on(t, e) {
1966
- if (!Jt(e))
1966
+ if (!Zt(e))
1967
1967
  return X;
1968
1968
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
1969
1969
  return n.push(e), () => {
@@ -2296,7 +2296,7 @@ function wu(i, t) {
2296
2296
  function $e(i, t, e = { deep: !1 }) {
2297
2297
  return e.deep ? uo(i, t) : bu(i, t);
2298
2298
  }
2299
- function _t(i) {
2299
+ function Xt(i) {
2300
2300
  return i < 0.5 ? 4 * i * i * i : 0.5 * Math.pow(2 * i - 2, 3) + 1;
2301
2301
  }
2302
2302
  function Wa(i) {
@@ -2323,7 +2323,7 @@ function No(i, { delay: t = 0, duration: e = 400, easing: n = Wa, x: o = 0, y: s
2323
2323
  opacity: ${l - u * h}`
2324
2324
  };
2325
2325
  }
2326
- function ui(i, { delay: t = 0, speed: e, duration: n, easing: o = _t } = {}) {
2326
+ function ui(i, { delay: t = 0, speed: e, duration: n, easing: o = Xt } = {}) {
2327
2327
  let s = i.getTotalLength();
2328
2328
  const r = getComputedStyle(i);
2329
2329
  return r.strokeLinecap !== "butt" && (s += parseInt(r.strokeWidth)), n === void 0 ? e === void 0 ? n = 800 : n = s / e : typeof n == "function" && (n = n(s)), {
@@ -4428,9 +4428,9 @@ function po(i, t, e, n) {
4428
4428
  }
4429
4429
  class Sn {
4430
4430
  constructor(t, e) {
4431
- m(this, "VERSION", "2.12.0-alpha.2");
4431
+ m(this, "VERSION", "2.12.0-alpha.4");
4432
4432
  m(this, "five");
4433
- m(this, "hooks", new qt());
4433
+ m(this, "hooks", new Jt());
4434
4434
  m(this, "staticPrefix", "//vrlab-static.ljcdn.com");
4435
4435
  this.five = t, e != null && e.staticPrefix && (this.staticPrefix = e.staticPrefix);
4436
4436
  }
@@ -4494,7 +4494,7 @@ function Ja(i, t, e = !0) {
4494
4494
  throw new Error(Ge.UpdateCameraError);
4495
4495
  });
4496
4496
  }
4497
- function Xt(i, t, e = 300) {
4497
+ function Yt(i, t, e = 300) {
4498
4498
  const n = i.getElement();
4499
4499
  !n || (n.style.opacity = t + "", n.style.transition = e === 0 ? "none" : `opacity ${e}ms linear`, e !== 0 && Promise.race([
4500
4500
  new Promise((o) => n.addEventListener("transitionend", o, { once: !0 })),
@@ -4594,7 +4594,7 @@ class th extends zt {
4594
4594
  throw l ? new Error(l) : new Error(Ge.UnknownError);
4595
4595
  this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4596
4596
  const u = o.modelOpacity, d = o.immediately ? 0 : Ua;
4597
- Xt(this.five, u, d), this.render(d);
4597
+ Yt(this.five, u, d), this.render(d);
4598
4598
  });
4599
4599
  return this.showPromise = s().then(() => {
4600
4600
  this.hooks.emit("showAnimationEnded", {
@@ -4615,7 +4615,7 @@ class th extends zt {
4615
4615
  userAction: !0,
4616
4616
  isAutoHide: !1
4617
4617
  }), e);
4618
- Xt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
4618
+ Yt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
4619
4619
  });
4620
4620
  m(this, "handleClick", () => {
4621
4621
  if (!this.state.visible)
@@ -4878,7 +4878,7 @@ class oh extends zt {
4878
4878
  throw l ? new Error(l) : new Error(Ge.UnknownError);
4879
4879
  this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4880
4880
  const u = o.modelOpacity, d = o.immediately ? 0 : Ua;
4881
- Xt(this.five, u, d), this.render(d);
4881
+ Yt(this.five, u, d), this.render(d);
4882
4882
  });
4883
4883
  return this.showPromise = s().then(() => {
4884
4884
  this.hooks.emit("showAnimationEnded", {
@@ -4899,7 +4899,7 @@ class oh extends zt {
4899
4899
  userAction: !0,
4900
4900
  isAutoHide: !1
4901
4901
  }), e);
4902
- Xt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
4902
+ Yt(this.five, 1, 0), this.hooks.emit("hide", { auto: o.isAutoHide, userAction: o.userAction }), this.render();
4903
4903
  });
4904
4904
  m(this, "handleClick", () => {
4905
4905
  if (!this.state.visible)
@@ -5260,7 +5260,7 @@ class sh extends zt {
5260
5260
  const { userAction: n } = e;
5261
5261
  this.hooks.emit("show", { userAction: n, auto: !1 }), this.five.getCurrentState().mode !== "Topview" && (yield qa(this.five, ["Topview", void 0, void 0, n])), this.five.model.show(this.floorIndex), this.updatePosition(), this.updateSize();
5262
5262
  const o = 500, s = this.state.config.modelOpacity;
5263
- Xt(this.five, s, o), this.hooks.emit("showAnimationEnded", { userAction: n, auto: !1 }), this.render();
5263
+ Yt(this.five, s, o), this.hooks.emit("showAnimationEnded", { userAction: n, auto: !1 }), this.render();
5264
5264
  });
5265
5265
  }
5266
5266
  _hide(e) {
@@ -5270,7 +5270,7 @@ class sh extends zt {
5270
5270
  const { userAction: n } = e;
5271
5271
  this.hooks.emit("hide", { userAction: n, auto: !1 });
5272
5272
  const o = 1, s = 0;
5273
- Xt(this.five, o, s), this.render();
5273
+ Yt(this.five, o, s), this.render();
5274
5274
  });
5275
5275
  }
5276
5276
  _enable(e) {
@@ -6127,7 +6127,7 @@ const Ih = ({ x: i, y: t, z: e }) => new U(i, t, e), K1 = (i, t) => {
6127
6127
  }, h = (y) => y === "Floorplan" ? u() : d();
6128
6128
  return { load: l, enable: (y) => (e.enabled || (e.enabled = !0, h(i.currentMode), i.on("modeChange", h), u(y)), !0), disable: () => (e.enabled && (e.enabled = !1, d(), i.off("modeChange", h)), !0) };
6129
6129
  };
6130
- class vo extends bn.Tween {
6130
+ class vo extends yn.Tween {
6131
6131
  constructor() {
6132
6132
  super(...arguments);
6133
6133
  m(this, "disposeMethods", []);
@@ -6136,11 +6136,11 @@ class vo extends bn.Tween {
6136
6136
  m(this, "play", () => (this.start(0), this.animationFrameDisposer = Mn((e) => this.update(e)), this));
6137
6137
  m(this, "dispose", () => {
6138
6138
  var e;
6139
- this.stop(), (e = this.animationFrameDisposer) == null || e.call(this), this.disposeMethods.forEach((n) => n()), this.disposeMethods = [], bn.remove(this);
6139
+ this.stop(), (e = this.animationFrameDisposer) == null || e.call(this), this.disposeMethods.forEach((n) => n()), this.disposeMethods = [], yn.remove(this);
6140
6140
  });
6141
6141
  }
6142
6142
  }
6143
- function Ka(i, t = bn.Easing.Linear.None) {
6143
+ function Ka(i, t = yn.Easing.Linear.None) {
6144
6144
  const e = new vo({ progress: 0 }).to({ progress: 1 });
6145
6145
  return i !== void 0 && e.duration(i), t !== void 0 && e.easing(t), e;
6146
6146
  }
@@ -6993,7 +6993,7 @@ function Zi(i) {
6993
6993
  return W(this, null, function* () {
6994
6994
  return new Promise((t, e) => {
6995
6995
  Uh.load(i, t, void 0, e);
6996
- }).then((t) => (t.encoding = I.sRGBEncoding, t));
6996
+ }).then((t) => (t.encoding = I.sRGBEncoding, t.minFilter = I.LinearFilter, t));
6997
6997
  });
6998
6998
  }
6999
6999
  const Nn = { userAction: !0 };
@@ -7436,7 +7436,7 @@ class bo {
7436
7436
  const [l, c] = a.points, u = e(l), d = e(c);
7437
7437
  if (!u || !d)
7438
7438
  throw new Error("\u7EBF\u4E0A\u7684\u70B9\u4E0D\u5B58\u5728");
7439
- const h = new on(u, d, this.model);
7439
+ const h = new sn(u, d, this.model);
7440
7440
  return h.id = a.id, h.text = a.text, h;
7441
7441
  }), s = n();
7442
7442
  this.points.push(...s), this.lines.push(...o), this.visiblePanoIndexes = t.visiblePanoIndexes;
@@ -7576,7 +7576,7 @@ function mf(i) {
7576
7576
  }
7577
7577
  return l;
7578
7578
  }
7579
- class on {
7579
+ class sn {
7580
7580
  constructor(t, e, n) {
7581
7581
  m(this, "id");
7582
7582
  m(this, "selected", !1);
@@ -7621,7 +7621,7 @@ class on {
7621
7621
  return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
7622
7622
  }
7623
7623
  clone() {
7624
- const t = new on(this.points[0].clone(), this.points[1].clone(), this.model);
7624
+ const t = new sn(this.points[0].clone(), this.points[1].clone(), this.model);
7625
7625
  return t.text = this.text, t;
7626
7626
  }
7627
7627
  }
@@ -7703,7 +7703,7 @@ class bi {
7703
7703
  this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((t) => t.distanceItem.update(this.five));
7704
7704
  });
7705
7705
  var n, o;
7706
- this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new on(new tt([0, 0, 0]), new tt([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
7706
+ this.five = t.five, this.hook = t.hook, this.model = t.model, this.config = t.config, this.magnifier = t.magnifier, this.container = t.container, this.fiveHelper = t.fiveHelper, this.isMobile = (o = (n = t.openParams) == null ? void 0 : n.isMobile) != null ? o : !1, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new sn(new tt([0, 0, 0]), new tt([0, 0, 0]), this.model), this.dashed.distanceItem.setItemSelectable(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
7707
7707
  const e = this.five.getElement();
7708
7708
  e && (e.addEventListener("touchstart", Xn), e.addEventListener("contextmenu", Xn));
7709
7709
  }
@@ -7792,7 +7792,7 @@ class Yn extends bi {
7792
7792
  this.updateMouseGroup(n);
7793
7793
  const o = new tt(this.mouseGroup.position), s = this.lastPoint;
7794
7794
  if (o && (this.lastPoint = o), o && s) {
7795
- const r = new on(s, o, this.model);
7795
+ const r = new sn(s, o, this.model);
7796
7796
  r.distanceItem.setItemSelectable(!1), r.distanceItem.appendTo(this.container), this.polyline.addLine(r), this.group.add(r.mesh), r.distanceItem.update(this.five);
7797
7797
  }
7798
7798
  this.pressPoint = void 0, this.hasAppendMouseGroup = !1, this.magnifier.disable(), this.group.remove(this.mouseGroup), this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", o.position);
@@ -8201,25 +8201,25 @@ function al(i) {
8201
8201
  const t = (A = i.isMobile) != null ? A : !0, e = (y = i.useNormalVector) != null ? y : !0;
8202
8202
  let n = 10349931;
8203
8203
  e && i.ballColor >= 0 && (n = i.ballColor);
8204
- const o = new yn(), s = new sc(0.3, 0.3), r = t ? If : kf, a = new ma().load(r);
8204
+ const o = new Gt(), s = new sc(0.3, 0.3), r = t ? If : kf, a = new ma().load(r);
8205
8205
  a.encoding = rc;
8206
8206
  const l = new wn({
8207
8207
  map: a,
8208
8208
  transparent: !0,
8209
8209
  depthTest: !1
8210
- }), c = new mn(s, l), u = new ac();
8210
+ }), c = new pn(s, l), u = new ac();
8211
8211
  u.add(new lc(new U(0, 0, 0), new U(0, 0, 0.1)));
8212
8212
  const d = new cc(u, 8, 3e-3), h = new pa({
8213
8213
  vertexShader: xf,
8214
8214
  fragmentShader: Df,
8215
8215
  depthTest: !1,
8216
8216
  transparent: !0
8217
- }), f = new mn(d, h), g = new uc(0.01, 20, 20), v = new wn({
8217
+ }), f = new pn(d, h), g = new uc(0.01, 20, 20), v = new wn({
8218
8218
  color: n,
8219
8219
  depthTest: !1,
8220
8220
  transparent: !0,
8221
8221
  side: ga
8222
- }), p = new mn(g, v);
8222
+ }), p = new pn(g, v);
8223
8223
  return p.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(f, p), o;
8224
8224
  }
8225
8225
  class Lf {
@@ -8268,7 +8268,7 @@ class Lf {
8268
8268
  const t = this.five.model.intersectRaycaster(this.raycaster)[0];
8269
8269
  return t || null;
8270
8270
  });
8271
- this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = al(R({ isMobile: !0 }, t.openParams.crossHairParameter)), this.fiveHelper = t.fiveHelper, this.container.innerHTML = wf, 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 mn(
8271
+ this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = al(R({ isMobile: !0 }, t.openParams.crossHairParameter)), this.fiveHelper = t.fiveHelper, this.container.innerHTML = wf, 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 pn(
8272
8272
  new dc(0.04, 0.08, 32),
8273
8273
  new wn({ color: 1245179, opacity: 0, side: ga, transparent: !0 })
8274
8274
  ), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
@@ -8298,9 +8298,9 @@ class Lf {
8298
8298
  return n > o && (n = o), n < s && (n = s), -0.51 / (o - s) * n + 1;
8299
8299
  }
8300
8300
  dotAnimation() {
8301
- const t = bn.Easing.Quadratic.InOut, e = { opacity: 0.4, scale: this.pieceStyl.scale }, n = { opacity: [1, 0.4], scale: [this.pieceStyl.scale * 0.8, this.pieceStyl.scale] };
8301
+ const t = yn.Easing.Quadratic.InOut, e = { opacity: 0.4, scale: this.pieceStyl.scale }, n = { opacity: [1, 0.4], scale: [this.pieceStyl.scale * 0.8, this.pieceStyl.scale] };
8302
8302
  let o = Cf;
8303
- const s = new bn.Tween(e).to(n, 500).easing(t).start(0).onUpdate(({ opacity: r, scale: a }) => {
8303
+ const s = new yn.Tween(e).to(n, 500).easing(t).start(0).onUpdate(({ opacity: r, scale: a }) => {
8304
8304
  this.changePieceStyl("scale", a), this.changePieceStyl("opacity", r);
8305
8305
  }).onComplete(() => {
8306
8306
  o();
@@ -8329,7 +8329,7 @@ class Lf {
8329
8329
  return this.mouseGroup;
8330
8330
  }
8331
8331
  }
8332
- class an extends bi {
8332
+ class ln extends bi {
8333
8333
  constructor(e) {
8334
8334
  super(e);
8335
8335
  m(this, "state", "watching");
@@ -8385,7 +8385,7 @@ class an extends bi {
8385
8385
  m(this, "onGetEndPoint", (e) => {
8386
8386
  const n = this.mobileNowPoint;
8387
8387
  if (this.removeLine(this.dashed), this.hasAppendDashed = !1, this.mobileStartPoint && n) {
8388
- const o = new on(this.mobileStartPoint, n, this.model);
8388
+ const o = new sn(this.mobileStartPoint, n, this.model);
8389
8389
  o.distanceItem.appendTo(this.container), o.distanceItem.update(this.five), o.hook.on("selected", this.chooseLine), this.disposers.push(() => o.hook.off("selected", this.chooseLine)), this.group.add(o.mesh), this.polyline.addLine(o);
8390
8390
  }
8391
8391
  this.mobileStartPoint = null, this.mobileNowPoint = null, this.five.needsRender = !0;
@@ -8963,7 +8963,7 @@ class Xf {
8963
8963
  m(this, "container", document.createElement("div"));
8964
8964
  m(this, "shortcutKeyController");
8965
8965
  m(this, "controller", null);
8966
- m(this, "getCurrentMode", () => this.controller instanceof Yn ? "Edit" : this.controller instanceof Ts ? "Watch" : this.controller instanceof an ? "Mixed" : this.controller instanceof Ss ? "View" : null);
8966
+ m(this, "getCurrentMode", () => this.controller instanceof Yn ? "Edit" : this.controller instanceof Ts ? "Watch" : this.controller instanceof ln ? "Mixed" : this.controller instanceof Ss ? "View" : null);
8967
8967
  m(this, "changeMode", (t) => {
8968
8968
  var o;
8969
8969
  if (!this.hasOpen || this.getCurrentMode() === t)
@@ -8973,7 +8973,7 @@ class Xf {
8973
8973
  View: Ss,
8974
8974
  Watch: Ts,
8975
8975
  Edit: Yn,
8976
- Mixed: an
8976
+ Mixed: ln
8977
8977
  };
8978
8978
  if (!e[t])
8979
8979
  throw new Error("\u4E0D\u5B58\u5728\u7684 Mode");
@@ -8981,7 +8981,7 @@ class Xf {
8981
8981
  this.controller = new e[t](n), this.hook.emit("modeChange", t);
8982
8982
  });
8983
8983
  var o, s, r, a;
8984
- this.five = t, this.params = e, this.config = Ai(e, ["openParams", "magnifierParams"]), this.model = new yo(this.config), this.fiveHelper = new Kh(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new Zh(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new yn(), 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.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
8984
+ this.five = t, this.params = e, this.config = Ai(e, ["openParams", "magnifierParams"]), this.model = new yo(this.config), this.fiveHelper = new Kh(t), this.isMobile = (s = (o = e == null ? void 0 : e.openParams) == null ? void 0 : o.isMobile) != null ? s : !1, this.magnifier = new Zh(t, (r = e.magnifierParams) != null ? r : { width: 190, height: 190, scale: 2 }), this.group = new Gt(), 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.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
8985
8985
  const n = (a = this.params.openParams) != null ? a : {};
8986
8986
  if (this.params.useUIController !== !1) {
8987
8987
  const l = R({
@@ -9045,16 +9045,16 @@ class Xf {
9045
9045
  }
9046
9046
  save(t) {
9047
9047
  var o;
9048
- if (!(this.controller instanceof Yn) && !(this.controller instanceof an))
9048
+ if (!(this.controller instanceof Yn) && !(this.controller instanceof ln))
9049
9049
  return this;
9050
9050
  const e = (o = t == null ? void 0 : t.mode) != null ? o : "View", n = this.controller.polyline;
9051
9051
  return this.model.addPolyline(n), this.changeMode(e), this;
9052
9052
  }
9053
9053
  addStartPoint() {
9054
- this.controller instanceof an && this.hook.emit("willChangeState", "watching", "editing");
9054
+ this.controller instanceof ln && this.hook.emit("willChangeState", "watching", "editing");
9055
9055
  }
9056
9056
  addEndPoint() {
9057
- this.controller instanceof an && this.hook.emit("willChangeState", "editing", "watching");
9057
+ this.controller instanceof ln && this.hook.emit("willChangeState", "editing", "watching");
9058
9058
  }
9059
9059
  toJson() {
9060
9060
  return this.model.toJson();
@@ -9531,8 +9531,8 @@ const Bi = 1e-3, Hs = 0.01, rm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9531
9531
  const Ze = de.position.clone().setY(n).distanceTo(je.position);
9532
9532
  if (Ze < c || Ze > u || !Ye.containsPoint(je.position))
9533
9533
  return Ae;
9534
- const sn = je.position.clone().sub(de.position).setY(0);
9535
- if (sn.angleTo(je.normal) > Math.PI / 2 - r && sn.angleTo(je.normal) < Math.PI / 2 + r)
9534
+ const rn = je.position.clone().sub(de.position).setY(0);
9535
+ if (rn.angleTo(je.normal) > Math.PI / 2 - r && rn.angleTo(je.normal) < Math.PI / 2 + r)
9536
9536
  return Ae;
9537
9537
  const Bt = je.position.clone().project(de);
9538
9538
  if (!v.tags.every((ze) => {
@@ -9570,13 +9570,13 @@ const Bi = 1e-3, Hs = 0.01, rm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9570
9570
  const Ze = te[Ae];
9571
9571
  if (Ee.find((ke) => Ze.id === ke.id))
9572
9572
  continue;
9573
- const sn = Ze.position.clone().project(de);
9573
+ const rn = Ze.position.clone().project(de);
9574
9574
  if (!v.tags.concat(Ee).every((ke) => {
9575
9575
  if (ke.position.clone().sub(de.position).setY(0).angleTo(ve.setY(0)) > Math.PI / 2)
9576
9576
  return !0;
9577
9577
  const ze = ke.position.clone().project(de);
9578
9578
  return Math.sqrt(
9579
- Math.pow((sn.x - ze.x) / 2 * le, 2) + Math.pow((sn.y - ze.y) / 2 * ge, 2)
9579
+ Math.pow((rn.x - ze.x) / 2 * le, 2) + Math.pow((rn.y - ze.y) / 2 * ge, 2)
9580
9580
  ) > a;
9581
9581
  }))
9582
9582
  continue;
@@ -9991,7 +9991,7 @@ const sb = (i, t) => {
9991
9991
  name: "ModelItemLabelPlugin",
9992
9992
  version: 0
9993
9993
  };
9994
- var fn = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "topLeft", i.TOP_RIGHT = "topRight", i.BOTTOM_LEFT = "bottomLeft", i.BOTTOM_RIGHT = "bottomRight", i))(fn || {});
9994
+ var mn = /* @__PURE__ */ ((i) => (i.TOP_LEFT = "topLeft", i.TOP_RIGHT = "topRight", i.BOTTOM_LEFT = "bottomLeft", i.BOTTOM_RIGHT = "bottomRight", i))(mn || {});
9995
9995
  function Am(i) {
9996
9996
  if (i.length === 0)
9997
9997
  return [];
@@ -10000,10 +10000,10 @@ function Am(i) {
10000
10000
  let t = [];
10001
10001
  return i.forEach((e) => {
10002
10002
  const n = [
10003
- e[fn.TOP_LEFT],
10004
- e[fn.BOTTOM_LEFT],
10005
- e[fn.BOTTOM_RIGHT],
10006
- e[fn.TOP_RIGHT]
10003
+ e[mn.TOP_LEFT],
10004
+ e[mn.BOTTOM_LEFT],
10005
+ e[mn.BOTTOM_RIGHT],
10006
+ e[mn.TOP_RIGHT]
10007
10007
  ];
10008
10008
  t.push(n);
10009
10009
  }), t;
@@ -11666,12 +11666,12 @@ function wo(i) {
11666
11666
  }
11667
11667
  function yl(i) {
11668
11668
  if (Fe(i) && i.matrix) {
11669
- const t = new un().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new U().fromArray(n).applyMatrix4(t));
11669
+ const t = new dn().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new U().fromArray(n).applyMatrix4(t));
11670
11670
  return fi(e[0], e[2]);
11671
11671
  } else
11672
11672
  return wo(i.position);
11673
11673
  }
11674
- function ln(i, t) {
11674
+ function cn(i, t) {
11675
11675
  if (i === void 0)
11676
11676
  return;
11677
11677
  const { min: e, max: n } = t != null ? t : {};
@@ -11750,18 +11750,18 @@ function fp(i) {
11750
11750
  }
11751
11751
  return i;
11752
11752
  }
11753
- const Yt = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", An = {};
11753
+ const Ut = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", vn = {};
11754
11754
  var Co = /* @__PURE__ */ ((i) => (i.Default = "default", i.GetAudioDuration = "getAudioDuration", i.PlayAudio = "playAudio", i))(Co || {});
11755
11755
  function mp(i, t) {
11756
- const e = (t == null ? void 0 : t.namespace) || "default", n = An[e] || (An[e] = []);
11757
- let o = n.find((s) => !s.realSrc || s.realSrc === Yt);
11758
- return o || (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA", An), o = new wl(Yt), n.push(o)), i && (o.src = i), o;
11756
+ const e = (t == null ? void 0 : t.namespace) || "default", n = vn[e] || (vn[e] = []);
11757
+ let o = n.find((s) => !s.realSrc || s.realSrc === Ut);
11758
+ return o || (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA", vn), o = new wl(Ut), n.push(o)), i && (o.src = i), o;
11759
11759
  }
11760
11760
  function pp(i, t) {
11761
- const e = (t == null ? void 0 : t.namespace) || "default", n = An[e] || (An[e] = []), o = i - n.length;
11761
+ const e = (t == null ? void 0 : t.namespace) || "default", n = vn[e] || (vn[e] = []), o = i - n.length;
11762
11762
  if (!(o <= 0))
11763
11763
  for (let s = 0; s < o; s++)
11764
- n.push(new wl(Yt));
11764
+ n.push(new wl(Ut));
11765
11765
  }
11766
11766
  class wl extends Audio {
11767
11767
  constructor(e) {
@@ -11780,7 +11780,7 @@ class wl extends Audio {
11780
11780
  };
11781
11781
  }
11782
11782
  get isBlankAudio() {
11783
- return this.realSrc === Yt || !this.realSrc;
11783
+ return this.realSrc === Ut || !this.realSrc;
11784
11784
  }
11785
11785
  get src() {
11786
11786
  return super.src;
@@ -11795,11 +11795,11 @@ class wl extends Audio {
11795
11795
  super.muted = e;
11796
11796
  }
11797
11797
  clear() {
11798
- this.currentTime = 0, this.src = Yt;
11798
+ this.currentTime = 0, this.src = Ut;
11799
11799
  }
11800
11800
  }
11801
11801
  function gp(i) {
11802
- !i || i.inited || (i.src && (i.inited = !0, i.removeDocumentEventListener()), i.src === Yt && i.play());
11802
+ !i || i.inited || (i.src && (i.inited = !0, i.removeDocumentEventListener()), i.src === Ut && i.play());
11803
11803
  }
11804
11804
  class no {
11805
11805
  constructor(t = 0, e = 0) {
@@ -12396,7 +12396,7 @@ class zp extends Tp {
12396
12396
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(h = e.fiveState) == null ? void 0 : h.panoIndex}`
12397
12397
  };
12398
12398
  }
12399
- if (l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" && ln(c, l.visibleDistance) === !1)
12399
+ if (l.visibleDistance !== void 0 && l.visibleDistance !== "unLimited" && cn(c, l.visibleDistance) === !1)
12400
12400
  return {
12401
12401
  value: !1,
12402
12402
  reason: `distance is not in visibleDistance. distance: ${c}, visibleDistance: ${l.visibleDistance}`
@@ -12413,7 +12413,7 @@ class zp extends Tp {
12413
12413
  }
12414
12414
  if (l.angleRange && lp(e)) {
12415
12415
  const f = this.getAngle(e);
12416
- if (ln(f, l.angleRange) === !1)
12416
+ if (cn(f, l.angleRange) === !1)
12417
12417
  return { value: !1, reason: `angle is not in angleRange. angle: ${f}, angleRange: ${l.angleRange}` };
12418
12418
  }
12419
12419
  return {
@@ -12469,7 +12469,7 @@ class zp extends Tp {
12469
12469
  return !1;
12470
12470
  if (r.keep === "unfolded")
12471
12471
  return !0;
12472
- if (r.unfoldDistance && ln(c, r.unfoldDistance) === !1)
12472
+ if (r.unfoldDistance && cn(c, r.unfoldDistance) === !1)
12473
12473
  return !1;
12474
12474
  })();
12475
12475
  s.unfolded = a;
@@ -12492,7 +12492,7 @@ class zp extends Tp {
12492
12492
  return;
12493
12493
  if (r.autoUnfold.strategy === "ScreenPostion") {
12494
12494
  const l = this.getTagProject(e);
12495
- if (l && ln(l.x, r.autoUnfold.autoUnfoldProjectX) === !1)
12495
+ if (l && cn(l.x, r.autoUnfold.autoUnfoldProjectX) === !1)
12496
12496
  return !1;
12497
12497
  }
12498
12498
  if (r.autoUnfold.strategy === "MinimumDistance") {
@@ -12507,7 +12507,7 @@ class zp extends Tp {
12507
12507
  return !(typeof f != "object" || f.keep || f.autoUnfold === !1 || ((g = f.autoUnfold) == null ? void 0 : g.enable) === !1 || ((v = f.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
12508
12508
  }).map((h) => fe(R({}, h), { distance: this.getDistance(h.tag) })).filter(({ distance: h, tagConfig: f }) => {
12509
12509
  var g, v;
12510
- return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((g = f.autoUnfold) == null ? void 0 : g.enable) === !1 || ((v = f.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || f.autoUnfold.distance && ln(h, f.autoUnfold.distance) === !1);
12510
+ return !(h === void 0 || typeof f != "object" || f.autoUnfold === !1 || ((g = f.autoUnfold) == null ? void 0 : g.enable) === !1 || ((v = f.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || f.autoUnfold.distance && cn(h, f.autoUnfold.distance) === !1);
12511
12511
  }).sort((h, f) => h.distance - f.distance).findIndex((h) => h.id === e.id);
12512
12512
  if (u === -1 || u <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
12513
12513
  return !1;
@@ -12647,7 +12647,7 @@ function or(i) {
12647
12647
  }), s = !0);
12648
12648
  },
12649
12649
  o(r) {
12650
- n && n.invalidate(), r && (o = nn(t, ui, {
12650
+ n && n.invalidate(), r && (o = on(t, ui, {
12651
12651
  duration: i[2],
12652
12652
  delay: i[1],
12653
12653
  easing: At
@@ -12757,7 +12757,7 @@ function sr(i) {
12757
12757
  }), s = !0);
12758
12758
  },
12759
12759
  o(r) {
12760
- n && n.invalidate(), r && (o = nn(t, St, { duration: i[1] })), s = !1;
12760
+ n && n.invalidate(), r && (o = on(t, St, { duration: i[1] })), s = !1;
12761
12761
  },
12762
12762
  d(r) {
12763
12763
  r && S(t), r && o && o.end();
@@ -13057,15 +13057,15 @@ function lr(i) {
13057
13057
  a && a.end(1), r = Tt(o, St, {
13058
13058
  duration: i[2],
13059
13059
  delay: i[3],
13060
- easing: _t
13060
+ easing: Xt
13061
13061
  }), r.start();
13062
13062
  }), l = !0);
13063
13063
  },
13064
13064
  o(d) {
13065
- D(e.$$.fragment, d), r && r.invalidate(), d && (a = nn(o, St, {
13065
+ D(e.$$.fragment, d), r && r.invalidate(), d && (a = on(o, St, {
13066
13066
  duration: i[2],
13067
13067
  delay: i[4],
13068
- easing: _t
13068
+ easing: Xt
13069
13069
  })), l = !1;
13070
13070
  },
13071
13071
  d(d) {
@@ -13101,7 +13101,7 @@ function Zp(i) {
13101
13101
  function Kp(i, t, e) {
13102
13102
  let { direction: n = "right" } = t, { visible: o = !0 } = t, { duration: s = 0 } = t, { inDelay: r = 0 } = t, { outDelay: a = 0 } = t;
13103
13103
  function l(c) {
13104
- tn.call(this, i, c);
13104
+ nn.call(this, i, c);
13105
13105
  }
13106
13106
  return i.$$set = (c) => {
13107
13107
  "direction" in c && e(0, n = c.direction), "visible" in c && e(1, o = c.visible), "duration" in c && e(2, s = c.duration), "inDelay" in c && e(3, r = c.inDelay), "outDelay" in c && e(4, a = c.outDelay);
@@ -13393,7 +13393,7 @@ function lg(i) {
13393
13393
  }
13394
13394
  function cg(i) {
13395
13395
  let t;
13396
- const e = i[6].default, n = Zt(e, i, i[5], null);
13396
+ const e = i[6].default, n = Kt(e, i, i[5], null);
13397
13397
  return {
13398
13398
  c() {
13399
13399
  n && n.c();
@@ -13402,12 +13402,12 @@ function cg(i) {
13402
13402
  n && n.m(o, s), t = !0;
13403
13403
  },
13404
13404
  p(o, s) {
13405
- n && n.p && (!t || s & 32) && $t(
13405
+ n && n.p && (!t || s & 32) && en(
13406
13406
  n,
13407
13407
  e,
13408
13408
  o,
13409
13409
  o[5],
13410
- t ? Kt(e, o[5], s, null) : en(o[5]),
13410
+ t ? $t(e, o[5], s, null) : tn(o[5]),
13411
13411
  null
13412
13412
  );
13413
13413
  },
@@ -13788,10 +13788,10 @@ function gr(i) {
13788
13788
  }), o = !0);
13789
13789
  },
13790
13790
  o(s) {
13791
- e && e.invalidate(), s && (n = nn(t, ui, {
13791
+ e && e.invalidate(), s && (n = on(t, ui, {
13792
13792
  duration: i[1],
13793
13793
  delay: i[2],
13794
- easing: _t
13794
+ easing: Xt
13795
13795
  })), o = !1;
13796
13796
  },
13797
13797
  d(s) {
@@ -13876,7 +13876,7 @@ function Dg(i) {
13876
13876
  function Lg(i, t, e) {
13877
13877
  let { active: n = !1 } = t;
13878
13878
  function o(s) {
13879
- tn.call(this, i, s);
13879
+ nn.call(this, i, s);
13880
13880
  }
13881
13881
  return i.$$set = (s) => {
13882
13882
  "active" in s && e(0, n = s.active);
@@ -13986,7 +13986,7 @@ class Bg extends oe {
13986
13986
  super(), ie(this, t, zg, Tg, ne, { pagesCount: 0, currentPageIndex: 1 }, Mg);
13987
13987
  }
13988
13988
  }
13989
- const Ut = "prev", wt = "next";
13989
+ const qt = "prev", wt = "next";
13990
13990
  function jg(i) {
13991
13991
  ce(i, "svelte-1bftafx", ":root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-1bftafx{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-1bftafx:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-1bftafx{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-1bftafx{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-1bftafx{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-1bftafx,.sc-carousel-arrow__circle_disabled.svelte-1bftafx:hover{opacity:0.5}");
13992
13992
  }
@@ -13994,13 +13994,13 @@ function Vg(i) {
13994
13994
  let t, e, n, o;
13995
13995
  return {
13996
13996
  c() {
13997
- t = z("button"), e = z("i"), b(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), q(e, "sc-carousel-arrow__arrow-next", i[0] === wt), q(e, "sc-carousel-arrow__arrow-prev", i[0] === Ut), b(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), q(t, "sc-carousel-arrow__circle_disabled", i[1]);
13997
+ t = z("button"), e = z("i"), b(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), q(e, "sc-carousel-arrow__arrow-next", i[0] === wt), q(e, "sc-carousel-arrow__arrow-prev", i[0] === qt), b(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), q(t, "sc-carousel-arrow__circle_disabled", i[1]);
13998
13998
  },
13999
13999
  m(s, r) {
14000
14000
  M(s, t, r), B(t, e), n || (o = we(t, "click", i[2]), n = !0);
14001
14001
  },
14002
14002
  p(s, [r]) {
14003
- r & 1 && q(e, "sc-carousel-arrow__arrow-next", s[0] === wt), r & 1 && q(e, "sc-carousel-arrow__arrow-prev", s[0] === Ut), r & 2 && q(t, "sc-carousel-arrow__circle_disabled", s[1]);
14003
+ r & 1 && q(e, "sc-carousel-arrow__arrow-next", s[0] === wt), r & 1 && q(e, "sc-carousel-arrow__arrow-prev", s[0] === qt), r & 2 && q(t, "sc-carousel-arrow__circle_disabled", s[1]);
14004
14004
  },
14005
14005
  i: X,
14006
14006
  o: X,
@@ -14012,7 +14012,7 @@ function Vg(i) {
14012
14012
  function Qg(i, t, e) {
14013
14013
  let { direction: n = wt } = t, { disabled: o = !1 } = t;
14014
14014
  function s(r) {
14015
- tn.call(this, i, r);
14015
+ nn.call(this, i, r);
14016
14016
  }
14017
14017
  return i.$$set = (r) => {
14018
14018
  "direction" in r && e(0, n = r.direction), "disabled" in r && e(1, o = r.disabled);
@@ -14115,7 +14115,7 @@ function Jg(i, { thresholdProvider: t }) {
14115
14115
  if (!a)
14116
14116
  return;
14117
14117
  const f = Qi(h), g = f.x - n, v = f.y - o;
14118
- n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx: g, dy: v }), g !== 0 && Math.sign(g) !== Math.sign(s) && (s = 0), s += g, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? Ut : wt }), yr(window, d), wr(window, u));
14118
+ n = f.x, o = f.y, e("swipeMove", { x: n, y: o, dx: g, dy: v }), g !== 0 && Math.sign(g) !== Math.sign(s) && (s = 0), s += g, Math.abs(s) > t() && (e("swipeThresholdReached", { direction: s > 0 ? qt : wt }), yr(window, d), wr(window, u));
14119
14119
  }
14120
14120
  function d(h) {
14121
14121
  if (yr(window, d), wr(window, u), a = !1, !l()) {
@@ -14161,7 +14161,7 @@ const t0 = (i, t) => {
14161
14161
  const e = t.x - i.x, n = t.y - i.y;
14162
14162
  return Math.sqrt(e * e + n * n);
14163
14163
  };
14164
- function Wt(i, t, e) {
14164
+ function Nt(i, t, e) {
14165
14165
  return Math.max(i, Math.min(t, e));
14166
14166
  }
14167
14167
  function n0(i, t) {
@@ -14282,7 +14282,7 @@ function d0({
14282
14282
  particlesToScroll: n,
14283
14283
  particlesCount: o
14284
14284
  }) {
14285
- return Wt(
14285
+ return Nt(
14286
14286
  0,
14287
14287
  Math.min(t + i * n, o - e),
14288
14288
  o - 1
@@ -14294,7 +14294,7 @@ function h0({
14294
14294
  particlesCount: e,
14295
14295
  particlesToShow: n
14296
14296
  }) {
14297
- return Wt(
14297
+ return Nt(
14298
14298
  0,
14299
14299
  Math.min(i * t, e - n),
14300
14300
  e - 1
@@ -14392,7 +14392,7 @@ function A0({
14392
14392
  total: n.head + n.tail
14393
14393
  });
14394
14394
  }
14395
- const vn = (i, t, e) => {
14395
+ const bn = (i, t, e) => {
14396
14396
  if (i && i.hasOwnProperty(t))
14397
14397
  return i[t];
14398
14398
  if (e === void 0)
@@ -14498,7 +14498,7 @@ function I0({
14498
14498
  particlesToShow: o,
14499
14499
  particlesToScroll: s
14500
14500
  }) {
14501
- const r = Wt(0, t, e - 1);
14501
+ const r = Nt(0, t, e - 1);
14502
14502
  let a = r - 1, l = r + 1;
14503
14503
  a = i ? a < 0 ? e - 1 : a : Math.max(0, a), l = i ? l > e - 1 ? 0 : l : Math.min(e - 1, l);
14504
14504
  const c = [.../* @__PURE__ */ new Set([
@@ -14643,14 +14643,14 @@ function L0(i) {
14643
14643
  });
14644
14644
  },
14645
14645
  setParticlesToShow({ data: r }) {
14646
- r.particlesToShow = Wt(
14646
+ r.particlesToShow = Nt(
14647
14647
  1,
14648
14648
  r.particlesToShowInit,
14649
14649
  r.particlesCountWithoutClones
14650
14650
  );
14651
14651
  },
14652
14652
  setParticlesToScroll({ data: r }) {
14653
- r.particlesToScroll = Wt(
14653
+ r.particlesToScroll = Nt(
14654
14654
  1,
14655
14655
  r.particlesToScrollInit,
14656
14656
  r.particlesCountWithoutClones
@@ -14681,7 +14681,7 @@ function L0(i) {
14681
14681
  });
14682
14682
  },
14683
14683
  _moveToParticle({ data: r }, a) {
14684
- r.currentParticleIndex = Wt(
14684
+ r.currentParticleIndex = Nt(
14685
14685
  0,
14686
14686
  a,
14687
14687
  r.particlesCount - 1
@@ -14692,7 +14692,7 @@ function L0(i) {
14692
14692
  },
14693
14693
  _applyAutoplayIfNeeded(l) {
14694
14694
  return W(this, arguments, function* ({ data: r, methods: a }) {
14695
- if (!r.infinite && (r.autoplayDirection === wt && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Ut && r.currentParticleIndex === 0)) {
14695
+ if (!r.infinite && (r.autoplayDirection === wt && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === qt && r.currentParticleIndex === 0)) {
14696
14696
  t.reset();
14697
14697
  return;
14698
14698
  }
@@ -14701,7 +14701,7 @@ function L0(i) {
14701
14701
  [wt]: () => W(this, null, function* () {
14702
14702
  return a.showNextPage();
14703
14703
  }),
14704
- [Ut]: () => W(this, null, function* () {
14704
+ [qt]: () => W(this, null, function* () {
14705
14705
  return a.showPrevPage();
14706
14706
  })
14707
14707
  })(r.autoplayDirection);
@@ -14726,7 +14726,7 @@ function L0(i) {
14726
14726
  return W(this, arguments, function* ({ data: r, methods: a }, l, c) {
14727
14727
  if (t.reset(), r.disabled)
14728
14728
  return;
14729
- r.disabled = !0, l(), yield a.offsetPage({ animated: vn(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
14729
+ r.disabled = !0, l(), yield a.offsetPage({ animated: bn(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
14730
14730
  });
14731
14731
  },
14732
14732
  showNextPage(c, u) {
@@ -14765,7 +14765,7 @@ function L0(i) {
14765
14765
  });
14766
14766
  },
14767
14767
  offsetPage({ data: r }, a) {
14768
- const l = vn(a, "animated", !0);
14768
+ const l = bn(a, "animated", !0);
14769
14769
  return new Promise((c) => {
14770
14770
  r.durationMs = l ? r.durationMsInit : 0, r.offset = -r.currentParticleIndex * r.particleWidth, setTimeout(() => {
14771
14771
  c();
@@ -14815,7 +14815,7 @@ const M0 = (i) => ({
14815
14815
  });
14816
14816
  function Lr(i) {
14817
14817
  let t;
14818
- const e = i[37].prev, n = Zt(e, i, i[36], Dr), o = n || j0(i);
14818
+ const e = i[37].prev, n = Kt(e, i, i[36], Dr), o = n || j0(i);
14819
14819
  return {
14820
14820
  c() {
14821
14821
  o && o.c();
@@ -14824,12 +14824,12 @@ function Lr(i) {
14824
14824
  o && o.m(s, r), t = !0;
14825
14825
  },
14826
14826
  p(s, r) {
14827
- n ? n.p && (!t || r[0] & 96 | r[1] & 32) && $t(
14827
+ n ? n.p && (!t || r[0] & 96 | r[1] & 32) && en(
14828
14828
  n,
14829
14829
  e,
14830
14830
  s,
14831
14831
  s[36],
14832
- t ? Kt(e, s[36], r, B0) : en(s[36]),
14832
+ t ? $t(e, s[36], r, B0) : tn(s[36]),
14833
14833
  Dr
14834
14834
  ) : o && o.p && (!t || r[0] & 36) && o.p(s, t ? r : [-1, -1]);
14835
14835
  },
@@ -14901,7 +14901,7 @@ function Sr(i) {
14901
14901
  }
14902
14902
  function Mr(i) {
14903
14903
  let t;
14904
- const e = i[37].next, n = Zt(e, i, i[36], kr), o = n || V0(i);
14904
+ const e = i[37].next, n = Kt(e, i, i[36], kr), o = n || V0(i);
14905
14905
  return {
14906
14906
  c() {
14907
14907
  o && o.c();
@@ -14910,12 +14910,12 @@ function Mr(i) {
14910
14910
  o && o.m(s, r), t = !0;
14911
14911
  },
14912
14912
  p(s, r) {
14913
- n ? n.p && (!t || r[0] & 96 | r[1] & 32) && $t(
14913
+ n ? n.p && (!t || r[0] & 96 | r[1] & 32) && en(
14914
14914
  n,
14915
14915
  e,
14916
14916
  s,
14917
14917
  s[36],
14918
- t ? Kt(e, s[36], r, T0) : en(s[36]),
14918
+ t ? $t(e, s[36], r, T0) : tn(s[36]),
14919
14919
  kr
14920
14920
  ) : o && o.p && (!t || r[0] & 1060) && o.p(s, t ? r : [-1, -1]);
14921
14921
  },
@@ -14961,7 +14961,7 @@ function V0(i) {
14961
14961
  }
14962
14962
  function Tr(i) {
14963
14963
  let t;
14964
- const e = i[37].dots, n = Zt(e, i, i[36], Ir), o = n || Q0(i);
14964
+ const e = i[37].dots, n = Kt(e, i, i[36], Ir), o = n || Q0(i);
14965
14965
  return {
14966
14966
  c() {
14967
14967
  o && o.c();
@@ -14970,12 +14970,12 @@ function Tr(i) {
14970
14970
  o && o.m(s, r), t = !0;
14971
14971
  },
14972
14972
  p(s, r) {
14973
- n ? n.p && (!t || r[0] & 1120 | r[1] & 32) && $t(
14973
+ n ? n.p && (!t || r[0] & 1120 | r[1] & 32) && en(
14974
14974
  n,
14975
14975
  e,
14976
14976
  s,
14977
14977
  s[36],
14978
- t ? Kt(e, s[36], r, M0) : en(s[36]),
14978
+ t ? $t(e, s[36], r, M0) : tn(s[36]),
14979
14979
  Ir
14980
14980
  ) : o && o.p && (!t || r[0] & 1056) && o.p(s, t ? r : [-1, -1]);
14981
14981
  },
@@ -15021,7 +15021,7 @@ function Q0(i) {
15021
15021
  }
15022
15022
  function O0(i) {
15023
15023
  let t, e, n, o, s, r, a, l, c, u, d, h, f = i[1] && Lr(i);
15024
- const g = i[37].default, v = Zt(g, i, i[36], xr);
15024
+ const g = i[37].default, v = Kt(g, i, i[36], xr);
15025
15025
  let p = i[3] && Sr(i), A = i[1] && Mr(i), y = i[4] && Tr(i);
15026
15026
  return {
15027
15027
  c() {
@@ -15046,14 +15046,14 @@ function O0(i) {
15046
15046
  p(w, x) {
15047
15047
  w[1] ? f ? (f.p(w, x), x[0] & 2 && P(f, 1)) : (f = Lr(w), f.c(), P(f, 1), f.m(e, n)) : f && (se(), D(f, 1, 1, () => {
15048
15048
  f = null;
15049
- }), re()), v && v.p && (!u || x[0] & 96 | x[1] & 32) && $t(
15049
+ }), re()), v && v.p && (!u || x[0] & 96 | x[1] & 32) && en(
15050
15050
  v,
15051
15051
  g,
15052
15052
  w,
15053
15053
  w[36],
15054
- u ? Kt(g, w[36], x, z0) : en(w[36]),
15054
+ u ? $t(g, w[36], x, z0) : tn(w[36]),
15055
15055
  xr
15056
- ), (!u || x[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || x[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || x[0] & 1) && T(s, "transition-timing-function", w[0]), r && Jt(r.update) && x[0] & 2048 && r.update.call(null, {
15056
+ ), (!u || x[0] & 256) && T(s, "transform", "translateX(" + w[8] + "px)"), (!u || x[0] & 512) && T(s, "transition-duration", w[9] + "ms"), (!u || x[0] & 1) && T(s, "transition-timing-function", w[0]), r && Zt(r.update) && x[0] & 2048 && r.update.call(null, {
15057
15057
  thresholdProvider: w[38]
15058
15058
  }), w[3] ? p ? (p.p(w, x), x[0] & 8 && P(p, 1)) : (p = Sr(w), p.c(), P(p, 1), p.m(o, null)) : p && (se(), D(p, 1, 1, () => {
15059
15059
  p = null;
@@ -15089,7 +15089,7 @@ function R0(i, t, e) {
15089
15089
  let { timingFunction: p = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: x = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: L = wt } = t, { pauseOnFocus: E = !1 } = t, { autoplayProgressVisible: V = !1 } = t, { dots: G = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: Y = 1 } = t, { particlesToScroll: j = 1 } = t;
15090
15090
  function F(te, Ae) {
15091
15091
  return W(this, null, function* () {
15092
- const je = vn(Ae, "animated", !0);
15092
+ const je = bn(Ae, "animated", !0);
15093
15093
  if (typeof te != "number")
15094
15094
  throw new Error("pageIndex should be a number");
15095
15095
  yield f.showPage(te, { animated: je });
@@ -15097,13 +15097,13 @@ function R0(i, t, e) {
15097
15097
  }
15098
15098
  function Q(te) {
15099
15099
  return W(this, null, function* () {
15100
- const Ae = vn(te, "animated", !0);
15100
+ const Ae = bn(te, "animated", !0);
15101
15101
  yield f.showPrevPage({ animated: Ae });
15102
15102
  });
15103
15103
  }
15104
15104
  function N(te) {
15105
15105
  return W(this, null, function* () {
15106
- const Ae = vn(te, "animated", !0);
15106
+ const Ae = bn(te, "animated", !0);
15107
15107
  yield f.showNextPage({ animated: Ae });
15108
15108
  });
15109
15109
  }
@@ -15145,7 +15145,7 @@ function R0(i, t, e) {
15145
15145
  return W(this, null, function* () {
15146
15146
  !O || (yield io({
15147
15147
  [wt]: f.showNextPage,
15148
- [Ut]: f.showPrevPage
15148
+ [qt]: f.showPrevPage
15149
15149
  })(te.detail.direction));
15150
15150
  });
15151
15151
  }
@@ -15521,7 +15521,7 @@ function jr(i) {
15521
15521
  }), a = !0);
15522
15522
  },
15523
15523
  o(d) {
15524
- D(o), s && s.invalidate(), d && (r = nn(t, No, i[6] ? {
15524
+ D(o), s && s.invalidate(), d && (r = on(t, No, i[6] ? {
15525
15525
  y: 4,
15526
15526
  duration: i[4],
15527
15527
  delay: i[3],
@@ -16309,7 +16309,7 @@ function cA(i) {
16309
16309
  }
16310
16310
  function uA(i) {
16311
16311
  let t, e, n, o;
16312
- const s = i[8].default, r = Zt(s, i, i[7], null);
16312
+ const s = i[8].default, r = Kt(s, i, i[7], null);
16313
16313
  return {
16314
16314
  c() {
16315
16315
  t = z("div"), r && r.c(), b(t, "class", "audio svelte-13e7hxv"), b(t, "style", i[0]);
@@ -16318,12 +16318,12 @@ function uA(i) {
16318
16318
  M(a, t, l), r && r.m(t, null), e = !0, n || (o = we(t, "click", Ta(i[1])), n = !0);
16319
16319
  },
16320
16320
  p(a, [l]) {
16321
- r && r.p && (!e || l & 128) && $t(
16321
+ r && r.p && (!e || l & 128) && en(
16322
16322
  r,
16323
16323
  s,
16324
16324
  a,
16325
16325
  a[7],
16326
- e ? Kt(s, a[7], l, null) : en(a[7]),
16326
+ e ? $t(s, a[7], l, null) : tn(a[7]),
16327
16327
  null
16328
16328
  ), (!e || l & 1) && b(t, "style", a[0]);
16329
16329
  },
@@ -16638,16 +16638,16 @@ function ea(i) {
16638
16638
  r && r.end(1), s = Tt(t, St, {
16639
16639
  duration: 1e3,
16640
16640
  delay: 0,
16641
- easing: _t
16641
+ easing: Xt
16642
16642
  }), s.start();
16643
16643
  }), a = !0);
16644
16644
  },
16645
16645
  o(l) {
16646
16646
  var c, u;
16647
- D(e.$$.fragment, l), D(o.$$.fragment, l), s && s.invalidate(), l && (r = nn(t, St, {
16647
+ D(e.$$.fragment, l), D(o.$$.fragment, l), s && s.invalidate(), l && (r = on(t, St, {
16648
16648
  duration: 1e3,
16649
16649
  delay: 20 * Math.min((u = (c = i[5]) == null ? void 0 : c.length) != null ? u : 10, 15),
16650
- easing: _t
16650
+ easing: Xt
16651
16651
  })), a = !1;
16652
16652
  },
16653
16653
  d(l) {
@@ -16719,7 +16719,7 @@ function vA(i, t, e) {
16719
16719
  e(2, d = !1);
16720
16720
  };
16721
16721
  function A(w) {
16722
- tn.call(this, i, w);
16722
+ nn.call(this, i, w);
16723
16723
  }
16724
16724
  function y() {
16725
16725
  h = this.clientWidth, e(3, h);
@@ -16878,7 +16878,7 @@ function PA(i, t, e) {
16878
16878
  e(2, h = x.detail);
16879
16879
  };
16880
16880
  function w(x) {
16881
- tn.call(this, i, x);
16881
+ nn.call(this, i, x);
16882
16882
  }
16883
16883
  return i.$$set = (x) => {
16884
16884
  "tag" in x && e(0, u = x.tag);
@@ -18031,7 +18031,7 @@ function gv(i, t, e) {
18031
18031
  g || d.emit("click", { event: w, target: "TagPoint", tag: h });
18032
18032
  }, A = (() => h.contentType === "Text" && h.data.appearance === "plane" ? 500 : 800)();
18033
18033
  function y(w) {
18034
- tn.call(this, i, w);
18034
+ nn.call(this, i, w);
18035
18035
  }
18036
18036
  return i.$$set = (w) => {
18037
18037
  "tag" in w && e(6, h = w.tag);
@@ -18431,8 +18431,9 @@ class Tv extends I.Mesh {
18431
18431
  class zv extends zp {
18432
18432
  constructor(e) {
18433
18433
  super(e);
18434
- m(this, "group", new yn());
18435
- m(this, "gltfObjectGroup", new yn());
18434
+ m(this, "group", new Gt());
18435
+ m(this, "imagePlaneGroup", new Gt());
18436
+ m(this, "gltfObjectGroup", new Gt());
18436
18437
  m(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
18437
18438
  m(this, "temporaryState", { visible: !0 });
18438
18439
  m(this, "TagContainerSvelte");
@@ -18446,11 +18447,11 @@ class zv extends zp {
18446
18447
  const s = yield o;
18447
18448
  if (((l = e.model) == null ? void 0 : l.promise) !== o || (e.model.object = s, !this.tags.includes(e)))
18448
18449
  return;
18449
- s.visible = e.state.visible, new un().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
18450
+ s.visible = e.state.visible, new dn().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
18450
18451
  const a = this.gltfObjectGroup.children.find((c) => c.customID === e.id);
18451
18452
  return a && this.gltfObjectGroup.remove(a), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
18452
18453
  }));
18453
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup);
18454
+ this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
18454
18455
  }
18455
18456
  clearTags() {
18456
18457
  this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
@@ -18462,7 +18463,7 @@ class zv extends zp {
18462
18463
  this.sort([...this.filterImageModel]).forEach((n) => {
18463
18464
  var s, r, a, l;
18464
18465
  const o = (s = n.data.mediaData[0]) == null ? void 0 : s.url;
18465
- !o || (n.imageModel && (n.imageModel.visible = (a = (r = n.state) == null ? void 0 : r.visible) != null ? a : !0), ((l = n.imageModel) == null ? void 0 : l.imageSrc) !== o && (n.imageModel = new Tv(o, n.position.map(rt)), n.imageModel.name = "PanoTagPluginImageModel", this.five.scene.add(n.imageModel)));
18466
+ !o || (n.imageModel && (n.imageModel.visible = (a = (r = n.state) == null ? void 0 : r.visible) != null ? a : !0), ((l = n.imageModel) == null ? void 0 : l.imageSrc) !== o && (n.imageModel = new Tv(o, n.position.map(rt)), n.imageModel.name = "PanoTagPluginImageModel", this.imagePlaneGroup.add(n.imageModel)));
18466
18467
  });
18467
18468
  }
18468
18469
  updateRenderPlaneTag() {
@@ -18544,7 +18545,7 @@ class zv extends zp {
18544
18545
  return;
18545
18546
  const r = Fe(e) ? e.data.mediaPosition : e.position;
18546
18547
  n.updateWorldMatrix(!1, !1);
18547
- const a = n.matrixWorld, l = new U().fromArray(r[0]), c = new U().fromArray(r[2]), u = new U().lerpVectors(l, c, 0.5).add(new U(0, 0, 5e-4)), d = new un().setPosition(u), h = new un().makeScale(o, o, o), f = new un().multiply(a).multiply(d).multiply(h);
18548
+ const a = n.matrixWorld, l = new U().fromArray(r[0]), c = new U().fromArray(r[2]), u = new U().lerpVectors(l, c, 0.5).add(new U(0, 0, 5e-4)), d = new dn().setPosition(u), h = new dn().makeScale(o, o, o), f = new dn().multiply(a).multiply(d).multiply(h);
18548
18549
  f.decompose(s.position, s.quaternion, s.scale);
18549
18550
  const g = s.opacityMesh;
18550
18551
  !g || f.decompose(g.position, g.quaternion, g.scale);
@@ -18666,7 +18667,7 @@ class Bv extends zv {
18666
18667
  }).filter((r) => r.position);
18667
18668
  return s.forEach(fp), this.tags.push(...s), cp(this.five).then(() => W(this, null, function* () {
18668
18669
  var r, a, l;
18669
- this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (l = n == null ? void 0 : n.withAnimation) != null ? l : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
18670
+ this.store.eventListenerDisposer && ((a = (r = this.store).eventListenerDisposer) == null || a.call(r)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (l = n == null ? void 0 : n.withAnimation) != null ? l : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
18670
18671
  }));
18671
18672
  });
18672
18673
  }
@@ -19100,7 +19101,7 @@ class Tn {
19100
19101
  return !1;
19101
19102
  });
19102
19103
  var c, u;
19103
- this.hooks = (c = t.sharedHooks) != null ? c : new qt(), this.camera = t.camera, this.model = t.model, this.originObject3D = t.originObject3D, this.helperObject3D = t.helperObject3D, this.container = t.container, this.scene = t.scene, this.domEvents = new be(t.camera, t.container), this.onRender = (u = t.onRender) != null ? u : () => {
19104
+ this.hooks = (c = t.sharedHooks) != null ? c : new Jt(), this.camera = t.camera, this.model = t.model, this.originObject3D = t.originObject3D, this.helperObject3D = t.helperObject3D, this.container = t.container, this.scene = t.scene, this.domEvents = new be(t.camera, t.container), this.onRender = (u = t.onRender) != null ? u : () => {
19104
19105
  }, this.offset = e == null ? void 0 : e.offset, this.initialHelperPosition(), this.initialHelperQuaternion(), this.enable();
19105
19106
  const n = (...d) => this.onSetOriginObjectScale(...d), o = (...d) => this.onSetOriginObjectRotate(...d), s = (...d) => this.onSetOriginObjectPosition(...d), r = (...d) => this.onApplyOriginObjectScale(...d), a = (...d) => this.onApplyOriginObjectRotate(...d), l = (...d) => this.onApplyOriginObjectPosition(...d);
19106
19107
  this.hooks.on("setObjectScale", n), this.hooks.on("setObjectRotate", o), this.hooks.on("setObjectPosition", s), this.hooks.on("applyObjectPosition", l), this.hooks.on("applyObjectRotate", a), this.hooks.on("applyObjectScale", r), this.disposers.push(() => {
@@ -19409,7 +19410,7 @@ const Fi = {
19409
19410
  Y: 4765519,
19410
19411
  Z: 4227839
19411
19412
  };
19412
- class Nt {
19413
+ class _t {
19413
19414
  static get X() {
19414
19415
  return new I.Color(Fi.X).convertSRGBToLinear().clone();
19415
19416
  }
@@ -19423,9 +19424,9 @@ class Nt {
19423
19424
  class Yv extends Fv {
19424
19425
  constructor(e) {
19425
19426
  super(e);
19426
- m(this, "xArrow", new Ri({ direction: "x", color: Nt.X }));
19427
- m(this, "yArrow", new Ri({ direction: "y", color: Nt.Y }));
19428
- m(this, "zArrow", new Ri({ direction: "z", color: Nt.Z }));
19427
+ m(this, "xArrow", new Ri({ direction: "x", color: _t.X }));
19428
+ m(this, "yArrow", new Ri({ direction: "y", color: _t.Y }));
19429
+ m(this, "zArrow", new Ri({ direction: "z", color: _t.Z }));
19429
19430
  this.add(this.xArrow), this.add(this.yArrow), this.add(this.zArrow);
19430
19431
  }
19431
19432
  show() {
@@ -19483,7 +19484,7 @@ class Jv extends Gv {
19483
19484
  m(this, "children", []);
19484
19485
  m(this, "angleTips");
19485
19486
  m(this, "container");
19486
- (n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Hi({ direction: "x", color: Nt.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new Hi({ direction: "y", color: Nt.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new Hi({ direction: "z", color: Nt.Z })), (n == null ? void 0 : n.container) && (n == null ? void 0 : n.angleTipsEnable) !== !1 && (this.container = n == null ? void 0 : n.container, this.angleTips = qv({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
19487
+ (n == null ? void 0 : n.yzCircleEnable) !== !1 && (this.xCircle = new Hi({ direction: "x", color: _t.X })), (n == null ? void 0 : n.xzCircleEnable) !== !1 && (this.yCircle = new Hi({ direction: "y", color: _t.Y })), (n == null ? void 0 : n.xyCircleEnable) !== !1 && (this.zCircle = new Hi({ direction: "z", color: _t.Z })), (n == null ? void 0 : n.container) && (n == null ? void 0 : n.angleTipsEnable) !== !1 && (this.container = n == null ? void 0 : n.container, this.angleTips = qv({ display: "none" }), this.container.appendChild(this.angleTips.element)), this.add(...[this.xCircle, this.yCircle, this.zCircle].filter(Boolean)), this.show();
19487
19488
  }
19488
19489
  hide() {
19489
19490
  this.children.forEach((e) => e.hide());
@@ -19937,7 +19938,7 @@ class i1 extends Tn {
19937
19938
  !this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.helperObject3D.show(), this.hooks.emit("moveEnd"));
19938
19939
  }
19939
19940
  }
19940
- class cn {
19941
+ class un {
19941
19942
  constructor(t, e, n, o, s, r) {
19942
19943
  m(this, "helperController");
19943
19944
  m(this, "five");
@@ -19987,7 +19988,7 @@ class c1 {
19987
19988
  enabled: !0,
19988
19989
  disposed: !1
19989
19990
  });
19990
- m(this, "hooks", new qt());
19991
+ m(this, "hooks", new Jt());
19991
19992
  m(this, "eventListener", {});
19992
19993
  t && this.addControllers(t), this.setState(this.state);
19993
19994
  }
@@ -20396,20 +20397,20 @@ class v1 extends Sn {
20396
20397
  }
20397
20398
  const o = new c1(), s = [], r = (f = this.five.getElement()) == null ? void 0 : f.parentElement, a = this.five.camera, { moveHelper: l = !0, rotateHelper: c = !0, scaleHelper: u = !0, boundingBoxHelper: d = !1 } = n, h = new Xe();
20398
20399
  if (l) {
20399
- const g = new Yv(e), v = this.getConfig(n.moveHelper), p = new cn(this.five, i1, e, g, v, h);
20400
+ const g = new Yv(e), v = this.getConfig(n.moveHelper), p = new un(this.five, i1, e, g, v, h);
20400
20401
  o.addControllers({ moveController: p.helperController }), s.push(() => p.dispose());
20401
20402
  }
20402
20403
  if (c) {
20403
- const g = this.getConfig(n.rotateHelper), v = new Jv(e, R({ container: r }, g)), p = new cn(this.five, u1, e, v, g, h);
20404
+ const g = this.getConfig(n.rotateHelper), v = new Jv(e, R({ container: r }, g)), p = new un(this.five, u1, e, v, g, h);
20404
20405
  o.addControllers({ rotateController: p.helperController }), s.push(() => p.dispose());
20405
20406
  }
20406
20407
  if (d) {
20407
- const g = new n1(e), v = new cn(this.five, f1, e, g, void 0, h);
20408
+ const g = new n1(e), v = new un(this.five, f1, e, g, void 0, h);
20408
20409
  o.addControllers({ boundingBoxController: v.helperController });
20409
20410
  }
20410
20411
  if (u)
20411
20412
  if (e.isCSS3DObjectPlus && r) {
20412
- const g = new t1(e, r, a, this.five.scene), v = new cn(this.five, h1, e, g, void 0, h);
20413
+ const g = new t1(e, r, a, this.five.scene), v = new un(this.five, h1, e, g, void 0, h);
20413
20414
  o.addControllers({ scaleController: v.helperController }), s.push(() => v.dispose()), Ca(this.five).then(() => {
20414
20415
  var p, A;
20415
20416
  if (e.isCSS3DObjectPlus) {
@@ -20421,7 +20422,7 @@ class v1 extends Sn {
20421
20422
  }
20422
20423
  });
20423
20424
  } else {
20424
- const g = new m1(e), v = new cn(this.five, Ov, e, g, void 0, h);
20425
+ const g = new m1(e), v = new un(this.five, Ov, e, g, void 0, h);
20425
20426
  o.addControllers({ scaleController: v.helperController }), s.push(() => v.dispose());
20426
20427
  }
20427
20428
  return this.objectHelperMap.set(e, { helper: o, disposers: s }), o.controllers;
@@ -20609,7 +20610,7 @@ class fa {
20609
20610
  transparent: !0
20610
20611
  }), r = new pc(1, 64, 64);
20611
20612
  r.scale(-1, 1, 1);
20612
- const a = new mn(r, s);
20613
+ const a = new pn(r, s);
20613
20614
  a.name = "pano-video", this.videoMesh = a, this.five.work && this.onFiveDataLoaded(), this.enabled && this.addEventListeners(), this.mountIfNeeded();
20614
20615
  }
20615
20616
  get renderID() {
@@ -20799,7 +20800,7 @@ export {
20799
20800
  jv as ContentType,
20800
20801
  hb as CruisePlugin,
20801
20802
  bl as CruisePluginController,
20802
- fn as DIRECTION,
20803
+ mn as DIRECTION,
20803
20804
  Rt as DISPLAY_STRATEGY_TYPE,
20804
20805
  Vv as DimensionType,
20805
20806
  xt as FLOOR_PLAN_ATTACHED_TO,
@@ -20826,7 +20827,7 @@ export {
20826
20827
  db as PanoDoorLabelPlugin,
20827
20828
  Y1 as PanoFloorplanRadarPlugin,
20828
20829
  ib as PanoMeasurePlugin,
20829
- on as PanoMeasurePluginLine,
20830
+ sn as PanoMeasurePluginLine,
20830
20831
  yo as PanoMeasurePluginModel,
20831
20832
  tt as PanoMeasurePluginPoint,
20832
20833
  bo as PanoMeasurePluginPolyline,