@realsee/dnalogel 2.6.7-dev.0 → 2.6.7-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
  2. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  3. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  4. package/dist/index.cjs.js +14 -14
  5. package/dist/index.js +120 -111
  6. package/dist/index.umd.js +12 -12
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CSS3DRender.html +31 -31
  9. package/docs/classes/CruisePluginController.html +24 -24
  10. package/docs/classes/Magnifier.html +20 -20
  11. package/docs/classes/ModelRoomLabelController.html +11 -11
  12. package/docs/classes/Object3DHelperController.html +24 -24
  13. package/docs/classes/PaintBrush.html +15 -15
  14. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  15. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  16. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  17. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  18. package/docs/classes/PanoTagPluginController.html +118 -44
  19. package/docs/classes/Util.BetterTween.html +8 -8
  20. package/docs/classes/Util.FivePointSelector.html +12 -12
  21. package/docs/classes/Util.Interval.html +12 -12
  22. package/docs/classes/Util.Magnifier.html +17 -17
  23. package/docs/classes/Util.PointDomHelper.html +11 -11
  24. package/docs/classes/Util.PointHelper.html +11 -11
  25. package/docs/classes/Util.Rectangle.html +13 -13
  26. package/docs/enums/CameraMovementEffect.html +7 -7
  27. package/docs/enums/ContentType.html +18 -18
  28. package/docs/enums/DIRECTION.html +9 -9
  29. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/DimensionType.html +7 -7
  31. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  32. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  34. package/docs/enums/PointType.html +7 -7
  35. package/docs/enums/Rotation.html +8 -8
  36. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  37. package/docs/functions/CameraMovementPlugin.html +5 -5
  38. package/docs/functions/CruisePlugin.html +5 -5
  39. package/docs/functions/GuideLinePlugin.html +5 -5
  40. package/docs/functions/ItemLabelPlugin.html +5 -5
  41. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  42. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  43. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  44. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  45. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  46. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  47. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  48. package/docs/functions/ModelViewPlugin.html +5 -5
  49. package/docs/functions/Object3DHelperPlugin.html +5 -5
  50. package/docs/functions/PanoCompassPlugin.html +5 -5
  51. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  52. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  53. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  54. package/docs/functions/PanoMeasurePlugin.html +5 -5
  55. package/docs/functions/PanoRulerPlugin.html +5 -5
  56. package/docs/functions/PanoRulerProPlugin.html +5 -5
  57. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  58. package/docs/functions/PanoTagPlugin.html +5 -5
  59. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  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 +5 -5
  71. package/docs/index.html +4 -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/ItemLabelPluginData.html +6 -6
  104. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  105. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  106. package/docs/interfaces/MinMax.html +7 -7
  107. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  109. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  110. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  111. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  112. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  115. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  117. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  119. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  120. package/docs/interfaces/Object3DHelperState.html +8 -8
  121. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  122. package/docs/interfaces/PaintBrushAction.html +12 -12
  123. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  124. package/docs/interfaces/PaintBrushState.html +10 -10
  125. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  127. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  128. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  129. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  130. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  132. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  133. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  135. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  136. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  139. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  140. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  141. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  142. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  145. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  146. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  148. package/docs/interfaces/Point.html +8 -8
  149. package/docs/interfaces/Room.html +9 -9
  150. package/docs/interfaces/RoomInfo.html +7 -7
  151. package/docs/interfaces/RoomLabel.html +14 -14
  152. package/docs/interfaces/RoomRules.html +5 -5
  153. package/docs/interfaces/Rooms.html +5 -5
  154. package/docs/interfaces/Scissor.html +9 -9
  155. package/docs/interfaces/State.html +8 -8
  156. package/docs/interfaces/TagCache.html +12 -12
  157. package/docs/interfaces/TagConfig.html +11 -11
  158. package/docs/interfaces/TagIconUrl.html +9 -9
  159. package/docs/interfaces/Tags.html +9 -9
  160. package/docs/interfaces/TemporaryState.html +6 -6
  161. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  162. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  163. package/docs/modules/Util.html +5 -5
  164. package/docs/modules.html +4 -4
  165. package/docs/types/ArrayPosition.html +5 -5
  166. package/docs/types/AudioAppearance.html +5 -5
  167. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  168. package/docs/types/CSS3DRenderExportType.html +5 -5
  169. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  170. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  171. package/docs/types/ClassFunctionParameters.html +5 -5
  172. package/docs/types/Color.html +5 -5
  173. package/docs/types/ContentTypeConfigKey.html +5 -5
  174. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  175. package/docs/types/ContentTypeMap.html +5 -5
  176. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  177. package/docs/types/Create3DElementReturnType.html +5 -5
  178. package/docs/types/CruisePluginExportType.html +5 -5
  179. package/docs/types/Direction-1.html +5 -5
  180. package/docs/types/Direction4.html +5 -5
  181. package/docs/types/FloorplanRuleLabels.html +5 -5
  182. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  183. package/docs/types/GuideLinePluginExportType.html +5 -5
  184. package/docs/types/HelperEventMap.html +5 -5
  185. package/docs/types/LoadTagConfig.html +5 -5
  186. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  187. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  188. package/docs/types/MediaData.html +5 -5
  189. package/docs/types/MediaStore.html +5 -5
  190. package/docs/types/ModelElement.html +5 -5
  191. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  192. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  193. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  194. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  195. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  196. package/docs/types/MoveArgs.html +5 -5
  197. package/docs/types/MoveOpts.html +5 -5
  198. package/docs/types/Object3DHelperEventMap.html +5 -5
  199. package/docs/types/ObjectFit.html +5 -5
  200. package/docs/types/PaintBrushEventMap.html +5 -5
  201. package/docs/types/PanoCompassPluginData.html +5 -5
  202. package/docs/types/PanoCompassPluginExportType.html +5 -5
  203. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  204. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  205. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  206. package/docs/types/PanoIndex.html +5 -5
  207. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  208. package/docs/types/PanoMeasureReturnType.html +5 -5
  209. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  210. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  211. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  212. package/docs/types/PlaneTag.html +5 -5
  213. package/docs/types/PlaneTagElement.html +5 -5
  214. package/docs/types/Point2DElement.html +5 -5
  215. package/docs/types/Point2DTag.html +5 -5
  216. package/docs/types/Point3DElement.html +5 -5
  217. package/docs/types/Point3DTag.html +5 -5
  218. package/docs/types/PointTag.html +5 -5
  219. package/docs/types/PointTagElement.html +5 -5
  220. package/docs/types/Position.html +5 -5
  221. package/docs/types/RotateArgs.html +5 -5
  222. package/docs/types/RotateOpts.html +5 -5
  223. package/docs/types/RuleLabelsKey.html +5 -5
  224. package/docs/types/RuleLabelsValue.html +5 -5
  225. package/docs/types/StickType.html +5 -5
  226. package/docs/types/Tag.html +5 -5
  227. package/docs/types/Tag2D.html +5 -5
  228. package/docs/types/Tag3D.html +5 -5
  229. package/docs/types/TagContentType.html +5 -5
  230. package/docs/types/TagDimensionType.html +5 -5
  231. package/docs/types/TagElement.html +5 -5
  232. package/docs/types/TagEvents.html +5 -5
  233. package/docs/types/TagGLTFObject.html +5 -5
  234. package/docs/types/TagHooks.html +5 -5
  235. package/docs/types/TagIconSize.html +5 -5
  236. package/docs/types/TagId.html +5 -5
  237. package/docs/types/TagPointType.html +5 -5
  238. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  239. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  240. package/docs/types/WorkCode.html +5 -5
  241. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  242. package/docs/variables/PLUGIN.html +5 -5
  243. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  244. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  245. package/docs/variables/VERSION.html +5 -5
  246. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  247. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  248. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  249. package/libs/CSS3DRenderPlugin/CSS3DRender.js +60 -56
  250. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
  251. package/libs/PanoTagPlugin/controller/TagComputer.js +80 -76
  252. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  253. package/libs/PanoTagPlugin/controller/index.js +53 -52
  254. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  255. package/package.json +1 -1
  256. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  257. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  258. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  259. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  260. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  261. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  262. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  263. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  264. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  265. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  266. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  267. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  268. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  269. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  270. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  271. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  272. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  273. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  274. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ import * as li from "@tweenjs/tween.js";
