@realsee/dnalogel 2.15.0-alpha.1 → 2.15.0

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 (263) hide show
  1. package/dist/index.cjs.js +20 -20
  2. package/dist/index.js +647 -628
  3. package/dist/index.umd.js +15 -15
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +25 -25
  6. package/docs/classes/Magnifier.html +20 -20
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +24 -24
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  11. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  12. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  13. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  14. package/docs/classes/PanoTagPluginController.html +46 -46
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +19 -19
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/Rotation.html +8 -8
  31. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  32. package/docs/functions/CameraMovementPlugin.html +4 -4
  33. package/docs/functions/CruisePlugin.html +4 -4
  34. package/docs/functions/GuideLinePlugin.html +5 -5
  35. package/docs/functions/ItemLabelPlugin.html +4 -4
  36. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  38. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  39. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  41. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  42. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  43. package/docs/functions/ModelViewPlugin.html +4 -4
  44. package/docs/functions/Object3DHelperPlugin.html +4 -4
  45. package/docs/functions/PanoCompassPlugin.html +4 -4
  46. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  47. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  48. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  49. package/docs/functions/PanoMeasurePlugin.html +4 -4
  50. package/docs/functions/PanoRulerPlugin.html +4 -4
  51. package/docs/functions/PanoRulerProPlugin.html +4 -4
  52. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  53. package/docs/functions/PanoTagPlugin.html +4 -4
  54. package/docs/functions/PanoVideoPlugin.html +4 -4
  55. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  56. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  57. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  58. package/docs/functions/Util.getFrameTime.html +5 -5
  59. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  60. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  61. package/docs/functions/Util.isNil.html +5 -5
  62. package/docs/functions/Util.nextFrame.html +5 -5
  63. package/docs/functions/Util.notNil.html +5 -5
  64. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  65. package/docs/functions/Util.tweenProgress.html +5 -5
  66. package/docs/functions/pluginFlag.html +5 -5
  67. package/docs/index.html +4 -4
  68. package/docs/interfaces/AddTagConfig.html +6 -6
  69. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  70. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  71. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  72. package/docs/interfaces/EventMap.html +15 -15
  73. package/docs/interfaces/FloorplanBounding.html +8 -8
  74. package/docs/interfaces/FloorplanData.html +10 -10
  75. package/docs/interfaces/FloorplanEntrance.html +11 -11
  76. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  77. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  78. package/docs/interfaces/FloorplanFloorData.html +9 -9
  79. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  80. package/docs/interfaces/FloorplanObserver.html +9 -9
  81. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  82. package/docs/interfaces/FloorplanPosition.html +7 -7
  83. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  85. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  86. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  87. package/docs/interfaces/FloorplanServerData.html +7 -7
  88. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  90. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  92. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  95. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  98. package/docs/interfaces/HelperOffset.html +8 -8
  99. package/docs/interfaces/ImagePlaneGroup.html +6 -6
  100. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  101. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  102. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  103. package/docs/interfaces/MinMax.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  105. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  106. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  107. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  108. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  109. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  110. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  111. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  112. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  114. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  115. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  116. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  117. package/docs/interfaces/Object3DHelperState.html +8 -8
  118. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  119. package/docs/interfaces/PaintBrushAction.html +12 -12
  120. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  121. package/docs/interfaces/PaintBrushState.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  123. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  124. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  125. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  126. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  127. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  128. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  129. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  130. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  131. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  132. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  133. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  135. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  136. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  137. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  138. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  139. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  140. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  141. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  142. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  143. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  144. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  145. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  146. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  147. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  148. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  149. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  150. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  151. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  152. package/docs/interfaces/Point.html +8 -8
  153. package/docs/interfaces/Room.html +9 -9
  154. package/docs/interfaces/RoomInfo.html +7 -7
  155. package/docs/interfaces/RoomLabel.html +14 -14
  156. package/docs/interfaces/RoomRules.html +5 -5
  157. package/docs/interfaces/Rooms.html +5 -5
  158. package/docs/interfaces/Scissor.html +9 -9
  159. package/docs/interfaces/State.html +8 -8
  160. package/docs/interfaces/TagCacheInterface.html +12 -12
  161. package/docs/interfaces/TagConfig.html +11 -11
  162. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  163. package/docs/interfaces/TagIconUrl.html +11 -11
  164. package/docs/interfaces/TagObjectGroup.html +6 -6
  165. package/docs/interfaces/TagStyle.html +6 -6
  166. package/docs/interfaces/Tags.html +9 -9
  167. package/docs/interfaces/TemporaryState.html +6 -6
  168. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  169. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  170. package/docs/modules/PanoVideoPluginType.html +5 -5
  171. package/docs/modules/Util.html +5 -5
  172. package/docs/modules.html +4 -4
  173. package/docs/types/ArrayPosition.html +5 -5
  174. package/docs/types/AudioAppearance.html +5 -5
  175. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  176. package/docs/types/CSS3DRenderExportType.html +5 -5
  177. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  178. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  179. package/docs/types/ClassFunctionParameters.html +5 -5
  180. package/docs/types/Color.html +5 -5
  181. package/docs/types/ContentTypeConfigKey.html +5 -5
  182. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  183. package/docs/types/ContentTypeMap.html +5 -5
  184. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  185. package/docs/types/Create3DElementReturnType.html +5 -5
  186. package/docs/types/CruisePluginExportType.html +5 -5
  187. package/docs/types/Direction-1.html +5 -5
  188. package/docs/types/Direction4.html +5 -5
  189. package/docs/types/FloorplanRuleLabels.html +5 -5
  190. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  191. package/docs/types/GuideLinePluginExportType.html +5 -5
  192. package/docs/types/HelperEventMap.html +5 -5
  193. package/docs/types/LoadTagConfig.html +5 -5
  194. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  195. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  196. package/docs/types/MediaData.html +5 -5
  197. package/docs/types/MediaStore.html +5 -5
  198. package/docs/types/ModelElement.html +5 -5
  199. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  200. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  201. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  202. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  203. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  204. package/docs/types/MoveArgs.html +5 -5
  205. package/docs/types/MoveOpts.html +5 -5
  206. package/docs/types/Object3DHelperEventMap.html +5 -5
  207. package/docs/types/ObjectFit.html +5 -5
  208. package/docs/types/PaintBrushEventMap.html +5 -5
  209. package/docs/types/PanoCompassPluginData.html +5 -5
  210. package/docs/types/PanoCompassPluginExportType.html +5 -5
  211. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  212. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  213. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  214. package/docs/types/PanoIndex.html +5 -5
  215. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  216. package/docs/types/PanoMeasureReturnType.html +5 -5
  217. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  218. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  219. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  220. package/docs/types/PanoVideoPluginParameterType.html +5 -5
  221. package/docs/types/PanoVideoPluginReturnType.html +5 -5
  222. package/docs/types/PlaneTag.html +5 -5
  223. package/docs/types/PlaneTagElement.html +5 -5
  224. package/docs/types/Point2DElement.html +5 -5
  225. package/docs/types/Point2DTag.html +5 -5
  226. package/docs/types/Point3DElement.html +5 -5
  227. package/docs/types/Point3DTag.html +5 -5
  228. package/docs/types/PointTag.html +5 -5
  229. package/docs/types/PointTagElement.html +5 -5
  230. package/docs/types/Position.html +5 -5
  231. package/docs/types/RotateArgs.html +5 -5
  232. package/docs/types/RotateOpts.html +5 -5
  233. package/docs/types/RuleLabelsKey.html +5 -5
  234. package/docs/types/RuleLabelsValue.html +5 -5
  235. package/docs/types/StickType.html +5 -5
  236. package/docs/types/Tag.html +5 -5
  237. package/docs/types/Tag2D.html +5 -5
  238. package/docs/types/Tag3D.html +5 -5
  239. package/docs/types/TagContentType.html +5 -5
  240. package/docs/types/TagDimensionType.html +5 -5
  241. package/docs/types/TagElement.html +5 -5
  242. package/docs/types/TagEvents.html +5 -5
  243. package/docs/types/TagGLTFObject.html +5 -5
  244. package/docs/types/TagHooks.html +5 -5
  245. package/docs/types/TagIconSize.html +5 -5
  246. package/docs/types/TagId.html +5 -5
  247. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  248. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  249. package/docs/types/WorkCode.html +5 -5
  250. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  251. package/docs/variables/PLUGIN.html +5 -5
  252. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  253. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  254. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  255. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  256. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  257. package/libs/PanoTagPlugin/Components/Common/Media.js +108 -108
  258. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +118 -100
  259. package/libs/PanoTagPlugin/controller/TagRender.js +27 -27
  260. package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
  261. package/libs/base/BasePlugin.js +3 -3
  262. package/libs/index.js +80 -79
  263. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ var Li = (i, t, e) => t in i ? lc(i, t, { enumerable: !0, configurable: !0, writ
11
11
  return i;
12
12
  }, fe = (i, t) => cc(i, uc(t));
13
13
  var f = (i, t, e) => (Li(i, typeof t != "symbol" ? t + "" : t, e), e);
14
- var F = (i, t, e) => new Promise((n, o) => {
14
+ var H = (i, t, e) => new Promise((n, o) => {
15
15
  var s = (l) => {
16
16
  try {
17
17
  a(e.next(l));
@@ -574,8 +574,8 @@ class pb {
574
574
  }
575
575
  }
576
576
  const gb = (i, t) => {
577
- var V, B;
578
- let e = (B = (V = t == null ? void 0 : t.initialState) == null ? void 0 : V.enabled) != null ? B : !0, n = !1, o = !0, s = null;
577
+ var V, z;
578
+ let e = (z = (V = t == null ? void 0 : t.initialState) == null ? void 0 : V.enabled) != null ? z : !0, n = !1, o = !0, s = null;
579
579
  const a = Q(Q({}, {
580
580
  lookAtCurrentCamera: !1,
581
581
  lockedPanoIndex: null,
@@ -601,19 +601,19 @@ const gb = (i, t) => {
601
601
  return;
602
602
  h = I(i.model, c.fov, c.aspect), d = i.model.bounding.getCenter(new E.Vector3()), l.remove(u), u = G(i.model), l.add(u), n = !0, L();
603
603
  function R(X) {
604
- const H = X.clone();
605
- return H.uniforms.modelAlpha.value = 1, H.uniforms.map.value && (H.uniforms.map.value.needsUpdate = !0), H;
604
+ const W = X.clone();
605
+ return W.uniforms.modelAlpha.value = 1, W.uniforms.map.value && (W.uniforms.map.value.needsUpdate = !0), W;
606
606
  }
607
607
  function G(X) {
608
608
  if (X instanceof E.Mesh) {
609
- const H = X.geometry, ee = Array.isArray(X.material) ? X.material.map(R) : R(X.material);
610
- return new E.Mesh(H, ee);
609
+ const W = X.geometry, ee = Array.isArray(X.material) ? X.material.map(R) : R(X.material);
610
+ return new E.Mesh(W, ee);
611
611
  } else if (X instanceof E.Group) {
612
- const H = new E.Group();
613
- return X.children.forEach((ee) => H.add(G(ee))), H;
612
+ const W = new E.Group();
613
+ return X.children.forEach((ee) => W.add(G(ee))), W;
614
614
  } else {
615
- const H = new E.Object3D();
616
- return X.children.forEach((ee) => H.add(G(ee))), H;
615
+ const W = new E.Object3D();
616
+ return X.children.forEach((ee) => W.add(G(ee))), W;
617
617
  }
618
618
  }
619
619
  }, g = () => {
@@ -634,21 +634,21 @@ const gb = (i, t) => {
634
634
  if (!X)
635
635
  return;
636
636
  R.appendChild(X.domElement), k(G);
637
- const H = window.getComputedStyle(R).position;
638
- H !== "relative" && H !== "absolute" && H !== "fixed" && H !== "sticky" && (R.style.position = "relative");
637
+ const W = window.getComputedStyle(R).position;
638
+ W !== "relative" && W !== "absolute" && W !== "fixed" && W !== "sticky" && (R.style.position = "relative");
639
639
  }, k = (R = {}) => {
640
640
  if (!s)
641
641
  return;
642
642
  const X = s.domElement.parentNode;
643
643
  if (X != null && X.nodeName) {
644
- const { width: H = X.offsetWidth, height: ee = X.offsetHeight } = R;
645
- s.setSize(H, ee), c.aspect = H / ee, c.updateProjectionMatrix();
644
+ const { width: W = X.offsetWidth, height: ee = X.offsetHeight } = R;
645
+ s.setSize(W, ee), c.aspect = W / ee, c.updateProjectionMatrix();
646
646
  }
647
647
  L();
648
648
  };
649
649
  function I(R, G, X) {
650
- const H = R.bounding, ee = Math.pow(
651
- Math.pow(H.max.x - H.min.x + 1, 2) + Math.pow(H.max.y - H.min.y + 1, 2) + Math.pow(H.max.z - H.min.z + 1, 2),
650
+ const W = R.bounding, ee = Math.pow(
651
+ Math.pow(W.max.x - W.min.x + 1, 2) + Math.pow(W.max.y - W.min.y + 1, 2) + Math.pow(W.max.z - W.min.z + 1, 2),
652
652
  1 / 2
653
653
  );
654
654
  let Y = ee / 2 / Math.tan(Math.PI * G / 360);
@@ -664,14 +664,14 @@ const gb = (i, t) => {
664
664
  R.fov = c.fov, R.offset = d, R.distance = h, typeof a.lockedLatitude == "number" && (R.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (R.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (R.offset = C(a.lockedPanoIndex)), a.lookAtCurrentCamera && (R.offset = i.camera.position.clone().setY(i.camera.position.y + 1)), c.setFromPose(R), o = !0;
665
665
  }, x = () => {
666
666
  !e || o !== !0 || !s || !s.domElement.parentNode || s.domElement.parentNode.offsetWidth === 0 || (s.render(l, c), o = !1);
667
- }, O = () => {
667
+ }, F = () => {
668
668
  s && s.dispose(), s = null;
669
- }, W = (R) => {
669
+ }, _ = (R) => {
670
670
  Object.assign(a, R), L();
671
- }, _ = () => ({
671
+ }, O = () => ({
672
672
  enabled: e
673
673
  });
674
- return Object.assign(window, { camera: c }), i.on("modelLoaded", v), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", L), i.on("dispose", O), i.on("renderFrame", x), i.on("cameraPositionUpdate", L), { appendTo: w, refresh: k, changeConfigs: W, enable: A, disable: b, getCurrentState: _ };
674
+ return Object.assign(window, { camera: c }), i.on("modelLoaded", v), i.on("modelWillLoad", p), i.on("cameraDirectionUpdate", L), i.on("dispose", F), i.on("renderFrame", x), i.on("cameraPositionUpdate", L), { appendTo: w, refresh: k, changeConfigs: _, enable: A, disable: b, getCurrentState: O };
675
675
  };
676
676
  function gt(...i) {
677
677
  const t = [];
@@ -814,8 +814,8 @@ class Jc extends Zi {
814
814
  else {
815
815
  const x = document.createElement("div");
816
816
  x.style.width = `${h}px`, x.style.height = `${d}px`, x.style.pointerEvents = "none";
817
- const O = s / l;
818
- n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${O * h}px`, n.style.height = `${O * d}px`, x.appendChild(n), g = x;
817
+ const F = s / l;
818
+ n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * h}px`, n.style.height = `${F * d}px`, x.appendChild(n), g = x;
819
819
  }
820
820
  super(g);
821
821
  f(this, "version", Da);
@@ -1101,14 +1101,14 @@ class In {
1101
1101
  this.setState({ disposed: !0 }), this.hooks.emit("dispose");
1102
1102
  }
1103
1103
  show() {
1104
- return F(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
1104
+ return H(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
1105
1105
  if (this.state.disposed)
1106
1106
  return jt();
1107
1107
  this.setState({ visible: !0 }, { userAction: t }), this.hooks.emit("show", { userAction: t });
1108
1108
  });
1109
1109
  }
1110
1110
  hide() {
1111
- return F(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
1111
+ return H(this, arguments, function* ({ userAction: t } = { userAction: !0 }) {
1112
1112
  if (this.state.disposed)
1113
1113
  return jt();
1114
1114
  this.setState({ visible: !1 }, { userAction: t }), this.hooks.emit("hide", { userAction: t });
@@ -1180,13 +1180,13 @@ class In {
1180
1180
  }
1181
1181
  }
1182
1182
  handleShow() {
1183
- return F(this, null, function* () {
1183
+ return H(this, null, function* () {
1184
1184
  var t;
1185
1185
  this.store.frontModeGroup.setVisible(!0), (t = this.store.behindModeGroup) == null || t.setVisible(!0);
1186
1186
  });
1187
1187
  }
1188
1188
  handleHide() {
1189
- return F(this, null, function* () {
1189
+ return H(this, null, function* () {
1190
1190
  var t;
1191
1191
  this.store.frontModeGroup.setVisible(!1), (t = this.store.behindModeGroup) == null || t.setVisible(!1);
1192
1192
  });
@@ -1209,7 +1209,7 @@ class In {
1209
1209
  }
1210
1210
  f(In, "setFrontModeContainer", nu), f(In, "setBehindModeContainer", iu);
1211
1211
  function Sa(i) {
1212
- return F(this, null, function* () {
1212
+ return H(this, null, function* () {
1213
1213
  return new Promise((t) => {
1214
1214
  var e;
1215
1215
  if ((e = i.model) != null && e.loaded) {
@@ -1463,7 +1463,7 @@ function j(i, t) {
1463
1463
  function le(i, t, e) {
1464
1464
  const n = go(i);
1465
1465
  if (!n.getElementById(t)) {
1466
- const o = z("style");
1466
+ const o = B("style");
1467
1467
  o.id = t, o.textContent = e, Ra(n, o);
1468
1468
  }
1469
1469
  }
@@ -1474,7 +1474,7 @@ function go(i) {
1474
1474
  return t && t.host ? t : i.ownerDocument;
1475
1475
  }
1476
1476
  function au(i) {
1477
- const t = z("style");
1477
+ const t = B("style");
1478
1478
  return Ra(go(i), t), t.sheet;
1479
1479
  }
1480
1480
  function Ra(i, t) {
@@ -1490,7 +1490,7 @@ function ut(i, t) {
1490
1490
  for (let e = 0; e < i.length; e += 1)
1491
1491
  i[e] && i[e].d(t);
1492
1492
  }
1493
- function z(i) {
1493
+ function B(i) {
1494
1494
  return document.createElement(i);
1495
1495
  }
1496
1496
  function we(i) {
@@ -1502,10 +1502,10 @@ function ke(i) {
1502
1502
  function $() {
1503
1503
  return ke(" ");
1504
1504
  }
1505
- function me() {
1505
+ function pe() {
1506
1506
  return ke("");
1507
1507
  }
1508
- function ge(i, t, e, n) {
1508
+ function me(i, t, e, n) {
1509
1509
  return i.addEventListener(t, e, n), () => i.removeEventListener(t, e, n);
1510
1510
  }
1511
1511
  function Fa(i) {
@@ -1539,14 +1539,14 @@ function cu() {
1539
1539
  }
1540
1540
  function bi(i, t) {
1541
1541
  getComputedStyle(i).position === "static" && (i.style.position = "relative");
1542
- const n = z("iframe");
1542
+ const n = B("iframe");
1543
1543
  n.setAttribute("style", "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
1544
1544
  const o = cu();
1545
1545
  let s;
1546
- return o ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = ge(window, "message", (r) => {
1546
+ return o ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = me(window, "message", (r) => {
1547
1547
  r.source === n.contentWindow && t();
1548
1548
  })) : (n.src = "about:blank", n.onload = () => {
1549
- s = ge(n.contentWindow, "resize", t);
1549
+ s = me(n.contentWindow, "resize", t);
1550
1550
  }), j(i, n), () => {
1551
1551
  (o || s && n.contentWindow) && s(), S(n);
1552
1552
  };
@@ -1566,7 +1566,7 @@ class ri {
1566
1566
  this.h(t);
1567
1567
  }
1568
1568
  m(t, e, n = null) {
1569
- this.e || (this.is_svg ? this.e = we(e.nodeName) : this.e = z(e.nodeName), this.t = e, this.c(t)), this.i(n);
1569
+ this.e || (this.is_svg ? this.e = we(e.nodeName) : this.e = B(e.nodeName), this.t = e, this.c(t)), this.i(n);
1570
1570
  }
1571
1571
  h(t) {
1572
1572
  this.e.innerHTML = t, this.n = Array.from(this.e.childNodes);
@@ -1866,8 +1866,8 @@ function $e(i, t, e, n, o, s, r, a, l, c, u, h) {
1866
1866
  P(C, 1), C.m(a, u), r.set(C.key, C), u = C.first, m--;
1867
1867
  }
1868
1868
  for (; d && m; ) {
1869
- const C = v[m - 1], L = i[d - 1], x = C.key, O = L.key;
1870
- C === L ? (u = C.first, d--, m--) : A.has(O) ? !r.has(x) || w.has(x) ? I(C) : k.has(O) ? d-- : b.get(x) > b.get(O) ? (k.add(x), I(C)) : (w.add(O), d--) : (l(L, r), d--);
1869
+ const C = v[m - 1], L = i[d - 1], x = C.key, F = L.key;
1870
+ C === L ? (u = C.first, d--, m--) : A.has(F) ? !r.has(x) || w.has(x) ? I(C) : k.has(F) ? d-- : b.get(x) > b.get(F) ? (k.add(x), I(C)) : (w.add(F), d--) : (l(L, r), d--);
1871
1871
  }
1872
1872
  for (; d--; ) {
1873
1873
  const C = i[d];
@@ -1981,10 +1981,10 @@ function vu(i) {
1981
1981
  let t, e, n = i[0].name + "", o, s, r, a, l;
1982
1982
  return {
1983
1983
  c() {
1984
- t = z("div"), e = z("span"), o = ke(n), s = $(), r = z("div"), y(e, "class", "room-label-item__text svelte-1d7uzh5"), T(e, "background-image", "url(" + gu + ")"), U(e, "wide", i[0].name.length > 3), y(r, "class", "room-label-item__bar svelte-1d7uzh5"), y(t, "class", "room-label-item svelte-1d7uzh5"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform), T(t, "opacity", i[0].visible ? 1 : 0);
1984
+ t = B("div"), e = B("span"), o = ke(n), s = $(), r = B("div"), y(e, "class", "room-label-item__text svelte-1d7uzh5"), T(e, "background-image", "url(" + gu + ")"), U(e, "wide", i[0].name.length > 3), y(r, "class", "room-label-item__bar svelte-1d7uzh5"), y(t, "class", "room-label-item svelte-1d7uzh5"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform), T(t, "opacity", i[0].visible ? 1 : 0);
1985
1985
  },
1986
1986
  m(c, u) {
1987
- M(c, t, u), j(t, e), j(e, o), j(t, s), j(t, r), a || (l = ge(e, "click", i[1]), a = !0);
1987
+ M(c, t, u), j(t, e), j(e, o), j(t, s), j(t, r), a || (l = me(e, "click", i[1]), a = !0);
1988
1988
  },
1989
1989
  p(c, [u]) {
1990
1990
  u & 1 && n !== (n = c[0].name + "") && Se(o, n), u & 1 && U(e, "wide", c[0].name.length > 3), u & 1 && T(t, "z-index", c[0].zIndex), u & 1 && T(t, "transform", c[0].transform), u & 1 && T(t, "opacity", c[0].visible ? 1 : 0);
@@ -2308,7 +2308,7 @@ function Jo(i, t) {
2308
2308
  key: i,
2309
2309
  first: null,
2310
2310
  c() {
2311
- e = me(), K(n.$$.fragment), this.first = e;
2311
+ e = pe(), K(n.$$.fragment), this.first = e;
2312
2312
  },
2313
2313
  m(s, r) {
2314
2314
  M(s, e, r), J(n, s, r), o = !0;
@@ -2338,7 +2338,7 @@ function Hu(i) {
2338
2338
  }
2339
2339
  return {
2340
2340
  c() {
2341
- t = z("div");
2341
+ t = B("div");
2342
2342
  for (let c = 0; c < e.length; c += 1)
2343
2343
  e[c].c();
2344
2344
  y(t, "class", "room-labels-container svelte-9eg4zi");
@@ -2349,8 +2349,8 @@ function Hu(i) {
2349
2349
  e[h].m(t, null);
2350
2350
  o = !0, s || (r = [
2351
2351
  ct(rn.call(null, t)),
2352
- ge(t, "clientWidth", i[6]),
2353
- ge(t, "clientHeight", i[7])
2352
+ me(t, "clientWidth", i[6]),
2353
+ me(t, "clientHeight", i[7])
2354
2354
  ], s = !0);
2355
2355
  },
2356
2356
  p(c, [u]) {
@@ -2397,12 +2397,12 @@ function Gu(i, t, e) {
2397
2397
  const x = k.get(L.id);
2398
2398
  if (x)
2399
2399
  return x;
2400
- const { x: O, y: W, z: _ } = L.position, V = new q(O, W, _).clone().distanceTo(o.camera.position);
2400
+ const { x: F, y: _, z: O } = L.position, V = new q(F, _, O).clone().distanceTo(o.camera.position);
2401
2401
  return k.set(L.id, V), V;
2402
2402
  }
2403
2403
  return s.map((L) => {
2404
- const x = c(L), O = x ? u(L, b) : L.transform, W = I(L), V = s.filter((B) => B.visible && I(B) < W).length * 10;
2405
- return fe(Q({}, L), { visible: x, transform: O, zIndex: V });
2404
+ const x = c(L), F = x ? u(L, b) : L.transform, _ = I(L), V = s.filter((z) => z.visible && I(z) < _).length * 10;
2405
+ return fe(Q({}, L), { visible: x, transform: F, zIndex: V });
2406
2406
  });
2407
2407
  }
2408
2408
  function d() {
@@ -2515,7 +2515,7 @@ const vb = (i) => new Nu(i), bb = {
2515
2515
  };
2516
2516
  var Dt = /* @__PURE__ */ ((i) => (i[i.FLOOR = 1] = "FLOOR", i[i.CEILING = 2] = "CEILING", i[i.BOUNDING_CENTER = 3] = "BOUNDING_CENTER", i))(Dt || {});
2517
2517
  function fi(i) {
2518
- return F(this, null, function* () {
2518
+ return H(this, null, function* () {
2519
2519
  try {
2520
2520
  return [null, yield i];
2521
2521
  } catch (t) {
@@ -2624,7 +2624,7 @@ function Ku(i) {
2624
2624
  let t, e;
2625
2625
  return {
2626
2626
  c() {
2627
- t = z("div"), e = z("div"), y(e, "class", "floorplan__camera-rotate svelte-17cl35n"), T(e, "background-image", `url(${i[0] || bt})`), T(e, "width", i[4]), T(e, "height", i[4]), T(e, "left", "-" + i[4]), T(e, "top", "-" + i[4]), T(e, "transform", `rotate(${i[3]}deg)`), T(e, "transform-origin", `${i[4]} ${i[4]}`), y(t, "class", "floorplan__camera-position svelte-17cl35n"), T(t, "left", i[1]), T(t, "top", i[2]);
2627
+ t = B("div"), e = B("div"), y(e, "class", "floorplan__camera-rotate svelte-17cl35n"), T(e, "background-image", `url(${i[0] || bt})`), T(e, "width", i[4]), T(e, "height", i[4]), T(e, "left", "-" + i[4]), T(e, "top", "-" + i[4]), T(e, "transform", `rotate(${i[3]}deg)`), T(e, "transform-origin", `${i[4]} ${i[4]}`), y(t, "class", "floorplan__camera-position svelte-17cl35n"), T(t, "left", i[1]), T(t, "top", i[2]);
2628
2628
  },
2629
2629
  m(n, o) {
2630
2630
  M(n, t, o), j(t, e);
@@ -2681,7 +2681,7 @@ function id(i) {
2681
2681
  let t, e, n, o, s;
2682
2682
  return {
2683
2683
  c() {
2684
- t = z("div"), e = z("div"), n = $(), o = z("span"), s = ke(i[0]), y(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), T(e, "background-image", `url(${td})`), y(o, "class", "floorplan-plugin__compass-text svelte-rpkaro"), y(t, "class", "floorplan-plugin__compass svelte-rpkaro"), T(t, "transform", i[2]);
2684
+ t = B("div"), e = B("div"), n = $(), o = B("span"), s = ke(i[0]), y(e, "class", "floorplan-plugin__compass-image svelte-rpkaro"), T(e, "background-image", `url(${td})`), y(o, "class", "floorplan-plugin__compass-text svelte-rpkaro"), y(t, "class", "floorplan-plugin__compass svelte-rpkaro"), T(t, "transform", i[2]);
2685
2685
  },
2686
2686
  m(r, a) {
2687
2687
  M(r, t, a), j(t, e), j(t, n), j(t, o), j(o, s);
@@ -2698,7 +2698,7 @@ function od(i) {
2698
2698
  let t, e = i[1] && id(i);
2699
2699
  return {
2700
2700
  c() {
2701
- e && e.c(), t = me();
2701
+ e && e.c(), t = pe();
2702
2702
  },
2703
2703
  m(n, o) {
2704
2704
  e && e.m(n, o), M(n, t, o);
@@ -2763,7 +2763,7 @@ function cd(i) {
2763
2763
  let t, e;
2764
2764
  return {
2765
2765
  c() {
2766
- t = z("img"), Ye(t.src, e = i[0]) || y(t, "src", e), y(t, "alt", "floorplan iamge"), y(t, "class", "svelte-1gfoniz");
2766
+ t = B("img"), Ye(t.src, e = i[0]) || y(t, "src", e), y(t, "alt", "floorplan iamge"), y(t, "class", "svelte-1gfoniz");
2767
2767
  },
2768
2768
  m(n, o) {
2769
2769
  M(n, t, o);
@@ -2796,7 +2796,7 @@ function fd(i) {
2796
2796
  let t, e, n, o;
2797
2797
  return {
2798
2798
  c() {
2799
- t = z("div"), e = new ri(!1), n = $(), o = new ri(!1), e.a = n, o.a = null, y(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
2799
+ t = B("div"), e = new ri(!1), n = $(), o = new ri(!1), e.a = n, o.a = null, y(t, "class", "floorplan-plugin__base-image svelte-ub47ya");
2800
2800
  },
2801
2801
  m(s, r) {
2802
2802
  M(s, t, r), e.m(i[1], t), j(t, n), o.m(i[0], t);
@@ -2893,7 +2893,7 @@ function bd(i) {
2893
2893
  }
2894
2894
  return ~(e = a(i)) && (n = r[e] = s[e](i)), {
2895
2895
  c() {
2896
- t = z("div"), n && n.c(), y(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
2896
+ t = B("div"), n && n.c(), y(t, "class", "floorplan-plugin__base-image svelte-ozpg4a");
2897
2897
  },
2898
2898
  m(l, c) {
2899
2899
  M(l, t, c), ~e && r[e].m(t, null), o = !0;
@@ -2936,7 +2936,7 @@ function Ed(i) {
2936
2936
  let t, e = i[8].outerHTML + "", n;
2937
2937
  return {
2938
2938
  c() {
2939
- t = new ri(!1), n = me(), t.a = n;
2939
+ t = new ri(!1), n = pe(), t.a = n;
2940
2940
  },
2941
2941
  m(o, s) {
2942
2942
  t.m(e, o, s), M(o, n, s);
@@ -2953,7 +2953,7 @@ function Cd(i) {
2953
2953
  let t, e, n = i[1] && Ko(i), o = i[0] && $o(i);
2954
2954
  return {
2955
2955
  c() {
2956
- n && n.c(), t = $(), o && o.c(), e = me();
2956
+ n && n.c(), t = $(), o && o.c(), e = pe();
2957
2957
  },
2958
2958
  m(s, r) {
2959
2959
  n && n.m(s, r), M(s, t, r), o && o.m(s, r), M(s, e, r);
@@ -2970,7 +2970,7 @@ function Ko(i) {
2970
2970
  let t, e = i[2].name + "", n;
2971
2971
  return {
2972
2972
  c() {
2973
- t = z("span"), n = ke(e), y(t, "class", "floorplan-plugin__room-name");
2973
+ t = B("span"), n = ke(e), y(t, "class", "floorplan-plugin__room-name");
2974
2974
  },
2975
2975
  m(o, s) {
2976
2976
  M(o, t, s), j(t, n);
@@ -2987,7 +2987,7 @@ function $o(i) {
2987
2987
  let t, e;
2988
2988
  return {
2989
2989
  c() {
2990
- t = z("span"), e = ke(i[7]), y(t, "class", "floorplan-plugin__room-size svelte-12pzct5");
2990
+ t = B("span"), e = ke(i[7]), y(t, "class", "floorplan-plugin__room-size svelte-12pzct5");
2991
2991
  },
2992
2992
  m(n, o) {
2993
2993
  M(n, t, o), j(t, e);
@@ -3011,13 +3011,13 @@ function Pd(i) {
3011
3011
  let s = o(i), r = s && s(i);
3012
3012
  return {
3013
3013
  c() {
3014
- t = z("div"), r && r.c(), y(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), T(t, "left", i[9]), T(t, "top", i[10]), T(t, "font-size", i[11]), T(t, "opacity", i[6] ? "1" : "0");
3014
+ t = B("div"), r && r.c(), y(t, "class", "floorplan-plugin__room-label-item svelte-12pzct5"), T(t, "left", i[9]), T(t, "top", i[10]), T(t, "font-size", i[11]), T(t, "opacity", i[6] ? "1" : "0");
3015
3015
  },
3016
3016
  m(a, l) {
3017
3017
  M(a, t, l), r && r.m(t, null), e || (n = [
3018
3018
  ct(rn.call(null, t)),
3019
- ge(t, "clientWidth", i[19]),
3020
- ge(t, "clientHeight", i[20])
3019
+ me(t, "clientWidth", i[19]),
3020
+ me(t, "clientHeight", i[20])
3021
3021
  ], e = !0);
3022
3022
  },
3023
3023
  p(a, [l]) {
@@ -3041,12 +3041,12 @@ function Id(i, t) {
3041
3041
  }
3042
3042
  function kd(i, t, e) {
3043
3043
  let n, o, s, r, a, { pxmm: l } = t, { roomAreaEnable: c } = t, { roomNameEnable: u } = t, { room: h } = t, { hoveredRoom: d } = t, { getRoomAreaText: m } = t, { getLabelElement: g } = t, { adaptiveRoomLabelVisibleEnable: p } = t;
3044
- function v(V, B) {
3045
- if (B.width === 0 || B.height === 0)
3044
+ function v(V, z) {
3045
+ if (z.width === 0 || z.height === 0)
3046
3046
  return () => !1;
3047
- const R = V.path.map(({ x: de, y: pe }) => [de, pe]), G = V.roomLabel.position, { x: X, y: H } = G, { width: ee, height: Y } = B, ae = ee / 2, he = Y / 2;
3048
- return function(pe) {
3049
- const Ce = X * pe, Ie = H * pe, Me = R.map(([Ae, Ee]) => [Ae * pe, Ee * pe]);
3047
+ const R = V.path.map(({ x: de, y: ge }) => [de, ge]), G = V.roomLabel.position, { x: X, y: W } = G, { width: ee, height: Y } = z, ae = ee / 2, he = Y / 2;
3048
+ return function(ge) {
3049
+ const Ce = X * ge, Ie = W * ge, Me = R.map(([Ae, Ee]) => [Ae * ge, Ee * ge]);
3050
3050
  return [
3051
3051
  [Ce + ae, Ie - he],
3052
3052
  [Ce - ae, Ie - he],
@@ -3056,19 +3056,19 @@ function kd(i, t, e) {
3056
3056
  };
3057
3057
  }
3058
3058
  const A = document.body.clientWidth, b = document.body.clientHeight, w = h.roomLabel, k = w.positionInImage.x * 100 + "%", I = w.positionInImage.y * 100 + "%", C = (A < 500 || b < 500 ? 10 : 14) + "px";
3059
- let L = 0, x = 0, O = !1;
3060
- d.subscribe(function(B) {
3061
- e(16, O = !!B && B.id === h.id);
3059
+ let L = 0, x = 0, F = !1;
3060
+ d.subscribe(function(z) {
3061
+ e(16, F = !!z && z.id === h.id);
3062
3062
  });
3063
- const W = (V) => {
3063
+ const _ = (V) => {
3064
3064
  e(4, L = V.detail);
3065
- }, _ = (V) => {
3065
+ }, O = (V) => {
3066
3066
  e(5, x = V.detail);
3067
3067
  };
3068
3068
  return i.$$set = (V) => {
3069
3069
  "pxmm" in V && e(12, l = V.pxmm), "roomAreaEnable" in V && e(0, c = V.roomAreaEnable), "roomNameEnable" in V && e(1, u = V.roomNameEnable), "room" in V && e(2, h = V.room), "hoveredRoom" in V && e(13, d = V.hoveredRoom), "getRoomAreaText" in V && e(14, m = V.getRoomAreaText), "getLabelElement" in V && e(3, g = V.getLabelElement), "adaptiveRoomLabelVisibleEnable" in V && e(15, p = V.adaptiveRoomLabelVisibleEnable);
3070
3070
  }, i.$$.update = () => {
3071
- i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(h)), i.$$.dirty & 16388 && e(7, o = h.size ? m(h.size) : ""), i.$$.dirty & 48 && e(18, s = { width: L, height: x }), i.$$.dirty & 262148 && e(17, r = s ? v(h, s) : void 0), i.$$.dirty & 233472 && e(6, a = p ? O ? !0 : !!(r != null && r(l)) : !0);
3071
+ i.$$.dirty & 12 && e(8, n = g == null ? void 0 : g(h)), i.$$.dirty & 16388 && e(7, o = h.size ? m(h.size) : ""), i.$$.dirty & 48 && e(18, s = { width: L, height: x }), i.$$.dirty & 262148 && e(17, r = s ? v(h, s) : void 0), i.$$.dirty & 233472 && e(6, a = p ? F ? !0 : !!(r != null && r(l)) : !0);
3072
3072
  }, [
3073
3073
  c,
3074
3074
  u,
@@ -3086,11 +3086,11 @@ function kd(i, t, e) {
3086
3086
  d,
3087
3087
  m,
3088
3088
  p,
3089
- O,
3089
+ F,
3090
3090
  r,
3091
3091
  s,
3092
- W,
3093
- _
3092
+ _,
3093
+ O
3094
3094
  ];
3095
3095
  }
3096
3096
  class xd extends oe {
@@ -3131,7 +3131,7 @@ function ts(i) {
3131
3131
  }
3132
3132
  return {
3133
3133
  c() {
3134
- t = z("div");
3134
+ t = B("div");
3135
3135
  for (let c = 0; c < e.length; c += 1)
3136
3136
  e[c].c();
3137
3137
  y(t, "class", "floorplan-plugin__room-labels svelte-13xux0b");
@@ -3142,7 +3142,7 @@ function ts(i) {
3142
3142
  e[h].m(t, null);
3143
3143
  o = !0, s || (r = [
3144
3144
  ct(rn.call(null, t)),
3145
- ge(t, "clientWidth", i[11])
3145
+ me(t, "clientWidth", i[11])
3146
3146
  ], s = !0);
3147
3147
  },
3148
3148
  p(c, u) {
@@ -3189,7 +3189,7 @@ function ns(i, t) {
3189
3189
  key: i,
3190
3190
  first: null,
3191
3191
  c() {
3192
- e = me(), K(n.$$.fragment), this.first = e;
3192
+ e = pe(), K(n.$$.fragment), this.first = e;
3193
3193
  },
3194
3194
  m(a, l) {
3195
3195
  M(a, e, l), J(n, a, l), o = !0;
@@ -3225,7 +3225,7 @@ function Ld(i) {
3225
3225
  let t, e, n = i[8] && ts(i);
3226
3226
  return {
3227
3227
  c() {
3228
- n && n.c(), t = me();
3228
+ n && n.c(), t = pe();
3229
3229
  },
3230
3230
  m(o, s) {
3231
3231
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -3310,7 +3310,7 @@ function ss(i) {
3310
3310
  let t;
3311
3311
  return {
3312
3312
  c() {
3313
- t = z("div"), y(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), T(t, "left", i[14].left * 100 + "%"), T(t, "bottom", i[14].bottom * 100 + "%");
3313
+ t = B("div"), y(t, "class", "floorplan-plugin__rule-scale svelte-djlmk4"), T(t, "left", i[14].left * 100 + "%"), T(t, "bottom", i[14].bottom * 100 + "%");
3314
3314
  },
3315
3315
  m(e, n) {
3316
3316
  M(e, t, n);
@@ -3327,7 +3327,7 @@ function rs(i, t) {
3327
3327
  key: i,
3328
3328
  first: null,
3329
3329
  c() {
3330
- e = z("div"), n = z("div"), s = ke(o), r = $(), y(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), U(n, "is-row", t[2]), y(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), T(e, "left", t[11].left * 100 + "%"), T(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
3330
+ e = B("div"), n = B("div"), s = ke(o), r = $(), y(n, "class", "floorplan-plugin__rule-text svelte-djlmk4"), U(n, "is-row", t[2]), y(e, "class", "floorplan-plugin__rule-text-item svelte-djlmk4"), T(e, "left", t[11].left * 100 + "%"), T(e, "bottom", t[11].bottom * 100 + "%"), this.first = e;
3331
3331
  },
3332
3332
  m(a, l) {
3333
3333
  M(a, e, l), j(e, n), j(n, s), j(e, r);
@@ -3352,10 +3352,10 @@ function zd(i) {
3352
3352
  }
3353
3353
  return {
3354
3354
  c() {
3355
- t = z("div"), e = z("div"), n = $(), o = z("div");
3355
+ t = B("div"), e = B("div"), n = $(), o = B("div");
3356
3356
  for (let g = 0; g < h.length; g += 1)
3357
3357
  h[g].c();
3358
- s = $(), r = z("div");
3358
+ s = $(), r = B("div");
3359
3359
  for (let g = 0; g < a.length; g += 1)
3360
3360
  a[g].c();
3361
3361
  y(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), y(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), U(o, "is-row", i[2]), y(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), y(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), U(t, "is-row", i[2]), T(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), T(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
@@ -3449,7 +3449,7 @@ function ls(i, t) {
3449
3449
  key: i,
3450
3450
  first: null,
3451
3451
  c() {
3452
- e = me(), K(n.$$.fragment), this.first = e;
3452
+ e = pe(), K(n.$$.fragment), this.first = e;
3453
3453
  },
3454
3454
  m(a, l) {
3455
3455
  M(a, e, l), J(n, a, l), o = !0;
@@ -3486,7 +3486,7 @@ function Od(i) {
3486
3486
  }
3487
3487
  return {
3488
3488
  c() {
3489
- t = z("div");
3489
+ t = B("div");
3490
3490
  for (let a = 0; a < e.length; a += 1)
3491
3491
  e[a].c();
3492
3492
  y(t, "class", "floorplan-plugin__rule-labels-wrapper svelte-1mzj9p3"), T(t, "width", i[3]), T(t, "height", i[2]);
@@ -3803,7 +3803,7 @@ function nh(i) {
3803
3803
  });
3804
3804
  return {
3805
3805
  c() {
3806
- t = z("div");
3806
+ t = B("div");
3807
3807
  for (let r = 0; r < o.length; r += 1)
3808
3808
  o[r].c();
3809
3809
  y(t, "class", "floorplan-plugin__room-material svelte-1dykexu");
@@ -3872,8 +3872,8 @@ function rh(i) {
3872
3872
  },
3873
3873
  m(s, r) {
3874
3874
  M(s, t, r), n || (o = [
3875
- ge(t, "mouseenter", i[3]),
3876
- ge(t, "mouseleave", i[4])
3875
+ me(t, "mouseenter", i[3]),
3876
+ me(t, "mouseleave", i[4])
3877
3877
  ], n = !0);
3878
3878
  },
3879
3879
  p(s, [r]) {
@@ -3959,7 +3959,7 @@ function ms(i, t) {
3959
3959
  key: i,
3960
3960
  first: null,
3961
3961
  c() {
3962
- e = me(), K(n.$$.fragment), this.first = e;
3962
+ e = pe(), K(n.$$.fragment), this.first = e;
3963
3963
  },
3964
3964
  m(a, l) {
3965
3965
  M(a, e, l), J(n, a, l), o = !0;
@@ -3997,7 +3997,7 @@ function uh(i) {
3997
3997
  }
3998
3998
  return {
3999
3999
  c() {
4000
- t = z("div"), e = we("svg");
4000
+ t = B("div"), e = we("svg");
4001
4001
  for (let l = 0; l < n.length; l += 1)
4002
4002
  n[l].c();
4003
4003
  y(e, "width", "100%"), y(e, "height", "100%"), y(e, "viewBox", `0 0 ${i[4]} ${i[5]}`), y(e, "class", "svelte-1kqo6e4"), y(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
@@ -4223,7 +4223,7 @@ function fh(i) {
4223
4223
  let p = i[4] && gs(i), v = i[7] && As(i);
4224
4224
  return {
4225
4225
  c() {
4226
- t = z("div"), K(e.$$.fragment), n = $(), d && d.c(), o = $(), K(s.$$.fragment), r = $(), p && p.c(), a = $(), v && v.c(), y(t, "class", l = Pe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
4226
+ t = B("div"), K(e.$$.fragment), n = $(), d && d.c(), o = $(), K(s.$$.fragment), r = $(), p && p.c(), a = $(), v && v.c(), y(t, "class", l = Pe(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
4227
4227
  },
4228
4228
  m(A, b) {
4229
4229
  M(A, t, b), J(e, t, null), j(t, n), d && d.m(t, null), j(t, o), J(s, t, null), j(t, r), p && p.m(t, null), j(t, a), v && v.m(t, null), c = !0;
@@ -4329,7 +4329,7 @@ function bs(i) {
4329
4329
  let c = i[5] && ws(i), u = i[8] && Es(i);
4330
4330
  return {
4331
4331
  c() {
4332
- t = z("div");
4332
+ t = B("div");
4333
4333
  for (let h = 0; h < a.length; h += 1)
4334
4334
  a[h].c();
4335
4335
  e = $(), c && c.c(), n = $(), u && u.c(), y(t, "class", "floorplan-main svelte-86bqav");
@@ -4526,7 +4526,7 @@ function Ah(i) {
4526
4526
  let t, e, n = i[1] && bs(i);
4527
4527
  return {
4528
4528
  c() {
4529
- n && n.c(), t = me();
4529
+ n && n.c(), t = pe();
4530
4530
  },
4531
4531
  m(o, s) {
4532
4532
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -4612,9 +4612,9 @@ class wo extends oe {
4612
4612
  }
4613
4613
  const bh = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAwCAYAAACFUvPfAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALaADAAQAAAABAAAAMAAAAADe2FZjAAAEF0lEQVRoBe2WzWskRRiHf13V092TxI2oEzYeVDwITtyDuCiihwiCePGgxIM3vYgHL4J4UIhBRA8i/gPqyUvWg7AiIuIeloDiYUHJLOK6BPwIk9nNODM9Xf1RVe1b3elJRjCZmQ6euqGmuqer33rq4e23GqiOykBloDJQGagMVAYqA5WBykBlYFYD1qwP/tdzaZqOx9zYOLxeX0+L5yzLGp0X/03a25MOnGRcBtx+6Rlo9SL08G4EooFnxa8Yiivox5/h5Ys/4cl7NVorNDRnngX+0MIkVMeMSf23zyKML8J7/Dy8hwF2Buh9CnS+AEQIdLspBuGb+M7/qLW4qJrNpsLapjYhpwVnx3BMfCtNNx3Etc9xywvnMf80wG8HmQainw0RxSGrnmeBp+8k5/j9S0HbvXb5io0Lz880/0wPHV1NlhLd316He+4xOCv5ragF7L9PrH1qBJyB0626x/lC+qrSvH5r/W+n1WpxUM5nMY4GPeH8lHJaPgfeAFQHCL+ntkXT+vnUc3W6pvTIwC0wy3rA4dwLmK2avZ7Eo9uKBuYJfgJscbs8dLCxDMt+EOEPBEZNEWyBYHqTz6bPXrzUnNrSShxHIsYiOL69zrCGLLcLqJP68tB+9w5wj+YhWDafQ2s61wNqxjZhmrQ2pvMFCEvXuCUZ7wqH794ZWs28LJqlTXSUyuksF2M/yOwqgkx2c1ADa4wLAQRk2sAGQQakhN6yFC2hltfz5kSY44NKQeeh+vtI/SSzWhg2CzCgmWISmKUGmaYFBDfCSymnfxJ6/+ospVcWOLLp5DGP/y0P/Rp66O99DQNq7Po3Ds0a0wY+My2QSv2N2mO/OyxR2o6UQk+Lv7yJ06JYSnnolZVU9cUn2O9SmaMWGFBqYXRwbqAJWIi94TX5biotpcGl1DXZ6LnqIbNDTnmUgi52Mv5l5ysMxIcZcGjy2DTK4ZHlcBC14zeSge4qphICjj3bS0A7o9nSp2TOkm7aZ8bGZy/jxhO87V91G0+dfY/Z7BWIIK9KYUi5qy/Hf8YfBG3sqJTHiQWhmTVkbip+wX3x6volVSx+LPAxF+VLXhZ8VQ+iP2Rta/iWe5v42Fngj0BbdnRTXh12ZIcKhTaGbcYjybRwXBU1lu9KlndXp04NM52poKWO0RZsviNaP9a6grkO972+st05pXhE5c1hTEluJy7XUejGUQNLMbAmTdWY1rKBLW3aTJqBZ7nZkb36DhYCreeYHbMUXHvaYi5XDK70EcgulmRjm77wNtenzuXCbmnTRaAx493rbGf3Jr/njMzj920CnKdUaFCjlDioy7NYNvOdGrQJNgI32/L2tkXfFPlxgToqjWVhD6KdLnQRdARf/HHQz2r2X2Gqy8pAZaAyUBmoDFQGKgP/q4F/AJYg9/s0ZoABAAAAAElFTkSuQmCC";
4614
4614
  function yh(i) {
4615
- return F(this, null, function* () {
4615
+ return H(this, null, function* () {
4616
4616
  const t = new Headers({ "Content-Type": "text/plain" }), e = function(o) {
4617
- return F(this, null, function* () {
4617
+ return H(this, null, function* () {
4618
4618
  const s = {
4619
4619
  index: o.index,
4620
4620
  url: o.url,
@@ -4672,7 +4672,7 @@ function Ph(i) {
4672
4672
  };
4673
4673
  }
4674
4674
  function yt(i) {
4675
- return F(this, null, function* () {
4675
+ return H(this, null, function* () {
4676
4676
  const t = yield yh(i.outlines), e = i.computed_data.bounding, n = i.computed_data.floor_datas.map(Eh), o = i.computed_data.entrance ? Ph(i.computed_data.entrance) : null;
4677
4677
  return {
4678
4678
  outlines: t,
@@ -4718,7 +4718,7 @@ function Co(i, t, e, n) {
4718
4718
  }
4719
4719
  class zn {
4720
4720
  constructor(t, e) {
4721
- f(this, "VERSION", "2.15.0-alpha.1");
4721
+ f(this, "VERSION", "2.15.0");
4722
4722
  f(this, "five");
4723
4723
  f(this, "hooks", new Zt());
4724
4724
  f(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -4736,7 +4736,7 @@ function oo(i, t, e = 4) {
4736
4736
  return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
4737
4737
  }
4738
4738
  function ul(i, t) {
4739
- return F(this, null, function* () {
4739
+ return H(this, null, function* () {
4740
4740
  yield new Promise((e, n) => {
4741
4741
  i.changeMode(...t).catch((o) => n(o)), i.once("initAnimationEnded", () => {
4742
4742
  const o = i.getCurrentState(), s = t[0];
@@ -4761,7 +4761,7 @@ function Po(i, t) {
4761
4761
  return !(!oo(e, s, 2) || !oo(n, r, 2) || o !== a);
4762
4762
  }
4763
4763
  function dl(i, t, e = !0) {
4764
- return F(this, null, function* () {
4764
+ return H(this, null, function* () {
4765
4765
  if (Po(i, t) === !0)
4766
4766
  return;
4767
4767
  const o = i.getCurrentState();
@@ -4826,13 +4826,13 @@ class Sh extends zt {
4826
4826
  var e, n;
4827
4827
  this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (n = this.container) == null || n.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
4828
4828
  });
4829
- f(this, "show", (...n) => F(this, [...n], function* (e = {}) {
4829
+ f(this, "show", (...n) => H(this, [...n], function* (e = {}) {
4830
4830
  if (!this.state.enabled || !this.showPromise && this.state.visible)
4831
4831
  return;
4832
4832
  const o = e.userAction !== void 0 ? e.userAction : !0;
4833
4833
  this.updateState({ visible: !0 }, o), this._show(e);
4834
4834
  }));
4835
- f(this, "hide", (...n) => F(this, [...n], function* (e = {}) {
4835
+ f(this, "hide", (...n) => H(this, [...n], function* (e = {}) {
4836
4836
  !this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
4837
4837
  }));
4838
4838
  f(this, "updateSize", () => {
@@ -4856,7 +4856,7 @@ class Sh extends zt {
4856
4856
  const { userAction: n } = e;
4857
4857
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
4858
4858
  });
4859
- f(this, "_show", (e) => F(this, null, function* () {
4859
+ f(this, "_show", (e) => H(this, null, function* () {
4860
4860
  var r;
4861
4861
  if (!this.state.enabled)
4862
4862
  return;
@@ -4871,7 +4871,7 @@ class Sh extends zt {
4871
4871
  immediately: !1,
4872
4872
  isAutoShow: !1,
4873
4873
  userAction: !0
4874
- }, o = Q(Q({}, n), e), s = () => F(this, null, function* () {
4874
+ }, o = Q(Q({}, n), e), s = () => H(this, null, function* () {
4875
4875
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
4876
4876
  let a = !1, l;
4877
4877
  this.showRejection = (d) => {
@@ -4994,7 +4994,7 @@ class Sh extends zt {
4994
4994
  }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
4995
4995
  }
4996
4996
  load(e, n, o = !0) {
4997
- return F(this, null, function* () {
4997
+ return H(this, null, function* () {
4998
4998
  function s(u) {
4999
4999
  return Object.prototype.hasOwnProperty.apply(u, ["version"]);
5000
5000
  }
@@ -5032,7 +5032,7 @@ class Sh extends zt {
5032
5032
  this.updateState({ config: e }, n), this.render();
5033
5033
  }
5034
5034
  formatData(e) {
5035
- return F(this, null, function* () {
5035
+ return H(this, null, function* () {
5036
5036
  return yield yt(e.data);
5037
5037
  });
5038
5038
  }
@@ -5110,13 +5110,13 @@ class zh extends zt {
5110
5110
  var e, n;
5111
5111
  this.removeEventListener(), (e = this.app) == null || e.$destroy(), this.app = void 0, (n = this.container) == null || n.remove(), this.data = void 0, this.wrapper = void 0, this.selector = void 0, this.hooks.emit("dispose");
5112
5112
  });
5113
- f(this, "show", (...n) => F(this, [...n], function* (e = {}) {
5113
+ f(this, "show", (...n) => H(this, [...n], function* (e = {}) {
5114
5114
  if (!this.state.enabled || !this.showPromise && this.state.visible)
5115
5115
  return;
5116
5116
  const o = e.userAction !== void 0 ? e.userAction : !0;
5117
5117
  this.updateState({ visible: !0 }, o), this._show(e);
5118
5118
  }));
5119
- f(this, "hide", (...n) => F(this, [...n], function* (e = {}) {
5119
+ f(this, "hide", (...n) => H(this, [...n], function* (e = {}) {
5120
5120
  !this.state.enabled || (this.isHiddenByHideFunc = !0, this.state.visible !== !1 && (this.updateState({ visible: !1 }, e.userAction || !0), this._hide(e)));
5121
5121
  }));
5122
5122
  f(this, "updateSize", () => {
@@ -5140,7 +5140,7 @@ class zh extends zt {
5140
5140
  const { userAction: n } = e;
5141
5141
  this.addEventListener(), this.wrapper && (this.wrapper.append(this.container), this.hooks.emit("enable", { userAction: n }), this.state.visible && this._show({ userAction: n }));
5142
5142
  });
5143
- f(this, "_show", (e) => F(this, null, function* () {
5143
+ f(this, "_show", (e) => H(this, null, function* () {
5144
5144
  var r;
5145
5145
  if (!this.state.enabled)
5146
5146
  return;
@@ -5155,7 +5155,7 @@ class zh extends zt {
5155
5155
  immediately: !1,
5156
5156
  isAutoShow: !1,
5157
5157
  userAction: !0
5158
- }, o = Q(Q({}, n), e), s = () => F(this, null, function* () {
5158
+ }, o = Q(Q({}, n), e), s = () => H(this, null, function* () {
5159
5159
  this.hooks.emit("show", { userAction: o.userAction, auto: o.isAutoShow });
5160
5160
  let a = !1, l;
5161
5161
  this.showRejection = (d) => {
@@ -5276,7 +5276,7 @@ class zh extends zt {
5276
5276
  }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
5277
5277
  }
5278
5278
  load(e, n, o = !0) {
5279
- return F(this, null, function* () {
5279
+ return H(this, null, function* () {
5280
5280
  function s(u) {
5281
5281
  return Object.prototype.hasOwnProperty.apply(u, ["version"]);
5282
5282
  }
@@ -5321,7 +5321,7 @@ class zh extends zt {
5321
5321
  this.container.style.left = s * 100 + "%", this.container.style.top = r * 100 + "%";
5322
5322
  }
5323
5323
  formatData(e) {
5324
- return F(this, null, function* () {
5324
+ return H(this, null, function* () {
5325
5325
  return yield yt(e.data);
5326
5326
  });
5327
5327
  }
@@ -5473,7 +5473,7 @@ class Bh extends zt {
5473
5473
  }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
5474
5474
  }
5475
5475
  load(e, n, o = !0) {
5476
- return F(this, null, function* () {
5476
+ return H(this, null, function* () {
5477
5477
  function s(u) {
5478
5478
  return Object.prototype.hasOwnProperty.apply(u, ["version"]);
5479
5479
  }
@@ -5496,7 +5496,7 @@ class Bh extends zt {
5496
5496
  return e.appendChild(this.container), this.render(), this;
5497
5497
  }
5498
5498
  show() {
5499
- return F(this, arguments, function* (e = {}) {
5499
+ return H(this, arguments, function* (e = {}) {
5500
5500
  if (this.state.visible)
5501
5501
  return;
5502
5502
  const n = e.userAction !== void 0 ? e.userAction : !0;
@@ -5504,7 +5504,7 @@ class Bh extends zt {
5504
5504
  });
5505
5505
  }
5506
5506
  hide() {
5507
- return F(this, arguments, function* (e = {}) {
5507
+ return H(this, arguments, function* (e = {}) {
5508
5508
  if (this.isHiddenByHideFunc = !0, !this.state.visible)
5509
5509
  return;
5510
5510
  const n = e.userAction !== void 0 ? e.userAction : !0;
@@ -5538,12 +5538,12 @@ class Bh extends zt {
5538
5538
  this.updateState({ config: e }, n), this.render();
5539
5539
  }
5540
5540
  formatData(e) {
5541
- return F(this, null, function* () {
5541
+ return H(this, null, function* () {
5542
5542
  return yield yt(e.data);
5543
5543
  });
5544
5544
  }
5545
5545
  _show(e) {
5546
- return F(this, null, function* () {
5546
+ return H(this, null, function* () {
5547
5547
  if (!this.state.enabled)
5548
5548
  return;
5549
5549
  this.isHiddenByHideFunc = !1;
@@ -5554,7 +5554,7 @@ class Bh extends zt {
5554
5554
  });
5555
5555
  }
5556
5556
  _hide(e) {
5557
- return F(this, null, function* () {
5557
+ return H(this, null, function* () {
5558
5558
  if (!this.state.enabled)
5559
5559
  return;
5560
5560
  const { userAction: n } = e;
@@ -5625,7 +5625,7 @@ function Vh(i) {
5625
5625
  let t, e, n;
5626
5626
  return {
5627
5627
  c() {
5628
- t = z("div"), e = z("div"), n = z("div"), y(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), T(n, "background-image", "url(" + (i[0] || bt) + ")"), T(n, "transform", i[1]), y(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), T(e, "transform", i[2]), y(t, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
5628
+ t = B("div"), e = B("div"), n = B("div"), y(n, "class", "plugin-radar__camera-rotate svelte-1nqrlxd"), T(n, "background-image", "url(" + (i[0] || bt) + ")"), T(n, "transform", i[1]), y(e, "class", "plugin-radar__camera-position svelte-1nqrlxd"), T(e, "transform", i[2]), y(t, "class", "plugin-radar__camera-wrapper svelte-1nqrlxd");
5629
5629
  },
5630
5630
  m(o, s) {
5631
5631
  M(o, t, s), j(t, e), j(e, n);
@@ -5709,7 +5709,7 @@ function Is(i, t) {
5709
5709
  key: i,
5710
5710
  first: null,
5711
5711
  c() {
5712
- e = z("div"), n = z("div"), r = $(), y(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), T(n, "background-image", `url(${t[1].icon.url})`), T(n, "width", o), T(n, "height", s), y(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), T(e, "top", a), T(e, "left", l), this.first = e;
5712
+ e = B("div"), n = B("div"), r = $(), y(n, "class", "plugin-pano-floorplan__extra-object-item svelte-1i87fz7"), T(n, "background-image", `url(${t[1].icon.url})`), T(n, "width", o), T(n, "height", s), y(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), T(e, "top", a), T(e, "left", l), this.first = e;
5713
5713
  },
5714
5714
  m(c, u) {
5715
5715
  M(c, e, u), j(e, n), j(e, r);
@@ -5731,7 +5731,7 @@ function Hh(i) {
5731
5731
  }
5732
5732
  return {
5733
5733
  c() {
5734
- t = z("div");
5734
+ t = B("div");
5735
5735
  for (let r = 0; r < e.length; r += 1)
5736
5736
  e[r].c();
5737
5737
  y(t, "class", "plugin-pano-floorplan__extra-objects svelte-1i87fz7");
@@ -5829,7 +5829,7 @@ function _h(i) {
5829
5829
  let c = i[3] && ks(i);
5830
5830
  return {
5831
5831
  c() {
5832
- K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), c && c.c(), s = me();
5832
+ K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), c && c.c(), s = pe();
5833
5833
  },
5834
5834
  m(u, h) {
5835
5835
  J(t, u, h), M(u, e, h), J(n, u, h), M(u, o, h), c && c.m(u, h), M(u, s, h), r = !0;
@@ -5897,13 +5897,13 @@ function xs(i) {
5897
5897
  let t, e, n, o, s = i[7] !== 0 && Ds(i);
5898
5898
  return {
5899
5899
  c() {
5900
- t = z("div"), s && s.c(), y(t, "class", "plugin-floorplan-radar svelte-1mvqyqq");
5900
+ t = B("div"), s && s.c(), y(t, "class", "plugin-floorplan-radar svelte-1mvqyqq");
5901
5901
  },
5902
5902
  m(r, a) {
5903
5903
  M(r, t, a), s && s.m(t, null), e = !0, n || (o = [
5904
5904
  ct(rn.call(null, t)),
5905
- ge(t, "clientWidth", i[13]),
5906
- ge(t, "clientHeight", i[14])
5905
+ me(t, "clientWidth", i[13]),
5906
+ me(t, "clientHeight", i[14])
5907
5907
  ], n = !0);
5908
5908
  },
5909
5909
  p(r, a) {
@@ -5952,7 +5952,7 @@ function Ds(i) {
5952
5952
  h = ze(h, u[d]);
5953
5953
  return o = new Rh({ props: h }), {
5954
5954
  c() {
5955
- t = z("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), T(t, "width", s), T(t, "height", r);
5955
+ t = B("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), T(t, "width", s), T(t, "height", r);
5956
5956
  },
5957
5957
  m(d, m) {
5958
5958
  M(d, t, m), J(e, t, null), j(t, n), J(o, t, null), a = !0;
@@ -5995,7 +5995,7 @@ function Uh(i) {
5995
5995
  let t, e, n = i[1] && xs(i);
5996
5996
  return {
5997
5997
  c() {
5998
- n && n.c(), t = me();
5998
+ n && n.c(), t = pe();
5999
5999
  },
6000
6000
  m(o, s) {
6001
6001
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -6034,10 +6034,10 @@ function qh(i, t, e) {
6034
6034
  "five" in I && e(0, n = I.five), "visible" in I && e(1, o = I.visible), "hoverEnable" in I && e(2, s = I.hoverEnable), "floorplanData" in I && e(3, r = I.floorplanData), "cameraImageUrl" in I && e(4, a = I.cameraImageUrl), "extraObjects" in I && e(5, l = I.extraObjects), "highlightData" in I && e(6, c = I.highlightData);
6035
6035
  }, i.$$.update = () => {
6036
6036
  if (i.$$.dirty & 904) {
6037
- const I = Math.min(d, m), { max: C, min: L } = r.bounding, x = C.x - L.x, O = C.y - L.y, W = function() {
6038
- return x > O ? [I, I / x * O] : [I / O * x, I];
6037
+ const I = Math.min(d, m), { max: C, min: L } = r.bounding, x = C.x - L.x, F = C.y - L.y, _ = function() {
6038
+ return x > F ? [I, I / x * F] : [I / F * x, I];
6039
6039
  }();
6040
- e(9, g = W[0]), e(12, p = W[1]), e(10, u = g / x);
6040
+ e(9, g = _[0]), e(12, p = _[1]), e(10, u = g / x);
6041
6041
  }
6042
6042
  }, [
6043
6043
  n,
@@ -6114,7 +6114,7 @@ class Zh extends zt {
6114
6114
  this.state = { enabled: !0, visible: !0, config: r }, n != null && n.wrapper && console.warn("\u4E0D\u63A8\u8350\u7EE7\u7EED\u4F7F\u7528 params.selector \u914D\u7F6E\u7236\u5BB9\u5668\uFF0C\u8BF7\u4F7F\u7528 appendTo \u65B9\u6CD5"), typeof (n == null ? void 0 : n.wrapper) == "string" ? this.wrapperSelector = n.wrapper : (n == null ? void 0 : n.wrapper) instanceof Element && (this.wrapper = n.wrapper), e.once("dispose", this.dispose);
6115
6115
  }
6116
6116
  load(e, n, o = !0) {
6117
- return F(this, null, function* () {
6117
+ return H(this, null, function* () {
6118
6118
  function s(c) {
6119
6119
  return Object.prototype.hasOwnProperty.apply(c, ["version"]);
6120
6120
  }
@@ -6123,7 +6123,7 @@ class Zh extends zt {
6123
6123
  });
6124
6124
  }
6125
6125
  show() {
6126
- return F(this, arguments, function* (e = {}) {
6126
+ return H(this, arguments, function* (e = {}) {
6127
6127
  if (this.state.visible)
6128
6128
  return;
6129
6129
  const n = e.userAction !== void 0 ? e.userAction : !0;
@@ -6131,7 +6131,7 @@ class Zh extends zt {
6131
6131
  });
6132
6132
  }
6133
6133
  hide() {
6134
- return F(this, arguments, function* (e = {}) {
6134
+ return H(this, arguments, function* (e = {}) {
6135
6135
  if (!this.state.visible)
6136
6136
  return;
6137
6137
  const n = e.userAction !== void 0 ? e.userAction : !0;
@@ -6171,7 +6171,7 @@ class Zh extends zt {
6171
6171
  !this.data || (this.extraObjects = Ih(e, this.five, this.data), this.render());
6172
6172
  }
6173
6173
  formatData(e) {
6174
- return F(this, null, function* () {
6174
+ return H(this, null, function* () {
6175
6175
  return yield yt(e.data);
6176
6176
  });
6177
6177
  }
@@ -6334,7 +6334,7 @@ function hl(i, t) {
6334
6334
  }
6335
6335
  const xb = (i, t) => {
6336
6336
  var u;
6337
- const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) => F(void 0, null, function* () {
6337
+ const e = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/dipan2.f38a21cc.FBX", n = (u = t.north_rad) != null ? u : void 0, o = {}, s = (h) => H(void 0, null, function* () {
6338
6338
  var V;
6339
6339
  const d = (h == null ? void 0 : h.fbx_url) || e, m = (V = h == null ? void 0 : h.north_rad) != null ? V : n;
6340
6340
  if (typeof m != "number")
@@ -6349,13 +6349,13 @@ const xb = (i, t) => {
6349
6349
  model: {
6350
6350
  bounding: {
6351
6351
  max: { x: I, z: C },
6352
- min: { x: L, y: x, z: O }
6352
+ min: { x: L, y: x, z: F }
6353
6353
  }
6354
6354
  }
6355
6355
  } = i;
6356
6356
  o.yBase = x;
6357
- const W = { x: (I + L) / 2, y: x - 1.6, z: (C + O) / 2 }, _ = 45e-4 * A;
6358
- return Kh(w, { position: W, rotation: k, scale: _ }), o.object = w, !0;
6357
+ const _ = { x: (I + L) / 2, y: x - 1.6, z: (C + F) / 2 }, O = 45e-4 * A;
6358
+ return Kh(w, { position: _, rotation: k, scale: O }), o.object = w, !0;
6359
6359
  }), r = ({ latitude: h }) => {
6360
6360
  if (!o.object)
6361
6361
  return;
@@ -6388,21 +6388,21 @@ function $h(i, t) {
6388
6388
  }
6389
6389
  const ef = ({ x: i, y: t, z: e }) => new q(i, t, e), Db = (i, t) => {
6390
6390
  var p, v, A;
6391
- const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => F(void 0, null, function* () {
6392
- var W, _, V, B, R, G, X, H;
6393
- const w = (W = b == null ? void 0 : b.position) != null ? W : o;
6391
+ const e = {}, n = (p = t.animationEnabled) != null ? p : !0, o = (v = t.position) != null ? v : void 0, s = (A = t.rad) != null ? A : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (b) => H(void 0, null, function* () {
6392
+ var _, O, V, z, R, G, X, W;
6393
+ const w = (_ = b == null ? void 0 : b.position) != null ? _ : o;
6394
6394
  if (!w)
6395
6395
  return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
6396
- const k = ef(w), I = (_ = b == null ? void 0 : b.rad) != null ? _ : s, C = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
6396
+ const k = ef(w), I = (O = b == null ? void 0 : b.rad) != null ? O : s, C = (V = b == null ? void 0 : b.fbx_url) != null ? V : r;
6397
6397
  if (e.rad = I, I === void 0)
6398
6398
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${I}`));
6399
6399
  const L = yield new ka().loadAsync(C);
6400
6400
  L.position.copy(k), L.rotation.z = I, L.scale.set(0.8, 0.8, 0.8), hl(L, { transparent: !0, side: E.DoubleSide });
6401
- const x = (X = (G = (R = (B = L.children) == null ? void 0 : B[0]) == null ? void 0 : R.children) == null ? void 0 : G[3]) == null ? void 0 : X.clone();
6401
+ const x = (X = (G = (R = (z = L.children) == null ? void 0 : z[0]) == null ? void 0 : R.children) == null ? void 0 : G[3]) == null ? void 0 : X.clone();
6402
6402
  if (!x)
6403
6403
  return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${x}`));
6404
- const O = (H = t.name) != null ? H : "\u5165\u6237\u95E8";
6405
- return x.material = new Cn({ transparent: !0, map: $h(O) }), x.renderOrder = 3, L.children[0].add(x), e.object = L, !0;
6404
+ const F = (W = t.name) != null ? W : "\u5165\u6237\u95E8";
6405
+ return x.material = new Cn({ transparent: !0, map: $h(F) }), x.renderOrder = 3, L.children[0].add(x), e.object = L, !0;
6406
6406
  }), c = () => {
6407
6407
  if (e.animation)
6408
6408
  return;
@@ -6414,23 +6414,23 @@ const ef = ({ x: i, y: t, z: e }) => new q(i, t, e), Db = (i, t) => {
6414
6414
  k.timeScale = b;
6415
6415
  let I;
6416
6416
  const C = () => {
6417
- let W = 0, _ = 0;
6418
- const V = 1e3 / 30, B = (R) => {
6419
- W = requestAnimationFrame(B);
6420
- const G = R - _;
6421
- G < V || (_ = R, a.forEach((X) => X.update(G / 1e3)), i.needsRender = !0);
6417
+ let _ = 0, O = 0;
6418
+ const V = 1e3 / 30, z = (R) => {
6419
+ _ = requestAnimationFrame(z);
6420
+ const G = R - O;
6421
+ G < V || (O = R, a.forEach((X) => X.update(G / 1e3)), i.needsRender = !0);
6422
6422
  };
6423
- return W = requestAnimationFrame(B), () => {
6424
- cancelAnimationFrame(W);
6423
+ return _ = requestAnimationFrame(z), () => {
6424
+ cancelAnimationFrame(_);
6425
6425
  };
6426
- }, O = { play: () => {
6426
+ }, F = { play: () => {
6427
6427
  I || (k.play(), I = C(), requestAnimationFrame(() => {
6428
6428
  e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
6429
6429
  }));
6430
6430
  }, stop: () => {
6431
6431
  k.stop(), I == null || I(), I = void 0;
6432
6432
  } };
6433
- e.animation = O;
6433
+ e.animation = F;
6434
6434
  }, u = (b) => {
6435
6435
  var k;
6436
6436
  if (!e.object)
@@ -6518,7 +6518,7 @@ const so = (i, t, e) => {
6518
6518
  const n = Math.PI, o = n * 2;
6519
6519
  return i = Ls(i), t = Ls(t), e === at.Anticlockwise && i < t && (i += o), e === at.Clockwise && t < i && (t += o), e === at.Loop && t - i > n ? so(i, t, at.Anticlockwise) : e === at.Loop && i - t > n ? so(i, t, at.Clockwise) : { from: i, to: t };
6520
6520
  }, Lb = (i) => {
6521
- const t = {}, e = (l, c, ...u) => F(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
6521
+ const t = {}, e = (l, c, ...u) => H(void 0, [l, c, ...u], function* (s, r, a = { preload: !0 }) {
6522
6522
  return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), s.mode && s.mode !== i.currentMode && (yield i.changeMode(s.mode)), a.preload && s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (yield i.preloadPano(s.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), s.panoIndex === void 0 && s.fov === void 0 && s.latitude === void 0 && s.longitude === void 0 ? !0 : yield new Promise((h, d) => {
6523
6523
  const m = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
6524
6524
  m !== void 0 ? i.moveToPano(
@@ -6546,7 +6546,7 @@ const so = (i, t, e) => {
6546
6546
  };
6547
6547
  return {
6548
6548
  move: e,
6549
- rotate: (l, c, ...u) => F(void 0, [l, c, ...u], function* (s, r, a = {}) {
6549
+ rotate: (l, c, ...u) => H(void 0, [l, c, ...u], function* (s, r, a = {}) {
6550
6550
  t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Ve.Mode.Panorama && (yield i.changeMode(Ve.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m, g) => {
6551
6551
  if (!s.panoIndex) {
6552
6552
  m(!0);
@@ -6758,15 +6758,15 @@ const cf = `<style type="text/css">
6758
6758
  if (!b)
6759
6759
  return !1;
6760
6760
  for (const w in v) {
6761
- const k = v[w], { standingPosition: I } = b.observers[0], C = k.map(({ x: L, z: x, observers: O }) => {
6762
- const W = O.length > 0 ? p.rooms[p.observers[O[0]]].name : "", _ = A[W] ? A[W].floor : null;
6763
- let V = 1 / 0, B = {
6761
+ const k = v[w], { standingPosition: I } = b.observers[0], C = k.map(({ x: L, z: x, observers: F }) => {
6762
+ const _ = F.length > 0 ? p.rooms[p.observers[F[0]]].name : "", O = A[_] ? A[_].floor : null;
6763
+ let V = 1 / 0, z = {
6764
6764
  index: 0,
6765
6765
  x: I.x,
6766
6766
  y: I.y,
6767
6767
  z: I.z
6768
6768
  };
6769
- O.forEach((Y) => {
6769
+ F.forEach((Y) => {
6770
6770
  if (!b.observers[Y])
6771
6771
  return;
6772
6772
  const { standingPosition: ae } = b.observers[Y], he = {
@@ -6775,12 +6775,12 @@ const cf = `<style type="text/css">
6775
6775
  y: ae.y,
6776
6776
  z: ae.z
6777
6777
  }, de = uf({ x: L, z: x }, he);
6778
- _ ? de < V && Math.abs(he.y - _) < 0.3 && (V = de, B = he) : de < V && (V = de, B = he);
6778
+ O ? de < V && Math.abs(he.y - O) < 0.3 && (V = de, z = he) : de < V && (V = de, z = he);
6779
6779
  });
6780
- const R = new q(L, B.y, x);
6781
- Object.assign(R, { observers: O });
6782
- const G = A[W] ? A[W].roof : null, X = G ? new q(L, G, x) : null;
6783
- return X && Object.assign(X, { observers: O }), { origin: R, vertical: X };
6780
+ const R = new q(L, z.y, x);
6781
+ Object.assign(R, { observers: F });
6782
+ const G = A[_] ? A[_].roof : null, X = G ? new q(L, G, x) : null;
6783
+ return X && Object.assign(X, { observers: F }), { origin: R, vertical: X };
6784
6784
  });
6785
6785
  r[w] = {
6786
6786
  origins: C.map((L) => L.origin),
@@ -6789,18 +6789,18 @@ const cf = `<style type="text/css">
6789
6789
  for (const { origin: L, vertical: x } of C) {
6790
6790
  if (!x)
6791
6791
  continue;
6792
- const O = n(w, L.distanceTo(x));
6793
- o.append(O), r[w].rules.push({ vertical: !0, rule: [L, x], $element: O });
6792
+ const F = n(w, L.distanceTo(x));
6793
+ o.append(F), r[w].rules.push({ vertical: !0, rule: [L, x], $element: F });
6794
6794
  }
6795
6795
  for (let L = 0; L < C.length; L++) {
6796
6796
  let x = L + 1;
6797
6797
  x >= C.length && (x = 0);
6798
- const { origin: O } = C[L], { origin: W } = C[x], _ = n(w, O.distanceTo(W));
6799
- o.append(_), r[w].rules.push({ vertical: !1, rule: [O, W], $element: _ });
6798
+ const { origin: F } = C[L], { origin: _ } = C[x], O = n(w, F.distanceTo(_));
6799
+ o.append(O), r[w].rules.push({ vertical: !1, rule: [F, _], $element: O });
6800
6800
  }
6801
6801
  }
6802
6802
  return e.loaded = !0, !0;
6803
- }, l = (p, v, A) => F(void 0, null, function* () {
6803
+ }, l = (p, v, A) => H(void 0, null, function* () {
6804
6804
  const b = p || t.roomInfo, w = v || t.roomRules;
6805
6805
  if (!b || !w)
6806
6806
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
@@ -6834,57 +6834,57 @@ const cf = `<style type="text/css">
6834
6834
  }
6835
6835
  return k.length === 0 ? !1 : k;
6836
6836
  }, u = () => {
6837
- var O;
6838
- const p = (O = i.getElement()) == null ? void 0 : O.parentElement;
6837
+ var F;
6838
+ const p = (F = i.getElement()) == null ? void 0 : F.parentElement;
6839
6839
  if (!p || !e.loaded || Object.keys(r).length <= 0)
6840
6840
  return;
6841
6841
  const { panoIndex: v, camera: A, currentMode: b } = i;
6842
6842
  if (v === void 0)
6843
6843
  return;
6844
6844
  let w;
6845
- for (const W in r)
6846
- W.split(",").indexOf(v.toString()) >= 0 && (w = W);
6845
+ for (const _ in r)
6846
+ _.split(",").indexOf(v.toString()) >= 0 && (w = _);
6847
6847
  if (!w) {
6848
- for (const W in r)
6849
- for (const { $element: _ } of r[W].rules)
6850
- _.style.display = "none";
6848
+ for (const _ in r)
6849
+ for (const { $element: O } of r[_].rules)
6850
+ O.style.display = "none";
6851
6851
  return;
6852
6852
  }
6853
6853
  const k = A.position, I = A.getWorldDirection(new q()), C = p.clientWidth, L = p.clientHeight;
6854
6854
  if (b !== Ve.Mode.Panorama) {
6855
- for (const W in r)
6856
- for (const { $element: _ } of r[W].rules)
6857
- _.style.display = "none";
6855
+ for (const _ in r)
6856
+ for (const { $element: O } of r[_].rules)
6857
+ O.style.display = "none";
6858
6858
  return;
6859
6859
  }
6860
- for (const W in r)
6861
- for (const { $element: _ } of r[W].rules)
6862
- _.style.display = W === w ? "block" : "none";
6863
- const [x] = r[w].origins.slice().filter((W) => W.observers.indexOf(v) >= 0).sort((W, _) => {
6864
- const V = W.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), B = _.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
6865
- return V - B;
6860
+ for (const _ in r)
6861
+ for (const { $element: O } of r[_].rules)
6862
+ O.style.display = _ === w ? "block" : "none";
6863
+ const [x] = r[w].origins.slice().filter((_) => _.observers.indexOf(v) >= 0).sort((_, O) => {
6864
+ const V = _.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), z = O.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
6865
+ return V - z;
6866
6866
  });
6867
- for (const { rule: W, vertical: _, $element: V } of r[w].rules) {
6868
- const [B, R] = W, G = V.querySelector(".PanoRulerPlugin-rule-line");
6867
+ for (const { rule: _, vertical: O, $element: V } of r[w].rules) {
6868
+ const [z, R] = _, G = V.querySelector(".PanoRulerPlugin-rule-line");
6869
6869
  if (!G)
6870
6870
  return;
6871
6871
  if (!x) {
6872
6872
  V.style.display = "none";
6873
6873
  continue;
6874
6874
  }
6875
- if (B !== x && R !== x) {
6875
+ if (z !== x && R !== x) {
6876
6876
  V.style.display = "none";
6877
6877
  continue;
6878
6878
  }
6879
- if (B.distanceTo(R) < 0.3) {
6879
+ if (z.distanceTo(R) < 0.3) {
6880
6880
  V.style.display = "none";
6881
6881
  continue;
6882
6882
  }
6883
- if (B.observers.indexOf(v) === -1 || R.observers.indexOf(v) === -1) {
6883
+ if (z.observers.indexOf(v) === -1 || R.observers.indexOf(v) === -1) {
6884
6884
  V.style.display = "none";
6885
6885
  continue;
6886
6886
  }
6887
- if (B.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
6887
+ if (z.clone().sub(k).normalize().angleTo(I) > Math.PI / 2) {
6888
6888
  V.style.display = "none";
6889
6889
  continue;
6890
6890
  }
@@ -6892,28 +6892,28 @@ const cf = `<style type="text/css">
6892
6892
  V.style.display = "none";
6893
6893
  continue;
6894
6894
  }
6895
- const ee = B.distanceTo(R);
6896
- if (R.clone().sub(R.clone().sub(B).divide(new q(2, 2, 2))).distanceTo(k) / ee > 8) {
6895
+ const ee = z.distanceTo(R);
6896
+ if (R.clone().sub(R.clone().sub(z).divide(new q(2, 2, 2))).distanceTo(k) / ee > 8) {
6897
6897
  V.style.display = "none";
6898
6898
  continue;
6899
6899
  }
6900
- const he = B.clone().project(A), de = (he.x + 1) / 2 * C, pe = (-he.y + 1) / 2 * L, Ce = R.clone().project(A), Ie = (Ce.x + 1) / 2 * C, Me = (-Ce.y + 1) / 2 * L, ce = Math.sqrt(Math.pow(Ie - de, 2) + Math.pow(Me - pe, 2));
6900
+ const he = z.clone().project(A), de = (he.x + 1) / 2 * C, ge = (-he.y + 1) / 2 * L, Ce = R.clone().project(A), Ie = (Ce.x + 1) / 2 * C, Me = (-Ce.y + 1) / 2 * L, ce = Math.sqrt(Math.pow(Ie - de, 2) + Math.pow(Me - ge, 2));
6901
6901
  let Ae = ce, Ee = 50;
6902
- const ue = c({ x: ~~de, y: ~~pe }, {
6902
+ const ue = c({ x: ~~de, y: ~~ge }, {
6903
6903
  x: ~~Ie,
6904
6904
  y: ~~Me
6905
6905
  }, C, L);
6906
- if (ue && ue.length === 1 && (x === B ? (Ae = Math.sqrt(Math.pow(ue[0].x - de, 2) + Math.pow(ue[0].y - pe, 2)), Ee = Ae / ce * 50) : x === R && (Ae = Math.sqrt(Math.pow(ue[0].x - Ie, 2) + Math.pow(ue[0].y - Me, 2)), Ee = 100 - Ae / ce * 50)), ue && ue.length === 2) {
6906
+ if (ue && ue.length === 1 && (x === z ? (Ae = Math.sqrt(Math.pow(ue[0].x - de, 2) + Math.pow(ue[0].y - ge, 2)), Ee = Ae / ce * 50) : x === R && (Ae = Math.sqrt(Math.pow(ue[0].x - Ie, 2) + Math.pow(ue[0].y - Me, 2)), Ee = 100 - Ae / ce * 50)), ue && ue.length === 2) {
6907
6907
  const te = {
6908
6908
  x: (ue[0].x + ue[1].x) / 2,
6909
6909
  y: (ue[0].y + ue[1].y) / 2
6910
6910
  };
6911
6911
  Ee = Math.sqrt(
6912
- Math.pow(te.x - de, 2) + Math.pow(te.y - pe, 2)
6912
+ Math.pow(te.x - de, 2) + Math.pow(te.y - ge, 2)
6913
6913
  ) / ce * 100;
6914
6914
  }
6915
- const rt = (Math.PI / 2 - Math.atan2(Ie - de, pe - Me)) / Math.PI * 180, ye = G.querySelector(".PanoRulerPlugin-rule-label"), et = ye.children[0].clientWidth;
6916
- et >= ce || et / 2 >= Ee / 100 * ce || et / 2 >= (1 - Ee / 100) * ce ? G.style.display = "none" : (G.style.display = "block", G.style.width = ce + "px", G.style.left = de + "px", G.style.top = pe + "px", G.style.transform = `rotate(${-rt}deg)`, ye.style.left = `${Ee}%`);
6915
+ const rt = (Math.PI / 2 - Math.atan2(Ie - de, ge - Me)) / Math.PI * 180, ye = G.querySelector(".PanoRulerPlugin-rule-label"), et = ye.children[0].clientWidth;
6916
+ et >= ce || et / 2 >= Ee / 100 * ce || et / 2 >= (1 - Ee / 100) * ce ? G.style.display = "none" : (G.style.display = "block", G.style.width = ce + "px", G.style.left = de + "px", G.style.top = ge + "px", G.style.transform = `rotate(${-rt}deg)`, ye.style.left = `${Ee}%`);
6917
6917
  }
6918
6918
  }, h = () => gl(u), d = () => {
6919
6919
  var p, v;
@@ -6951,7 +6951,7 @@ function ff(i) {
6951
6951
  n[o] = zs(Ts(i, e, o));
6952
6952
  return {
6953
6953
  c() {
6954
- t = z("div");
6954
+ t = B("div");
6955
6955
  for (let o = 0; o < n.length; o += 1)
6956
6956
  n[o].c();
6957
6957
  y(t, "class", "rule-mixed-line svelte-1h27ktp");
@@ -6983,7 +6983,7 @@ function mf(i) {
6983
6983
  let t, e;
6984
6984
  return {
6985
6985
  c() {
6986
- t = z("em"), y(t, "class", e = Pe(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]);
6986
+ t = B("em"), y(t, "class", e = Pe(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]);
6987
6987
  },
6988
6988
  m(n, o) {
6989
6989
  M(n, t, o);
@@ -7000,7 +7000,7 @@ function zs(i) {
7000
7000
  let t, e, n = `${i[6].width}px`;
7001
7001
  return {
7002
7002
  c() {
7003
- t = z("div"), y(t, "class", e = Pe(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]), T(t, "width", n);
7003
+ t = B("div"), y(t, "class", e = Pe(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), y(t, "style", i[3]), T(t, "width", n);
7004
7004
  },
7005
7005
  m(o, s) {
7006
7006
  M(o, t, s);
@@ -7021,7 +7021,7 @@ function pf(i) {
7021
7021
  let g = m(i), p = g(i);
7022
7022
  return {
7023
7023
  c() {
7024
- t = z("div"), p.c(), e = $(), n = z("div"), o = z("div"), r = ke(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Re(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), T(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), T(t, "width", c), T(t, "left", u), T(t, "top", h), T(t, "transform", d), T(t, "display", i[0].visible && i[2] ? "block" : "none");
7024
+ t = B("div"), p.c(), e = $(), n = B("div"), o = B("div"), r = ke(s), y(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Re(() => i[4].call(o)), y(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), T(n, "left", l), y(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), T(t, "width", c), T(t, "left", u), T(t, "top", h), T(t, "transform", d), T(t, "display", i[0].visible && i[2] ? "block" : "none");
7025
7025
  },
7026
7026
  m(v, A) {
7027
7027
  M(v, t, A), p.m(t, null), j(t, e), j(t, n), j(n, o), j(o, r), a = bi(o, i[4].bind(o));
@@ -7091,7 +7091,7 @@ function vf(i) {
7091
7091
  });
7092
7092
  return {
7093
7093
  c() {
7094
- t = z("div");
7094
+ t = B("div");
7095
7095
  for (let r = 0; r < o.length; r += 1)
7096
7096
  o[r].c();
7097
7097
  },
@@ -7148,64 +7148,64 @@ function bf(i, t, e) {
7148
7148
  }
7149
7149
  return C.length === 0 ? !1 : C;
7150
7150
  }, u = (w, k) => {
7151
- const I = w.clone().project(n.camera), C = (I.x + 1) / 2 * a, L = (-I.y + 1) / 2 * l, x = k.clone().project(n.camera), O = (x.x + 1) / 2 * a, W = (-x.y + 1) / 2 * l, _ = Math.sqrt(Math.pow(O - C, 2) + Math.pow(W - L, 2));
7151
+ const I = w.clone().project(n.camera), C = (I.x + 1) / 2 * a, L = (-I.y + 1) / 2 * l, x = k.clone().project(n.camera), F = (x.x + 1) / 2 * a, _ = (-x.y + 1) / 2 * l, O = Math.sqrt(Math.pow(F - C, 2) + Math.pow(_ - L, 2));
7152
7152
  return {
7153
7153
  startLeft: C,
7154
7154
  startTop: L,
7155
- endLeft: O,
7156
- endTop: W,
7157
- distance: _
7155
+ endLeft: F,
7156
+ endTop: _,
7157
+ distance: O
7158
7158
  };
7159
7159
  }, h = (w, k, I) => {
7160
- const C = n.camera.position, L = n.camera.getWorldDirection(new q()), x = w.clone().sub(C).normalize().angleTo(L), O = k.clone().sub(C).normalize().angleTo(L), W = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(C), { startLeft: B, startTop: R, endLeft: G, endTop: X, distance: H } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(G - B, R - X)) / Math.PI) * 180;
7160
+ const C = n.camera.position, L = n.camera.getWorldDirection(new q()), x = w.clone().sub(C).normalize().angleTo(L), F = k.clone().sub(C).normalize().angleTo(L), _ = w.distanceTo(k), V = k.clone().sub(k.clone().sub(w).divide(new q(2, 2, 2))).distanceTo(C), { startLeft: z, startTop: R, endLeft: G, endTop: X, distance: W } = u(w, k), Y = -((Math.PI / 2 - Math.atan2(G - z, R - X)) / Math.PI) * 180;
7161
7161
  let ae = !0;
7162
- I || (ae = !1), !nt(w, I) && !nt(k, I) && (ae = !1), W < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), O > Math.PI / 2 && (ae = !1), V / W > 8 && (ae = !1);
7163
- let he = 50, de = H;
7164
- const pe = c({ x: ~~B, y: ~~R }, { x: ~~G, y: ~~X });
7165
- if (pe && pe.length === 1 && (nt(w, I) ? (de = Math.sqrt(Math.pow(pe[0].x - B, 2) + Math.pow(pe[0].y - R, 2)), he = de / H * 50) : nt(k, I) && (de = Math.sqrt(Math.pow(pe[0].x - G, 2) + Math.pow(pe[0].y - X, 2)), he = 100 - de / H * 50)), pe && pe.length === 2) {
7162
+ I || (ae = !1), !nt(w, I) && !nt(k, I) && (ae = !1), _ < 0.3 && (ae = !1), x > Math.PI / 2 && (ae = !1), F > Math.PI / 2 && (ae = !1), V / _ > 8 && (ae = !1);
7163
+ let he = 50, de = W;
7164
+ const ge = c({ x: ~~z, y: ~~R }, { x: ~~G, y: ~~X });
7165
+ if (ge && ge.length === 1 && (nt(w, I) ? (de = Math.sqrt(Math.pow(ge[0].x - z, 2) + Math.pow(ge[0].y - R, 2)), he = de / W * 50) : nt(k, I) && (de = Math.sqrt(Math.pow(ge[0].x - G, 2) + Math.pow(ge[0].y - X, 2)), he = 100 - de / W * 50)), ge && ge.length === 2) {
7166
7166
  const Ce = {
7167
- x: (pe[0].x + pe[1].x) / 2,
7168
- y: (pe[0].y + pe[1].y) / 2
7167
+ x: (ge[0].x + ge[1].x) / 2,
7168
+ y: (ge[0].y + ge[1].y) / 2
7169
7169
  };
7170
- he = Math.sqrt(Math.pow(Ce.x - B, 2) + Math.pow(Ce.y - R, 2)) / H * 100;
7170
+ he = Math.sqrt(Math.pow(Ce.x - z, 2) + Math.pow(Ce.y - R, 2)) / W * 100;
7171
7171
  }
7172
7172
  return {
7173
- startLeft: B,
7173
+ startLeft: z,
7174
7174
  startTop: R,
7175
- distance: H,
7175
+ distance: W,
7176
7176
  deg: Y,
7177
7177
  visible: ae,
7178
7178
  labelOffset: he,
7179
- ruleLength: W
7179
+ ruleLength: _
7180
7180
  };
7181
7181
  }, d = () => {
7182
- const w = n.panoIndex, k = o.find((_) => _.panoIndex === w);
7182
+ const w = n.panoIndex, k = o.find((O) => O.panoIndex === w);
7183
7183
  if (!k)
7184
7184
  return e(0, r = []);
7185
7185
  if (n.currentMode !== Ve.Mode.Panorama)
7186
7186
  return e(0, r = []);
7187
- const I = n.camera.position, C = n.camera.getWorldDirection(new q()), L = k.lines.map((_) => new q(_.start[0], -_.start[1], -_.start[2])), x = k.lines.map((_) => new q(_.end[0], -_.end[1], -_.end[2])), [O] = L.concat(x).sort((_, V) => {
7188
- const B = _.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0)), R = V.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0));
7189
- return B - R;
7190
- }), W = k.lines.map((_) => {
7191
- var de, pe;
7192
- const V = _.start, B = _.end, { startLeft: R, startTop: G, distance: X, deg: H, visible: ee, labelOffset: Y, ruleLength: ae } = h(new q(V[0], -V[1], -V[2]), new q(B[0], -B[1], -B[2]), O), he = [];
7193
- return _.children && ((de = _.children) == null ? void 0 : de.length) > 0 && ((pe = _.children) == null || pe.forEach((Ce) => {
7187
+ const I = n.camera.position, C = n.camera.getWorldDirection(new q()), L = k.lines.map((O) => new q(O.start[0], -O.start[1], -O.start[2])), x = k.lines.map((O) => new q(O.end[0], -O.end[1], -O.end[2])), [F] = L.concat(x).sort((O, V) => {
7188
+ const z = O.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0)), R = V.clone().setY(0).sub(I).normalize().angleTo(C.clone().setY(0));
7189
+ return z - R;
7190
+ }), _ = k.lines.map((O) => {
7191
+ var de, ge;
7192
+ const V = O.start, z = O.end, { startLeft: R, startTop: G, distance: X, deg: W, visible: ee, labelOffset: Y, ruleLength: ae } = h(new q(V[0], -V[1], -V[2]), new q(z[0], -z[1], -z[2]), F), he = [];
7193
+ return O.children && ((de = O.children) == null ? void 0 : de.length) > 0 && ((ge = O.children) == null || ge.forEach((Ce) => {
7194
7194
  const Ie = Ce.start, Me = Ce.end, { distance: ce } = u(new q(Ie[0], -Ie[1], -Ie[2]), new q(Me[0], -Me[1], -Me[2]));
7195
7195
  he.push({ width: ce, state: Ce.state });
7196
7196
  })), {
7197
7197
  width: X,
7198
7198
  left: R,
7199
7199
  top: G,
7200
- rotateDeg: H,
7201
- state: _.state,
7200
+ rotateDeg: W,
7201
+ state: O.state,
7202
7202
  children: he,
7203
7203
  labelOffset: Y,
7204
7204
  visible: ee,
7205
7205
  labelElement: s.distanceText(ae)
7206
7206
  };
7207
7207
  });
7208
- e(0, r = W);
7208
+ e(0, r = _);
7209
7209
  }, m = () => Ii(d), g = Io(d, 80);
7210
7210
  return Ke(() => {
7211
7211
  d(), n.on("panoArrived", d), n.on("modeChange", d), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => g()), n.on("pinchGesture", () => g());
@@ -7238,13 +7238,13 @@ class wf {
7238
7238
  this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
7239
7239
  "style",
7240
7240
  "position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
7241
- ), e && (e.data && this.load(e.data), this.state.options = Q(Q({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => F(this, null, function* () {
7241
+ ), e && (e.data && this.load(e.data), this.state.options = Q(Q({}, this.state.options), e.options || {}), (n = e.options) != null && n.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => H(this, null, function* () {
7242
7242
  var s, r;
7243
7243
  (r = (s = this.five.getElement()) == null ? void 0 : s.parentNode) == null || r.append(this.container);
7244
7244
  })), this.five.once("dispose", () => this.dispose());
7245
7245
  }
7246
7246
  load(t) {
7247
- return F(this, null, function* () {
7247
+ return H(this, null, function* () {
7248
7248
  if (!this.five.work)
7249
7249
  return;
7250
7250
  const e = t.data;
@@ -7260,7 +7260,7 @@ class wf {
7260
7260
  return this.state.enabled && (this.state.enabled = !1, this.render()), !0;
7261
7261
  }
7262
7262
  render() {
7263
- return F(this, null, function* () {
7263
+ return H(this, null, function* () {
7264
7264
  var t;
7265
7265
  if (this.state.enabled) {
7266
7266
  if (!this.panoRulerProData || !this.container)
@@ -7304,7 +7304,7 @@ function Cf() {
7304
7304
  }
7305
7305
  const Pf = new E.TextureLoader();
7306
7306
  function ro(i) {
7307
- return F(this, null, function* () {
7307
+ return H(this, null, function* () {
7308
7308
  return new Promise((t, e) => {
7309
7309
  Pf.load(i, t, void 0, e);
7310
7310
  }).then((t) => (t.encoding = E.sRGBEncoding, t.minFilter = E.LinearFilter, t.wrapS = E.ClampToEdgeWrapping, t.wrapT = E.ClampToEdgeWrapping, setTimeout(() => {
@@ -7444,7 +7444,7 @@ class If extends zt {
7444
7444
  }), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", n)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", n)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", n)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", n)), e.config && this.init();
7445
7445
  }
7446
7446
  load(e, n, o = !0) {
7447
- return F(this, null, function* () {
7447
+ return H(this, null, function* () {
7448
7448
  const s = yield this.formatData(e);
7449
7449
  JSON.stringify(this.data) !== JSON.stringify(s) && (this.hooks.emit("dataChange", s, this.data), this.data = Q({}, s), this.init(), n && this.setState(n, { userAction: o }), this.hooks.emit("dataLoaded", this.data));
7450
7450
  });
@@ -7453,7 +7453,7 @@ class If extends zt {
7453
7453
  return e.version && e.data ? Promise.resolve(e.data) : Promise.resolve(e);
7454
7454
  }
7455
7455
  init() {
7456
- return F(this, null, function* () {
7456
+ return H(this, null, function* () {
7457
7457
  var o, s, r, a;
7458
7458
  const e = (s = (o = this.data) == null ? void 0 : o.north_rad) != null ? s : null;
7459
7459
  this._clearCompassIfNeed(), e !== null && (this.compassMesh = yield this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
@@ -7462,7 +7462,7 @@ class If extends zt {
7462
7462
  });
7463
7463
  }
7464
7464
  loadCompassMesh() {
7465
- return F(this, null, function* () {
7465
+ return H(this, null, function* () {
7466
7466
  const e = this.state.config.compassImageUrl, n = yield ro(e), o = new E.CircleGeometry(0.7, 32), s = new E.MeshBasicMaterial({
7467
7467
  map: n,
7468
7468
  transparent: !0,
@@ -7473,7 +7473,7 @@ class If extends zt {
7473
7473
  });
7474
7474
  }
7475
7475
  loadEntryDoorMesh() {
7476
- return F(this, null, function* () {
7476
+ return H(this, null, function* () {
7477
7477
  const e = this.state.config.entryDoorImageUrl, n = yield ro(e), o = new E.PlaneGeometry(0.2, 0.16), s = new E.MeshBasicMaterial({
7478
7478
  map: n,
7479
7479
  transparent: !0,
@@ -7864,13 +7864,13 @@ function Wf(i) {
7864
7864
  const w = b.clientWidth, k = b.clientHeight, I = w / 2, C = k / 2;
7865
7865
  if (e.points.length < 2)
7866
7866
  return;
7867
- const [L, x] = e.points, O = L.position.clone().project(A.camera), W = x.position.clone().project(A.camera), _ = O.clone().lerp(W, 0.5), V = new Ne(O.x * I, O.y * C), B = new Ne(W.x * I, W.y * C), R = V.distanceTo(B);
7868
- if ((() => !(Math.abs(O.z) > 1 || Math.abs(W.z) > 1 || !Qi(O) && !Qi(W) || !Qi(_) || R === 0))() === !1) {
7867
+ const [L, x] = e.points, F = L.position.clone().project(A.camera), _ = x.position.clone().project(A.camera), O = F.clone().lerp(_, 0.5), V = new Ne(F.x * I, F.y * C), z = new Ne(_.x * I, _.y * C), R = V.distanceTo(z);
7868
+ if ((() => !(Math.abs(F.z) > 1 || Math.abs(_.z) > 1 || !Qi(F) && !Qi(_) || !Qi(O) || R === 0))() === !1) {
7869
7869
  s.style.opacity = "0", s.style.pointerEvents = "none";
7870
7870
  return;
7871
7871
  }
7872
- const X = (_.x + 1) / 2 * w, H = -(_.y - 1) / 2 * k, Y = -(Math.atan((V.y - B.y) / (V.x - B.x)) * 180) / Math.PI, ae = s.parentElement && o.clientWidth > R ? -20 : 0;
7873
- s.style.transform = `translate(${X}px, ${H}px) rotate(${Y}deg) translateY(${ae}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
7872
+ const X = (O.x + 1) / 2 * w, W = -(O.y - 1) / 2 * k, Y = -(Math.atan((V.y - z.y) / (V.x - z.x)) * 180) / Math.PI, ae = s.parentElement && o.clientWidth > R ? -20 : 0;
7873
+ s.style.transform = `translate(${X}px, ${W}px) rotate(${Y}deg) translateY(${ae}px)`, s.style.opacity = "1", s.style.pointerEvents = t ? "all" : "none", r && r.update({ line: e, polyline: e.getPolyline() });
7874
7874
  const he = p();
7875
7875
  o.innerText = he;
7876
7876
  }
@@ -7881,10 +7881,10 @@ function Wf(i) {
7881
7881
  o.removeEventListener("click", c), s.remove();
7882
7882
  }
7883
7883
  function p() {
7884
- var L, x, O;
7884
+ var L, x, F;
7885
7885
  if (e.points.length < 2)
7886
7886
  return "";
7887
- const [A, b] = e.points, w = A.position.clone().distanceTo(b.position), k = (L = i.line.text) != null ? L : i.line.model.config.defaultText, I = (O = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : O.call(x, w), C = k != null ? k : I;
7887
+ const [A, b] = e.points, w = A.position.clone().distanceTo(b.position), k = (L = i.line.text) != null ? L : i.line.model.config.defaultText, I = (F = (x = i.line.model.config) == null ? void 0 : x.getDistanceText) == null ? void 0 : F.call(x, w), C = k != null ? k : I;
7888
7888
  return C != null ? C : w.toFixed(2) + "m";
7889
7889
  }
7890
7890
  function v(A) {
@@ -9435,10 +9435,10 @@ function Gs(i) {
9435
9435
  }
9436
9436
  return {
9437
9437
  c() {
9438
- t = z("i"), y(t, "class", "svelte-19zi46m"), U(t, "PanoSpatialTagPlugin__tag-origin", !0), U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), T(t, "top", e), T(t, "left", n), T(t, "visibility", i[3].front ? "visible" : "hidden");
9438
+ t = B("i"), y(t, "class", "svelte-19zi46m"), U(t, "PanoSpatialTagPlugin__tag-origin", !0), U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), T(t, "top", e), T(t, "left", n), T(t, "visibility", i[3].front ? "visible" : "hidden");
9439
9439
  },
9440
9440
  m(a, l) {
9441
- M(a, t, l), o || (s = ge(t, "click", r), o = !0);
9441
+ M(a, t, l), o || (s = me(t, "click", r), o = !0);
9442
9442
  },
9443
9443
  p(a, l) {
9444
9444
  i = a, l & 1 && U(t, "PanoSpatialTagPlugin__tag-origin-destroy", i[3].destroying), l & 1 && e !== (e = `${i[3].top}%`) && T(t, "top", e), l & 1 && n !== (n = `${i[3].left}%`) && T(t, "left", n), l & 1 && T(t, "visibility", i[3].front ? "visible" : "hidden");
@@ -9456,7 +9456,7 @@ function Cm(i) {
9456
9456
  c() {
9457
9457
  for (let o = 0; o < n.length; o += 1)
9458
9458
  n[o].c();
9459
- t = me();
9459
+ t = pe();
9460
9460
  },
9461
9461
  m(o, s) {
9462
9462
  for (let r = 0; r < n.length; r += 1)
@@ -9504,10 +9504,10 @@ function xm(i) {
9504
9504
  let t, e, n, o, s, r, a, l, c, u, h, d, m, g, p;
9505
9505
  return {
9506
9506
  c() {
9507
- t = z("div"), e = z("div"), n = $(), o = z("div"), s = z("i"), r = $(), a = z("i"), l = $(), c = z("i"), u = $(), h = z("div"), d = z("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), T(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), T(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(h, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), U(t, "PanoSpatialTagPlugin__tag-x", !0), U(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), U(t, "PanoSpatialTagPlugin__tag-show", i[10]), U(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9507
+ t = B("div"), e = B("div"), n = $(), o = B("div"), s = B("i"), r = $(), a = B("i"), l = $(), c = B("i"), u = $(), h = B("div"), d = B("div"), y(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), T(e, "transform", "translate(" + i[7] / 2 * i[3] * 3 + "px, " + i[8] / 2 * (i[1] ? -1 : 1) * i[3] * 3 + "px) scale(" + 1 / i[3] + ")"), y(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), T(s, "width", i[4] + "rem"), y(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), y(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), y(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), y(d, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), y(h, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), T(h, "transform", "scale(" + i[3] * 3 + ")"), y(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), T(t, "height", 20 * i[5] + "rem"), y(t, "class", "svelte-1i5h9zh"), U(t, "PanoSpatialTagPlugin__tag-x", !0), U(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), U(t, "PanoSpatialTagPlugin__tag-show", i[10]), U(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
9508
9508
  },
9509
9509
  m(v, A) {
9510
- M(v, t, A), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, h), j(h, d), d.innerHTML = i[2], i[16](d), g || (p = ge(d, "click", i[11]), g = !0);
9510
+ M(v, t, A), j(t, e), j(t, n), j(t, o), j(o, s), j(o, r), j(o, a), j(o, l), j(o, c), j(t, u), j(t, h), j(h, d), d.innerHTML = i[2], i[16](d), g || (p = me(d, "click", i[11]), g = !0);
9511
9511
  },
9512
9512
  p(v, [A]) {
9513
9513
  A & 394 && T(e, "transform", "translate(" + v[7] / 2 * v[3] * 3 + "px, " + v[8] / 2 * (v[1] ? -1 : 1) * v[3] * 3 + "px) scale(" + 1 / v[3] + ")"), A & 16 && T(s, "width", v[4] + "rem"), A & 4 && (d.innerHTML = v[2]), A & 8 && T(h, "transform", "scale(" + v[3] * 3 + ")"), A & 1 && m !== (m = "PanoSpatialTagPlugin__" + v[0]) && y(t, "id", m), A & 32 && T(t, "height", 20 * v[5] + "rem"), A & 2 && U(t, "PanoSpatialTagPlugin__tag-upside-down", v[1]), A & 1024 && U(t, "PanoSpatialTagPlugin__tag-show", v[10]), A & 1088 && U(t, "PanoSpatialTagPlugin__tag-hide", v[10] === !1 || v[6]);
@@ -9530,17 +9530,17 @@ function Dm(i, t, e) {
9530
9530
  const L = Object.keys(d);
9531
9531
  let x = C.target;
9532
9532
  for (; x; ) {
9533
- const O = x.getAttribute("class");
9534
- if (!O) {
9533
+ const F = x.getAttribute("class");
9534
+ if (!F) {
9535
9535
  x = x.parentNode;
9536
9536
  continue;
9537
9537
  }
9538
- if (O.includes("PanoSpatialTagPlugin__tag-content")) {
9538
+ if (F.includes("PanoSpatialTagPlugin__tag-content")) {
9539
9539
  x = null;
9540
9540
  break;
9541
9541
  }
9542
- L.forEach((W) => {
9543
- O.includes(W) && d[W](n);
9542
+ L.forEach((_) => {
9543
+ F.includes(_) && d[_](n);
9544
9544
  }), x = x.parentNode;
9545
9545
  }
9546
9546
  };
@@ -9757,9 +9757,9 @@ class Bm {
9757
9757
  }
9758
9758
  }
9759
9759
  const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Bb = (i, t) => {
9760
- var Y, ae, he, de, pe, Ce, Ie, Me;
9760
+ var Y, ae, he, de, ge, Ce, Ie, Me;
9761
9761
  let e = t == null ? void 0 : t.container, n = 1.4;
9762
- const o = (Y = t == null ? void 0 : t.wait) != null ? Y : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (he = t == null ? void 0 : t.minRad) != null ? he : Math.PI / 4, a = (de = t == null ? void 0 : t.nearTolerance) != null ? de : 100, l = (pe = t == null ? void 0 : t.upsideHeight) != null ? pe : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (Ie = t == null ? void 0 : t.maxDistance) != null ? Ie : 3.5, h = Tn(i), d = document.createElement("div");
9762
+ const o = (Y = t == null ? void 0 : t.wait) != null ? Y : 200, s = (ae = t == null ? void 0 : t.maxNumberOnScreen) != null ? ae : 3, r = (he = t == null ? void 0 : t.minRad) != null ? he : Math.PI / 4, a = (de = t == null ? void 0 : t.nearTolerance) != null ? de : 100, l = (ge = t == null ? void 0 : t.upsideHeight) != null ? ge : 1.6, c = (Ce = t == null ? void 0 : t.minDistance) != null ? Ce : 1.2, u = (Ie = t == null ? void 0 : t.maxDistance) != null ? Ie : 3.5, h = Tn(i), d = document.createElement("div");
9763
9763
  d.classList.add("PanoSpatialTagPlugin"), Object.assign(d.style, Sm);
9764
9764
  const m = new Ue();
9765
9765
  let g = new Image();
@@ -9946,11 +9946,11 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9946
9946
  weight: (ue = Ae.weight) != null ? ue : -1
9947
9947
  };
9948
9948
  }), ce.render && (p.render = ce.render), ce.template && (p.template = ce.template), ce.events && (p.events = ce.events), ce.enabled === !1 && (p.enabled = ce.enabled), ce.folded === !0 && (p.folded = ce.folded);
9949
- }, O = (ce) => {
9949
+ }, F = (ce) => {
9950
9950
  p.intersectObjects = ce, C();
9951
- }, W = () => {
9952
- p.enabled = !0, C();
9953
9951
  }, _ = () => {
9952
+ p.enabled = !0, C();
9953
+ }, O = () => {
9954
9954
  p.enabled = !1, v.$set({ origins: [] }), p.tags.forEach((ce) => {
9955
9955
  ce.app.$destroy(), ce = null;
9956
9956
  }), p.origins = [], p.tags = [];
@@ -9958,7 +9958,7 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9958
9958
  p.folded = !1, p.tags.forEach((ce) => {
9959
9959
  ce.app.$set({ folded: p.folded });
9960
9960
  });
9961
- }, B = () => {
9961
+ }, z = () => {
9962
9962
  p.folded = !0, p.tags.forEach((ce) => {
9963
9963
  ce.app.$set({ folded: p.folded });
9964
9964
  });
@@ -9972,22 +9972,22 @@ const Fi = 1e-3, Us = 0.01, jm = "https://vrlab-image4.ljcdn.com/release/web/Pan
9972
9972
  });
9973
9973
  }, X = () => {
9974
9974
  i.once("renderFrame", I);
9975
- }, H = () => {
9975
+ }, W = () => {
9976
9976
  e || (e = i.getElement().parentElement), e && e.appendChild(d), p.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", w), i.on("panoArrived", b), i.on("modeChange", k), i.on("cameraUpdate", A);
9977
9977
  }, ee = () => {
9978
9978
  g = null, h.disposeAll(), v.$destroy(), p.tags.forEach((ce) => {
9979
9979
  ce.app.$destroy(), ce = null;
9980
- }), p.origins = [], p.tags = [], i.off("modelLoaded", H), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
9980
+ }), p.origins = [], p.tags = [], i.off("modelLoaded", W), i.off("renderFrame", I), i.off("panoWillArrive", w), i.off("panoArrived", b), i.off("modeChange", k), i.off("cameraUpdate", A), i.off("dispose", ee), window.removeEventListener("resize", X, !1);
9981
9981
  };
9982
- return window.addEventListener("resize", X, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? H() : i.once("modelLoaded", H), i.on("dispose", ee), {
9982
+ return window.addEventListener("resize", X, !1), (Me = i == null ? void 0 : i.model) != null && Me.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", ee), {
9983
9983
  load: x,
9984
- setIntersectObjects: O,
9984
+ setIntersectObjects: F,
9985
9985
  unfoldAll: V,
9986
- foldAll: B,
9986
+ foldAll: z,
9987
9987
  unfold: R,
9988
9988
  fold: G,
9989
- enable: W,
9990
- disable: _,
9989
+ enable: _,
9990
+ disable: O,
9991
9991
  hooks: m,
9992
9992
  dispose: ee
9993
9993
  };
@@ -10002,10 +10002,10 @@ function Om(i) {
10002
10002
  let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, u;
10003
10003
  return {
10004
10004
  c() {
10005
- t = z("div"), e = z("div"), n = z("span"), s = ke(o), r = $(), a = z("div"), y(n, "class", "item-label-item__text svelte-1ir3cyd"), y(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), T(e, "top", `-${i[0].strokeLength + 26}px`), y(a, "class", "item-label-item__bar svelte-1ir3cyd"), T(a, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10005
+ t = B("div"), e = B("div"), n = B("span"), s = ke(o), r = $(), a = B("div"), y(n, "class", "item-label-item__text svelte-1ir3cyd"), y(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), T(e, "top", `-${i[0].strokeLength + 26}px`), y(a, "class", "item-label-item__bar svelte-1ir3cyd"), T(a, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10006
10006
  },
10007
10007
  m(h, d) {
10008
- M(h, t, d), j(t, e), j(e, n), j(n, s), j(t, r), j(t, a), c || (u = ge(n, "click", i[1]), c = !0);
10008
+ M(h, t, d), j(t, e), j(e, n), j(n, s), j(t, r), j(t, a), c || (u = me(n, "click", i[1]), c = !0);
10009
10009
  },
10010
10010
  p(h, [d]) {
10011
10011
  d & 1 && o !== (o = (h[0].name.length > 6 ? `${h[0].name.slice(0, 6)}...` : h[0].name) + "") && Se(s, o), d & 1 && T(e, "top", `-${h[0].strokeLength + 26}px`), d & 1 && T(a, "height", `${h[0].strokeLength}px`), d & 1 && l !== (l = Pe(Oe("item-label-item", { visible: h[0].visible })) + " svelte-1ir3cyd") && y(t, "class", l), d & 1 && T(t, "z-index", h[0].zIndex), d & 1 && T(t, "transform", h[0].transform);
@@ -10057,7 +10057,7 @@ function Js(i, t) {
10057
10057
  key: i,
10058
10058
  first: null,
10059
10059
  c() {
10060
- e = me(), K(n.$$.fragment), this.first = e;
10060
+ e = pe(), K(n.$$.fragment), this.first = e;
10061
10061
  },
10062
10062
  m(s, r) {
10063
10063
  M(s, e, r), J(n, s, r), o = !0;
@@ -10087,7 +10087,7 @@ function Hm(i) {
10087
10087
  }
10088
10088
  return {
10089
10089
  c() {
10090
- t = z("div");
10090
+ t = B("div");
10091
10091
  for (let l = 0; l < e.length; l += 1)
10092
10092
  e[l].c();
10093
10093
  y(t, "class", "item-labels-container svelte-gk8s47"), Re(() => i[9].call(t)), T(t, "opacity", i[4] ? 1 : 0);
@@ -10125,79 +10125,79 @@ let Zs = 26, Gm = 11;
10125
10125
  function Wm(i, t, e) {
10126
10126
  const { Raycaster: n, Vector3: o } = E;
10127
10127
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, u = null, h = null, d, m, g = [], p = !0;
10128
- const v = (B, R) => {
10129
- const G = new n(), X = B.camera.position.clone(), H = new o().fromArray(R.modelPosition), ee = H.distanceTo(X);
10130
- G.set(X.clone(), H.clone().sub(X).normalize());
10131
- const [Y] = B.model.intersectRaycaster(G);
10128
+ const v = (z, R) => {
10129
+ const G = new n(), X = z.camera.position.clone(), W = new o().fromArray(R.modelPosition), ee = W.distanceTo(X);
10130
+ G.set(X.clone(), W.clone().sub(X).normalize());
10131
+ const [Y] = z.model.intersectRaycaster(G);
10132
10132
  return !(Y && Y.distance + 1 < ee);
10133
- }, A = (B, R) => {
10134
- const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = B.project2d(G), H = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
10135
- return [H, ee];
10136
- }, b = (B) => `translate(${B[0]}px, ${B[1]}px)`, w = (B, R) => g.length === 0 ? !1 : !!g.find((X) => B[0] >= X[0] - R && B[0] <= X[0] + R || B[1] >= X[1] - Zs && B[1] <= X[1] + Zs);
10137
- function k(B, R) {
10133
+ }, A = (z, R) => {
10134
+ const G = new o(R.modelPosition[0], R.modelPosition[1], R.modelPosition[2]), X = z.project2d(G), W = X == null ? void 0 : X.x, ee = X == null ? void 0 : X.y;
10135
+ return [W, ee];
10136
+ }, b = (z) => `translate(${z[0]}px, ${z[1]}px)`, w = (z, R) => g.length === 0 ? !1 : !!g.find((X) => z[0] >= X[0] - R && z[0] <= X[0] + R || z[1] >= X[1] - Zs && z[1] <= X[1] + Zs);
10137
+ function k(z, R) {
10138
10138
  switch (R) {
10139
10139
  case Rt.SMALL:
10140
- return Math.ceil(-27.78 * B + 85);
10140
+ return Math.ceil(-27.78 * z + 85);
10141
10141
  case Rt.MIDLLE:
10142
- return Math.ceil(-38.9 * B + 130);
10142
+ return Math.ceil(-38.9 * z + 130);
10143
10143
  case Rt.LARGE:
10144
- return Math.ceil(-44.44 * B + 140);
10144
+ return Math.ceil(-44.44 * z + 140);
10145
10145
  case Rt.EXTRA_LARGE:
10146
- return Math.ceil(-92.59 * B + 300);
10146
+ return Math.ceil(-92.59 * z + 300);
10147
10147
  }
10148
10148
  }
10149
- const I = (B, R) => {
10150
- const G = R.map((H) => {
10151
- const ee = A(B, H), Y = H.name.length * Gm, ae = k(H.modelPosition[1], c), de = (r ? v(B, H) : !0) && !w([ee[0], ee[1] + ae], Y);
10149
+ const I = (z, R) => {
10150
+ const G = R.map((W) => {
10151
+ const ee = A(z, W), Y = W.name.length * Gm, ae = k(W.modelPosition[1], c), de = (r ? v(z, W) : !0) && !w([ee[0], ee[1] + ae], Y);
10152
10152
  if (!de)
10153
- return fe(Q({}, H), { visible: de });
10153
+ return fe(Q({}, W), { visible: de });
10154
10154
  g.push(ee);
10155
- const pe = b(ee);
10156
- return fe(Q({}, H), {
10155
+ const ge = b(ee);
10156
+ return fe(Q({}, W), {
10157
10157
  visible: de,
10158
- transform: pe,
10158
+ transform: ge,
10159
10159
  strokeLength: ae
10160
10160
  });
10161
- }), X = G.filter(({ visible: H }) => H).map((H) => ({
10162
- itemLabelItem: H,
10163
- distance: new o(H.modelPosition[0], H.modelPosition[1], H.modelPosition[2]).clone().distanceTo(B.camera.position)
10164
- })).sort((H, ee) => H.distance - ee.distance);
10165
- return G.map((H) => {
10166
- const ee = X.findIndex((Y) => Y.itemLabelItem.id === H.id);
10167
- return ee !== void 0 ? fe(Q({}, H), { zIndex: ee * 10 }) : H;
10161
+ }), X = G.filter(({ visible: W }) => W).map((W) => ({
10162
+ itemLabelItem: W,
10163
+ distance: new o(W.modelPosition[0], W.modelPosition[1], W.modelPosition[2]).clone().distanceTo(z.camera.position)
10164
+ })).sort((W, ee) => W.distance - ee.distance);
10165
+ return G.map((W) => {
10166
+ const ee = X.findIndex((Y) => Y.itemLabelItem.id === W.id);
10167
+ return ee !== void 0 ? fe(Q({}, W), { zIndex: ee * 10 }) : W;
10168
10168
  });
10169
10169
  }, C = () => {
10170
10170
  g = [], e(1, h = I(s, h));
10171
10171
  };
10172
10172
  Wa(() => {
10173
- W();
10173
+ _();
10174
10174
  });
10175
10175
  const L = () => {
10176
10176
  e(4, p = !1), x();
10177
10177
  };
10178
10178
  Ke(() => {
10179
- e(1, h = a), u = a, C(), O(), s.on("cameraUpdate", L);
10179
+ e(1, h = a), u = a, C(), F(), s.on("cameraUpdate", L);
10180
10180
  });
10181
10181
  const x = Dl(
10182
10182
  () => {
10183
10183
  e(4, p = !0), C();
10184
10184
  },
10185
10185
  300
10186
- ), O = () => {
10187
- window.addEventListener("resize", _, !1);
10188
- }, W = () => {
10189
- u !== a && (e(1, h = a), u = a, C());
10186
+ ), F = () => {
10187
+ window.addEventListener("resize", O, !1);
10190
10188
  }, _ = () => {
10189
+ u !== a && (e(1, h = a), u = a, C());
10190
+ }, O = () => {
10191
10191
  s.once("renderFrame", C);
10192
10192
  };
10193
10193
  Pt(() => {
10194
- s.off("cameraUpdate", L), window.removeEventListener("resize", _, !1);
10194
+ s.off("cameraUpdate", L), window.removeEventListener("resize", O, !1);
10195
10195
  });
10196
10196
  function V() {
10197
10197
  d = this.clientWidth, m = this.clientHeight, e(2, d), e(3, m);
10198
10198
  }
10199
- return i.$$set = (B) => {
10200
- "five" in B && e(5, s = B.five), "modelOcclusionEnable" in B && e(6, r = B.modelOcclusionEnable), "itemLabels" in B && e(7, a = B.itemLabels), "hooks" in B && e(0, l = B.hooks), "displayStrategyType" in B && e(8, c = B.displayStrategyType);
10199
+ return i.$$set = (z) => {
10200
+ "five" in z && e(5, s = z.five), "modelOcclusionEnable" in z && e(6, r = z.modelOcclusionEnable), "itemLabels" in z && e(7, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(8, c = z.displayStrategyType);
10201
10201
  }, [
10202
10202
  l,
10203
10203
  h,
@@ -10369,49 +10369,49 @@ const Ob = (i, { videoElement: t }) => {
10369
10369
  }, c = () => e.rectPoints.map((A, b) => {
10370
10370
  const w = new E.BufferGeometry(), k = 128, I = [];
10371
10371
  I.push(...A[0].toArray());
10372
- for (let B = 1; B < k; B++)
10372
+ for (let z = 1; z < k; z++)
10373
10373
  I.push(
10374
- A[0].x + (A[1].x - A[0].x) * B / k,
10375
- A[0].y + (A[1].y - A[0].y) * B / k,
10376
- A[0].z + (A[1].z - A[0].z) * B / k
10374
+ A[0].x + (A[1].x - A[0].x) * z / k,
10375
+ A[0].y + (A[1].y - A[0].y) * z / k,
10376
+ A[0].z + (A[1].z - A[0].z) * z / k
10377
10377
  );
10378
10378
  I.push(...A[1].toArray()), I.push(...A[2].toArray());
10379
- for (let B = 1; B < k; B++)
10379
+ for (let z = 1; z < k; z++)
10380
10380
  I.push(
10381
- A[2].x + (A[3].x - A[2].x) * B / k,
10382
- A[2].y + (A[3].y - A[2].y) * B / k,
10383
- A[2].z + (A[3].z - A[2].z) * B / k
10381
+ A[2].x + (A[3].x - A[2].x) * z / k,
10382
+ A[2].y + (A[3].y - A[2].y) * z / k,
10383
+ A[2].z + (A[3].z - A[2].z) * z / k
10384
10384
  );
10385
10385
  I.push(...A[3].toArray());
10386
10386
  const C = [];
10387
10387
  C.push(0, 1);
10388
- for (let B = 1; B < k; B++)
10389
- C.push(0, 1 - B / k);
10388
+ for (let z = 1; z < k; z++)
10389
+ C.push(0, 1 - z / k);
10390
10390
  C.push(0, 0), C.push(1, 0);
10391
- for (let B = 1; B < k; B++)
10392
- C.push(1, B / k);
10391
+ for (let z = 1; z < k; z++)
10392
+ C.push(1, z / k);
10393
10393
  C.push(1, 1);
10394
10394
  const L = [];
10395
- for (let B = 0; B < k; B++)
10396
- L.push(B, B + 1, k * 2 - B, B, k * 2 - B, k * 2 + 1 - B);
10395
+ for (let z = 0; z < k; z++)
10396
+ L.push(z, z + 1, k * 2 - z, z, k * 2 - z, k * 2 + 1 - z);
10397
10397
  w.setAttribute("position", new E.BufferAttribute(new Float32Array(I), 3)), w.setAttribute("uv", new E.BufferAttribute(new Float32Array(C), 2)), w.setIndex(new E.BufferAttribute(new Uint32Array(L), 1));
10398
10398
  const x = new E.AxesHelper(10);
10399
10399
  i.scene.add(x);
10400
- const O = new E.MeshBasicMaterial({
10400
+ const F = new E.MeshBasicMaterial({
10401
10401
  map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
10402
10402
  side: E.DoubleSide
10403
- }), W = new E.Mesh(w, O);
10404
- W.renderOrder = 1, W.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
10405
- const _ = [A[1], A[2], A[3], A[0]], V = n.create3DDomContainer(_);
10403
+ }), _ = new E.Mesh(w, F);
10404
+ _.renderOrder = 1, _.name = `ModelTVVideoPlugin-${b}-${performance.now()}`;
10405
+ const O = [A[1], A[2], A[3], A[0]], V = n.create3DDomContainer(O);
10406
10406
  if (V != null && V.container) {
10407
- const B = document.createElement("div");
10408
- B.classList.add("play-icon"), B.style.width = "100%", B.style.height = "100%", B.style.display = "flex", B.style.justifyContent = "center", B.style.alignItems = "center", B.style.pointerEvents = "none", V.container.appendChild(B);
10407
+ const z = document.createElement("div");
10408
+ z.classList.add("play-icon"), z.style.width = "100%", z.style.height = "100%", z.style.display = "flex", z.style.justifyContent = "center", z.style.alignItems = "center", z.style.pointerEvents = "none", V.container.appendChild(z);
10409
10409
  const R = document.createElement("img");
10410
10410
  R.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", R.style.width = "200px", R.style.pointerEvents = "auto", R.onclick = () => {
10411
10411
  e.videoTexture.image.muted = !1, e.videoTexture.image.play();
10412
- }, B.appendChild(R), o.set(W, V);
10412
+ }, z.appendChild(R), o.set(_, V);
10413
10413
  }
10414
- return W;
10414
+ return _;
10415
10415
  }), u = (A) => {
10416
10416
  const b = new E.TextureLoader().load(A);
10417
10417
  return b.minFilter = E.LinearFilter, b.magFilter = E.LinearFilter, b.format = E.RGBFormat, b;
@@ -10427,9 +10427,9 @@ const Ob = (i, { videoElement: t }) => {
10427
10427
  } else
10428
10428
  k(new Error("Video download Error: " + I.status));
10429
10429
  }, I.onerror = (C) => k(C), I.open("GET", A), I.responseType = "blob", I.send();
10430
- }), d = (A, b) => F(void 0, null, function* () {
10430
+ }), d = (A, b) => H(void 0, null, function* () {
10431
10431
  const { video_src: w, video_poster_src: k, points: I } = A;
10432
- e.videoSource = w, e.rectPoints = Xm(I).map((C) => C.map(({ x: L, y: x, z: O }) => new E.Vector3(L, x, O))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
10432
+ e.videoSource = w, e.rectPoints = Xm(I).map((C) => C.map(({ x: L, y: x, z: F }) => new E.Vector3(L, x, F))), e.imageTexture = u(k), b && (e.videoElement = b), e.videoTexture = yield h(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
10433
10433
  }), m = (A) => {
10434
10434
  if (!e.enabled)
10435
10435
  return;
@@ -10443,14 +10443,14 @@ const Ob = (i, { videoElement: t }) => {
10443
10443
  return;
10444
10444
  const A = i.camera.position;
10445
10445
  if (o.forEach((b, w) => {
10446
- const k = b.css3DObject.position.clone(), I = k.clone().sub(A).normalize(), C = new E.Raycaster(A, I), L = i.model.intersectRaycaster(C)[0], x = k.distanceTo(A), O = 0.01;
10447
- L && L.distance + O < x ? b.hide() : b.show();
10446
+ const k = b.css3DObject.position.clone(), I = k.clone().sub(A).normalize(), C = new E.Raycaster(A, I), L = i.model.intersectRaycaster(C)[0], x = k.distanceTo(A), F = 0.01;
10447
+ L && L.distance + F < x ? b.hide() : b.show();
10448
10448
  }), !r()) {
10449
10449
  const b = e.rectPoints.find((w) => {
10450
10450
  const k = w[0].clone().add(w[1]).add(w[2]).add(w[3]).divideScalar(4);
10451
10451
  return w.map((I) => I.clone().add(k).divideScalar(2)).filter((I) => {
10452
- const C = I.distanceTo(A), L = new E.Raycaster(A, I.clone().sub(A).normalize()), x = i.model.intersectRaycaster(L)[0], O = 0.01;
10453
- return !(x && x.distance + O < C);
10452
+ const C = I.distanceTo(A), L = new E.Raycaster(A, I.clone().sub(A).normalize()), x = i.model.intersectRaycaster(L)[0], F = 0.01;
10453
+ return !(x && x.distance + F < C);
10454
10454
  }).length >= 2;
10455
10455
  });
10456
10456
  (!b || b.length === 0) && s(!0);
@@ -10477,7 +10477,7 @@ function Um(i) {
10477
10477
  let t, e, n, o = (i[0].code || i[0].id) + "", s, r, a, l = i[0].name + "", c, u = i[0].icon && Ks(i);
10478
10478
  return {
10479
10479
  c() {
10480
- u && u.c(), t = $(), e = z("div"), n = z("span"), s = ke(o), r = $(), a = z("span"), c = ke(l), y(n, "class", "item-model svelte-gduhqw"), y(a, "class", "item-name svelte-gduhqw"), y(e, "class", "item-label-text svelte-gduhqw");
10480
+ u && u.c(), t = $(), e = B("div"), n = B("span"), s = ke(o), r = $(), a = B("span"), c = ke(l), y(n, "class", "item-model svelte-gduhqw"), y(a, "class", "item-name svelte-gduhqw"), y(e, "class", "item-label-text svelte-gduhqw");
10481
10481
  },
10482
10482
  m(h, d) {
10483
10483
  u && u.m(h, d), M(h, t, d), M(h, e, d), j(e, n), j(n, s), j(e, r), j(e, a), j(a, c);
@@ -10494,7 +10494,7 @@ function qm(i) {
10494
10494
  let t;
10495
10495
  return {
10496
10496
  c() {
10497
- t = z("div");
10497
+ t = B("div");
10498
10498
  },
10499
10499
  m(e, n) {
10500
10500
  M(e, t, n), i[6](t);
@@ -10509,10 +10509,10 @@ function Ks(i) {
10509
10509
  let t, e, n, o, s;
10510
10510
  return {
10511
10511
  c() {
10512
- t = z("div"), e = z("div"), y(e, "class", "icon svelte-gduhqw"), y(e, "style", n = `background-image: url(${i[0].icon})`), y(t, "class", "icon-wrap svelte-gduhqw");
10512
+ t = B("div"), e = B("div"), y(e, "class", "icon svelte-gduhqw"), y(e, "style", n = `background-image: url(${i[0].icon})`), y(t, "class", "icon-wrap svelte-gduhqw");
10513
10513
  },
10514
10514
  m(r, a) {
10515
- M(r, t, a), j(t, e), o || (s = ge(t, "click", i[7]), o = !0);
10515
+ M(r, t, a), j(t, e), o || (s = me(t, "click", i[7]), o = !0);
10516
10516
  },
10517
10517
  p(r, a) {
10518
10518
  a & 1 && n !== (n = `background-image: url(${r[0].icon})`) && y(e, "style", n);
@@ -10530,12 +10530,12 @@ function Jm(i) {
10530
10530
  let d = h(i, -1), m = d(i);
10531
10531
  return {
10532
10532
  c() {
10533
- t = z("div"), e = z("div"), m.c(), s = $(), r = z("div"), y(e, "class", o = Pe(Oe("item-label-item__text-wrap", {
10533
+ t = B("div"), e = B("div"), m.c(), s = $(), r = B("div"), y(e, "class", o = Pe(Oe("item-label-item__text-wrap", {
10534
10534
  "item-label-item__custom": Boolean(typeof i[0].render == "function")
10535
10535
  })) + " svelte-gduhqw"), T(e, "bottom", `${i[0].strokeLength}px`), y(r, "class", a = Pe(Oe("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), T(r, "height", `${i[0].strokeLength}px`), y(t, "class", l = Pe(Oe("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), T(t, "z-index", i[0].zIndex), T(t, "transform", i[0].transform);
10536
10536
  },
10537
10537
  m(g, p) {
10538
- M(g, t, p), j(t, e), m.m(e, null), j(t, s), j(t, r), c || (u = ge(e, "click", i[4]), c = !0);
10538
+ M(g, t, p), j(t, e), m.m(e, null), j(t, s), j(t, r), c || (u = me(e, "click", i[4]), c = !0);
10539
10539
  },
10540
10540
  p(g, [p]) {
10541
10541
  d === (d = h(g, p)) && m ? m.p(g, p) : (m.d(1), m = d(g), m && (m.c(), m.m(e, null))), p & 1 && o !== (o = Pe(Oe("item-label-item__text-wrap", {
@@ -10667,7 +10667,7 @@ function ir(i, t) {
10667
10667
  key: i,
10668
10668
  first: null,
10669
10669
  c() {
10670
- e = me(), s && s.c(), n = me(), this.first = e;
10670
+ e = pe(), s && s.c(), n = pe(), this.first = e;
10671
10671
  },
10672
10672
  m(r, a) {
10673
10673
  M(r, e, a), s && s.m(r, a), M(r, n, a), o = !0;
@@ -10697,7 +10697,7 @@ function ip(i) {
10697
10697
  }
10698
10698
  return {
10699
10699
  c() {
10700
- t = z("div");
10700
+ t = B("div");
10701
10701
  for (let l = 0; l < e.length; l += 1)
10702
10702
  e[l].c();
10703
10703
  y(t, "class", "item-labels-container svelte-gk8s47"), Re(() => i[12].call(t)), T(t, "opacity", i[5] ? 1 : 0);
@@ -10736,21 +10736,21 @@ function sp(i, t, e) {
10736
10736
  const { Raycaster: n, Vector3: o } = E;
10737
10737
  let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: u } = t, h = null, d = null, m = (s == null ? void 0 : s.currentMode) === Ve.Mode.Panorama, g, p, v = [], A = !0;
10738
10738
  const b = (G, X) => {
10739
- const H = G.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(H);
10740
- return u !== void 0 && G.state.mode === Ve.Mode.Panorama && Y > u ? !1 : $s(G, ee.clone().sub(H).normalize(), H, Y);
10739
+ const W = G.camera.position.clone(), ee = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), Y = ee.distanceTo(W);
10740
+ return u !== void 0 && G.state.mode === Ve.Mode.Panorama && Y > u ? !1 : $s(G, ee.clone().sub(W).normalize(), W, Y);
10741
10741
  }, w = (G) => {
10742
- const { camera: X, model: H } = s, { x: ee, y: Y, z: ae } = G.clone().project(X), he = (ee + 1) / 2, de = (2 - (Y + 1)) / 2, Ie = Math.abs(ae) < 1 && [he, de].every((Me) => Me < 1 && Me >= 0);
10742
+ const { camera: X, model: W } = s, { x: ee, y: Y, z: ae } = G.clone().project(X), he = (ee + 1) / 2, de = (2 - (Y + 1)) / 2, Ie = Math.abs(ae) < 1 && [he, de].every((Me) => Me < 1 && Me >= 0);
10743
10743
  return Boolean(Ie);
10744
10744
  }, k = (G, X) => {
10745
- const H = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), ee = G.project2d(H), Y = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
10745
+ const W = new o(X.modelPosition[0], X.modelPosition[1], X.modelPosition[2]), ee = G.project2d(W), Y = ee == null ? void 0 : ee.x, ae = ee == null ? void 0 : ee.y;
10746
10746
  return [Y, ae];
10747
10747
  }, I = (G, X) => {
10748
- const H = X.map((Y) => {
10748
+ const W = X.map((Y) => {
10749
10749
  if (G.state.panoIndex !== Y.panoIndex)
10750
10750
  return fe(Q({}, Y), { visible: !1 });
10751
10751
  const ae = k(G, Y);
10752
10752
  Y.name.length * op;
10753
- const he = ep(Y.modelPosition[1], c), de = G.currentMode === Ve.Mode.Panorama ? w(new o(Y.position[0], Y.position[1], Y.position[2])) : !0, pe = r ? b(G, Y) : !1, Ce = de && !pe;
10753
+ const he = ep(Y.modelPosition[1], c), de = G.currentMode === Ve.Mode.Panorama ? w(new o(Y.position[0], Y.position[1], Y.position[2])) : !0, ge = r ? b(G, Y) : !1, Ce = de && !ge;
10754
10754
  if (!Ce)
10755
10755
  return fe(Q({}, Y), { visible: Ce });
10756
10756
  v.push(ae);
@@ -10760,11 +10760,11 @@ function sp(i, t, e) {
10760
10760
  transform: Ie,
10761
10761
  strokeLength: he
10762
10762
  });
10763
- }), ee = H.filter(({ visible: Y }) => Y).map((Y) => ({
10763
+ }), ee = W.filter(({ visible: Y }) => Y).map((Y) => ({
10764
10764
  itemLabelItem: Y,
10765
10765
  distance: new o(Y.modelPosition[0], Y.modelPosition[1], Y.modelPosition[2]).clone().distanceTo(G.camera.position)
10766
10766
  })).sort((Y, ae) => Y.distance - ae.distance);
10767
- return H.map((Y) => {
10767
+ return W.map((Y) => {
10768
10768
  const ae = ee.findIndex((he) => he.itemLabelItem.id === Y.id);
10769
10769
  return ae !== void 0 ? fe(Q({}, Y), { zIndex: ae * 10 }) : Y;
10770
10770
  });
@@ -10777,34 +10777,34 @@ function sp(i, t, e) {
10777
10777
  e(5, A = !0), C();
10778
10778
  },
10779
10779
  300
10780
- ), O = () => {
10780
+ ), F = () => {
10781
10781
  s.once("renderFrame", C);
10782
- }, W = () => {
10783
- window.addEventListener("resize", O, !1);
10784
10782
  }, _ = () => {
10783
+ window.addEventListener("resize", F, !1);
10784
+ }, O = () => {
10785
10785
  h !== a && (e(1, d = er(a)), h = a, C());
10786
10786
  }, V = (G, X) => {
10787
- let H = [];
10787
+ let W = [];
10788
10788
  for (let Y = 0; Y < X.length; Y++) {
10789
10789
  const { position: ae, panoIndex: he } = X[Y], de = G.distanceTo(ae);
10790
- (u === void 0 || de <= u || s.state.mode !== Ve.Mode.Panorama) && H.push({ panoIndex: he, obVector: ae, distance: de });
10790
+ (u === void 0 || de <= u || s.state.mode !== Ve.Mode.Panorama) && W.push({ panoIndex: he, obVector: ae, distance: de });
10791
10791
  }
10792
- H = H.sort((Y, ae) => Y.distance - ae.distance);
10792
+ W = W.sort((Y, ae) => Y.distance - ae.distance);
10793
10793
  let ee;
10794
- for (let Y = 0; Y < H.length; Y++) {
10795
- const { obVector: ae, distance: he, panoIndex: de } = H[Y];
10794
+ for (let Y = 0; Y < W.length; Y++) {
10795
+ const { obVector: ae, distance: he, panoIndex: de } = W[Y];
10796
10796
  if (!$s(s, G, ae, he)) {
10797
10797
  ee = de;
10798
10798
  break;
10799
10799
  }
10800
10800
  }
10801
10801
  return typeof ee == "number" ? X[ee] : void 0;
10802
- }, B = (G) => {
10802
+ }, z = (G) => {
10803
10803
  if (s.state.mode === Ve.Mode.Panorama)
10804
10804
  return;
10805
- const X = s.work.observers, H = new o().fromArray(G.position), ee = V(H, X);
10805
+ const X = s.work.observers, W = new o().fromArray(G.position), ee = V(W, X);
10806
10806
  if (ee && (G.observerIndex = ee.panoIndex), typeof G.observerIndex == "number") {
10807
- const Y = X[G.observerIndex], ae = H.clone().sub(Y.position).normalize(), he = {
10807
+ const Y = X[G.observerIndex], ae = W.clone().sub(Y.position).normalize(), he = {
10808
10808
  longitude: Math.PI + Math.atan2(ae.x, ae.z),
10809
10809
  latitude: Math.acos(ae.y / ae.length()) - Math.PI / 2
10810
10810
  };
@@ -10821,11 +10821,11 @@ function sp(i, t, e) {
10821
10821
  }
10822
10822
  };
10823
10823
  Wa(() => {
10824
- _();
10824
+ O();
10825
10825
  }), Ke(() => {
10826
- e(1, d = er(a)), h = a, C(), W(), s.on("cameraUpdate", L);
10826
+ e(1, d = er(a)), h = a, C(), _(), s.on("cameraUpdate", L);
10827
10827
  }), Pt(() => {
10828
- s.off("cameraUpdate", L), window.removeEventListener("resize", O, !1);
10828
+ s.off("cameraUpdate", L), window.removeEventListener("resize", F, !1);
10829
10829
  });
10830
10830
  function R() {
10831
10831
  g = this.clientWidth, p = this.clientHeight, e(3, g), e(4, p);
@@ -10839,7 +10839,7 @@ function sp(i, t, e) {
10839
10839
  g,
10840
10840
  p,
10841
10841
  A,
10842
- B,
10842
+ z,
10843
10843
  s,
10844
10844
  r,
10845
10845
  a,
@@ -11000,10 +11000,10 @@ function dp(i) {
11000
11000
  let t, e, n, o, s, r, a, l;
11001
11001
  return {
11002
11002
  c() {
11003
- t = z("div"), e = z("div"), n = z("span"), n.textContent = `${i[8]}`, o = $(), s = z("i"), y(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), y(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), y(e, "class", r = Pe(Oe("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), y(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), y(e, "data-camera-toward", i[7]), y(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), y(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
11003
+ t = B("div"), e = B("div"), n = B("span"), n.textContent = `${i[8]}`, o = $(), s = B("i"), y(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), y(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), y(e, "class", r = Pe(Oe("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), y(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), y(e, "data-camera-toward", i[7]), y(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), y(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
11004
11004
  },
11005
11005
  m(c, u) {
11006
- M(c, t, u), j(t, e), j(e, n), j(e, o), j(e, s), i[10](t), a || (l = ge(e, "click", i[9]), a = !0);
11006
+ M(c, t, u), j(t, e), j(e, n), j(e, o), j(e, s), i[10](t), a || (l = me(e, "click", i[9]), a = !0);
11007
11007
  },
11008
11008
  p(c, [u]) {
11009
11009
  u & 1 && r !== (r = Pe(Oe("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && y(e, "class", r);
@@ -11142,29 +11142,29 @@ class bp extends cp {
11142
11142
  const o = this.five.getElement(), s = o.clientWidth, r = o.clientHeight, a = n.getWorldDirection(new q()), l = [], c = [...this.labelItems];
11143
11143
  if (c.forEach((C, L) => {
11144
11144
  if (C.visible) {
11145
- const x = n.position.distanceTo(C.position), O = C.position.clone().add(new q(0, this.OffsetHeight, 0)), _ = O.clone().sub(n.position).normalize().angleTo(a), V = O.clone().project(n), B = (V.x + 1) / 2.2 * 100, R = (-V.y + 1) / 2.2 * 100, G = B >= 0 && B <= 100 && R >= 0 && R <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
11146
- C.left = B, C.top = R, C.inSight = G && _ < Math.PI / 2, C.cameraToward = pp(this.five), G ? l.push({ disFromCameraToLabel: x, left: B, top: R, index: L }) : C.transform = "translate(-50%, -50%)";
11145
+ const x = n.position.distanceTo(C.position), F = C.position.clone().add(new q(0, this.OffsetHeight, 0)), O = F.clone().sub(n.position).normalize().angleTo(a), V = F.clone().project(n), z = (V.x + 1) / 2.2 * 100, R = (-V.y + 1) / 2.2 * 100, G = z >= 0 && z <= 100 && R >= 0 && R <= 100 && x > this.MinVisibledistance && x <= this.MaxVisibledistance;
11146
+ C.left = z, C.top = R, C.inSight = G && O < Math.PI / 2, C.cameraToward = pp(this.five), G ? l.push({ disFromCameraToLabel: x, left: z, top: R, index: L }) : C.transform = "translate(-50%, -50%)";
11147
11147
  } else
11148
11148
  C.inSight = !1;
11149
11149
  }), l.length > 1) {
11150
11150
  let C = 0;
11151
11151
  l.sort((L, x) => x.disFromCameraToLabel - L.disFromCameraToLabel);
11152
11152
  for (let L = 1; L < l.length; L++) {
11153
- const { index: x, left: O, top: W } = l[L - 1], { index: _, left: V, top: B } = l[L], R = this.container.children[x], G = this.container.children[_];
11153
+ const { index: x, left: F, top: _ } = l[L - 1], { index: O, left: V, top: z } = l[L], R = this.container.children[x], G = this.container.children[O];
11154
11154
  if (!R || !G)
11155
11155
  return;
11156
11156
  const X = {
11157
- left: s * O / 100,
11158
- top: r * W / 100,
11157
+ left: s * F / 100,
11158
+ top: r * _ / 100,
11159
11159
  width: (d = (h = (u = R.children) == null ? void 0 : u[0]) == null ? void 0 : h.clientWidth) != null ? d : 0,
11160
11160
  height: (p = (g = (m = R.children) == null ? void 0 : m[0]) == null ? void 0 : g.clientHeight) != null ? p : 0
11161
- }, H = {
11161
+ }, W = {
11162
11162
  left: s * V / 100,
11163
- top: r * B / 100,
11163
+ top: r * z / 100,
11164
11164
  width: (b = (A = (v = G.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? b : 0,
11165
11165
  height: (I = (k = (w = G.children) == null ? void 0 : w[0]) == null ? void 0 : k.clientHeight) != null ? I : 0
11166
11166
  };
11167
- mp(X, H) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[_].transform = `translate(-50%, ${C * 100 - 50}%)`);
11167
+ mp(X, W) && (C++, c[x].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[O].transform = `translate(-50%, ${C * 100 - 50}%)`);
11168
11168
  }
11169
11169
  }
11170
11170
  this.labelItems = c, this.render();
@@ -11288,19 +11288,19 @@ function Pp(i, t) {
11288
11288
  k !== void 0 && I > 0.8 && (C = v + 1), k !== void 0 && I > 0.2 && I < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
11289
11289
  let L = d;
11290
11290
  if (b !== void 0 && w > 0.2 && w < 0.3 ? L = d + 1 : A > 0.2 && A < 0.3 && (L = d), u[L] && u[L + 1]) {
11291
- const W = m[p - 1];
11292
- if (W)
11293
- if (W.equals(u[L]))
11291
+ const _ = m[p - 1];
11292
+ if (_)
11293
+ if (_.equals(u[L]))
11294
11294
  L += 1;
11295
11295
  else {
11296
- const _ = new q().subVectors(u[L + 1], u[L]), V = new q().subVectors(W, u[L]);
11297
- _.angleTo(V) < Math.PI / 2 && (L += 1);
11296
+ const O = new q().subVectors(u[L + 1], u[L]), V = new q().subVectors(_, u[L]);
11297
+ O.angleTo(V) < Math.PI / 2 && (L += 1);
11298
11298
  }
11299
11299
  }
11300
11300
  if (C < L || C - L <= 1)
11301
11301
  return;
11302
- const x = u.slice(L, C), O = or(x, e, n);
11303
- h.push(O), d = v;
11302
+ const x = u.slice(L, C), F = or(x, e, n);
11303
+ h.push(F), d = v;
11304
11304
  }
11305
11305
  }), h;
11306
11306
  } else {
@@ -11316,10 +11316,10 @@ function or(i, t, e) {
11316
11316
  for (let A = 0; A < i.length; A++) {
11317
11317
  const [b, w] = r[A][0], k = i[A], { x: I, y: C, z: L } = k, x = new q(I + b * n, C + 0.05, L + w * n);
11318
11318
  m[A * 6 + 0] = x.x, m[A * 6 + 1] = x.y, m[A * 6 + 2] = x.z;
11319
- const O = new q(I - b * n, C + 0.05, L - w * n);
11320
- m[A * 6 + 3] = O.x, m[A * 6 + 4] = O.y, m[A * 6 + 5] = O.z, p += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
11321
- const W = p / t / o;
11322
- g[A * 4 + 0] = 0, g[A * 4 + 1] = W, g[A * 4 + 2] = 1, g[A * 4 + 3] = W, A !== i.length - 1 && (d[A * 6 + 0] = A * 2 + 0, d[A * 6 + 1] = A * 2 + 2, d[A * 6 + 2] = A * 2 + 1, d[A * 6 + 3] = A * 2 + 2, d[A * 6 + 4] = A * 2 + 3, d[A * 6 + 5] = A * 2 + 1);
11319
+ const F = new q(I - b * n, C + 0.05, L - w * n);
11320
+ m[A * 6 + 3] = F.x, m[A * 6 + 4] = F.y, m[A * 6 + 5] = F.z, p += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
11321
+ const _ = p / t / o;
11322
+ g[A * 4 + 0] = 0, g[A * 4 + 1] = _, g[A * 4 + 2] = 1, g[A * 4 + 3] = _, A !== i.length - 1 && (d[A * 6 + 0] = A * 2 + 0, d[A * 6 + 1] = A * 2 + 2, d[A * 6 + 2] = A * 2 + 1, d[A * 6 + 3] = A * 2 + 2, d[A * 6 + 4] = A * 2 + 3, d[A * 6 + 5] = A * 2 + 1);
11323
11323
  }
11324
11324
  const v = new E.BufferGeometry();
11325
11325
  return v.setAttribute("position", new E.BufferAttribute(m, 3)), v.setAttribute("uv", new E.BufferAttribute(g, 2)), v.setIndex(new E.BufferAttribute(d, 1)), v;
@@ -11360,7 +11360,7 @@ class Ml extends zt {
11360
11360
  Object.assign(window, { [`__${Sl}_DEBUG__`]: this });
11361
11361
  }
11362
11362
  load(e, n, o = !0) {
11363
- return F(this, null, function* () {
11363
+ return H(this, null, function* () {
11364
11364
  const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
11365
11365
  this.hooks.emit("dataChange", r, s), this.data = r, this.linesGroup && this.five.scene.remove(this.linesGroup);
11366
11366
  const a = this.getLinesGroup(r.routes, r.config);
@@ -11368,17 +11368,17 @@ class Ml extends zt {
11368
11368
  });
11369
11369
  }
11370
11370
  formatData(e) {
11371
- return F(this, null, function* () {
11371
+ return H(this, null, function* () {
11372
11372
  return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
11373
11373
  });
11374
11374
  }
11375
11375
  show(e) {
11376
- return F(this, null, function* () {
11376
+ return H(this, null, function* () {
11377
11377
  this.setState({ visible: !0 }, e);
11378
11378
  });
11379
11379
  }
11380
11380
  hide(e) {
11381
- return F(this, null, function* () {
11381
+ return H(this, null, function* () {
11382
11382
  this.setState({ visible: !1 }, e);
11383
11383
  });
11384
11384
  }
@@ -11433,7 +11433,7 @@ class Ml extends zt {
11433
11433
  }), o;
11434
11434
  }
11435
11435
  waitFiveModelLoaded() {
11436
- return F(this, null, function* () {
11436
+ return H(this, null, function* () {
11437
11437
  return new Promise((e) => {
11438
11438
  if (this.five.model.loaded) {
11439
11439
  e();
@@ -11460,7 +11460,7 @@ function Dp(i, t) {
11460
11460
  const e = rr(i), n = rr(t);
11461
11461
  return e.angleTo(n);
11462
11462
  }
11463
- const Lp = (i) => F(void 0, null, function* () {
11463
+ const Lp = (i) => H(void 0, null, function* () {
11464
11464
  try {
11465
11465
  i().then(() => {
11466
11466
  }, () => {
@@ -11532,7 +11532,7 @@ class Bl extends zt {
11532
11532
  });
11533
11533
  }
11534
11534
  load(e, n, o) {
11535
- return F(this, null, function* () {
11535
+ return H(this, null, function* () {
11536
11536
  var u, h, d, m, g;
11537
11537
  if (this.state.disposed)
11538
11538
  return ar();
@@ -11573,12 +11573,12 @@ class Bl extends zt {
11573
11573
  this.setState({ playing: !1 }, e);
11574
11574
  }
11575
11575
  show(e) {
11576
- return F(this, null, function* () {
11576
+ return H(this, null, function* () {
11577
11577
  this.setState({ visible: !0 }, e);
11578
11578
  });
11579
11579
  }
11580
11580
  hide(e) {
11581
- return F(this, null, function* () {
11581
+ return H(this, null, function* () {
11582
11582
  this.setState({ visible: !1 }, e);
11583
11583
  });
11584
11584
  }
@@ -11601,7 +11601,7 @@ class Bl extends zt {
11601
11601
  this.state = Q(Q({}, this.state), e), e.disposed !== void 0 && e.disposed !== o.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== o.visible && this.handleVisible(e.visible, n == null ? void 0 : n.userAction), e.enabled !== void 0 && e.enabled !== o.enabled && this.handleEnable(e.enabled, n == null ? void 0 : n.userAction), e.playing !== void 0 && e.playing !== o.playing && this.changePlayState(e.playing, n), e.speed !== void 0 && e.speed !== o.speed && this.changeSpeed(e.speed, n == null ? void 0 : n.userAction), nt(o, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: (s = n == null ? void 0 : n.userAction) != null ? s : !0 });
11602
11602
  }
11603
11603
  formatData(e) {
11604
- return F(this, null, function* () {
11604
+ return H(this, null, function* () {
11605
11605
  this.five.work || (yield this.waitFiveLoaded());
11606
11606
  const n = this.five.work.observers, o = (() => {
11607
11607
  const s = e;
@@ -11662,7 +11662,7 @@ class Bl extends zt {
11662
11662
  ), e ? this.handlePlay(n) : this.handlePause(n), this.state.playing = e;
11663
11663
  }
11664
11664
  handlePlay(e) {
11665
- return F(this, null, function* () {
11665
+ return H(this, null, function* () {
11666
11666
  var m;
11667
11667
  const { data: n, state: o, privateState: s, hooks: r } = this;
11668
11668
  if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
@@ -11672,7 +11672,7 @@ class Bl extends zt {
11672
11672
  const l = n.keyframes, c = this.getPauseData();
11673
11673
  (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
11674
11674
  let u = !1;
11675
- const d = yield (() => F(this, null, function* () {
11675
+ const d = yield (() => H(this, null, function* () {
11676
11676
  var g, p;
11677
11677
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
11678
11678
  return e.playFromIndex;
@@ -11716,7 +11716,7 @@ class Bl extends zt {
11716
11716
  n.playing = !1, o.playing !== !1 && (o.playing = !1, this.setPauseData(), o.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && s.emit("pause", { userAction: (r = e == null ? void 0 : e.userAction) != null ? r : !0 }));
11717
11717
  }
11718
11718
  playKeyframe(e, n) {
11719
- return F(this, null, function* () {
11719
+ return H(this, null, function* () {
11720
11720
  var s;
11721
11721
  const { privateState: o } = this;
11722
11722
  return ((s = this.privateState.currentPlayKeyframe) == null ? void 0 : s.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), o.currentPlayQueue.push(this.getPlayPromise(e, n)), this.actionPromiseQueue();
@@ -11731,7 +11731,7 @@ class Bl extends zt {
11731
11731
  };
11732
11732
  }
11733
11733
  getPlayPromise(o) {
11734
- return F(this, arguments, function* (e, n = {}) {
11734
+ return H(this, arguments, function* (e, n = {}) {
11735
11735
  var r;
11736
11736
  const s = e.data;
11737
11737
  if (n.duration = (r = n.duration) != null ? r : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!s)
@@ -11763,7 +11763,7 @@ class Bl extends zt {
11763
11763
  });
11764
11764
  }
11765
11765
  actionPromiseQueue() {
11766
- return F(this, null, function* () {
11766
+ return H(this, null, function* () {
11767
11767
  const { privateState: e } = this;
11768
11768
  return new Promise((n, o) => {
11769
11769
  if (e.currentPlayQueue.length === 0) {
@@ -11780,7 +11780,7 @@ class Bl extends zt {
11780
11780
  });
11781
11781
  }
11782
11782
  move(e, n) {
11783
- return F(this, null, function* () {
11783
+ return H(this, null, function* () {
11784
11784
  if (e.mode && e.mode !== this.five.currentMode)
11785
11785
  yield this.changeMode(e);
11786
11786
  else if (e.panoIndex !== this.five.panoIndex)
@@ -11790,7 +11790,7 @@ class Bl extends zt {
11790
11790
  });
11791
11791
  }
11792
11792
  rotate(e, n) {
11793
- return F(this, null, function* () {
11793
+ return H(this, null, function* () {
11794
11794
  if (e.mode && e.mode !== this.five.currentMode)
11795
11795
  yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
11796
11796
  else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
@@ -11799,7 +11799,7 @@ class Bl extends zt {
11799
11799
  });
11800
11800
  }
11801
11801
  updateCamera(o) {
11802
- return F(this, arguments, function* (e, n = {}) {
11802
+ return H(this, arguments, function* (e, n = {}) {
11803
11803
  const { five: s, privateState: r, state: a } = this, l = (() => {
11804
11804
  var m, g;
11805
11805
  const h = (m = a.config) == null ? void 0 : m.speedConfig, d = (g = e.rotateSpeed) != null ? g : h == null ? void 0 : h.rotateSpeed;
@@ -11824,7 +11824,7 @@ class Bl extends zt {
11824
11824
  });
11825
11825
  }
11826
11826
  changePano(e, n) {
11827
- return F(this, null, function* () {
11827
+ return H(this, null, function* () {
11828
11828
  const { five: o, privateState: s, state: r } = this;
11829
11829
  if (typeof e.panoIndex != "number" || e.panoIndex === o.panoIndex)
11830
11830
  return;
@@ -11876,7 +11876,7 @@ class Bl extends zt {
11876
11876
  return this.five.controller.cameraMotion.progress;
11877
11877
  }
11878
11878
  changeMode(e, n) {
11879
- return F(this, null, function* () {
11879
+ return H(this, null, function* () {
11880
11880
  e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, n), this.privateState.modeChanging = !1);
11881
11881
  });
11882
11882
  }
@@ -11916,7 +11916,7 @@ class Bl extends zt {
11916
11916
  n != null && n.warnLog && Bp();
11917
11917
  }
11918
11918
  waitFiveLoaded() {
11919
- return F(this, null, function* () {
11919
+ return H(this, null, function* () {
11920
11920
  return new Promise((e) => {
11921
11921
  if (this.five.work) {
11922
11922
  e();
@@ -12855,7 +12855,7 @@ class hg extends ug {
12855
12855
  if (o[0].type === "Image")
12856
12856
  return "Mesh";
12857
12857
  if (o[0].type === "Video")
12858
- return "BehindDom";
12858
+ return "Dom";
12859
12859
  } else
12860
12860
  return "Dom";
12861
12861
  else if (Qe(e))
@@ -13267,7 +13267,7 @@ function dr(i) {
13267
13267
  let t, e, n, o, s, r, a, l = i[3] && hr(i);
13268
13268
  return {
13269
13269
  c() {
13270
- t = z("div"), e = we("svg"), n = we("defs"), o = we("linearGradient"), s = we("stop"), r = we("stop"), l && l.c(), y(s, "offset", "25%"), y(s, "stop-color", i[5]), y(s, "stop-opacity", "1"), y(r, "offset", "100%"), y(r, "stop-color", i[5]), y(r, "stop-opacity", "0.5"), y(o, "x1", 0.5), y(o, "y1", 0.5), y(o, "x2", i[8]), y(o, "y2", 0.5), y(o, "id", i[10]), y(o, "gradientUnits", "userSpaceOnUse"), y(e, "class", "straight-line svelte-xuejcm"), y(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), y(e, "preserveAspectRatio", "none"), y(t, "class", "line svelte-xuejcm"), U(t, "vertical", i[9]), U(t, "horizontal", !i[9]), T(t, "width", i[8] + "px"), T(t, "height", i[7] + "px");
13270
+ t = B("div"), e = we("svg"), n = we("defs"), o = we("linearGradient"), s = we("stop"), r = we("stop"), l && l.c(), y(s, "offset", "25%"), y(s, "stop-color", i[5]), y(s, "stop-opacity", "1"), y(r, "offset", "100%"), y(r, "stop-color", i[5]), y(r, "stop-opacity", "0.5"), y(o, "x1", 0.5), y(o, "y1", 0.5), y(o, "x2", i[8]), y(o, "y2", 0.5), y(o, "id", i[10]), y(o, "gradientUnits", "userSpaceOnUse"), y(e, "class", "straight-line svelte-xuejcm"), y(e, "viewBox", a = "0 0 " + i[8] + " " + i[7]), y(e, "preserveAspectRatio", "none"), y(t, "class", "line svelte-xuejcm"), U(t, "vertical", i[9]), U(t, "horizontal", !i[9]), T(t, "width", i[8] + "px"), T(t, "height", i[7] + "px");
13271
13271
  },
13272
13272
  m(c, u) {
13273
13273
  M(c, t, u), j(t, e), j(e, n), j(n, o), j(o, s), j(o, r), l && l.m(e, null);
@@ -13319,7 +13319,7 @@ function pg(i) {
13319
13319
  let t, e = i[8] && dr(i);
13320
13320
  return {
13321
13321
  c() {
13322
- e && e.c(), t = me();
13322
+ e && e.c(), t = pe();
13323
13323
  },
13324
13324
  m(n, o) {
13325
13325
  e && e.m(n, o), M(n, t, o);
@@ -13386,7 +13386,7 @@ function fr(i) {
13386
13386
  let t, e, n, o, s;
13387
13387
  return {
13388
13388
  c() {
13389
- t = z("div"), y(t, "class", "shadow svelte-faoauy"), y(t, "style", e = `
13389
+ t = B("div"), y(t, "class", "shadow svelte-faoauy"), y(t, "style", e = `
13390
13390
  left:${Xe(i[5])};
13391
13391
  bottom:${Xe(i[6])};
13392
13392
  box-shadow: 0 0 ${Xe(i[10])} ${Xe(i[11])} rgba(0, 0, 0, ${i[12]});
@@ -13425,7 +13425,7 @@ function vg(i) {
13425
13425
  let t, e = i[2] && fr(i);
13426
13426
  return {
13427
13427
  c() {
13428
- e && e.c(), t = me();
13428
+ e && e.c(), t = pe();
13429
13429
  },
13430
13430
  m(n, o) {
13431
13431
  e && e.m(n, o), M(n, t, o);
@@ -13514,7 +13514,7 @@ function Eg(i) {
13514
13514
  const s = () => i[9](t, o), r = () => i[9](null, o);
13515
13515
  return {
13516
13516
  c() {
13517
- t = z("span"), n = ke(e), y(t, "class", "text-char svelte-1b2n9wi");
13517
+ t = B("span"), n = ke(e), y(t, "class", "text-char svelte-1b2n9wi");
13518
13518
  },
13519
13519
  m(a, l) {
13520
13520
  M(a, t, l), j(t, n), s();
@@ -13532,7 +13532,7 @@ function Cg(i) {
13532
13532
  const n = () => i[8](t, e), o = () => i[8](null, e);
13533
13533
  return {
13534
13534
  c() {
13535
- t = z("span"), t.textContent = "\xA0", y(t, "class", "text-char svelte-1b2n9wi");
13535
+ t = B("span"), t.textContent = "\xA0", y(t, "class", "text-char svelte-1b2n9wi");
13536
13536
  },
13537
13537
  m(s, r) {
13538
13538
  M(s, t, r), n();
@@ -13555,7 +13555,7 @@ function pr(i, t) {
13555
13555
  key: i,
13556
13556
  first: null,
13557
13557
  c() {
13558
- e = me(), r.c(), n = me(), this.first = e;
13558
+ e = pe(), r.c(), n = pe(), this.first = e;
13559
13559
  },
13560
13560
  m(a, l) {
13561
13561
  M(a, e, l), r.m(a, l), M(a, n, l);
@@ -13579,7 +13579,7 @@ function Pg(i) {
13579
13579
  c() {
13580
13580
  for (let r = 0; r < t.length; r += 1)
13581
13581
  t[r].c();
13582
- n = me();
13582
+ n = pe();
13583
13583
  },
13584
13584
  m(r, a) {
13585
13585
  for (let l = 0; l < t.length; l += 1)
@@ -13607,7 +13607,7 @@ function Ig(i, t, e) {
13607
13607
  return I.slice().replace(L, (x) => `${c}${u}${x}${c}`).split(c).forEach((x) => x.startsWith(u) ? C.push({
13608
13608
  id: We(),
13609
13609
  content: x.slice(u.length)
13610
- }) : C.push(...x.split("").map((O) => O === " " ? h : O).map((O) => ({ id: We(), content: O })))), C;
13610
+ }) : C.push(...x.split("").map((F) => F === " " ? h : F).map((F) => ({ id: We(), content: F })))), C;
13611
13611
  }
13612
13612
  function v() {
13613
13613
  if (!m)
@@ -13701,10 +13701,10 @@ function gr(i) {
13701
13701
  }
13702
13702
  }), {
13703
13703
  c() {
13704
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), y(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), T(o, "background-image", "url(" + kg + ")"), y(t, "class", "arrow-wrapper svelte-1ogmlqq");
13704
+ t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), y(o, "class", s = "arrow " + i[0] + " svelte-1ogmlqq"), T(o, "background-image", "url(" + kg + ")"), y(t, "class", "arrow-wrapper svelte-1ogmlqq");
13705
13705
  },
13706
13706
  m(h, d) {
13707
- M(h, t, d), J(e, t, null), j(t, n), j(t, o), l = !0, c || (u = ge(o, "click", i[5]), c = !0);
13707
+ M(h, t, d), J(e, t, null), j(t, n), j(t, o), l = !0, c || (u = me(o, "click", i[5]), c = !0);
13708
13708
  },
13709
13709
  p(h, d) {
13710
13710
  i = h, (!l || d & 1 && s !== (s = "arrow " + i[0] + " svelte-1ogmlqq")) && y(o, "class", s);
@@ -13734,7 +13734,7 @@ function Mg(i) {
13734
13734
  let t, e, n = i[1] && gr(i);
13735
13735
  return {
13736
13736
  c() {
13737
- n && n.c(), t = me();
13737
+ n && n.c(), t = pe();
13738
13738
  },
13739
13739
  m(o, s) {
13740
13740
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -13806,7 +13806,7 @@ function Ar(i) {
13806
13806
  }
13807
13807
  }), {
13808
13808
  c() {
13809
- t = z("div"), K(e.$$.fragment), y(t, "class", "text svelte-1fuzm7v"), T(t, "transform", i[7]);
13809
+ t = B("div"), K(e.$$.fragment), y(t, "class", "text svelte-1fuzm7v"), T(t, "transform", i[7]);
13810
13810
  },
13811
13811
  m(o, s) {
13812
13812
  M(o, t, s), J(e, t, null), i[10](t), n = !0;
@@ -13837,7 +13837,7 @@ function vr(i) {
13837
13837
  }
13838
13838
  }), {
13839
13839
  c() {
13840
- t = z("div"), K(e.$$.fragment), y(t, "class", "arrow svelte-1fuzm7v");
13840
+ t = B("div"), K(e.$$.fragment), y(t, "class", "arrow svelte-1fuzm7v");
13841
13841
  },
13842
13842
  m(o, s) {
13843
13843
  M(o, t, s), J(e, t, null), n = !0;
@@ -13861,7 +13861,7 @@ function Vg(i) {
13861
13861
  let t, e, n, o = i[1] && Ar(i), s = i[3] < i[4] && vr(i);
13862
13862
  return {
13863
13863
  c() {
13864
- o && o.c(), t = $(), s && s.c(), e = me();
13864
+ o && o.c(), t = $(), s && s.c(), e = pe();
13865
13865
  },
13866
13866
  m(r, a) {
13867
13867
  o && o.m(r, a), M(r, t, a), s && s.m(r, a), M(r, e, a), n = !0;
@@ -13950,13 +13950,13 @@ function br(i) {
13950
13950
  }
13951
13951
  }), {
13952
13952
  c() {
13953
- K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), s = z("div"), K(r.$$.fragment), y(s, "class", "content svelte-nlvd3x");
13953
+ K(t.$$.fragment), e = $(), K(n.$$.fragment), o = $(), s = B("div"), K(r.$$.fragment), y(s, "class", "content svelte-nlvd3x");
13954
13954
  },
13955
13955
  m(d, m) {
13956
13956
  J(t, d, m), M(d, e, m), J(n, d, m), M(d, o, m), M(d, s, m), J(r, s, null), a = !0, l || (c = [
13957
13957
  ct(rn.call(null, s)),
13958
- ge(s, "clientWidth", i[8]),
13959
- ge(s, "click", i[7])
13958
+ me(s, "clientWidth", i[8]),
13959
+ me(s, "click", i[7])
13960
13960
  ], l = !0);
13961
13961
  },
13962
13962
  p(d, m) {
@@ -13983,7 +13983,7 @@ function Rg(i) {
13983
13983
  let t, e, n = i[0].state && br(i);
13984
13984
  return {
13985
13985
  c() {
13986
- n && n.c(), t = me();
13986
+ n && n.c(), t = pe();
13987
13987
  },
13988
13988
  m(o, s) {
13989
13989
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -14081,7 +14081,7 @@ function _g(i) {
14081
14081
  let t, e, n = ((s = i[3]) == null ? void 0 : s.inputting) && yr(), o = ((r = i[3]) == null ? void 0 : r.placeholder) && wr(i);
14082
14082
  return {
14083
14083
  c() {
14084
- n && n.c(), t = $(), o && o.c(), e = me();
14084
+ n && n.c(), t = $(), o && o.c(), e = pe();
14085
14085
  },
14086
14086
  m(a, l) {
14087
14087
  n && n.m(a, l), M(a, t, l), o && o.m(a, l), M(a, e, l);
@@ -14120,7 +14120,7 @@ function yr(i) {
14120
14120
  let t;
14121
14121
  return {
14122
14122
  c() {
14123
- t = z("div"), y(t, "class", "caret svelte-i9wdo4");
14123
+ t = B("div"), y(t, "class", "caret svelte-i9wdo4");
14124
14124
  },
14125
14125
  m(e, n) {
14126
14126
  M(e, t, n);
@@ -14134,7 +14134,7 @@ function wr(i) {
14134
14134
  let t, e = i[3].placeholder + "", n;
14135
14135
  return {
14136
14136
  c() {
14137
- t = z("span"), n = ke(e), y(t, "class", "placeholder svelte-i9wdo4");
14137
+ t = B("span"), n = ke(e), y(t, "class", "placeholder svelte-i9wdo4");
14138
14138
  },
14139
14139
  m(o, s) {
14140
14140
  M(o, t, s), j(t, n);
@@ -14155,7 +14155,7 @@ function Xg(i) {
14155
14155
  }
14156
14156
  return e = a(i), n = r[e] = s[e](i), {
14157
14157
  c() {
14158
- t = z("div"), n.c(), y(t, "class", "text svelte-i9wdo4"), T(t, "max-width", typeof i[1] == "number" ? it(i[1]) : i[1]), T(t, "-webkit-line-clamp", i[0]);
14158
+ t = B("div"), n.c(), y(t, "class", "text svelte-i9wdo4"), T(t, "max-width", typeof i[1] == "number" ? it(i[1]) : i[1]), T(t, "-webkit-line-clamp", i[0]);
14159
14159
  },
14160
14160
  m(l, c) {
14161
14161
  M(l, t, c), r[e].m(t, null), o = !0;
@@ -14227,7 +14227,7 @@ function Er(i) {
14227
14227
  let u = (i[0].data.description || ((d = i[0].data.edit) == null ? void 0 : d.description)) && Cr(i);
14228
14228
  return {
14229
14229
  c() {
14230
- K(t.$$.fragment), e = $(), n = z("div"), o = z("div"), s = z("div"), r = z("div"), K(a.$$.fragment), l = $(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), T(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), U(n, "unfolded", i[1]), U(n, "folded", i[3]);
14230
+ K(t.$$.fragment), e = $(), n = B("div"), o = B("div"), s = B("div"), r = B("div"), K(a.$$.fragment), l = $(), u && u.c(), y(r, "class", "title svelte-1oxrkr1"), y(s, "class", "plane svelte-1oxrkr1"), y(o, "class", "plane__wrapper svelte-1oxrkr1"), T(o, "transform", i[1] ? "translateY(-15px)" : "translateY(0)"), y(n, "class", "plane__container svelte-1oxrkr1"), U(n, "unfolded", i[1]), U(n, "folded", i[3]);
14231
14231
  },
14232
14232
  m(m, g) {
14233
14233
  J(t, m, g), M(m, e, g), M(m, n, g), j(n, o), j(o, s), j(s, r), J(a, r, null), j(s, l), u && u.m(s, null), c = !0;
@@ -14263,7 +14263,7 @@ function Cr(i) {
14263
14263
  }
14264
14264
  }), {
14265
14265
  c() {
14266
- t = z("div"), K(e.$$.fragment), y(t, "class", "description svelte-1oxrkr1");
14266
+ t = B("div"), K(e.$$.fragment), y(t, "class", "description svelte-1oxrkr1");
14267
14267
  },
14268
14268
  m(s, r) {
14269
14269
  M(s, t, r), J(e, t, null), n = !0;
@@ -14288,7 +14288,7 @@ function qg(i) {
14288
14288
  let t, e, n = i[0].state && Er(i);
14289
14289
  return {
14290
14290
  c() {
14291
- n && n.c(), t = me();
14291
+ n && n.c(), t = pe();
14292
14292
  },
14293
14293
  m(o, s) {
14294
14294
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -14379,7 +14379,7 @@ function e0(i) {
14379
14379
  }
14380
14380
  return ~(t = a(i)) && (e = r[t] = s[t](i)), {
14381
14381
  c() {
14382
- e && e.c(), n = me();
14382
+ e && e.c(), n = pe();
14383
14383
  },
14384
14384
  m(l, c) {
14385
14385
  ~t && r[t].m(l, c), M(l, n, c), o = !0;
@@ -14510,10 +14510,10 @@ function l0(i) {
14510
14510
  let t, e, n;
14511
14511
  return {
14512
14512
  c() {
14513
- t = z("button"), y(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), U(t, "sc-carousel-dot__dot_active", i[0]);
14513
+ t = B("button"), y(t, "class", "sc-carousel-button sc-carousel-dot__dot svelte-1mgyhhn"), U(t, "sc-carousel-dot__dot_active", i[0]);
14514
14514
  },
14515
14515
  m(o, s) {
14516
- M(o, t, s), e || (n = ge(t, "click", i[1]), e = !0);
14516
+ M(o, t, s), e || (n = me(t, "click", i[1]), e = !0);
14517
14517
  },
14518
14518
  p(o, [s]) {
14519
14519
  s & 1 && U(t, "sc-carousel-dot__dot_active", o[0]);
@@ -14559,7 +14559,7 @@ function kr(i, t) {
14559
14559
  key: i,
14560
14560
  first: null,
14561
14561
  c() {
14562
- e = z("div"), K(n.$$.fragment), o = $(), y(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
14562
+ e = B("div"), K(n.$$.fragment), o = $(), y(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
14563
14563
  },
14564
14564
  m(a, l) {
14565
14565
  M(a, e, l), J(n, e, null), j(e, o), s = !0;
@@ -14589,7 +14589,7 @@ function h0(i) {
14589
14589
  }
14590
14590
  return {
14591
14591
  c() {
14592
- t = z("div");
14592
+ t = B("div");
14593
14593
  for (let a = 0; a < e.length; a += 1)
14594
14594
  e[a].c();
14595
14595
  y(t, "class", "sc-carousel-dots__container svelte-670fde");
@@ -14646,10 +14646,10 @@ function g0(i) {
14646
14646
  let t, e, n, o;
14647
14647
  return {
14648
14648
  c() {
14649
- t = z("button"), e = z("i"), y(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), U(e, "sc-carousel-arrow__arrow-next", i[0] === Et), U(e, "sc-carousel-arrow__arrow-prev", i[0] === Jt), y(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), U(t, "sc-carousel-arrow__circle_disabled", i[1]);
14649
+ t = B("button"), e = B("i"), y(e, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), U(e, "sc-carousel-arrow__arrow-next", i[0] === Et), U(e, "sc-carousel-arrow__arrow-prev", i[0] === Jt), y(t, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), U(t, "sc-carousel-arrow__circle_disabled", i[1]);
14650
14650
  },
14651
14651
  m(s, r) {
14652
- M(s, t, r), j(t, e), n || (o = ge(t, "click", i[2]), n = !0);
14652
+ M(s, t, r), j(t, e), n || (o = me(t, "click", i[2]), n = !0);
14653
14653
  },
14654
14654
  p(s, [r]) {
14655
14655
  r & 1 && U(e, "sc-carousel-arrow__arrow-next", s[0] === Et), r & 1 && U(e, "sc-carousel-arrow__arrow-prev", s[0] === Jt), r & 2 && U(t, "sc-carousel-arrow__circle_disabled", s[1]);
@@ -14682,7 +14682,7 @@ function b0(i) {
14682
14682
  let t;
14683
14683
  return {
14684
14684
  c() {
14685
- t = z("div"), y(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"), T(t, "width", i[0] + "%");
14685
+ t = B("div"), y(t, "class", "sc-carousel-progress__indicator svelte-i7yfid"), T(t, "width", i[0] + "%");
14686
14686
  },
14687
14687
  m(e, n) {
14688
14688
  M(e, t, n);
@@ -15185,7 +15185,7 @@ class lA {
15185
15185
  this.reset();
15186
15186
  const n = Math.min(aA, Math.max(this._autoplayDuration, 1));
15187
15187
  let o = -n;
15188
- this._interval = rA(() => F(this, null, function* () {
15188
+ this._interval = rA(() => H(this, null, function* () {
15189
15189
  if (this._paused)
15190
15190
  return;
15191
15191
  o += n;
@@ -15343,17 +15343,17 @@ function cA(i) {
15343
15343
  r.focused = !r.focused;
15344
15344
  },
15345
15345
  _applyAutoplayIfNeeded(l) {
15346
- return F(this, arguments, function* ({ data: r, methods: a }) {
15346
+ return H(this, arguments, function* ({ data: r, methods: a }) {
15347
15347
  if (!r.infinite && (r.autoplayDirection === Et && r.currentParticleIndex === r.particlesCount - 1 || r.autoplayDirection === Jt && r.currentParticleIndex === 0)) {
15348
15348
  t.reset();
15349
15349
  return;
15350
15350
  }
15351
15351
  if (r.autoplay) {
15352
15352
  const c = () => ho({
15353
- [Et]: () => F(this, null, function* () {
15353
+ [Et]: () => H(this, null, function* () {
15354
15354
  return a.showNextPage();
15355
15355
  }),
15356
- [Jt]: () => F(this, null, function* () {
15356
+ [Jt]: () => H(this, null, function* () {
15357
15357
  return a.showPrevPage();
15358
15358
  })
15359
15359
  })(r.autoplayDirection);
@@ -15362,7 +15362,7 @@ function cA(i) {
15362
15362
  });
15363
15363
  },
15364
15364
  _jumpIfNeeded(l) {
15365
- return F(this, arguments, function* ({ data: r, methods: a }) {
15365
+ return H(this, arguments, function* ({ data: r, methods: a }) {
15366
15366
  let c = !1;
15367
15367
  return r.infinite && (r.currentParticleIndex === 0 ? (yield a.showParticle(
15368
15368
  r.particlesCount - r.clonesCountTotal,
@@ -15375,24 +15375,24 @@ function cA(i) {
15375
15375
  });
15376
15376
  },
15377
15377
  changePage(u, h, d) {
15378
- return F(this, arguments, function* ({ data: r, methods: a }, l, c) {
15378
+ return H(this, arguments, function* ({ data: r, methods: a }, l, c) {
15379
15379
  if (t.reset(), r.disabled)
15380
15380
  return;
15381
15381
  r.disabled = !0, l(), yield a.offsetPage({ animated: wn(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
15382
15382
  });
15383
15383
  },
15384
15384
  showNextPage(c, u) {
15385
- return F(this, arguments, function* ({ data: r, methods: a }, l) {
15385
+ return H(this, arguments, function* ({ data: r, methods: a }, l) {
15386
15386
  r.disabled || (yield a.changePage(a._next, l));
15387
15387
  });
15388
15388
  },
15389
15389
  showPrevPage(c, u) {
15390
- return F(this, arguments, function* ({ data: r, methods: a }, l) {
15390
+ return H(this, arguments, function* ({ data: r, methods: a }, l) {
15391
15391
  r.disabled || (yield a.changePage(a._prev, l));
15392
15392
  });
15393
15393
  },
15394
15394
  showParticle(c, u, h) {
15395
- return F(this, arguments, function* ({ methods: r }, a, l) {
15395
+ return H(this, arguments, function* ({ methods: r }, a, l) {
15396
15396
  yield r.changePage(
15397
15397
  () => r._moveToParticle(a),
15398
15398
  l
@@ -15411,7 +15411,7 @@ function cA(i) {
15411
15411
  });
15412
15412
  },
15413
15413
  showPage(c, u, h) {
15414
- return F(this, arguments, function* ({ methods: r }, a, l) {
15414
+ return H(this, arguments, function* ({ methods: r }, a, l) {
15415
15415
  const d = r._getParticleIndexByPageIndex(a);
15416
15416
  yield r.showParticle(d, l);
15417
15417
  });
@@ -15505,7 +15505,7 @@ function pA(i) {
15505
15505
  }
15506
15506
  }), e.$on("click", i[23]), {
15507
15507
  c() {
15508
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15508
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15509
15509
  },
15510
15510
  m(o, s) {
15511
15511
  M(o, t, s), J(e, t, null), n = !0;
@@ -15531,7 +15531,7 @@ function Qr(i) {
15531
15531
  props: { value: i[7] }
15532
15532
  }), {
15533
15533
  c() {
15534
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel-progress__container svelte-sme1z4");
15534
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel-progress__container svelte-sme1z4");
15535
15535
  },
15536
15536
  m(o, s) {
15537
15537
  M(o, t, s), J(e, t, null), n = !0;
@@ -15591,7 +15591,7 @@ function gA(i) {
15591
15591
  }
15592
15592
  }), e.$on("click", i[14].showNextPage), {
15593
15593
  c() {
15594
- t = z("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15594
+ t = B("div"), K(e.$$.fragment), y(t, "class", "sc-carousel__arrow-container svelte-sme1z4");
15595
15595
  },
15596
15596
  m(o, s) {
15597
15597
  M(o, t, s), J(e, t, null), n = !0;
@@ -15677,22 +15677,22 @@ function vA(i) {
15677
15677
  let v = i[3] && Qr(i), A = i[1] && Rr(i), b = i[4] && Fr(i);
15678
15678
  return {
15679
15679
  c() {
15680
- t = z("div"), e = z("div"), m && m.c(), n = $(), o = z("div"), s = z("div"), p && p.c(), a = $(), v && v.c(), l = $(), A && A.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15680
+ t = B("div"), e = B("div"), m && m.c(), n = $(), o = B("div"), s = B("div"), p && p.c(), a = $(), v && v.c(), l = $(), A && A.c(), c = $(), b && b.c(), y(s, "class", "sc-carousel__pages-container svelte-sme1z4"), T(s, "transform", "translateX(" + i[8] + "px)"), T(s, "transition-duration", i[9] + "ms"), T(s, "transition-timing-function", i[0]), y(o, "class", "sc-carousel__pages-window svelte-sme1z4"), y(e, "class", "sc-carousel__content-container svelte-sme1z4"), y(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
15681
15681
  },
15682
15682
  m(w, k) {
15683
15683
  M(w, t, k), j(t, e), m && m.m(e, null), j(e, n), j(e, o), j(o, s), p && p.m(s, null), i[39](s), j(o, a), v && v.m(o, null), i[40](o), j(e, l), A && A.m(e, null), j(t, c), b && b.m(t, null), u = !0, h || (d = [
15684
15684
  ct(r = S0.call(null, s, {
15685
15685
  thresholdProvider: i[38]
15686
15686
  })),
15687
- ge(s, "swipeStart", i[16]),
15688
- ge(s, "swipeMove", i[18]),
15689
- ge(s, "swipeEnd", i[19]),
15690
- ge(s, "swipeFailed", i[20]),
15691
- ge(s, "swipeThresholdReached", i[17]),
15687
+ me(s, "swipeStart", i[16]),
15688
+ me(s, "swipeMove", i[18]),
15689
+ me(s, "swipeEnd", i[19]),
15690
+ me(s, "swipeFailed", i[20]),
15691
+ me(s, "swipeThresholdReached", i[17]),
15692
15692
  ct(B0.call(null, o)),
15693
- ge(o, "hovered", i[21]),
15693
+ me(o, "hovered", i[21]),
15694
15694
  ct(R0.call(null, o)),
15695
- ge(o, "tapped", i[22])
15695
+ me(o, "tapped", i[22])
15696
15696
  ], h = !0);
15697
15697
  },
15698
15698
  p(w, k) {
@@ -15738,9 +15738,9 @@ function bA(i, t, e) {
15738
15738
  loaded: () => e(6, s = ve)
15739
15739
  })(te);
15740
15740
  }), p = yi();
15741
- let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: L = Et } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: O = !1 } = t, { dots: W = !0 } = t, { swiping: _ = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: B = 1 } = t;
15741
+ let { timingFunction: v = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: b = !0 } = t, { initialPageIndex: w = 0 } = t, { duration: k = 500 } = t, { autoplay: I = !1 } = t, { autoplayDuration: C = 3e3 } = t, { autoplayDirection: L = Et } = t, { pauseOnFocus: x = !1 } = t, { autoplayProgressVisible: F = !1 } = t, { dots: _ = !0 } = t, { swiping: O = !0 } = t, { particlesToShow: V = 1 } = t, { particlesToScroll: z = 1 } = t;
15742
15742
  function R(te, ve) {
15743
- return F(this, null, function* () {
15743
+ return H(this, null, function* () {
15744
15744
  const je = wn(ve, "animated", !0);
15745
15745
  if (typeof te != "number")
15746
15746
  throw new Error("pageIndex should be a number");
@@ -15748,20 +15748,20 @@ function bA(i, t, e) {
15748
15748
  });
15749
15749
  }
15750
15750
  function G(te) {
15751
- return F(this, null, function* () {
15751
+ return H(this, null, function* () {
15752
15752
  const ve = wn(te, "animated", !0);
15753
15753
  yield m.showPrevPage({ animated: ve });
15754
15754
  });
15755
15755
  }
15756
15756
  function X(te) {
15757
- return F(this, null, function* () {
15757
+ return H(this, null, function* () {
15758
15758
  const ve = wn(te, "animated", !0);
15759
15759
  yield m.showNextPage({ animated: ve });
15760
15760
  });
15761
15761
  }
15762
- let H = 0, ee, Y;
15762
+ let W = 0, ee, Y;
15763
15763
  const ae = U0(({ width: te }) => {
15764
- e(11, H = te), h.particleWidth = H / h.particlesToShow, Y0({
15764
+ e(11, W = te), h.particleWidth = W / h.particlesToShow, Y0({
15765
15765
  particlesContainerChildren: Y.children,
15766
15766
  particleWidth: h.particleWidth
15767
15767
  }), m.offsetPage({ animated: !1 });
@@ -15779,37 +15779,37 @@ function bA(i, t, e) {
15779
15779
  });
15780
15780
  }
15781
15781
  Ke(() => {
15782
- F(this, null, function* () {
15782
+ H(this, null, function* () {
15783
15783
  yield Yo(), Y && ee && (h.particlesCountWithoutClones = Y.children.length, yield Yo(), h.infinite && he(), h.particlesCount = Y.children.length, m.showPage(w, { animated: !1 }), ae.observe(ee));
15784
15784
  });
15785
15785
  }), Pt(() => {
15786
15786
  ae.disconnect(), d.reset();
15787
15787
  });
15788
15788
  function de(te) {
15789
- return F(this, null, function* () {
15789
+ return H(this, null, function* () {
15790
15790
  yield m.showPage(te, { animated: !0 });
15791
15791
  });
15792
15792
  }
15793
- function pe() {
15794
- !_ || (h.durationMs = 0);
15793
+ function ge() {
15794
+ !O || (h.durationMs = 0);
15795
15795
  }
15796
15796
  function Ce(te) {
15797
- return F(this, null, function* () {
15798
- !_ || (yield ho({
15797
+ return H(this, null, function* () {
15798
+ !O || (yield ho({
15799
15799
  [Et]: m.showNextPage,
15800
15800
  [Jt]: m.showPrevPage
15801
15801
  })(te.detail.direction));
15802
15802
  });
15803
15803
  }
15804
15804
  function Ie(te) {
15805
- !_ || (h.offset += te.detail.dx);
15805
+ !O || (h.offset += te.detail.dx);
15806
15806
  }
15807
15807
  function Me() {
15808
- !_ || m.showParticle(h.currentParticleIndex);
15808
+ !O || m.showParticle(h.currentParticleIndex);
15809
15809
  }
15810
15810
  function ce() {
15811
- return F(this, null, function* () {
15812
- !_ || (yield m.offsetPage({ animated: !0 }));
15811
+ return H(this, null, function* () {
15812
+ !O || (yield m.offsetPage({ animated: !0 }));
15813
15813
  });
15814
15814
  }
15815
15815
  function Ae(te) {
@@ -15821,7 +15821,7 @@ function bA(i, t, e) {
15821
15821
  function ue() {
15822
15822
  m.showPrevPage();
15823
15823
  }
15824
- const qe = () => H / 3;
15824
+ const qe = () => W / 3;
15825
15825
  function rt(te) {
15826
15826
  Be[te ? "unshift" : "push"](() => {
15827
15827
  Y = te, e(13, Y);
@@ -15834,27 +15834,27 @@ function bA(i, t, e) {
15834
15834
  }
15835
15835
  const et = (te) => de(te.detail);
15836
15836
  return i.$$set = (te) => {
15837
- "timingFunction" in te && e(0, v = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, C = te.autoplayDuration), "autoplayDirection" in te && e(28, L = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, O = te.autoplayProgressVisible), "dots" in te && e(4, W = te.dots), "swiping" in te && e(30, _ = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, B = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
15837
+ "timingFunction" in te && e(0, v = te.timingFunction), "arrows" in te && e(1, A = te.arrows), "infinite" in te && e(2, b = te.infinite), "initialPageIndex" in te && e(24, w = te.initialPageIndex), "duration" in te && e(25, k = te.duration), "autoplay" in te && e(26, I = te.autoplay), "autoplayDuration" in te && e(27, C = te.autoplayDuration), "autoplayDirection" in te && e(28, L = te.autoplayDirection), "pauseOnFocus" in te && e(29, x = te.pauseOnFocus), "autoplayProgressVisible" in te && e(3, F = te.autoplayProgressVisible), "dots" in te && e(4, _ = te.dots), "swiping" in te && e(30, O = te.swiping), "particlesToShow" in te && e(31, V = te.particlesToShow), "particlesToScroll" in te && e(32, z = te.particlesToScroll), "$$scope" in te && e(36, o = te.$$scope);
15838
15838
  }, i.$$.update = () => {
15839
- i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = I), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = C), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = L), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = B);
15839
+ i.$$.dirty[0] & 32 && p("pageChange", r), i.$$.dirty[0] & 4 && (h.infinite = b), i.$$.dirty[0] & 33554432 && (h.durationMsInit = k), i.$$.dirty[0] & 67108864 && (h.autoplay = I), i.$$.dirty[0] & 134217728 && (h.autoplayDuration = C), i.$$.dirty[0] & 268435456 && (h.autoplayDirection = L), i.$$.dirty[0] & 536870912 && (h.pauseOnFocus = x), i.$$.dirty[1] & 1 && (h.particlesToShowInit = V), i.$$.dirty[1] & 2 && (h.particlesToScrollInit = z);
15840
15840
  }, [
15841
15841
  v,
15842
15842
  A,
15843
15843
  b,
15844
- O,
15845
- W,
15844
+ F,
15845
+ _,
15846
15846
  r,
15847
15847
  s,
15848
15848
  a,
15849
15849
  l,
15850
15850
  c,
15851
15851
  u,
15852
- H,
15852
+ W,
15853
15853
  ee,
15854
15854
  Y,
15855
15855
  m,
15856
15856
  de,
15857
- pe,
15857
+ ge,
15858
15858
  Ce,
15859
15859
  Ie,
15860
15860
  Me,
@@ -15868,9 +15868,9 @@ function bA(i, t, e) {
15868
15868
  C,
15869
15869
  L,
15870
15870
  x,
15871
- _,
15871
+ O,
15872
15872
  V,
15873
- B,
15873
+ z,
15874
15874
  R,
15875
15875
  G,
15876
15876
  X,
@@ -15937,7 +15937,7 @@ function Hr(i) {
15937
15937
  let n = e(i), o = n && n(i);
15938
15938
  return {
15939
15939
  c() {
15940
- t = z("div"), o && o.c(), y(t, "class", "media-item svelte-159ski6"), y(t, "draggable", "false");
15940
+ t = B("div"), o && o.c(), y(t, "class", "media-item svelte-159ski6"), y(t, "draggable", "false");
15941
15941
  },
15942
15942
  m(s, r) {
15943
15943
  M(s, t, r), o && o.m(t, null);
@@ -15958,13 +15958,13 @@ function EA(i) {
15958
15958
  let l = a(i), c = l(i);
15959
15959
  return {
15960
15960
  c() {
15961
- c.c(), t = $(), e = z("div"), n = z("div"), o = z("div"), y(o, "class", "video-icon-img svelte-159ski6"), T(o, "background-image", "url(" + i[18]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[9]);
15961
+ c.c(), t = $(), e = B("div"), n = B("div"), o = B("div"), y(o, "class", "video-icon-img svelte-159ski6"), T(o, "background-image", "url(" + i[20]() + ")"), U(o, "canPlay", i[5]), y(n, "class", "video-icon svelte-159ski6"), U(n, "large", i[4] === "large"), U(n, "small", i[4] === "small"), y(e, "class", "video-play-button-container svelte-159ski6"), U(e, "showPlayButton", i[10]);
15962
15962
  },
15963
15963
  m(u, h) {
15964
- c.m(u, h), M(u, t, h), M(u, e, h), j(e, n), j(n, o), s || (r = ge(o, "click", i[19]), s = !0);
15964
+ c.m(u, h), M(u, t, h), M(u, e, h), j(e, n), j(n, o), s || (r = me(o, "click", i[21]), s = !0);
15965
15965
  },
15966
15966
  p(u, h) {
15967
- l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && T(o, "background-image", "url(" + u[18]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h & 512 && U(e, "showPlayButton", u[9]);
15967
+ l === (l = a(u)) && c ? c.p(u, h) : (c.d(1), c = l(u), c && (c.c(), c.m(t.parentNode, t))), h & 8 && T(o, "background-image", "url(" + u[20]() + ")"), h & 32 && U(o, "canPlay", u[5]), h & 16 && U(n, "large", u[4] === "large"), h & 16 && U(n, "small", u[4] === "small"), h & 1024 && U(e, "showPlayButton", u[10]);
15968
15968
  },
15969
15969
  d(u) {
15970
15970
  c.d(u), u && S(t), u && S(e), s = !1, r();
@@ -15975,7 +15975,7 @@ function CA(i) {
15975
15975
  let t, e, n, o;
15976
15976
  return {
15977
15977
  c() {
15978
- t = z("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].url) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
15978
+ t = B("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].url) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
15979
15979
  },
15980
15980
  m(s, r) {
15981
15981
  M(s, t, r);
@@ -15992,20 +15992,22 @@ function PA(i) {
15992
15992
  let t, e, n, o, s, r, a;
15993
15993
  return {
15994
15994
  c() {
15995
- t = z("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[9]);
15995
+ t = B("video"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl ? i[2].url : i[2].url + "#t=0.1") || y(t, "src", n), y(t, "poster", o = i[2].videoCoverUrl), y(t, "preload", s = i[2].videoCoverUrl ? "none" : "auto"), y(t, "disablepictureinpicture", ""), t.playsInline = !0, y(t, "paused", ""), t.muted = !0, y(t, "draggable", !1), t.loop = !1, y(t, "crossorigin", ""), t.controls = !1, U(t, "showPlayButton", i[10]);
15996
15996
  },
15997
15997
  m(l, c) {
15998
- M(l, t, c), i[17](t), r || (a = [
15999
- ge(t, "play", i[14]),
16000
- ge(t, "pause", i[15]),
16001
- ge(t, "click", i[16])
15998
+ M(l, t, c), i[19](t), r || (a = [
15999
+ me(t, "play", i[14]),
16000
+ me(t, "pause", i[15]),
16001
+ me(t, "error", i[16]),
16002
+ me(t, "ended", i[17]),
16003
+ me(t, "click", i[18])
16002
16004
  ], r = !0);
16003
16005
  },
16004
16006
  p(l, c) {
16005
- c & 64 && e !== (e = `object-fit: ${l[6]};`) && y(t, "style", e), c & 4 && !Ye(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && y(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && y(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && y(t, "preload", s), c & 512 && U(t, "showPlayButton", l[9]);
16007
+ c & 64 && e !== (e = `object-fit: ${l[6]};`) && y(t, "style", e), c & 4 && !Ye(t.src, n = l[2].videoCoverUrl ? l[2].url : l[2].url + "#t=0.1") && y(t, "src", n), c & 4 && o !== (o = l[2].videoCoverUrl) && y(t, "poster", o), c & 4 && s !== (s = l[2].videoCoverUrl ? "none" : "auto") && y(t, "preload", s), c & 1024 && U(t, "showPlayButton", l[10]);
16006
16008
  },
16007
16009
  d(l) {
16008
- l && S(t), i[17](null), r = !1, Ge(a);
16010
+ l && S(t), i[19](null), r = !1, Ge(a);
16009
16011
  }
16010
16012
  };
16011
16013
  }
@@ -16013,7 +16015,7 @@ function IA(i) {
16013
16015
  let t, e, n, o;
16014
16016
  return {
16015
16017
  c() {
16016
- t = z("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16018
+ t = B("img"), y(t, "class", "media-content svelte-159ski6"), y(t, "style", e = `object-fit: ${i[6]};`), Ye(t.src, n = i[2].videoCoverUrl) || y(t, "src", n), y(t, "alt", o = i[2].name), y(t, "draggable", !1);
16017
16019
  },
16018
16020
  m(s, r) {
16019
16021
  M(s, t, r);
@@ -16030,7 +16032,7 @@ function kA(i) {
16030
16032
  let t, e = i[2] && Hr(i);
16031
16033
  return {
16032
16034
  c() {
16033
- e && e.c(), t = me();
16035
+ e && e.c(), t = pe();
16034
16036
  },
16035
16037
  m(n, o) {
16036
16038
  e && e.m(n, o), M(n, t, o);
@@ -16048,10 +16050,10 @@ function kA(i) {
16048
16050
  function xA(i, t, e) {
16049
16051
  let n, o, { mediaInstance: s = { videoInstance: void 0, paused: !0 } } = t, { tag: r } = t, { media: a } = t, { playButtonIfNeed: l = "withoutText" } = t, { playButtonSizeIfNeed: c = "small" } = t, { canPlay: u = !0 } = t, { objectFit: h = "fill" } = t, { disableVideoIfHavePoster: d = !1 } = t, m = !0, g = !1;
16050
16052
  function p() {
16051
- e(12, g = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
16053
+ e(8, g = (a == null ? void 0 : a.type) === "Video" && Boolean(a.videoCoverUrl));
16052
16054
  }
16053
16055
  const v = vt("mediaStore"), A = vt("hooks"), b = () => {
16054
- g || !n || (e(8, n.muted = !0, n), n.play(), n.pause(), e(8, n.muted = !1, n), e(12, g = !0));
16056
+ console.debug("loadPoster"), !g && (!n || (e(9, n.muted = !0, n), n.play(), n.pause(), e(9, n.muted = !1, n), e(8, g = !0), console.debug("loadPoster end")));
16055
16057
  };
16056
16058
  A.on("loadVideoFirstFrame", b), Ke(() => {
16057
16059
  v.subscribe(({ currentMediaElement: O }) => {
@@ -16059,36 +16061,50 @@ function xA(i, t, e) {
16059
16061
  });
16060
16062
  });
16061
16063
  const w = (O) => {
16062
- e(9, m = !1), e(0, s.paused = !1, s), n && v.set({ currentMediaElement: n }), A.emit("playStateChange", {
16064
+ e(10, m = !1), e(0, s.paused = !1, s), e(8, g = !0), n && v.set({ currentMediaElement: n }), A.emit("playStateChange", {
16063
16065
  event: O,
16064
16066
  state: "playing",
16065
16067
  tag: r,
16066
16068
  mediaInstance: n
16067
16069
  });
16068
16070
  }, k = (O) => {
16069
- e(9, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
16071
+ e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
16070
16072
  event: O,
16071
16073
  state: "paused",
16072
16074
  tag: r,
16073
16075
  mediaInstance: n
16074
16076
  });
16075
16077
  }, I = (O) => {
16078
+ e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
16079
+ event: O,
16080
+ state: "paused",
16081
+ tag: r,
16082
+ mediaInstance: n
16083
+ });
16084
+ }, C = (O) => {
16085
+ e(10, m = !0), e(0, s.paused = !0, s), A.emit("playStateChange", {
16086
+ event: O,
16087
+ state: "paused",
16088
+ tag: r,
16089
+ mediaInstance: n
16090
+ });
16091
+ }, L = (O) => {
16076
16092
  n && n.pause();
16077
16093
  };
16078
- function C(O) {
16094
+ function x(O) {
16079
16095
  Be[O ? "unshift" : "push"](() => {
16080
16096
  s.videoInstance = O, e(0, s);
16081
16097
  });
16082
16098
  }
16083
- const L = () => l === "withText" ? xg : l === "withoutText" ? Dg : l, x = (O) => {
16084
- !u || n && (e(8, n.muted = !1, n), n.play());
16099
+ const F = () => l === "withText" ? xg : l === "withoutText" ? Dg : l, _ = (O) => {
16100
+ !u || n && (e(9, n.muted = !1, n), n.play());
16085
16101
  };
16086
16102
  return i.$$set = (O) => {
16087
16103
  "mediaInstance" in O && e(0, s = O.mediaInstance), "tag" in O && e(1, r = O.tag), "media" in O && e(2, a = O.media), "playButtonIfNeed" in O && e(3, l = O.playButtonIfNeed), "playButtonSizeIfNeed" in O && e(4, c = O.playButtonSizeIfNeed), "canPlay" in O && e(5, u = O.canPlay), "objectFit" in O && e(6, h = O.objectFit), "disableVideoIfHavePoster" in O && e(7, d = O.disableVideoIfHavePoster);
16088
16104
  }, i.$$.update = () => {
16089
- if (i.$$.dirty & 1 && e(8, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && p(), i.$$.dirty & 256 && n && e(9, m = n.paused), i.$$.dirty & 4356 && (a == null ? void 0 : a.type) === "Video" && !g) {
16090
- const O = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, _ = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && O;
16091
- n && _ && n.paused && (document.removeEventListener("WeixinJSBridgeReady", b), document.removeEventListener("touchstart", b), document.removeEventListener("click", b), document.addEventListener("WeixinJSBridgeReady", b), document.addEventListener("touchstart", b), document.addEventListener("click", b));
16105
+ if (i.$$.dirty & 1 && e(9, n = s.videoInstance), i.$$.dirty & 4 && e(13, o = a == null ? void 0 : a.url), i.$$.dirty & 8192 && Boolean(o) && p(), i.$$.dirty & 512 && n && e(10, m = n.paused), i.$$.dirty & 772 && (a == null ? void 0 : a.type) === "Video" && !g) {
16106
+ const O = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, z = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && O;
16107
+ n && z && n.paused && (document.removeEventListener("WeixinJSBridgeReady", b), document.removeEventListener("touchstart", b), document.removeEventListener("click", b), document.addEventListener("WeixinJSBridgeReady", b), document.addEventListener("touchstart", b), document.addEventListener("click", b));
16092
16108
  }
16093
16109
  }, [
16094
16110
  s,
@@ -16099,18 +16115,20 @@ function xA(i, t, e) {
16099
16115
  u,
16100
16116
  h,
16101
16117
  d,
16118
+ g,
16102
16119
  n,
16103
16120
  m,
16104
16121
  v,
16105
16122
  A,
16106
- g,
16107
16123
  o,
16108
16124
  w,
16109
16125
  k,
16110
16126
  I,
16111
16127
  C,
16112
16128
  L,
16113
- x
16129
+ x,
16130
+ F,
16131
+ _
16114
16132
  ];
16115
16133
  }
16116
16134
  class Nl extends oe {
@@ -16150,7 +16168,7 @@ function Wr(i) {
16150
16168
  }
16151
16169
  return n = u(i), o = c[n] = l[n](i), {
16152
16170
  c() {
16153
- t = z("div"), e = z("div"), o.c(), y(e, "class", "media-list svelte-1mrbqlg"), U(e, "carouselEnabled", i[13]), y(t, "class", "media-list-wrapper svelte-1mrbqlg"), U(t, "unfolded", i[5]);
16171
+ t = B("div"), e = B("div"), o.c(), y(e, "class", "media-list svelte-1mrbqlg"), U(e, "carouselEnabled", i[13]), y(t, "class", "media-list-wrapper svelte-1mrbqlg"), U(t, "unfolded", i[5]);
16154
16172
  },
16155
16173
  m(h, d) {
16156
16174
  M(h, t, d), j(t, e), c[n].m(e, null), a = !0;
@@ -16304,7 +16322,7 @@ function MA(i) {
16304
16322
  c() {
16305
16323
  for (let r = 0; r < o.length; r += 1)
16306
16324
  o[r].c();
16307
- t = me();
16325
+ t = pe();
16308
16326
  },
16309
16327
  m(r, a) {
16310
16328
  for (let l = 0; l < o.length; l += 1)
@@ -16346,7 +16364,7 @@ function TA(i) {
16346
16364
  let t, e, n = i[5] && Wr(i);
16347
16365
  return {
16348
16366
  c() {
16349
- n && n.c(), t = me();
16367
+ n && n.c(), t = pe();
16350
16368
  },
16351
16369
  m(o, s) {
16352
16370
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -16371,13 +16389,13 @@ function zA(i, t, e) {
16371
16389
  let n, o, s, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: u = 0 } = t, { duration: h = 0 } = t, { unfolded: d = !0 } = t, { animation: m = !0 } = t, { mediaItemConfig: g } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: v = { autoplay: !0, autoplayVideo: !1 } } = t, A = [], b = 0, w, k = null;
16372
16390
  const I = vt("hooks"), C = vt("mediaStore");
16373
16391
  function L() {
16374
- var B;
16375
- const V = (B = A[b]) == null ? void 0 : B.videoInstance;
16376
- !V || (V.paused ? (V.muted = !1, V.play()) : V.pause());
16392
+ const V = A[b], z = V == null ? void 0 : V.videoInstance;
16393
+ !z || (z.paused ? (z.muted = !1, z.play()) : z.pause());
16377
16394
  }
16378
16395
  Ke(() => {
16379
16396
  I.on("click", (V) => {
16380
- V.tag.id === a.id && L();
16397
+ var z, R, G;
16398
+ !((G = (R = (z = a.tag3DContentSvelte) == null ? void 0 : z.domContainer) == null ? void 0 : R.css3DObject) != null && G.opacityMesh) || V.tag.id === a.id && L();
16381
16399
  }), k = setInterval(
16382
16400
  () => {
16383
16401
  r && (w == null || w.goToNext());
@@ -16387,18 +16405,18 @@ function zA(i, t, e) {
16387
16405
  }), Pt(() => {
16388
16406
  clearInterval(k), I.off("click", L);
16389
16407
  });
16390
- function x(V, B) {
16391
- i.$$.not_equal(A[B], V) && (A[B] = V, e(8, A));
16408
+ function x(V, z) {
16409
+ i.$$.not_equal(A[z], V) && (A[z] = V, e(8, A));
16392
16410
  }
16393
- function O(V) {
16411
+ function F(V) {
16394
16412
  Be[V ? "unshift" : "push"](() => {
16395
16413
  w = V, e(12, w);
16396
16414
  });
16397
16415
  }
16398
- const W = (V) => {
16416
+ const _ = (V) => {
16399
16417
  n || C.set({ currentMediaElement: null }), e(11, b = V.detail);
16400
16418
  };
16401
- function _(V) {
16419
+ function O(V) {
16402
16420
  i.$$.not_equal(A[0], V) && (A[0] = V, e(8, A));
16403
16421
  }
16404
16422
  return i.$$set = (V) => {
@@ -16424,9 +16442,9 @@ function zA(i, t, e) {
16424
16442
  p,
16425
16443
  v,
16426
16444
  x,
16427
- O,
16428
- W,
16429
- _
16445
+ F,
16446
+ _,
16447
+ O
16430
16448
  ];
16431
16449
  }
16432
16450
  class Xl extends oe {
@@ -16476,7 +16494,7 @@ function Nr(i) {
16476
16494
  let c = i[2] && Xr(i), u = i[1] && Yr(i);
16477
16495
  return {
16478
16496
  c() {
16479
- K(t.$$.fragment), e = $(), n = z("div"), K(o.$$.fragment), s = $(), c && c.c(), r = $(), u && u.c(), a = me(), y(n, "class", "line svelte-1f7m1lj");
16497
+ K(t.$$.fragment), e = $(), n = B("div"), K(o.$$.fragment), s = $(), c && c.c(), r = $(), u && u.c(), a = pe(), y(n, "class", "line svelte-1f7m1lj");
16480
16498
  },
16481
16499
  m(h, d) {
16482
16500
  J(t, h, d), M(h, e, d), M(h, n, d), J(o, n, null), M(h, s, d), c && c.m(h, d), M(h, r, d), u && u.m(h, d), M(h, a, d), l = !0;
@@ -16512,7 +16530,7 @@ function Xr(i) {
16512
16530
  }
16513
16531
  }), {
16514
16532
  c() {
16515
- t = z("div"), K(e.$$.fragment), y(t, "class", "text svelte-1f7m1lj");
16533
+ t = B("div"), K(e.$$.fragment), y(t, "class", "text svelte-1f7m1lj");
16516
16534
  },
16517
16535
  m(o, s) {
16518
16536
  M(o, t, s), J(e, t, null), n = !0;
@@ -16551,7 +16569,7 @@ function Yr(i) {
16551
16569
  }
16552
16570
  }), {
16553
16571
  c() {
16554
- t = z("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-1f7m1lj");
16572
+ t = B("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-1f7m1lj");
16555
16573
  },
16556
16574
  m(o, s) {
16557
16575
  M(o, t, s), J(e, t, null), n = !0;
@@ -16575,7 +16593,7 @@ function jA(i) {
16575
16593
  let t, e, n = i[0].state && Nr(i);
16576
16594
  return {
16577
16595
  c() {
16578
- n && n.c(), t = me();
16596
+ n && n.c(), t = pe();
16579
16597
  },
16580
16598
  m(o, s) {
16581
16599
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -16625,7 +16643,7 @@ function Jr(i) {
16625
16643
  let t, e;
16626
16644
  return {
16627
16645
  c() {
16628
- t = z("img"), y(t, "class", "headerImage svelte-sezqcq"), Ye(t.src, e = i[3].headerPictureUrl) || y(t, "src", e), y(t, "alt", "");
16646
+ t = B("img"), y(t, "class", "headerImage svelte-sezqcq"), Ye(t.src, e = i[3].headerPictureUrl) || y(t, "src", e), y(t, "alt", "");
16629
16647
  },
16630
16648
  m(n, o) {
16631
16649
  M(n, t, o);
@@ -16647,7 +16665,7 @@ function Zr(i) {
16647
16665
  l[c] = $r(Ur(i, a, c));
16648
16666
  return {
16649
16667
  c() {
16650
- t = z("div"), e = z("div");
16668
+ t = B("div"), e = B("div");
16651
16669
  for (let c = 0; c < r.length; c += 1)
16652
16670
  r[c].c();
16653
16671
  n = $();
@@ -16697,7 +16715,7 @@ function Kr(i) {
16697
16715
  let t, e = i[0] + "", n;
16698
16716
  return {
16699
16717
  c() {
16700
- t = z("div"), n = ke(e), y(t, "class", "tag primary-tag svelte-sezqcq"), T(t, "min-width", zo);
16718
+ t = B("div"), n = ke(e), y(t, "class", "tag primary-tag svelte-sezqcq"), T(t, "min-width", zo);
16701
16719
  },
16702
16720
  m(o, s) {
16703
16721
  M(o, t, s), j(t, n);
@@ -16714,7 +16732,7 @@ function $r(i) {
16714
16732
  let t, e = i[0] + "", n;
16715
16733
  return {
16716
16734
  c() {
16717
- t = z("div"), n = ke(e), y(t, "class", "tag secondary-tag svelte-sezqcq"), T(t, "min-width", zo);
16735
+ t = B("div"), n = ke(e), y(t, "class", "tag secondary-tag svelte-sezqcq"), T(t, "min-width", zo);
16718
16736
  },
16719
16737
  m(o, s) {
16720
16738
  M(o, t, s), j(t, n);
@@ -16731,7 +16749,7 @@ function ea(i) {
16731
16749
  let t, e, n = i[7] && ta(i), o = i[3].highlightText && ia(i);
16732
16750
  return {
16733
16751
  c() {
16734
- t = z("div"), n && n.c(), e = $(), o && o.c(), y(t, "class", "footer svelte-sezqcq");
16752
+ t = B("div"), n && n.c(), e = $(), o && o.c(), y(t, "class", "footer svelte-sezqcq");
16735
16753
  },
16736
16754
  m(s, r) {
16737
16755
  M(s, t, r), n && n.m(t, null), j(t, e), o && o.m(t, null);
@@ -16748,7 +16766,7 @@ function ta(i) {
16748
16766
  let t, e, n = i[3].price.value + "", o, s, r = i[3].price.unit && na(i);
16749
16767
  return {
16750
16768
  c() {
16751
- t = z("div"), e = z("span"), o = ke(n), s = $(), r && r.c(), y(e, "class", "value svelte-sezqcq"), y(t, "class", "price svelte-sezqcq");
16769
+ t = B("div"), e = B("span"), o = ke(n), s = $(), r && r.c(), y(e, "class", "value svelte-sezqcq"), y(t, "class", "price svelte-sezqcq");
16752
16770
  },
16753
16771
  m(a, l) {
16754
16772
  M(a, t, l), j(t, e), j(e, o), j(t, s), r && r.m(t, null);
@@ -16765,7 +16783,7 @@ function na(i) {
16765
16783
  let t, e = i[3].price.unit + "", n;
16766
16784
  return {
16767
16785
  c() {
16768
- t = z("span"), n = ke(e), y(t, "class", "unit svelte-sezqcq");
16786
+ t = B("span"), n = ke(e), y(t, "class", "unit svelte-sezqcq");
16769
16787
  },
16770
16788
  m(o, s) {
16771
16789
  M(o, t, s), j(t, n);
@@ -16782,7 +16800,7 @@ function ia(i) {
16782
16800
  let t, e, n, o, s = i[3].highlightText + "", r, a, l;
16783
16801
  return {
16784
16802
  c() {
16785
- t = z("div"), e = z("div"), n = $(), o = z("span"), r = ke(s), a = $(), l = z("div"), l.innerHTML = '<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>', y(e, "class", "gap svelte-sezqcq"), y(o, "class", "text svelte-sezqcq"), y(t, "class", "goto-button goto-icon svelte-sezqcq"), y(l, "class", "arrow-wrapper svelte-sezqcq");
16803
+ t = B("div"), e = B("div"), n = $(), o = B("span"), r = ke(s), a = $(), l = B("div"), l.innerHTML = '<svg class="arrow svelte-sezqcq" viewBox="0 0 6 9"><g transform="translate(-3, -2)" fill-rule="nonzero" class="svelte-sezqcq"><path d="M4.43868724,2.12056563 C4.28121824,1.95989074 4.02582143,1.95979988 3.86824251,2.1203627 C3.72498894,2.26632889 3.71189225,2.49481723 3.82900374,2.65587166 L6.57092402,5.92894326 C6.72651763,6.11470411 6.72651763,6.38529589 6.57092402,6.57105674 L3.86804348,9.79798499 C3.72488984,9.94405307 3.71194952,10.1725507 3.8291712,10.3335217 L3.86824251,10.3796373 C4.01149607,10.5256035 4.23559087,10.5387981 4.39346025,10.4192733 L4.43868724,10.3794344 L8.1144599,6.5985342 C8.30312347,6.40447482 8.30312347,6.09552518 8.1144599,5.9014658 L4.43868724,2.12056563 Z" class="svelte-sezqcq"></path></g></svg>', y(e, "class", "gap svelte-sezqcq"), y(o, "class", "text svelte-sezqcq"), y(t, "class", "goto-button goto-icon svelte-sezqcq"), y(l, "class", "arrow-wrapper svelte-sezqcq");
16786
16804
  },
16787
16805
  m(c, u) {
16788
16806
  M(c, t, u), j(t, e), j(t, n), j(t, o), j(o, r), M(c, a, u), M(c, l, u);
@@ -16811,15 +16829,15 @@ function RA(i) {
16811
16829
  let A = i[3].headerPictureUrl && Jr(i), b = ((k = i[2].length) != null ? k : 0) + ((I = i[5].length) != null ? I : 0) > 0 && Zr(i), w = (i[7] || i[3].highlightText) && ea(i);
16812
16830
  return {
16813
16831
  c() {
16814
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = $(), r = z("div"), A && A.c(), a = $(), l = z("div"), c = z("div"), u = z("div"), d = ke(h), m = $(), b && b.c(), g = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", p = Pe(`marketing ${i[6]}`) + " svelte-sezqcq"), U(t, "unfolded", i[4]), U(t, "folded", i[8]);
16832
+ t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = $(), r = B("div"), A && A.c(), a = $(), l = B("div"), c = B("div"), u = B("div"), d = ke(h), m = $(), b && b.c(), g = $(), w && w.c(), y(o, "class", "line svelte-sezqcq"), T(o, "transition-delay", i[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), y(u, "class", "text svelte-sezqcq"), y(c, "class", "title svelte-sezqcq"), y(l, "class", "title-wrapper svelte-sezqcq"), y(r, "class", "content svelte-sezqcq"), T(r, "max-width", it(i[9])), T(r, "transition-delay", i[4] ? $n + ei + "ms" : "0ms"), y(t, "class", p = Pe(`marketing ${i[6]}`) + " svelte-sezqcq"), U(t, "unfolded", i[4]), U(t, "folded", i[8]);
16815
16833
  },
16816
16834
  m(C, L) {
16817
16835
  M(C, t, L), J(e, t, null), j(t, n), j(t, o), j(t, s), j(t, r), A && A.m(r, null), j(r, a), j(r, l), j(l, c), j(c, u), j(u, d), j(r, m), b && b.m(r, null), j(r, g), w && w.m(r, null), v = !0;
16818
16836
  },
16819
16837
  p(C, [L]) {
16820
- var O, W;
16838
+ var F, _;
16821
16839
  const x = {};
16822
- L & 16 && (x.visible = C[4]), e.$set(x), L & 16 && T(o, "transition-delay", C[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), C[3].headerPictureUrl ? A ? A.p(C, L) : (A = Jr(C), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!v || L & 8) && h !== (h = C[3].title + "") && Se(d, h), ((O = C[2].length) != null ? O : 0) + ((W = C[5].length) != null ? W : 0) > 0 ? b ? b.p(C, L) : (b = Zr(C), b.c(), b.m(r, g)) : b && (b.d(1), b = null), C[7] || C[3].highlightText ? w ? w.p(C, L) : (w = ea(C), w.c(), w.m(r, null)) : w && (w.d(1), w = null), L & 16 && T(r, "transition-delay", C[4] ? $n + ei + "ms" : "0ms"), (!v || L & 64 && p !== (p = Pe(`marketing ${C[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!v || L & 80) && U(t, "unfolded", C[4]), (!v || L & 320) && U(t, "folded", C[8]);
16840
+ L & 16 && (x.visible = C[4]), e.$set(x), L & 16 && T(o, "transition-delay", C[4] ? $n + "ms" : ei + sa - oa - 40 + "ms"), C[3].headerPictureUrl ? A ? A.p(C, L) : (A = Jr(C), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!v || L & 8) && h !== (h = C[3].title + "") && Se(d, h), ((F = C[2].length) != null ? F : 0) + ((_ = C[5].length) != null ? _ : 0) > 0 ? b ? b.p(C, L) : (b = Zr(C), b.c(), b.m(r, g)) : b && (b.d(1), b = null), C[7] || C[3].highlightText ? w ? w.p(C, L) : (w = ea(C), w.c(), w.m(r, null)) : w && (w.d(1), w = null), L & 16 && T(r, "transition-delay", C[4] ? $n + ei + "ms" : "0ms"), (!v || L & 64 && p !== (p = Pe(`marketing ${C[6]}`) + " svelte-sezqcq")) && y(t, "class", p), (!v || L & 80) && U(t, "unfolded", C[4]), (!v || L & 320) && U(t, "folded", C[8]);
16823
16841
  },
16824
16842
  i(C) {
16825
16843
  v || (P(e.$$.fragment, C), v = !0);
@@ -16889,7 +16907,7 @@ class GA extends Audio {
16889
16907
  return this.sharedAudioCurrentTime;
16890
16908
  }
16891
16909
  play() {
16892
- return F(this, null, function* () {
16910
+ return H(this, null, function* () {
16893
16911
  var n, o, s;
16894
16912
  if (this.tryplaying)
16895
16913
  return;
@@ -16971,10 +16989,10 @@ function _A(i) {
16971
16989
  const s = i[8].default, r = $t(s, i, i[7], null);
16972
16990
  return {
16973
16991
  c() {
16974
- t = z("div"), r && r.c(), y(t, "class", "audio svelte-13e7hxv"), y(t, "style", i[0]);
16992
+ t = B("div"), r && r.c(), y(t, "class", "audio svelte-13e7hxv"), y(t, "style", i[0]);
16975
16993
  },
16976
16994
  m(a, l) {
16977
- M(a, t, l), r && r.m(t, null), e = !0, n || (o = ge(t, "click", Fa(i[1])), n = !0);
16995
+ M(a, t, l), r && r.m(t, null), e = !0, n || (o = me(t, "click", Fa(i[1])), n = !0);
16978
16996
  },
16979
16997
  p(a, [l]) {
16980
16998
  r && r.p && (!e || l & 128) && tn(
@@ -17123,7 +17141,7 @@ function YA(i) {
17123
17141
  let t, e, n, o, s, r = i[1] && ra();
17124
17142
  return {
17125
17143
  c() {
17126
- t = z("div"), r && r.c(), e = $(), n = z("div"), o = z("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', y(o, "class", "sound-wave__container svelte-srt2pi"), y(n, "class", "audio-icon svelte-srt2pi"), U(n, "playing", i[0]), y(t, "class", "audio-icon__wrapper svelte-srt2pi"), y(t, "style", i[2]), T(t, "width", i[5]), T(t, "height", i[5]);
17144
+ t = B("div"), r && r.c(), e = $(), n = B("div"), o = B("div"), o.innerHTML = '<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>', y(o, "class", "sound-wave__container svelte-srt2pi"), y(n, "class", "audio-icon svelte-srt2pi"), U(n, "playing", i[0]), y(t, "class", "audio-icon__wrapper svelte-srt2pi"), y(t, "style", i[2]), T(t, "width", i[5]), T(t, "height", i[5]);
17127
17145
  },
17128
17146
  m(a, l) {
17129
17147
  M(a, t, l), r && r.m(t, null), j(t, e), j(t, n), j(n, o), i[7](o), i[8](t), s = !0;
@@ -17222,13 +17240,13 @@ function aa(i) {
17222
17240
  }
17223
17241
  }), {
17224
17242
  c() {
17225
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = z("div"), r = z("div"), p && p.c(), a = $(), l = z("div"), K(c.$$.fragment), u = $(), K(h.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), T(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), U(t, "unfolded", i[6]);
17243
+ t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = B("div"), r = B("div"), p && p.c(), a = $(), l = B("div"), K(c.$$.fragment), u = $(), K(h.$$.fragment), y(r, "class", "audio-icon svelte-1s6gk4a"), T(l, "display", "inline-block"), y(s, "class", "wrapper svelte-1s6gk4a"), y(o, "class", "content svelte-1s6gk4a"), y(t, "class", "audio-tag svelte-1s6gk4a"), U(t, "unfolded", i[6]);
17226
17244
  },
17227
17245
  m(b, w) {
17228
17246
  M(b, t, w), J(e, t, null), j(t, n), j(t, o), j(o, s), j(s, r), p && p.m(r, null), j(s, a), j(s, l), J(c, l, null), j(t, u), J(h, t, null), d = !0, m || (g = [
17229
- ge(l, "click", i[7]),
17247
+ me(l, "click", i[7]),
17230
17248
  ct(rn.call(null, l)),
17231
- ge(l, "clientWidth", i[12])
17249
+ me(l, "clientWidth", i[12])
17232
17250
  ], m = !0);
17233
17251
  },
17234
17252
  p(b, w) {
@@ -17271,7 +17289,7 @@ function la(i) {
17271
17289
  }
17272
17290
  }), o.$on("play", i[8]), o.$on("pause", i[9]), o.$on("error", i[10]), o.$on("audioRef", i[11]), {
17273
17291
  c() {
17274
- t = z("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "audio svelte-1s6gk4a");
17292
+ t = B("div"), K(e.$$.fragment), n = $(), K(o.$$.fragment), y(t, "class", "audio svelte-1s6gk4a");
17275
17293
  },
17276
17294
  m(l, c) {
17277
17295
  M(l, t, c), J(e, t, null), j(t, n), J(o, t, null), a = !0;
@@ -17307,7 +17325,7 @@ function JA(i) {
17307
17325
  let t, e, n;
17308
17326
  return e = new Ul({ props: { playing: i[2] } }), {
17309
17327
  c() {
17310
- t = z("div"), K(e.$$.fragment), y(t, "class", "audio-icon__wrapper svelte-1s6gk4a");
17328
+ t = B("div"), K(e.$$.fragment), y(t, "class", "audio-icon__wrapper svelte-1s6gk4a");
17311
17329
  },
17312
17330
  m(o, s) {
17313
17331
  M(o, t, s), J(e, t, null), n = !0;
@@ -17331,7 +17349,7 @@ function ZA(i) {
17331
17349
  let t, e, n = i[0].state && aa(i);
17332
17350
  return {
17333
17351
  c() {
17334
- n && n.c(), t = me();
17352
+ n && n.c(), t = pe();
17335
17353
  },
17336
17354
  m(o, s) {
17337
17355
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -17412,7 +17430,7 @@ function ca(i) {
17412
17430
  }
17413
17431
  }), n.$on("play", i[6]), n.$on("pause", i[7]), n.$on("error", i[8]), n.$on("timeupdate", i[9]), n.$on("duration", i[10]), n.$on("audioRef", i[11]), {
17414
17432
  c() {
17415
- t = z("div"), e = z("div"), K(n.$$.fragment), y(e, "class", "audio-tag svelte-58hfjf"), T(e, "background-color", i[4].bgColor), T(e, "color", i[4].fontColor), y(t, "class", "audio-tag__wrapper svelte-58hfjf");
17433
+ t = B("div"), e = B("div"), K(n.$$.fragment), y(e, "class", "audio-tag svelte-58hfjf"), T(e, "background-color", i[4].bgColor), T(e, "color", i[4].fontColor), y(t, "class", "audio-tag__wrapper svelte-58hfjf");
17416
17434
  },
17417
17435
  m(s, r) {
17418
17436
  M(s, t, r), j(t, e), J(n, e, null), o = !0;
@@ -17459,7 +17477,7 @@ function nv(i) {
17459
17477
  }
17460
17478
  }), {
17461
17479
  c() {
17462
- t = z("div"), e = z("div"), K(n.$$.fragment), o = $(), s = z("div"), K(r.$$.fragment), y(e, "class", "audio-icon__wrapper svelte-58hfjf"), y(s, "class", "text svelte-58hfjf"), y(t, "class", "audio__inner svelte-58hfjf");
17480
+ t = B("div"), e = B("div"), K(n.$$.fragment), o = $(), s = B("div"), K(r.$$.fragment), y(e, "class", "audio-icon__wrapper svelte-58hfjf"), y(s, "class", "text svelte-58hfjf"), y(t, "class", "audio__inner svelte-58hfjf");
17463
17481
  },
17464
17482
  m(l, c) {
17465
17483
  M(l, t, c), j(t, e), J(n, e, null), j(t, o), j(t, s), J(r, s, null), a = !0;
@@ -17485,7 +17503,7 @@ function iv(i) {
17485
17503
  let t, e, n = i[0].state && ca(i);
17486
17504
  return {
17487
17505
  c() {
17488
- n && n.c(), t = me();
17506
+ n && n.c(), t = pe();
17489
17507
  },
17490
17508
  m(o, s) {
17491
17509
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -17614,7 +17632,7 @@ function lv(i) {
17614
17632
  }
17615
17633
  return ~(t = a(i)) && (e = r[t] = s[t](i)), {
17616
17634
  c() {
17617
- e && e.c(), n = me();
17635
+ e && e.c(), n = pe();
17618
17636
  },
17619
17637
  m(l, c) {
17620
17638
  ~t && r[t].m(l, c), M(l, n, c), o = !0;
@@ -17678,7 +17696,7 @@ function ua(i) {
17678
17696
  }
17679
17697
  }), {
17680
17698
  c() {
17681
- t = z("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-10cw0el");
17699
+ t = B("div"), K(e.$$.fragment), y(t, "class", "media-wrapper svelte-10cw0el");
17682
17700
  },
17683
17701
  m(s, r) {
17684
17702
  M(s, t, r), J(e, t, null), n = !0;
@@ -17709,7 +17727,7 @@ function hv(i) {
17709
17727
  let t, e, n = i[0].state && i[5] && ua(i);
17710
17728
  return {
17711
17729
  c() {
17712
- n && n.c(), t = me();
17730
+ n && n.c(), t = pe();
17713
17731
  },
17714
17732
  m(o, s) {
17715
17733
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -17748,7 +17766,7 @@ class mv extends oe {
17748
17766
  }
17749
17767
  }
17750
17768
  function ql(i) {
17751
- return F(this, null, function* () {
17769
+ return H(this, null, function* () {
17752
17770
  return new Promise((t, e) => {
17753
17771
  if (!i) {
17754
17772
  e(Error("url is empty"));
@@ -17760,7 +17778,7 @@ function ql(i) {
17760
17778
  });
17761
17779
  }
17762
17780
  function pv(i) {
17763
- return F(this, null, function* () {
17781
+ return H(this, null, function* () {
17764
17782
  const { url: t, ratio: e = 3 } = i;
17765
17783
  i.ratio || console.warn("Tag icon ratio is not set, default is 3");
17766
17784
  const { width: n, height: o } = yield ql(t);
@@ -17771,7 +17789,7 @@ function pv(i) {
17771
17789
  });
17772
17790
  }
17773
17791
  function gv(i) {
17774
- return F(this, null, function* () {
17792
+ return H(this, null, function* () {
17775
17793
  const { steps: t, url: e, ratio: n = 3, fps: o = 24 } = i;
17776
17794
  if (!t)
17777
17795
  throw new Error("KeyframeIcon requires steps");
@@ -17800,7 +17818,7 @@ function fa(i) {
17800
17818
  let r = s(i), a = r(i);
17801
17819
  return {
17802
17820
  c() {
17803
- t = z("div"), o && o.c(), e = $(), a.c(), y(t, "class", "icon"), T(t, "width", i[1]);
17821
+ t = B("div"), o && o.c(), e = $(), a.c(), y(t, "class", "icon"), T(t, "width", i[1]);
17804
17822
  },
17805
17823
  m(l, c) {
17806
17824
  M(l, t, c), o && o.m(t, null), j(t, e), a.m(t, null), n = !0;
@@ -17866,7 +17884,7 @@ function vv(i) {
17866
17884
  n
17867
17885
  ), {
17868
17886
  c() {
17869
- t = me(), n.block.c();
17887
+ t = pe(), n.block.c();
17870
17888
  },
17871
17889
  m(o, s) {
17872
17890
  M(o, t, s), n.block.m(o, n.anchor = s), n.mount = () => t.parentNode, n.anchor = t;
@@ -17903,7 +17921,7 @@ function bv(i) {
17903
17921
  n
17904
17922
  ), {
17905
17923
  c() {
17906
- t = me(), n.block.c();
17924
+ t = pe(), n.block.c();
17907
17925
  },
17908
17926
  m(o, s) {
17909
17927
  M(o, t, s), n.block.m(o, n.anchor = s), n.mount = () => t.parentNode, n.anchor = t;
@@ -17929,7 +17947,7 @@ function wv(i) {
17929
17947
  let t, e;
17930
17948
  return {
17931
17949
  c() {
17932
- t = z("img"), y(t, "alt", "tag-icon"), y(t, "class", "icon-image svelte-316sq3"), Ye(t.src, e = i[7]) || y(t, "src", e), T(t, "width", it(Ht({
17950
+ t = B("img"), y(t, "alt", "tag-icon"), y(t, "class", "icon-image svelte-316sq3"), Ye(t.src, e = i[7]) || y(t, "src", e), T(t, "width", it(Ht({
17933
17951
  originWidth: i[1],
17934
17952
  scale: i[4],
17935
17953
  wantedWidth: i[3]
@@ -17961,7 +17979,7 @@ function Pv(i) {
17961
17979
  let t, e = `url(${i[7]})`, n = `steps(${i[17]}, jump-none)`;
17962
17980
  return {
17963
17981
  c() {
17964
- t = z("div"), y(t, "class", "icon-keyframe svelte-316sq3"), T(t, "width", it(Ht({
17982
+ t = B("div"), y(t, "class", "icon-keyframe svelte-316sq3"), T(t, "width", it(Ht({
17965
17983
  originWidth: i[1],
17966
17984
  originHeight: i[16],
17967
17985
  scale: i[4],
@@ -18001,7 +18019,7 @@ function kv(i) {
18001
18019
  let t, e, n = i[9] && fa(i);
18002
18020
  return {
18003
18021
  c() {
18004
- n && n.c(), t = me();
18022
+ n && n.c(), t = pe();
18005
18023
  },
18006
18024
  m(o, s) {
18007
18025
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -18030,13 +18048,13 @@ function xv(i, t, e) {
18030
18048
  let n, o, s, r, a, l, c, u, h, { width: d = null } = t, { icon: m = null } = t, { shadow: g = !1 } = t;
18031
18049
  const p = yi();
18032
18050
  function v(w) {
18033
- return F(this, null, function* () {
18051
+ return H(this, null, function* () {
18034
18052
  const k = yield gv(w);
18035
18053
  return p("iconLoaded", k), k;
18036
18054
  });
18037
18055
  }
18038
18056
  function A(w) {
18039
- return F(this, null, function* () {
18057
+ return H(this, null, function* () {
18040
18058
  if (typeof h == "number")
18041
18059
  return fe(Q({}, w), { width: h });
18042
18060
  const k = yield pv(w);
@@ -18098,7 +18116,7 @@ function pa(i) {
18098
18116
  }
18099
18117
  }), {
18100
18118
  c() {
18101
- t = z("div"), K(e.$$.fragment), n = $(), o = z("div"), s = ke(i[1]), y(o, "class", "text svelte-e58ijk"), y(t, "class", "text-wrapper svelte-e58ijk");
18119
+ t = B("div"), K(e.$$.fragment), n = $(), o = B("div"), s = ke(i[1]), y(o, "class", "text svelte-e58ijk"), y(t, "class", "text-wrapper svelte-e58ijk");
18102
18120
  },
18103
18121
  m(a, l) {
18104
18122
  M(a, t, l), J(e, t, null), j(t, n), j(t, o), j(o, s), r = !0;
@@ -18125,7 +18143,7 @@ function Lv(i) {
18125
18143
  let s = i[1] && i[2] && pa(i);
18126
18144
  return {
18127
18145
  c() {
18128
- t = z("div"), K(e.$$.fragment), n = $(), s && s.c(), y(t, "class", "wrapper svelte-e58ijk");
18146
+ t = B("div"), K(e.$$.fragment), n = $(), s && s.c(), y(t, "class", "wrapper svelte-e58ijk");
18129
18147
  },
18130
18148
  m(r, a) {
18131
18149
  M(r, t, a), J(e, t, null), j(t, n), s && s.m(t, null), o = !0;
@@ -18171,7 +18189,7 @@ function ga(i) {
18171
18189
  let t, e = i[0].element + "", n;
18172
18190
  return {
18173
18191
  c() {
18174
- t = new ri(!1), n = me(), t.a = n;
18192
+ t = new ri(!1), n = pe(), t.a = n;
18175
18193
  },
18176
18194
  m(o, s) {
18177
18195
  t.m(e, o, s), M(o, n, s);
@@ -18188,7 +18206,7 @@ function zv(i) {
18188
18206
  let t, e = typeof i[0].element == "string" && ga(i);
18189
18207
  return {
18190
18208
  c() {
18191
- t = z("div"), e && e.c(), y(t, "class", "customElement__container svelte-kzl2aj");
18209
+ t = B("div"), e && e.c(), y(t, "class", "customElement__container svelte-kzl2aj");
18192
18210
  },
18193
18211
  m(n, o) {
18194
18212
  M(n, t, o), e && e.m(t, null), i[2](t);
@@ -18239,7 +18257,7 @@ function Ov(i) {
18239
18257
  let t, e;
18240
18258
  return {
18241
18259
  c() {
18242
- t = z("div"), y(t, "data-info", "tag content is keep folded"), y(t, "data-id", e = i[1].id);
18260
+ t = B("div"), y(t, "data-info", "tag content is keep folded"), y(t, "data-id", e = i[1].id);
18243
18261
  },
18244
18262
  m(n, o) {
18245
18263
  M(n, t, o);
@@ -18270,10 +18288,10 @@ function Qv(i) {
18270
18288
  return ~(o = m(i)) && (s = d[o] = h[o](i)), {
18271
18289
  c() {
18272
18290
  var g;
18273
- t = z("div"), e = z("div"), n = z("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (g = i[1].state) == null ? void 0 : g.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", r = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", a = i[1].id), U(t, "disable", i[1].enabled === !1), U(t, "hide", i[4]), U(t, "withAnimation", i[0]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
18291
+ t = B("div"), e = B("div"), n = B("div"), s && s.c(), y(n, "class", "content svelte-1r4fqvg"), U(n, "unfolded", (g = i[1].state) == null ? void 0 : g.unfolded), y(e, "class", "content__wrapper svelte-1r4fqvg"), y(t, "class", r = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", a = i[1].id), U(t, "disable", i[1].enabled === !1), U(t, "hide", i[4]), U(t, "withAnimation", i[0]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), T(t, "width", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0), T(t, "height", i[1].stickType === "Plane" || i[1].contentType === "MediaModel" ? "100%" : 0);
18274
18292
  },
18275
18293
  m(g, p) {
18276
- M(g, t, p), j(t, e), j(e, n), ~o && d[o].m(n, null), l = !0, c || (u = ge(t, "click", Fa(i[14])), c = !0);
18294
+ M(g, t, p), j(t, e), j(e, n), ~o && d[o].m(n, null), l = !0, c || (u = me(t, "click", Fa(i[14])), c = !0);
18277
18295
  },
18278
18296
  p(g, p) {
18279
18297
  var A;
@@ -18299,10 +18317,10 @@ function Rv(i) {
18299
18317
  props: { tag: De(i[1]) }
18300
18318
  }), {
18301
18319
  c() {
18302
- t = z("div"), K(e.$$.fragment), y(t, "class", n = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", o = i[1].id), U(t, "custom-tag-disable", i[1].enabled === !1), U(t, "custom-tag-hide", i[4]);
18320
+ t = B("div"), K(e.$$.fragment), y(t, "class", n = Pe(Oe("content__container", i[1].className)) + " svelte-1r4fqvg"), y(t, "data-id", o = i[1].id), U(t, "custom-tag-disable", i[1].enabled === !1), U(t, "custom-tag-hide", i[4]);
18303
18321
  },
18304
18322
  m(l, c) {
18305
- M(l, t, c), J(e, t, null), s = !0, r || (a = ge(t, "click", i[13]), r = !0);
18323
+ M(l, t, c), J(e, t, null), s = !0, r || (a = me(t, "click", i[13]), r = !0);
18306
18324
  },
18307
18325
  p(l, c) {
18308
18326
  const u = {};
@@ -18483,7 +18501,7 @@ function Xv(i) {
18483
18501
  }
18484
18502
  return t = a(i), e = r[t] = s[t](i), {
18485
18503
  c() {
18486
- e.c(), n = me();
18504
+ e.c(), n = pe();
18487
18505
  },
18488
18506
  m(l, c) {
18489
18507
  r[t].m(l, c), M(l, n, c), o = !0;
@@ -18513,15 +18531,15 @@ function Yv(i, t, e) {
18513
18531
  I ? h.emit("exposure", { id: r, type: "start" }) : h.emit("exposure", { id: r, type: "end" });
18514
18532
  }
18515
18533
  function b(I, C, L) {
18516
- var x, O;
18517
- return !(!C.visible || !C.enabled || !L.visible || !((x = I.state) != null && x.visible) || ((O = I.temporaryState) == null ? void 0 : O.visible) === !1 || Qe(I) && !I.mediaVisible);
18534
+ var x, F;
18535
+ return !(!C.visible || !C.enabled || !L.visible || !((x = I.state) != null && x.visible) || ((F = I.temporaryState) == null ? void 0 : F.visible) === !1 || Qe(I) && !I.mediaVisible);
18518
18536
  }
18519
18537
  const w = (I) => h.emit("click", { event: I, target: "TagContent", tag: u }), k = (I) => h.emit("click", { event: I, target: "TagContent", tag: u });
18520
18538
  return i.$$set = (I) => {
18521
18539
  "withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, u = I.tag), "hooks" in I && e(2, h = I.hooks), "state" in I && e(5, d = I.state), "mediaStore" in I && e(6, m = I.mediaStore), "temporaryState" in I && e(7, g = I.temporaryState);
18522
18540
  }, i.$$.update = () => {
18523
- var I, C, L, x, O, W, _, V, B, R, G;
18524
- i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((L = u.state) == null ? void 0 : L.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== v && (e(9, v = n), n ? (O = (x = u.hooks).emit) == null || O.call(x, "unfolded") : (_ = u == null ? void 0 : (W = u.hooks).emit) == null || _.call(W, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (B = (V = u.hooks).emit) == null || B.call(V, "show") : (G = (R = u.hooks).emit) == null || G.call(R, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18541
+ var I, C, L, x, F, _, O, V, z, R, G;
18542
+ i.$$.dirty & 2 && e(11, n = (I = u.state) == null ? void 0 : I.unfolded), i.$$.dirty & 2 && e(10, o = (C = u.state) == null ? void 0 : C.visible), i.$$.dirty & 162 && e(12, s = d.visible && g.visible && ((L = u.state) == null ? void 0 : L.visible)), i.$$.dirty & 2 && (r = u.id), i.$$.dirty & 162 && e(4, a = !b(u, d, g)), i.$$.dirty & 4096 && A(s), i.$$.dirty & 3842 && u.hooks && (n !== void 0 && n !== v && (e(9, v = n), n ? (F = (x = u.hooks).emit) == null || F.call(x, "unfolded") : (O = u == null ? void 0 : (_ = u.hooks).emit) == null || O.call(_, "folded")), o !== void 0 && o !== p && (e(8, p = o), o ? (z = (V = u.hooks).emit) == null || z.call(V, "show") : (G = (R = u.hooks).emit) == null || G.call(R, "hide"))), i.$$.dirty & 2 && e(3, l = (() => !(typeof u.mergedConfig.unfoldedConfig == "object" && u.mergedConfig.unfoldedConfig.keep === "folded"))());
18525
18543
  }, [
18526
18544
  c,
18527
18545
  u,
@@ -18579,10 +18597,10 @@ function qv(i) {
18579
18597
  }
18580
18598
  }), c.$on("iconLoaded", i[7]), {
18581
18599
  c() {
18582
- t = z("div"), e = z("div"), n = $(), K(o.$$.fragment), s = $(), r = z("div"), a = $(), l = z("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), T(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), T(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), U(t, "unfolded", i[0]), U(t, "folded", i[3]);
18600
+ t = B("div"), e = B("div"), n = $(), K(o.$$.fragment), s = $(), r = B("div"), a = $(), l = B("div"), K(c.$$.fragment), y(e, "class", "tag-point-click-helper svelte-1jkrwn7"), y(r, "class", "tag-unfolded-point svelte-1jkrwn7"), T(r, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(l, "class", "tag-folded-point svelte-1jkrwn7"), T(l, "transition-delay", (i[3] ? i[5] : 0) + "ms"), y(t, "class", "tag-point-wrapper svelte-1jkrwn7"), U(t, "unfolded", i[0]), U(t, "folded", i[3]);
18583
18601
  },
18584
18602
  m(m, g) {
18585
- M(m, t, g), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, h || (d = ge(e, "click", i[4]), h = !0);
18603
+ M(m, t, g), j(t, e), j(t, n), J(o, t, null), j(t, s), j(t, r), j(t, a), j(t, l), J(c, l, null), u = !0, h || (d = me(e, "click", i[4]), h = !0);
18586
18604
  },
18587
18605
  p(m, [g]) {
18588
18606
  g & 8 && T(r, "transition-delay", (m[3] ? m[5] : 0) + "ms");
@@ -18661,7 +18679,7 @@ function $v(i) {
18661
18679
  let t;
18662
18680
  return {
18663
18681
  c() {
18664
- t = z("div"), y(t, "data-info", "tag content is disable");
18682
+ t = B("div"), y(t, "data-info", "tag content is disable");
18665
18683
  },
18666
18684
  m(e, n) {
18667
18685
  M(e, t, n);
@@ -18711,7 +18729,7 @@ function t1(i) {
18711
18729
  let t;
18712
18730
  return {
18713
18731
  c() {
18714
- t = z("div"), y(t, "data-info", "tag point is disable");
18732
+ t = B("div"), y(t, "data-info", "tag point is disable");
18715
18733
  },
18716
18734
  m(e, n) {
18717
18735
  M(e, t, n);
@@ -18761,7 +18779,7 @@ function i1(i) {
18761
18779
  }
18762
18780
  return r = v(i), a = p[r] = g[r](i), {
18763
18781
  c() {
18764
- t = z("div"), e = z("div"), o.c(), s = $(), a.c(), y(e, "class", l = Pe(Oe("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", c = i[1].contentType), T(e, "left", i[7]), T(e, "top", i[6]), T(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), U(t, "disable", i[10]), U(t, "hide", i[9]), U(t, "withAnimation", i[0]);
18782
+ t = B("div"), e = B("div"), o.c(), s = $(), a.c(), y(e, "class", l = Pe(Oe("wrapper", i[1].className ? `${i[1].className}__wrapper` : void 0)) + " svelte-pzwdws"), y(e, "data-tag-unfolded", i[8]), y(e, "data-tag-id", i[11]), y(e, "data-content-type", c = i[1].contentType), T(e, "left", i[7]), T(e, "top", i[6]), T(e, "z-index", i[5]), y(t, "class", "tag svelte-pzwdws"), y(t, "data-tag-id", i[11]), U(t, "unClickable", i[1].mergedConfig.clickable === !1), U(t, "disable", i[10]), U(t, "hide", i[9]), U(t, "withAnimation", i[0]);
18765
18783
  },
18766
18784
  m(A, b) {
18767
18785
  M(A, t, b), j(t, e), d[n].m(e, null), j(e, s), p[r].m(e, null), u = !0;
@@ -18793,8 +18811,8 @@ function o1(i, t, e) {
18793
18811
  return i.$$set = (b) => {
18794
18812
  "withAnimation" in b && e(0, d = b.withAnimation), "tag" in b && e(1, m = b.tag), "mediaStore" in b && e(2, g = b.mediaStore), "state" in b && e(3, p = b.state), "temporaryState" in b && e(4, v = b.temporaryState);
18795
18813
  }, i.$$.update = () => {
18796
- var b, w, k, I, C, L, x, O;
18797
- i.$$.dirty & 2 && e(13, n = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => m.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = m.id), i.$$.dirty & 2 && e(10, r = !((b = m.pointTagStyle) != null && b.leftPercent) || !((w = m.pointTagStyle) != null && w.topPercent) || m.enabled === !1 || !m.state), i.$$.dirty & 2 && e(9, a = !((k = m.state) != null && k.visible) || ((I = m.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (C = m.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(7, c = ((L = m.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = m.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (O = m.state) != null && O.unfolded ? 1 : 0);
18814
+ var b, w, k, I, C, L, x, F;
18815
+ i.$$.dirty & 2 && e(13, n = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), i.$$.dirty & 2 && e(12, o = (() => m.stickType === "2DPoint")()), i.$$.dirty & 2 && e(11, s = m.id), i.$$.dirty & 2 && e(10, r = !((b = m.pointTagStyle) != null && b.leftPercent) || !((w = m.pointTagStyle) != null && w.topPercent) || m.enabled === !1 || !m.state), i.$$.dirty & 2 && e(9, a = !((k = m.state) != null && k.visible) || ((I = m.temporaryState) == null ? void 0 : I.visible) === !1), i.$$.dirty & 2 && e(8, l = (C = m.state) == null ? void 0 : C.unfolded), i.$$.dirty & 2 && e(7, c = ((L = m.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(6, u = ((x = m.pointTagStyle) == null ? void 0 : x.topPercent) + "%"), i.$$.dirty & 2 && e(5, h = (F = m.state) != null && F.unfolded ? 1 : 0);
18798
18816
  }, [
18799
18817
  d,
18800
18818
  m,
@@ -18848,7 +18866,7 @@ function va(i) {
18848
18866
  }
18849
18867
  return {
18850
18868
  c() {
18851
- t = z("div");
18869
+ t = B("div");
18852
18870
  for (let a = 0; a < e.length; a += 1)
18853
18871
  e[a].c();
18854
18872
  y(t, "class", "tag--container svelte-uq11d5"), U(t, "hide", !i[3].visible || !i[4].visible), U(t, "withAnimation", i[0]);
@@ -18895,7 +18913,7 @@ function ba(i, t) {
18895
18913
  key: i,
18896
18914
  first: null,
18897
18915
  c() {
18898
- e = me(), K(n.$$.fragment), this.first = e;
18916
+ e = pe(), K(n.$$.fragment), this.first = e;
18899
18917
  },
18900
18918
  m(s, r) {
18901
18919
  M(s, e, r), J(n, s, r), o = !0;
@@ -18920,7 +18938,7 @@ function a1(i) {
18920
18938
  let t, e, n = i[3].enabled && va(i);
18921
18939
  return {
18922
18940
  c() {
18923
- n && n.c(), t = me();
18941
+ n && n.c(), t = pe();
18924
18942
  },
18925
18943
  m(o, s) {
18926
18944
  n && n.m(o, s), M(o, t, s), e = !0;
@@ -18988,7 +19006,7 @@ class h1 extends fg {
18988
19006
  f(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
18989
19007
  f(this, "temporaryState", { visible: !0 });
18990
19008
  f(this, "TagContainerSvelte");
18991
- f(this, "loadModel", (e) => F(this, null, function* () {
19009
+ f(this, "loadModel", (e) => H(this, null, function* () {
18992
19010
  var l;
18993
19011
  const n = e.data.modelUrl;
18994
19012
  if (!n)
@@ -19061,7 +19079,7 @@ class h1 extends fg {
19061
19079
  var d;
19062
19080
  if (u.css3DObject.opacityMesh) {
19063
19081
  const m = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (g) => {
19064
- console.log(n), this.hooks.emit("click", { event: g, target: "TagContent", tag: n });
19082
+ this.hooks.emit("click", { event: g, target: "TagContent", tag: n });
19065
19083
  });
19066
19084
  (d = this.store.css3DRenderDisposer.get(n.id)) == null || d.push(m);
19067
19085
  }
@@ -19116,7 +19134,7 @@ class h1 extends fg {
19116
19134
  g && m.decompose(g.position, g.quaternion, g.scale);
19117
19135
  }
19118
19136
  addMediaModelTag(e) {
19119
- return F(this, null, function* () {
19137
+ return H(this, null, function* () {
19120
19138
  const n = e.filter(Qe).map((o) => this.loadModel(o));
19121
19139
  yield Promise.all(n), this.setModelMedialVisible(), this.updateRenderAllTags();
19122
19140
  });
@@ -19174,7 +19192,7 @@ class f1 extends h1 {
19174
19192
  f(this, "state", { enabled: !0, visible: !0 });
19175
19193
  f(this, "params");
19176
19194
  f(this, "debug");
19177
- f(this, "changeTagModel", (e, n) => F(this, null, function* () {
19195
+ f(this, "changeTagModel", (e, n) => H(this, null, function* () {
19178
19196
  e.data = ft({}, e.data, n), yield this.loadModel(e), this.updateRenderAllTags();
19179
19197
  }));
19180
19198
  f(this, "handleFiveInitAnimationEnded", () => {
@@ -19196,7 +19214,7 @@ class f1 extends h1 {
19196
19214
  }
19197
19215
  }
19198
19216
  load(e, n) {
19199
- return F(this, null, function* () {
19217
+ return H(this, null, function* () {
19200
19218
  var s, r;
19201
19219
  this.clearTags(), console.info(Kl, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = ft({}, this.config, {
19202
19220
  globalConfig: (s = e.globalConfig) != null ? s : {},
@@ -19213,7 +19231,7 @@ class f1 extends h1 {
19213
19231
  });
19214
19232
  }
19215
19233
  addTag(e, n) {
19216
- return F(this, null, function* () {
19234
+ return H(this, null, function* () {
19217
19235
  const s = (Array.isArray(e) ? e : [e]).map((r) => {
19218
19236
  const a = this.getTagConfig(r);
19219
19237
  return fe(Q({}, r), {
@@ -19230,7 +19248,7 @@ class f1 extends h1 {
19230
19248
  destroy: () => this.destroyTagById(r.id)
19231
19249
  });
19232
19250
  }).filter((r) => r.position);
19233
- return s.forEach(Yp), this.tags.push(...s), Wp(this.five).then(() => F(this, null, function* () {
19251
+ return s.forEach(Yp), this.tags.push(...s), Wp(this.five).then(() => H(this, null, function* () {
19234
19252
  var r, a, l;
19235
19253
  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);
19236
19254
  }));
@@ -19246,7 +19264,7 @@ class f1 extends h1 {
19246
19264
  this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), o ? this.config.contentTypeConfig[e] = ft({}, this.config.contentTypeConfig[e], n) : this.config.contentTypeConfig[e] = n, this.clearCache(), this.updateRenderAllTags();
19247
19265
  }
19248
19266
  show(e) {
19249
- return F(this, null, function* () {
19267
+ return H(this, null, function* () {
19250
19268
  if (this.checkDisposed())
19251
19269
  return;
19252
19270
  const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
@@ -19254,7 +19272,7 @@ class f1 extends h1 {
19254
19272
  });
19255
19273
  }
19256
19274
  hide(e) {
19257
- return F(this, null, function* () {
19275
+ return H(this, null, function* () {
19258
19276
  if (this.checkDisposed())
19259
19277
  return;
19260
19278
  const { userAction: n = !0, withAnimation: o = !1 } = e != null ? e : {};
@@ -19325,7 +19343,7 @@ class f1 extends h1 {
19325
19343
  }), this.updateRenderAllTags();
19326
19344
  }
19327
19345
  setVisibleAndUnfolded() {
19328
- return F(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
19346
+ return H(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
19329
19347
  if (!!this.isPanorama)
19330
19348
  return this.setVisibleByPanoIndex(), e ? new Promise((n) => {
19331
19349
  setTimeout(() => {
@@ -19414,7 +19432,7 @@ class f1 extends h1 {
19414
19432
  this.updateRenderPointTag();
19415
19433
  }
19416
19434
  handleFivePanoArrived() {
19417
- return F(this, null, function* () {
19435
+ return H(this, null, function* () {
19418
19436
  this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
19419
19437
  e.temporaryState = fe(Q({}, e.temporaryState), { visible: !0 });
19420
19438
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
@@ -20370,12 +20388,12 @@ class R1 {
20370
20388
  t && this.addControllers(t), this.setState(this.state);
20371
20389
  }
20372
20390
  show(t) {
20373
- return F(this, null, function* () {
20391
+ return H(this, null, function* () {
20374
20392
  this.setState({ visible: !0 }, t);
20375
20393
  });
20376
20394
  }
20377
20395
  hide(t) {
20378
- return F(this, null, function* () {
20396
+ return H(this, null, function* () {
20379
20397
  this.setState({ visible: !1 }, t);
20380
20398
  });
20381
20399
  }
@@ -20627,7 +20645,7 @@ class H1 extends jn {
20627
20645
  this.scale(n);
20628
20646
  }
20629
20647
  scale(e) {
20630
- var O, W;
20648
+ var F, _;
20631
20649
  if (!this.startInfo)
20632
20650
  return;
20633
20651
  const n = this.originObject3D, { startPoint: o, plane: s } = this.startInfo, r = this.helperObject3D.cornerPositions;
@@ -20636,34 +20654,34 @@ class H1 extends jn {
20636
20654
  const a = e.ray.intersectPlane(s, new q());
20637
20655
  if (!a || E1(a, this.camera.position))
20638
20656
  return;
20639
- const l = new q().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: u } = o, h = new q().subVectors(r[1], r[0]), d = new q().subVectors(r[3], r[0]), m = (_) => {
20657
+ const l = new q().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: u } = o, h = new q().subVectors(r[1], r[0]), d = new q().subVectors(r[3], r[0]), m = (O) => {
20640
20658
  const V = new q(0, 0, 0);
20641
20659
  if (!this.startInfo)
20642
20660
  return V;
20643
- const B = (_ === "ew" ? h : d).clone(), R = c.clone().projectOnVector(B), G = a.clone().projectOnVector(B), X = l.clone().projectOnVector(B);
20661
+ const z = (O === "ew" ? h : d).clone(), R = c.clone().projectOnVector(z), G = a.clone().projectOnVector(z), X = l.clone().projectOnVector(z);
20644
20662
  if (G.equals(R))
20645
20663
  return V;
20646
- if (_ === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
20647
- const Y = new q().subVectors(G, X), ae = Y.x < 0 && B.x >= 0, he = Y.y < 0 && B.y >= 0, de = Y.z < 0 && B.z >= 0;
20664
+ if (O === "ns" && typeof this.startInfo.dragPointInCenterBottom != "boolean") {
20665
+ const Y = new q().subVectors(G, X), ae = Y.x < 0 && z.x >= 0, he = Y.y < 0 && z.y >= 0, de = Y.z < 0 && z.z >= 0;
20648
20666
  this.startInfo.dragPointInCenterBottom = ae || he || de;
20649
20667
  }
20650
- if (_ === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
20651
- const Y = new q().subVectors(G, X), ae = Y.x < 0 && B.x >= 0, he = Y.y < 0 && B.y >= 0, de = Y.z < 0 && B.z >= 0;
20668
+ if (O === "ew" && typeof this.startInfo.dragPointInCenterLeft != "boolean") {
20669
+ const Y = new q().subVectors(G, X), ae = Y.x < 0 && z.x >= 0, he = Y.y < 0 && z.y >= 0, de = Y.z < 0 && z.z >= 0;
20652
20670
  this.startInfo.dragPointInCenterLeft = ae || he || de;
20653
20671
  }
20654
- const H = new q().subVectors(G, R), ee = H.length();
20655
- return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) : H;
20672
+ const W = new q().subVectors(G, R), ee = W.length();
20673
+ return ee > 0.3 ? (console.warn("offset.length() > 0.3, skipped", ee), V) : W;
20656
20674
  }, g = m("ew"), p = m("ns"), v = () => {
20657
- const _ = g;
20658
- this.helperObject3D.cornerPositions.forEach((V, B) => {
20675
+ const O = g;
20676
+ this.helperObject3D.cornerPositions.forEach((V, z) => {
20659
20677
  var R;
20660
- (R = this.startInfo) != null && R.dragPointInCenterLeft ? (B === 0 || B === 3) && V.add(_) : (B === 1 || B === 2) && V.add(_);
20678
+ (R = this.startInfo) != null && R.dragPointInCenterLeft ? (z === 0 || z === 3) && V.add(O) : (z === 1 || z === 2) && V.add(O);
20661
20679
  });
20662
20680
  }, A = () => {
20663
- const _ = p;
20664
- this.helperObject3D.cornerPositions.forEach((V, B) => {
20681
+ const O = p;
20682
+ this.helperObject3D.cornerPositions.forEach((V, z) => {
20665
20683
  var R;
20666
- (R = this.startInfo) != null && R.dragPointInCenterBottom ? (B === 0 || B === 1) && V.add(_) : (B === 2 || B === 3) && V.add(_);
20684
+ (R = this.startInfo) != null && R.dragPointInCenterBottom ? (z === 0 || z === 1) && V.add(O) : (z === 2 || z === 3) && V.add(O);
20667
20685
  });
20668
20686
  };
20669
20687
  switch (u) {
@@ -20680,7 +20698,7 @@ class H1 extends jn {
20680
20698
  const b = new q().subVectors(r[1], r[0]).length() / h.length(), w = new q().subVectors(r[3], r[0]).length() / d.length(), k = new q(b, w, 1), I = new E.Matrix4().scale(k);
20681
20699
  n.isCSS3DObjectPlus ? n.applyScaleMatrix4(I) : n.scale.applyMatrix4(I), o.position.copy(a);
20682
20700
  const C = new q().addVectors(r[0], r[2]).divideScalar(2), L = new q().subVectors(C, l), x = new E.Matrix4().setPosition(L);
20683
- n.applyMatrix4(x), (O = this.helperObject3D.css3DInstance) == null || O.css3DObject.applyMatrix4(x), (W = this.helperObject3D.plane) == null || W.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: I }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
20701
+ n.applyMatrix4(x), (F = this.helperObject3D.css3DInstance) == null || F.css3DObject.applyMatrix4(x), (_ = this.helperObject3D.plane) == null || _.applyMatrix4(x), this.hooks.emit("applyObjectScale", { matrix: I }), this.hooks.emit("applyObjectPosition", { matrix: x }), this.render();
20684
20702
  }
20685
20703
  dragEnd() {
20686
20704
  !this.isDragging || (this.startInfo = void 0, this.isDragging = !1, this.hooks.emit("scaleEnd"), this.render());
@@ -20734,12 +20752,12 @@ class U1 extends zn {
20734
20752
  this.five = e, this.css3DRender = new In(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${fo.toUpperCase()}_DEBUG__`]: this });
20735
20753
  }
20736
20754
  show(e) {
20737
- return F(this, null, function* () {
20755
+ return H(this, null, function* () {
20738
20756
  this.setState({ visible: !0 }, e);
20739
20757
  });
20740
20758
  }
20741
20759
  hide(e) {
20742
- return F(this, null, function* () {
20760
+ return H(this, null, function* () {
20743
20761
  this.setState({ visible: !1 }, e);
20744
20762
  });
20745
20763
  }
@@ -21168,6 +21186,7 @@ class K1 extends zn {
21168
21186
  const Yb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21169
21187
  __proto__: null
21170
21188
  }, Symbol.toStringTag, { value: "Module" })), Ub = (i) => new K1(i);
21189
+ console.info("@realsee/dnalogel %cv2.15.0", "background-color: #12ce9b;color:black;padding:0 6px;border-radius: 3px");
21171
21190
  export {
21172
21191
  In as CSS3DRender,
21173
21192
  Tn as CSS3DRenderPlugin,