31
31
  import mn, { Tween as zl, Easing as Bl } from "@tweenjs/tween.js";
32
32
  import { Camera as jl, Five as je, Subscribe as Ye } from "@realsee/five";
33
33
  import * as k from "three";
34
- import { Vector3 as Z, Group as pn, Raycaster as Vt, MeshBasicMaterial as gn, CanvasTexture as Vl, AnimationMixer as Ql, Color as wn, TextureLoader as na, Vector2 as Ge, PlaneGeometry as Rl, sRGBEncoding as Ol, Mesh as Wn, CurvePath as Hl, LineCurve3 as Fl, TubeGeometry as Gl, ShaderMaterial as Wl, SphereGeometry as Nl, DoubleSide as ia, RingGeometry as _l, Quaternion as oa, Euler as Lo, Matrix4 as Xt, Object3D as Xl } from "three";
34
+ import { Vector3 as Z, Group as pn, Raycaster as Vt, MeshBasicMaterial as gn, CanvasTexture as Vl, AnimationMixer as Ql, Color as wn, TextureLoader as na, Vector2 as We, PlaneGeometry as Rl, sRGBEncoding as Ol, Mesh as Wn, CurvePath as Hl, LineCurve3 as Fl, TubeGeometry as Gl, ShaderMaterial as Wl, SphereGeometry as Nl, DoubleSide as ia, RingGeometry as _l, Quaternion as oa, Euler as Lo, Matrix4 as Xt, Object3D as Xl } from "three";
35
35
  import { CSS3DRenderer as Yl, CSS3DObject as Ri } from "three/examples/jsm/renderers/CSS3DRenderer";
36
36
  import { Line as sa } from "@realsee/five/line";
37
37
  import { FBXLoader as ra } from "three/examples/jsm/loaders/FBXLoader";
@@ -135,7 +135,7 @@ class nc {
135
135
  function pt() {
136
136
  return ((1 + Math.random()) * 65536 | 0).toString(16).substring(1);
137
137
  }
138
- function He() {
138
+ function Fe() {
139
139
  return (pt() + pt() + "-" + pt() + "-4" + pt().substr(0, 3) + "-" + pt() + "-" + pt() + pt() + pt()).toLowerCase();
140
140
  }
141
141
  const ic = `
@@ -246,7 +246,7 @@ class oc extends nc {
246
246
  m(this, "clientWidth");
247
247
  m(this, "clientHeight");
248
248
  m(this, "ready", !1);
249
- m(this, "uuid", He());
249
+ m(this, "uuid", Fe());
250
250
  m(this, "tween");
251
251
  m(this, "tweening", !1);
252
252
  m(this, "container");
@@ -1014,7 +1014,7 @@ class vn {
1014
1014
  if (this.state.disposed)
1015
1015
  return Gt();
1016
1016
  const o = (() => {
1017
- const y = {
1017
+ const C = {
1018
1018
  ratio: 216e-5,
1019
1019
  devicePixelRatio: 1,
1020
1020
  mode: "front",
@@ -1022,31 +1022,35 @@ class vn {
1022
1022
  container: document.createElement("div"),
1023
1023
  pointerEvents: "none"
1024
1024
  };
1025
- return Object.assign(y, n);
1025
+ return Object.assign(C, n);
1026
1026
  })(), s = e.map(An);
1027
1027
  if ((s == null ? void 0 : s.length) < 4)
1028
1028
  return console.error(`${ln}: requires 4 point but params may have fewer`);
1029
- const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: u } = o, f = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: u });
1030
- Ie.css3DObjects.push(f), o.scene && this.setScene(o.scene);
1031
- const h = () => {
1032
- const y = f.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1033
- !y || y.add(f);
1034
- }, p = () => {
1035
- h(), this.render(t);
1036
- }, A = (y) => this.setVisibleById(f.id, y), g = (y) => this.setEnabledById(f.id, y), v = () => (f.removeFromParent(), !0), w = l === "front" ? Ie.frontModeStore.css3DRenderer : Ie.behindModeStore.css3DRenderer;
1037
- return c && p(), {
1038
- id: f.uuid,
1029
+ const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: u } = o;
1030
+ let f = !1;
1031
+ const h = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: u });
1032
+ Ie.css3DObjects.push(h), o.scene && this.setScene(o.scene);
1033
+ const p = () => {
1034
+ if (f)
1035
+ return;
1036
+ const C = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1037
+ !C || C.add(h);
1038
+ }, A = () => {
1039
+ f || (p(), this.render(t));
1040
+ }, g = (C) => this.setVisibleById(h.id, C), v = (C) => this.setEnabledById(h.id, C), w = () => (f = !0, h.removeFromParent(), !0), y = l === "front" ? Ie.frontModeStore.css3DRenderer : Ie.behindModeStore.css3DRenderer;
1041
+ return c && A(), {
1042
+ id: h.uuid,
1039
1043
  container: d,
1040
- css3DObject: f,
1041
- render: c ? void 0 : p,
1042
- show: () => A(!0),
1043
- hide: () => A(!1),
1044
- setVisible: A,
1045
- enable: () => g(!0),
1046
- disable: () => g(!1),
1047
- setEnabled: g,
1048
- dispose: v,
1049
- appendToElement: (y) => w.setWrapper(y)
1044
+ css3DObject: h,
1045
+ render: c ? void 0 : A,
1046
+ show: () => g(!0),
1047
+ hide: () => g(!1),
1048
+ setVisible: g,
1049
+ enable: () => v(!0),
1050
+ disable: () => v(!1),
1051
+ setEnabled: v,
1052
+ dispose: w,
1053
+ appendToElement: (C) => y.setWrapper(C)
1050
1054
  };
1051
1055
  });
1052
1056
  m(this, "setVisibleById", (t, e) => {
@@ -4312,7 +4316,7 @@ class mi {
4312
4316
  }
4313
4317
  class Ht extends mi {
4314
4318
  }
4315
- var Fe = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(Fe || {});
4319
+ var Ge = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(Ge || {});
4316
4320
  const Ta = 500, Su = 80;
4317
4321
  function Wi(i, t, e = 4) {
4318
4322
  return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
@@ -4350,7 +4354,7 @@ function Ba(i, t, e = !0) {
4350
4354
  if (o.mode !== t.mode) {
4351
4355
  const [d] = yield ni(za(i, [t.mode, t, void 0, e]));
4352
4356
  if (d)
4353
- throw new Error(Fe.ChangeModeError);
4357
+ throw new Error(Ge.ChangeModeError);
4354
4358
  return;
4355
4359
  }
4356
4360
  const { latitude: s, longitude: r, fov: a } = o, l = Math.min(
@@ -4363,7 +4367,7 @@ function Ba(i, t, e = !0) {
4363
4367
  )
4364
4368
  ), [c] = yield ni(i.updateCamera(t, l, e));
4365
4369
  if (c)
4366
- throw new Error(Fe.UpdateCameraError);
4370
+ throw new Error(Ge.UpdateCameraError);
4367
4371
  });
4368
4372
  }
4369
4373
  function qt(i, t, e = 300) {
@@ -4425,7 +4429,7 @@ class zu extends Ht {
4425
4429
  m(this, "_disable", (e) => {
4426
4430
  var o, s, r;
4427
4431
  const { userAction: n } = e;
4428
- this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Fe.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
4432
+ this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Ge.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
4429
4433
  });
4430
4434
  m(this, "_enable", (e) => {
4431
4435
  const { userAction: n } = e;
@@ -4436,9 +4440,9 @@ class zu extends Ht {
4436
4440
  if (!this.state.enabled)
4437
4441
  return;
4438
4442
  if (!((r = this.five.model) != null && r.loaded))
4439
- throw new Error(Fe.ModelNotLoaded);
4443
+ throw new Error(Ge.ModelNotLoaded);
4440
4444
  if (!this.data)
4441
- throw new Error(Fe.DataNotLoaded);
4445
+ throw new Error(Ge.DataNotLoaded);
4442
4446
  this.isHiddenByHideFunc = !1;
4443
4447
  const n = {
4444
4448
  floorIndex: this.floorIndex,
@@ -4456,7 +4460,7 @@ class zu extends Ht {
4456
4460
  if (c)
4457
4461
  throw c;
4458
4462
  if (a)
4459
- throw l ? new Error(l) : new Error(Fe.UnknownError);
4463
+ throw l ? new Error(l) : new Error(Ge.UnknownError);
4460
4464
  this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4461
4465
  const d = o.modelOpacity, u = o.immediately ? 0 : Ta;
4462
4466
  qt(this.five, d, u), this.render(u);
@@ -4475,7 +4479,7 @@ class zu extends Ht {
4475
4479
  }));
4476
4480
  m(this, "_hide", (e) => {
4477
4481
  var s;
4478
- (s = this.showRejection) == null || s.call(this, Fe.BreakOffByHide), this.showPromise = void 0;
4482
+ (s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
4479
4483
  const o = F(F({}, {
4480
4484
  userAction: !0,
4481
4485
  isAutoHide: !1
@@ -4697,7 +4701,7 @@ class Vu extends Ht {
4697
4701
  m(this, "_disable", (e) => {
4698
4702
  var o, s, r;
4699
4703
  const { userAction: n } = e;
4700
- this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Fe.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
4704
+ this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, Ge.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
4701
4705
  });
4702
4706
  m(this, "_enable", (e) => {
4703
4707
  const { userAction: n } = e;
@@ -4708,9 +4712,9 @@ class Vu extends Ht {
4708
4712
  if (!this.state.enabled)
4709
4713
  return;
4710
4714
  if (!((r = this.five.model) != null && r.loaded))
4711
- throw new Error(Fe.ModelNotLoaded);
4715
+ throw new Error(Ge.ModelNotLoaded);
4712
4716
  if (!this.data)
4713
- throw new Error(Fe.DataNotLoaded);
4717
+ throw new Error(Ge.DataNotLoaded);
4714
4718
  this.isHiddenByHideFunc = !1;
4715
4719
  const n = {
4716
4720
  floorIndex: this.floorIndex,
@@ -4728,7 +4732,7 @@ class Vu extends Ht {
4728
4732
  if (c)
4729
4733
  throw c;
4730
4734
  if (a)
4731
- throw l ? new Error(l) : new Error(Fe.UnknownError);
4735
+ throw l ? new Error(l) : new Error(Ge.UnknownError);
4732
4736
  this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
4733
4737
  const d = o.modelOpacity, u = o.immediately ? 0 : Ta;
4734
4738
  qt(this.five, d, u), this.render(u);
@@ -4747,7 +4751,7 @@ class Vu extends Ht {
4747
4751
  }));
4748
4752
  m(this, "_hide", (e) => {
4749
4753
  var s;
4750
- (s = this.showRejection) == null || s.call(this, Fe.BreakOffByHide), this.showPromise = void 0;
4754
+ (s = this.showRejection) == null || s.call(this, Ge.BreakOffByHide), this.showPromise = void 0;
4751
4755
  const o = F(F({}, {
4752
4756
  userAction: !0,
4753
4757
  isAutoHide: !1
@@ -7191,7 +7195,7 @@ class qe {
7191
7195
  m(this, "lines");
7192
7196
  m(this, "position");
7193
7197
  m(this, "type", "point");
7194
- this.id = He(), this.lines = [], this.position = new Z(), t instanceof Z ? this.position.copy(t) : this.position.fromArray(t);
7198
+ this.id = Fe(), this.lines = [], this.position = new Z(), t instanceof Z ? this.position.copy(t) : this.position.fromArray(t);
7195
7199
  }
7196
7200
  toJson() {
7197
7201
  return { id: this.id, position: this.position.toArray() };
@@ -7208,7 +7212,7 @@ class qe {
7208
7212
  }
7209
7213
  class bo {
7210
7214
  constructor(t) {
7211
- m(this, "id", He());
7215
+ m(this, "id", Fe());
7212
7216
  m(this, "lines", []);
7213
7217
  m(this, "points", []);
7214
7218
  m(this, "visiblePanoIndexes");
@@ -7380,7 +7384,7 @@ function Xf(i) {
7380
7384
  const y = w.clientWidth, C = w.clientHeight, I = y / 2, E = C / 2;
7381
7385
  if (e.points.length < 2)
7382
7386
  return;
7383
- const [L, D] = e.points, B = L.position.clone().project(v.camera), G = D.position.clone().project(v.camera), H = B.clone().lerp(G, 0.5), X = new Ge(B.x * I, B.y * E), V = new Ge(G.x * I, G.y * E), P = X.distanceTo(V);
7387
+ const [L, D] = e.points, B = L.position.clone().project(v.camera), G = D.position.clone().project(v.camera), H = B.clone().lerp(G, 0.5), X = new We(B.x * I, B.y * E), V = new We(G.x * I, G.y * E), P = X.distanceTo(V);
7384
7388
  if ((() => !(Math.abs(B.z) > 1 || Math.abs(G.z) > 1 || !wt(B) && !wt(G) || !wt(H) || P === 0))() === !1) {
7385
7389
  s.style.opacity = "0", s.style.pointerEvents = "none";
7386
7390
  return;
@@ -7422,7 +7426,7 @@ class tn {
7422
7426
  m(this, "distanceItem");
7423
7427
  m(this, "polyline");
7424
7428
  var o;
7425
- if (this.id = He(), this.model = n, t.id === e.id)
7429
+ if (this.id = Fe(), this.model = n, t.id === e.id)
7426
7430
  throw new Error("\u65E0\u6548\u7684\u7EBF\u6BB5, \u4E00\u4E2A\u70B9\u65E0\u6CD5\u6784\u6210\u7EBF\u6BB5");
7427
7431
  typeof n.config.defaultText == "string" && (this.text = n.config.defaultText), this.hook = new Ye(), this.points = [t, e], this.mesh = Ps(this, "normal"), this.lightMesh = Ps(this, "light"), this.distanceItem = Xf({
7428
7432
  line: this,
@@ -7561,7 +7565,7 @@ class Ai {
7561
7565
  }
7562
7566
  }
7563
7567
  function _i(i) {
7564
- const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new Ge(t, e).sub(new Ge(s.left, s.top)), a = new Ge(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
7568
+ const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new We(t, e).sub(new We(s.left, s.top)), a = new We(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
7565
7569
  return { point: r, ndcPoint: a };
7566
7570
  }
7567
7571
  function Li(i, t) {
@@ -7777,14 +7781,14 @@ class Ga {
7777
7781
  function Wa(i, t) {
7778
7782
  const e = i.x - t[0].x, n = i.y - t[0].y, o = t[1].x - t[0].x, s = t[1].y - t[0].y, r = e * o + n * s, a = o * o + s * s, l = r / a;
7779
7783
  let c, d;
7780
- return l < 0 || Jf(t[0], t[1]) ? (c = t[0].x, d = t[0].y) : l > 1 ? (c = t[1].x, d = t[1].y) : (c = t[0].x + l * o, d = t[0].y + l * s), new Ge(c, d);
7784
+ return l < 0 || Jf(t[0], t[1]) ? (c = t[0].x, d = t[0].y) : l > 1 ? (c = t[1].x, d = t[1].y) : (c = t[0].x + l * o, d = t[0].y + l * s), new We(c, d);
7781
7785
  }
7782
7786
  function Jf(i, t) {
7783
7787
  return i.x === t.x && i.y === t.y;
7784
7788
  }
7785
7789
  function Zf(i, t) {
7786
7790
  const e = (i.x + 1) / 2 * t.width, n = -(i.y - 1) / 2 * t.height;
7787
- return new Ge(e, n);
7791
+ return new We(e, n);
7788
7792
  }
7789
7793
  function qf(i, t, e, n) {
7790
7794
  const o = i.getElement();
@@ -7868,11 +7872,11 @@ class xs extends Ai {
7868
7872
  const [n] = this.five.model.intersectRaycaster(e);
7869
7873
  if (!n)
7870
7874
  return;
7871
- const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Ge(s.x * r, s.y * a), c = this.model.getAllLines().map((h) => {
7875
+ const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new We(s.x * r, s.y * a), c = this.model.getAllLines().map((h) => {
7872
7876
  const [p, A] = h.points, g = p.position.clone().project(o), v = A.position.clone().project(o);
7873
7877
  if (!wt(g) && !wt(v))
7874
7878
  return null;
7875
- const w = new Ge(g.x * r, g.y * a), y = new Ge(v.x * r, v.y * a);
7879
+ const w = new We(g.x * r, g.y * a), y = new We(v.x * r, v.y * a);
7876
7880
  return { id: h.id, points: [w, y] };
7877
7881
  }).filter((h) => !!h);
7878
7882
  if (c.length === 0)
@@ -8182,11 +8186,11 @@ class sn extends Ai {
8182
8186
  const [n] = this.five.model.intersectRaycaster(e);
8183
8187
  if (!n)
8184
8188
  return;
8185
- const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Ge(s.x * r, s.y * a), c = this.polyline.lines.map((h) => {
8189
+ const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new We(s.x * r, s.y * a), c = this.polyline.lines.map((h) => {
8186
8190
  const [p, A] = h.points, g = p.position.clone().project(o), v = A.position.clone().project(o);
8187
8191
  if (!wt(g) && !wt(v))
8188
8192
  return null;
8189
- const w = new Ge(g.x * r, g.y * a), y = new Ge(v.x * r, v.y * a);
8193
+ const w = new We(g.x * r, g.y * a), y = new We(v.x * r, v.y * a);
8190
8194
  return { id: h.id, points: [w, y] };
8191
8195
  }).filter((h) => !!h);
8192
8196
  if (c.length === 0)
@@ -11124,11 +11128,11 @@ class il extends Ht {
11124
11128
  })();
11125
11129
  if (o.keyframes)
11126
11130
  return {
11127
- keyframesId: He(),
11131
+ keyframesId: Fe(),
11128
11132
  keyframes: o.keyframes.map((s, r) => {
11129
11133
  var c;
11130
11134
  const a = o.keyframes[r + 1], l = (() => !a || a.start === void 0 || s.end === void 0 ? 0 : a.start - s.end)();
11131
- return he(F({ id: (c = s.uuid) != null ? c : He(), moveIndex: r, stay: l, index: r }, s), { guildPluginOptions: o.guildPluginOptions });
11135
+ return he(F({ id: (c = s.uuid) != null ? c : Fe(), moveIndex: r, stay: l, index: r }, s), { guildPluginOptions: o.guildPluginOptions });
11132
11136
  })
11133
11137
  };
11134
11138
  if (o.panoIndexList) {
@@ -11152,8 +11156,8 @@ class il extends Ht {
11152
11156
  data: F({ effect: "Move", panoIndex: c, moveEffect: r }, u != null ? u : {})
11153
11157
  }) : o.moveType === "moveAndRotate" && (s.push({ moveIndex: d, stay: o.stay, data: { effect: "Move", panoIndex: c, moveEffect: r } }), u && s.push({ moveIndex: d, stay: o.stay, data: F({ effect: "Rotate", panoIndex: c }, u) }));
11154
11158
  }), {
11155
- keyframesId: He(),
11156
- keyframes: s.map((c, d) => F({ id: He(), index: d }, c)),
11159
+ keyframesId: Fe(),
11160
+ keyframes: s.map((c, d) => F({ id: Fe(), index: d }, c)),
11157
11161
  guildPluginOptions: o.guildPluginOptions
11158
11162
  };
11159
11163
  } else
@@ -11182,7 +11186,7 @@ class il extends Ht {
11182
11186
  const { data: n, state: o, privateState: s, hooks: r } = this;
11183
11187
  if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
11184
11188
  return;
11185
- const a = He();
11189
+ const a = Fe();
11186
11190
  s.playId = a, s.playing = !0, s.broke = !1;
11187
11191
  const l = n.keyframes, c = this.getPauseData();
11188
11192
  (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (h = e == null ? void 0 : e.userAction) != null ? h : !0 });
@@ -11531,7 +11535,7 @@ function Hm(i) {
11531
11535
  }
11532
11536
  function Fm(i, t, e) {
11533
11537
  let n, o, s, r, { inDelay: a = 0 } = t, { outDelay: l = 0 } = t, { duration: c = 1e3 } = t, { unfolded: d } = t, { length: u } = t, { direction: f = "horizontal" } = t, { useLinearColor: h = !1 } = t, { color: p = "white" } = t;
11534
- const A = He();
11538
+ const A = Fe();
11535
11539
  return i.$$set = (g) => {
11536
11540
  "inDelay" in g && e(0, a = g.inDelay), "outDelay" in g && e(1, l = g.outDelay), "duration" in g && e(2, c = g.duration), "unfolded" in g && e(3, d = g.unfolded), "length" in g && e(11, u = g.length), "direction" in g && e(12, f = g.direction), "useLinearColor" in g && e(4, h = g.useLinearColor), "color" in g && e(5, p = g.color);
11537
11541
  }, i.$$.update = () => {
@@ -11582,26 +11586,26 @@ function Ks(i) {
11582
11586
  return {
11583
11587
  c() {
11584
11588
  t = j("div"), b(t, "class", "shadow svelte-faoauy"), b(t, "style", e = `
11585
- left:${We(i[5])};
11586
- bottom:${We(i[6])};
11587
- box-shadow: 0 0 ${We(i[10])} ${We(i[11])} rgba(0, 0, 0, ${i[12]});
11589
+ left:${Ne(i[5])};
11590
+ bottom:${Ne(i[6])};
11591
+ box-shadow: 0 0 ${Ne(i[10])} ${Ne(i[11])} rgba(0, 0, 0, ${i[12]});
11588
11592
  ${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
11589
11593
  ${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
11590
11594
  ${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
11591
- `), M(t, "width", We(i[3])), M(t, "height", We(i[4])), M(t, "z-index", i[13]);
11595
+ `), M(t, "width", Ne(i[3])), M(t, "height", Ne(i[4])), M(t, "z-index", i[13]);
11592
11596
  },
11593
11597
  m(r, a) {
11594
11598
  z(r, t, a), s = !0;
11595
11599
  },
11596
11600
  p(r, a) {
11597
11601
  i = r, (!s || a & 8160 && e !== (e = `
11598
- left:${We(i[5])};
11599
- bottom:${We(i[6])};
11600
- box-shadow: 0 0 ${We(i[10])} ${We(i[11])} rgba(0, 0, 0, ${i[12]});
11602
+ left:${Ne(i[5])};
11603
+ bottom:${Ne(i[6])};
11604
+ box-shadow: 0 0 ${Ne(i[10])} ${Ne(i[11])} rgba(0, 0, 0, ${i[12]});
11601
11605
  ${i[8] ? "transform: translateX(-50%); left: 50%" : ""}
11602
11606
  ${i[9] ? "transform: translateX(-50%); top: 50%" : ""}
11603
11607
  ${i[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
11604
- `)) && b(t, "style", e), a & 8 && M(t, "width", We(i[3])), a & 16 && M(t, "height", We(i[4])), a & 8192 && M(t, "z-index", i[13]);
11608
+ `)) && b(t, "style", e), a & 8 && M(t, "width", Ne(i[3])), a & 16 && M(t, "height", Ne(i[4])), a & 8192 && M(t, "z-index", i[13]);
11605
11609
  },
11606
11610
  i(r) {
11607
11611
  s || (r && xe(() => {
@@ -11641,7 +11645,7 @@ function Wm(i) {
11641
11645
  }
11642
11646
  };
11643
11647
  }
11644
- function We(i) {
11648
+ function Ne(i) {
11645
11649
  return typeof i == "number" ? i / 16 + "rem" : i;
11646
11650
  }
11647
11651
  function Nm(i, t, e) {
@@ -11729,7 +11733,7 @@ function Jm(i) {
11729
11733
  function Zm(i) {
11730
11734
  return i.stickType === "3DPoint" || i.stickType === "Plane";
11731
11735
  }
11732
- function Ne(i) {
11736
+ function He(i) {
11733
11737
  return i.stickType === "Model" && i.contentType === "MediaModel";
11734
11738
  }
11735
11739
  function Ji(i) {
@@ -11742,7 +11746,7 @@ function Ji(i) {
11742
11746
  function $s(i) {
11743
11747
  if (Jm(i))
11744
11748
  return ot(i == null ? void 0 : i.position);
11745
- if (Ne(i) && i.matrix) {
11749
+ if (He(i) && i.matrix) {
11746
11750
  const t = new Xt().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new Z().fromArray(n).applyMatrix4(t));
11747
11751
  return no(e[0], e[2]);
11748
11752
  } else
@@ -11919,9 +11923,9 @@ function rp(i, t, e) {
11919
11923
  function A(I) {
11920
11924
  const E = [], L = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
11921
11925
  return I.slice().replace(L, (D) => `${c}${d}${D}${c}`).split(c).forEach((D) => D.startsWith(d) ? E.push({
11922
- id: He(),
11926
+ id: Fe(),
11923
11927
  content: D.slice(d.length)
11924
- }) : E.push(...D.split("").map((B) => B === " " ? u : B).map((B) => ({ id: He(), content: B })))), E;
11928
+ }) : E.push(...D.split("").map((B) => B === " " ? u : B).map((B) => ({ id: Fe(), content: B })))), E;
11925
11929
  }
11926
11930
  function g() {
11927
11931
  if (!h)
@@ -12788,7 +12792,7 @@ function Op(i) {
12788
12792
  }
12789
12793
  function Hp(i, t, e) {
12790
12794
  let { inDelay: n = 0 } = t, { duration: o = 1e3 } = t, { outDelay: s = 0 } = t, { unfolded: r } = t;
12791
- const a = He();
12795
+ const a = Fe();
12792
12796
  return i.$$set = (l) => {
12793
12797
  "inDelay" in l && e(0, n = l.inDelay), "duration" in l && e(1, o = l.duration), "outDelay" in l && e(2, s = l.outDelay), "unfolded" in l && e(3, r = l.unfolded);
12794
12798
  }, [n, o, s, r, a];
@@ -16287,7 +16291,7 @@ function X0(i, t, e) {
16287
16291
  }
16288
16292
  function w(C, I, E) {
16289
16293
  var L, D;
16290
- return !(!I.visible || !I.enabled || !E.visible || !((L = C.state) != null && L.visible) || ((D = C.temporaryState) == null ? void 0 : D.visible) === !1 || Ne(C) && C.mediaVisible === !1);
16294
+ return !(!I.visible || !I.enabled || !E.visible || !((L = C.state) != null && L.visible) || ((D = C.temporaryState) == null ? void 0 : D.visible) === !1 || He(C) && C.mediaVisible === !1);
16291
16295
  }
16292
16296
  const y = (C) => u.emit("click", { event: C, target: "TagContent", tag: d });
16293
16297
  return i.$$set = (C) => {
@@ -16829,7 +16833,7 @@ class uA extends dA {
16829
16833
  getVisibleByPanoIndex(e, n) {
16830
16834
  var r;
16831
16835
  const o = this.getCache({ panoIndex: n, id: e.id }), s = (r = this.five.panoIndex) != null ? r : n;
16832
- if (Ne(e))
16836
+ if (He(e))
16833
16837
  return !0;
16834
16838
  if (o.visible !== void 0)
16835
16839
  return o.visible;
@@ -16883,6 +16887,14 @@ class uA extends dA {
16883
16887
  return o.visible = a.value, o.__debug_visible_reason__ = a, o.visible;
16884
16888
  }
16885
16889
  }
16890
+ getVisibelByFiveMode(e, n) {
16891
+ var r;
16892
+ const o = (r = this.getTagConfig(e).visibleConfig) != null ? r : {};
16893
+ if (typeof o == "function")
16894
+ return n === "Panorama";
16895
+ const s = o == null ? void 0 : o.visibleFiveMode;
16896
+ return s ? s.includes(n) : n === "Panorama";
16897
+ }
16886
16898
  getModelMedialVisibleByPanoIndex(e) {
16887
16899
  const n = this.five.getCurrentState().panoIndex, o = this.getCache({ panoIndex: n, id: e.id });
16888
16900
  if (o.modelMedialVisible !== void 0)
@@ -16991,33 +17003,33 @@ class uA extends dA {
16991
17003
  }
16992
17004
  }
16993
17005
  getTagConfig(e) {
16994
- var s;
17006
+ var s, r;
16995
17007
  if (!e)
16996
17008
  return (s = this.config.globalConfig) != null ? s : {};
16997
17009
  const n = {};
16998
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((r) => {
16999
- const a = r;
17000
- if (n[a])
17010
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
17011
+ const l = a;
17012
+ if (n[l])
17001
17013
  return;
17002
- const l = a.split("-");
17003
- if (l.length === 1) {
17004
- const [c] = l;
17005
- e.contentType === c && (n[a] = this.config.contentTypeConfig[a]);
17014
+ const c = l.split("-");
17015
+ if (c.length === 1) {
17016
+ const [d] = c;
17017
+ e.contentType === d && (n[l] = this.config.contentTypeConfig[l]);
17006
17018
  }
17007
- if (l.length === 2) {
17008
- const [c = "Any", d = "Any"] = l;
17009
- (e.stickType === c || c === "Any") && (e.contentType === d || d === "Any") && (n[a] = this.config.contentTypeConfig[a]);
17019
+ if (c.length === 2) {
17020
+ const [d = "Any", u = "Any"] = c;
17021
+ (e.stickType === d || d === "Any") && (e.contentType === u || u === "Any") && (n[l] = this.config.contentTypeConfig[l]);
17010
17022
  }
17011
- if (l.length === 3) {
17012
- const [c = "Any", d, u] = l;
17013
- if (d === "Audio" && e.contentType === "Audio") {
17014
- const f = e;
17015
- (f.stickType === c || c === "Any") && f.data.appearance === u && (n[a] = this.config.contentTypeConfig[a]);
17023
+ if (c.length === 3) {
17024
+ const [d = "Any", u, f] = c;
17025
+ if (u === "Audio" && e.contentType === "Audio") {
17026
+ const h = e;
17027
+ (h.stickType === d || d === "Any") && h.data.appearance === f && (n[l] = this.config.contentTypeConfig[l]);
17016
17028
  }
17017
17029
  }
17018
17030
  });
17019
17031
  const o = vt({}, this.config.globalConfig, ...Object.values(n), e.config);
17020
- return typeof o.unfoldedConfig == "object" && (o.unfoldedConfig.disableFold && (o.unfoldedConfig = { keep: "unfolded" }), o.unfoldedConfig.disableUnfold && (o.unfoldedConfig = { keep: "folded" }), o.unfoldedConfig.keep && (o.unfoldedConfig = { keep: o.unfoldedConfig.keep })), typeof o.visibleConfig == "object" && o.visibleConfig.keep && (o.visibleConfig = { keep: o.visibleConfig.keep }), o;
17032
+ return typeof o.unfoldedConfig == "object" && (o.unfoldedConfig.disableFold && (o.unfoldedConfig = { keep: "unfolded" }), o.unfoldedConfig.disableUnfold && (o.unfoldedConfig = { keep: "folded" }), o.unfoldedConfig.keep && (o.unfoldedConfig = { keep: o.unfoldedConfig.keep })), typeof o.visibleConfig == "object" && o.visibleConfig.keep && (o.visibleConfig = { keep: o.visibleConfig.keep, visibleFiveMode: (r = o.visibleConfig) == null ? void 0 : r.visibleFiveMode }), o;
17021
17033
  }
17022
17034
  can(e, n) {
17023
17035
  const o = this.getTagConfig(n);
@@ -17067,7 +17079,7 @@ class uA extends dA {
17067
17079
  }
17068
17080
  setModelMedialVisibleByPanoIndex() {
17069
17081
  this.tags.forEach((e) => {
17070
- if (!Ne(e))
17082
+ if (!He(e))
17071
17083
  return;
17072
17084
  const n = this.getModelMedialVisibleByPanoIndex(e);
17073
17085
  e.mediaVisible = n;
@@ -17116,9 +17128,9 @@ class uA extends dA {
17116
17128
  getTagEnableByIntersect(e, n) {
17117
17129
  var d, u, f;
17118
17130
  const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, s = this.getDistance(e), [r] = this.five.model.intersectRaycaster(n), a = (() => {
17119
- if (!Ne(e))
17131
+ if (!He(e))
17120
17132
  return;
17121
- const h = this.tags.filter(Ne).map((A) => {
17133
+ const h = this.tags.filter(He).map((A) => {
17122
17134
  var g;
17123
17135
  return (g = A.model) == null ? void 0 : g.object;
17124
17136
  }).filter(_e);
@@ -17148,10 +17160,6 @@ class uA extends dA {
17148
17160
  const o = n.panoIndex, s = (a = this.five.work.observers[o]) == null ? void 0 : a.floorIndex, r = this.five.model.shownFloor;
17149
17161
  return r === null || r === s;
17150
17162
  }
17151
- changeTagMode(e, n) {
17152
- var o, s, r, a, l;
17153
- (o = e.config) != null && o.tag3DConfig ? e.config.tag3DConfig.mode = n : e.config ? e.config.tag3DConfig = { mode: n } : e.config = { tag3DConfig: { mode: n } }, (r = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer) == null || r.dispose(), (l = (a = e.tag3DContentSvelte) == null ? void 0 : a.svelteApp) == null || l.$destroy(), e.tag3DContentSvelte = void 0;
17154
- }
17155
17163
  }
17156
17164
  function fA(i) {
17157
17165
  var t, e, n, o;
@@ -17217,13 +17225,14 @@ class AA extends uA {
17217
17225
  console.error(`${eo} is disposed`);
17218
17226
  });
17219
17227
  m(this, "handleFiveInitAnimationEnded", () => {
17220
- this.five.getCurrentState().mode === "Panorama" && this.tags.forEach((e) => {
17221
- e.temporaryState = he(F({}, e.temporaryState), { visible: !0 });
17222
- });
17228
+ const e = this.five.getCurrentState().mode;
17229
+ this.tags.forEach((n) => {
17230
+ n.temporaryState = he(F({}, n.temporaryState), { visible: this.getVisibelByFiveMode(n, e) }), He(n) && e === "Panorama" && this.changeTagMode(n, "front");
17231
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
17223
17232
  });
17224
17233
  m(this, "handleFiveModelShownFloorChange", () => {
17225
17234
  this.tags.forEach((e) => {
17226
- !Ne(e) || (e.state.visible = this.checkFloorIndex(e));
17235
+ !He(e) || (e.state.visible = this.checkFloorIndex(e));
17227
17236
  }), this.updateRenderAllTags();
17228
17237
  });
17229
17238
  m(this, "loadModel", (e) => _(this, null, function* () {
@@ -17245,7 +17254,7 @@ class AA extends uA {
17245
17254
  load(e, n) {
17246
17255
  return _(this, null, function* () {
17247
17256
  var s, r;
17248
- this.clearTags(), console.log(eo, " load:", { data: e }), this.config = vt({}, this.config, {
17257
+ this.clearTags(), console.log(eo, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = vt({}, this.config, {
17249
17258
  globalConfig: (s = e.globalConfig) != null ? s : {},
17250
17259
  contentTypeConfig: (r = e.contentTypeConfig) != null ? r : {}
17251
17260
  });
@@ -17268,7 +17277,7 @@ class AA extends uA {
17268
17277
  clickable: a.clickable,
17269
17278
  mergedConfig: a
17270
17279
  });
17271
- return Ne(r) && (l.temporaryState = { visible: !1 }), l;
17280
+ return He(r) && (l.temporaryState = { visible: !1 }), l;
17272
17281
  }).filter((r) => r.position);
17273
17282
  return s.forEach(fA), this.tags.push(...s), qm(this.five).then(() => {
17274
17283
  var r, a, l;
@@ -17283,7 +17292,7 @@ class AA extends uA {
17283
17292
  n ? this.config.globalConfig = vt({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
17284
17293
  }
17285
17294
  clearTags() {
17286
- this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
17295
+ this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
17287
17296
  }
17288
17297
  show(e) {
17289
17298
  return _(this, null, function* () {
@@ -17364,7 +17373,7 @@ class AA extends uA {
17364
17373
  const o = (v = (g = (A = e.mergedConfig) == null ? void 0 : A.tag3DConfig) == null ? void 0 : g.ratio) != null ? v : 216e-5, s = (w = e.tag3DContentSvelte) == null ? void 0 : w.domContainer.css3DObject;
17365
17374
  if (!s)
17366
17375
  return;
17367
- const r = Ne(e) ? e.data.mediaPosition : e.position;
17376
+ const r = He(e) ? e.data.mediaPosition : e.position;
17368
17377
  n.updateWorldMatrix(!1, !1);
17369
17378
  const a = n.matrixWorld, l = new Z().fromArray(r[0]), c = new Z().fromArray(r[2]), d = new Z().lerpVectors(l, c, 0.5).add(new Z(0, 0, 5e-4)), u = new Xt().setPosition(d), f = new Xt().makeScale(o, o, o), h = new Xt().multiply(a).multiply(u).multiply(f);
17370
17379
  h.decompose(s.position, s.quaternion, s.scale);
@@ -17436,12 +17445,8 @@ class AA extends uA {
17436
17445
  }
17437
17446
  handleFiveModeChange(e) {
17438
17447
  this.tags.forEach((n) => {
17439
- if (Ne(n)) {
17440
- e !== "Panorama" && (n.mediaVisible = this.checkFloorIndex(n)), this.changeTagMode(n, e === "Panorama" ? "front" : "behind"), this.updateRenderAllTags();
17441
- return;
17442
- }
17443
- e !== "Panorama" && (n.temporaryState = he(F({}, n.temporaryState), { visible: !1 }));
17444
- }), this.updateRenderAllTags();
17448
+ n.temporaryState = he(F({}, n.temporaryState), { visible: this.getVisibelByFiveMode(n, e) }), He(n) && e !== "Panorama" && this.changeTagMode(n, "behind");
17449
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
17445
17450
  }
17446
17451
  handleFiveWantsMoveToPano() {
17447
17452
  this.tags.forEach((e) => {
@@ -17582,7 +17587,7 @@ class AA extends uA {
17582
17587
  }
17583
17588
  updateRenderModelTag() {
17584
17589
  const e = (o) => !this.enabledModelTagSet.has(o.customID);
17585
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(Ne).forEach((o) => {
17590
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(He).forEach((o) => {
17586
17591
  var s;
17587
17592
  (s = o.model) == null || s.promise.then((r) => {
17588
17593
  r.visible = o.state.visible;
@@ -17606,10 +17611,14 @@ class AA extends uA {
17606
17611
  }
17607
17612
  addMediaModelTag(e) {
17608
17613
  return _(this, null, function* () {
17609
- const n = e.filter(Ne).map(this.loadModel);
17614
+ const n = e.filter(He).map(this.loadModel);
17610
17615
  yield Promise.all(n), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
17611
17616
  });
17612
17617
  }
17618
+ changeTagMode(e, n) {
17619
+ var o, s, r, a, l;
17620
+ ((r = (s = (o = e.tag3DContentSvelte) == null ? void 0 : o.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : r.mode) !== n && ((a = e.config) != null && a.tag3DConfig ? e.config.tag3DConfig.mode = n : e.config ? e.config.tag3DConfig = { mode: n } : e.config = { tag3DConfig: { mode: n } }, (l = this.store.css3DRenderDisposer.get(e.id)) == null || l(), e.tag3DContentSvelte = void 0);
17621
+ }
17613
17622
  }
17614
17623
  const Gv = (i, t) => new AA(i, t);
17615
17624
  function pe(i, t) {