@realsee/dnalogel 2.3.7 → 2.3.8-alpha.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 (211) hide show
  1. package/dist/index.cjs.js +22 -22
  2. package/dist/index.js +1003 -1003
  3. package/dist/index.umd.js +18 -18
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +24 -24
  6. package/docs/classes/Magnifier.html +16 -16
  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/PanoTagPluginController.html +39 -39
  11. package/docs/classes/Util.BetterTween.html +8 -8
  12. package/docs/classes/Util.FivePointSelector.html +12 -12
  13. package/docs/classes/Util.Interval.html +12 -12
  14. package/docs/classes/Util.Magnifier.html +17 -17
  15. package/docs/classes/Util.PointDomHelper.html +11 -11
  16. package/docs/classes/Util.PointHelper.html +11 -11
  17. package/docs/classes/Util.Rectangle.html +13 -13
  18. package/docs/enums/CameraMovementEffect.html +7 -7
  19. package/docs/enums/ContentType.html +12 -12
  20. package/docs/enums/DIRECTION.html +9 -9
  21. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  22. package/docs/enums/DimensionType.html +7 -7
  23. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  24. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  25. package/docs/enums/LinkType.html +7 -7
  26. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  27. package/docs/enums/PointType.html +7 -7
  28. package/docs/enums/Rotation.html +8 -8
  29. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  30. package/docs/functions/CameraMovementPlugin.html +4 -4
  31. package/docs/functions/CruisePlugin.html +4 -4
  32. package/docs/functions/GuideLinePlugin.html +5 -5
  33. package/docs/functions/ItemLabelPlugin.html +4 -4
  34. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  36. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  37. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  39. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  40. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  41. package/docs/functions/ModelViewPlugin.html +4 -4
  42. package/docs/functions/Object3DHelperPlugin.html +4 -4
  43. package/docs/functions/PanoCompassPlugin.html +4 -4
  44. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  45. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  46. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  47. package/docs/functions/PanoMeasurePlugin.html +4 -4
  48. package/docs/functions/PanoRulerPlugin.html +4 -4
  49. package/docs/functions/PanoRulerProPlugin.html +4 -4
  50. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  51. package/docs/functions/PanoTagPlugin.html +4 -4
  52. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  53. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  54. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  55. package/docs/functions/Util.getFrameTime.html +5 -5
  56. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  57. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  58. package/docs/functions/Util.isNil.html +5 -5
  59. package/docs/functions/Util.nextFrame.html +5 -5
  60. package/docs/functions/Util.notNil.html +5 -5
  61. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  62. package/docs/functions/Util.tweenProgress.html +5 -5
  63. package/docs/functions/pluginFlag.html +5 -5
  64. package/docs/index.html +4 -4
  65. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  66. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  67. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  68. package/docs/interfaces/ContentTypeMap.html +12 -12
  69. package/docs/interfaces/FloorplanBounding.html +8 -8
  70. package/docs/interfaces/FloorplanData.html +10 -10
  71. package/docs/interfaces/FloorplanEntrance.html +11 -11
  72. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  73. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  74. package/docs/interfaces/FloorplanFloorData.html +9 -9
  75. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  76. package/docs/interfaces/FloorplanObserver.html +9 -9
  77. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  78. package/docs/interfaces/FloorplanPosition.html +7 -7
  79. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  80. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  81. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  82. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  83. package/docs/interfaces/FloorplanServerData.html +7 -7
  84. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  85. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  86. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  87. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  88. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  89. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  90. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  91. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  92. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  93. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  94. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  95. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  96. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  97. package/docs/interfaces/LineJson.html +7 -7
  98. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  99. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  100. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  101. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  102. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  103. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  104. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  105. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  106. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  107. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  108. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  109. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  110. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  111. package/docs/interfaces/Object3DHelperState.html +8 -8
  112. package/docs/interfaces/OpenParameter.html +7 -7
  113. package/docs/interfaces/PaintBrushAction.html +12 -12
  114. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  115. package/docs/interfaces/PaintBrushState.html +10 -10
  116. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  117. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  118. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  119. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  120. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  121. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  122. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  123. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  124. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  125. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  126. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  127. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  128. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  129. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  130. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  131. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  132. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  133. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  134. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  135. package/docs/interfaces/Point.html +8 -8
  136. package/docs/interfaces/PointJson.html +8 -8
  137. package/docs/interfaces/Room.html +9 -9
  138. package/docs/interfaces/RoomInfo.html +7 -7
  139. package/docs/interfaces/RoomLabel.html +14 -14
  140. package/docs/interfaces/RoomRules.html +5 -5
  141. package/docs/interfaces/Rooms.html +5 -5
  142. package/docs/interfaces/Scissor.html +9 -9
  143. package/docs/interfaces/TagConfig.html +10 -10
  144. package/docs/interfaces/Tags.html +9 -9
  145. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  146. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  147. package/docs/modules/Util.html +5 -5
  148. package/docs/modules.html +4 -4
  149. package/docs/types/ArrayPosition.html +5 -5
  150. package/docs/types/CSS3DRenderExportType.html +5 -5
  151. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  152. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  153. package/docs/types/Color.html +5 -5
  154. package/docs/types/ContentTypeConfigKey.html +5 -5
  155. package/docs/types/ContentTypeConfigKeyArray.html +5 -5
  156. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  157. package/docs/types/Create3DElementReturnType.html +5 -5
  158. package/docs/types/CruisePluginExportType.html +5 -5
  159. package/docs/types/Direction-1.html +5 -5
  160. package/docs/types/Direction4.html +5 -5
  161. package/docs/types/FloorplanRuleLabels.html +5 -5
  162. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  163. package/docs/types/GuideLinePluginExportType.html +5 -5
  164. package/docs/types/HelperEventMap.html +5 -5
  165. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  166. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  167. package/docs/types/MediaData.html +5 -5
  168. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  169. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  170. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  171. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  172. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  173. package/docs/types/MoveArgs.html +5 -5
  174. package/docs/types/MoveOpts.html +5 -5
  175. package/docs/types/Object3DHelperEventMap.html +5 -5
  176. package/docs/types/ObjectFit.html +5 -5
  177. package/docs/types/PaintBrushEventMap.html +5 -5
  178. package/docs/types/PanoCompassPluginData.html +5 -5
  179. package/docs/types/PanoCompassPluginExportType.html +5 -5
  180. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  181. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  182. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  183. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  184. package/docs/types/PanoMeasureReturnType.html +5 -5
  185. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  186. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  187. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  188. package/docs/types/PlaneTag.html +5 -5
  189. package/docs/types/PointTag.html +5 -5
  190. package/docs/types/Position.html +5 -5
  191. package/docs/types/RotateArgs.html +5 -5
  192. package/docs/types/RotateOpts.html +5 -5
  193. package/docs/types/RuleLabelsKey.html +5 -5
  194. package/docs/types/RuleLabelsValue.html +5 -5
  195. package/docs/types/Tag.html +5 -5
  196. package/docs/types/Tag2D.html +5 -5
  197. package/docs/types/Tag3D.html +5 -5
  198. package/docs/types/TagId.html +5 -5
  199. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  200. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  201. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  202. package/docs/variables/PLUGIN.html +5 -5
  203. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  204. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  205. package/docs/variables/VERSION.html +5 -5
  206. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  207. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  208. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  209. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +51 -51
  210. package/libs/PanoTagPlugin/Components/TagWrapper.js +56 -56
  211. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var J = (i, t, e) => new Promise((n, o) => {
29
29
  });
30
30
  import * as si from "@tweenjs/tween.js";
31
31
  import dn, { Tween as gl, Easing as Al } from "@tweenjs/tween.js";
32
- import { Camera as vl, Five as je, Subscribe as nt } from "@realsee/five";
32
+ import { Camera as vl, Five as Be, Subscribe as nt } from "@realsee/five";
33
33
  import * as E from "three";
34
34
  import { Vector3 as _, Group as _i, Raycaster as Qt, MeshBasicMaterial as un, CanvasTexture as bl, AnimationMixer as yl, Color as An, TextureLoader as Nr, Vector2 as Qe, PlaneGeometry as wl, sRGBEncoding as Cl, Mesh as Fn, CurvePath as El, LineCurve3 as Pl, TubeGeometry as Il, ShaderMaterial as xl, SphereGeometry as kl, DoubleSide as Wr, RingGeometry as Dl, Quaternion as Xr, Euler as yo, Object3D as Ll } from "three";
35
35
  import { CSS3DRenderer as Sl, CSS3DObject as Yn } from "three/examples/jsm/renderers/CSS3DRenderer";
@@ -305,7 +305,7 @@ class Fl extends Hl {
305
305
  if (!this.canvas[this.uuid])
306
306
  return;
307
307
  const { width: d, height: u } = this.canvas[this.uuid];
308
- c && c.clearRect(0, 0, d, u), this.data[this.uuid].forEach((p) => this.handleDrawLine(this.uuid, p, { withUndo: !0 }));
308
+ c && c.clearRect(0, 0, d, u), this.data[this.uuid].forEach((m) => this.handleDrawLine(this.uuid, m, { withUndo: !0 }));
309
309
  });
310
310
  const s = document.createElement("a");
311
311
  return s.className = "_paintBrush-ctrlitem _paintBrush-ctrlitem--close", s.addEventListener("click", (a) => {
@@ -353,71 +353,71 @@ class Fl extends Hl {
353
353
  const o = this.color || "#6D92FF";
354
354
  n.strokeStyle = o;
355
355
  let s = null, r = [], a, l = [], c = 0;
356
- const d = (u, h, p) => {
357
- const m = this.color || "#ff0000";
358
- n.strokeStyle = m, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(h.x, h.y, p.x, p.y), n.stroke();
356
+ const d = (u, h, m) => {
357
+ const p = this.color || "#ff0000";
358
+ n.strokeStyle = p, n.beginPath(), n.moveTo(u.x, u.y), n.quadraticCurveTo(h.x, h.y, m.x, m.y), n.stroke();
359
359
  };
360
360
  e.onmousedown = (u) => {
361
361
  u.preventDefault(), c = Date.now();
362
- const h = u.clientX, p = u.clientY;
363
- r = [], r.push({ x: h, y: p }), s = { x: h, y: p }, a = wn({ x: h, y: p }, this.clientWidth, this.clientHeight), l = [];
362
+ const h = u.clientX, m = u.clientY;
363
+ r = [], r.push({ x: h, y: m }), s = { x: h, y: m }, a = wn({ x: h, y: m }, this.clientWidth, this.clientHeight), l = [];
364
364
  }, e.onmousemove = (u) => {
365
365
  if (u.preventDefault(), !s)
366
366
  return;
367
- const h = Number(u.clientX), p = Number(u.clientY);
368
- if (Math.abs(h - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: h, y: p }), l.push(wn({ x: h, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
367
+ const h = Number(u.clientX), m = Number(u.clientY);
368
+ if (Math.abs(h - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: h, y: m }), l.push(wn({ x: h, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
369
369
  return;
370
- const { control: m, end: g } = Cn(r);
371
- !m || !g || (d(s, m, g), s = g);
370
+ const { control: p, end: g } = Cn(r);
371
+ !p || !g || (d(s, p, g), s = g);
372
372
  }, e.onmouseup = (u) => {
373
373
  if (u.preventDefault(), s = null, r.length < 3)
374
374
  return;
375
375
  this.data[this.uuid] || (this.data[this.uuid] = []);
376
- const h = Date.now() - c, p = {
376
+ const h = Date.now() - c, m = {
377
377
  move: Object.assign({}, a),
378
378
  uuid: this.uuid,
379
379
  line: [...l],
380
380
  color: this.color,
381
381
  duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
382
382
  };
383
- this.data[this.uuid].push(p), Gn(() => {
383
+ this.data[this.uuid].push(m), Gn(() => {
384
384
  this.emitStateChange({
385
385
  type: ft.Drawline,
386
386
  color: this.color,
387
387
  ready: this.ready,
388
- state: p,
388
+ state: m,
389
389
  uuid: this.uuid
390
390
  });
391
391
  });
392
392
  }, e.ontouchstart = (u) => {
393
393
  u.preventDefault(), c = Date.now();
394
- const h = u.touches[0].clientX, p = u.touches[0].clientY;
395
- r = [], r.push({ x: h, y: p }), s = { x: h, y: p }, console.log("ontouchstart", h, p, s), a = wn({ x: h, y: p }, this.clientWidth, this.clientHeight), l = [];
394
+ const h = u.touches[0].clientX, m = u.touches[0].clientY;
395
+ r = [], r.push({ x: h, y: m }), s = { x: h, y: m }, console.log("ontouchstart", h, m, s), a = wn({ x: h, y: m }, this.clientWidth, this.clientHeight), l = [];
396
396
  }, e.ontouchmove = (u) => {
397
397
  if (u.preventDefault(), !s)
398
398
  return;
399
- const h = Number(u.touches[0].clientX), p = Number(u.touches[0].clientY);
400
- if (Math.abs(h - s.x) < 5 && Math.abs(p - s.y) < 5 || (r.push({ x: h, y: p }), l.push(wn({ x: h, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
399
+ const h = Number(u.touches[0].clientX), m = Number(u.touches[0].clientY);
400
+ if (Math.abs(h - s.x) < 5 && Math.abs(m - s.y) < 5 || (r.push({ x: h, y: m }), l.push(wn({ x: h, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
401
401
  return;
402
- const { control: m, end: g } = Cn(r);
403
- !m || !g || (d(s, m, g), s = g);
402
+ const { control: p, end: g } = Cn(r);
403
+ !p || !g || (d(s, p, g), s = g);
404
404
  }, e.ontouchend = e.ontouchcancel = (u) => {
405
405
  if (u.preventDefault(), s = null, r.length < 3)
406
406
  return;
407
407
  this.data[this.uuid] || (this.data[this.uuid] = []);
408
- const h = Date.now() - c, p = {
408
+ const h = Date.now() - c, m = {
409
409
  move: Object.assign({}, a),
410
410
  line: [...l],
411
411
  uuid: this.uuid,
412
412
  color: this.color,
413
413
  duration: h < 1280 ? h : h < 2e3 ? 1280 : 0
414
414
  };
415
- this.data[this.uuid].push(p), Gn(() => {
415
+ this.data[this.uuid].push(m), Gn(() => {
416
416
  this.emitStateChange({
417
417
  type: ft.Drawline,
418
418
  color: this.color,
419
419
  ready: this.ready,
420
- state: p,
420
+ state: m,
421
421
  uuid: this.uuid
422
422
  });
423
423
  });
@@ -484,34 +484,34 @@ class Fl extends Hl {
484
484
  if (!a)
485
485
  return;
486
486
  const { line: l = [], color: c = "black", duration: d = 0, uuid: u } = n, h = gi(n.move || {}, this.clientWidth, this.clientHeight);
487
- let p = [h];
487
+ let m = [h];
488
488
  if (a.strokeStyle = c, a.beginPath(), a.moveTo(h.x, h.y), d && !o) {
489
- let m = [];
489
+ let p = [];
490
490
  const g = this;
491
- g.tween = Ql({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: A }) => {
491
+ g.tween = Ql({ step: 0 }, { step: l.length - 1 }, d).onUpdate(({ step: v }) => {
492
492
  var w;
493
493
  if (g.tweening = !0, !g.ready)
494
494
  return a.clearRect(0, 0, g.canvas[u].width, g.canvas[u].height), (w = g.tween) == null ? void 0 : w.stop();
495
- const v = Math.floor(A);
496
- if (!m.find((y) => y === v)) {
497
- if (m.push(v), console.log("__debug__", l, l[v], v), p.push(gi(l[v], g.clientWidth, g.clientHeight)), p.length < 3)
495
+ const A = Math.floor(v);
496
+ if (!p.find((y) => y === A)) {
497
+ if (p.push(A), console.log("__debug__", l, l[A], A), m.push(gi(l[A], g.clientWidth, g.clientHeight)), m.length < 3)
498
498
  return;
499
- const { control: y, end: x } = Cn(p);
499
+ const { control: y, end: x } = Cn(m);
500
500
  if (!y || !x)
501
501
  return;
502
502
  a.quadraticCurveTo(y.x, y.y, x.x, x.y), a.stroke();
503
503
  }
504
- }).onComplete((A) => {
505
- g.tween = void 0, g.tweening = !1, m = [], p = [], s && s(), r();
504
+ }).onComplete((v) => {
505
+ g.tween = void 0, g.tweening = !1, p = [], m = [], s && s(), r();
506
506
  });
507
507
  } else {
508
- for (let m = 0; m < l.length; m++) {
509
- if (p.push(gi(l[m], this.clientWidth, this.clientHeight)), p.length < 3)
508
+ for (let p = 0; p < l.length; p++) {
509
+ if (m.push(gi(l[p], this.clientWidth, this.clientHeight)), m.length < 3)
510
510
  continue;
511
- const { control: g, end: A } = Cn(p);
512
- !g || !A || a.quadraticCurveTo(g.x, g.y, A.x, A.y);
511
+ const { control: g, end: v } = Cn(m);
512
+ !g || !v || a.quadraticCurveTo(g.x, g.y, v.x, v.y);
513
513
  }
514
- a.stroke(), p = [], s && s(), r();
514
+ a.stroke(), m = [], s && s(), r();
515
515
  }
516
516
  })));
517
517
  }
@@ -595,7 +595,7 @@ const W0 = (i, t) => {
595
595
  l.add(I);
596
596
  }
597
597
  l.add(d);
598
- const p = () => {
598
+ const m = () => {
599
599
  if (n)
600
600
  return;
601
601
  u = L(i.model, c.fov, c.aspect), h = i.model.bounding.getCenter(new E.Vector3()), l.remove(d), d = z(i.model), l.add(d), n = !0, S();
@@ -615,21 +615,21 @@ const W0 = (i, t) => {
615
615
  return O.children.forEach((Z) => W.add(z(Z))), W;
616
616
  }
617
617
  }
618
- }, m = () => {
618
+ }, p = () => {
619
619
  if (!!i.renderer)
620
620
  return s || (s = new E.WebGLRenderer({ antialias: !1, alpha: !0 }), s.setPixelRatio(i.renderer.getPixelRatio()), s.outputEncoding = E.sRGBEncoding, s.setClearColor(1579548, 0), s.autoClear = !0), s;
621
621
  }, g = () => {
622
622
  d.traverse((I) => {
623
623
  I instanceof E.Mesh && [].concat(I.material).forEach((O) => O.dispose());
624
624
  }), l.remove(d), d = new E.Object3D(), l.add(d), n = !1, S();
625
- }, A = () => {
626
- !e || n || p();
627
625
  }, v = () => {
628
- e || (e = !0, l.add(d), !n && i.model.loaded && p(), S());
626
+ !e || n || m();
627
+ }, A = () => {
628
+ e || (e = !0, l.add(d), !n && i.model.loaded && m(), S());
629
629
  }, w = () => {
630
630
  !e || (l.remove(d), o = !0, k(), e = !1);
631
631
  }, y = (I, z = {}) => {
632
- const O = m();
632
+ const O = p();
633
633
  if (!O)
634
634
  return;
635
635
  I.appendChild(O.domElement), x(z);
@@ -670,7 +670,7 @@ const W0 = (i, t) => {
670
670
  }, N = () => ({
671
671
  enabled: e
672
672
  });
673
- return Object.assign(window, { camera: c }), i.on("modelLoaded", A), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", S), i.on("dispose", F), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo: y, refresh: x, changeConfigs: H, enable: v, disable: w, getCurrentState: N };
673
+ return Object.assign(window, { camera: c }), i.on("modelLoaded", v), i.on("modelWillLoad", g), i.on("cameraDirectionUpdate", S), i.on("dispose", F), i.on("renderFrame", k), i.on("cameraPositionUpdate", S), { appendTo: y, refresh: x, changeConfigs: H, enable: A, disable: w, getCurrentState: N };
674
674
  };
675
675
  function gt(...i) {
676
676
  const t = [];
@@ -806,17 +806,17 @@ const Zr = 1, Ul = `CSS3DObjectPlus@${Zr}`, Jl = 216e-5, Vl = 3e-3;
806
806
  class _r extends Yn {
807
807
  constructor(e) {
808
808
  var L, C, S;
809
- const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), u = Un(c / s * r), h = Un(d / s * r), p = Vr(...o);
810
- let m;
809
+ const n = e.container, o = e.cornerPoints, s = (L = e.ratio) != null ? L : Vl, r = (C = e.dpr) != null ? C : 1, a = (S = e.pointerEvents) != null ? S : "auto", l = Math.max(Jl, s), c = o[0].distanceTo(o[1]), d = o[1].distanceTo(o[2]), u = Un(c / s * r), h = Un(d / s * r), m = Vr(...o);
810
+ let p;
811
811
  if (l === s)
812
- n.style.width = `${u}px`, n.style.height = `${h}px`, m = n;
812
+ n.style.width = `${u}px`, n.style.height = `${h}px`, p = n;
813
813
  else {
814
814
  const k = document.createElement("div");
815
815
  k.style.width = `${u}px`, k.style.height = `${h}px`, k.style.pointerEvents = "none";
816
816
  const F = s / l;
817
- n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * u}px`, n.style.height = `${F * h}px`, k.appendChild(n), m = k;
817
+ n.style.position = "absolute", n.style.left = "0", n.style.top = "0", n.style.width = `${F * u}px`, n.style.height = `${F * h}px`, k.appendChild(n), p = k;
818
818
  }
819
- super(m);
819
+ super(p);
820
820
  f(this, "version", Zr);
821
821
  f(this, "isCSS3DObjectPlus", !0);
822
822
  f(this, "container");
@@ -850,16 +850,16 @@ class _r extends Yn {
850
850
  (e = this.parentVisibleListenerDisposer) == null || e.call(this);
851
851
  });
852
852
  if (n.style.pointerEvents = a, this.scale.set(l, l, l), this.cornerPoints = o, this.ratio = s, this.container = n, e.mode && (this.mode = e.mode), l === s)
853
- this.width = c, this.height = d, this.domWidthPx = u, this.domHeightPx = h, this.centerPosition = p;
853
+ this.width = c, this.height = d, this.domWidthPx = u, this.domHeightPx = h, this.centerPosition = m;
854
854
  else {
855
855
  const k = s / l;
856
- this.width = k * c, this.height = k * d, this.domWidthPx = k * u, this.domHeightPx = k * h, this.centerPosition = new _().subVectors(p, o[0]).multiplyScalar(k).add(o[0]);
856
+ this.width = k * c, this.height = k * d, this.domWidthPx = k * u, this.domHeightPx = k * h, this.centerPosition = new _().subVectors(m, o[0]).multiplyScalar(k).add(o[0]);
857
857
  }
858
858
  n.classList.add(`${Ul}__container`);
859
- const g = new _().subVectors(o[1], o[0]), A = new _().subVectors(o[3], o[0]), v = new _().crossVectors(g, A).normalize();
860
- this.lookAt(v);
861
- const w = this.up.clone().applyQuaternion(this.quaternion), y = A.clone(), x = new _().crossVectors(w, y).normalize();
862
- this.rotateOnWorldAxis(x, w.angleTo(y)), this.position.copy(p), this.addEventListener("added", () => {
859
+ const g = new _().subVectors(o[1], o[0]), v = new _().subVectors(o[3], o[0]), A = new _().crossVectors(g, v).normalize();
860
+ this.lookAt(A);
861
+ const w = this.up.clone().applyQuaternion(this.quaternion), y = v.clone(), x = new _().crossVectors(w, y).normalize();
862
+ this.rotateOnWorldAxis(x, w.angleTo(y)), this.position.copy(m), this.addEventListener("added", () => {
863
863
  var k;
864
864
  this.mode === "front" && ((k = this.opacityMesh) == null || k.removeFromParent()), this.addParentVisibleListener();
865
865
  }), this.addEventListener("removed", () => {
@@ -1027,24 +1027,24 @@ class fn {
1027
1027
  return console.error(`${nn}: requires 4 point but params may have fewer`);
1028
1028
  const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: d, pointerEvents: u } = o, h = this.createObject(s, { ratio: r, dpr: a, container: d, mode: l, pointerEvents: u });
1029
1029
  Pe.css3DObjects.push(h), o.scene && this.setScene(o.scene);
1030
- const p = () => {
1030
+ const m = () => {
1031
1031
  const y = h.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
1032
1032
  !y || y.add(h);
1033
- }, m = () => {
1034
- p(), this.render(t);
1035
- }, g = (y) => this.setVisibleById(h.id, y), A = (y) => this.setEnabledById(h.id, y), v = () => (h.removeFromParent(), !0), w = l === "front" ? Pe.frontModeStore.css3DRenderer : Pe.behindModeStore.css3DRenderer;
1036
- return c && m(), {
1033
+ }, p = () => {
1034
+ m(), this.render(t);
1035
+ }, g = (y) => this.setVisibleById(h.id, y), v = (y) => this.setEnabledById(h.id, y), A = () => (h.removeFromParent(), !0), w = l === "front" ? Pe.frontModeStore.css3DRenderer : Pe.behindModeStore.css3DRenderer;
1036
+ return c && p(), {
1037
1037
  id: h.uuid,
1038
1038
  container: d,
1039
1039
  css3DObject: h,
1040
- render: c ? void 0 : m,
1040
+ render: c ? void 0 : p,
1041
1041
  show: () => g(!0),
1042
1042
  hide: () => g(!1),
1043
1043
  setVisible: g,
1044
- enable: () => A(!0),
1045
- disable: () => A(!1),
1046
- setEnabled: A,
1047
- dispose: v,
1044
+ enable: () => v(!0),
1045
+ disable: () => v(!1),
1046
+ setEnabled: v,
1047
+ dispose: A,
1048
1048
  appendToElement: (y) => w.setWrapper(y)
1049
1049
  };
1050
1050
  });
@@ -1317,35 +1317,35 @@ const X0 = (i) => {
1317
1317
  i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
1318
1318
  });
1319
1319
  const o = (d, u = 2, h = 0.1) => {
1320
- const p = u / 2, g = c(d, h), A = new _i();
1321
- A.add(
1320
+ const m = u / 2, g = c(d, h), v = new _i();
1321
+ v.add(
1322
1322
  vi(
1323
- new _(g.x + p, g.y, g.z),
1324
- new _(g.x - p, g.y, g.z),
1323
+ new _(g.x + m, g.y, g.z),
1324
+ new _(g.x - m, g.y, g.z),
1325
1325
  new _(1, 0, 0)
1326
1326
  ),
1327
1327
  vi(
1328
- new _(g.x, g.y + p, g.z),
1329
- new _(g.x, g.y - p, g.z),
1328
+ new _(g.x, g.y + m, g.z),
1329
+ new _(g.x, g.y - m, g.z),
1330
1330
  new _(0, 1, 0)
1331
1331
  ),
1332
1332
  vi(
1333
- new _(g.x, g.y, g.z + p),
1334
- new _(g.x, g.y, g.z - p),
1333
+ new _(g.x, g.y, g.z + m),
1334
+ new _(g.x, g.y, g.z - m),
1335
1335
  new _(0, 0, 1)
1336
1336
  )
1337
- ), i.scene.add(A), i.needsRender = !0;
1338
- const v = () => {
1339
- i.scene.remove(A);
1337
+ ), i.scene.add(v), i.needsRender = !0;
1338
+ const A = () => {
1339
+ i.scene.remove(v);
1340
1340
  };
1341
- return t.disposers.push(v), { clear: v, pointAxesHelperMesh: A };
1341
+ return t.disposers.push(A), { clear: A, pointAxesHelperMesh: v };
1342
1342
  }, s = (d, u = 0) => {
1343
- var v, w;
1344
- const h = (v = i == null ? void 0 : i.camera) == null ? void 0 : v.position;
1343
+ var A, w;
1344
+ const h = (A = i == null ? void 0 : i.camera) == null ? void 0 : A.position;
1345
1345
  if (!h)
1346
1346
  return !1;
1347
- const p = d.distanceTo(h), m = d.sub(h).normalize(), g = new Qt(h, m), A = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
1348
- return !(A && A.distance + u < p);
1347
+ const m = d.distanceTo(h), p = d.sub(h).normalize(), g = new Qt(h, p), v = (w = i.model.intersectRaycaster(g)) == null ? void 0 : w[0];
1348
+ return !(v && v.distance + u < m);
1349
1349
  }, r = () => t.intersection, a = () => {
1350
1350
  var d, u;
1351
1351
  (u = (d = t.disposers) == null ? void 0 : d.forEach) == null || u.call(d, (h) => h == null ? void 0 : h()), i.off("intersectionOnModelUpdate", e), i.off("intersectionHidden", n);
@@ -1437,7 +1437,7 @@ function Jn(i, t) {
1437
1437
  !t.has(n) && n[0] !== "$" && (e[n] = i[n]);
1438
1438
  return e;
1439
1439
  }
1440
- function Le(i) {
1440
+ function je(i) {
1441
1441
  return i == null ? "" : i;
1442
1442
  }
1443
1443
  const ia = typeof window != "undefined";
@@ -1526,7 +1526,7 @@ function Vn(i, t) {
1526
1526
  function rc(i) {
1527
1527
  return Array.from(i.childNodes);
1528
1528
  }
1529
- function Me(i, t) {
1529
+ function Te(i, t) {
1530
1530
  t = "" + t, i.wholeText !== t && (i.data = t);
1531
1531
  }
1532
1532
  function R(i, t, e, n) {
@@ -1605,14 +1605,14 @@ function ca(i, t, e, n, o, s, r, a = 0) {
1605
1605
  const l = 16.666 / n;
1606
1606
  let c = `{
1607
1607
  `;
1608
- for (let A = 0; A <= 1; A += l) {
1609
- const v = t + (e - t) * s(A);
1610
- c += A * 100 + `%{${r(v, 1 - v)}}
1608
+ for (let v = 0; v <= 1; v += l) {
1609
+ const A = t + (e - t) * s(v);
1610
+ c += v * 100 + `%{${r(A, 1 - A)}}
1611
1611
  `;
1612
1612
  }
1613
1613
  const d = c + `100% {${r(e, 1 - e)}}
1614
- }`, u = `__svelte_${lc(d)}_${a}`, h = Ki(i), { stylesheet: p, rules: m } = _n.get(h) || cc(h, i);
1615
- m[u] || (m[u] = !0, p.insertRule(`@keyframes ${u} ${d}`, p.cssRules.length));
1614
+ }`, u = `__svelte_${lc(d)}_${a}`, h = Ki(i), { stylesheet: m, rules: p } = _n.get(h) || cc(h, i);
1615
+ p[u] || (p[u] = !0, m.insertRule(`@keyframes ${u} ${d}`, m.cssRules.length));
1616
1616
  const g = i.style.animation || "";
1617
1617
  return i.style.animation = `${g ? `${g}, ` : ""}${u} ${n}ms linear ${o}ms 1 both`, qn += 1, u;
1618
1618
  }
@@ -1674,7 +1674,7 @@ function hc(i, t) {
1674
1674
  const e = i.$$.callbacks[t.type];
1675
1675
  e && e.slice().forEach((n) => n.call(this, t));
1676
1676
  }
1677
- const on = [], Te = [], Nn = [], Lo = [], da = Promise.resolve();
1677
+ const on = [], ze = [], Nn = [], Lo = [], da = Promise.resolve();
1678
1678
  let Ri = !1;
1679
1679
  function ua() {
1680
1680
  Ri || (Ri = !0, da.then(ha));
@@ -1694,8 +1694,8 @@ function ha() {
1694
1694
  const t = on[kn];
1695
1695
  kn++, cn(t), mc(t.$$);
1696
1696
  }
1697
- for (cn(null), on.length = 0, kn = 0; Te.length; )
1698
- Te.pop()();
1697
+ for (cn(null), on.length = 0, kn = 0; ze.length; )
1698
+ ze.pop()();
1699
1699
  for (let t = 0; t < Nn.length; t += 1) {
1700
1700
  const e = Nn[t];
1701
1701
  bi.has(e) || (bi.add(e), e());
@@ -1754,16 +1754,16 @@ function Ht(i, t, e) {
1754
1754
  s && ji(i, s);
1755
1755
  }
1756
1756
  function c() {
1757
- const { delay: u = 0, duration: h = 300, easing: p = Vt, tick: m = te, css: g } = n || ma;
1758
- g && (s = ca(i, 0, 1, h, u, p, g, a++)), m(0, 1);
1759
- const A = oa() + u, v = A + h;
1757
+ const { delay: u = 0, duration: h = 300, easing: m = Vt, tick: p = te, css: g } = n || ma;
1758
+ g && (s = ca(i, 0, 1, h, u, m, g, a++)), p(0, 1);
1759
+ const v = oa() + u, A = v + h;
1760
1760
  r && r.abort(), o = !0, Ie(() => Kn(i, !0, "start")), r = ra((w) => {
1761
1761
  if (o) {
1762
- if (w >= v)
1763
- return m(1, 0), Kn(i, !0, "end"), l(), o = !1;
1764
- if (w >= A) {
1765
- const y = p((w - A) / h);
1766
- m(y, 1 - y);
1762
+ if (w >= A)
1763
+ return p(1, 0), Kn(i, !0, "end"), l(), o = !1;
1764
+ if (w >= v) {
1765
+ const y = m((w - v) / h);
1766
+ p(y, 1 - y);
1767
1767
  }
1768
1768
  }
1769
1769
  return o;
@@ -1789,14 +1789,14 @@ function Kt(i, t, e) {
1789
1789
  function a() {
1790
1790
  const { delay: l = 0, duration: c = 300, easing: d = Vt, tick: u = te, css: h } = n || ma;
1791
1791
  h && (s = ca(i, 1, 0, c, l, d, h));
1792
- const p = oa() + l, m = p + c;
1792
+ const m = oa() + l, p = m + c;
1793
1793
  Ie(() => Kn(i, !1, "start")), ra((g) => {
1794
1794
  if (o) {
1795
- if (g >= m)
1795
+ if (g >= p)
1796
1796
  return u(0, 1), Kn(i, !1, "end"), --r.r || at(r.c), !1;
1797
- if (g >= p) {
1798
- const A = d((g - p) / c);
1799
- u(1 - A, A);
1797
+ if (g >= m) {
1798
+ const v = d((g - m) / c);
1799
+ u(1 - v, v);
1800
1800
  }
1801
1801
  }
1802
1802
  return o;
@@ -1820,33 +1820,33 @@ function lt(i, t) {
1820
1820
  });
1821
1821
  }
1822
1822
  function Ue(i, t, e, n, o, s, r, a, l, c, d, u) {
1823
- let h = i.length, p = s.length, m = h;
1823
+ let h = i.length, m = s.length, p = h;
1824
1824
  const g = {};
1825
- for (; m--; )
1826
- g[i[m].key] = m;
1827
- const A = [], v = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
1828
- for (m = p; m--; ) {
1829
- const C = u(o, s, m), S = e(C);
1825
+ for (; p--; )
1826
+ g[i[p].key] = p;
1827
+ const v = [], A = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map();
1828
+ for (p = m; p--; ) {
1829
+ const C = u(o, s, p), S = e(C);
1830
1830
  let k = r.get(S);
1831
- k ? n && k.p(C, t) : (k = c(S, C), k.c()), v.set(S, A[m] = k), S in g && w.set(S, Math.abs(m - g[S]));
1831
+ k ? n && k.p(C, t) : (k = c(S, C), k.c()), A.set(S, v[p] = k), S in g && w.set(S, Math.abs(p - g[S]));
1832
1832
  }
1833
1833
  const y = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set();
1834
1834
  function L(C) {
1835
- D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first, p--;
1835
+ D(C, 1), C.m(a, d), r.set(C.key, C), d = C.first, m--;
1836
1836
  }
1837
- for (; h && p; ) {
1838
- const C = A[p - 1], S = i[h - 1], k = C.key, F = S.key;
1839
- C === S ? (d = C.first, h--, p--) : v.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? h-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), h--) : (l(S, r), h--);
1837
+ for (; h && m; ) {
1838
+ const C = v[m - 1], S = i[h - 1], k = C.key, F = S.key;
1839
+ C === S ? (d = C.first, h--, m--) : A.has(F) ? !r.has(k) || y.has(k) ? L(C) : x.has(F) ? h-- : w.get(k) > w.get(F) ? (x.add(k), L(C)) : (y.add(F), h--) : (l(S, r), h--);
1840
1840
  }
1841
1841
  for (; h--; ) {
1842
1842
  const C = i[h];
1843
- v.has(C.key) || l(C, r);
1843
+ A.has(C.key) || l(C, r);
1844
1844
  }
1845
- for (; p; )
1846
- L(A[p - 1]);
1847
- return A;
1845
+ for (; m; )
1846
+ L(v[m - 1]);
1847
+ return v;
1848
1848
  }
1849
- function Be(i, t) {
1849
+ function Me(i, t) {
1850
1850
  const e = {}, n = {}, o = { $$scope: 1 };
1851
1851
  let s = i.length;
1852
1852
  for (; s--; ) {
@@ -1905,9 +1905,9 @@ function ie(i, t, e, n, o, s, r, a = [-1]) {
1905
1905
  };
1906
1906
  r && r(c.root);
1907
1907
  let d = !1;
1908
- if (c.ctx = e ? e(i, t.props || {}, (u, h, ...p) => {
1909
- const m = p.length ? p[0] : h;
1910
- return c.ctx && o(c.ctx[u], c.ctx[u] = m) && (!c.skip_bound && c.bound[u] && c.bound[u](m), d && gc(i, u)), h;
1908
+ if (c.ctx = e ? e(i, t.props || {}, (u, h, ...m) => {
1909
+ const p = m.length ? m[0] : h;
1910
+ return c.ctx && o(c.ctx[u], c.ctx[u] = p) && (!c.skip_bound && c.bound[u] && c.bound[u](p), d && gc(i, u)), h;
1911
1911
  }) : [], c.update(), d = !0, at(c.before_update), c.fragment = n ? n(c.ctx) : !1, t.target) {
1912
1912
  if (t.hydrate) {
1913
1913
  const u = rc(t.target);
@@ -1949,7 +1949,7 @@ function bc(i) {
1949
1949
  B(c, t, d), Q(t, e), Q(e, o), Q(t, s), Q(t, r), a || (l = Ee(e, "click", i[1]), a = !0);
1950
1950
  },
1951
1951
  p(c, [d]) {
1952
- d & 1 && n !== (n = c[0].name + "") && Me(o, n), d & 1 && q(e, "wide", c[0].name.length > 3), d & 1 && R(t, "z-index", c[0].zIndex), d & 1 && R(t, "transform", c[0].transform), d & 1 && R(t, "opacity", c[0].visible ? 1 : 0);
1952
+ d & 1 && n !== (n = c[0].name + "") && Te(o, n), d & 1 && q(e, "wide", c[0].name.length > 3), d & 1 && R(t, "z-index", c[0].zIndex), d & 1 && R(t, "transform", c[0].transform), d & 1 && R(t, "opacity", c[0].visible ? 1 : 0);
1953
1953
  },
1954
1954
  i: te,
1955
1955
  o: te,
@@ -2062,20 +2062,20 @@ function Pc(i) {
2062
2062
  function Ic(i, t, e) {
2063
2063
  var g;
2064
2064
  let n, { five: o } = t, { roomLabels: s } = t, r, a, l = (g = o.model.shownFloor) != null ? g : null;
2065
- function c(A) {
2066
- if (!(l === null || A.floorIndex === l))
2065
+ function c(v) {
2066
+ if (!(l === null || v.floorIndex === l))
2067
2067
  return !1;
2068
- const w = new Qt(), y = o.camera.position.clone(), x = new _(A.position.x, A.position.y, A.position.z), L = x.distanceTo(y);
2068
+ const w = new Qt(), y = o.camera.position.clone(), x = new _(v.position.x, v.position.y, v.position.z), L = x.distanceTo(y);
2069
2069
  w.set(y.clone(), x.clone().sub(y).normalize());
2070
2070
  const [C] = o.model.intersectRaycaster(w);
2071
2071
  return !(C && C.distance + 1 < L);
2072
2072
  }
2073
- function d(A, v) {
2074
- const y = new _(A.position.x, A.position.y, A.position.z).clone().project(o.camera), x = Math.ceil((y.x + 1) / 2 * v.x), L = Math.ceil((-y.y + 1) / 2 * v.y);
2073
+ function d(v, A) {
2074
+ const y = new _(v.position.x, v.position.y, v.position.z).clone().project(o.camera), x = Math.ceil((y.x + 1) / 2 * A.x), L = Math.ceil((-y.y + 1) / 2 * A.y);
2075
2075
  return `translate(${x}px, ${L}px)`;
2076
2076
  }
2077
- function u(A) {
2078
- const { rendererSize: v, shownFloor: w } = A, y = /* @__PURE__ */ new Map();
2077
+ function u(v) {
2078
+ const { rendererSize: A, shownFloor: w } = v, y = /* @__PURE__ */ new Map();
2079
2079
  function x(C) {
2080
2080
  const S = y.get(C.id);
2081
2081
  if (S)
@@ -2084,24 +2084,24 @@ function Ic(i, t, e) {
2084
2084
  return y.set(C.id, N), N;
2085
2085
  }
2086
2086
  return s.map((C) => {
2087
- const S = c(C), k = S ? d(C, v) : C.transform, F = x(C), N = s.filter((Y) => Y.visible && x(Y) < F).length * 10;
2087
+ const S = c(C), k = S ? d(C, A) : C.transform, F = x(C), N = s.filter((Y) => Y.visible && x(Y) < F).length * 10;
2088
2088
  return he(G({}, C), { visible: S, transform: k, zIndex: N });
2089
2089
  });
2090
2090
  }
2091
2091
  function h() {
2092
2092
  e(0, s = u({ rendererSize: n, shownFloor: l }));
2093
2093
  }
2094
- function p(A) {
2095
- e(4, l = A);
2094
+ function m(v) {
2095
+ e(4, l = v);
2096
2096
  }
2097
- o.on("cameraUpdate", h), o.on("modelShownFloorChange", p), wt(() => {
2098
- o.off("cameraUpdate", h), o.off("modelShownFloorChange", p);
2097
+ o.on("cameraUpdate", h), o.on("modelShownFloorChange", m), wt(() => {
2098
+ o.off("cameraUpdate", h), o.off("modelShownFloorChange", m);
2099
2099
  });
2100
- function m() {
2100
+ function p() {
2101
2101
  r = this.clientWidth, a = this.clientHeight, e(2, r), e(3, a);
2102
2102
  }
2103
- return i.$$set = (A) => {
2104
- "five" in A && e(1, o = A.five), "roomLabels" in A && e(0, s = A.roomLabels);
2103
+ return i.$$set = (v) => {
2104
+ "five" in v && e(1, o = v.five), "roomLabels" in v && e(0, s = v.roomLabels);
2105
2105
  }, i.$$.update = () => {
2106
2106
  i.$$.dirty & 12 && e(5, n = { x: r, y: a }), i.$$.dirty & 48 && e(0, s = u({ rendererSize: n, shownFloor: l }));
2107
2107
  }, [
@@ -2111,7 +2111,7 @@ function Ic(i, t, e) {
2111
2111
  a,
2112
2112
  l,
2113
2113
  n,
2114
- m
2114
+ p
2115
2115
  ];
2116
2116
  }
2117
2117
  class xc extends oe {
@@ -2316,15 +2316,15 @@ function Qc(i) {
2316
2316
  }
2317
2317
  function Rc(i, t, e) {
2318
2318
  let { panoIndex: n } = t, { floorplanData: o } = t, { lastPanoramaLongitude: s } = t, { cameraImageUrl: r } = t;
2319
- const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, u = c * 100 + "%", h = d * 100 + "%", p = -Bc(s) + 45, m = document.body.clientWidth, g = document.body.clientHeight, v = `${(m < 500 || g < 500 ? 17 : 37) / 16}rem`;
2319
+ const { observers: a } = o, l = a[n], c = l.positionInImage.x, d = l.positionInImage.y, u = c * 100 + "%", h = d * 100 + "%", m = -Bc(s) + 45, p = document.body.clientWidth, g = document.body.clientHeight, A = `${(p < 500 || g < 500 ? 17 : 37) / 16}rem`;
2320
2320
  return i.$$set = (w) => {
2321
2321
  "panoIndex" in w && e(5, n = w.panoIndex), "floorplanData" in w && e(6, o = w.floorplanData), "lastPanoramaLongitude" in w && e(7, s = w.lastPanoramaLongitude), "cameraImageUrl" in w && e(0, r = w.cameraImageUrl);
2322
2322
  }, [
2323
2323
  r,
2324
2324
  u,
2325
2325
  h,
2326
- p,
2327
- v,
2326
+ m,
2327
+ A,
2328
2328
  n,
2329
2329
  o,
2330
2330
  s
@@ -2362,7 +2362,7 @@ function Gc(i) {
2362
2362
  B(r, t, a), Q(t, e), Q(t, n), Q(t, o), Q(o, s);
2363
2363
  },
2364
2364
  p(r, a) {
2365
- a & 1 && Me(s, r[0]);
2365
+ a & 1 && Te(s, r[0]);
2366
2366
  },
2367
2367
  d(r) {
2368
2368
  r && T(t);
@@ -2634,7 +2634,7 @@ function ad(i) {
2634
2634
  B(a, t, l), Q(t, n), B(a, o, l), B(a, s, l), Q(s, r);
2635
2635
  },
2636
2636
  p(a, l) {
2637
- l & 1 && e !== (e = a[0].name + "") && Me(n, e), l & 32 && Me(r, a[5]);
2637
+ l & 1 && e !== (e = a[0].name + "") && Te(n, e), l & 32 && Te(r, a[5]);
2638
2638
  },
2639
2639
  d(a) {
2640
2640
  a && T(t), a && T(o), a && T(s);
@@ -2678,7 +2678,7 @@ function cd(i, t) {
2678
2678
  }
2679
2679
  function dd(i, t, e) {
2680
2680
  let n, o, s, r, { pxmm: a } = t, { room: l } = t, { hoveredRoom: c } = t, { getRoomAreaText: d } = t, { getLabelElement: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
2681
- function p(k, F) {
2681
+ function m(k, F) {
2682
2682
  if (F.width === 0 || F.height === 0)
2683
2683
  return () => !1;
2684
2684
  const H = k.path.map(({ x: Z, y: X }) => [Z, X]), N = k.roomLabel.position, { x: Y, y: P } = N, { width: I, height: z } = F, O = I / 2, W = z / 2;
@@ -2692,7 +2692,7 @@ function dd(i, t, e) {
2692
2692
  ].every((we) => cd(we, ue));
2693
2693
  };
2694
2694
  }
2695
- const m = document.body.clientWidth, g = document.body.clientHeight, A = l.roomLabel, v = A.positionInImage.x * 100 + "%", w = A.positionInImage.y * 100 + "%", y = (m < 500 || g < 500 ? 10 : 14) / 16 + "rem";
2695
+ const p = document.body.clientWidth, g = document.body.clientHeight, v = l.roomLabel, A = v.positionInImage.x * 100 + "%", w = v.positionInImage.y * 100 + "%", y = (p < 500 || g < 500 ? 10 : 14) / 16 + "rem";
2696
2696
  let x = !1, L, C;
2697
2697
  c.subscribe(function(F) {
2698
2698
  e(13, x = !!F && F.id === l.id);
@@ -2704,14 +2704,14 @@ function dd(i, t, e) {
2704
2704
  });
2705
2705
  });
2706
2706
  function S(k) {
2707
- Te[k ? "unshift" : "push"](() => {
2707
+ ze[k ? "unshift" : "push"](() => {
2708
2708
  L = k, e(2, L);
2709
2709
  });
2710
2710
  }
2711
2711
  return i.$$set = (k) => {
2712
2712
  "pxmm" in k && e(9, a = k.pxmm), "room" in k && e(0, l = k.room), "hoveredRoom" in k && e(10, c = k.hoveredRoom), "getRoomAreaText" in k && e(11, d = k.getRoomAreaText), "getLabelElement" in k && e(1, u = k.getLabelElement), "adaptiveRoomLabelVisibleEnable" in k && e(12, h = k.adaptiveRoomLabelVisibleEnable);
2713
2713
  }, i.$$.update = () => {
2714
- i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? p(l, C) : void 0), i.$$.dirty & 3 && e(4, s = u == null ? void 0 : u(l)), i.$$.dirty & 45568 && e(3, r = h ? x ? !0 : !!(o != null && o(a)) : !0);
2714
+ i.$$.dirty & 2049 && e(5, n = l.size ? d(l.size) : ""), i.$$.dirty & 16385 && e(15, o = C ? m(l, C) : void 0), i.$$.dirty & 3 && e(4, s = u == null ? void 0 : u(l)), i.$$.dirty & 45568 && e(3, r = h ? x ? !0 : !!(o != null && o(a)) : !0);
2715
2715
  }, [
2716
2716
  l,
2717
2717
  u,
@@ -2719,7 +2719,7 @@ function dd(i, t, e) {
2719
2719
  r,
2720
2720
  s,
2721
2721
  n,
2722
- v,
2722
+ A,
2723
2723
  w,
2724
2724
  y,
2725
2725
  a,
@@ -2828,7 +2828,7 @@ function jo(i, t) {
2828
2828
  },
2829
2829
  p(a, l) {
2830
2830
  t = a;
2831
- const c = l & 111 ? Be(s, [
2831
+ const c = l & 111 ? Me(s, [
2832
2832
  {
2833
2833
  pxmm: t[5],
2834
2834
  room: t[10],
@@ -2881,11 +2881,11 @@ function md(i, t, e) {
2881
2881
  function h() {
2882
2882
  d = this.clientWidth, e(4, d);
2883
2883
  }
2884
- return i.$$set = (p) => {
2885
- "floorIndex" in p && e(7, o = p.floorIndex), "floorplanData" in p && e(8, s = p.floorplanData), "hoveredRoom" in p && e(0, r = p.hoveredRoom), "getRoomAreaText" in p && e(1, a = p.getRoomAreaText), "getLabelElement" in p && e(2, l = p.getLabelElement), "adaptiveRoomLabelVisibleEnable" in p && e(3, c = p.adaptiveRoomLabelVisibleEnable);
2884
+ return i.$$set = (m) => {
2885
+ "floorIndex" in m && e(7, o = m.floorIndex), "floorplanData" in m && e(8, s = m.floorplanData), "hoveredRoom" in m && e(0, r = m.hoveredRoom), "getRoomAreaText" in m && e(1, a = m.getRoomAreaText), "getLabelElement" in m && e(2, l = m.getLabelElement), "adaptiveRoomLabelVisibleEnable" in m && e(3, c = m.adaptiveRoomLabelVisibleEnable);
2886
2886
  }, i.$$.update = () => {
2887
2887
  if (i.$$.dirty & 384 && e(6, n = s.floorDatas[o].rooms), i.$$.dirty & 272) {
2888
- const { max: p, min: m } = s.bounding, g = p.x - m.x;
2888
+ const { max: m, min: p } = s.bounding, g = m.x - p.x;
2889
2889
  e(5, u = d / g);
2890
2890
  }
2891
2891
  }, [
@@ -2959,7 +2959,7 @@ function Oo(i, t) {
2959
2959
  B(a, e, l), Q(e, n), Q(n, s), Q(e, r);
2960
2960
  },
2961
2961
  p(a, l) {
2962
- t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") && Me(s, o);
2962
+ t = a, l & 2 && o !== (o = t[1](t[11].distance) + "") && Te(s, o);
2963
2963
  },
2964
2964
  d(a) {
2965
2965
  a && T(e);
@@ -2968,50 +2968,50 @@ function Oo(i, t) {
2968
2968
  }
2969
2969
  function Ad(i) {
2970
2970
  let t, e, n, o, s, r, a = [], l = /* @__PURE__ */ new Map(), c, d = i[3], u = [];
2971
- for (let m = 0; m < d.length; m += 1)
2972
- u[m] = Ho(Ro(i, d, m));
2971
+ for (let p = 0; p < d.length; p += 1)
2972
+ u[p] = Ho(Ro(i, d, p));
2973
2973
  let h = i[4];
2974
- const p = (m) => m[13];
2975
- for (let m = 0; m < h.length; m += 1) {
2976
- let g = Qo(i, h, m), A = p(g);
2977
- l.set(A, a[m] = Oo(A, g));
2974
+ const m = (p) => p[13];
2975
+ for (let p = 0; p < h.length; p += 1) {
2976
+ let g = Qo(i, h, p), v = m(g);
2977
+ l.set(v, a[p] = Oo(v, g));
2978
2978
  }
2979
2979
  return {
2980
2980
  c() {
2981
2981
  t = j("div"), e = j("div"), n = V(), o = j("div");
2982
- for (let m = 0; m < u.length; m += 1)
2983
- u[m].c();
2982
+ for (let p = 0; p < u.length; p += 1)
2983
+ u[p].c();
2984
2984
  s = V(), r = j("div");
2985
- for (let m = 0; m < a.length; m += 1)
2986
- a[m].c();
2985
+ for (let p = 0; p < a.length; p += 1)
2986
+ a[p].c();
2987
2987
  b(e, "class", "floorplan-plugin__rule-line svelte-djlmk4"), b(o, "class", "floorplan-plugin__rule-scale-wrapper svelte-djlmk4"), q(o, "is-row", i[2]), b(r, "class", "floorplan-plugin__rule-text-wrapper svelte-djlmk4"), b(t, "class", c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + i[0] + " svelte-djlmk4"), q(t, "is-row", i[2]), R(t, "width", i[2] ? "100%" : 1 / 16 + "rem"), R(t, "height", i[2] ? 1 / 16 + "rem" : "100%");
2988
2988
  },
2989
- m(m, g) {
2990
- B(m, t, g), Q(t, e), Q(t, n), Q(t, o);
2991
- for (let A = 0; A < u.length; A += 1)
2992
- u[A].m(o, null);
2989
+ m(p, g) {
2990
+ B(p, t, g), Q(t, e), Q(t, n), Q(t, o);
2991
+ for (let v = 0; v < u.length; v += 1)
2992
+ u[v].m(o, null);
2993
2993
  Q(t, s), Q(t, r);
2994
- for (let A = 0; A < a.length; A += 1)
2995
- a[A].m(r, null);
2994
+ for (let v = 0; v < a.length; v += 1)
2995
+ a[v].m(r, null);
2996
2996
  },
2997
- p(m, [g]) {
2997
+ p(p, [g]) {
2998
2998
  if (g & 8) {
2999
- d = m[3];
3000
- let A;
3001
- for (A = 0; A < d.length; A += 1) {
3002
- const v = Ro(m, d, A);
3003
- u[A] ? u[A].p(v, g) : (u[A] = Ho(v), u[A].c(), u[A].m(o, null));
2999
+ d = p[3];
3000
+ let v;
3001
+ for (v = 0; v < d.length; v += 1) {
3002
+ const A = Ro(p, d, v);
3003
+ u[v] ? u[v].p(A, g) : (u[v] = Ho(A), u[v].c(), u[v].m(o, null));
3004
3004
  }
3005
- for (; A < u.length; A += 1)
3006
- u[A].d(1);
3005
+ for (; v < u.length; v += 1)
3006
+ u[v].d(1);
3007
3007
  u.length = d.length;
3008
3008
  }
3009
- g & 22 && (h = m[4], a = Ue(a, g, p, 1, m, h, l, r, pa, Oo, null, Qo)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + m[0] + " svelte-djlmk4") && b(t, "class", c), g & 5 && q(t, "is-row", m[2]);
3009
+ g & 22 && (h = p[4], a = Ue(a, g, m, 1, p, h, l, r, pa, Oo, null, Qo)), g & 1 && c !== (c = "floorplan-plugin__rule-labels floorplan-plugin__rule-labels--" + p[0] + " svelte-djlmk4") && b(t, "class", c), g & 5 && q(t, "is-row", p[2]);
3010
3010
  },
3011
3011
  i: te,
3012
3012
  o: te,
3013
- d(m) {
3014
- m && T(t), tt(u, m);
3013
+ d(p) {
3014
+ p && T(t), tt(u, p);
3015
3015
  for (let g = 0; g < a.length; g += 1)
3016
3016
  a[g].d();
3017
3017
  }
@@ -3020,18 +3020,18 @@ function Ad(i) {
3020
3020
  const Wt = 1e3, Xt = 180;
3021
3021
  function vd(i, t, e) {
3022
3022
  let { type: n } = t, { data: o } = t, { bounding: s } = t, { getRuleDistanceText: r } = t;
3023
- const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([m, g]) => a ? [m.x, g.x] : [m.y, g.y]).flat().sort().filter((m, g, A) => g === 0 ? !0 : m !== A[g - 1]), u = d.map((m) => {
3024
- const g = a ? (m - s.min.x - Wt + Xt) / l : 0, A = a ? 0 : (m - s.min.y - Wt + Xt) / c;
3025
- return { left: g, bottom: A };
3023
+ const a = n === "top" || n === "bottom", l = s.max.x - s.min.x - (Wt - Xt) * 2, c = s.max.y - s.min.y - (Wt - Xt) * 2, d = o.map(([p, g]) => a ? [p.x, g.x] : [p.y, g.y]).flat().sort().filter((p, g, v) => g === 0 ? !0 : p !== v[g - 1]), u = d.map((p) => {
3024
+ const g = a ? (p - s.min.x - Wt + Xt) / l : 0, v = a ? 0 : (p - s.min.y - Wt + Xt) / c;
3025
+ return { left: g, bottom: v };
3026
3026
  });
3027
3027
  u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
3028
- const h = d[d.length - 1] - d[0], p = d.map((m, g, A) => {
3029
- const v = g === 0 ? 0 : m - A[g - 1], w = g === 0 ? 0 : (m + A[g - 1]) / 2, y = a ? (w - s.min.x - Wt + Xt) / l : 0, x = a ? 0 : (w - s.min.y - Wt + Xt) / c;
3030
- return { left: y, bottom: x, distance: v };
3031
- }).filter(({ distance: m }) => m / h > 0.1);
3032
- return i.$$set = (m) => {
3033
- "type" in m && e(0, n = m.type), "data" in m && e(5, o = m.data), "bounding" in m && e(6, s = m.bounding), "getRuleDistanceText" in m && e(1, r = m.getRuleDistanceText);
3034
- }, [n, r, a, u, p, o, s];
3028
+ const h = d[d.length - 1] - d[0], m = d.map((p, g, v) => {
3029
+ const A = g === 0 ? 0 : p - v[g - 1], w = g === 0 ? 0 : (p + v[g - 1]) / 2, y = a ? (w - s.min.x - Wt + Xt) / l : 0, x = a ? 0 : (w - s.min.y - Wt + Xt) / c;
3030
+ return { left: y, bottom: x, distance: A };
3031
+ }).filter(({ distance: p }) => p / h > 0.1);
3032
+ return i.$$set = (p) => {
3033
+ "type" in p && e(0, n = p.type), "data" in p && e(5, o = p.data), "bounding" in p && e(6, s = p.bounding), "getRuleDistanceText" in p && e(1, r = p.getRuleDistanceText);
3034
+ }, [n, r, a, u, m, o, s];
3035
3035
  }
3036
3036
  class bd extends oe {
3037
3037
  constructor(t) {
@@ -3082,7 +3082,7 @@ function Go(i, t) {
3082
3082
  },
3083
3083
  p(a, l) {
3084
3084
  t = a;
3085
- const c = l & 19 ? Be(s, [
3085
+ const c = l & 19 ? Me(s, [
3086
3086
  {
3087
3087
  type: t[13],
3088
3088
  data: t[14],
@@ -3147,19 +3147,19 @@ function wd(i) {
3147
3147
  }
3148
3148
  const No = 1e3, Wo = 180;
3149
3149
  function Cd(i, t, e) {
3150
- let n, o, s, r, a, l, c, d, u, h, { floorIndex: p } = t, { floorplanData: m } = t, { getRuleDistanceText: g } = t;
3151
- return i.$$set = (A) => {
3152
- "floorIndex" in A && e(5, p = A.floorIndex), "floorplanData" in A && e(6, m = A.floorplanData), "getRuleDistanceText" in A && e(0, g = A.getRuleDistanceText);
3150
+ let n, o, s, r, a, l, c, d, u, h, { floorIndex: m } = t, { floorplanData: p } = t, { getRuleDistanceText: g } = t;
3151
+ return i.$$set = (v) => {
3152
+ "floorIndex" in v && e(5, m = v.floorIndex), "floorplanData" in v && e(6, p = v.floorplanData), "getRuleDistanceText" in v && e(0, g = v.getRuleDistanceText);
3153
3153
  }, i.$$.update = () => {
3154
- i.$$.dirty & 64 && e(1, n = m.bounding), i.$$.dirty & 96 && e(11, o = m.floorDatas[p].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((A) => [A, o[A]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (No - Wo) * 2), i.$$.dirty & 2 && e(8, d = n.max.y - n.min.y - (No - Wo) * 2), i.$$.dirty & 1536 && e(3, u = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = d / l * 100 + "%");
3154
+ i.$$.dirty & 64 && e(1, n = p.bounding), i.$$.dirty & 96 && e(11, o = p.floorDatas[m].rules), i.$$.dirty & 2048 && e(12, s = Object.keys(o)), i.$$.dirty & 6144 && e(4, r = s.map((v) => [v, o[v]])), i.$$.dirty & 2 && e(9, a = n.max.x - n.min.x), i.$$.dirty & 2 && e(7, l = n.max.y - n.min.y), i.$$.dirty & 2 && e(10, c = n.max.x - n.min.x - (No - Wo) * 2), i.$$.dirty & 2 && e(8, d = n.max.y - n.min.y - (No - Wo) * 2), i.$$.dirty & 1536 && e(3, u = c / a * 100 + "%"), i.$$.dirty & 384 && e(2, h = d / l * 100 + "%");
3155
3155
  }, [
3156
3156
  g,
3157
3157
  n,
3158
3158
  h,
3159
3159
  u,
3160
3160
  r,
3161
- p,
3162
3161
  m,
3162
+ p,
3163
3163
  l,
3164
3164
  d,
3165
3165
  a,
@@ -3285,11 +3285,11 @@ function Md(i) {
3285
3285
  c() {
3286
3286
  t = Ae("defs"), e = Ae("pattern"), n = Ae("rect"), o = Ae("pattern"), s = Ae("rect"), r = V(), a = Ae("path"), l = V(), c = Ae("path"), d = V(), u = Ae("path"), b(n, "x", "0"), b(n, "y", "0"), b(n, "width", "6"), b(n, "height", "50"), b(n, "fill", "none"), b(n, "stroke", "#4B4B57"), b(n, "stroke-width", "0.5"), b(e, "id", "room-material-pattern-1"), b(e, "x", "0"), b(e, "y", "0"), b(e, "width", "12"), b(e, "height", "50"), b(e, "patternUnits", "userSpaceOnUse"), b(e, "patternTransform", "scale(50 50)"), b(s, "x", "0"), b(s, "y", "0"), b(s, "width", "6"), b(s, "height", "50"), b(s, "fill", "none"), b(s, "stroke", "#4B4B57"), b(s, "stroke-width", "0.5"), b(o, "id", "room-material-pattern-2"), b(o, "x", "6"), b(o, "y", "25"), b(o, "width", "12"), b(o, "height", "50"), b(o, "patternUnits", "userSpaceOnUse"), b(o, "patternTransform", "scale(50 50)"), b(a, "d", i[0]), b(a, "fill", "#43434D"), b(c, "d", i[0]), b(c, "fill", "url(#room-material-pattern-1)"), b(u, "d", i[0]), b(u, "fill", "url(#room-material-pattern-2)");
3287
3287
  },
3288
- m(h, p) {
3289
- B(h, t, p), Q(t, e), Q(e, n), Q(t, o), Q(o, s), B(h, r, p), B(h, a, p), B(h, l, p), B(h, c, p), B(h, d, p), B(h, u, p);
3288
+ m(h, m) {
3289
+ B(h, t, m), Q(t, e), Q(e, n), Q(t, o), Q(o, s), B(h, r, m), B(h, a, m), B(h, l, m), B(h, c, m), B(h, d, m), B(h, u, m);
3290
3290
  },
3291
- p(h, [p]) {
3292
- p & 1 && b(a, "d", h[0]), p & 1 && b(c, "d", h[0]), p & 1 && b(u, "d", h[0]);
3291
+ p(h, [m]) {
3292
+ m & 1 && b(a, "d", h[0]), m & 1 && b(c, "d", h[0]), m & 1 && b(u, "d", h[0]);
3293
3293
  },
3294
3294
  i: te,
3295
3295
  o: te,
@@ -3573,7 +3573,7 @@ function Jo(i, t) {
3573
3573
  },
3574
3574
  p(a, l) {
3575
3575
  t = a;
3576
- const c = l & 7 ? Be(s, [
3576
+ const c = l & 7 ? Me(s, [
3577
3577
  {
3578
3578
  room: t[5],
3579
3579
  floorplanData: t[1],
@@ -3682,7 +3682,7 @@ function Vo(i) {
3682
3682
  K(t, s, r), e = !0;
3683
3683
  },
3684
3684
  p(s, r) {
3685
- const a = r & 1058 ? Be(n, [
3685
+ const a = r & 1058 ? Me(n, [
3686
3686
  {
3687
3687
  floorIndex: s[1],
3688
3688
  floorplanData: s[5],
@@ -3725,7 +3725,7 @@ function Zo(i) {
3725
3725
  K(t, s, r), e = !0;
3726
3726
  },
3727
3727
  p(s, r) {
3728
- const a = r & 1762 ? Be(n, [
3728
+ const a = r & 1762 ? Me(n, [
3729
3729
  {
3730
3730
  floorplanData: s[5],
3731
3731
  floorIndex: s[1],
@@ -3768,7 +3768,7 @@ function _o(i) {
3768
3768
  K(t, s, r), e = !0;
3769
3769
  },
3770
3770
  p(s, r) {
3771
- const a = r & 290 ? Be(n, [
3771
+ const a = r & 290 ? Me(n, [
3772
3772
  {
3773
3773
  floorplanData: s[5],
3774
3774
  floorIndex: s[1],
@@ -3797,66 +3797,66 @@ function qd(i) {
3797
3797
  }
3798
3798
  ];
3799
3799
  let u = {};
3800
- for (let v = 0; v < d.length; v += 1)
3801
- u = ye(u, d[v]);
3800
+ for (let A = 0; A < d.length; A += 1)
3801
+ u = ye(u, d[A]);
3802
3802
  e = new Nd({ props: u });
3803
3803
  let h = i[2] && Vo(i);
3804
- const p = [
3804
+ const m = [
3805
3805
  {
3806
3806
  floorplanData: i[5],
3807
3807
  floorIndex: i[1]
3808
3808
  }
3809
3809
  ];
3810
- let m = {};
3811
- for (let v = 0; v < p.length; v += 1)
3812
- m = ye(m, p[v]);
3813
- s = new Aa({ props: m });
3814
- let g = i[3] && Zo(i), A = i[4] && _o(i);
3810
+ let p = {};
3811
+ for (let A = 0; A < m.length; A += 1)
3812
+ p = ye(p, m[A]);
3813
+ s = new Aa({ props: p });
3814
+ let g = i[3] && Zo(i), v = i[4] && _o(i);
3815
3815
  return {
3816
3816
  c() {
3817
- t = j("div"), ee(e.$$.fragment), n = V(), h && h.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(), A && A.c(), b(t, "class", l = Le(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3817
+ t = j("div"), ee(e.$$.fragment), n = V(), h && h.c(), o = V(), ee(s.$$.fragment), r = V(), g && g.c(), a = V(), v && v.c(), b(t, "class", l = je(`floorplan-plugin__floor${i[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz");
3818
3818
  },
3819
- m(v, w) {
3820
- B(v, t, w), K(e, t, null), Q(t, n), h && h.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), A && A.m(t, null), c = !0;
3819
+ m(A, w) {
3820
+ B(A, t, w), K(e, t, null), Q(t, n), h && h.m(t, null), Q(t, o), K(s, t, null), Q(t, r), g && g.m(t, null), Q(t, a), v && v.m(t, null), c = !0;
3821
3821
  },
3822
- p(v, [w]) {
3823
- const y = w & 34 ? Be(d, [
3822
+ p(A, [w]) {
3823
+ const y = w & 34 ? Me(d, [
3824
3824
  {
3825
- floorIndex: v[1],
3826
- floorplanData: v[5]
3825
+ floorIndex: A[1],
3826
+ floorplanData: A[5]
3827
3827
  }
3828
3828
  ]) : {};
3829
- e.$set(y), v[2] ? h ? (h.p(v, w), w & 4 && D(h, 1)) : (h = Vo(v), h.c(), D(h, 1), h.m(t, o)) : h && (le(), M(h, 1, 1, () => {
3829
+ e.$set(y), A[2] ? h ? (h.p(A, w), w & 4 && D(h, 1)) : (h = Vo(A), h.c(), D(h, 1), h.m(t, o)) : h && (le(), M(h, 1, 1, () => {
3830
3830
  h = null;
3831
3831
  }), ce());
3832
- const x = w & 34 ? Be(p, [
3832
+ const x = w & 34 ? Me(m, [
3833
3833
  {
3834
- floorplanData: v[5],
3835
- floorIndex: v[1]
3834
+ floorplanData: A[5],
3835
+ floorIndex: A[1]
3836
3836
  }
3837
3837
  ]) : {};
3838
- s.$set(x), v[3] ? g ? (g.p(v, w), w & 8 && D(g, 1)) : (g = Zo(v), g.c(), D(g, 1), g.m(t, a)) : g && (le(), M(g, 1, 1, () => {
3838
+ s.$set(x), A[3] ? g ? (g.p(A, w), w & 8 && D(g, 1)) : (g = Zo(A), g.c(), D(g, 1), g.m(t, a)) : g && (le(), M(g, 1, 1, () => {
3839
3839
  g = null;
3840
- }), ce()), v[4] ? A ? (A.p(v, w), w & 16 && D(A, 1)) : (A = _o(v), A.c(), D(A, 1), A.m(t, null)) : A && (le(), M(A, 1, 1, () => {
3841
- A = null;
3842
- }), ce()), (!c || w & 1 && l !== (l = Le(`floorplan-plugin__floor${v[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
3840
+ }), ce()), A[4] ? v ? (v.p(A, w), w & 16 && D(v, 1)) : (v = _o(A), v.c(), D(v, 1), v.m(t, null)) : v && (le(), M(v, 1, 1, () => {
3841
+ v = null;
3842
+ }), ce()), (!c || w & 1 && l !== (l = je(`floorplan-plugin__floor${A[0] ? " floorplan-plugin__floor--is-current" : ""}`) + " svelte-bl8zrz")) && b(t, "class", l);
3843
3843
  },
3844
- i(v) {
3845
- c || (D(e.$$.fragment, v), D(h), D(s.$$.fragment, v), D(g), D(A), c = !0);
3844
+ i(A) {
3845
+ c || (D(e.$$.fragment, A), D(h), D(s.$$.fragment, A), D(g), D(v), c = !0);
3846
3846
  },
3847
- o(v) {
3848
- M(e.$$.fragment, v), M(h), M(s.$$.fragment, v), M(g), M(A), c = !1;
3847
+ o(A) {
3848
+ M(e.$$.fragment, A), M(h), M(s.$$.fragment, A), M(g), M(v), c = !1;
3849
3849
  },
3850
- d(v) {
3851
- v && T(t), $(e), h && h.d(), $(s), g && g.d(), A && A.d();
3850
+ d(A) {
3851
+ A && T(t), $(e), h && h.d(), $(s), g && g.d(), v && v.d();
3852
3852
  }
3853
3853
  };
3854
3854
  }
3855
3855
  function Kd(i, t, e) {
3856
3856
  let { isCurrent: n } = t, { floorIndex: o } = t, { hoverEnable: s } = t, { roomLabelsEnable: r } = t, { ruleLabelsEnable: a } = t, { floorplanData: l } = t, { getRoomAreaText: c } = t, { getLabelElement: d } = t, { getRuleDistanceText: u } = t, { adaptiveRoomLabelVisibleEnable: h } = t;
3857
- const p = io(void 0);
3858
- return i.$$set = (m) => {
3859
- "isCurrent" in m && e(0, n = m.isCurrent), "floorIndex" in m && e(1, o = m.floorIndex), "hoverEnable" in m && e(2, s = m.hoverEnable), "roomLabelsEnable" in m && e(3, r = m.roomLabelsEnable), "ruleLabelsEnable" in m && e(4, a = m.ruleLabelsEnable), "floorplanData" in m && e(5, l = m.floorplanData), "getRoomAreaText" in m && e(6, c = m.getRoomAreaText), "getLabelElement" in m && e(7, d = m.getLabelElement), "getRuleDistanceText" in m && e(8, u = m.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in m && e(9, h = m.adaptiveRoomLabelVisibleEnable);
3857
+ const m = io(void 0);
3858
+ return i.$$set = (p) => {
3859
+ "isCurrent" in p && e(0, n = p.isCurrent), "floorIndex" in p && e(1, o = p.floorIndex), "hoverEnable" in p && e(2, s = p.hoverEnable), "roomLabelsEnable" in p && e(3, r = p.roomLabelsEnable), "ruleLabelsEnable" in p && e(4, a = p.ruleLabelsEnable), "floorplanData" in p && e(5, l = p.floorplanData), "getRoomAreaText" in p && e(6, c = p.getRoomAreaText), "getLabelElement" in p && e(7, d = p.getLabelElement), "getRuleDistanceText" in p && e(8, u = p.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in p && e(9, h = p.adaptiveRoomLabelVisibleEnable);
3860
3860
  }, [
3861
3861
  n,
3862
3862
  o,
@@ -3868,7 +3868,7 @@ function Kd(i, t, e) {
3868
3868
  d,
3869
3869
  u,
3870
3870
  h,
3871
- p
3871
+ m
3872
3872
  ];
3873
3873
  }
3874
3874
  class $d extends oe {
@@ -3904,10 +3904,10 @@ function qo(i, t, e) {
3904
3904
  }
3905
3905
  function Ko(i) {
3906
3906
  let t, e, n, o, s, r, a = i[9].floorDatas, l = [];
3907
- for (let p = 0; p < a.length; p += 1)
3908
- l[p] = $o(qo(i, a, p));
3909
- const c = (p) => M(l[p], 1, 1, () => {
3910
- l[p] = null;
3907
+ for (let m = 0; m < a.length; m += 1)
3908
+ l[m] = $o(qo(i, a, m));
3909
+ const c = (m) => M(l[m], 1, 1, () => {
3910
+ l[m] = null;
3911
3911
  }), d = [
3912
3912
  {
3913
3913
  panoIndex: i[3],
@@ -3917,36 +3917,36 @@ function Ko(i) {
3917
3917
  }
3918
3918
  ];
3919
3919
  let u = {};
3920
- for (let p = 0; p < d.length; p += 1)
3921
- u = ye(u, d[p]);
3920
+ for (let m = 0; m < d.length; m += 1)
3921
+ u = ye(u, d[m]);
3922
3922
  n = new Hc({ props: u });
3923
3923
  let h = i[6] && es(i);
3924
3924
  return {
3925
3925
  c() {
3926
3926
  t = j("div");
3927
- for (let p = 0; p < l.length; p += 1)
3928
- l[p].c();
3927
+ for (let m = 0; m < l.length; m += 1)
3928
+ l[m].c();
3929
3929
  e = V(), ee(n.$$.fragment), o = V(), h && h.c(), b(t, "class", "floorplan-main svelte-86bqav");
3930
3930
  },
3931
- m(p, m) {
3932
- B(p, t, m);
3931
+ m(m, p) {
3932
+ B(m, t, p);
3933
3933
  for (let g = 0; g < l.length; g += 1)
3934
3934
  l[g].m(t, null);
3935
3935
  Q(t, e), K(n, t, null), Q(t, o), h && h.m(t, null), r = !0;
3936
3936
  },
3937
- p(p, m) {
3938
- if (i = p, m & 62384) {
3937
+ p(m, p) {
3938
+ if (i = m, p & 62384) {
3939
3939
  a = i[9].floorDatas;
3940
- let A;
3941
- for (A = 0; A < a.length; A += 1) {
3942
- const v = qo(i, a, A);
3943
- l[A] ? (l[A].p(v, m), D(l[A], 1)) : (l[A] = $o(v), l[A].c(), D(l[A], 1), l[A].m(t, e));
3940
+ let v;
3941
+ for (v = 0; v < a.length; v += 1) {
3942
+ const A = qo(i, a, v);
3943
+ l[v] ? (l[v].p(A, p), D(l[v], 1)) : (l[v] = $o(A), l[v].c(), D(l[v], 1), l[v].m(t, e));
3944
3944
  }
3945
- for (le(), A = a.length; A < l.length; A += 1)
3946
- c(A);
3945
+ for (le(), v = a.length; v < l.length; v += 1)
3946
+ c(v);
3947
3947
  ce();
3948
3948
  }
3949
- const g = m & 3592 ? Be(d, [
3949
+ const g = p & 3592 ? Me(d, [
3950
3950
  {
3951
3951
  panoIndex: i[3],
3952
3952
  floorplanData: i[9],
@@ -3954,15 +3954,15 @@ function Ko(i) {
3954
3954
  cameraImageUrl: i[11]
3955
3955
  }
3956
3956
  ]) : {};
3957
- n.$set(g), i[6] ? h ? (h.p(i, m), m & 64 && D(h, 1)) : (h = es(i), h.c(), D(h, 1), h.m(t, null)) : h && (le(), M(h, 1, 1, () => {
3957
+ n.$set(g), i[6] ? h ? (h.p(i, p), p & 64 && D(h, 1)) : (h = es(i), h.c(), D(h, 1), h.m(t, null)) : h && (le(), M(h, 1, 1, () => {
3958
3958
  h = null;
3959
3959
  }), ce());
3960
3960
  },
3961
- i(p) {
3961
+ i(m) {
3962
3962
  if (!r) {
3963
- for (let m = 0; m < a.length; m += 1)
3964
- D(l[m]);
3965
- D(n.$$.fragment, p), D(h), s || Ie(() => {
3963
+ for (let p = 0; p < a.length; p += 1)
3964
+ D(l[p]);
3965
+ D(n.$$.fragment, m), D(h), s || Ie(() => {
3966
3966
  s = Ht(t, Mt, {
3967
3967
  duration: i[0],
3968
3968
  easing: Vt
@@ -3970,14 +3970,14 @@ function Ko(i) {
3970
3970
  }), r = !0;
3971
3971
  }
3972
3972
  },
3973
- o(p) {
3973
+ o(m) {
3974
3974
  l = l.filter(Boolean);
3975
- for (let m = 0; m < l.length; m += 1)
3976
- M(l[m]);
3977
- M(n.$$.fragment, p), M(h), r = !1;
3975
+ for (let p = 0; p < l.length; p += 1)
3976
+ M(l[p]);
3977
+ M(n.$$.fragment, m), M(h), r = !1;
3978
3978
  },
3979
- d(p) {
3980
- p && T(t), tt(l, p), $(n), h && h.d();
3979
+ d(m) {
3980
+ m && T(t), tt(l, m), $(n), h && h.d();
3981
3981
  }
3982
3982
  };
3983
3983
  }
@@ -4012,7 +4012,7 @@ function $o(i) {
4012
4012
  K(t, s, r), e = !0;
4013
4013
  },
4014
4014
  p(s, r) {
4015
- const a = r & 62384 ? Be(n, [
4015
+ const a = r & 62384 ? Me(n, [
4016
4016
  r & 62368 && {
4017
4017
  hoverEnable: s[5],
4018
4018
  floorplanData: s[9],
@@ -4098,9 +4098,9 @@ function tu(i) {
4098
4098
  };
4099
4099
  }
4100
4100
  function nu(i, t, e) {
4101
- let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: u } = t, { floorplanData: h } = t, { lastPanoramaLongitude: p } = t, { cameraImageUrl: m } = t, { getRoomAreaText: g } = t, { getLabelElement: A } = t, { getRuleDistanceText: v } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
4101
+ let { duration: n = 0 } = t, { visible: o } = t, { northDesc: s } = t, { panoIndex: r } = t, { floorIndex: a } = t, { hoverEnable: l } = t, { compassEnable: c } = t, { roomLabelsEnable: d } = t, { ruleLabelsEnable: u } = t, { floorplanData: h } = t, { lastPanoramaLongitude: m } = t, { cameraImageUrl: p } = t, { getRoomAreaText: g } = t, { getLabelElement: v } = t, { getRuleDistanceText: A } = t, { adaptiveRoomLabelVisibleEnable: w } = t;
4102
4102
  return i.$$set = (y) => {
4103
- "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, u = y.ruleLabelsEnable), "floorplanData" in y && e(9, h = y.floorplanData), "lastPanoramaLongitude" in y && e(10, p = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, m = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, A = y.getLabelElement), "getRuleDistanceText" in y && e(14, v = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
4103
+ "duration" in y && e(0, n = y.duration), "visible" in y && e(1, o = y.visible), "northDesc" in y && e(2, s = y.northDesc), "panoIndex" in y && e(3, r = y.panoIndex), "floorIndex" in y && e(4, a = y.floorIndex), "hoverEnable" in y && e(5, l = y.hoverEnable), "compassEnable" in y && e(6, c = y.compassEnable), "roomLabelsEnable" in y && e(7, d = y.roomLabelsEnable), "ruleLabelsEnable" in y && e(8, u = y.ruleLabelsEnable), "floorplanData" in y && e(9, h = y.floorplanData), "lastPanoramaLongitude" in y && e(10, m = y.lastPanoramaLongitude), "cameraImageUrl" in y && e(11, p = y.cameraImageUrl), "getRoomAreaText" in y && e(12, g = y.getRoomAreaText), "getLabelElement" in y && e(13, v = y.getLabelElement), "getRuleDistanceText" in y && e(14, A = y.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in y && e(15, w = y.adaptiveRoomLabelVisibleEnable);
4104
4104
  }, [
4105
4105
  n,
4106
4106
  o,
@@ -4112,11 +4112,11 @@ function nu(i, t, e) {
4112
4112
  d,
4113
4113
  u,
4114
4114
  h,
4115
- p,
4116
4115
  m,
4116
+ p,
4117
4117
  g,
4118
- A,
4119
4118
  v,
4119
+ A,
4120
4120
  w
4121
4121
  ];
4122
4122
  }
@@ -5148,26 +5148,26 @@ function wu(i) {
5148
5148
  }
5149
5149
  function Cu(i, t, e) {
5150
5150
  let n, o, { five: s } = t, { pxmm: r } = t, { floorplanData: a } = t, { cameraImageUrl: l } = t, c = s.getCurrentState().panoIndex, d = s.getCurrentState().longitude;
5151
- function u(m, g) {
5152
- const A = m.bounding, v = m.observers[g];
5153
- if (!v)
5151
+ function u(p, g) {
5152
+ const v = p.bounding, A = p.observers[g];
5153
+ if (!A)
5154
5154
  return "";
5155
- const w = (A.max.x - A.min.x) * r, y = (A.max.y - A.min.y) * r, x = Math.floor(v.positionInImage.x * w), L = Math.floor(v.positionInImage.y * y);
5155
+ const w = (v.max.x - v.min.x) * r, y = (v.max.y - v.min.y) * r, x = Math.floor(A.positionInImage.x * w), L = Math.floor(A.positionInImage.y * y);
5156
5156
  return `translate(${x}px, ${L}px)`;
5157
5157
  }
5158
- function h(m) {
5159
- e(6, c = m);
5158
+ function h(p) {
5159
+ e(6, c = p);
5160
5160
  }
5161
- const p = lo(
5162
- (m) => {
5163
- e(7, d = m.longitude);
5161
+ const m = lo(
5162
+ (p) => {
5163
+ e(7, d = p.longitude);
5164
5164
  },
5165
5165
  1e3 / 60
5166
5166
  );
5167
- return Ye(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", p), function() {
5168
- s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", p);
5169
- })), i.$$set = (m) => {
5170
- "five" in m && e(3, s = m.five), "pxmm" in m && e(4, r = m.pxmm), "floorplanData" in m && e(5, a = m.floorplanData), "cameraImageUrl" in m && e(0, l = m.cameraImageUrl);
5167
+ return Ye(() => (s.on("panoWillArrive", h), s.on("cameraDirectionUpdate", m), function() {
5168
+ s.off("panoWillArrive", h), s.off("cameraDirectionUpdate", m);
5169
+ })), i.$$set = (p) => {
5170
+ "five" in p && e(3, s = p.five), "pxmm" in p && e(4, r = p.pxmm), "floorplanData" in p && e(5, a = p.floorplanData), "cameraImageUrl" in p && e(0, l = p.cameraImageUrl);
5171
5171
  }, i.$$.update = () => {
5172
5172
  i.$$.dirty & 96 && e(2, n = u(a, c)), i.$$.dirty & 128 && e(1, o = wu(d));
5173
5173
  }, [
@@ -5289,7 +5289,7 @@ function os(i) {
5289
5289
  K(t, s, r), e = !0;
5290
5290
  },
5291
5291
  p(s, r) {
5292
- const a = r & 87 ? Be(n, [
5292
+ const a = r & 87 ? Me(n, [
5293
5293
  {
5294
5294
  five: s[0],
5295
5295
  pxmm: s[1],
@@ -5336,15 +5336,15 @@ function Du(i) {
5336
5336
  K(t, d, u), B(d, e, u), K(n, d, u), B(d, o, u), c && c.m(d, u), B(d, s, u), r = !0;
5337
5337
  },
5338
5338
  p(d, [u]) {
5339
- const h = u & 20 ? Be(a, [
5339
+ const h = u & 20 ? Me(a, [
5340
5340
  {
5341
5341
  floorIndex: d[2],
5342
5342
  floorplanData: d[4]
5343
5343
  }
5344
5344
  ]) : {};
5345
5345
  t.$set(h);
5346
- const p = {};
5347
- u & 32 && (p.extraObjects = d[5]), n.$set(p), d[3] ? c ? (c.p(d, u), u & 8 && D(c, 1)) : (c = os(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (le(), M(c, 1, 1, () => {
5346
+ const m = {};
5347
+ u & 32 && (m.extraObjects = d[5]), n.$set(m), d[3] ? c ? (c.p(d, u), u & 8 && D(c, 1)) : (c = os(d), c.c(), D(c, 1), c.m(s.parentNode, s)) : c && (le(), M(c, 1, 1, () => {
5348
5348
  c = null;
5349
5349
  }), ce());
5350
5350
  },
@@ -5448,11 +5448,11 @@ function rs(i) {
5448
5448
  c() {
5449
5449
  t = j("div"), ee(e.$$.fragment), n = V(), ee(o.$$.fragment), b(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), R(t, "width", s), R(t, "height", r);
5450
5450
  },
5451
- m(h, p) {
5452
- B(h, t, p), K(e, t, null), Q(t, n), K(o, t, null), a = !0;
5451
+ m(h, m) {
5452
+ B(h, t, m), K(e, t, null), Q(t, n), K(o, t, null), a = !0;
5453
5453
  },
5454
- p(h, p) {
5455
- const m = p & 1581 ? Be(l, [
5454
+ p(h, m) {
5455
+ const p = m & 1581 ? Me(l, [
5456
5456
  {
5457
5457
  five: h[0],
5458
5458
  pxmm: h[9],
@@ -5462,8 +5462,8 @@ function rs(i) {
5462
5462
  extraObjects: h[5]
5463
5463
  }
5464
5464
  ]) : {};
5465
- e.$set(m);
5466
- const g = p & 537 ? Be(d, [
5465
+ e.$set(p);
5466
+ const g = m & 537 ? Me(d, [
5467
5467
  {
5468
5468
  pxmm: h[9],
5469
5469
  five: h[0],
@@ -5471,7 +5471,7 @@ function rs(i) {
5471
5471
  cameraImageUrl: h[4]
5472
5472
  }
5473
5473
  ]) : {};
5474
- o.$set(g), p & 256 && s !== (s = `${h[8]}px`) && R(t, "width", s), p & 2048 && r !== (r = `${h[11]}px`) && R(t, "height", r);
5474
+ o.$set(g), m & 256 && s !== (s = `${h[8]}px`) && R(t, "width", s), m & 2048 && r !== (r = `${h[11]}px`) && R(t, "height", r);
5475
5475
  },
5476
5476
  i(h) {
5477
5477
  a || (D(e.$$.fragment, h), D(o.$$.fragment, h), a = !0);
@@ -5510,15 +5510,15 @@ function Tu(i) {
5510
5510
  };
5511
5511
  }
5512
5512
  function Mu(i, t, e) {
5513
- var v, w;
5514
- let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (v = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : v.floorIndex) != null ? w : 0, u = 0, h = 0, p = 0, m = 0;
5513
+ var A, w;
5514
+ let { five: n } = t, { visible: o } = t, { hoverEnable: s } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, c = 0, d = (w = (A = n.work.observers[n.getCurrentState().panoIndex]) == null ? void 0 : A.floorIndex) != null ? w : 0, u = 0, h = 0, m = 0, p = 0;
5515
5515
  function g(y) {
5516
5516
  e(10, d = n.work.observers[y].floorIndex);
5517
5517
  }
5518
5518
  Ye(() => (n.on("panoArrived", g), () => {
5519
5519
  n.off("panoArrived", g);
5520
5520
  }));
5521
- function A() {
5521
+ function v() {
5522
5522
  u = this.clientWidth, h = this.clientHeight, e(6, u), e(7, h);
5523
5523
  }
5524
5524
  return i.$$set = (y) => {
@@ -5528,7 +5528,7 @@ function Mu(i, t, e) {
5528
5528
  const y = Math.min(u, h), { max: x, min: L } = r.bounding, C = x.x - L.x, S = x.y - L.y, k = function() {
5529
5529
  return C > S ? [y, y / C * S] : [y / S * C, y];
5530
5530
  }();
5531
- e(8, p = k[0]), e(11, m = k[1]), e(9, c = p / C);
5531
+ e(8, m = k[0]), e(11, p = k[1]), e(9, c = m / C);
5532
5532
  }
5533
5533
  }, [
5534
5534
  n,
@@ -5539,11 +5539,11 @@ function Mu(i, t, e) {
5539
5539
  l,
5540
5540
  u,
5541
5541
  h,
5542
- p,
5542
+ m,
5543
5543
  c,
5544
5544
  d,
5545
- m,
5546
- A
5545
+ p,
5546
+ v
5547
5547
  ];
5548
5548
  }
5549
5549
  class Bu extends oe {
@@ -5815,16 +5815,16 @@ const eA = (i, t) => {
5815
5815
  var d;
5816
5816
  const e = t.fbx_url || "//vrlab-static.ljcdn.com/release/web/v3/dipan3/dipan.FBX", n = (d = t.north_rad) != null ? d : void 0, o = {}, s = (u) => J(void 0, null, function* () {
5817
5817
  var Y;
5818
- const h = (u == null ? void 0 : u.fbx_url) || e, p = (Y = u == null ? void 0 : u.north_rad) != null ? Y : n;
5819
- if (typeof p != "number")
5818
+ const h = (u == null ? void 0 : u.fbx_url) || e, m = (Y = u == null ? void 0 : u.north_rad) != null ? Y : n;
5819
+ if (typeof m != "number")
5820
5820
  throw new Error('"northRad"\u914D\u7F6E\u53C2\u6570\u7F3A\u5931\uFF1A\u672A\u914D\u7F6E\u6307\u5357\u9488\u6307\u5411\uFF01');
5821
- const m = i.model.bounding, g = m.max.x - m.min.x, A = m.max.z - m.min.z, v = Math.max(g, A), y = yield new Ur().loadAsync(h);
5821
+ const p = i.model.bounding, g = p.max.x - p.min.x, v = p.max.z - p.min.z, A = Math.max(g, v), y = yield new Ur().loadAsync(h);
5822
5822
  Ea(y, {
5823
5823
  transparent: !0,
5824
5824
  side: E.DoubleSide,
5825
5825
  blending: E.AdditiveBlending
5826
5826
  });
5827
- const x = [0, p - Math.PI / 2, 0], {
5827
+ const x = [0, m - Math.PI / 2, 0], {
5828
5828
  model: {
5829
5829
  bounding: {
5830
5830
  max: { x: L, z: C },
@@ -5833,7 +5833,7 @@ const eA = (i, t) => {
5833
5833
  }
5834
5834
  } = i;
5835
5835
  o.yBase = k;
5836
- const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, N = 45e-4 * v;
5836
+ const H = { x: (L + S) / 2, y: k - 1.6, z: (C + F) / 2 }, N = 45e-4 * A;
5837
5837
  return Qu(y, { position: H, rotation: x, scale: N }), o.object = y, !0;
5838
5838
  }), r = ({ latitude: u }) => {
5839
5839
  if (!o.object)
@@ -5846,8 +5846,8 @@ const eA = (i, t) => {
5846
5846
  const h = 0.6;
5847
5847
  if (u >= Math.PI / 4)
5848
5848
  return o.yBase - (h + 1.6);
5849
- const p = u * (4 / Math.PI);
5850
- return o.yBase - (h * p + 1.6);
5849
+ const m = u * (4 / Math.PI);
5850
+ return o.yBase - (h * m + 1.6);
5851
5851
  };
5852
5852
  return { load: s, disable: () => {
5853
5853
  !o.object || (i.scene.remove(o.object), i.needsRender = !0, i.off("cameraDirectionUpdate", r));
@@ -5859,15 +5859,15 @@ const eA = (i, t) => {
5859
5859
  } };
5860
5860
  };
5861
5861
  function Ru(i, t) {
5862
- var c, d, u, h, p;
5863
- const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", s = (h = t == null ? void 0 : t.fontColor) != null ? h : "#fff", r = (p = t == null ? void 0 : t.textAlign) != null ? p : "center", a = document.createElement("canvas");
5862
+ var c, d, u, h, m;
5863
+ const e = (c = t == null ? void 0 : t.size) != null ? c : 512, n = (d = t == null ? void 0 : t.fontSize) != null ? d : e * (35 / 256) * 1.2, o = (u = t == null ? void 0 : t.backgroundColor) != null ? u : "rgba(0,0,0,0)", s = (h = t == null ? void 0 : t.fontColor) != null ? h : "#fff", r = (m = t == null ? void 0 : t.textAlign) != null ? m : "center", a = document.createElement("canvas");
5864
5864
  a.setAttribute("width", e + ""), a.setAttribute("height", e + "");
5865
5865
  const l = a.getContext("2d");
5866
5866
  return l.fillStyle = o, l.fillRect(0, 0, e, e), l.font = `${n}px "\u5FAE\u8F6F\u96C5\u9ED1"`, l.textAlign = r, l.fillStyle = s, l.fillText(i, e / 2, e * 0.7), new bl(a);
5867
5867
  }
5868
5868
  const Hu = ({ x: i, y: t, z: e }) => new _(i, t, e), tA = (i, t) => {
5869
- var g, A, v;
5870
- const e = {}, n = (g = t.animationEnabled) != null ? g : !0, o = (A = t.position) != null ? A : void 0, s = (v = t.rad) != null ? v : void 0, r = t.fbx_url || "//vrlab-image4.ljcdn.com/release/web/entryDoorMini/Anim_Door1.fbx", a = [], l = (w) => J(void 0, null, function* () {
5869
+ var g, v, A;
5870
+ const e = {}, n = (g = t.animationEnabled) != null ? g : !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 = (w) => J(void 0, null, function* () {
5871
5871
  var H, N, Y, P, I, z, O, W;
5872
5872
  const y = (H = w == null ? void 0 : w.position) != null ? H : o;
5873
5873
  if (!y)
@@ -5999,9 +5999,9 @@ const Oi = (i, t, e) => {
5999
5999
  }, nA = (i) => {
6000
6000
  const t = {}, e = (l, c, ...d) => J(void 0, [l, c, ...d], function* (s, r, a = { preload: !0 }) {
6001
6001
  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((u, h) => {
6002
- const p = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
6003
- p !== void 0 ? i.moveToPano(
6004
- p,
6002
+ const m = s.panoIndex !== void 0 ? s.panoIndex : i.panoIndex;
6003
+ m !== void 0 ? i.moveToPano(
6004
+ m,
6005
6005
  Object.assign(
6006
6006
  {
6007
6007
  duration: r,
@@ -6026,28 +6026,28 @@ const Oi = (i, t, e) => {
6026
6026
  return {
6027
6027
  move: e,
6028
6028
  rotate: (l, c, ...d) => J(void 0, [l, c, ...d], function* (s, r, a = {}) {
6029
- t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== je.Mode.Panorama && (yield i.changeMode(je.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((p, m) => {
6029
+ t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), i.currentMode !== Be.Mode.Panorama && (yield i.changeMode(Be.Mode.Panorama)), s.panoIndex !== void 0 && s.panoIndex !== i.panoIndex && (a.preload && (yield i.preloadPano(s.panoIndex)), yield new Promise((m, p) => {
6030
6030
  if (!s.panoIndex) {
6031
- p(!0);
6031
+ m(!0);
6032
6032
  return;
6033
6033
  }
6034
6034
  i.moveToPano(s.panoIndex, {
6035
- moveEndCallback: () => p(!0),
6036
- moveCancelCallback: () => m(!1)
6035
+ moveEndCallback: () => m(!0),
6036
+ moveCancelCallback: () => p(!1)
6037
6037
  });
6038
6038
  })), a.asyncEndCallback && (yield a.asyncEndCallback());
6039
6039
  const { from: u, to: h } = n(s);
6040
- return yield new Promise((p) => {
6041
- const m = ({ progress: y }) => {
6040
+ return yield new Promise((m) => {
6041
+ const p = ({ progress: y }) => {
6042
6042
  const x = {};
6043
6043
  x.longitude = Ci(u.longitude, h.longitude, y), x.latitude = Ci(u.latitude, h.latitude, y), x.fov = Ci(u.fov, h.fov, y), i.setState(x, !0);
6044
6044
  }, g = () => {
6045
- p(!0);
6046
- }, A = () => {
6047
- p(!1);
6048
- }, v = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - u.longitude) / s.rotateSpeed * 1e3) : r, w = Wu(v, si.Easing.Linear.None).onUpdate(m).onComplete(g).onDestroy(A);
6045
+ m(!0);
6046
+ }, v = () => {
6047
+ m(!1);
6048
+ }, A = s.rotateSpeed ? Math.ceil(Math.abs(h.longitude - u.longitude) / s.rotateSpeed * 1e3) : r, w = Wu(A, si.Easing.Linear.None).onUpdate(p).onComplete(g).onDestroy(v);
6049
6049
  s.rotation === ot.Loop && w.repeat(1 / 0).yoyo(!0), t.interruptCallback = (y = !0) => {
6050
- w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), p(y);
6050
+ w.destroy(), t.interruptCallback = void 0, t.timeoutId && (clearTimeout(t.timeoutId), t.timeoutId = void 0), m(y);
6051
6051
  }, t.timeoutId = setTimeout(() => {
6052
6052
  t.interruptCallback && t.interruptCallback(!0);
6053
6053
  }, r);
@@ -6195,11 +6195,11 @@ const Uu = `<style type="text/css">
6195
6195
  const [d] = t.model.intersectRaycaster(n), u = d ? d.point.y : 2.7, h = s[a];
6196
6196
  if (!h)
6197
6197
  return e;
6198
- const p = i.rooms[h].name;
6199
- e[p] === void 0 ? e[p] = {
6198
+ const m = i.rooms[h].name;
6199
+ e[m] === void 0 ? e[m] = {
6200
6200
  __roof: [u],
6201
6201
  __floor: [c.y]
6202
- } : (e[p].__roof.push(u), e[p].__floor.push(c.y));
6202
+ } : (e[m].__roof.push(u), e[m].__floor.push(c.y));
6203
6203
  });
6204
6204
  for (const r in e) {
6205
6205
  const a = e[r];
@@ -6213,16 +6213,16 @@ const Uu = `<style type="text/css">
6213
6213
  options: t.options || {
6214
6214
  distanceText: (g) => `${g.toFixed(1)}m`
6215
6215
  }
6216
- }, n = (g, A) => {
6217
- const v = `
6216
+ }, n = (g, v) => {
6217
+ const A = `
6218
6218
  <div class="PanoRulerPlugin-rule-line">
6219
6219
  <em></em>
6220
6220
  <div class="PanoRulerPlugin-rule-label">
6221
- <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(A)}</div>
6221
+ <div class="PanoRulerPlugin-rule-label-name">${e.options.distanceText(v)}</div>
6222
6222
  </div>
6223
6223
  </div>
6224
6224
  `, w = document.createElement("div");
6225
- return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML = v, w;
6225
+ return w.setAttribute("class", "PanoRulerPlugin-rule"), w.setAttribute("data-name", g), w.setAttribute("style", "display: none"), w.innerHTML = A, w;
6226
6226
  }, o = document.createElement("div");
6227
6227
  o.setAttribute(
6228
6228
  "style",
@@ -6230,15 +6230,15 @@ const Uu = `<style type="text/css">
6230
6230
  );
6231
6231
  const s = document.createElement("div");
6232
6232
  s.innerHTML = Uu, o.appendChild(s);
6233
- const r = {}, a = (g, A) => {
6233
+ const r = {}, a = (g, v) => {
6234
6234
  if (e.loaded)
6235
6235
  throw new Error("\u6807\u5C3A\u88AB\u91CD\u590D\u521D\u59CB\u5316\uFF01");
6236
- const v = Vu(g, i), w = i.work;
6236
+ const A = Vu(g, i), w = i.work;
6237
6237
  if (!w)
6238
6238
  return !1;
6239
- for (const y in A) {
6240
- const x = A[y], { standingPosition: L } = w.observers[0], C = x.map(({ x: S, z: k, observers: F }) => {
6241
- const H = F.length > 0 ? g.rooms[g.observers[F[0]]].name : "", N = v[H] ? v[H].floor : null;
6239
+ for (const y in v) {
6240
+ const x = v[y], { standingPosition: L } = w.observers[0], C = x.map(({ x: S, z: k, observers: F }) => {
6241
+ const H = F.length > 0 ? g.rooms[g.observers[F[0]]].name : "", N = A[H] ? A[H].floor : null;
6242
6242
  let Y = 1 / 0, P = {
6243
6243
  index: 0,
6244
6244
  x: L.x,
@@ -6258,7 +6258,7 @@ const Uu = `<style type="text/css">
6258
6258
  });
6259
6259
  const I = new _(S, P.y, k);
6260
6260
  Object.assign(I, { observers: F });
6261
- const z = v[H] ? v[H].roof : null, O = z ? new _(S, z, k) : null;
6261
+ const z = A[H] ? A[H].roof : null, O = z ? new _(S, z, k) : null;
6262
6262
  return O && Object.assign(O, { observers: F }), { origin: I, vertical: O };
6263
6263
  });
6264
6264
  r[y] = {
@@ -6279,36 +6279,36 @@ const Uu = `<style type="text/css">
6279
6279
  }
6280
6280
  }
6281
6281
  return e.loaded = !0, !0;
6282
- }, l = (g, A, v) => J(void 0, null, function* () {
6283
- const w = g || t.roomInfo, y = A || t.roomRules;
6282
+ }, l = (g, v, A) => J(void 0, null, function* () {
6283
+ const w = g || t.roomInfo, y = v || t.roomRules;
6284
6284
  if (!w || !y)
6285
6285
  throw new Error("\u6807\u5C3A\u6570\u636E\u4F9D\u8D56\u4E0D\u9F50\u5168\uFF01");
6286
- return e.loaded = !1, e.options = G(G({}, e.options), v || {}), i.model.loaded ? a(w, y) : yield new Promise(
6286
+ return e.loaded = !1, e.options = G(G({}, e.options), A || {}), i.model.loaded ? a(w, y) : yield new Promise(
6287
6287
  (x) => i.once("modelLoaded", () => x(a(w, y)))
6288
6288
  );
6289
6289
  });
6290
6290
  t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
6291
- const c = (g, A, v, w) => {
6291
+ const c = (g, v, A, w) => {
6292
6292
  const y = [
6293
6293
  [
6294
6294
  { x: 0, y: 0 },
6295
- { x: v, y: 0 }
6295
+ { x: A, y: 0 }
6296
6296
  ],
6297
6297
  [
6298
6298
  { x: 0, y: 0 },
6299
6299
  { x: 0, y: w }
6300
6300
  ],
6301
6301
  [
6302
- { x: v, y: 0 },
6303
- { x: v, y: w }
6302
+ { x: A, y: 0 },
6303
+ { x: A, y: w }
6304
6304
  ],
6305
6305
  [
6306
6306
  { x: 0, y: w },
6307
- { x: v, y: w }
6307
+ { x: A, y: w }
6308
6308
  ]
6309
6309
  ], x = [];
6310
6310
  for (let L = 0; L < y.length; L++) {
6311
- const C = xa([g, A], [y[L][0], y[L][1]], !0);
6311
+ const C = xa([g, v], [y[L][0], y[L][1]], !0);
6312
6312
  C && x.push(C);
6313
6313
  }
6314
6314
  return x.length === 0 ? !1 : x;
@@ -6317,20 +6317,20 @@ const Uu = `<style type="text/css">
6317
6317
  const g = (F = i.getElement()) == null ? void 0 : F.parentElement;
6318
6318
  if (!g || !e.loaded || Object.keys(r).length <= 0)
6319
6319
  return;
6320
- const { panoIndex: A, camera: v, currentMode: w } = i;
6321
- if (A === void 0)
6320
+ const { panoIndex: v, camera: A, currentMode: w } = i;
6321
+ if (v === void 0)
6322
6322
  return;
6323
6323
  let y;
6324
6324
  for (const H in r)
6325
- H.split(",").indexOf(A.toString()) >= 0 && (y = H);
6325
+ H.split(",").indexOf(v.toString()) >= 0 && (y = H);
6326
6326
  if (!y) {
6327
6327
  for (const H in r)
6328
6328
  for (const { $element: N } of r[H].rules)
6329
6329
  N.style.display = "none";
6330
6330
  return;
6331
6331
  }
6332
- const x = v.position, L = v.getWorldDirection(new _()), C = g.clientWidth, S = g.clientHeight;
6333
- if (w !== je.Mode.Panorama) {
6332
+ const x = A.position, L = A.getWorldDirection(new _()), C = g.clientWidth, S = g.clientHeight;
6333
+ if (w !== Be.Mode.Panorama) {
6334
6334
  for (const H in r)
6335
6335
  for (const { $element: N } of r[H].rules)
6336
6336
  N.style.display = "none";
@@ -6339,7 +6339,7 @@ const Uu = `<style type="text/css">
6339
6339
  for (const H in r)
6340
6340
  for (const { $element: N } of r[H].rules)
6341
6341
  N.style.display = H === y ? "block" : "none";
6342
- const [k] = r[y].origins.slice().filter((H) => H.observers.indexOf(A) >= 0).sort((H, N) => {
6342
+ const [k] = r[y].origins.slice().filter((H) => H.observers.indexOf(v) >= 0).sort((H, N) => {
6343
6343
  const Y = H.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0)), P = N.clone().setY(0).sub(x).normalize().angleTo(L.clone().setY(0));
6344
6344
  return Y - P;
6345
6345
  });
@@ -6359,7 +6359,7 @@ const Uu = `<style type="text/css">
6359
6359
  Y.style.display = "none";
6360
6360
  continue;
6361
6361
  }
6362
- if (P.observers.indexOf(A) === -1 || I.observers.indexOf(A) === -1) {
6362
+ if (P.observers.indexOf(v) === -1 || I.observers.indexOf(v) === -1) {
6363
6363
  Y.style.display = "none";
6364
6364
  continue;
6365
6365
  }
@@ -6376,7 +6376,7 @@ const Uu = `<style type="text/css">
6376
6376
  Y.style.display = "none";
6377
6377
  continue;
6378
6378
  }
6379
- const de = P.clone().project(v), ue = (de.x + 1) / 2 * C, me = (-de.y + 1) / 2 * S, we = I.clone().project(v), ke = (we.x + 1) / 2 * C, He = (-we.y + 1) / 2 * S, se = Math.sqrt(Math.pow(ke - ue, 2) + Math.pow(He - me, 2));
6379
+ const de = P.clone().project(A), ue = (de.x + 1) / 2 * C, me = (-de.y + 1) / 2 * S, we = I.clone().project(A), ke = (we.x + 1) / 2 * C, He = (-we.y + 1) / 2 * S, se = Math.sqrt(Math.pow(ke - ue, 2) + Math.pow(He - me, 2));
6380
6380
  let ve = se, be = 50;
6381
6381
  const re = c({ x: ~~ue, y: ~~me }, {
6382
6382
  x: ~~ke,
@@ -6395,26 +6395,26 @@ const Uu = `<style type="text/css">
6395
6395
  ct >= se || ct / 2 >= be / 100 * se || ct / 2 >= (1 - be / 100) * se ? z.style.display = "none" : (z.style.display = "block", z.style.width = se + "px", z.style.left = ue + "px", z.style.top = me + "px", z.style.transform = `rotate(${-Ct}deg)`, ge.style.left = `${be}%`);
6396
6396
  }
6397
6397
  }, u = () => ka(d), h = () => {
6398
- var g, A;
6399
- return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (A = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || A.append(o), d(), i.on("modeChange", d), i.on("cameraUpdate", u), e.enable = !0), !0) : !1;
6400
- }, p = () => (e.enable && (i.off("modeChange", d), i.off("cameraUpdate", u), o && o.remove(), e.enable = !1), !0);
6401
- function m(g) {
6398
+ var g, v;
6399
+ return e.loaded ? (e.enable || (o.setAttribute("class", "PanoRulerPlugin" + (e.options.className ? " " + e.options.className : "")), (v = (g = i.getElement()) == null ? void 0 : g.parentElement) == null || v.append(o), d(), i.on("modeChange", d), i.on("cameraUpdate", u), e.enable = !0), !0) : !1;
6400
+ }, m = () => (e.enable && (i.off("modeChange", d), i.off("cameraUpdate", u), o && o.remove(), e.enable = !1), !0);
6401
+ function p(g) {
6402
6402
  if (g.distanceText && g.distanceText !== e.options.distanceText) {
6403
- const A = g.distanceText;
6404
- e.options.distanceText = A, Object.values(r).forEach((v) => {
6405
- v.rules.forEach((w) => {
6403
+ const v = g.distanceText;
6404
+ e.options.distanceText = v, Object.values(r).forEach((A) => {
6405
+ A.rules.forEach((w) => {
6406
6406
  const [y, x] = w.rule, L = y.distanceTo(x), C = w.$element.querySelector(".PanoRulerPlugin-rule-label-name");
6407
- !C || (C.innerText = A(L));
6407
+ !C || (C.innerText = v(L));
6408
6408
  });
6409
6409
  });
6410
6410
  }
6411
6411
  }
6412
6412
  return {
6413
6413
  enable: h,
6414
- disable: p,
6414
+ disable: m,
6415
6415
  load: l,
6416
6416
  state: e,
6417
- changeConfigs: m
6417
+ changeConfigs: p
6418
6418
  };
6419
6419
  };
6420
6420
  function Zu(i) {
@@ -6462,13 +6462,13 @@ function qu(i) {
6462
6462
  let t, e;
6463
6463
  return {
6464
6464
  c() {
6465
- t = j("em"), b(t, "class", e = Le(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]);
6465
+ t = j("em"), b(t, "class", e = je(i[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]);
6466
6466
  },
6467
6467
  m(n, o) {
6468
6468
  B(n, t, o);
6469
6469
  },
6470
6470
  p(n, o) {
6471
- o & 1 && e !== (e = Le(n[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), o & 8 && b(t, "style", n[3]);
6471
+ o & 1 && e !== (e = je(n[0].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), o & 8 && b(t, "style", n[3]);
6472
6472
  },
6473
6473
  d(n) {
6474
6474
  n && T(t);
@@ -6479,13 +6479,13 @@ function us(i) {
6479
6479
  let t, e, n = `${i[6].width}px`;
6480
6480
  return {
6481
6481
  c() {
6482
- t = j("div"), b(t, "class", e = Le(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]), R(t, "width", n);
6482
+ t = j("div"), b(t, "class", e = je(i[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp"), b(t, "style", i[3]), R(t, "width", n);
6483
6483
  },
6484
6484
  m(o, s) {
6485
6485
  B(o, t, s);
6486
6486
  },
6487
6487
  p(o, s) {
6488
- s & 1 && e !== (e = Le(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && R(t, "width", n);
6488
+ s & 1 && e !== (e = je(o[6].state ? "em-solid" : "em-dotted") + " svelte-1h27ktp") && b(t, "class", e), s & 8 && b(t, "style", o[3]), s & 1 && n !== (n = `${o[6].width}px`) && R(t, "width", n);
6489
6489
  },
6490
6490
  d(o) {
6491
6491
  o && T(t);
@@ -6494,24 +6494,24 @@ function us(i) {
6494
6494
  }
6495
6495
  function Ku(i) {
6496
6496
  let t, e, n, o, s = i[0].labelElement + "", r, a, l = `${i[0].labelOffset}%`, c = `${i[0].width}px`, d = `${i[0].left}px`, u = `${i[0].top}px`, h = `rotate(${i[0].rotateDeg}deg)`;
6497
- function p(A, v) {
6498
- return A[0].children.length === 0 ? qu : _u;
6497
+ function m(v, A) {
6498
+ return v[0].children.length === 0 ? qu : _u;
6499
6499
  }
6500
- let m = p(i), g = m(i);
6500
+ let p = m(i), g = p(i);
6501
6501
  return {
6502
6502
  c() {
6503
6503
  t = j("div"), g.c(), e = V(), n = j("div"), o = j("div"), r = xe(s), b(o, "class", "PanoRulerPlugin-rule-label-name svelte-1h27ktp"), Ie(() => i[4].call(o)), b(n, "class", "PanoRulerPlugin-rule-label svelte-1h27ktp"), R(n, "left", l), b(t, "class", "PanoRulerPlugin-rule-line svelte-1h27ktp"), R(t, "width", c), R(t, "left", d), R(t, "top", u), R(t, "transform", h), R(t, "display", i[0].visible && i[2] ? "block" : "none");
6504
6504
  },
6505
- m(A, v) {
6506
- B(A, t, v), g.m(t, null), Q(t, e), Q(t, n), Q(n, o), Q(o, r), a = yt(o, i[4].bind(o));
6505
+ m(v, A) {
6506
+ B(v, t, A), g.m(t, null), Q(t, e), Q(t, n), Q(n, o), Q(o, r), a = yt(o, i[4].bind(o));
6507
6507
  },
6508
- p(A, [v]) {
6509
- m === (m = p(A)) && g ? g.p(A, v) : (g.d(1), g = m(A), g && (g.c(), g.m(t, e))), v & 1 && s !== (s = A[0].labelElement + "") && Me(r, s), v & 1 && l !== (l = `${A[0].labelOffset}%`) && R(n, "left", l), v & 1 && c !== (c = `${A[0].width}px`) && R(t, "width", c), v & 1 && d !== (d = `${A[0].left}px`) && R(t, "left", d), v & 1 && u !== (u = `${A[0].top}px`) && R(t, "top", u), v & 1 && h !== (h = `rotate(${A[0].rotateDeg}deg)`) && R(t, "transform", h), v & 5 && R(t, "display", A[0].visible && A[2] ? "block" : "none");
6508
+ p(v, [A]) {
6509
+ p === (p = m(v)) && g ? g.p(v, A) : (g.d(1), g = p(v), g && (g.c(), g.m(t, e))), A & 1 && s !== (s = v[0].labelElement + "") && Te(r, s), A & 1 && l !== (l = `${v[0].labelOffset}%`) && R(n, "left", l), A & 1 && c !== (c = `${v[0].width}px`) && R(t, "width", c), A & 1 && d !== (d = `${v[0].left}px`) && R(t, "left", d), A & 1 && u !== (u = `${v[0].top}px`) && R(t, "top", u), A & 1 && h !== (h = `rotate(${v[0].rotateDeg}deg)`) && R(t, "transform", h), A & 5 && R(t, "display", v[0].visible && v[2] ? "block" : "none");
6510
6510
  },
6511
6511
  i: te,
6512
6512
  o: te,
6513
- d(A) {
6514
- A && T(t), g.d(), a();
6513
+ d(v) {
6514
+ v && T(t), g.d(), a();
6515
6515
  }
6516
6516
  };
6517
6517
  }
@@ -6612,9 +6612,9 @@ function th(i) {
6612
6612
  };
6613
6613
  }
6614
6614
  function nh(i, t, e) {
6615
- var g, A, v, w;
6615
+ var g, v, A, w;
6616
6616
  let { five: n } = t, { rulerDatas: o } = t, { options: s } = t, r = [];
6617
- const a = ((A = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : A.clientWidth) || 0, l = ((w = (v = n.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, x) => {
6617
+ const a = ((v = (g = n.getElement()) == null ? void 0 : g.parentElement) == null ? void 0 : v.clientWidth) || 0, l = ((w = (A = n.getElement()) == null ? void 0 : A.parentElement) == null ? void 0 : w.clientHeight) || 0, c = (y, x) => {
6618
6618
  const L = [
6619
6619
  [{ x: 0, y: 0 }, { x: a, y: 0 }],
6620
6620
  [{ x: 0, y: 0 }, { x: 0, y: l }],
@@ -6661,7 +6661,7 @@ function nh(i, t, e) {
6661
6661
  const y = n.panoIndex, x = o.find((N) => N.panoIndex === y);
6662
6662
  if (!x)
6663
6663
  return e(0, r = []);
6664
- if (n.currentMode !== je.Mode.Panorama)
6664
+ if (n.currentMode !== Be.Mode.Panorama)
6665
6665
  return e(0, r = []);
6666
6666
  const L = n.camera.position, C = n.camera.getWorldDirection(new _()), S = x.lines.map((N) => new _(N.start[0], -N.start[1], -N.start[2])), k = x.lines.map((N) => new _(N.end[0], -N.end[1], -N.end[2])), [F] = S.concat(k).sort((N, Y) => {
6667
6667
  const P = N.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0)), I = Y.clone().setY(0).sub(L).normalize().angleTo(C.clone().setY(0));
@@ -6685,11 +6685,11 @@ function nh(i, t, e) {
6685
6685
  };
6686
6686
  });
6687
6687
  e(0, r = H);
6688
- }, p = () => ui(h), m = lo(h, 80);
6688
+ }, m = () => ui(h), p = lo(h, 80);
6689
6689
  return Ye(() => {
6690
- h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", p), n.on("movingToPano", p), n.on("mouseWheel", () => m()), n.on("pinchGesture", () => m());
6690
+ h(), n.on("panoArrived", h), n.on("modeChange", h), n.on("cameraDirectionUpdate", m), n.on("movingToPano", m), n.on("mouseWheel", () => p()), n.on("pinchGesture", () => p());
6691
6691
  }), wt(() => {
6692
- n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", p), n.off("movingToPano", p), n.off("mouseWheel", () => m()), n.off("pinchGesture", () => m());
6692
+ n.off("panoArrived", h), n.off("modeChange", h), n.off("cameraDirectionUpdate", m), n.off("movingToPano", m), n.off("mouseWheel", () => p()), n.off("pinchGesture", () => p());
6693
6693
  }), i.$$set = (y) => {
6694
6694
  "five" in y && e(1, n = y.five), "rulerDatas" in y && e(2, o = y.rulerDatas), "options" in y && e(3, s = y.options);
6695
6695
  }, [r, n, o, s];
@@ -6850,8 +6850,8 @@ class lh extends Ot {
6850
6850
  this.data.entrance.position.x,
6851
6851
  this.data.entrance.position.y,
6852
6852
  this.data.entrance.position.z
6853
- ).clone().setY(n.y).sub(n).normalize(), p = n.clone().add(h.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
6854
- this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(p), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
6853
+ ).clone().setY(n.y).sub(n).normalize(), m = n.clone().add(h.clone().multiplyScalar(0.7)).setY(n.y + 0.01);
6854
+ this.entryDoorMesh.rotation.z = new E.Vector3(0, 0, -1).angleTo(h), this.entryDoorMesh.position.copy(m), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (c = this.entryDoorMesh) == null || c.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
6855
6855
  }
6856
6856
  this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
6857
6857
  n.clone().setY(n.y + 0.01)
@@ -6867,7 +6867,7 @@ class lh extends Ot {
6867
6867
  f(this, "onFiveModeChange", (e, n, o, s, r) => {
6868
6868
  e !== n && this.setState(
6869
6869
  {
6870
- visible: e === je.Mode.Panorama
6870
+ visible: e === Be.Mode.Panorama
6871
6871
  },
6872
6872
  { userAction: r }
6873
6873
  );
@@ -7058,10 +7058,10 @@ class dh {
7058
7058
  render() {
7059
7059
  if (!this.five.renderer || !this.wrapper)
7060
7060
  return;
7061
- const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, p = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
7062
- ch(p, m, g);
7063
- const A = new ImageData(m, g);
7064
- A.data.set(p), e.putImageData(A, 0, 0);
7061
+ const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, m = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), p = Math.floor(n * a), g = Math.floor(o * a);
7062
+ ch(m, p, g);
7063
+ const v = new ImageData(p, g);
7064
+ v.data.set(m), e.putImageData(v, 0, 0);
7065
7065
  }
7066
7066
  initStyle() {
7067
7067
  const t = this.canvas;
@@ -7151,8 +7151,8 @@ const wh = {
7151
7151
  pointsRenderOrder: 10
7152
7152
  };
7153
7153
  function Ch(i, t, e) {
7154
- var d, u, h, p, m;
7155
- const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (u = e == null ? void 0 : e.lineColor) != null ? u : new An(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 10, a = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 20, l = new Yr(i, t);
7154
+ var d, u, h, m, p;
7155
+ const n = (d = e == null ? void 0 : e.lineWidth) != null ? d : 2, o = (u = e == null ? void 0 : e.lineColor) != null ? u : new An(16777215), s = (h = e == null ? void 0 : e.pointSize) != null ? h : 5, r = (m = e == null ? void 0 : e.lineRenderOrder) != null ? m : 10, a = (p = e == null ? void 0 : e.lineRenderOrder) != null ? p : 20, l = new Yr(i, t);
7156
7156
  l.setMaterial({ linewidth: n, color: o }), l.line.material.depthTest = !1, l.line.material.transparent = !0, l.line.renderOrder = r, l.points.renderOrder = a;
7157
7157
  const c = l.points.material;
7158
7158
  return c.depthTest = !1, c.size = s, e != null && e.pointColor && c.color.set(e.pointColor).convertSRGBToLinear(), e != null && e.pointTexture && (c.map = e.pointTexture), l;
@@ -7175,8 +7175,8 @@ function Ph(i) {
7175
7175
  }
7176
7176
  function Ih(i) {
7177
7177
  function t() {
7178
- var m;
7179
- (m = i.clickCallback) == null || m.call(i, p);
7178
+ var p;
7179
+ (p = i.clickCallback) == null || p.call(i, m);
7180
7180
  }
7181
7181
  function e() {
7182
7182
  if (u)
@@ -7188,30 +7188,30 @@ function Ih(i) {
7188
7188
  return u.unHighlight();
7189
7189
  c.style.border = "0.5px solid rgba(255,255,255,0.6)", c.style.background = "rgba(195,195,195,0.70)";
7190
7190
  }
7191
- function o(m) {
7192
- const g = m.getElement();
7191
+ function o(p) {
7192
+ const g = p.getElement();
7193
7193
  if (!g)
7194
7194
  return;
7195
- const A = g.clientWidth, v = g.clientHeight;
7195
+ const v = g.clientWidth, A = g.clientHeight;
7196
7196
  if (a.points.length < 2)
7197
7197
  return;
7198
- const [w, y] = a.points, x = w.position.clone().project(m.camera), L = y.position.clone().project(m.camera), C = x.clone().lerp(L, 0.5), S = new Qe(x.x * A, x.y * v), k = new Qe(L.x * A, L.y * v);
7198
+ const [w, y] = a.points, x = w.position.clone().project(p.camera), L = y.position.clone().project(p.camera), C = x.clone().lerp(L, 0.5), S = new Qe(x.x * v, x.y * A), k = new Qe(L.x * v, L.y * A);
7199
7199
  if ((() => !(Math.abs(x.z) > 1 || Math.abs(L.z) > 1 || !Ke(x) && !Ke(L) || !Ke(C) || S.distanceTo(k) < 20))() === !1) {
7200
7200
  d.style.opacity = "0", d.style.pointerEvents = "none";
7201
7201
  return;
7202
7202
  }
7203
- const H = (C.x + 1) / 2 * A, N = -(C.y - 1) / 2 * v, P = -(Math.atan((S.y - k.y) / (S.x - k.x)) * 180) / Math.PI;
7203
+ const H = (C.x + 1) / 2 * v, N = -(C.y - 1) / 2 * A, P = -(Math.atan((S.y - k.y) / (S.x - k.x)) * 180) / Math.PI;
7204
7204
  d.style.transform = `translate(${H}px, ${N}px) rotate(${P}deg)`, d.style.opacity = "1", d.style.pointerEvents = "all", u && u.update({ line: a.toCompletelyJson(), polyline: a.getPolyline().toCompletelyJson() });
7205
7205
  const I = w.position.clone().distanceTo(y.position), z = i.line.model.params.getDistanceText(I);
7206
7206
  c.innerText !== z && (c.innerText = z);
7207
7207
  }
7208
- function s(m) {
7209
- m.appendChild(d), d.addEventListener("click", t);
7208
+ function s(p) {
7209
+ p.appendChild(d), d.addEventListener("click", t);
7210
7210
  }
7211
7211
  function r() {
7212
7212
  c.removeEventListener("click", t), d.remove();
7213
7213
  }
7214
- const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), u = i.userDistanceItem, h = new _(0, 0, 0), p = {
7214
+ const { line: a } = i, l = a.id, c = Eh(), d = Ph(a), u = i.userDistanceItem, h = new _(0, 0, 0), m = {
7215
7215
  lineID: l,
7216
7216
  ndcPosition: h,
7217
7217
  update: o,
@@ -7220,7 +7220,7 @@ function Ih(i) {
7220
7220
  highlight: e,
7221
7221
  unHighlight: n
7222
7222
  };
7223
- return u != null && u.element ? d.appendChild(u.element) : d.appendChild(c), p;
7223
+ return u != null && u.element ? d.appendChild(u.element) : d.appendChild(c), m;
7224
7224
  }
7225
7225
  class $t {
7226
7226
  constructor(t, e, n) {
@@ -7546,25 +7546,25 @@ class kh extends fi {
7546
7546
  const [n] = this.five.model.intersectRaycaster(e);
7547
7547
  if (!n)
7548
7548
  return;
7549
- const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((p) => {
7550
- const [m, g] = p.points, A = m.position.clone().project(o), v = g.position.clone().project(o);
7551
- if (!Ke(A) && !Ke(v))
7549
+ const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
7550
+ const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
7551
+ if (!Ke(v) && !Ke(A))
7552
7552
  return null;
7553
7553
  const w = new Qe(
7554
- A.x * r,
7555
- A.y * a
7556
- ), y = new Qe(
7557
7554
  v.x * r,
7558
7555
  v.y * a
7556
+ ), y = new Qe(
7557
+ A.x * r,
7558
+ A.y * a
7559
7559
  );
7560
- return { id: p.id, points: [w, y] };
7561
- }).filter((p) => !!p);
7560
+ return { id: m.id, points: [w, y] };
7561
+ }).filter((m) => !!m);
7562
7562
  if (c.length === 0)
7563
7563
  return;
7564
- const u = c.map((p) => {
7565
- const m = ho(l, p.points);
7566
- return { id: p.id, distance: m.distanceTo(l) };
7567
- }).sort((p, m) => p.distance - m.distance)[0], h = u.distance > 20 ? void 0 : this.model.lines.find(({ id: p }) => p === u.id);
7564
+ const u = c.map((m) => {
7565
+ const p = ho(l, m.points);
7566
+ return { id: m.id, distance: p.distanceTo(l) };
7567
+ }).sort((m, p) => m.distance - p.distance)[0], h = u.distance > 20 ? void 0 : this.model.lines.find(({ id: m }) => m === u.id);
7568
7568
  if (this.highlightedLines.length > 0 && !h)
7569
7569
  return this.clearHighlightLines(), !1;
7570
7570
  if (h)
@@ -7670,8 +7670,8 @@ class Sa {
7670
7670
  const l = (s + 1) / 2 * a.clientWidth, c = -(r - 1) / 2 * a.clientHeight;
7671
7671
  let d = l, u = c - 34;
7672
7672
  if (this.lines.length === 1 && t.length === 2) {
7673
- const h = (o[1] - o[0]) / (n[1] - n[0]), m = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
7674
- Math.abs(h) > 0.4 && (d = l + 57, u = m);
7673
+ const h = (o[1] - o[0]) / (n[1] - n[0]), p = -((o[1] + o[0]) / 2 - 1) / 2 * a.clientHeight;
7674
+ Math.abs(h) > 0.4 && (d = l + 57, u = p);
7675
7675
  }
7676
7676
  return this.container.style.transform = `translate3d(${d}px, ${u}px, 10px)`, this.show();
7677
7677
  }
@@ -7758,28 +7758,28 @@ class Pi extends fi {
7758
7758
  const [n] = this.five.model.intersectRaycaster(e);
7759
7759
  if (!n)
7760
7760
  return;
7761
- const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((p) => {
7762
- const [m, g] = p.points, A = m.position.clone().project(o), v = g.position.clone().project(o);
7763
- if (!Ke(A) && !Ke(v))
7761
+ const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
7762
+ const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
7763
+ if (!Ke(v) && !Ke(A))
7764
7764
  return null;
7765
7765
  const w = new Qe(
7766
- A.x * r,
7767
- A.y * a
7768
- ), y = new Qe(
7769
7766
  v.x * r,
7770
7767
  v.y * a
7768
+ ), y = new Qe(
7769
+ A.x * r,
7770
+ A.y * a
7771
7771
  );
7772
- return { id: p.id, points: [w, y] };
7773
- }).filter((p) => !!p);
7772
+ return { id: m.id, points: [w, y] };
7773
+ }).filter((m) => !!m);
7774
7774
  if (c.length === 0)
7775
7775
  return;
7776
- const u = c.map((p) => {
7777
- const m = ho(l, p.points);
7778
- return { id: p.id, distance: m.distanceTo(l) };
7779
- }).sort((p, m) => p.distance - m.distance)[0];
7776
+ const u = c.map((m) => {
7777
+ const p = ho(l, m.points);
7778
+ return { id: m.id, distance: p.distanceTo(l) };
7779
+ }).sort((m, p) => m.distance - p.distance)[0];
7780
7780
  if (u.distance > 20)
7781
7781
  return;
7782
- const h = this.model.lines.find(({ id: p }) => p === u.id);
7782
+ const h = this.model.lines.find(({ id: m }) => m === u.id);
7783
7783
  if (!!h)
7784
7784
  return this.chooseLine(h), !1;
7785
7785
  });
@@ -7858,22 +7858,22 @@ class As extends fi {
7858
7858
  const [n] = this.five.model.intersectRaycaster(e);
7859
7859
  if (!n)
7860
7860
  return;
7861
- const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((p) => {
7862
- const [m, g] = p.points, A = m.position.clone().project(o), v = g.position.clone().project(o);
7863
- if (!Ke(A) && !Ke(v))
7861
+ const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new Qe(s.x * r, s.y * a), c = this.model.lines.map((m) => {
7862
+ const [p, g] = m.points, v = p.position.clone().project(o), A = g.position.clone().project(o);
7863
+ if (!Ke(v) && !Ke(A))
7864
7864
  return null;
7865
- const w = new Qe(A.x * r, A.y * a), y = new Qe(v.x * r, v.y * a);
7866
- return { id: p.id, points: [w, y] };
7867
- }).filter((p) => !!p);
7865
+ const w = new Qe(v.x * r, v.y * a), y = new Qe(A.x * r, A.y * a);
7866
+ return { id: m.id, points: [w, y] };
7867
+ }).filter((m) => !!m);
7868
7868
  if (c.length === 0)
7869
7869
  return;
7870
- const u = c.map((p) => {
7871
- const m = ho(l, p.points);
7872
- return { id: p.id, distance: m.distanceTo(l) };
7873
- }).sort((p, m) => p.distance - m.distance)[0];
7870
+ const u = c.map((m) => {
7871
+ const p = ho(l, m.points);
7872
+ return { id: m.id, distance: p.distanceTo(l) };
7873
+ }).sort((m, p) => m.distance - p.distance)[0];
7874
7874
  if (u.distance > 20)
7875
7875
  return;
7876
- const h = this.model.lines.find(({ id: p }) => p === u.id);
7876
+ const h = this.model.lines.find(({ id: m }) => m === u.id);
7877
7877
  if (!!h)
7878
7878
  return this.chooseLine(h), !1;
7879
7879
  });
@@ -7963,8 +7963,8 @@ void main() {
7963
7963
  }
7964
7964
  `;
7965
7965
  function za(i) {
7966
- var v, w;
7967
- const t = (v = i.isMobile) != null ? v : !0, e = (w = i.useNormalVector) != null ? w : !0;
7966
+ var A, w;
7967
+ const t = (A = i.isMobile) != null ? A : !0, e = (w = i.useNormalVector) != null ? w : !0;
7968
7968
  let n = 10349931;
7969
7969
  e && i.ballColor >= 0 && (n = i.ballColor);
7970
7970
  const o = new _i(), s = new wl(0.3, 0.3), r = t ? Th : Mh, a = new Nr().load(r);
@@ -7980,13 +7980,13 @@ function za(i) {
7980
7980
  fragmentShader: jh,
7981
7981
  depthTest: !1,
7982
7982
  transparent: !0
7983
- }), p = new Fn(u, h), m = new kl(0.01, 20, 20), g = new un({
7983
+ }), m = new Fn(u, h), p = new kl(0.01, 20, 20), g = new un({
7984
7984
  color: n,
7985
7985
  depthTest: !1,
7986
7986
  transparent: !0,
7987
7987
  side: Wr
7988
- }), A = new Fn(m, g);
7989
- return A.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(p, A), o;
7988
+ }), v = new Fn(p, g);
7989
+ return v.position.set(0, 0, 0.1), o.name = "mouse-current", o.add(c), e && o.add(m, v), o;
7990
7990
  }
7991
7991
  const Ta = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUuMyUiIHk9Ii01LjMlIiB3aWR0aD0iMTEwLjUlIiBoZWlnaHQ9IjExMC41JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19hIj48ZmVPZmZzZXQgaW49IlNvdXJjZUFscGhhIiByZXN1bHQ9InNoYWRvd09mZnNldE91dGVyMSIvPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjEiIGluPSJzaGFkb3dPZmZzZXRPdXRlcjEiIHJlc3VsdD0ic2hhZG93Qmx1ck91dGVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93Qmx1ck91dGVyMSIgaW4yPSJTb3VyY2VBbHBoYSIgb3BlcmF0b3I9Im91dCIgcmVzdWx0PSJzaGFkb3dCbHVyT3V0ZXIxIi8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPSIwIDAgMCAwIDEgMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwLjUgMCIgaW49InNoYWRvd0JsdXJPdXRlcjEiLz48L2ZpbHRlcj48ZmlsdGVyIHg9Ii0xMS40JSIgeT0iLTExLjQlIiB3aWR0aD0iMTIyLjklIiBoZWlnaHQ9IjEyMi45JSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0icHJlZml4X19jIj48ZmVHYXVzc2lhbkJsdXIgc3RkRGV2aWF0aW9uPSI0LjUiIGluPSJTb3VyY2VBbHBoYSIgcmVzdWx0PSJzaGFkb3dCbHVySW5uZXIxIi8+PGZlT2Zmc2V0IGluPSJzaGFkb3dCbHVySW5uZXIxIiByZXN1bHQ9InNoYWRvd09mZnNldElubmVyMSIvPjxmZUNvbXBvc2l0ZSBpbj0ic2hhZG93T2Zmc2V0SW5uZXIxIiBpbjI9IlNvdXJjZUFscGhhIiBvcGVyYXRvcj0iYXJpdGhtZXRpYyIgazI9Ii0xIiBrMz0iMSIgcmVzdWx0PSJzaGFkb3dJbm5lcklubmVyMSIvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0iMCAwIDAgMCAxIDAgMCAwIDAgMSAwIDAgMCAwIDEgMCAwIDAgMC4zIDAiIGluPSJzaGFkb3dJbm5lcklubmVyMSIvPjwvZmlsdGVyPjxmaWx0ZXIgeD0iLTEyNi42JSIgeT0iLTMzNy41JSIgd2lkdGg9IjM1My4xJSIgaGVpZ2h0PSI3NzUlIiBmaWx0ZXJVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giIGlkPSJwcmVmaXhfX2UiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjE2IiBpbj0iU291cmNlR3JhcGhpYyIvPjwvZmlsdGVyPjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19kIj48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9Ii43IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2YiPjxzdG9wIHN0b3AtY29sb3I9IiNGRkYiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48Y2lyY2xlIGlkPSJwcmVmaXhfX2IiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC40NDQiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNwcmVmaXhfX2EpIiB4bGluazpocmVmPSIjcHJlZml4X19iIi8+PHVzZSBmaWxsPSIjMDAwIiBmaWx0ZXI9InVybCgjcHJlZml4X19jKSIgeGxpbms6aHJlZj0iI3ByZWZpeF9fYiIvPjxjaXJjbGUgc3Ryb2tlPSJ1cmwoI3ByZWZpeF9fZCkiIHN0cm9rZS13aWR0aD0iLjQiIGZpbGwtb3BhY2l0eT0iLjI0MSIgZmlsbD0iI0ZGRiIgc3Ryb2tlLWxpbmVqb2luPSJzcXVhcmUiIGN4PSIzNiIgY3k9IjM2IiByPSIyOC4yNDQiLz48ZWxsaXBzZSBmaWxsPSIjRkZGIiBvcGFjaXR5PSIuNTk2IiBmaWx0ZXI9InVybCgjcHJlZml4X19lKSIgY3g9IjM2IiBjeT0iMzYiIHJ4PSIxOC45NjMiIHJ5PSI3LjExMSIvPjxwYXRoIGQ9Ik0zNiAwQzE2LjExOCAwIDAgMTYuMTE4IDAgMzZzMTYuMTE4IDM2IDM2IDM2IDM2LTE2LjExOCAzNi0zNlM1NS44ODIgMCAzNiAwem0wIDQuNDQ0YzE3LjQyOCAwIDMxLjU1NiAxNC4xMjggMzEuNTU2IDMxLjU1NlM1My40MjggNjcuNTU2IDM2IDY3LjU1NiA0LjQ0NCA1My40MjggNC40NDQgMzYgMTguNTcyIDQuNDQ0IDM2IDQuNDQ0eiIgZmlsbD0idXJsKCNwcmVmaXhfX2YpIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+", Ma = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIiIGhlaWdodD0iNzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIxNS41MSUiIHkxPSIxMi40OTclIiB4Mj0iODUuMjY1JSIgeTI9Ijg2LjE0MyUiIGlkPSJwcmVmaXhfX2IiPjxzdG9wIHN0b3AtY29sb3I9IiM5NUFFRkYiIG9mZnNldD0iMCUiLz48c3RvcCBzdG9wLWNvbG9yPSIjNjM4NkZGIiBvZmZzZXQ9IjEwMCUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCB4MT0iNTAlIiB5MT0iMTAwJSIgeDI9IjUwJSIgeTI9IjAlIiBpZD0icHJlZml4X19hIj48c3RvcCBzdG9wLWNvbG9yPSIjOTlBRUZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0ZGRiIgc3RvcC1vcGFjaXR5PSIwIiBvZmZzZXQ9IjI2LjQzMiUiLz48c3RvcCBzdG9wLWNvbG9yPSIjRkZGIiBzdG9wLW9wYWNpdHk9IjAiIG9mZnNldD0iODIuMzA1JSIvPjxzdG9wIHN0b3AtY29sb3I9IiM5OUFFRkYiIHN0b3Atb3BhY2l0eT0iLjQiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IHgxPSI1MCUiIHkxPSIwJSIgeDI9IjUwJSIgeTI9IjEwMCUiIGlkPSJwcmVmaXhfX2QiPjxzdG9wIHN0b3AtY29sb3I9IiM4Nzk3RDIiIHN0b3Atb3BhY2l0eT0iLjA1IiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iIzYyNzdDNyIgc3RvcC1vcGFjaXR5PSIuMiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48ZmlsdGVyIHg9Ii02My4zJSIgeT0iLTE2OC44JSIgd2lkdGg9IjIyNi42JSIgaGVpZ2h0PSI0MzcuNSUiIGZpbHRlclVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgaWQ9InByZWZpeF9fYyI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iOCIgaW49IlNvdXJjZUdyYXBoaWMiLz48L2ZpbHRlcj48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0idXJsKCNwcmVmaXhfX2EpIiBzdHJva2Utd2lkdGg9Ii40IiBmaWxsPSJ1cmwoI3ByZWZpeF9fYikiIG9wYWNpdHk9Ii43IiBjeD0iMzYiIGN5PSIzNiIgcj0iMjguMjQ0Ii8+PGVsbGlwc2UgZmlsbD0iIzdDOTBEQSIgb3BhY2l0eT0iLjU5NiIgZmlsdGVyPSJ1cmwoI3ByZWZpeF9fYykiIGN4PSIzNiIgY3k9IjM2IiByeD0iMTguOTYzIiByeT0iNy4xMTEiLz48cGF0aCBkPSJNMzYgMEMxNi4xMTggMCAwIDE2LjExOCAwIDM2czE2LjExOCAzNiAzNiAzNiAzNi0xNi4xMTggMzYtMzZTNTUuODgyIDAgMzYgMHptMCA0LjQ0NGMxNy40MjggMCAzMS41NTYgMTQuMTI4IDMxLjU1NiAzMS41NTZTNTMuNDI4IDY3LjU1NiAzNiA2Ny41NTYgNC40NDQgNTMuNDI4IDQuNDQ0IDM2IDE4LjU3MiA0LjQ0NCAzNiA0LjQ0NHoiIGZpbGw9InVybCgjcHJlZml4X19kKSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PC9nPjwvc3ZnPg==", Qh = `
7992
7992
  <svg class="fpm__exit-icon width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
@@ -8881,28 +8881,28 @@ function df(i) {
8881
8881
  ae(i, "svelte-1i5h9zh", ".PanoSpatialTagPlugin__tag-x.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0;display:block;white-space:nowrap;box-sizing:border-box;width:25rem;height:14rem;color:#FFF;transform:translate(0, -100%);transition:height .5s linear}.PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh.svelte-1i5h9zh{content:'';position:absolute;width:30rem;height:30rem;top:-15rem;left:-15rem;z-index:-1;opacity:0;transition:opacity .8s .6s;background:url('https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png');background-size:30rem 30rem}.PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;left:-1rem;width:2rem;height:100%;overflow:hidden}.PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:1rem;height:calc(100% - 1.5rem);width:.15rem;background:linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, .1));box-shadow:0 .1rem .5rem rgba(0, 0, 0, .2);opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .4s cubic-bezier(.44,.44,.74,.98) , opacity .4s cubic-bezier(.44,.44,.74,.98), width .5s linear, height .5s linear ;transform-origin:center bottom}.PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.3rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;top:0;left:0.5rem;height:1.8rem;width:.1rem;background:#fff;opacity:0;transform:translate(-50%, 200%) scaleY(0);transform-origin:center top}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1 linear .5s forwards .45s}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2 linear .5s forwards .65s}.PanoSpatialTagPlugin__tag-x.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line.svelte-1i5h9zh{transform:scaleY(-1)}.PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh.svelte-1i5h9zh{position:relative;height:100%;overflow:hidden;transform-origin:left top;transition:transform .5s linear}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-animate.svelte-1i5h9zh{transform-origin:left bottom}.PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh.svelte-1i5h9zh{position:absolute;display:inline-block;transform:translate(-100%, 0);transition:transform .9s cubic-bezier(0,.65,.16,1.08) .6s;padding-left:.5rem;font-size:1rem}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{bottom:0}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:1;transform:translate(-50%, 0) scaleY(1)}.PanoSpatialTagPlugin__tag-upside-down.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{top:unset;bottom:-15rem}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:.32}.PanoSpatialTagPlugin__tag-show.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(0, 0)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-flagpole.svelte-1i5h9zh{opacity:0;transform:translate(-50%, 60%) scaleY(0);transition:transform .5s .55s, opacity .4s .55s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-shadow.svelte-1i5h9zh{opacity:0;transition:opacity .8s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content.svelte-1i5h9zh{transform:translate(-100%, 0);transition:transform .6s cubic-bezier(.53,.06,.88,.59)}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-content .svelte-1i5h9zh{pointer-events:none}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line1.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 10%) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide linear .28s forwards .3s}.PanoSpatialTagPlugin__tag-hide.svelte-1i5h9zh .PanoSpatialTagPlugin__tag-line2.svelte-1i5h9zh{opacity:0.5;transform:translate(-50%, 0) scaleY(0);animation:svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide linear .28s forwards .45s}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 135%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 20%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2{0%{opacity:0;transform:translate(-50%, 250%) scaleY(1)}50%{opacity:0.5;transform:translate(-50%, 125%) scaleY(1)}100%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line1-hide{0%{opacity:0.5;transform:translate(-50%, 10%) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 105%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}@keyframes svelte-1i5h9zh-PanoSpatialTagPlugin__tag-line2-hide{0%{opacity:0.5;transform:translate(-50%, 0) scaleY(0)}50%{opacity:0.2;transform:translate(-50%, 100%) scaleY(1)}100%{opacity:0;transform:translate(-50%, 200%) scaleY(0)}}");
8882
8882
  }
8883
8883
  function uf(i) {
8884
- let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g;
8884
+ let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g;
8885
8885
  return {
8886
8886
  c() {
8887
- t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), u = j("div"), h = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(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] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(u, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", p = "PanoSpatialTagPlugin__" + i[0]), R(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
8887
+ t = j("div"), e = j("div"), n = V(), o = j("div"), s = j("i"), r = V(), a = j("i"), l = V(), c = j("i"), d = V(), u = j("div"), h = j("div"), b(e, "class", "PanoSpatialTagPlugin__tag-shadow svelte-1i5h9zh"), R(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] + ")"), b(s, "class", "PanoSpatialTagPlugin__tag-flagpole svelte-1i5h9zh"), R(s, "width", i[4] + "rem"), b(a, "class", "PanoSpatialTagPlugin__tag-line1 svelte-1i5h9zh"), b(c, "class", "PanoSpatialTagPlugin__tag-line2 svelte-1i5h9zh"), b(o, "class", "PanoSpatialTagPlugin__tag-line svelte-1i5h9zh"), b(h, "class", "PanoSpatialTagPlugin__tag-content svelte-1i5h9zh"), b(u, "class", "PanoSpatialTagPlugin__tag-animate svelte-1i5h9zh"), R(u, "transform", "scale(" + i[3] * 3 + ")"), b(t, "id", m = "PanoSpatialTagPlugin__" + i[0]), R(t, "height", 20 * i[5] + "rem"), b(t, "class", "svelte-1i5h9zh"), q(t, "PanoSpatialTagPlugin__tag-x", !0), q(t, "PanoSpatialTagPlugin__tag-upside-down", i[1]), q(t, "PanoSpatialTagPlugin__tag-show", i[10]), q(t, "PanoSpatialTagPlugin__tag-hide", i[10] === !1 || i[6]);
8888
8888
  },
8889
- m(A, v) {
8890
- B(A, t, v), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, u), Q(u, h), h.innerHTML = i[2], i[16](h), m || (g = Ee(h, "click", i[11]), m = !0);
8889
+ m(v, A) {
8890
+ B(v, t, A), Q(t, e), Q(t, n), Q(t, o), Q(o, s), Q(o, r), Q(o, a), Q(o, l), Q(o, c), Q(t, d), Q(t, u), Q(u, h), h.innerHTML = i[2], i[16](h), p || (g = Ee(h, "click", i[11]), p = !0);
8891
8891
  },
8892
- p(A, [v]) {
8893
- v & 394 && R(e, "transform", "translate(" + A[7] / 2 * A[3] * 3 + "px, " + A[8] / 2 * (A[1] ? -1 : 1) * A[3] * 3 + "px) scale(" + 1 / A[3] + ")"), v & 16 && R(s, "width", A[4] + "rem"), v & 4 && (h.innerHTML = A[2]), v & 8 && R(u, "transform", "scale(" + A[3] * 3 + ")"), v & 1 && p !== (p = "PanoSpatialTagPlugin__" + A[0]) && b(t, "id", p), v & 32 && R(t, "height", 20 * A[5] + "rem"), v & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", A[1]), v & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", A[10]), v & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", A[10] === !1 || A[6]);
8892
+ p(v, [A]) {
8893
+ A & 394 && R(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 && R(s, "width", v[4] + "rem"), A & 4 && (h.innerHTML = v[2]), A & 8 && R(u, "transform", "scale(" + v[3] * 3 + ")"), A & 1 && m !== (m = "PanoSpatialTagPlugin__" + v[0]) && b(t, "id", m), A & 32 && R(t, "height", 20 * v[5] + "rem"), A & 2 && q(t, "PanoSpatialTagPlugin__tag-upside-down", v[1]), A & 1024 && q(t, "PanoSpatialTagPlugin__tag-show", v[10]), A & 1088 && q(t, "PanoSpatialTagPlugin__tag-hide", v[10] === !1 || v[6]);
8894
8894
  },
8895
8895
  i: te,
8896
8896
  o: te,
8897
- d(A) {
8898
- A && T(t), i[16](null), m = !1, g();
8897
+ d(v) {
8898
+ v && T(t), i[16](null), p = !1, g();
8899
8899
  }
8900
8900
  };
8901
8901
  }
8902
8902
  function hf(i, t, e) {
8903
- let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: u } = t, { events: h } = t, { hooks: p } = t, m = 0, g = 0, A, v, w = setTimeout(
8903
+ let { id: n } = t, { upsideDown: o } = t, { content: s } = t, { contentZoom: r } = t, { lineWidthZoom: a } = t, { lineHeightZoom: l } = t, { destroying: c = !1 } = t, { folded: d } = t, { dispose: u } = t, { events: h } = t, { hooks: m } = t, p = 0, g = 0, v, A, w = setTimeout(
8904
8904
  () => {
8905
- d || e(10, v = !0), w = void 0;
8905
+ d || e(10, A = !0), w = void 0;
8906
8906
  },
8907
8907
  100
8908
8908
  );
@@ -8925,13 +8925,13 @@ function hf(i, t, e) {
8925
8925
  }
8926
8926
  };
8927
8927
  Ye(() => {
8928
- p.emit("initTag", { id: n });
8928
+ m.emit("initTag", { id: n });
8929
8929
  });
8930
8930
  const x = Ra.subscribe((C) => {
8931
8931
  if (C === null)
8932
8932
  return;
8933
8933
  const [S, k] = C.split("-PanoSpatialTagPlugin-");
8934
- n === S && (p.emit("clickOrigin", { id: n, show: v }), w || (e(10, v = d), e(12, d = !d), w = setTimeout(
8934
+ n === S && (m.emit("clickOrigin", { id: n, show: A }), w || (e(10, A = d), e(12, d = !d), w = setTimeout(
8935
8935
  () => {
8936
8936
  w = void 0;
8937
8937
  },
@@ -8939,17 +8939,17 @@ function hf(i, t, e) {
8939
8939
  )));
8940
8940
  });
8941
8941
  to(() => {
8942
- e(7, m = A.offsetWidth), e(8, g = A.offsetHeight), !w && e(10, v = !d);
8942
+ e(7, p = v.offsetWidth), e(8, g = v.offsetHeight), !w && e(10, A = !d);
8943
8943
  }), wt(() => {
8944
- p.emit("destroyTag", { id: n }), x(), u();
8944
+ m.emit("destroyTag", { id: n }), x(), u();
8945
8945
  });
8946
8946
  function L(C) {
8947
- Te[C ? "unshift" : "push"](() => {
8948
- A = C, e(9, A);
8947
+ ze[C ? "unshift" : "push"](() => {
8948
+ v = C, e(9, v);
8949
8949
  });
8950
8950
  }
8951
8951
  return i.$$set = (C) => {
8952
- "id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, u = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15, p = C.hooks);
8952
+ "id" in C && e(0, n = C.id), "upsideDown" in C && e(1, o = C.upsideDown), "content" in C && e(2, s = C.content), "contentZoom" in C && e(3, r = C.contentZoom), "lineWidthZoom" in C && e(4, a = C.lineWidthZoom), "lineHeightZoom" in C && e(5, l = C.lineHeightZoom), "destroying" in C && e(6, c = C.destroying), "folded" in C && e(12, d = C.folded), "dispose" in C && e(13, u = C.dispose), "events" in C && e(14, h = C.events), "hooks" in C && e(15, m = C.hooks);
8953
8953
  }, [
8954
8954
  n,
8955
8955
  o,
@@ -8958,15 +8958,15 @@ function hf(i, t, e) {
8958
8958
  a,
8959
8959
  l,
8960
8960
  c,
8961
- m,
8961
+ p,
8962
8962
  g,
8963
- A,
8964
8963
  v,
8964
+ A,
8965
8965
  y,
8966
8966
  d,
8967
8967
  u,
8968
8968
  h,
8969
- p,
8969
+ m,
8970
8970
  L
8971
8971
  ];
8972
8972
  }
@@ -9141,9 +9141,9 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9141
9141
  let e = t == null ? void 0 : t.container, n = 1.4;
9142
9142
  const o = (X = t == null ? void 0 : t.wait) != null ? X : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (we = t == null ? void 0 : t.minDistance) != null ? we : 1.2, d = (ke = t == null ? void 0 : t.maxDistance) != null ? ke : 3.5, u = bn(i), h = document.createElement("div");
9143
9143
  h.classList.add("PanoSpatialTagPlugin"), Object.assign(h.style, mf);
9144
- const p = new nt();
9145
- let m = new Image();
9146
- m.src = bf;
9144
+ const m = new nt();
9145
+ let p = new Image();
9146
+ p.src = bf;
9147
9147
  const g = {
9148
9148
  points: [],
9149
9149
  origins: [],
@@ -9154,10 +9154,10 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9154
9154
  folded: !1,
9155
9155
  enabled: !0,
9156
9156
  forbidden: !0
9157
- }, A = new cf({
9157
+ }, v = new cf({
9158
9158
  target: h,
9159
9159
  props: { origins: g.origins }
9160
- }), v = (se, ve) => {
9160
+ }), A = (se, ve) => {
9161
9161
  L(), ve && C();
9162
9162
  }, w = () => {
9163
9163
  g.forbidden && (g.forbidden = !1, C());
@@ -9193,7 +9193,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9193
9193
  }), g.tags = g.tags.filter((ge) => !ge.destroying), L();
9194
9194
  }, 1900);
9195
9195
  }, x = (se) => {
9196
- se !== je.Mode.Panorama && !g.forbidden && (A.$set({ origins: [] }), g.tags.forEach((ve) => {
9196
+ se !== Be.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ve) => {
9197
9197
  ve.app.$destroy(), ve = null;
9198
9198
  }), g.origins = [], g.tags = [], g.forbidden = !0);
9199
9199
  }, L = () => {
@@ -9209,7 +9209,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9209
9209
  top: (-re.y + 1) / 2 * 100,
9210
9210
  destroying: be.destroying
9211
9211
  };
9212
- }), A.$set({ origins: g.origins });
9212
+ }), v.$set({ origins: g.origins });
9213
9213
  }, C = () => {
9214
9214
  g.forbidden || !g.enabled || (g.timeoutId && clearTimeout(g.timeoutId), g.timeoutId = setTimeout(() => {
9215
9215
  g.timeoutId = void 0;
@@ -9225,7 +9225,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9225
9225
  const ct = g.tags.filter(
9226
9226
  (De) => it.containsPoint(De.position) && !De.destroying
9227
9227
  ).length, dt = g.points.reduce((De, Oe) => {
9228
- if (g.tags.find((ze) => Oe.id === ze.id && !ze.destroying))
9228
+ if (g.tags.find((Se) => Oe.id === Se.id && !Se.destroying))
9229
9229
  return De;
9230
9230
  const Ve = re.position.clone().setY(n).distanceTo(Oe.position);
9231
9231
  if (Ve < c || Ve > d || !it.containsPoint(Oe.position))
@@ -9234,10 +9234,10 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9234
9234
  if (en.angleTo(Oe.normal) > Math.PI / 2 - r && en.angleTo(Oe.normal) < Math.PI / 2 + r)
9235
9235
  return De;
9236
9236
  const Ft = Oe.position.clone().project(re);
9237
- if (!g.tags.every((ze) => {
9238
- if (ze.position.clone().sub(re.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
9237
+ if (!g.tags.every((Se) => {
9238
+ if (Se.position.clone().sub(re.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
9239
9239
  return !0;
9240
- const Pt = ze.position.clone().project(re);
9240
+ const Pt = Se.position.clone().project(re);
9241
9241
  return Math.sqrt(
9242
9242
  Math.pow((Ft.x - Pt.x) / 2 * se, 2) + Math.pow((Ft.y - Pt.y) / 2 * ve, 2)
9243
9243
  ) > a;
@@ -9252,14 +9252,14 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9252
9252
  distance: Ve
9253
9253
  };
9254
9254
  let Ce;
9255
- for (let ze = 0, Pt = De.length; ze < Pt; ze++) {
9256
- const yn = De[ze];
9255
+ for (let Se = 0, Pt = De.length; Se < Pt; Se++) {
9256
+ const yn = De[Se];
9257
9257
  if (Et.weight > yn.weight) {
9258
- Ce = ze;
9258
+ Ce = Se;
9259
9259
  break;
9260
9260
  }
9261
9261
  if (Et.distance < yn.distance) {
9262
- Ce = ze;
9262
+ Ce = Se;
9263
9263
  break;
9264
9264
  }
9265
9265
  }
@@ -9273,9 +9273,9 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9273
9273
  if (!g.tags.concat(be).every((Ce) => {
9274
9274
  if (Ce.position.clone().sub(re.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
9275
9275
  return !0;
9276
- const ze = Ce.position.clone().project(re);
9276
+ const Se = Ce.position.clone().project(re);
9277
9277
  return Math.sqrt(
9278
- Math.pow((en.x - ze.x) / 2 * se, 2) + Math.pow((en.y - ze.y) / 2 * ve, 2)
9278
+ Math.pow((en.x - Se.x) / 2 * se, 2) + Math.pow((en.y - Se.y) / 2 * ve, 2)
9279
9279
  ) > a;
9280
9280
  }))
9281
9281
  continue;
@@ -9286,7 +9286,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9286
9286
  Ve.distance + xs
9287
9287
  ), [Et] = g.intersectObjects ? Ft.intersectObjects(g.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(Ft) : Ft.intersectObjects(i.model.children, !0);
9288
9288
  if (!!Et && Ve.distance - Et.distance < xs) {
9289
- const { position: Ce, normal: ze, id: Pt, replacement: yn } = Ve, sl = new E.Plane().setFromNormalAndCoplanarPoint(ze, Ce), vo = Ce.clone().sub(re.position).cross(new E.Vector3(0, 1, 0)).setLength(Ii), rl = [
9289
+ const { position: Ce, normal: Se, id: Pt, replacement: yn } = Ve, sl = new E.Plane().setFromNormalAndCoplanarPoint(Se, Ce), vo = Ce.clone().sub(re.position).cross(new E.Vector3(0, 1, 0)).setLength(Ii), rl = [
9290
9290
  Ce.clone(),
9291
9291
  Ce.clone().add(vo),
9292
9292
  Ce.clone().add(new E.Vector3(0, Ii, 0)).add(vo),
@@ -9302,13 +9302,13 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9302
9302
  upsideDown: Ce.y > l,
9303
9303
  folded: g.folded,
9304
9304
  events: g.events,
9305
- hooks: p,
9305
+ hooks: m,
9306
9306
  dispose: ll
9307
9307
  }
9308
9308
  });
9309
9309
  be.push({
9310
9310
  position: Ce,
9311
- normal: ze,
9311
+ normal: Se,
9312
9312
  id: Pt,
9313
9313
  app: cl
9314
9314
  });
@@ -9331,7 +9331,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9331
9331
  }, H = () => {
9332
9332
  g.enabled = !0, C();
9333
9333
  }, N = () => {
9334
- g.enabled = !1, A.$set({ origins: [] }), g.tags.forEach((se) => {
9334
+ g.enabled = !1, v.$set({ origins: [] }), g.tags.forEach((se) => {
9335
9335
  se.app.$destroy(), se = null;
9336
9336
  }), g.origins = [], g.tags = [];
9337
9337
  }, Y = () => {
@@ -9353,11 +9353,11 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9353
9353
  }, O = () => {
9354
9354
  i.once("renderFrame", L);
9355
9355
  }, W = () => {
9356
- e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate", v);
9356
+ e || (e = i.getElement().parentElement), e && e.appendChild(h), g.forbidden = !1, n = i.model.bounding.getCenter(new E.Vector3()).y, C(), i.on("panoWillArrive", y), i.on("panoArrived", w), i.on("modeChange", x), i.on("cameraUpdate", A);
9357
9357
  }, Z = () => {
9358
- m = null, u.disposeAll(), A.$destroy(), g.tags.forEach((se) => {
9358
+ p = null, u.disposeAll(), v.$destroy(), g.tags.forEach((se) => {
9359
9359
  se.app.$destroy(), se = null;
9360
- }), g.origins = [], g.tags = [], i.off("modelLoaded", W), i.off("renderFrame", L), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", x), i.off("cameraUpdate", v), i.off("dispose", Z), window.removeEventListener("resize", O, !1);
9360
+ }), g.origins = [], g.tags = [], i.off("modelLoaded", W), i.off("renderFrame", L), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", x), i.off("cameraUpdate", A), i.off("dispose", Z), window.removeEventListener("resize", O, !1);
9361
9361
  };
9362
9362
  return window.addEventListener("resize", O, !1), (He = i == null ? void 0 : i.model) != null && He.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", Z), {
9363
9363
  load: k,
@@ -9368,7 +9368,7 @@ const Ii = 1e-3, xs = 0.01, bf = "https://vrlab-image4.ljcdn.com/release/web/Pan
9368
9368
  fold: z,
9369
9369
  enable: H,
9370
9370
  disable: N,
9371
- hooks: p,
9371
+ hooks: m,
9372
9372
  dispose: Z
9373
9373
  };
9374
9374
  };
@@ -9382,13 +9382,13 @@ function wf(i) {
9382
9382
  let t, e, n, o = (i[0].name.length > 6 ? `${i[0].name.slice(0, 6)}...` : i[0].name) + "", s, r, a, l, c, d;
9383
9383
  return {
9384
9384
  c() {
9385
- t = j("div"), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), R(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), R(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = Le(Ze("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
9385
+ t = j("div"), e = j("div"), n = j("span"), s = xe(o), r = V(), a = j("div"), b(n, "class", "item-label-item__text svelte-1ir3cyd"), b(e, "class", "item-label-item__text-wrap svelte-1ir3cyd"), R(e, "top", `-${i[0].strokeLength + 26}px`), b(a, "class", "item-label-item__bar svelte-1ir3cyd"), R(a, "height", `${i[0].strokeLength}px`), b(t, "class", l = je(Ze("item-label-item", { visible: i[0].visible })) + " svelte-1ir3cyd"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
9386
9386
  },
9387
9387
  m(u, h) {
9388
9388
  B(u, t, h), Q(t, e), Q(e, n), Q(n, s), Q(t, r), Q(t, a), c || (d = Ee(n, "click", i[1]), c = !0);
9389
9389
  },
9390
9390
  p(u, [h]) {
9391
- h & 1 && o !== (o = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && Me(s, o), h & 1 && R(e, "top", `-${u[0].strokeLength + 26}px`), h & 1 && R(a, "height", `${u[0].strokeLength}px`), h & 1 && l !== (l = Le(Ze("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), h & 1 && R(t, "z-index", u[0].zIndex), h & 1 && R(t, "transform", u[0].transform);
9391
+ h & 1 && o !== (o = (u[0].name.length > 6 ? `${u[0].name.slice(0, 6)}...` : u[0].name) + "") && Te(s, o), h & 1 && R(e, "top", `-${u[0].strokeLength + 26}px`), h & 1 && R(a, "height", `${u[0].strokeLength}px`), h & 1 && l !== (l = je(Ze("item-label-item", { visible: u[0].visible })) + " svelte-1ir3cyd") && b(t, "class", l), h & 1 && R(t, "z-index", u[0].zIndex), h & 1 && R(t, "transform", u[0].transform);
9392
9392
  },
9393
9393
  i: te,
9394
9394
  o: te,
@@ -9504,16 +9504,16 @@ function If(i) {
9504
9504
  let Ls = 26, xf = 11;
9505
9505
  function kf(i, t, e) {
9506
9506
  const { Raycaster: n, Vector3: o } = E;
9507
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, u = null, h, p, m = [], g = !0;
9508
- const A = (P, I) => {
9507
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, d = null, u = null, h, m, p = [], g = !0;
9508
+ const v = (P, I) => {
9509
9509
  const z = new n(), O = P.camera.position.clone(), W = new o().fromArray(I.modelPosition), Z = W.distanceTo(O);
9510
9510
  z.set(O.clone(), W.clone().sub(O).normalize());
9511
9511
  const [X] = P.model.intersectRaycaster(z);
9512
9512
  return !(X && X.distance + 1 < Z);
9513
- }, v = (P, I) => {
9513
+ }, A = (P, I) => {
9514
9514
  const z = new o(I.modelPosition[0], I.modelPosition[1], I.modelPosition[2]), O = P.project2d(z), W = O == null ? void 0 : O.x, Z = O == null ? void 0 : O.y;
9515
9515
  return [W, Z];
9516
- }, w = (P) => `translate(${P[0]}px, ${P[1]}px)`, y = (P, I) => m.length === 0 ? !1 : !!m.find((O) => P[0] >= O[0] - I && P[0] <= O[0] + I || P[1] >= O[1] - Ls && P[1] <= O[1] + Ls);
9516
+ }, w = (P) => `translate(${P[0]}px, ${P[1]}px)`, y = (P, I) => p.length === 0 ? !1 : !!p.find((O) => P[0] >= O[0] - I && P[0] <= O[0] + I || P[1] >= O[1] - Ls && P[1] <= O[1] + Ls);
9517
9517
  function x(P, I) {
9518
9518
  switch (I) {
9519
9519
  case Yt.SMALL:
@@ -9528,10 +9528,10 @@ function kf(i, t, e) {
9528
9528
  }
9529
9529
  const L = (P, I) => {
9530
9530
  const z = I.map((W) => {
9531
- const Z = v(P, W), X = W.name.length * xf, U = x(W.modelPosition[1], c), ue = (r ? A(P, W) : !0) && !y([Z[0], Z[1] + U], X);
9531
+ const Z = A(P, W), X = W.name.length * xf, U = x(W.modelPosition[1], c), ue = (r ? v(P, W) : !0) && !y([Z[0], Z[1] + U], X);
9532
9532
  if (!ue)
9533
9533
  return he(G({}, W), { visible: ue });
9534
- m.push(Z);
9534
+ p.push(Z);
9535
9535
  const me = w(Z);
9536
9536
  return he(G({}, W), {
9537
9537
  visible: ue,
@@ -9547,7 +9547,7 @@ function kf(i, t, e) {
9547
9547
  return Z !== void 0 ? he(G({}, W), { zIndex: Z * 10 }) : W;
9548
9548
  });
9549
9549
  }, C = () => {
9550
- m = [], e(1, u = L(s, u));
9550
+ p = [], e(1, u = L(s, u));
9551
9551
  };
9552
9552
  eo(() => {
9553
9553
  H();
@@ -9574,7 +9574,7 @@ function kf(i, t, e) {
9574
9574
  s.off("cameraUpdate", S), window.removeEventListener("resize", N, !1);
9575
9575
  });
9576
9576
  function Y() {
9577
- h = this.clientWidth, p = this.clientHeight, e(2, h), e(3, p);
9577
+ h = this.clientWidth, m = this.clientHeight, e(2, h), e(3, m);
9578
9578
  }
9579
9579
  return i.$$set = (P) => {
9580
9580
  "five" in P && e(5, s = P.five), "modelOcclusionEnable" in P && e(6, r = P.modelOcclusionEnable), "itemLabels" in P && e(7, a = P.itemLabels), "hooks" in P && e(0, l = P.hooks), "displayStrategyType" in P && e(8, c = P.displayStrategyType);
@@ -9582,7 +9582,7 @@ function kf(i, t, e) {
9582
9582
  l,
9583
9583
  u,
9584
9584
  h,
9585
- p,
9585
+ m,
9586
9586
  g,
9587
9587
  s,
9588
9588
  r,
@@ -9616,7 +9616,7 @@ function Lf(i) {
9616
9616
  }, t));
9617
9617
  }
9618
9618
  const lA = (i, t) => {
9619
- var h, p;
9619
+ var h, m;
9620
9620
  const e = {
9621
9621
  container: document.createElement("div"),
9622
9622
  data: null,
@@ -9627,7 +9627,7 @@ const lA = (i, t) => {
9627
9627
  app: void 0,
9628
9628
  hooks: new nt(),
9629
9629
  modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
9630
- displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : Yt.SMALL
9630
+ displayStrategyType: (m = t == null ? void 0 : t.displayStrategyType) != null ? m : Yt.SMALL
9631
9631
  };
9632
9632
  e.container.setAttribute("class", "model-item-label-plugin-container"), e.container.style.cssText = `
9633
9633
  position: absolute;
@@ -9637,15 +9637,15 @@ const lA = (i, t) => {
9637
9637
  height: 100%;
9638
9638
  z-index: 5;
9639
9639
  `, e.container.style.pointerEvents = "none";
9640
- const n = (m) => (e.wrapper = m, m.appendChild(e.container), l(), !0), o = (m) => {
9641
- e.itemLabels = Lf(m), l();
9640
+ const n = (p) => (e.wrapper = p, p.appendChild(e.container), l(), !0), o = (p) => {
9641
+ e.itemLabels = Lf(p), l();
9642
9642
  }, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
9643
9643
  d(), e.container.remove();
9644
9644
  }, l = () => {
9645
- var m;
9645
+ var p;
9646
9646
  if (!!e.wrapper) {
9647
9647
  if (!e.enabled || !e.fiveModeEnabled) {
9648
- (m = e.app) == null || m.$destroy(), e.app = void 0;
9648
+ (p = e.app) == null || p.$destroy(), e.app = void 0;
9649
9649
  return;
9650
9650
  }
9651
9651
  e.app ? e.app.$set({
@@ -9667,14 +9667,14 @@ const lA = (i, t) => {
9667
9667
  i.on("modeChange", u), i.once("dispose", a);
9668
9668
  }, d = () => {
9669
9669
  i.off("modeChange", u);
9670
- }, u = (m) => {
9670
+ }, u = (p) => {
9671
9671
  if (!!e.enabled) {
9672
- if (m !== je.Mode.Floorplan) {
9672
+ if (p !== Be.Mode.Floorplan) {
9673
9673
  e.fiveModeEnabled = !1, l();
9674
9674
  return;
9675
9675
  }
9676
9676
  i.once("initAnimationEnded", () => {
9677
- e.fiveModeEnabled = i.currentMode === je.Mode.Floorplan, l();
9677
+ e.fiveModeEnabled = i.currentMode === Be.Mode.Floorplan, l();
9678
9678
  });
9679
9679
  }
9680
9680
  };
@@ -9715,13 +9715,13 @@ const dA = (i, { videoElement: t }) => {
9715
9715
  rectPoints: [],
9716
9716
  enabled: !1,
9717
9717
  videoElement: t
9718
- }, n = bn(i), o = /* @__PURE__ */ new Map(), s = (v) => {
9719
- e.videoTexture && (e.videoTexture.image.muted = v);
9718
+ }, n = bn(i), o = /* @__PURE__ */ new Map(), s = (A) => {
9719
+ e.videoTexture && (e.videoTexture.image.muted = A);
9720
9720
  }, r = () => e.videoTexture ? e.videoTexture.image.muted : !0, a = () => {
9721
9721
  if (e.enabled || !e.videoTexture)
9722
9722
  return;
9723
9723
  e.enabled = !0, e.videoMeshes = c(), e.videoMeshes.forEach((w) => i.scene.add(w));
9724
- const v = () => {
9724
+ const A = () => {
9725
9725
  if (!e.videoTexture)
9726
9726
  return;
9727
9727
  const w = () => {
@@ -9739,30 +9739,30 @@ const dA = (i, { videoElement: t }) => {
9739
9739
  });
9740
9740
  };
9741
9741
  if (i.model.loaded)
9742
- v();
9742
+ A();
9743
9743
  else
9744
- return i.once("modelLoaded", () => v());
9744
+ return i.once("modelLoaded", () => A());
9745
9745
  }, l = () => {
9746
- !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((v) => {
9747
- v.geometry.dispose(), v.material.dispose(), i.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
9746
+ !e.enabled || (e.enabled = !1, e.videoMeshes.forEach((A) => {
9747
+ A.geometry.dispose(), A.material.dispose(), i.scene.remove(A), e.videoTexture && e.videoTexture.image.pause();
9748
9748
  }), e.videoMeshes = [], i.needsRender = !0);
9749
- }, c = () => e.rectPoints.map((v, w) => {
9749
+ }, c = () => e.rectPoints.map((A, w) => {
9750
9750
  const y = new E.BufferGeometry(), x = 128, L = [];
9751
- L.push(...v[0].toArray());
9751
+ L.push(...A[0].toArray());
9752
9752
  for (let P = 1; P < x; P++)
9753
9753
  L.push(
9754
- v[0].x + (v[1].x - v[0].x) * P / x,
9755
- v[0].y + (v[1].y - v[0].y) * P / x,
9756
- v[0].z + (v[1].z - v[0].z) * P / x
9754
+ A[0].x + (A[1].x - A[0].x) * P / x,
9755
+ A[0].y + (A[1].y - A[0].y) * P / x,
9756
+ A[0].z + (A[1].z - A[0].z) * P / x
9757
9757
  );
9758
- L.push(...v[1].toArray()), L.push(...v[2].toArray());
9758
+ L.push(...A[1].toArray()), L.push(...A[2].toArray());
9759
9759
  for (let P = 1; P < x; P++)
9760
9760
  L.push(
9761
- v[2].x + (v[3].x - v[2].x) * P / x,
9762
- v[2].y + (v[3].y - v[2].y) * P / x,
9763
- v[2].z + (v[3].z - v[2].z) * P / x
9761
+ A[2].x + (A[3].x - A[2].x) * P / x,
9762
+ A[2].y + (A[3].y - A[2].y) * P / x,
9763
+ A[2].z + (A[3].z - A[2].z) * P / x
9764
9764
  );
9765
- L.push(...v[3].toArray());
9765
+ L.push(...A[3].toArray());
9766
9766
  const C = [];
9767
9767
  C.push(0, 1);
9768
9768
  for (let P = 1; P < x; P++)
@@ -9782,7 +9782,7 @@ const dA = (i, { videoElement: t }) => {
9782
9782
  side: E.DoubleSide
9783
9783
  }), H = new E.Mesh(y, F);
9784
9784
  H.renderOrder = 1, H.name = `ModelTVVideoPlugin-${w}-${performance.now()}`;
9785
- const N = [v[1], v[2], v[3], v[0]], Y = n.create3DDomContainer(N);
9785
+ const N = [A[1], A[2], A[3], A[0]], Y = n.create3DDomContainer(N);
9786
9786
  if (Y != null && Y.container) {
9787
9787
  const P = document.createElement("div");
9788
9788
  P.classList.add("play-icon"), P.style.width = "100%", P.style.height = "100%", P.style.display = "flex", P.style.justifyContent = "center", P.style.alignItems = "center", P.style.pointerEvents = "none", Y.container.appendChild(P);
@@ -9792,10 +9792,10 @@ const dA = (i, { videoElement: t }) => {
9792
9792
  }, P.appendChild(I), o.set(H, Y);
9793
9793
  }
9794
9794
  return H;
9795
- }), d = (v) => {
9796
- const w = new E.TextureLoader().load(v);
9795
+ }), d = (A) => {
9796
+ const w = new E.TextureLoader().load(A);
9797
9797
  return w.minFilter = E.LinearFilter, w.magFilter = E.LinearFilter, w.format = E.RGBFormat, w;
9798
- }, u = (v, w) => new Promise((y, x) => {
9798
+ }, u = (A, w) => new Promise((y, x) => {
9799
9799
  const L = new XMLHttpRequest();
9800
9800
  L.onreadystatechange = () => {
9801
9801
  if (L.readyState == 4)
@@ -9803,50 +9803,50 @@ const dA = (i, { videoElement: t }) => {
9803
9803
  const C = window.URL || window.webkitURL;
9804
9804
  w = w || document.createElement("video"), w.crossOrigin = "anonymous", w.muted = !0, w.loop = !0, w.playsInline = !0, w.src = C.createObjectURL(L.response);
9805
9805
  const S = new E.VideoTexture(w);
9806
- S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource: v }));
9806
+ S.minFilter = E.LinearFilter, S.magFilter = E.LinearFilter, S.format = E.RGBFormat, y(Object.assign(S, { videoSource: A }));
9807
9807
  } else
9808
9808
  x(new Error("Video download Error: " + L.status));
9809
- }, L.onerror = (C) => x(C), L.open("GET", v), L.responseType = "blob", L.send();
9810
- }), h = (v, w) => J(void 0, null, function* () {
9811
- const { video_src: y, video_poster_src: x, points: L } = v;
9812
- e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
9813
- }), p = (v) => {
9809
+ }, L.onerror = (C) => x(C), L.open("GET", A), L.responseType = "blob", L.send();
9810
+ }), h = (A, w) => J(void 0, null, function* () {
9811
+ const { video_src: y, video_poster_src: x, points: L } = A;
9812
+ e.videoSource = y, e.rectPoints = Sf(L).map((C) => C.map(({ x: S, y: k, z: F }) => new E.Vector3(S, k, F))), e.imageTexture = d(x), w && (e.videoElement = w), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!A.enable, e.enabled && a();
9813
+ }), m = (A) => {
9814
9814
  if (!e.enabled)
9815
9815
  return;
9816
9816
  const w = e.videoMeshes;
9817
- if (!(!w || v.intersectObjects(w).length === 0))
9817
+ if (!(!w || A.intersectObjects(w).length === 0))
9818
9818
  return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
9819
- }, m = (v) => {
9820
- v === "Floorplan" ? n.hide() : n.show();
9819
+ }, p = (A) => {
9820
+ A === "Floorplan" ? n.hide() : n.show();
9821
9821
  }, g = () => {
9822
9822
  if (!e.enabled)
9823
9823
  return;
9824
- const v = i.camera.position;
9824
+ const A = i.camera.position;
9825
9825
  if (o.forEach((w, y) => {
9826
- const x = w.css3DObject.position.clone(), L = x.clone().sub(v).normalize(), C = new E.Raycaster(v, L), S = i.model.intersectRaycaster(C)[0], k = x.distanceTo(v), F = 0.01;
9826
+ const x = w.css3DObject.position.clone(), L = x.clone().sub(A).normalize(), C = new E.Raycaster(A, L), S = i.model.intersectRaycaster(C)[0], k = x.distanceTo(A), F = 0.01;
9827
9827
  S && S.distance + F < k ? w.hide() : w.show();
9828
9828
  }), !r()) {
9829
9829
  const w = e.rectPoints.find((y) => {
9830
9830
  const x = y[0].clone().add(y[1]).add(y[2]).add(y[3]).divideScalar(4);
9831
9831
  return y.map((L) => L.clone().add(x).divideScalar(2)).filter((L) => {
9832
- const C = L.distanceTo(v), S = new E.Raycaster(v, L.clone().sub(v).normalize()), k = i.model.intersectRaycaster(S)[0], F = 0.01;
9832
+ const C = L.distanceTo(A), S = new E.Raycaster(A, L.clone().sub(A).normalize()), k = i.model.intersectRaycaster(S)[0], F = 0.01;
9833
9833
  return !(k && k.distance + F < C);
9834
9834
  }).length >= 2;
9835
9835
  });
9836
9836
  (!w || w.length === 0) && s(!0);
9837
9837
  }
9838
- }, A = () => {
9839
- l(), e.videoTexture = void 0, i.off("modeChange", m), i.off("wantsTapGesture", p), i.off("panoArrived", g), i.off("renderFrame", () => {
9840
- e.videoMeshes.forEach((v) => {
9841
- v && (v.needsRender = !0);
9838
+ }, v = () => {
9839
+ l(), e.videoTexture = void 0, i.off("modeChange", p), i.off("wantsTapGesture", m), i.off("panoArrived", g), i.off("renderFrame", () => {
9840
+ e.videoMeshes.forEach((A) => {
9841
+ A && (A.needsRender = !0);
9842
9842
  });
9843
9843
  });
9844
9844
  };
9845
- return i.on("modeChange", m), i.on("wantsTapGesture", p), i.on("panoArrived", g), i.on("renderFrame", () => {
9846
- e.videoMeshes.forEach((v) => {
9847
- v && (v.needsRender = !0);
9845
+ return i.on("modeChange", p), i.on("wantsTapGesture", m), i.on("panoArrived", g), i.on("renderFrame", () => {
9846
+ e.videoMeshes.forEach((A) => {
9847
+ A && (A.needsRender = !0);
9848
9848
  });
9849
- }), { enable: a, disable: l, load: h, dispose: A, state: e, css3DRenderPlugin: n };
9849
+ }), { enable: a, disable: l, load: h, dispose: v, state: e, css3DRenderPlugin: n };
9850
9850
  };
9851
9851
  function zf(i) {
9852
9852
  ae(i, "svelte-gduhqw", `.item-label-item.svelte-gduhqw.svelte-gduhqw{position:absolute;z-index:0;transform:none;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;animation:svelte-gduhqw-fadeIn .3s ease-in}.item-label-item.fold.svelte-gduhqw>.item-label-item__text-wrap.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw{visibility:hidden}.item-label-item.fold.svelte-gduhqw>.item-label-item__bar.anchor.svelte-gduhqw:after{visibility:visible}.item-label-item__text-wrap.svelte-gduhqw.svelte-gduhqw{height:-moz-fit-content;height:fit-content;padding:0.75rem 1.25rem 0.75rem 0.75rem;position:absolute;width:-moz-max-content;width:max-content;max-width:29.5625rem;min-height:5.75rem;background-image:linear-gradient(269deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.60) 49%, rgba(31, 38, 46, 0.70) 100%);border:0.09375rem solid rgba(255, 255, 255, .65);border-radius:0.1875rem;color:white;transform:translate(-50%, 0);display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;overflow:hidden;pointer-events:all}.item-label-item__custom.svelte-gduhqw.svelte-gduhqw{padding:0;max-width:unset;min-height:unset;background-image:unset;border:0;border-radius:0}.icon-wrap.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:100%;display:flex;justify-content:center;align-content:center}.icon.svelte-gduhqw.svelte-gduhqw{width:4.25rem;height:4.25rem;background-repeat:no-repeat;background-size:contain;background-position:center}.item-label-text.svelte-gduhqw.svelte-gduhqw{margin-left:0.75rem;padding-left:0.75rem;min-height:4.25rem;height:auto;display:flex;flex-flow:column;justify-content:space-around;align-content:flex-start;border-left:solid rgba(255, 255, 255, .2) 0.0625rem;border-top:solid rgba(255, 255, 255, .2) 0;border-right:solid rgba(255, 255, 255, .2) 0;border-bottom:solid rgba(255, 255, 255, .2) 0;pointer-events:auto}.item-model.svelte-gduhqw.svelte-gduhqw{white-space:nowrap;font-size:1.375rem;font-weight:bold;line-height:1.875rem}.item-name.svelte-gduhqw.svelte-gduhqw{height:auto;word-wrap:break-word;word-break:break-all;font-size:1.25rem;line-height:1.75rem}.item-label-item__bar.svelte-gduhqw.svelte-gduhqw{position:absolute;bottom:0;width:0.1875rem;background-image:linear-gradient(to bottom, white, rgba(255, 255, 255, 0));box-shadow:0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.20);pointer-events:none}.item-label-item__bar.anchor.svelte-gduhqw.svelte-gduhqw:after{content:'';position:absolute;bottom:0;width:1.5rem;height:1.5rem;background-image:url("//vrlab-public.ljcdn.com/common/file/web/67e7a198-28c9-47dc-879b-507bd3ae600c.png ");background-position:center;background-size:contain;transform:translate(-0.65625rem, 50%)}@keyframes svelte-gduhqw-fadeIn{from{opacity:0
@@ -9863,7 +9863,7 @@ function Tf(i) {
9863
9863
  d && d.m(u, h), B(u, t, h), B(u, e, h), Q(e, n), Q(n, s), Q(e, r), Q(e, a), Q(a, c);
9864
9864
  },
9865
9865
  p(u, h) {
9866
- u[0].icon ? d ? d.p(u, h) : (d = Ss(u), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), h & 1 && o !== (o = (u[0].code || u[0].id) + "") && Me(s, o), h & 1 && l !== (l = u[0].name + "") && Me(c, l);
9866
+ u[0].icon ? d ? d.p(u, h) : (d = Ss(u), d.c(), d.m(t.parentNode, t)) : d && (d.d(1), d = null), h & 1 && o !== (o = (u[0].code || u[0].id) + "") && Te(s, o), h & 1 && l !== (l = u[0].name + "") && Te(c, l);
9867
9867
  },
9868
9868
  d(u) {
9869
9869
  d && d.d(u), u && T(t), u && T(e);
@@ -9904,28 +9904,28 @@ function Ss(i) {
9904
9904
  }
9905
9905
  function Bf(i) {
9906
9906
  let t, e, n, o, s, r, a, l, c, d;
9907
- function u(m, g) {
9908
- return g & 1 && (n = null), n == null && (n = !!Boolean(typeof m[0].render == "function")), n ? Mf : Tf;
9907
+ function u(p, g) {
9908
+ return g & 1 && (n = null), n == null && (n = !!Boolean(typeof p[0].render == "function")), n ? Mf : Tf;
9909
9909
  }
9910
- let h = u(i, -1), p = h(i);
9910
+ let h = u(i, -1), m = h(i);
9911
9911
  return {
9912
9912
  c() {
9913
- t = j("div"), e = j("div"), p.c(), s = V(), r = j("div"), b(e, "class", o = Le(Ze("item-label-item__text-wrap", {
9913
+ t = j("div"), e = j("div"), m.c(), s = V(), r = j("div"), b(e, "class", o = je(Ze("item-label-item__text-wrap", {
9914
9914
  "item-label-item__custom": Boolean(typeof i[0].render == "function")
9915
- })) + " svelte-gduhqw"), R(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a = Le(Ze("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), R(r, "height", `${i[0].strokeLength}px`), b(t, "class", l = Le(Ze("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
9915
+ })) + " svelte-gduhqw"), R(e, "bottom", `${i[0].strokeLength}px`), b(r, "class", a = je(Ze("item-label-item__bar", { anchor: i[1] })) + " svelte-gduhqw"), R(r, "height", `${i[0].strokeLength}px`), b(t, "class", l = je(Ze("item-label-item", { fold: i[0].isFold })) + " svelte-gduhqw"), R(t, "z-index", i[0].zIndex), R(t, "transform", i[0].transform);
9916
9916
  },
9917
- m(m, g) {
9918
- B(m, t, g), Q(t, e), p.m(e, null), Q(t, s), Q(t, r), c || (d = Ee(e, "click", i[4]), c = !0);
9917
+ m(p, g) {
9918
+ B(p, t, g), Q(t, e), m.m(e, null), Q(t, s), Q(t, r), c || (d = Ee(e, "click", i[4]), c = !0);
9919
9919
  },
9920
- p(m, [g]) {
9921
- h === (h = u(m, g)) && p ? p.p(m, g) : (p.d(1), p = h(m), p && (p.c(), p.m(e, null))), g & 1 && o !== (o = Le(Ze("item-label-item__text-wrap", {
9922
- "item-label-item__custom": Boolean(typeof m[0].render == "function")
9923
- })) + " svelte-gduhqw") && b(e, "class", o), g & 1 && R(e, "bottom", `${m[0].strokeLength}px`), g & 2 && a !== (a = Le(Ze("item-label-item__bar", { anchor: m[1] })) + " svelte-gduhqw") && b(r, "class", a), g & 1 && R(r, "height", `${m[0].strokeLength}px`), g & 1 && l !== (l = Le(Ze("item-label-item", { fold: m[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), g & 1 && R(t, "z-index", m[0].zIndex), g & 1 && R(t, "transform", m[0].transform);
9920
+ p(p, [g]) {
9921
+ h === (h = u(p, g)) && m ? m.p(p, g) : (m.d(1), m = h(p), m && (m.c(), m.m(e, null))), g & 1 && o !== (o = je(Ze("item-label-item__text-wrap", {
9922
+ "item-label-item__custom": Boolean(typeof p[0].render == "function")
9923
+ })) + " svelte-gduhqw") && b(e, "class", o), g & 1 && R(e, "bottom", `${p[0].strokeLength}px`), g & 2 && a !== (a = je(Ze("item-label-item__bar", { anchor: p[1] })) + " svelte-gduhqw") && b(r, "class", a), g & 1 && R(r, "height", `${p[0].strokeLength}px`), g & 1 && l !== (l = je(Ze("item-label-item", { fold: p[0].isFold })) + " svelte-gduhqw") && b(t, "class", l), g & 1 && R(t, "z-index", p[0].zIndex), g & 1 && R(t, "transform", p[0].transform);
9924
9924
  },
9925
9925
  i: te,
9926
9926
  o: te,
9927
- d(m) {
9928
- m && T(t), p.d(), c = !1, d();
9927
+ d(p) {
9928
+ p && T(t), m.d(), c = !1, d();
9929
9929
  }
9930
9930
  };
9931
9931
  }
@@ -9936,7 +9936,7 @@ function jf(i, t, e) {
9936
9936
  }
9937
9937
  let l;
9938
9938
  function c(u) {
9939
- Te[u ? "unshift" : "push"](() => {
9939
+ ze[u ? "unshift" : "push"](() => {
9940
9940
  l = u, e(3, l);
9941
9941
  });
9942
9942
  }
@@ -10114,10 +10114,10 @@ function Gf(i) {
10114
10114
  let Nf = 11;
10115
10115
  function Wf(i, t, e) {
10116
10116
  const { Raycaster: n, Vector3: o } = E;
10117
- let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, u = null, h = null, p = (s == null ? void 0 : s.currentMode) === je.Mode.Panorama, m, g, A = [], v = !0;
10117
+ let { five: s } = t, { modelOcclusionEnable: r } = t, { itemLabels: a } = t, { hooks: l } = t, { displayStrategyType: c } = t, { maxVisibleDistance: d } = t, u = null, h = null, m = (s == null ? void 0 : s.currentMode) === Be.Mode.Panorama, p, g, v = [], A = !0;
10118
10118
  const w = (z, O) => {
10119
10119
  const W = z.camera.position.clone(), Z = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), X = Z.distanceTo(W);
10120
- return d !== void 0 && z.state.mode === je.Mode.Panorama && X > d ? !1 : zs(z, Z.clone().sub(W).normalize(), W, X);
10120
+ return d !== void 0 && z.state.mode === Be.Mode.Panorama && X > d ? !1 : zs(z, Z.clone().sub(W).normalize(), W, X);
10121
10121
  }, y = (z) => {
10122
10122
  const { camera: O, model: W } = s, { x: Z, y: X, z: U } = z.clone().project(O), de = (Z + 1) / 2, ue = (2 - (X + 1)) / 2, ke = Math.abs(U) < 1 && [de, ue].every((He) => He < 1 && He >= 0);
10123
10123
  return Boolean(ke);
@@ -10130,10 +10130,10 @@ function Wf(i, t, e) {
10130
10130
  return he(G({}, X), { visible: !1 });
10131
10131
  const U = x(z, X);
10132
10132
  X.name.length * Nf;
10133
- const de = Hf(X.modelPosition[1], c), ue = z.currentMode === je.Mode.Panorama ? y(new o(X.position[0], X.position[1], X.position[2])) : !0, me = r ? w(z, X) : !1, we = ue && !me;
10133
+ const de = Hf(X.modelPosition[1], c), ue = z.currentMode === Be.Mode.Panorama ? y(new o(X.position[0], X.position[1], X.position[2])) : !0, me = r ? w(z, X) : !1, we = ue && !me;
10134
10134
  if (!we)
10135
10135
  return he(G({}, X), { visible: we });
10136
- A.push(U);
10136
+ v.push(U);
10137
10137
  const ke = Of(U);
10138
10138
  return he(G({}, X), {
10139
10139
  visible: we,
@@ -10149,12 +10149,12 @@ function Wf(i, t, e) {
10149
10149
  return U !== void 0 ? he(G({}, X), { zIndex: U * 10 }) : X;
10150
10150
  });
10151
10151
  }, C = () => {
10152
- A = [], e(1, h = L(s, h));
10152
+ v = [], e(1, h = L(s, h));
10153
10153
  }, S = () => {
10154
- e(5, v = !1), k();
10154
+ e(5, A = !1), k();
10155
10155
  }, k = Ha(
10156
10156
  () => {
10157
- e(5, v = !0), C();
10157
+ e(5, A = !0), C();
10158
10158
  },
10159
10159
  300
10160
10160
  ), F = () => {
@@ -10167,7 +10167,7 @@ function Wf(i, t, e) {
10167
10167
  let W = [];
10168
10168
  for (let X = 0; X < O.length; X++) {
10169
10169
  const { position: U, panoIndex: de } = O[X], ue = z.distanceTo(U);
10170
- (d === void 0 || ue <= d || s.state.mode !== je.Mode.Panorama) && W.push({ panoIndex: de, obVector: U, distance: ue });
10170
+ (d === void 0 || ue <= d || s.state.mode !== Be.Mode.Panorama) && W.push({ panoIndex: de, obVector: U, distance: ue });
10171
10171
  }
10172
10172
  W = W.sort((X, U) => X.distance - U.distance);
10173
10173
  let Z;
@@ -10180,7 +10180,7 @@ function Wf(i, t, e) {
10180
10180
  }
10181
10181
  return typeof Z == "number" ? O[Z] : void 0;
10182
10182
  }, P = (z) => {
10183
- if (s.state.mode === je.Mode.Panorama)
10183
+ if (s.state.mode === Be.Mode.Panorama)
10184
10184
  return;
10185
10185
  const O = s.work.observers, W = new o().fromArray(z.position), Z = Y(W, O);
10186
10186
  if (Z && (z.observerIndex = Z.panoIndex), typeof z.observerIndex == "number") {
@@ -10189,7 +10189,7 @@ function Wf(i, t, e) {
10189
10189
  latitude: Math.acos(U.y / U.length()) - Math.PI / 2
10190
10190
  };
10191
10191
  s.setState(he(G({}, de), {
10192
- mode: je.Mode.Panorama,
10192
+ mode: Be.Mode.Panorama,
10193
10193
  panoIndex: z.observerIndex
10194
10194
  })), s.once("initAnimationEnded", () => {
10195
10195
  e(1, h = h.map((ue) => he(G({}, ue), {
@@ -10208,17 +10208,17 @@ function Wf(i, t, e) {
10208
10208
  s.off("cameraUpdate", S), window.removeEventListener("resize", F, !1);
10209
10209
  });
10210
10210
  function I() {
10211
- m = this.clientWidth, g = this.clientHeight, e(3, m), e(4, g);
10211
+ p = this.clientWidth, g = this.clientHeight, e(3, p), e(4, g);
10212
10212
  }
10213
10213
  return i.$$set = (z) => {
10214
10214
  "five" in z && e(7, s = z.five), "modelOcclusionEnable" in z && e(8, r = z.modelOcclusionEnable), "itemLabels" in z && e(9, a = z.itemLabels), "hooks" in z && e(0, l = z.hooks), "displayStrategyType" in z && e(10, c = z.displayStrategyType), "maxVisibleDistance" in z && e(11, d = z.maxVisibleDistance);
10215
10215
  }, [
10216
10216
  l,
10217
10217
  h,
10218
- p,
10219
10218
  m,
10219
+ p,
10220
10220
  g,
10221
- v,
10221
+ A,
10222
10222
  P,
10223
10223
  s,
10224
10224
  r,
@@ -10256,7 +10256,7 @@ function Yf(i) {
10256
10256
  }));
10257
10257
  }
10258
10258
  const Uf = void 0, hA = (i, t) => {
10259
- var h, p, m, g;
10259
+ var h, m, p, g;
10260
10260
  const e = {
10261
10261
  container: document.createElement("div"),
10262
10262
  data: null,
@@ -10267,8 +10267,8 @@ const Uf = void 0, hA = (i, t) => {
10267
10267
  app: void 0,
10268
10268
  hooks: new nt(),
10269
10269
  modelOcclusionEnable: (h = t == null ? void 0 : t.modelOcclusionEnable) != null ? h : !0,
10270
- onlyVisibleInPanorama: (p = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? p : !0,
10271
- displayStrategyType: (m = t == null ? void 0 : t.displayStrategyType) != null ? m : Ut.SMALL,
10270
+ onlyVisibleInPanorama: (m = t == null ? void 0 : t.onlyVisibleInPanorama) != null ? m : !0,
10271
+ displayStrategyType: (p = t == null ? void 0 : t.displayStrategyType) != null ? p : Ut.SMALL,
10272
10272
  maxVisibleDistance: (g = t == null ? void 0 : t.maxVisibleDistance) != null ? g : Uf
10273
10273
  };
10274
10274
  e.container.setAttribute("class", "item-label-plugin-container"), e.container.style.cssText = `
@@ -10279,15 +10279,15 @@ const Uf = void 0, hA = (i, t) => {
10279
10279
  height: 100%;
10280
10280
  z-index: 5;
10281
10281
  `, e.container.style.pointerEvents = "none";
10282
- const n = (A) => (e.wrapper = A, A.appendChild(e.container), l(), !0), o = (A) => {
10283
- e.itemLabels = Yf(A), l();
10282
+ const n = (v) => (e.wrapper = v, v.appendChild(e.container), l(), !0), o = (v) => {
10283
+ e.itemLabels = Yf(v), l();
10284
10284
  }, s = () => (e.enabled || (e.enabled = !0, l()), !0), r = () => (e.enabled && (e.enabled = !1, l()), !0), a = () => {
10285
10285
  d(), e.container.remove();
10286
10286
  }, l = () => {
10287
- var A;
10287
+ var v;
10288
10288
  if (!!e.wrapper) {
10289
10289
  if (!e.enabled || !e.fiveModeEnabled) {
10290
- (A = e.app) == null || A.$destroy(), e.app = void 0;
10290
+ (v = e.app) == null || v.$destroy(), e.app = void 0;
10291
10291
  return;
10292
10292
  }
10293
10293
  e.app ? e.app.$set({
@@ -10311,8 +10311,8 @@ const Uf = void 0, hA = (i, t) => {
10311
10311
  i.on("modeChange", u), i.once("dispose", a);
10312
10312
  }, d = () => {
10313
10313
  i.off("modeChange", u);
10314
- }, u = (A) => {
10315
- if (A !== je.Mode.Panorama) {
10314
+ }, u = (v) => {
10315
+ if (v !== Be.Mode.Panorama) {
10316
10316
  e.fiveModeEnabled = !1, r();
10317
10317
  return;
10318
10318
  }
@@ -10364,7 +10364,7 @@ class Jf extends di {
10364
10364
  this.state = G(G(G({}, this.state), e), n), this.stateChangedCallback(o, n);
10365
10365
  }
10366
10366
  get visible() {
10367
- return this.five.state.mode === je.Mode.Panorama;
10367
+ return this.five.state.mode === Be.Mode.Panorama;
10368
10368
  }
10369
10369
  appendTo(e) {
10370
10370
  !this.enabled || (this.container = e, this.render());
@@ -10380,13 +10380,13 @@ function Zf(i) {
10380
10380
  let t, e, n, o, s, r, a, l;
10381
10381
  return {
10382
10382
  c() {
10383
- t = j("div"), e = j("div"), n = j("span"), n.textContent = `${i[8]}`, o = V(), s = j("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r = Le(Ze("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), b(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), b(e, "data-camera-toward", i[7]), b(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), b(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
10383
+ t = j("div"), e = j("div"), n = j("span"), n.textContent = `${i[8]}`, o = V(), s = j("i"), b(n, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), b(s, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), b(e, "class", r = je(Ze("plugin-DoorLabelPlugin-cnt", i[0].toward)) + " svelte-wpy7pz"), b(e, "style", `transform: ${i[6] || "initial"};pointer-events: ${i[5] ? "auto" : "none"};opacity: ${i[5] ? 1 : 0}`), b(e, "data-camera-toward", i[7]), b(t, "style", `left: ${i[3] || 0}%;top: ${i[4] || 0}%;opacity: ${i[5] ? 1 : 0}`), b(t, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
10384
10384
  },
10385
10385
  m(c, d) {
10386
10386
  B(c, t, d), Q(t, e), Q(e, n), Q(e, o), Q(e, s), i[10](t), a || (l = Ee(e, "click", i[9]), a = !0);
10387
10387
  },
10388
10388
  p(c, [d]) {
10389
- d & 1 && r !== (r = Le(Ze("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
10389
+ d & 1 && r !== (r = je(Ze("plugin-DoorLabelPlugin-cnt", c[0].toward)) + " svelte-wpy7pz") && b(e, "class", r);
10390
10390
  },
10391
10391
  i: te,
10392
10392
  o: te,
@@ -10396,25 +10396,25 @@ function Zf(i) {
10396
10396
  };
10397
10397
  }
10398
10398
  function _f(i, t, e) {
10399
- let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: u, name: h } = n, p = 0;
10400
- const m = () => {
10399
+ let { props: n } = t, { onClick: o } = t, s, { left: r, top: a, inSight: l, transform: c, panoIndex: d, cameraToward: u, name: h } = n, m = 0;
10400
+ const p = () => {
10401
10401
  if (!r || !a || !l || !s)
10402
10402
  return;
10403
- const v = s.current.clientWidth / window.innerWidth * 100, w = s.current.clientHeight / window.innerHeight * 100;
10404
- if (r <= v / 2 || r >= 100 - v / 2 || a <= w / 2 || a >= 100 - w / 2)
10403
+ const A = s.current.clientWidth / window.innerWidth * 100, w = s.current.clientHeight / window.innerHeight * 100;
10404
+ if (r <= A / 2 || r >= 100 - A / 2 || a <= w / 2 || a >= 100 - w / 2)
10405
10405
  return;
10406
- d !== p && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), p = d);
10407
- }, g = (v) => {
10406
+ d !== m && (console.log("panoDoorLabelPlugin", d, "\u89E6\u53D1\u57CB\u70B9"), m = d);
10407
+ }, g = (A) => {
10408
10408
  o && o();
10409
10409
  };
10410
- function A(v) {
10411
- Te[v ? "unshift" : "push"](() => {
10412
- s = v, e(2, s);
10410
+ function v(A) {
10411
+ ze[A ? "unshift" : "push"](() => {
10412
+ s = A, e(2, s);
10413
10413
  });
10414
10414
  }
10415
- return i.$$set = (v) => {
10416
- "props" in v && e(0, n = v.props), "onClick" in v && e(1, o = v.onClick);
10417
- }, m(), [
10415
+ return i.$$set = (A) => {
10416
+ "props" in A && e(0, n = A.props), "onClick" in A && e(1, o = A.onClick);
10417
+ }, p(), [
10418
10418
  n,
10419
10419
  o,
10420
10420
  s,
@@ -10425,7 +10425,7 @@ function _f(i, t, e) {
10425
10425
  u,
10426
10426
  h,
10427
10427
  g,
10428
- A
10428
+ v
10429
10429
  ];
10430
10430
  }
10431
10431
  class qf extends oe {
@@ -10503,10 +10503,10 @@ class im extends Jf {
10503
10503
  const d = l.position.clone(), u = d.distanceTo(s);
10504
10504
  if (u < this.MinVisibledistance || u > this.MaxVisibledistance)
10505
10505
  return;
10506
- const h = new Qt(), p = d.clone().sub(s).normalize();
10507
- h.set(s, p);
10508
- const [m] = this.five.model.intersectRaycaster(h);
10509
- m && m.distance + 0.1 < u || a.push(c);
10506
+ const h = new Qt(), m = d.clone().sub(s).normalize();
10507
+ h.set(s, m);
10508
+ const [p] = this.five.model.intersectRaycaster(h);
10509
+ p && p.distance + 0.1 < u || a.push(c);
10510
10510
  }), this.visibleLabelMap.set(e, a), a;
10511
10511
  }
10512
10512
  })();
@@ -10515,7 +10515,7 @@ class im extends Jf {
10515
10515
  }), this.fixDoorPosition();
10516
10516
  });
10517
10517
  f(this, "fixDoorPosition", () => {
10518
- var d, u, h, p, m, g, A, v, w, y, x, L;
10518
+ var d, u, h, m, p, g, v, A, w, y, x, L;
10519
10519
  const { panoIndex: e, camera: n } = this.five;
10520
10520
  if (e === null)
10521
10521
  return;
@@ -10539,11 +10539,11 @@ class im extends Jf {
10539
10539
  left: s * F / 100,
10540
10540
  top: r * H / 100,
10541
10541
  width: (h = (u = (d = I.children) == null ? void 0 : d[0]) == null ? void 0 : u.clientWidth) != null ? h : 0,
10542
- height: (g = (m = (p = I.children) == null ? void 0 : p[0]) == null ? void 0 : m.clientHeight) != null ? g : 0
10542
+ height: (g = (p = (m = I.children) == null ? void 0 : m[0]) == null ? void 0 : p.clientHeight) != null ? g : 0
10543
10543
  }, W = {
10544
10544
  left: s * Y / 100,
10545
10545
  top: r * P / 100,
10546
- width: (w = (v = (A = z.children) == null ? void 0 : A[0]) == null ? void 0 : v.clientWidth) != null ? w : 0,
10546
+ width: (w = (A = (v = z.children) == null ? void 0 : v[0]) == null ? void 0 : A.clientWidth) != null ? w : 0,
10547
10547
  height: (L = (x = (y = z.children) == null ? void 0 : y[0]) == null ? void 0 : x.clientHeight) != null ? L : 0
10548
10548
  };
10549
10549
  Kf(O, W) && (C++, c[k].transform = `translate(-50%, ${(C - 1) * 100 - 50}%)`, c[N].transform = `translate(-50%, ${C * 100 - 50}%)`);
@@ -10566,8 +10566,8 @@ class im extends Jf {
10566
10566
  if (a > 0) {
10567
10567
  const d = new _(0, 0, -1), u = r.clone(), h = new Xr();
10568
10568
  h.setFromUnitVectors(d, u);
10569
- const p = new yo();
10570
- p.setFromQuaternion(h, "YXZ"), l.longitude = p.y;
10569
+ const m = new yo();
10570
+ m.setFromQuaternion(h, "YXZ"), l.longitude = m.y;
10571
10571
  }
10572
10572
  this.five.emit("wantsToMoveToPano", s, {}, !0) || this.five.moveToPano(s, { longitude: l.longitude });
10573
10573
  }
@@ -10581,20 +10581,20 @@ class im extends Jf {
10581
10581
  const a = (c = this.floorplanServerData.computed_data.doors) == null ? void 0 : c.filter((d) => !!(d && d.name === r.name)), l = this.five.work.observers.filter((d, u) => !!r.observer_indexs.find((h) => h === u));
10582
10582
  a && a.forEach((d) => {
10583
10583
  const u = d.position;
10584
- let h = 1 / 0, p;
10584
+ let h = 1 / 0, m;
10585
10585
  l.forEach((g) => {
10586
- const A = g.standingPosition, v = {
10587
- x: A.x,
10588
- y: A.y,
10589
- z: A.z
10590
- }, w = em(u, v);
10591
- w < h && (h = w, p = v);
10592
- }), p && (u.y = p.y + 0.01);
10593
- const m = new _(u.x, u.y, u.z);
10594
- m.add(new _(-0.2, 1.8, 0).applyEuler(new yo(0, d.rad, 0))), this.doorLabels.push({
10586
+ const v = g.standingPosition, A = {
10587
+ x: v.x,
10588
+ y: v.y,
10589
+ z: v.z
10590
+ }, w = em(u, A);
10591
+ w < h && (h = w, m = A);
10592
+ }), m && (u.y = m.y + 0.01);
10593
+ const p = new _(u.x, u.y, u.z);
10594
+ p.add(new _(-0.2, 1.8, 0).applyEuler(new yo(0, d.rad, 0))), this.doorLabels.push({
10595
10595
  roomName: r.name,
10596
10596
  name: d.name,
10597
- position: m,
10597
+ position: p,
10598
10598
  toward: tm(d.rad)
10599
10599
  });
10600
10600
  });
@@ -10657,20 +10657,20 @@ function lm(i, t) {
10657
10657
  if (o) {
10658
10658
  const c = Math.ceil(s.getLength() / n * 1.5), d = s.getPoints(c), u = [];
10659
10659
  let h = 0;
10660
- const p = i;
10661
- return p.forEach((m, g) => {
10662
- let A = 0, v = 99999999;
10660
+ const m = i;
10661
+ return m.forEach((p, g) => {
10662
+ let v = 0, A = 99999999;
10663
10663
  d.forEach((C, S) => {
10664
- const k = C.distanceTo(m);
10665
- k < v && (A = S, v = k);
10664
+ const k = C.distanceTo(p);
10665
+ k < A && (v = S, A = k);
10666
10666
  });
10667
- const w = d[A + 1], y = w == null ? void 0 : w.distanceTo(m), x = d[A - 1], L = x == null ? void 0 : x.distanceTo(m);
10668
- if (A > h && A - h > 1) {
10669
- let C = A;
10670
- x !== void 0 && L > 0.8 && (C = A + 1), x !== void 0 && L > 0.2 && L < 0.3 ? C = A : v > 0.2 && v < 0.3 && (C = A + 1);
10667
+ const w = d[v + 1], y = w == null ? void 0 : w.distanceTo(p), x = d[v - 1], L = x == null ? void 0 : x.distanceTo(p);
10668
+ if (v > h && v - h > 1) {
10669
+ let C = v;
10670
+ x !== void 0 && L > 0.8 && (C = v + 1), x !== void 0 && L > 0.2 && L < 0.3 ? C = v : A > 0.2 && A < 0.3 && (C = v + 1);
10671
10671
  let S = h;
10672
- if (w !== void 0 && y > 0.2 && y < 0.3 ? S = h + 1 : v > 0.2 && v < 0.3 && (S = h), d[S] && d[S + 1]) {
10673
- const H = p[g - 1];
10672
+ if (w !== void 0 && y > 0.2 && y < 0.3 ? S = h + 1 : A > 0.2 && A < 0.3 && (S = h), d[S] && d[S + 1]) {
10673
+ const H = m[g - 1];
10674
10674
  if (H)
10675
10675
  if (H.equals(d[S]))
10676
10676
  S += 1;
@@ -10682,7 +10682,7 @@ function lm(i, t) {
10682
10682
  if (C < S || C - S <= 1)
10683
10683
  return;
10684
10684
  const k = d.slice(S, C), F = Qs(k, e, n);
10685
- u.push(F), h = A;
10685
+ u.push(F), h = v;
10686
10686
  }
10687
10687
  }), u;
10688
10688
  } else {
@@ -10691,20 +10691,20 @@ function lm(i, t) {
10691
10691
  }
10692
10692
  }
10693
10693
  function Qs(i, t, e) {
10694
- const n = t / 2, o = e / t, s = i.length, r = zl(i.map((v) => [v.x, v.z])), l = (i.length - 1) * om * sm, c = 2 * s, d = c * rm, u = c * am, h = new Uint32Array(l), p = new Float32Array(d), m = new Float32Array(u);
10695
- i.forEach((v, w) => {
10694
+ const n = t / 2, o = e / t, s = i.length, r = zl(i.map((A) => [A.x, A.z])), l = (i.length - 1) * om * sm, c = 2 * s, d = c * rm, u = c * am, h = new Uint32Array(l), m = new Float32Array(d), p = new Float32Array(u);
10695
+ i.forEach((A, w) => {
10696
10696
  });
10697
10697
  let g = 0;
10698
- for (let v = 0; v < i.length; v++) {
10699
- const [w, y] = r[v][0], x = i[v], { x: L, y: C, z: S } = x, k = new _(L + w * n, C + 0.05, S + y * n);
10700
- p[v * 6 + 0] = k.x, p[v * 6 + 1] = k.y, p[v * 6 + 2] = k.z;
10698
+ for (let A = 0; A < i.length; A++) {
10699
+ const [w, y] = r[A][0], x = i[A], { x: L, y: C, z: S } = x, k = new _(L + w * n, C + 0.05, S + y * n);
10700
+ m[A * 6 + 0] = k.x, m[A * 6 + 1] = k.y, m[A * 6 + 2] = k.z;
10701
10701
  const F = new _(L - w * n, C + 0.05, S - y * n);
10702
- p[v * 6 + 3] = F.x, p[v * 6 + 4] = F.y, p[v * 6 + 5] = F.z, g += v > 0 ? i[v - 1].clone().sub(i[v]).length() : 0;
10702
+ m[A * 6 + 3] = F.x, m[A * 6 + 4] = F.y, m[A * 6 + 5] = F.z, g += A > 0 ? i[A - 1].clone().sub(i[A]).length() : 0;
10703
10703
  const H = g / t / o;
10704
- m[v * 4 + 0] = 0, m[v * 4 + 1] = H, m[v * 4 + 2] = 1, m[v * 4 + 3] = H, v !== i.length - 1 && (h[v * 6 + 0] = v * 2 + 0, h[v * 6 + 1] = v * 2 + 2, h[v * 6 + 2] = v * 2 + 1, h[v * 6 + 3] = v * 2 + 2, h[v * 6 + 4] = v * 2 + 3, h[v * 6 + 5] = v * 2 + 1);
10704
+ p[A * 4 + 0] = 0, p[A * 4 + 1] = H, p[A * 4 + 2] = 1, p[A * 4 + 3] = H, A !== i.length - 1 && (h[A * 6 + 0] = A * 2 + 0, h[A * 6 + 1] = A * 2 + 2, h[A * 6 + 2] = A * 2 + 1, h[A * 6 + 3] = A * 2 + 2, h[A * 6 + 4] = A * 2 + 3, h[A * 6 + 5] = A * 2 + 1);
10705
10705
  }
10706
- const A = new E.BufferGeometry();
10707
- return A.setAttribute("position", new E.BufferAttribute(p, 3)), A.setAttribute("uv", new E.BufferAttribute(m, 2)), A.setIndex(new E.BufferAttribute(h, 1)), A;
10706
+ const v = new E.BufferGeometry();
10707
+ return v.setAttribute("position", new E.BufferAttribute(m, 3)), v.setAttribute("uv", new E.BufferAttribute(p, 2)), v.setIndex(new E.BufferAttribute(h, 1)), v;
10708
10708
  }
10709
10709
  function cm(i) {
10710
10710
  const t = new E.TextureLoader().load(i.textureUrl);
@@ -10913,30 +10913,30 @@ class Xa extends Ot {
10913
10913
  }
10914
10914
  load(e, n, o) {
10915
10915
  return J(this, null, function* () {
10916
- var d, u, h, p, m;
10916
+ var d, u, h, m, p;
10917
10917
  if (this.state.disposed)
10918
10918
  return Os();
10919
- this.privateState.fiveOriginGetProgress || (u = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && u.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (p = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : p.getProgress), this.clear();
10919
+ this.privateState.fiveOriginGetProgress || (u = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && u.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (m = (h = this.five.controller) == null ? void 0 : h.cameraMotion) == null ? void 0 : m.getProgress), this.clear();
10920
10920
  const s = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
10921
10921
  this.data = r, this.hooks.emit("dataChange", r, s);
10922
10922
  let a = [], l;
10923
10923
  const c = this.data.keyframes.filter((g) => g.data.panoIndex !== void 0);
10924
- c.filter((g, A) => {
10925
- var v;
10926
- return g.data.panoIndex !== ((v = c[A - 1]) == null ? void 0 : v.data.panoIndex);
10924
+ c.filter((g, v) => {
10925
+ var A;
10926
+ return g.data.panoIndex !== ((A = c[v - 1]) == null ? void 0 : A.data.panoIndex);
10927
10927
  }).map((g) => g.data.panoIndex).forEach((g) => {
10928
- var v, w;
10929
- const A = (v = this.five.work.observers[g]) == null ? void 0 : v.floorIndex;
10930
- if (A !== void 0)
10931
- if (l === A) {
10928
+ var A, w;
10929
+ const v = (A = this.five.work.observers[g]) == null ? void 0 : A.floorIndex;
10930
+ if (v !== void 0)
10931
+ if (l === v) {
10932
10932
  const y = a.length - 1;
10933
10933
  a[y] = [...(w = a[y]) != null ? w : [], g];
10934
10934
  } else {
10935
- l = A;
10935
+ l = v;
10936
10936
  const y = a.length;
10937
10937
  a[y] = [g];
10938
10938
  }
10939
- }), this.GuideLine || (this.GuideLine = um(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: a.map((g) => ({ panoIndexList: g })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.log(`${mi} loaded`, r), this.hooks.emit("dataLoaded", r);
10939
+ }), this.GuideLine || (this.GuideLine = um(this.five, this.config)), (p = this.GuideLine) == null || p.load({ routes: a.map((g) => ({ panoIndexList: g })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), n && this.setState(n, { userAction: o }), console.log(`${mi} loaded`, r), this.hooks.emit("dataLoaded", r);
10940
10940
  });
10941
10941
  }
10942
10942
  play(e) {
@@ -11001,14 +11001,14 @@ class Xa extends Ot {
11001
11001
  const { moveEffect: r, moveToFirstPanoEffect: a, moveToFirstPanoDuration: l } = o;
11002
11002
  return this.privateState.moveToFirstPanoEffect = a, this.privateState.moveToFirstPanoDuration = l, o.panoIndexList.forEach((c, d) => {
11003
11003
  const u = (() => {
11004
- var A, v, w, y;
11004
+ var v, A, w, y;
11005
11005
  const h = o.panoIndexList.slice(d).find((x) => x !== c);
11006
11006
  if (h === void 0)
11007
11007
  return;
11008
- const p = (A = n[c]) == null ? void 0 : A.position, m = (v = n[h]) == null ? void 0 : v.position;
11009
- if (!m || !p || ((w = n[c]) == null ? void 0 : w.floorIndex) !== ((y = n[h]) == null ? void 0 : y.floorIndex))
11008
+ const m = (v = n[c]) == null ? void 0 : v.position, p = (A = n[h]) == null ? void 0 : A.position;
11009
+ if (!p || !m || ((w = n[c]) == null ? void 0 : w.floorIndex) !== ((y = n[h]) == null ? void 0 : y.floorIndex))
11010
11010
  return;
11011
- const g = new E.Vector3().subVectors(m, p);
11011
+ const g = new E.Vector3().subVectors(p, m);
11012
11012
  return pm(g);
11013
11013
  })();
11014
11014
  o.moveType === void 0 || o.moveType === "justMove" ? s.push({
@@ -11039,46 +11039,46 @@ class Xa extends Ot {
11039
11039
  }
11040
11040
  handlePlay(e) {
11041
11041
  return J(this, null, function* () {
11042
- var p;
11042
+ var m;
11043
11043
  const { data: n, state: o, privateState: s, hooks: r } = this;
11044
11044
  if (s.playing || !(n != null && n.keyframes) || (n == null ? void 0 : n.keyframes.length) === 0)
11045
11045
  return;
11046
11046
  const a = Fe();
11047
11047
  s.playId = a, s.playing = !0, s.broke = !1;
11048
11048
  const l = n.keyframes, c = this.getPauseData();
11049
- (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (p = e == null ? void 0 : e.userAction) != null ? p : !0 });
11049
+ (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("play", { userAction: (m = e == null ? void 0 : e.userAction) != null ? m : !0 });
11050
11050
  let d = !1;
11051
11051
  const h = yield (() => J(this, null, function* () {
11052
- var m, g;
11052
+ var p, g;
11053
11053
  if ((e == null ? void 0 : e.playFromIndex) !== void 0)
11054
11054
  return e.playFromIndex;
11055
11055
  if ((e == null ? void 0 : e.playFromId) !== void 0)
11056
- return (m = this.data) == null ? void 0 : m.keyframes.findIndex((A) => A.id === e.playFromId);
11056
+ return (p = this.data) == null ? void 0 : p.keyframes.findIndex((v) => v.id === e.playFromId);
11057
11057
  if (c != null && c.keyframeId) {
11058
- const A = (g = this.data) == null ? void 0 : g.keyframes.find((v) => v.id === c.keyframeId);
11058
+ const v = (g = this.data) == null ? void 0 : g.keyframes.find((A) => A.id === c.keyframeId);
11059
11059
  if (c != null && c.fiveState && (yield this.move(c.fiveState, {
11060
11060
  moveEffect: s.moveToFirstPanoEffect,
11061
11061
  duration: s.moveToFirstPanoDuration
11062
- })), A) {
11063
- if (A.data.effect === "Move")
11064
- return A.index;
11065
- if (A.data.effect === "Rotate") {
11066
- const v = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
11067
- return yield this.playKeyframe(A, { duration: v }), d = !0, A.index + 1;
11062
+ })), v) {
11063
+ if (v.data.effect === "Move")
11064
+ return v.index;
11065
+ if (v.data.effect === "Rotate") {
11066
+ const A = c.duration !== void 0 ? c.duration * (1 - c.playedProgress) : void 0;
11067
+ return yield this.playKeyframe(v, { duration: A }), d = !0, v.index + 1;
11068
11068
  }
11069
11069
  }
11070
11070
  }
11071
11071
  }))();
11072
11072
  this.clearPauseData();
11073
- for (const m of l) {
11073
+ for (const p of l) {
11074
11074
  if (s.broke || !o.playing || !s.playing || a !== s.playId)
11075
11075
  return;
11076
- if (!(h !== void 0 && m.index < h))
11076
+ if (!(h !== void 0 && p.index < h))
11077
11077
  try {
11078
- r.emit("playIndexChange", m.index, m), yield this.playKeyframe(m, {
11078
+ r.emit("playIndexChange", p.index, p), yield this.playKeyframe(p, {
11079
11079
  moveEffect: d === !1 ? s.moveToFirstPanoEffect : void 0,
11080
11080
  duration: d === !1 && typeof s.moveToFirstPanoDuration == "number" ? s.moveToFirstPanoDuration : 800
11081
- }), m.stay && (yield Am(m.stay)), d === !1 && (d = !0);
11081
+ }), p.stay && (yield Am(p.stay)), d === !1 && (d = !0);
11082
11082
  } catch (g) {
11083
11083
  return Promise.resolve("broke");
11084
11084
  }
@@ -11177,8 +11177,8 @@ class Xa extends Ot {
11177
11177
  updateCamera(e, n) {
11178
11178
  return J(this, null, function* () {
11179
11179
  const { five: o, privateState: s, state: r } = this, a = (() => {
11180
- var h, p;
11181
- const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (p = e.rotateSpeed) != null ? p : d == null ? void 0 : d.rotateSpeed;
11180
+ var h, m;
11181
+ const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (m = e.rotateSpeed) != null ? m : d == null ? void 0 : d.rotateSpeed;
11182
11182
  if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
11183
11183
  return u;
11184
11184
  if (u !== void 0)
@@ -11207,8 +11207,8 @@ class Xa extends Ot {
11207
11207
  const a = o.getCurrentState().mode !== "Panorama";
11208
11208
  a && (this.privateState.modeChanging = !0);
11209
11209
  const l = (() => {
11210
- var h, p;
11211
- const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (p = e.moveSpeed) != null ? p : d == null ? void 0 : d.moveSpeed;
11210
+ var h, m;
11211
+ const d = (h = r.config) == null ? void 0 : h.speedConfig, u = (m = e.moveSpeed) != null ? m : d == null ? void 0 : d.moveSpeed;
11212
11212
  if ((d == null ? void 0 : d.moveSpeedUnit) === void 0)
11213
11213
  return u;
11214
11214
  if (u !== void 0)
@@ -11223,13 +11223,13 @@ class Xa extends Ot {
11223
11223
  return 800;
11224
11224
  })();
11225
11225
  s.currentPlayKeyframe && (s.currentPlayKeyframe.originDuration = c), yield new Promise((d) => {
11226
- var u, h, p;
11226
+ var u, h, m;
11227
11227
  o.moveToPano(e.panoIndex, {
11228
11228
  latitude: e.latitude,
11229
11229
  longitude: e.longitude,
11230
11230
  fov: e.fov,
11231
11231
  duration: this.getSpeededDuration(c),
11232
- effect: (p = (h = n == null ? void 0 : n.moveEffect) != null ? h : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? p : e.moveEffect,
11232
+ effect: (m = (h = n == null ? void 0 : n.moveEffect) != null ? h : (u = this.state.config) == null ? void 0 : u.moveEffect) != null ? m : e.moveEffect,
11233
11233
  moveCancelCallback: () => d(),
11234
11234
  moveEndCallback: () => d()
11235
11235
  }), a && o.once("panoArrived", () => d());
@@ -11338,7 +11338,7 @@ function ym(i, t) {
11338
11338
  });
11339
11339
  });
11340
11340
  }
11341
- const Se = (i) => i;
11341
+ const Le = (i) => i;
11342
11342
  function Ya(i) {
11343
11343
  if (i.length < 3)
11344
11344
  return;
@@ -11570,9 +11570,9 @@ function Ne(i) {
11570
11570
  return typeof i == "number" ? i / 16 + "rem" : i;
11571
11571
  }
11572
11572
  function Sm(i, t, e) {
11573
- let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: p } = t, { spreadRadius: m } = t, { opacity: g = 0.15 } = t, { zIndex: A = void 0 } = t;
11574
- return i.$$set = (v) => {
11575
- "inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "visible" in v && e(2, s = v.visible), "width" in v && e(3, r = v.width), "height" in v && e(4, a = v.height), "left" in v && e(5, l = v.left), "bottom" in v && e(6, c = v.bottom), "center" in v && e(7, d = v.center), "horizontalCenter" in v && e(8, u = v.horizontalCenter), "verticalCenter" in v && e(9, h = v.verticalCenter), "blurRadius" in v && e(10, p = v.blurRadius), "spreadRadius" in v && e(11, m = v.spreadRadius), "opacity" in v && e(12, g = v.opacity), "zIndex" in v && e(13, A = v.zIndex);
11573
+ let { inDelay: n = 1e3 } = t, { outDelay: o = 1e3 } = t, { visible: s = !0 } = t, { width: r = 0 } = t, { height: a = 0 } = t, { left: l = 0 } = t, { bottom: c = 0 } = t, { center: d = !1 } = t, { horizontalCenter: u = !1 } = t, { verticalCenter: h = !1 } = t, { blurRadius: m } = t, { spreadRadius: p } = t, { opacity: g = 0.15 } = t, { zIndex: v = void 0 } = t;
11574
+ return i.$$set = (A) => {
11575
+ "inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "visible" in A && e(2, s = A.visible), "width" in A && e(3, r = A.width), "height" in A && e(4, a = A.height), "left" in A && e(5, l = A.left), "bottom" in A && e(6, c = A.bottom), "center" in A && e(7, d = A.center), "horizontalCenter" in A && e(8, u = A.horizontalCenter), "verticalCenter" in A && e(9, h = A.verticalCenter), "blurRadius" in A && e(10, m = A.blurRadius), "spreadRadius" in A && e(11, p = A.spreadRadius), "opacity" in A && e(12, g = A.opacity), "zIndex" in A && e(13, v = A.zIndex);
11576
11576
  }, [
11577
11577
  n,
11578
11578
  o,
@@ -11584,10 +11584,10 @@ function Sm(i, t, e) {
11584
11584
  d,
11585
11585
  u,
11586
11586
  h,
11587
- p,
11588
11587
  m,
11588
+ p,
11589
11589
  g,
11590
- A
11590
+ v
11591
11591
  ];
11592
11592
  }
11593
11593
  class Je extends oe {
@@ -11640,7 +11640,7 @@ function Us(i) {
11640
11640
  B(a, t, l), Q(t, n), s();
11641
11641
  },
11642
11642
  p(a, l) {
11643
- i = a, l & 2 && e !== (e = i[10] + "") && Me(n, e), o !== i[12] && (r(), o = i[12], s());
11643
+ i = a, l & 2 && e !== (e = i[10] + "") && Te(n, e), o !== i[12] && (r(), o = i[12], s());
11644
11644
  },
11645
11645
  d(a) {
11646
11646
  a && T(t), r();
@@ -11684,22 +11684,22 @@ function Mm(i) {
11684
11684
  }
11685
11685
  function Bm(i, t, e) {
11686
11686
  let n, { inDelay: o = 0 } = t, { outDelay: s = 0 } = t, { content: r } = t, { unfolded: a } = t, l, c = [], d;
11687
- function u(p) {
11687
+ function u(m) {
11688
11688
  clearTimeout(l), l = setTimeout(
11689
11689
  function() {
11690
- !d || (p && d.reversed || !p && !d.reversed) && (d.reverse(), d.play());
11690
+ !d || (m && d.reversed || !m && !d.reversed) && (d.reverse(), d.play());
11691
11691
  },
11692
- p ? o : s
11692
+ m ? o : s
11693
11693
  );
11694
11694
  }
11695
11695
  Ye(function() {
11696
- const p = (() => {
11697
- const m = Pm((g) => c[g].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
11698
- if (m > 0)
11699
- return m;
11696
+ const m = (() => {
11697
+ const p = Pm((g) => c[g].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
11698
+ if (p > 0)
11699
+ return p;
11700
11700
  })();
11701
11701
  d = wo({
11702
- targets: c.slice(0, p).filter(Bt),
11702
+ targets: c.slice(0, m).filter(Bt),
11703
11703
  autoplay: !1,
11704
11704
  duration: 400,
11705
11705
  scale: [0.7, 1],
@@ -11711,17 +11711,17 @@ function Bm(i, t, e) {
11711
11711
  easing: "easeInOutCubic"
11712
11712
  }), a && d.seek(d.duration);
11713
11713
  });
11714
- function h(p, m) {
11715
- Te[p ? "unshift" : "push"](() => {
11716
- c[m] = p, e(0, c);
11714
+ function h(m, p) {
11715
+ ze[m ? "unshift" : "push"](() => {
11716
+ c[p] = m, e(0, c);
11717
11717
  });
11718
11718
  }
11719
- return i.$$set = (p) => {
11720
- "inDelay" in p && e(2, o = p.inDelay), "outDelay" in p && e(3, s = p.outDelay), "content" in p && e(4, r = p.content), "unfolded" in p && e(5, a = p.unfolded);
11719
+ return i.$$set = (m) => {
11720
+ "inDelay" in m && e(2, o = m.inDelay), "outDelay" in m && e(3, s = m.outDelay), "content" in m && e(4, r = m.content), "unfolded" in m && e(5, a = m.unfolded);
11721
11721
  }, i.$$.update = () => {
11722
11722
  i.$$.dirty & 16 && e(1, n = (() => {
11723
- const p = [], m = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), g = `__EMOJI_SPLIT_${Xs}__`, A = `__EMOJI_${Xs}__`;
11724
- return r.slice().replace(m, (v) => `${g}${A}${v}${g}`).split(g).forEach((v) => v.startsWith(A) ? p.push(v.slice(A.length)) : p.push(...v.split(""))), p;
11723
+ const m = [], p = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu")), g = `__EMOJI_SPLIT_${Xs}__`, v = `__EMOJI_${Xs}__`;
11724
+ return r.slice().replace(p, (A) => `${g}${v}${A}${g}`).split(g).forEach((A) => A.startsWith(v) ? m.push(A.slice(v.length)) : m.push(...A.split(""))), m;
11725
11725
  })()), i.$$.dirty & 32 && u(a);
11726
11726
  }, [c, n, o, s, r, a, h];
11727
11727
  }
@@ -11965,19 +11965,19 @@ function Nm(i) {
11965
11965
  }
11966
11966
  function Wm(i, t, e) {
11967
11967
  let n, o, s, { visible: r = !1 } = t, { textUnfolded: a = !1 } = t, { textItems: l } = t, c, d = 0, u = 0, h = 0;
11968
- function p(m) {
11969
- Te[m ? "unshift" : "push"](() => {
11970
- c = m, e(2, c);
11968
+ function m(p) {
11969
+ ze[p ? "unshift" : "push"](() => {
11970
+ c = p, e(2, c);
11971
11971
  });
11972
11972
  }
11973
- return i.$$set = (m) => {
11974
- "visible" in m && e(0, r = m.visible), "textUnfolded" in m && e(8, a = m.textUnfolded), "textItems" in m && e(1, l = m.textItems);
11973
+ return i.$$set = (p) => {
11974
+ "visible" in p && e(0, r = p.visible), "textUnfolded" in p && e(8, a = p.textUnfolded), "textItems" in p && e(1, l = p.textItems);
11975
11975
  }, i.$$.update = () => {
11976
11976
  if (i.$$.dirty & 5 && c && r) {
11977
- const { lineHeight: m } = getComputedStyle(c);
11977
+ const { lineHeight: p } = getComputedStyle(c);
11978
11978
  e(4, h = c.offsetHeight), Fm(() => c == null ? void 0 : c.offsetHeight, Boolean).then(() => {
11979
11979
  e(4, h = c.offsetHeight);
11980
- }), e(3, u = Number(m.replace("px", "")));
11980
+ }), e(3, u = Number(p.replace("px", "")));
11981
11981
  }
11982
11982
  i.$$.dirty & 280 && e(9, d = a ? u - h : 0), i.$$.dirty & 512 && e(7, n = `translateY(${d}px)`), i.$$.dirty & 256 && e(6, o = a ? "left" : "right"), i.$$.dirty & 256 && e(5, s = a ? 450 : 0);
11983
11983
  }, [
@@ -11991,7 +11991,7 @@ function Wm(i, t, e) {
11991
11991
  n,
11992
11992
  a,
11993
11993
  d,
11994
- p
11994
+ m
11995
11995
  ];
11996
11996
  }
11997
11997
  class Va extends oe {
@@ -12015,7 +12015,7 @@ function Xm(i) {
12015
12015
  ae(i, "svelte-18yy5x8", ".line.svelte-18yy5x8{position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-18yy5x8{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0;overflow:hidden;box-sizing:border-box;font-size:0;pointer-events:none;white-space:nowrap;font-weight:600}");
12016
12016
  }
12017
12017
  function $s(i) {
12018
- var h, p;
12018
+ var h, m;
12019
12019
  let t, e, n, o, s, r, a, l, c, d, u;
12020
12020
  return t = new Je({
12021
12021
  props: {
@@ -12030,7 +12030,7 @@ function $s(i) {
12030
12030
  props: {
12031
12031
  unfolded: i[2],
12032
12032
  duration: 1e3,
12033
- outDelay: i[5] + 40 * Math.min((p = (h = i[4][0]) == null ? void 0 : h.content.length) != null ? p : 10, 15)
12033
+ outDelay: i[5] + 40 * Math.min((m = (h = i[4][0]) == null ? void 0 : h.content.length) != null ? m : 10, 15)
12034
12034
  }
12035
12035
  }), a = new Va({
12036
12036
  props: {
@@ -12042,26 +12042,26 @@ function $s(i) {
12042
12042
  c() {
12043
12043
  ee(t.$$.fragment), e = V(), n = j("div"), ee(o.$$.fragment), s = V(), r = j("div"), ee(a.$$.fragment), b(n, "class", "line svelte-18yy5x8"), R(n, "width", i[3] + "px"), b(r, "class", "content svelte-18yy5x8"), Ie(() => i[8].call(r));
12044
12044
  },
12045
- m(m, g) {
12046
- K(t, m, g), B(m, e, g), B(m, n, g), K(o, n, null), B(m, s, g), B(m, r, g), K(a, r, null), l = yt(r, i[8].bind(r)), c = !0, d || (u = Ee(r, "click", i[6]), d = !0);
12045
+ m(p, g) {
12046
+ K(t, p, g), B(p, e, g), B(p, n, g), K(o, n, null), B(p, s, g), B(p, r, g), K(a, r, null), l = yt(r, i[8].bind(r)), c = !0, d || (u = Ee(r, "click", i[6]), d = !0);
12047
12047
  },
12048
- p(m, g) {
12048
+ p(p, g) {
12049
12049
  var y, x;
12050
- const A = {};
12051
- g & 4 && (A.visible = m[2]), g & 8 && (A.left = m[3] / 2 + "px"), t.$set(A);
12052
12050
  const v = {};
12053
- g & 4 && (v.unfolded = m[2]), g & 48 && (v.outDelay = m[5] + 40 * Math.min((x = (y = m[4][0]) == null ? void 0 : y.content.length) != null ? x : 10, 15)), o.$set(v), g & 8 && R(n, "width", m[3] + "px");
12051
+ g & 4 && (v.visible = p[2]), g & 8 && (v.left = p[3] / 2 + "px"), t.$set(v);
12052
+ const A = {};
12053
+ g & 4 && (A.unfolded = p[2]), g & 48 && (A.outDelay = p[5] + 40 * Math.min((x = (y = p[4][0]) == null ? void 0 : y.content.length) != null ? x : 10, 15)), o.$set(A), g & 8 && R(n, "width", p[3] + "px");
12054
12054
  const w = {};
12055
- g & 4 && (w.visible = m[2]), g & 2 && (w.textUnfolded = m[1]), g & 16 && (w.textItems = m[4]), a.$set(w);
12055
+ g & 4 && (w.visible = p[2]), g & 2 && (w.textUnfolded = p[1]), g & 16 && (w.textItems = p[4]), a.$set(w);
12056
12056
  },
12057
- i(m) {
12058
- c || (D(t.$$.fragment, m), D(o.$$.fragment, m), D(a.$$.fragment, m), c = !0);
12057
+ i(p) {
12058
+ c || (D(t.$$.fragment, p), D(o.$$.fragment, p), D(a.$$.fragment, p), c = !0);
12059
12059
  },
12060
- o(m) {
12061
- M(t.$$.fragment, m), M(o.$$.fragment, m), M(a.$$.fragment, m), c = !1;
12060
+ o(p) {
12061
+ M(t.$$.fragment, p), M(o.$$.fragment, p), M(a.$$.fragment, p), c = !1;
12062
12062
  },
12063
- d(m) {
12064
- $(t, m), m && T(e), m && T(n), $(o), m && T(s), m && T(r), $(a), l(), d = !1, u();
12063
+ d(p) {
12064
+ $(t, p), p && T(e), p && T(n), $(o), p && T(s), p && T(r), $(a), l(), d = !1, u();
12065
12065
  }
12066
12066
  };
12067
12067
  }
@@ -12418,11 +12418,11 @@ function tp({
12418
12418
  pagination: d,
12419
12419
  navigation: u,
12420
12420
  scrollbar: h,
12421
- virtual: p,
12422
- thumbs: m
12421
+ virtual: m,
12422
+ thumbs: p
12423
12423
  } = i;
12424
- let g, A, v, w, y;
12425
- n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (A = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (v = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (y = !0);
12424
+ let g, v, A, w, y;
12425
+ n.includes("thumbs") && e.thumbs && e.thumbs.swiper && c.thumbs && !c.thumbs.swiper && (g = !0), n.includes("controller") && e.controller && e.controller.control && c.controller && !c.controller.control && (v = !0), n.includes("pagination") && e.pagination && (e.pagination.el || a) && (c.pagination || c.pagination === !1) && d && !d.el && (A = !0), n.includes("scrollbar") && e.scrollbar && (e.scrollbar.el || r) && (c.scrollbar || c.scrollbar === !1) && h && !h.el && (w = !0), n.includes("navigation") && e.navigation && (e.navigation.prevEl || s) && (e.navigation.nextEl || o) && (c.navigation || c.navigation === !1) && u && !u.prevEl && !u.nextEl && (y = !0);
12426
12426
  const x = (L) => {
12427
12427
  !i[L] || (i[L].destroy(), L === "navigation" ? (c[L].prevEl = void 0, c[L].nextEl = void 0, i[L].prevEl = void 0, i[L].nextEl = void 0) : (c[L].el = void 0, i[L].el = void 0));
12428
12428
  };
@@ -12433,7 +12433,7 @@ function tp({
12433
12433
  const C = e[L];
12434
12434
  (C === !0 || C === !1) && (L === "navigation" || L === "pagination" || L === "scrollbar") ? C === !1 && x(L) : c[L] = e[L];
12435
12435
  }
12436
- }), l.includes("controller") && !A && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && p && c.virtual.enabled ? (p.slides = t, p.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && m.init() && m.update(!0), A && (i.controller.control = c.controller.control), v && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), h.init(), h.updateSize(), h.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), u.init(), u.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
12436
+ }), l.includes("controller") && !v && i.controller && i.controller.control && c.controller && c.controller.control && (i.controller.control = c.controller.control), n.includes("children") && t && m && c.virtual.enabled ? (m.slides = t, m.update(!0)) : n.includes("children") && i.lazy && i.params.lazy.enabled && i.lazy.load(), g && p.init() && p.update(!0), v && (i.controller.control = c.controller.control), A && (a && (c.pagination.el = a), d.init(), d.render(), d.update()), w && (r && (c.scrollbar.el = r), h.init(), h.updateSize(), h.setTranslate()), y && (o && (c.navigation.nextEl = o), s && (c.navigation.prevEl = s), u.init(), u.update()), n.includes("allowSlideNext") && (i.allowSlideNext = e.allowSlideNext), n.includes("allowSlidePrev") && (i.allowSlidePrev = e.allowSlidePrev), n.includes("direction") && i.changeDirection(e.direction, !1), i.update();
12437
12437
  }
12438
12438
  const np = (i) => ({ virtualData: i & 512 }), tr = (i) => ({ virtualData: i[9] }), ip = (i) => ({ virtualData: i & 512 }), nr = (i) => ({ virtualData: i[9] }), op = (i) => ({ virtualData: i & 512 }), ir = (i) => ({ virtualData: i[9] }), sp = (i) => ({ virtualData: i & 512 }), or = (i) => ({ virtualData: i[9] }), rp = (i) => ({ virtualData: i & 512 }), sr = (i) => ({ virtualData: i[9] });
12439
12439
  function rr(i) {
@@ -12482,13 +12482,13 @@ function lr(i) {
12482
12482
  };
12483
12483
  }
12484
12484
  function ap(i) {
12485
- let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, u = Yi(i[2]), h, p, m;
12486
- const g = i[12]["container-start"], A = xt(g, i, i[11], sr), v = i[12]["wrapper-start"], w = xt(v, i, i[11], or), y = i[12].default, x = xt(y, i, i[11], ir), L = i[12]["wrapper-end"], C = xt(L, i, i[11], nr);
12485
+ let t, e, n, o, s, r, a = Xi(i[2]), l, c = Ui(i[2]), d, u = Yi(i[2]), h, m, p;
12486
+ const g = i[12]["container-start"], v = xt(g, i, i[11], sr), A = i[12]["wrapper-start"], w = xt(A, i, i[11], or), y = i[12].default, x = xt(y, i, i[11], ir), L = i[12]["wrapper-end"], C = xt(L, i, i[11], nr);
12487
12487
  let S = a && rr(i), k = c && ar(i), F = u && lr(i);
12488
12488
  const H = i[12]["container-end"], N = xt(H, i, i[11], tr);
12489
12489
  let Y = [
12490
12490
  {
12491
- class: p = oi(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
12491
+ class: m = oi(`${i[1]}${i[0] ? ` ${i[0]}` : ""}`)
12492
12492
  },
12493
12493
  i[3]
12494
12494
  ], P = {};
@@ -12496,60 +12496,60 @@ function ap(i) {
12496
12496
  P = ye(P, Y[I]);
12497
12497
  return {
12498
12498
  c() {
12499
- t = j("div"), A && A.c(), e = V(), n = j("div"), w && w.c(), o = V(), x && x.c(), s = V(), C && C.c(), r = V(), S && S.c(), l = V(), k && k.c(), d = V(), F && F.c(), h = V(), N && N.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
12499
+ t = j("div"), v && v.c(), e = V(), n = j("div"), w && w.c(), o = V(), x && x.c(), s = V(), C && C.c(), r = V(), S && S.c(), l = V(), k && k.c(), d = V(), F && F.c(), h = V(), N && N.c(), b(n, "class", "swiper-wrapper"), Vn(t, P);
12500
12500
  },
12501
12501
  m(I, z) {
12502
- B(I, t, z), A && A.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), x && x.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), S && S.m(t, null), Q(t, l), k && k.m(t, null), Q(t, d), F && F.m(t, null), Q(t, h), N && N.m(t, null), i[17](t), m = !0;
12502
+ B(I, t, z), v && v.m(t, null), Q(t, e), Q(t, n), w && w.m(n, null), Q(n, o), x && x.m(n, null), Q(n, s), C && C.m(n, null), Q(t, r), S && S.m(t, null), Q(t, l), k && k.m(t, null), Q(t, d), F && F.m(t, null), Q(t, h), N && N.m(t, null), i[17](t), p = !0;
12503
12503
  },
12504
12504
  p(I, [z]) {
12505
- A && A.p && (!m || z & 2560) && Dt(
12506
- A,
12505
+ v && v.p && (!p || z & 2560) && Dt(
12506
+ v,
12507
12507
  g,
12508
12508
  I,
12509
12509
  I[11],
12510
- m ? kt(g, I[11], z, rp) : Lt(I[11]),
12510
+ p ? kt(g, I[11], z, rp) : Lt(I[11]),
12511
12511
  sr
12512
- ), w && w.p && (!m || z & 2560) && Dt(
12512
+ ), w && w.p && (!p || z & 2560) && Dt(
12513
12513
  w,
12514
- v,
12514
+ A,
12515
12515
  I,
12516
12516
  I[11],
12517
- m ? kt(v, I[11], z, sp) : Lt(I[11]),
12517
+ p ? kt(A, I[11], z, sp) : Lt(I[11]),
12518
12518
  or
12519
- ), x && x.p && (!m || z & 2560) && Dt(
12519
+ ), x && x.p && (!p || z & 2560) && Dt(
12520
12520
  x,
12521
12521
  y,
12522
12522
  I,
12523
12523
  I[11],
12524
- m ? kt(y, I[11], z, op) : Lt(I[11]),
12524
+ p ? kt(y, I[11], z, op) : Lt(I[11]),
12525
12525
  ir
12526
- ), C && C.p && (!m || z & 2560) && Dt(
12526
+ ), C && C.p && (!p || z & 2560) && Dt(
12527
12527
  C,
12528
12528
  L,
12529
12529
  I,
12530
12530
  I[11],
12531
- m ? kt(L, I[11], z, ip) : Lt(I[11]),
12531
+ p ? kt(L, I[11], z, ip) : Lt(I[11]),
12532
12532
  nr
12533
- ), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (u = Yi(I[2])), u ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, h)) : F && (F.d(1), F = null), N && N.p && (!m || z & 2560) && Dt(
12533
+ ), z & 4 && (a = Xi(I[2])), a ? S ? S.p(I, z) : (S = rr(I), S.c(), S.m(t, l)) : S && (S.d(1), S = null), z & 4 && (c = Ui(I[2])), c ? k ? k.p(I, z) : (k = ar(I), k.c(), k.m(t, d)) : k && (k.d(1), k = null), z & 4 && (u = Yi(I[2])), u ? F ? F.p(I, z) : (F = lr(I), F.c(), F.m(t, h)) : F && (F.d(1), F = null), N && N.p && (!p || z & 2560) && Dt(
12534
12534
  N,
12535
12535
  H,
12536
12536
  I,
12537
12537
  I[11],
12538
- m ? kt(H, I[11], z, np) : Lt(I[11]),
12538
+ p ? kt(H, I[11], z, np) : Lt(I[11]),
12539
12539
  tr
12540
- ), Vn(t, P = Be(Y, [
12541
- (!m || z & 3 && p !== (p = oi(`${I[1]}${I[0] ? ` ${I[0]}` : ""}`))) && { class: p },
12540
+ ), Vn(t, P = Me(Y, [
12541
+ (!p || z & 3 && m !== (m = oi(`${I[1]}${I[0] ? ` ${I[0]}` : ""}`))) && { class: m },
12542
12542
  z & 8 && I[3]
12543
12543
  ]));
12544
12544
  },
12545
12545
  i(I) {
12546
- m || (D(A, I), D(w, I), D(x, I), D(C, I), D(N, I), m = !0);
12546
+ p || (D(v, I), D(w, I), D(x, I), D(C, I), D(N, I), p = !0);
12547
12547
  },
12548
12548
  o(I) {
12549
- M(A, I), M(w, I), M(x, I), M(C, I), M(N, I), m = !1;
12549
+ M(v, I), M(w, I), M(x, I), M(C, I), M(N, I), p = !1;
12550
12550
  },
12551
12551
  d(I) {
12552
- I && T(t), A && A.d(I), w && w.d(I), x && x.d(I), C && C.d(I), S && S.d(), k && k.d(), F && F.d(), N && N.d(I), i[17](null);
12552
+ I && T(t), v && v.d(I), w && w.d(I), x && x.d(I), C && C.d(I), S && S.d(), k && k.d(), F && F.d(), N && N.d(I), i[17](null);
12553
12553
  }
12554
12554
  };
12555
12555
  }
@@ -12557,7 +12557,7 @@ function lp(i, t, e) {
12557
12557
  const n = ["class", "swiper"];
12558
12558
  let o = Jn(t, n), { $$slots: s = {}, $$scope: r } = t;
12559
12559
  const a = uc();
12560
- let { class: l = void 0 } = t, c = "swiper", d = !1, u = null, h = null, p, m, g, A, v = null, w = null, y = null, x = null, L = null, C = { slides: [] };
12560
+ let { class: l = void 0 } = t, c = "swiper", d = !1, u = null, h = null, m, p, g, v, A = null, w = null, y = null, x = null, L = null, C = { slides: [] };
12561
12561
  function S() {
12562
12562
  return u;
12563
12563
  }
@@ -12568,41 +12568,41 @@ function lp(i, t, e) {
12568
12568
  }), u.updateSlides(), u.updateProgress(), u.updateSlidesClasses(), u.lazy && u.params.lazy.enabled && u.lazy.load();
12569
12569
  });
12570
12570
  }, F = () => {
12571
- p = Km(o), e(2, m = p.params), g = p.passedParams, e(3, A = p.rest);
12571
+ m = Km(o), e(2, p = m.params), g = m.passedParams, e(3, v = m.rest);
12572
12572
  };
12573
12573
  F(), h = g;
12574
12574
  const H = () => {
12575
12575
  d = !0;
12576
12576
  };
12577
- if (m.onAny = (O, ...W) => {
12577
+ if (p.onAny = (O, ...W) => {
12578
12578
  a(O, W);
12579
- }, Object.assign(m.on, {
12579
+ }, Object.assign(p.on, {
12580
12580
  _beforeBreakpoint: H,
12581
12581
  _containerClasses(O, W) {
12582
12582
  e(1, c = W);
12583
12583
  }
12584
- }), u = new Mi(m), Qi("swiper", u), u.virtual && u.params.virtual.enabled) {
12584
+ }), u = new Mi(p), Qi("swiper", u), u.virtual && u.params.virtual.enabled) {
12585
12585
  const O = {
12586
12586
  cache: !1,
12587
12587
  renderExternal: (W) => {
12588
- k(W), m.virtual && m.virtual.renderExternal && m.virtual.renderExternal(W);
12588
+ k(W), p.virtual && p.virtual.renderExternal && p.virtual.renderExternal(W);
12589
12589
  },
12590
12590
  renderExternalUpdate: !1
12591
12591
  };
12592
12592
  pt(u.params.virtual, O), pt(u.originalParams.virtual, O);
12593
12593
  }
12594
12594
  Ye(() => {
12595
- !v || ($m(
12595
+ !A || ($m(
12596
12596
  {
12597
- el: v,
12597
+ el: A,
12598
12598
  nextEl: y,
12599
12599
  prevEl: w,
12600
12600
  paginationEl: L,
12601
12601
  scrollbarEl: x,
12602
12602
  swiper: u
12603
12603
  },
12604
- m
12605
- ), a("swiper", [u]), !m.virtual && u.slides.each((O) => {
12604
+ p
12605
+ ), a("swiper", [u]), !p.virtual && u.slides.each((O) => {
12606
12606
  O.onSwiper && O.onSwiper(u);
12607
12607
  }));
12608
12608
  }), to(() => {
@@ -12623,28 +12623,28 @@ function lp(i, t, e) {
12623
12623
  typeof window != "undefined" && u && !u.destroyed && u.destroy(!0, !1);
12624
12624
  });
12625
12625
  function N(O) {
12626
- Te[O ? "unshift" : "push"](() => {
12626
+ ze[O ? "unshift" : "push"](() => {
12627
12627
  w = O, e(5, w);
12628
12628
  });
12629
12629
  }
12630
12630
  function Y(O) {
12631
- Te[O ? "unshift" : "push"](() => {
12631
+ ze[O ? "unshift" : "push"](() => {
12632
12632
  y = O, e(6, y);
12633
12633
  });
12634
12634
  }
12635
12635
  function P(O) {
12636
- Te[O ? "unshift" : "push"](() => {
12636
+ ze[O ? "unshift" : "push"](() => {
12637
12637
  x = O, e(7, x);
12638
12638
  });
12639
12639
  }
12640
12640
  function I(O) {
12641
- Te[O ? "unshift" : "push"](() => {
12641
+ ze[O ? "unshift" : "push"](() => {
12642
12642
  L = O, e(8, L);
12643
12643
  });
12644
12644
  }
12645
12645
  function z(O) {
12646
- Te[O ? "unshift" : "push"](() => {
12647
- v = O, e(4, v);
12646
+ ze[O ? "unshift" : "push"](() => {
12647
+ A = O, e(4, A);
12648
12648
  });
12649
12649
  }
12650
12650
  return i.$$set = (O) => {
@@ -12652,9 +12652,9 @@ function lp(i, t, e) {
12652
12652
  }, [
12653
12653
  l,
12654
12654
  c,
12655
- m,
12656
- A,
12655
+ p,
12657
12656
  v,
12657
+ A,
12658
12658
  w,
12659
12659
  y,
12660
12660
  x,
@@ -12767,10 +12767,10 @@ function mp(i) {
12767
12767
  B(u, t, h), a[e].m(t, null), i[9](t), s = !0;
12768
12768
  },
12769
12769
  p(u, [h]) {
12770
- let p = e;
12771
- e = l(u), e === p ? a[e].p(u, h) : (le(), M(a[p], 1, 1, () => {
12772
- a[p] = null;
12773
- }), ce(), n = a[e], n ? n.p(u, h) : (n = a[e] = r[e](u), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Be(c, [
12770
+ let m = e;
12771
+ e = l(u), e === m ? a[e].p(u, h) : (le(), M(a[m], 1, 1, () => {
12772
+ a[m] = null;
12773
+ }), ce(), n = a[e], n ? n.p(u, h) : (n = a[e] = r[e](u), n.c()), D(n, 1), n.m(t, null)), Vn(t, d = Me(c, [
12774
12774
  (!s || h & 12 && o !== (o = oi(`${u[3]}${u[2] ? ` ${u[2]}` : ""}`))) && { class: o },
12775
12775
  (!s || h & 2) && {
12776
12776
  "data-swiper-slide-index": u[1]
@@ -12792,37 +12792,37 @@ function mp(i) {
12792
12792
  function pp(i, t, e) {
12793
12793
  let n;
12794
12794
  const o = ["zoom", "virtualIndex", "class"];
12795
- let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, u = null, h = "swiper-slide", p = pn("swiper"), m = !1;
12795
+ let s = Jn(t, o), { $$slots: r = {}, $$scope: a } = t, { zoom: l = void 0 } = t, { virtualIndex: c = void 0 } = t, { class: d = void 0 } = t, u = null, h = "swiper-slide", m = pn("swiper"), p = !1;
12796
12796
  const g = (y, x, L) => {
12797
12797
  x === u && e(3, h = L);
12798
- }, A = () => {
12799
- !p || m || (p.on("_slideClass", g), m = !0);
12800
12798
  }, v = () => {
12801
- !p || (p.off("_slideClass", g), m = !1);
12799
+ !m || p || (m.on("_slideClass", g), p = !0);
12800
+ }, A = () => {
12801
+ !m || (m.off("_slideClass", g), p = !1);
12802
12802
  };
12803
12803
  Ye(() => {
12804
12804
  typeof c != "undefined" && (e(
12805
12805
  4,
12806
12806
  u.onSwiper = (y) => {
12807
- p = y, A();
12807
+ m = y, v();
12808
12808
  },
12809
12809
  u
12810
- ), A());
12810
+ ), v());
12811
12811
  }), to(() => {
12812
- if (!(!u || !p)) {
12813
- if (p.destroyed) {
12812
+ if (!(!u || !m)) {
12813
+ if (m.destroyed) {
12814
12814
  h !== "swiper-slide" && e(3, h = "swiper-slide");
12815
12815
  return;
12816
12816
  }
12817
- A();
12817
+ v();
12818
12818
  }
12819
12819
  }), eo(() => {
12820
- A();
12820
+ v();
12821
12821
  }), wt(() => {
12822
- !p || v();
12822
+ !m || A();
12823
12823
  });
12824
12824
  function w(y) {
12825
- Te[y ? "unshift" : "push"](() => {
12825
+ ze[y ? "unshift" : "push"](() => {
12826
12826
  u = y, e(4, u);
12827
12827
  });
12828
12828
  }
@@ -12888,15 +12888,15 @@ function vp(i) {
12888
12888
  var h;
12889
12889
  t = j("video"), r = V(), a = j("div"), l = j("div"), c = j("div"), b(t, "class", "media-content svelte-cwtvzu"), b(t, "style", e = `object-fit: ${i[3]};`), et(t.src, n = i[0].url + "#t=0.1") || b(t, "src", n), b(t, "poster", o = (h = i[0].videoCoverUrl) != null ? h : void 0), b(t, "preload", s = i[0].videoCoverUrl ? void 0 : "auto"), t.playsInline = !0, b(t, "paused", ""), t.loop = !1, b(t, "crossorigin", ""), t.controls = !1, q(t, "showPlayButton", i[5]), b(c, "class", "video-icon-img svelte-cwtvzu"), R(c, "background-image", "url(" + (i[1] === "large" ? Js : Vs) + ")"), q(c, "canPlay", i[2]), b(l, "class", "video-icon svelte-cwtvzu"), q(l, "large", i[1] === "large"), q(l, "small", i[1] === "small"), b(a, "class", "video-play-button-container svelte-cwtvzu"), q(a, "showPlayButton", i[5]);
12890
12890
  },
12891
- m(h, p) {
12892
- B(h, t, p), i[7](t), B(h, r, p), B(h, a, p), Q(a, l), Q(l, c), d || (u = [
12891
+ m(h, m) {
12892
+ B(h, t, m), i[7](t), B(h, r, m), B(h, a, m), Q(a, l), Q(l, c), d || (u = [
12893
12893
  Ee(t, "click", i[6]),
12894
12894
  Ee(c, "click", i[8])
12895
12895
  ], d = !0);
12896
12896
  },
12897
- p(h, p) {
12898
- var m;
12899
- p & 8 && e !== (e = `object-fit: ${h[3]};`) && b(t, "style", e), p & 1 && !et(t.src, n = h[0].url + "#t=0.1") && b(t, "src", n), p & 1 && o !== (o = (m = h[0].videoCoverUrl) != null ? m : void 0) && b(t, "poster", o), p & 1 && s !== (s = h[0].videoCoverUrl ? void 0 : "auto") && b(t, "preload", s), p & 32 && q(t, "showPlayButton", h[5]), p & 2 && R(c, "background-image", "url(" + (h[1] === "large" ? Js : Vs) + ")"), p & 4 && q(c, "canPlay", h[2]), p & 2 && q(l, "large", h[1] === "large"), p & 2 && q(l, "small", h[1] === "small"), p & 32 && q(a, "showPlayButton", h[5]);
12897
+ p(h, m) {
12898
+ var p;
12899
+ m & 8 && e !== (e = `object-fit: ${h[3]};`) && b(t, "style", e), m & 1 && !et(t.src, n = h[0].url + "#t=0.1") && b(t, "src", n), m & 1 && o !== (o = (p = h[0].videoCoverUrl) != null ? p : void 0) && b(t, "poster", o), m & 1 && s !== (s = h[0].videoCoverUrl ? void 0 : "auto") && b(t, "preload", s), m & 32 && q(t, "showPlayButton", h[5]), m & 2 && R(c, "background-image", "url(" + (h[1] === "large" ? Js : Vs) + ")"), m & 4 && q(c, "canPlay", h[2]), m & 2 && q(l, "large", h[1] === "large"), m & 2 && q(l, "small", h[1] === "small"), m & 32 && q(a, "showPlayButton", h[5]);
12900
12900
  },
12901
12901
  d(h) {
12902
12902
  h && T(t), i[7](null), h && T(r), h && T(a), d = !1, at(u);
@@ -12943,7 +12943,7 @@ function wp(i, t, e) {
12943
12943
  let { media: n } = t, { playButtonIfNeed: o = "small" } = t, { canPlay: s = !0 } = t, { objectFit: r = "cover" } = t, a, l = !1;
12944
12944
  const c = () => a == null ? void 0 : a.pause();
12945
12945
  function d(h) {
12946
- Te[h ? "unshift" : "push"](() => {
12946
+ ze[h ? "unshift" : "push"](() => {
12947
12947
  a = h, e(4, a);
12948
12948
  });
12949
12949
  }
@@ -13076,7 +13076,7 @@ function Pp(i) {
13076
13076
  style: "height: 100%",
13077
13077
  modules: [Tl],
13078
13078
  spaceBetween: 30,
13079
- autoplay: i[14] ? Se({
13079
+ autoplay: i[14] ? Le({
13080
13080
  delay: 4e3,
13081
13081
  stopOnLastSlide: !1,
13082
13082
  disableOnInteraction: !1
@@ -13094,7 +13094,7 @@ function Pp(i) {
13094
13094
  },
13095
13095
  p(n, o) {
13096
13096
  const s = {};
13097
- o & 16384 && (s.autoplay = n[14] ? Se({
13097
+ o & 16384 && (s.autoplay = n[14] ? Le({
13098
13098
  delay: 4e3,
13099
13099
  stopOnLastSlide: !1,
13100
13100
  disableOnInteraction: !1
@@ -13246,7 +13246,7 @@ function kp(i) {
13246
13246
  };
13247
13247
  }
13248
13248
  function Dp(i, t, e) {
13249
- let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: h = !0 } = t, { playButtonIfNeed: p = "small" } = t, { canPlay: m = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: A = !0 } = t, { autoplayConfig: v = { autoplay: !0, autoplayVideo: !1 } } = t;
13249
+ let n, o, s, { tag: r } = t, { mediaData: a } = t, { inDelay: l = 0 } = t, { outDelay: c = 0 } = t, { duration: d = 0 } = t, { unfolded: u = !0 } = t, { animation: h = !0 } = t, { playButtonIfNeed: m = "small" } = t, { canPlay: p = !0 } = t, { objectFit: g = "cover" } = t, { enableCarousel: v = !0 } = t, { autoplayConfig: A = { autoplay: !0, autoplayVideo: !1 } } = t;
13250
13250
  const w = pn("mediaStore"), y = pn("hooks");
13251
13251
  let x;
13252
13252
  function L(H) {
@@ -13270,7 +13270,7 @@ function Dp(i, t, e) {
13270
13270
  e(10, x = H.detail[0]);
13271
13271
  }, F = (H) => J(this, null, function* () {
13272
13272
  var O, W, Z;
13273
- if (!s || !v.autoplayVideo)
13273
+ if (!s || !A.autoplayVideo)
13274
13274
  return;
13275
13275
  const N = H.detail[0];
13276
13276
  if (!N)
@@ -13291,9 +13291,9 @@ function Dp(i, t, e) {
13291
13291
  }
13292
13292
  });
13293
13293
  return i.$$set = (H) => {
13294
- "tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, u = H.unfolded), "animation" in H && e(5, h = H.animation), "playButtonIfNeed" in H && e(6, p = H.playButtonIfNeed), "canPlay" in H && e(7, m = H.canPlay), "objectFit" in H && e(8, g = H.objectFit), "enableCarousel" in H && e(18, A = H.enableCarousel), "autoplayConfig" in H && e(9, v = H.autoplayConfig);
13294
+ "tag" in H && e(17, r = H.tag), "mediaData" in H && e(0, a = H.mediaData), "inDelay" in H && e(1, l = H.inDelay), "outDelay" in H && e(2, c = H.outDelay), "duration" in H && e(3, d = H.duration), "unfolded" in H && e(4, u = H.unfolded), "animation" in H && e(5, h = H.animation), "playButtonIfNeed" in H && e(6, m = H.playButtonIfNeed), "canPlay" in H && e(7, p = H.canPlay), "objectFit" in H && e(8, g = H.objectFit), "enableCarousel" in H && e(18, v = H.enableCarousel), "autoplayConfig" in H && e(9, A = H.autoplayConfig);
13295
13295
  }, i.$$.update = () => {
13296
- i.$$.dirty & 262145 && e(13, n = A && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && v.autoplay), i.$$.dirty & 1024 && x && x.slides.forEach((H) => {
13296
+ i.$$.dirty & 262145 && e(13, n = v && (a == null ? void 0 : a.length) > 1), i.$$.dirty & 1 && e(11, o = a), i.$$.dirty & 2560 && e(14, s = o.length > 1 && A.autoplay), i.$$.dirty & 1024 && x && x.slides.forEach((H) => {
13297
13297
  const N = H.querySelector("video");
13298
13298
  N && w.subscribe(({ currentMediaUrl: Y }) => {
13299
13299
  Y !== N.src && N.pause();
@@ -13306,10 +13306,10 @@ function Dp(i, t, e) {
13306
13306
  d,
13307
13307
  u,
13308
13308
  h,
13309
- p,
13310
13309
  m,
13310
+ p,
13311
13311
  g,
13312
- v,
13312
+ A,
13313
13313
  x,
13314
13314
  o,
13315
13315
  S,
@@ -13318,7 +13318,7 @@ function Dp(i, t, e) {
13318
13318
  L,
13319
13319
  C,
13320
13320
  r,
13321
- A,
13321
+ v,
13322
13322
  k,
13323
13323
  F
13324
13324
  ];
@@ -13375,52 +13375,52 @@ function gr(i) {
13375
13375
  }
13376
13376
  });
13377
13377
  let u = i[2];
13378
- const h = (m) => m[5];
13379
- for (let m = 0; m < u.length; m += 1) {
13380
- let g = pr(i, u, m), A = h(g);
13381
- a.set(A, r[m] = Ar(A, g));
13378
+ const h = (p) => p[5];
13379
+ for (let p = 0; p < u.length; p += 1) {
13380
+ let g = pr(i, u, p), v = h(g);
13381
+ a.set(v, r[p] = Ar(v, g));
13382
13382
  }
13383
- let p = i[3] && vr(i);
13383
+ let m = i[3] && vr(i);
13384
13384
  return {
13385
13385
  c() {
13386
13386
  ee(t.$$.fragment), e = V(), n = j("div"), ee(o.$$.fragment), s = V();
13387
- for (let m = 0; m < r.length; m += 1)
13388
- r[m].c();
13389
- l = V(), p && p.c(), c = fe(), b(n, "class", "line svelte-1f7m1lj");
13387
+ for (let p = 0; p < r.length; p += 1)
13388
+ r[p].c();
13389
+ l = V(), m && m.c(), c = fe(), b(n, "class", "line svelte-1f7m1lj");
13390
13390
  },
13391
- m(m, g) {
13392
- K(t, m, g), B(m, e, g), B(m, n, g), K(o, n, null), B(m, s, g);
13393
- for (let A = 0; A < r.length; A += 1)
13394
- r[A].m(m, g);
13395
- B(m, l, g), p && p.m(m, g), B(m, c, g), d = !0;
13391
+ m(p, g) {
13392
+ K(t, p, g), B(p, e, g), B(p, n, g), K(o, n, null), B(p, s, g);
13393
+ for (let v = 0; v < r.length; v += 1)
13394
+ r[v].m(p, g);
13395
+ B(p, l, g), m && m.m(p, g), B(p, c, g), d = !0;
13396
13396
  },
13397
- p(m, g) {
13398
- const A = {};
13399
- g & 16 && (A.visible = m[4]), t.$set(A);
13397
+ p(p, g) {
13400
13398
  const v = {};
13401
- g & 16 && (v.unfolded = m[4]), o.$set(v), g & 20 && (u = m[2], le(), r = Ue(r, g, h, 1, m, u, a, l.parentNode, lt, Ar, l, pr), ce()), m[3] ? p ? (p.p(m, g), g & 8 && D(p, 1)) : (p = vr(m), p.c(), D(p, 1), p.m(c.parentNode, c)) : p && (le(), M(p, 1, 1, () => {
13402
- p = null;
13399
+ g & 16 && (v.visible = p[4]), t.$set(v);
13400
+ const A = {};
13401
+ g & 16 && (A.unfolded = p[4]), o.$set(A), g & 20 && (u = p[2], le(), r = Ue(r, g, h, 1, p, u, a, l.parentNode, lt, Ar, l, pr), ce()), p[3] ? m ? (m.p(p, g), g & 8 && D(m, 1)) : (m = vr(p), m.c(), D(m, 1), m.m(c.parentNode, c)) : m && (le(), M(m, 1, 1, () => {
13402
+ m = null;
13403
13403
  }), ce());
13404
13404
  },
13405
- i(m) {
13405
+ i(p) {
13406
13406
  if (!d) {
13407
- D(t.$$.fragment, m), D(o.$$.fragment, m);
13407
+ D(t.$$.fragment, p), D(o.$$.fragment, p);
13408
13408
  for (let g = 0; g < u.length; g += 1)
13409
13409
  D(r[g]);
13410
- D(p), d = !0;
13410
+ D(m), d = !0;
13411
13411
  }
13412
13412
  },
13413
- o(m) {
13414
- M(t.$$.fragment, m), M(o.$$.fragment, m);
13413
+ o(p) {
13414
+ M(t.$$.fragment, p), M(o.$$.fragment, p);
13415
13415
  for (let g = 0; g < r.length; g += 1)
13416
13416
  M(r[g]);
13417
- M(p), d = !1;
13417
+ M(m), d = !1;
13418
13418
  },
13419
- d(m) {
13420
- $(t, m), m && T(e), m && T(n), $(o), m && T(s);
13419
+ d(p) {
13420
+ $(t, p), p && T(e), p && T(n), $(o), p && T(s);
13421
13421
  for (let g = 0; g < r.length; g += 1)
13422
- r[g].d(m);
13423
- m && T(l), p && p.d(m), m && T(c);
13422
+ r[g].d(p);
13423
+ p && T(l), m && m.d(p), p && T(c);
13424
13424
  }
13425
13425
  };
13426
13426
  }
@@ -13553,7 +13553,7 @@ function wr(i) {
13553
13553
  B(o, t, s), Q(t, n);
13554
13554
  },
13555
13555
  p(o, s) {
13556
- s & 4 && e !== (e = o[0] + "") && Me(n, e);
13556
+ s & 4 && e !== (e = o[0] + "") && Te(n, e);
13557
13557
  },
13558
13558
  d(o) {
13559
13559
  o && T(t);
@@ -13587,7 +13587,7 @@ function Er(i) {
13587
13587
  B(o, t, s), Q(t, n);
13588
13588
  },
13589
13589
  p(o, s) {
13590
- s & 4 && e !== (e = o[0] + "") && Me(n, e);
13590
+ s & 4 && e !== (e = o[0] + "") && Te(n, e);
13591
13591
  },
13592
13592
  d(o) {
13593
13593
  o && T(t);
@@ -13621,7 +13621,7 @@ function Ir(i) {
13621
13621
  B(a, t, l), Q(t, e), Q(e, o), Q(t, s), r && r.m(t, null);
13622
13622
  },
13623
13623
  p(a, l) {
13624
- l & 4 && n !== (n = a[2].price.value + "") && Me(o, n), a[2].price.unit ? r ? r.p(a, l) : (r = xr(a), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
13624
+ l & 4 && n !== (n = a[2].price.value + "") && Te(o, n), a[2].price.unit ? r ? r.p(a, l) : (r = xr(a), r.c(), r.m(t, null)) : r && (r.d(1), r = null);
13625
13625
  },
13626
13626
  d(a) {
13627
13627
  a && T(t), r && r.d();
@@ -13638,7 +13638,7 @@ function xr(i) {
13638
13638
  B(o, t, s), Q(t, n);
13639
13639
  },
13640
13640
  p(o, s) {
13641
- s & 4 && e !== (e = o[2].price.unit + "") && Me(n, e);
13641
+ s & 4 && e !== (e = o[2].price.unit + "") && Te(n, e);
13642
13642
  },
13643
13643
  d(o) {
13644
13644
  o && T(t);
@@ -13655,7 +13655,7 @@ function kr(i) {
13655
13655
  B(o, t, s), Q(t, n);
13656
13656
  },
13657
13657
  p(o, s) {
13658
- s & 4 && e !== (e = o[2].highlightText + "") && Me(n, e);
13658
+ s & 4 && e !== (e = o[2].highlightText + "") && Te(n, e);
13659
13659
  },
13660
13660
  d(o) {
13661
13661
  o && T(t);
@@ -13664,7 +13664,7 @@ function kr(i) {
13664
13664
  }
13665
13665
  function Bp(i) {
13666
13666
  var N, Y;
13667
- let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g = i[2].title + "", A, v, w, y, x;
13667
+ let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g = i[2].title + "", v, A, w, y, x;
13668
13668
  e = new Je({
13669
13669
  props: {
13670
13670
  visible: i[1],
@@ -13691,7 +13691,7 @@ function Bp(i) {
13691
13691
  u = V();
13692
13692
  for (let z = 0; z < k.length; z += 1)
13693
13693
  k[z].c();
13694
- h = V(), p = j("div"), m = j("div"), A = xe(g), v = V(), w = j("div"), F && F.c(), y = V(), H && H.c(), b(o, "class", "line svelte-8mby9k"), R(o, "transition-delay", i[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(m, "class", "text svelte-8mby9k"), b(p, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(w, "height", ((P = i[2].price) == null ? void 0 : P.value) !== void 0 && ((I = i[2].price) == null ? void 0 : I.value) !== null && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), R(r, "transition-delay", i[1] ? Rn + Hn + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
13694
+ h = V(), m = j("div"), p = j("div"), v = xe(g), A = V(), w = j("div"), F && F.c(), y = V(), H && H.c(), b(o, "class", "line svelte-8mby9k"), R(o, "transition-delay", i[1] ? Rn + "ms" : Hn + Lr - Dr - 40 + "ms"), b(a, "class", "headerImage svelte-8mby9k"), et(a.src, l = i[2].headerPictureUrl) || b(a, "src", l), b(a, "alt", ""), b(d, "class", "tag svelte-8mby9k"), b(p, "class", "text svelte-8mby9k"), b(m, "class", "title svelte-8mby9k"), b(w, "class", "footer svelte-8mby9k"), R(w, "height", ((P = i[2].price) == null ? void 0 : P.value) !== void 0 && ((I = i[2].price) == null ? void 0 : I.value) !== null && i[2].highlightText ? void 0 : "1rem"), b(r, "class", "content svelte-8mby9k"), R(r, "transition-delay", i[1] ? Rn + Hn + "ms" : "0ms"), b(t, "class", "marketing svelte-8mby9k"), q(t, "unfolded", i[1]), q(t, "folded", i[3]);
13695
13695
  },
13696
13696
  m(P, I) {
13697
13697
  B(P, t, I), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), Q(r, a), Q(r, c), Q(r, d);
@@ -13700,7 +13700,7 @@ function Bp(i) {
13700
13700
  Q(d, u);
13701
13701
  for (let z = 0; z < k.length; z += 1)
13702
13702
  k[z].m(d, null);
13703
- Q(r, h), Q(r, p), Q(p, m), Q(m, A), Q(r, v), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
13703
+ Q(r, h), Q(r, m), Q(m, p), Q(p, v), Q(r, A), Q(r, w), F && F.m(w, null), Q(w, y), H && H.m(w, null), x = !0;
13704
13704
  },
13705
13705
  p(P, [I]) {
13706
13706
  var O, W, Z, X;
@@ -13727,7 +13727,7 @@ function Bp(i) {
13727
13727
  k[U].d(1);
13728
13728
  k.length = S.length;
13729
13729
  }
13730
- (!x || I & 4) && g !== (g = P[2].title + "") && Me(A, g), ((O = P[2].price) == null ? void 0 : O.value) !== void 0 && ((W = P[2].price) == null ? void 0 : W.value) !== null ? F ? F.p(P, I) : (F = Ir(P), F.c(), F.m(w, y)) : F && (F.d(1), F = null), P[2].highlightText ? H ? H.p(P, I) : (H = kr(P), H.c(), H.m(w, null)) : H && (H.d(1), H = null), I & 4 && R(w, "height", ((Z = P[2].price) == null ? void 0 : Z.value) !== void 0 && ((X = P[2].price) == null ? void 0 : X.value) !== null && P[2].highlightText ? void 0 : "1rem"), I & 2 && R(r, "transition-delay", P[1] ? Rn + Hn + "ms" : "0ms"), (!x || I & 2) && q(t, "unfolded", P[1]), (!x || I & 8) && q(t, "folded", P[3]);
13730
+ (!x || I & 4) && g !== (g = P[2].title + "") && Te(v, g), ((O = P[2].price) == null ? void 0 : O.value) !== void 0 && ((W = P[2].price) == null ? void 0 : W.value) !== null ? F ? F.p(P, I) : (F = Ir(P), F.c(), F.m(w, y)) : F && (F.d(1), F = null), P[2].highlightText ? H ? H.p(P, I) : (H = kr(P), H.c(), H.m(w, null)) : H && (H.d(1), H = null), I & 4 && R(w, "height", ((Z = P[2].price) == null ? void 0 : Z.value) !== void 0 && ((X = P[2].price) == null ? void 0 : X.value) !== null && P[2].highlightText ? void 0 : "1rem"), I & 2 && R(r, "transition-delay", P[1] ? Rn + Hn + "ms" : "0ms"), (!x || I & 2) && q(t, "unfolded", P[1]), (!x || I & 8) && q(t, "folded", P[3]);
13731
13731
  },
13732
13732
  i(P) {
13733
13733
  x || (D(e.$$.fragment, P), x = !0);
@@ -13759,7 +13759,7 @@ function Rp(i) {
13759
13759
  ae(i, "svelte-1ku3wt4", `.audio.svelte-1ku3wt4.svelte-1ku3wt4{position:relative;width:100%;height:100%;cursor:pointer}@keyframes svelte-1ku3wt4-playing{25%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='8' transform='translate(-1 -1)' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}50%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM5.533 6.685L4.169 8.049l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}75%{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-.656 4.874l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .875-.333 1.67-.88 2.268l.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}}.paused.svelte-1ku3wt4 .audio-icon.svelte-1ku3wt4{animation:none}.audio-icon.svelte-1ku3wt4.svelte-1ku3wt4{width:100%;height:100%;border-radius:50%;background-size:100%;animation:svelte-1ku3wt4-playing 2s steps(1) infinite;background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm1.428 2.79l-.953.952a6.222 6.222 0 0 1 1.775 4.36c0 1.571-.58 3.006-1.538 4.103l-.184.202.793.794a7.344 7.344 0 0 0 2.21-5.26A7.341 7.341 0 0 0 9.428 2.79zM7.344 4.873l-.906.905A3.35 3.35 0 0 1 7.369 8.1c0 .802-.28 1.537-.748 2.115l-.132.153.906.906A4.628 4.628 0 0 0 8.65 8.101a4.627 4.627 0 0 0-1.306-3.227zm-1.811 1.81L4.169 8.05l1.414 1.413a2.078 2.078 0 0 0-.05-2.777z' fill='%23FFF' fill-rule='nonzero'/%3E%3C/svg%3E")}`);
13760
13760
  }
13761
13761
  function Sr(i) {
13762
- let t, e, n, o, s, r, a, l = !0, c, d, u, h, p;
13762
+ let t, e, n, o, s, r, a, l = !0, c, d, u, h, m;
13763
13763
  return e = new Je({
13764
13764
  props: {
13765
13765
  center: !0,
@@ -13770,18 +13770,18 @@ function Sr(i) {
13770
13770
  c() {
13771
13771
  t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), s = V(), r = j("audio"), b(o, "class", "audio-icon svelte-1ku3wt4"), r.controls = !1, b(r, "playsinline", ""), et(r.src, a = i[3]) || b(r, "src", a), b(t, "class", "audio svelte-1ku3wt4"), q(t, "paused", i[6]);
13772
13772
  },
13773
- m(m, g) {
13774
- B(m, t, g), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), i[9](r), u = !0, h || (p = [
13773
+ m(p, g) {
13774
+ B(p, t, g), K(e, t, null), Q(t, n), Q(t, o), Q(t, s), Q(t, r), i[9](r), u = !0, h || (m = [
13775
13775
  Ee(r, "play", i[10]),
13776
13776
  Ee(r, "pause", i[10]),
13777
13777
  Ee(t, "click", $i(i[7]))
13778
13778
  ], h = !0);
13779
13779
  },
13780
- p(m, g) {
13781
- i = m, (!u || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!u || g & 64) && q(t, "paused", i[6]);
13780
+ p(p, g) {
13781
+ i = p, (!u || g & 8 && !et(r.src, a = i[3])) && b(r, "src", a), g & 64 && l !== (l = i[6]) && r[l ? "pause" : "play"](), (!u || g & 64) && q(t, "paused", i[6]);
13782
13782
  },
13783
- i(m) {
13784
- u || (D(e.$$.fragment, m), m && Ie(() => {
13783
+ i(p) {
13784
+ u || (D(e.$$.fragment, p), p && Ie(() => {
13785
13785
  d && d.end(1), c = Ht(t, Mt, {
13786
13786
  duration: i[2],
13787
13787
  delay: i[0],
@@ -13789,15 +13789,15 @@ function Sr(i) {
13789
13789
  }), c.start();
13790
13790
  }), u = !0);
13791
13791
  },
13792
- o(m) {
13793
- M(e.$$.fragment, m), c && c.invalidate(), m && (d = Kt(t, Mt, {
13792
+ o(p) {
13793
+ M(e.$$.fragment, p), c && c.invalidate(), p && (d = Kt(t, Mt, {
13794
13794
  duration: i[2],
13795
13795
  delay: i[1],
13796
13796
  easing: Zt
13797
13797
  })), u = !1;
13798
13798
  },
13799
- d(m) {
13800
- m && T(t), $(e), i[9](null), m && d && d.end(), h = !1, at(p);
13799
+ d(p) {
13800
+ p && T(t), $(e), i[9](null), p && d && d.end(), h = !1, at(m);
13801
13801
  }
13802
13802
  };
13803
13803
  }
@@ -13830,42 +13830,42 @@ function Op(i, t, e) {
13830
13830
  let { inDelay: n = 0 } = t, { outDelay: o = 0 } = t, { duration: s = 0 } = t, { url: r } = t, { unfolded: a } = t, { hooksInfo: l = {} } = t;
13831
13831
  const c = pn("hooks"), d = pn("mediaStore");
13832
13832
  let u, h = !0;
13833
- d.subscribe(({ currentMediaUrl: A }) => {
13834
- A !== r && (u == null || u.pause());
13833
+ d.subscribe(({ currentMediaUrl: v }) => {
13834
+ v !== r && (u == null || u.pause());
13835
13835
  });
13836
- function p(A) {
13836
+ function m(v) {
13837
13837
  d.set({ currentMediaUrl: r }), u && (c.emit("click", G({
13838
- event: A,
13838
+ event: v,
13839
13839
  target: "AudioTagPlayIcon",
13840
13840
  audioInstance: u
13841
13841
  }, l)), u.paused ? u.play() : u.pause(), e(
13842
13842
  5,
13843
- u.onplay = (v) => c.emit("playStateChange", G({
13844
- event: v,
13843
+ u.onplay = (A) => c.emit("playStateChange", G({
13844
+ event: A,
13845
13845
  state: "playing",
13846
13846
  mediaInstance: u
13847
13847
  }, l)),
13848
13848
  u
13849
13849
  ), e(
13850
13850
  5,
13851
- u.onpause = (v) => c.emit("playStateChange", G({
13852
- event: v,
13851
+ u.onpause = (A) => c.emit("playStateChange", G({
13852
+ event: A,
13853
13853
  state: "paused",
13854
13854
  mediaInstance: u
13855
13855
  }, l)),
13856
13856
  u
13857
13857
  ));
13858
13858
  }
13859
- function m(A) {
13860
- Te[A ? "unshift" : "push"](() => {
13861
- u = A, e(5, u);
13859
+ function p(v) {
13860
+ ze[v ? "unshift" : "push"](() => {
13861
+ u = v, e(5, u);
13862
13862
  });
13863
13863
  }
13864
13864
  function g() {
13865
13865
  h = this.paused, e(6, h);
13866
13866
  }
13867
- return i.$$set = (A) => {
13868
- "inDelay" in A && e(0, n = A.inDelay), "outDelay" in A && e(1, o = A.outDelay), "duration" in A && e(2, s = A.duration), "url" in A && e(3, r = A.url), "unfolded" in A && e(4, a = A.unfolded), "hooksInfo" in A && e(8, l = A.hooksInfo);
13867
+ return i.$$set = (v) => {
13868
+ "inDelay" in v && e(0, n = v.inDelay), "outDelay" in v && e(1, o = v.outDelay), "duration" in v && e(2, s = v.duration), "url" in v && e(3, r = v.url), "unfolded" in v && e(4, a = v.unfolded), "hooksInfo" in v && e(8, l = v.hooksInfo);
13869
13869
  }, i.$$.update = () => {
13870
13870
  i.$$.dirty & 48 && (a || u == null || u.pause());
13871
13871
  }, [
@@ -13876,9 +13876,9 @@ function Op(i, t, e) {
13876
13876
  a,
13877
13877
  u,
13878
13878
  h,
13879
- p,
13880
- l,
13881
13879
  m,
13880
+ l,
13881
+ p,
13882
13882
  g
13883
13883
  ];
13884
13884
  }
@@ -13907,7 +13907,7 @@ function Gp(i) {
13907
13907
  }
13908
13908
  function zr(i) {
13909
13909
  var w, y, x, L;
13910
- let t, e, n, o, s, r, a, l, c, d, u, h, p, m, g, A, v;
13910
+ let t, e, n, o, s, r, a, l, c, d, u, h, m, p, g, v, A;
13911
13911
  return e = new Je({
13912
13912
  props: {
13913
13913
  visible: i[5],
@@ -13931,7 +13931,7 @@ function zr(i) {
13931
13931
  outDelay: 20 * Math.min((L = (x = i[3][0]) == null ? void 0 : x.content.length) != null ? L : 10, 15),
13932
13932
  hooksInfo: { tag: i[0] }
13933
13933
  }
13934
- }), p = new Va({
13934
+ }), m = new Va({
13935
13935
  props: {
13936
13936
  visible: i[5],
13937
13937
  textUnfolded: i[1],
@@ -13939,10 +13939,10 @@ function zr(i) {
13939
13939
  }
13940
13940
  }), {
13941
13941
  c() {
13942
- t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), u = V(), h = j("div"), ee(p.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px"), b(c, "class", "audio-icon svelte-4r8s18"), R(h, "display", "inline-block"), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Ie(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
13942
+ t = j("div"), ee(e.$$.fragment), n = V(), o = j("div"), ee(s.$$.fragment), r = V(), a = j("div"), l = j("div"), c = j("div"), ee(d.$$.fragment), u = V(), h = j("div"), ee(m.$$.fragment), b(o, "class", "line svelte-4r8s18"), R(o, "width", i[2] + "px"), b(c, "class", "audio-icon svelte-4r8s18"), R(h, "display", "inline-block"), b(l, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), Ie(() => i[8].call(a)), b(t, "class", "audio-tag svelte-4r8s18"), q(t, "unfolded", i[5]);
13943
13943
  },
13944
13944
  m(C, S) {
13945
- B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, u), Q(l, h), K(p, h, null), m = yt(a, i[8].bind(a)), g = !0, A || (v = Ee(h, "click", i[6]), A = !0);
13945
+ B(C, t, S), K(e, t, null), Q(t, n), Q(t, o), K(s, o, null), Q(t, r), Q(t, a), Q(a, l), Q(l, c), K(d, c, null), Q(l, u), Q(l, h), K(m, h, null), p = yt(a, i[8].bind(a)), g = !0, v || (A = Ee(h, "click", i[6]), v = !0);
13946
13946
  },
13947
13947
  p(C, S) {
13948
13948
  var Y, P, I, z;
@@ -13953,16 +13953,16 @@ function zr(i) {
13953
13953
  const H = {};
13954
13954
  S & 32 && (H.unfolded = C[5]), S & 1 && (H.url = C[0].data.audioUrl), S & 8 && (H.outDelay = 20 * Math.min((z = (I = C[3][0]) == null ? void 0 : I.content.length) != null ? z : 10, 15)), S & 1 && (H.hooksInfo = { tag: C[0] }), d.$set(H);
13955
13955
  const N = {};
13956
- S & 32 && (N.visible = C[5]), S & 2 && (N.textUnfolded = C[1]), S & 8 && (N.textItems = C[3]), p.$set(N), (!g || S & 32) && q(t, "unfolded", C[5]);
13956
+ S & 32 && (N.visible = C[5]), S & 2 && (N.textUnfolded = C[1]), S & 8 && (N.textItems = C[3]), m.$set(N), (!g || S & 32) && q(t, "unfolded", C[5]);
13957
13957
  },
13958
13958
  i(C) {
13959
- g || (D(e.$$.fragment, C), D(s.$$.fragment, C), D(d.$$.fragment, C), D(p.$$.fragment, C), g = !0);
13959
+ g || (D(e.$$.fragment, C), D(s.$$.fragment, C), D(d.$$.fragment, C), D(m.$$.fragment, C), g = !0);
13960
13960
  },
13961
13961
  o(C) {
13962
- M(e.$$.fragment, C), M(s.$$.fragment, C), M(d.$$.fragment, C), M(p.$$.fragment, C), g = !1;
13962
+ M(e.$$.fragment, C), M(s.$$.fragment, C), M(d.$$.fragment, C), M(m.$$.fragment, C), g = !1;
13963
13963
  },
13964
13964
  d(C) {
13965
- C && T(t), $(e), $(s), $(d), $(p), m(), A = !1, v();
13965
+ C && T(t), $(e), $(s), $(d), $(m), p(), v = !1, A();
13966
13966
  }
13967
13967
  };
13968
13968
  }
@@ -14169,12 +14169,12 @@ function qp(i) {
14169
14169
  };
14170
14170
  }
14171
14171
  function Kp(i) {
14172
- let t, e, n, o, s, r, a, l, c, d = i[0].text + "", u, h;
14173
- const p = [qp, _p], m = [];
14174
- function g(A, v) {
14175
- return A[0].linkType === Wi.VrLink ? 0 : A[0].linkType === Wi.NormalLink ? 1 : -1;
14172
+ let t, e, n, o, s, r, a, l, c, d = i[1].text + "", u, h, m;
14173
+ const p = [qp, _p], g = [];
14174
+ function v(A, w) {
14175
+ return A[1].linkType === Wi.VrLink ? 0 : A[1].linkType === Wi.NormalLink ? 1 : -1;
14176
14176
  }
14177
- return ~(n = g(i)) && (o = m[n] = p[n](i)), a = new Je({
14177
+ return ~(n = v(i)) && (o = g[n] = p[n](i)), a = new Je({
14178
14178
  props: {
14179
14179
  visible: !0,
14180
14180
  outDelay: 0,
@@ -14188,39 +14188,39 @@ function Kp(i) {
14188
14188
  }
14189
14189
  }), {
14190
14190
  c() {
14191
- t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), u = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86");
14191
+ t = j("div"), e = j("div"), o && o.c(), s = V(), r = j("div"), ee(a.$$.fragment), l = V(), c = j("div"), u = xe(d), b(e, "class", "icon svelte-7x7u86"), b(c, "class", "text svelte-7x7u86"), b(r, "class", "text-wrapper svelte-7x7u86"), b(t, "class", "wrapper svelte-7x7u86"), b(t, "data-link-type", h = i[0].data.linkType);
14192
14192
  },
14193
- m(A, v) {
14194
- B(A, t, v), Q(t, e), ~n && m[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, u), h = !0;
14193
+ m(A, w) {
14194
+ B(A, t, w), Q(t, e), ~n && g[n].m(e, null), Q(t, s), Q(t, r), K(a, r, null), Q(r, l), Q(r, c), Q(c, u), m = !0;
14195
14195
  },
14196
- p(A, [v]) {
14197
- let w = n;
14198
- n = g(A), n !== w && (o && (le(), M(m[w], 1, 1, () => {
14199
- m[w] = null;
14200
- }), ce()), ~n ? (o = m[n], o || (o = m[n] = p[n](A), o.c()), D(o, 1), o.m(e, null)) : o = null), (!h || v & 1) && d !== (d = A[0].text + "") && Me(u, d);
14196
+ p(A, [w]) {
14197
+ let y = n;
14198
+ n = v(A), n !== y && (o && (le(), M(g[y], 1, 1, () => {
14199
+ g[y] = null;
14200
+ }), ce()), ~n ? (o = g[n], o || (o = g[n] = p[n](A), o.c()), D(o, 1), o.m(e, null)) : o = null), (!m || w & 2) && d !== (d = A[1].text + "") && Te(u, d), (!m || w & 1 && h !== (h = A[0].data.linkType)) && b(t, "data-link-type", h);
14201
14201
  },
14202
14202
  i(A) {
14203
- h || (D(o), D(a.$$.fragment, A), h = !0);
14203
+ m || (D(o), D(a.$$.fragment, A), m = !0);
14204
14204
  },
14205
14205
  o(A) {
14206
- M(o), M(a.$$.fragment, A), h = !1;
14206
+ M(o), M(a.$$.fragment, A), m = !1;
14207
14207
  },
14208
14208
  d(A) {
14209
- A && T(t), ~n && m[n].d(), $(a);
14209
+ A && T(t), ~n && g[n].d(), $(a);
14210
14210
  }
14211
14211
  };
14212
14212
  }
14213
14213
  function $p(i, t, e) {
14214
14214
  let n, { tag: o } = t;
14215
14215
  return i.$$set = (s) => {
14216
- "tag" in s && e(1, o = s.tag);
14216
+ "tag" in s && e(0, o = s.tag);
14217
14217
  }, i.$$.update = () => {
14218
- i.$$.dirty & 2 && e(0, n = o.data);
14219
- }, [n, o];
14218
+ i.$$.dirty & 1 && e(1, n = o.data);
14219
+ }, [o, n];
14220
14220
  }
14221
14221
  class eg extends oe {
14222
14222
  constructor(t) {
14223
- super(), ie(this, t, $p, Kp, ne, { tag: 1 }, Zp);
14223
+ super(), ie(this, t, $p, Kp, ne, { tag: 0 }, Zp);
14224
14224
  }
14225
14225
  }
14226
14226
  function tg(i) {
@@ -14278,7 +14278,7 @@ function ig(i, t, e) {
14278
14278
  s == null || s();
14279
14279
  });
14280
14280
  function r(a) {
14281
- Te[a ? "unshift" : "push"](() => {
14281
+ ze[a ? "unshift" : "push"](() => {
14282
14282
  o = a, e(1, o);
14283
14283
  });
14284
14284
  }
@@ -14299,7 +14299,7 @@ function sg(i) {
14299
14299
  function rg(i) {
14300
14300
  let t, e;
14301
14301
  return t = new Vp({
14302
- props: { tag: Se(i[1]) }
14302
+ props: { tag: Le(i[1]) }
14303
14303
  }), {
14304
14304
  c() {
14305
14305
  ee(t.$$.fragment);
@@ -14309,7 +14309,7 @@ function rg(i) {
14309
14309
  },
14310
14310
  p(n, o) {
14311
14311
  const s = {};
14312
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14312
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14313
14313
  },
14314
14314
  i(n) {
14315
14315
  e || (D(t.$$.fragment, n), e = !0);
@@ -14325,7 +14325,7 @@ function rg(i) {
14325
14325
  function ag(i) {
14326
14326
  let t, e;
14327
14327
  return t = new eg({
14328
- props: { tag: Se(i[1]) }
14328
+ props: { tag: Le(i[1]) }
14329
14329
  }), {
14330
14330
  c() {
14331
14331
  ee(t.$$.fragment);
@@ -14335,7 +14335,7 @@ function ag(i) {
14335
14335
  },
14336
14336
  p(n, o) {
14337
14337
  const s = {};
14338
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14338
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14339
14339
  },
14340
14340
  i(n) {
14341
14341
  e || (D(t.$$.fragment, n), e = !0);
@@ -14351,7 +14351,7 @@ function ag(i) {
14351
14351
  function lg(i) {
14352
14352
  let t, e;
14353
14353
  return t = new Qp({
14354
- props: { tag: Se(i[1]) }
14354
+ props: { tag: Le(i[1]) }
14355
14355
  }), {
14356
14356
  c() {
14357
14357
  ee(t.$$.fragment);
@@ -14361,7 +14361,7 @@ function lg(i) {
14361
14361
  },
14362
14362
  p(n, o) {
14363
14363
  const s = {};
14364
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14364
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14365
14365
  },
14366
14366
  i(n) {
14367
14367
  e || (D(t.$$.fragment, n), e = !0);
@@ -14377,7 +14377,7 @@ function lg(i) {
14377
14377
  function cg(i) {
14378
14378
  let t, e;
14379
14379
  return t = new Xp({
14380
- props: { tag: Se(i[1]) }
14380
+ props: { tag: Le(i[1]) }
14381
14381
  }), {
14382
14382
  c() {
14383
14383
  ee(t.$$.fragment);
@@ -14387,7 +14387,7 @@ function cg(i) {
14387
14387
  },
14388
14388
  p(n, o) {
14389
14389
  const s = {};
14390
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14390
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14391
14391
  },
14392
14392
  i(n) {
14393
14393
  e || (D(t.$$.fragment, n), e = !0);
@@ -14403,7 +14403,7 @@ function cg(i) {
14403
14403
  function dg(i) {
14404
14404
  let t, e;
14405
14405
  return t = new Tp({
14406
- props: { tag: Se(i[1]) }
14406
+ props: { tag: Le(i[1]) }
14407
14407
  }), {
14408
14408
  c() {
14409
14409
  ee(t.$$.fragment);
@@ -14413,7 +14413,7 @@ function dg(i) {
14413
14413
  },
14414
14414
  p(n, o) {
14415
14415
  const s = {};
14416
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14416
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14417
14417
  },
14418
14418
  i(n) {
14419
14419
  e || (D(t.$$.fragment, n), e = !0);
@@ -14429,7 +14429,7 @@ function dg(i) {
14429
14429
  function ug(i) {
14430
14430
  let t, e;
14431
14431
  return t = new Jm({
14432
- props: { tag: Se(i[1]) }
14432
+ props: { tag: Le(i[1]) }
14433
14433
  }), {
14434
14434
  c() {
14435
14435
  ee(t.$$.fragment);
@@ -14439,7 +14439,7 @@ function ug(i) {
14439
14439
  },
14440
14440
  p(n, o) {
14441
14441
  const s = {};
14442
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14442
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14443
14443
  },
14444
14444
  i(n) {
14445
14445
  e || (D(t.$$.fragment, n), e = !0);
@@ -14455,7 +14455,7 @@ function ug(i) {
14455
14455
  function hg(i) {
14456
14456
  let t, e;
14457
14457
  return t = new og({
14458
- props: { tag: Se(i[1]) }
14458
+ props: { tag: Le(i[1]) }
14459
14459
  }), {
14460
14460
  c() {
14461
14461
  ee(t.$$.fragment);
@@ -14465,7 +14465,7 @@ function hg(i) {
14465
14465
  },
14466
14466
  p(n, o) {
14467
14467
  const s = {};
14468
- o & 2 && (s.tag = Se(n[1])), t.$set(s);
14468
+ o & 2 && (s.tag = Le(n[1])), t.$set(s);
14469
14469
  },
14470
14470
  i(n) {
14471
14471
  e || (D(t.$$.fragment, n), e = !0);
@@ -14489,48 +14489,48 @@ function fg(i) {
14489
14489
  ag,
14490
14490
  rg
14491
14491
  ], u = [];
14492
- function h(p, m) {
14493
- return p[1].element ? 0 : p[1].contentType === Xe.Text ? 1 : p[1].contentType === Xe.ImageText ? 2 : p[1].contentType === Xe.Audio ? 3 : p[1].contentType === Xe.Marketing ? 4 : p[1].contentType === Xe.Link ? 5 : p[1].contentType === Xe.MediaPlane ? 6 : -1;
14492
+ function h(m, p) {
14493
+ return m[1].element ? 0 : m[1].contentType === Xe.Text ? 1 : m[1].contentType === Xe.ImageText ? 2 : m[1].contentType === Xe.Audio ? 3 : m[1].contentType === Xe.Marketing ? 4 : m[1].contentType === Xe.Link ? 5 : m[1].contentType === Xe.MediaPlane ? 6 : -1;
14494
14494
  }
14495
14495
  return ~(o = h(i)) && (s = u[o] = d[o](i)), {
14496
14496
  c() {
14497
- var p, m, g;
14498
- t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-95x526"), q(n, "unfolded", (p = i[1].state) == null ? void 0 : p.unfolded), b(e, "class", "content__wrapper svelte-95x526"), b(t, "class", "content__container svelte-95x526"), b(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1 || ((m = i[1].temporaryState) == null ? void 0 : m.visible) === !1), q(t, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((g = i[1].state) != null && g.visible)), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].clickable === !1), R(t, "width", i[1].pointType === "PointTag" ? 0 : "100%"), R(t, "height", i[1].pointType === "PointTag" ? 0 : "100%");
14497
+ var m, p, g;
14498
+ t = j("div"), e = j("div"), n = j("div"), s && s.c(), b(n, "class", "content svelte-95x526"), q(n, "unfolded", (m = i[1].state) == null ? void 0 : m.unfolded), b(e, "class", "content__wrapper svelte-95x526"), b(t, "class", "content__container svelte-95x526"), b(t, "data-id", r = i[1].id), q(t, "disable", i[1].enabled === !1 || ((p = i[1].temporaryState) == null ? void 0 : p.visible) === !1), q(t, "hide", !i[3].visible || !i[3].enabled || !i[4].visible || !((g = i[1].state) != null && g.visible)), q(t, "withAnimation", i[0]), q(t, "unClickable", i[1].clickable === !1), R(t, "width", i[1].pointType === "PointTag" ? 0 : "100%"), R(t, "height", i[1].pointType === "PointTag" ? 0 : "100%");
14499
14499
  },
14500
- m(p, m) {
14501
- B(p, t, m), Q(t, e), Q(e, n), ~o && u[o].m(n, null), a = !0, l || (c = Ee(t, "click", $i(i[11])), l = !0);
14500
+ m(m, p) {
14501
+ B(m, t, p), Q(t, e), Q(e, n), ~o && u[o].m(n, null), a = !0, l || (c = Ee(t, "click", $i(i[11])), l = !0);
14502
14502
  },
14503
- p(p, [m]) {
14504
- var A, v, w;
14503
+ p(m, [p]) {
14504
+ var v, A, w;
14505
14505
  let g = o;
14506
- o = h(p), o === g ? ~o && u[o].p(p, m) : (s && (le(), M(u[g], 1, 1, () => {
14506
+ o = h(m), o === g ? ~o && u[o].p(m, p) : (s && (le(), M(u[g], 1, 1, () => {
14507
14507
  u[g] = null;
14508
- }), ce()), ~o ? (s = u[o], s ? s.p(p, m) : (s = u[o] = d[o](p), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || m & 2) && q(n, "unfolded", (A = p[1].state) == null ? void 0 : A.unfolded), (!a || m & 2 && r !== (r = p[1].id)) && b(t, "data-id", r), (!a || m & 2) && q(t, "disable", p[1].enabled === !1 || ((v = p[1].temporaryState) == null ? void 0 : v.visible) === !1), (!a || m & 26) && q(t, "hide", !p[3].visible || !p[3].enabled || !p[4].visible || !((w = p[1].state) != null && w.visible)), (!a || m & 1) && q(t, "withAnimation", p[0]), (!a || m & 2) && q(t, "unClickable", p[1].clickable === !1), m & 2 && R(t, "width", p[1].pointType === "PointTag" ? 0 : "100%"), m & 2 && R(t, "height", p[1].pointType === "PointTag" ? 0 : "100%");
14508
+ }), ce()), ~o ? (s = u[o], s ? s.p(m, p) : (s = u[o] = d[o](m), s.c()), D(s, 1), s.m(n, null)) : s = null), (!a || p & 2) && q(n, "unfolded", (v = m[1].state) == null ? void 0 : v.unfolded), (!a || p & 2 && r !== (r = m[1].id)) && b(t, "data-id", r), (!a || p & 2) && q(t, "disable", m[1].enabled === !1 || ((A = m[1].temporaryState) == null ? void 0 : A.visible) === !1), (!a || p & 26) && q(t, "hide", !m[3].visible || !m[3].enabled || !m[4].visible || !((w = m[1].state) != null && w.visible)), (!a || p & 1) && q(t, "withAnimation", m[0]), (!a || p & 2) && q(t, "unClickable", m[1].clickable === !1), p & 2 && R(t, "width", m[1].pointType === "PointTag" ? 0 : "100%"), p & 2 && R(t, "height", m[1].pointType === "PointTag" ? 0 : "100%");
14509
14509
  },
14510
- i(p) {
14510
+ i(m) {
14511
14511
  a || (D(s), a = !0);
14512
14512
  },
14513
- o(p) {
14513
+ o(m) {
14514
14514
  M(s), a = !1;
14515
14515
  },
14516
- d(p) {
14517
- p && T(t), ~o && u[o].d(), l = !1, c();
14516
+ d(m) {
14517
+ m && T(t), ~o && u[o].d(), l = !1, c();
14518
14518
  }
14519
14519
  };
14520
14520
  }
14521
14521
  function mg(i, t, e) {
14522
14522
  let n, o, s, r, { withAnimation: a = !1 } = t, { tag: l } = t, { hooks: c } = t, { state: d } = t, { mediaStore: u } = t, { temporaryState: h } = t;
14523
14523
  Qi("hooks", c), Qi("mediaStore", u);
14524
- let p, m;
14525
- function g(v) {
14526
- v ? c.emit("exposure", { id: r, type: "start" }) : c.emit("exposure", { id: r, type: "end" });
14524
+ let m, p;
14525
+ function g(A) {
14526
+ A ? c.emit("exposure", { id: r, type: "start" }) : c.emit("exposure", { id: r, type: "end" });
14527
14527
  }
14528
- const A = (v) => c.emit("click", { event: v, target: "TagContent", tag: l });
14529
- return i.$$set = (v) => {
14530
- "withAnimation" in v && e(0, a = v.withAnimation), "tag" in v && e(1, l = v.tag), "hooks" in v && e(2, c = v.hooks), "state" in v && e(3, d = v.state), "mediaStore" in v && e(5, u = v.mediaStore), "temporaryState" in v && e(4, h = v.temporaryState);
14528
+ const v = (A) => c.emit("click", { event: A, target: "TagContent", tag: l });
14529
+ return i.$$set = (A) => {
14530
+ "withAnimation" in A && e(0, a = A.withAnimation), "tag" in A && e(1, l = A.tag), "hooks" in A && e(2, c = A.hooks), "state" in A && e(3, d = A.state), "mediaStore" in A && e(5, u = A.mediaStore), "temporaryState" in A && e(4, h = A.temporaryState);
14531
14531
  }, i.$$.update = () => {
14532
- var v, w;
14533
- i.$$.dirty & 2 && e(9, n = (v = l.state) == null ? void 0 : v.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && h.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== m && (e(7, m = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== p && (e(6, p = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
14532
+ var A, w;
14533
+ i.$$.dirty & 2 && e(9, n = (A = l.state) == null ? void 0 : A.unfolded), i.$$.dirty & 2 && e(8, o = (w = l.state) == null ? void 0 : w.visible), i.$$.dirty & 280 && e(10, s = d.visible && h.visible && o), i.$$.dirty & 2 && (r = l.id), i.$$.dirty & 1024 && g(s), i.$$.dirty & 962 && l.hooks && (n !== void 0 && n !== p && (e(7, p = n), n ? l.hooks.emit("unfolded") : l.hooks.emit("folded")), o !== void 0 && o !== m && (e(6, m = o), o ? l.hooks.emit("show") : l.hooks.emit("hide")));
14534
14534
  }, [
14535
14535
  a,
14536
14536
  l,
@@ -14538,12 +14538,12 @@ function mg(i, t, e) {
14538
14538
  d,
14539
14539
  h,
14540
14540
  u,
14541
- p,
14542
14541
  m,
14542
+ p,
14543
14543
  o,
14544
14544
  n,
14545
14545
  s,
14546
- A
14546
+ v
14547
14547
  ];
14548
14548
  }
14549
14549
  class Ka extends oe {
@@ -14688,8 +14688,8 @@ function jr(i) {
14688
14688
  let t, e, n, o, s, r;
14689
14689
  const a = [Ig, Pg], l = [];
14690
14690
  function c(d, u) {
14691
- var h, p, m, g;
14692
- return ((p = (h = d[0].style) == null ? void 0 : h.point) == null ? void 0 : p.style) === "CustomIcon" && ((g = (m = d[0].style) == null ? void 0 : m.point) == null ? void 0 : g.iconUrl) ? 0 : 1;
14691
+ var h, m, p, g;
14692
+ return ((m = (h = d[0].style) == null ? void 0 : h.point) == null ? void 0 : m.style) === "CustomIcon" && ((g = (p = d[0].style) == null ? void 0 : p.point) == null ? void 0 : g.iconUrl) ? 0 : 1;
14693
14693
  }
14694
14694
  return n = c(i), o = l[n] = a[n](i), {
14695
14695
  c() {
@@ -14824,7 +14824,7 @@ function Qr(i) {
14824
14824
  props: {
14825
14825
  mediaStore: i[4],
14826
14826
  withAnimation: i[0],
14827
- tag: Se(i[1]),
14827
+ tag: Le(i[1]),
14828
14828
  hooks: i[2],
14829
14829
  state: i[3],
14830
14830
  temporaryState: i[5]
@@ -14838,7 +14838,7 @@ function Qr(i) {
14838
14838
  },
14839
14839
  p(n, o) {
14840
14840
  const s = {};
14841
- o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = Se(n[1])), o & 4 && (s.hooks = n[2]), o & 8 && (s.state = n[3]), o & 32 && (s.temporaryState = n[5]), t.$set(s);
14841
+ o & 16 && (s.mediaStore = n[4]), o & 1 && (s.withAnimation = n[0]), o & 2 && (s.tag = Le(n[1])), o & 4 && (s.hooks = n[2]), o & 8 && (s.state = n[3]), o & 32 && (s.temporaryState = n[5]), t.$set(s);
14842
14842
  },
14843
14843
  i(n) {
14844
14844
  e || (D(t.$$.fragment, n), e = !0);
@@ -14880,18 +14880,18 @@ function Sg(i) {
14880
14880
  let t, e, n, o, s, r = i[1].dimensionType === _e.Two && Qr(i), a = i[1].pointType === We.PointTag && ((c = (l = i[1].style) == null ? void 0 : l.point) == null ? void 0 : c.style) !== "noPoint" && Rr(i);
14881
14881
  return {
14882
14882
  c() {
14883
- t = j("div"), r && r.c(), e = V(), a && a.c(), b(t, "class", n = Le(`wrapper tag-${i[1].contentType}`) + " svelte-1vzhbu2"), b(t, "data-id", o = i[1].id), q(t, "hide", i[10]), q(t, "unfolded", i[6]), R(t, "left", i[9]), R(t, "top", i[8]), R(t, "z-index", i[7]);
14883
+ t = j("div"), r && r.c(), e = V(), a && a.c(), b(t, "class", "wrapper svelte-1vzhbu2"), b(t, "data-content-type", n = i[1].contentType), b(t, "data-id", o = i[1].id), q(t, "hide", i[10]), q(t, "unfolded", i[6]), R(t, "left", i[9]), R(t, "top", i[8]), R(t, "z-index", i[7]);
14884
14884
  },
14885
14885
  m(d, u) {
14886
14886
  B(d, t, u), r && r.m(t, null), Q(t, e), a && a.m(t, null), s = !0;
14887
14887
  },
14888
14888
  p(d, [u]) {
14889
- var h, p;
14889
+ var h, m;
14890
14890
  d[1].dimensionType === _e.Two ? r ? (r.p(d, u), u & 2 && D(r, 1)) : (r = Qr(d), r.c(), D(r, 1), r.m(t, e)) : r && (le(), M(r, 1, 1, () => {
14891
14891
  r = null;
14892
- }), ce()), d[1].pointType === We.PointTag && ((p = (h = d[1].style) == null ? void 0 : h.point) == null ? void 0 : p.style) !== "noPoint" ? a ? (a.p(d, u), u & 2 && D(a, 1)) : (a = Rr(d), a.c(), D(a, 1), a.m(t, null)) : a && (le(), M(a, 1, 1, () => {
14892
+ }), ce()), d[1].pointType === We.PointTag && ((m = (h = d[1].style) == null ? void 0 : h.point) == null ? void 0 : m.style) !== "noPoint" ? a ? (a.p(d, u), u & 2 && D(a, 1)) : (a = Rr(d), a.c(), D(a, 1), a.m(t, null)) : a && (le(), M(a, 1, 1, () => {
14893
14893
  a = null;
14894
- }), ce()), (!s || u & 2 && n !== (n = Le(`wrapper tag-${d[1].contentType}`) + " svelte-1vzhbu2")) && b(t, "class", n), (!s || u & 2 && o !== (o = d[1].id)) && b(t, "data-id", o), (!s || u & 1026) && q(t, "hide", d[10]), (!s || u & 66) && q(t, "unfolded", d[6]), u & 512 && R(t, "left", d[9]), u & 256 && R(t, "top", d[8]), u & 128 && R(t, "z-index", d[7]);
14894
+ }), ce()), (!s || u & 2 && n !== (n = d[1].contentType)) && b(t, "data-content-type", n), (!s || u & 2 && o !== (o = d[1].id)) && b(t, "data-id", o), (!s || u & 1024) && q(t, "hide", d[10]), (!s || u & 64) && q(t, "unfolded", d[6]), u & 512 && R(t, "left", d[9]), u & 256 && R(t, "top", d[8]), u & 128 && R(t, "z-index", d[7]);
14895
14895
  },
14896
14896
  i(d) {
14897
14897
  s || (D(r), D(a), s = !0);
@@ -14905,30 +14905,30 @@ function Sg(i) {
14905
14905
  };
14906
14906
  }
14907
14907
  function zg(i, t, e) {
14908
- let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: u } = t, { state: h } = t, { mediaStore: p } = t, { temporaryState: m } = t, g, A = !1;
14909
- function v(y) {
14910
- g !== void 0 && clearTimeout(g), A = !0, g = setTimeout(
14908
+ let n, o, s, r, a, l, { withAnimation: c = !1 } = t, { tag: d } = t, { hooks: u } = t, { state: h } = t, { mediaStore: m } = t, { temporaryState: p } = t, g, v = !1;
14909
+ function A(y) {
14910
+ g !== void 0 && clearTimeout(g), v = !0, g = setTimeout(
14911
14911
  () => {
14912
- A = !1;
14912
+ v = !1;
14913
14913
  },
14914
14914
  800
14915
14915
  );
14916
14916
  }
14917
14917
  const w = (y) => {
14918
- A || u.emit("click", { event: y, target: "TagPoint", tag: d });
14918
+ v || u.emit("click", { event: y, target: "TagPoint", tag: d });
14919
14919
  };
14920
14920
  return i.$$set = (y) => {
14921
- "withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, u = y.hooks), "state" in y && e(3, h = y.state), "mediaStore" in y && e(4, p = y.mediaStore), "temporaryState" in y && e(5, m = y.temporaryState);
14921
+ "withAnimation" in y && e(0, c = y.withAnimation), "tag" in y && e(1, d = y.tag), "hooks" in y && e(2, u = y.hooks), "state" in y && e(3, h = y.state), "mediaStore" in y && e(4, m = y.mediaStore), "temporaryState" in y && e(5, p = y.temporaryState);
14922
14922
  }, i.$$.update = () => {
14923
14923
  var y, x, L, C;
14924
- i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (x = d.state) == null ? void 0 : x.unfolded), i.$$.dirty & 2 && e(9, r = ((L = d.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && v();
14924
+ i.$$.dirty & 2 && e(12, n = (y = d.state) == null ? void 0 : y.visible), i.$$.dirty & 4096 && e(10, o = !n), i.$$.dirty & 2 && e(6, s = (x = d.state) == null ? void 0 : x.unfolded), i.$$.dirty & 2 && e(9, r = ((L = d.pointTagStyle) == null ? void 0 : L.leftPercent) + "%"), i.$$.dirty & 2 && e(8, a = ((C = d.pointTagStyle) == null ? void 0 : C.topPercent) + "%"), i.$$.dirty & 2 && e(7, l = d.contentType === Xe.Link ? 1 : 0), i.$$.dirty & 64 && A();
14925
14925
  }, [
14926
14926
  c,
14927
14927
  d,
14928
14928
  u,
14929
14929
  h,
14930
- p,
14931
14930
  m,
14931
+ p,
14932
14932
  s,
14933
14933
  l,
14934
14934
  a,
@@ -15033,9 +15033,9 @@ function Fr(i, t) {
15033
15033
  B(l, e, c), K(n, e, null), Q(e, o), s = !0;
15034
15034
  },
15035
15035
  p(l, c) {
15036
- var u, h, p;
15036
+ var u, h, m;
15037
15037
  t = l;
15038
- const d = c & 63 ? Be(r, [
15038
+ const d = c & 63 ? Me(r, [
15039
15039
  {
15040
15040
  tag: t[6],
15041
15041
  hooks: t[2],
@@ -15045,7 +15045,7 @@ function Fr(i, t) {
15045
15045
  withAnimation: t[0]
15046
15046
  }
15047
15047
  ]) : {};
15048
- n.$set(d), (!s || c & 2) && q(e, "hide", !((u = t[6].pointTagStyle) != null && u.leftPercent) || !((h = t[6].pointTagStyle) != null && h.topPercent) || t[6].enabled === !1 || !t[6].state || ((p = t[6].temporaryState) == null ? void 0 : p.visible) === !1);
15048
+ n.$set(d), (!s || c & 2) && q(e, "hide", !((u = t[6].pointTagStyle) != null && u.leftPercent) || !((h = t[6].pointTagStyle) != null && h.topPercent) || t[6].enabled === !1 || !t[6].state || ((m = t[6].temporaryState) == null ? void 0 : m.visible) === !1);
15049
15049
  },
15050
15050
  i(l) {
15051
15051
  s || (D(n.$$.fragment, l), s = !0);
@@ -15164,8 +15164,8 @@ class Hg extends di {
15164
15164
  if (l || (l = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[a] = l), n === void 0)
15165
15165
  return l;
15166
15166
  if (o === void 0) {
15167
- const p = l.get(n);
15168
- return p || (l.set(n, {}), l.get(n));
15167
+ const m = l.get(n);
15168
+ return m || (l.set(n, {}), l.get(n));
15169
15169
  }
15170
15170
  return (h = l.get(n)) == null ? void 0 : h[o];
15171
15171
  }
@@ -15204,7 +15204,7 @@ class Og extends Hg {
15204
15204
  return o.visible;
15205
15205
  {
15206
15206
  const a = (() => {
15207
- var d, u, h, p, m;
15207
+ var d, u, h, m, p;
15208
15208
  const l = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, c = this.getDistance(e);
15209
15209
  if (typeof l == "function")
15210
15210
  return l(this.five, { tag: e, distance: c });
@@ -15220,10 +15220,10 @@ class Og extends Hg {
15220
15220
  const g = (h = this.five.work.observers[s]) == null ? void 0 : h.position;
15221
15221
  if (g === void 0)
15222
15222
  throw new Error(`getVisible(): observerPosition is ${g}`);
15223
- const A = jn(e.position).sub(g).normalize();
15224
- this.raycaster.set(g, A);
15225
- const [v] = this.five.model.intersectRaycaster(this.raycaster), w = (m = (p = l.intersectRaycaster) == null ? void 0 : p.distanceAccuracy) != null ? m : 0.01;
15226
- if (v && v.distance + w < c)
15223
+ const v = jn(e.position).sub(g).normalize();
15224
+ this.raycaster.set(g, v);
15225
+ const [A] = this.five.model.intersectRaycaster(this.raycaster), w = (p = (m = l.intersectRaycaster) == null ? void 0 : m.distanceAccuracy) != null ? p : 0.01;
15226
+ if (A && A.distance + w < c)
15227
15227
  return !1;
15228
15228
  }
15229
15229
  return !(l.angleRange && e.dimensionType === _e.Three && Qn(this.getAngle(e), l.angleRange) === !1);
@@ -15285,16 +15285,16 @@ class Og extends Hg {
15285
15285
  }
15286
15286
  if (r.autoUnfold.strategy === "MinimumDistance") {
15287
15287
  const d = this.filterPointTag().filter((h) => this.getVisibleByPanoIndex(h)).filter((h) => {
15288
- const p = this.getTagProject(h);
15289
- if (!p)
15288
+ const m = this.getTagProject(h);
15289
+ if (!m)
15290
15290
  return !1;
15291
- const { x: m, y: g, z: A } = p;
15292
- return !(Math.abs(A) > 1 || Math.abs(m) > 1 || Math.abs(g) > 1);
15291
+ const { x: p, y: g, z: v } = m;
15292
+ return !(Math.abs(v) > 1 || Math.abs(p) > 1 || Math.abs(g) > 1);
15293
15293
  }).filter((h) => {
15294
- var m;
15295
- const p = this.getTagConfig(h).unfoldedConfig;
15296
- return typeof p == "object" && ((m = p.autoUnfold) == null ? void 0 : m.strategy) === "MinimumDistance";
15297
- }).map((h) => ({ id: h.id, distance: this.getDistance(h) })).filter((h) => h.distance !== void 0).sort((h, p) => h.distance - p.distance).findIndex((h) => h.id === e.id);
15294
+ var p;
15295
+ const m = this.getTagConfig(h).unfoldedConfig;
15296
+ return typeof m == "object" && ((p = m.autoUnfold) == null ? void 0 : p.strategy) === "MinimumDistance";
15297
+ }).map((h) => ({ id: h.id, distance: this.getDistance(h) })).filter((h) => h.distance !== void 0).sort((h, m) => h.distance - m.distance).findIndex((h) => h.id === e.id);
15298
15298
  if (d === -1 || d <= ((a = r.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
15299
15299
  return !1;
15300
15300
  }
@@ -16076,7 +16076,7 @@ function $g() {
16076
16076
  });
16077
16077
  i.appendChild(t), t.appendChild(e);
16078
16078
  const n = "-4px", o = { direction: "nesw", element: ht({ cursor: "nesw-resize", left: n, bottom: n }) }, s = { direction: "ns", element: ht({ cursor: "ns-resize", bottom: n }) }, r = { direction: "nwse", element: ht({ cursor: "nwse-resize", right: n, bottom: n }) }, a = { direction: "ew", element: ht({ cursor: "ew-resize", right: n }) }, l = { direction: "nesw", element: ht({ cursor: "nesw-resize", right: n, top: n }) }, c = { direction: "ns", element: ht({ cursor: "ns-resize", top: n }) }, d = { direction: "nwse", element: ht({ cursor: "nwse-resize", left: n, top: n }) }, u = { direction: "ew", element: ht({ cursor: "ew-resize", left: n }) };
16079
- return new Array(s, a, c, u, o, r, l, d).forEach((p) => t.appendChild(p.element)), { container: i, squares: [
16079
+ return new Array(s, a, c, u, o, r, l, d).forEach((m) => t.appendChild(m.element)), { container: i, squares: [
16080
16080
  o,
16081
16081
  s,
16082
16082
  r,
@@ -16821,10 +16821,10 @@ class l0 extends po {
16821
16821
  case "z":
16822
16822
  return u;
16823
16823
  }
16824
- })(), p = new E.Plane().setFromNormalAndCoplanarPoint(h, s), m = new E.Vector3();
16825
- p.projectPoint(s.clone(), m);
16826
- const g = m.clone().sub(r), A = g.clone(), v = g.angleTo(a.baseAxes);
16827
- this.setAngleHelperStart(o, v), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: g.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: g, staticStartVector: A, plane: p, angleHelper: a }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${o}`, "color: #e5af2e");
16824
+ })(), m = new E.Plane().setFromNormalAndCoplanarPoint(h, s), p = new E.Vector3();
16825
+ m.projectPoint(s.clone(), p);
16826
+ const g = p.clone().sub(r), v = g.clone(), A = g.angleTo(a.baseAxes);
16827
+ this.setAngleHelperStart(o, A), this.setAngleHelperLength(o, 0), this.rotations.push({ vector: g.clone(), direction: !0 }), this.startInfo = { direction: o, startVector: g, staticStartVector: v, plane: m, angleHelper: a }, this.helperObject3D.showDraggingHelper([o]), this.hooks.emit("rotateStart"), this.isDragging = !0, console.log(`%c RotateController dragStart ${o}`, "color: #e5af2e");
16828
16828
  }
16829
16829
  dragging(e) {
16830
16830
  var o;
@@ -16844,24 +16844,24 @@ class l0 extends po {
16844
16844
  const h = u.clone().sub(d);
16845
16845
  if (n.angleTo(h) === 0 || (this.lastRotation === void 0 && (this.lastRotation = { angle: 0 }), this.rotations.length === 0))
16846
16846
  return;
16847
- const p = (() => {
16847
+ const m = (() => {
16848
16848
  if (this.rotations.length === 1)
16849
16849
  return h.angleTo(s.baseAxes) > r.angleTo(s.baseAxes);
16850
16850
  {
16851
- const g = this.rotations[this.rotations.length - 1], A = this.rotations[this.rotations.length - 2], v = h.angleTo(A.vector), w = h.angleTo(g.vector), y = g.vector.angleTo(A.vector);
16852
- if (y === 0 || w === 0 || v === 0)
16851
+ const g = this.rotations[this.rotations.length - 1], v = this.rotations[this.rotations.length - 2], A = h.angleTo(v.vector), w = h.angleTo(g.vector), y = g.vector.angleTo(v.vector);
16852
+ if (y === 0 || w === 0 || A === 0)
16853
16853
  return;
16854
- if (v > w && v > y)
16854
+ if (A > w && A > y)
16855
16855
  return g.direction;
16856
- if (v < y && w < y || v < w && w > y)
16856
+ if (A < y && w < y || A < w && w > y)
16857
16857
  return !g.direction;
16858
16858
  }
16859
16859
  })();
16860
- if (p === void 0)
16860
+ if (m === void 0)
16861
16861
  return console.warn("rotationDirection is undefined");
16862
- this.rotations.push({ vector: h, direction: p }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + h.angleTo(n) * (p ? 1 : -1), this.setAngleHelperLength(a, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
16863
- const m = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize());
16864
- l.applyQuaternion(m), this.helperObject3D.applyHelperQuaternion(m), this.helperObject3DQuaternion.premultiply(m), this.hooks.emit("rotateUpdate", { quaternion: m, origin: d }), this.startInfo.startVector = h;
16862
+ this.rotations.push({ vector: h, direction: m }), this.rotations = this.rotations.slice(-2), this.lastRotation.angle = this.lastRotation.angle + h.angleTo(n) * (m ? 1 : -1), this.setAngleHelperLength(a, this.lastRotation.angle), this.setTipsAngle(this.lastRotation.angle / Math.PI * 180);
16863
+ const p = new E.Quaternion().setFromUnitVectors(n.clone().normalize(), h.clone().normalize());
16864
+ l.applyQuaternion(p), this.helperObject3D.applyHelperQuaternion(p), this.helperObject3DQuaternion.premultiply(p), this.hooks.emit("rotateUpdate", { quaternion: p, origin: d }), this.startInfo.startVector = h;
16865
16865
  }
16866
16866
  dragEnd() {
16867
16867
  !this.isDragging || (console.log("%c RotateController dragEnd", "color: #e94e4e"), this.startInfo = void 0, this.isDragging = !1, this.lastRotation = void 0, this.rotations = [], this.helperObject3D.show(), this.hooks.emit("rotateEnd"));
@@ -16956,7 +16956,7 @@ class c0 extends po {
16956
16956
  const a = e.ray.intersectPlane(s, new _());
16957
16957
  if (!a || Vg(a, this.camera.position))
16958
16958
  return;
16959
- const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new _().subVectors(r[1], r[0]), h = new _().subVectors(r[3], r[0]), p = (N) => {
16959
+ const l = new _().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: d } = o, u = new _().subVectors(r[1], r[0]), h = new _().subVectors(r[3], r[0]), m = (N) => {
16960
16960
  const Y = new _(0, 0, 0);
16961
16961
  if (!this.startInfo)
16962
16962
  return Y;
@@ -16973,13 +16973,13 @@ class c0 extends po {
16973
16973
  }
16974
16974
  const W = new _().subVectors(z, I), Z = W.length();
16975
16975
  return Z > 0.3 ? (console.warn("offset.length() > 0.3, skipped", Z), Y) : W;
16976
- }, m = p("ew"), g = p("ns"), A = () => {
16977
- const N = m;
16976
+ }, p = m("ew"), g = m("ns"), v = () => {
16977
+ const N = p;
16978
16978
  this.helperObject3D.cornerPositions.forEach((Y, P) => {
16979
16979
  var I;
16980
16980
  (I = this.startInfo) != null && I.dragPointInCenterLeft ? (P === 0 || P === 3) && Y.add(N) : (P === 1 || P === 2) && Y.add(N);
16981
16981
  });
16982
- }, v = () => {
16982
+ }, A = () => {
16983
16983
  const N = g;
16984
16984
  this.helperObject3D.cornerPositions.forEach((Y, P) => {
16985
16985
  var I;
@@ -16988,14 +16988,14 @@ class c0 extends po {
16988
16988
  };
16989
16989
  switch (d) {
16990
16990
  case "ew":
16991
- A();
16991
+ v();
16992
16992
  break;
16993
16993
  case "ns":
16994
- v();
16994
+ A();
16995
16995
  break;
16996
16996
  case "nesw":
16997
16997
  case "nwse":
16998
- A(), v();
16998
+ v(), A();
16999
16999
  }
17000
17000
  const w = new _().subVectors(r[1], r[0]).length() / u.length(), y = new _().subVectors(r[3], r[0]).length() / h.length(), x = new _(w, y, 1), L = new E.Matrix4().scale(x);
17001
17001
  n.isCSS3DObjectPlus ? n.applyScaleMatrix4(L) : n.scale.applyMatrix4(L), o.position.copy(a);
@@ -17089,17 +17089,17 @@ class m0 extends di {
17089
17089
  if (l) {
17090
17090
  let u;
17091
17091
  s && r && (u = { container: s });
17092
- const h = new Kg(e, u), p = new Ti(this.five, l0, e, h);
17093
- o.addControllers({ rotateController: p.helperController });
17092
+ const h = new Kg(e, u), m = new Ti(this.five, l0, e, h);
17093
+ o.addControllers({ rotateController: m.helperController });
17094
17094
  }
17095
17095
  if (c && s) {
17096
17096
  const u = new e0(e, s, r, this.five.scene), h = new Ti(this.five, d0, e, u);
17097
17097
  o.addControllers({ scaleController: h.helperController });
17098
17098
  }
17099
17099
  e.isCSS3DObjectPlus && Kr(this.five).then(() => {
17100
- var p, m;
17101
- const u = e, h = (p = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? p : $r(this.five);
17102
- h && (this.css3DObjectParentMap.set(u, u.parent), u.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(h), (m = this.css3DRender.getBehindCSS3DObjectGroup()) == null || m.add(u), this.css3DRender.render(this.five.camera));
17100
+ var m, p;
17101
+ const u = e, h = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : $r(this.five);
17102
+ h && (this.css3DObjectParentMap.set(u, u.parent), u.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(h), (p = this.css3DRender.getBehindCSS3DObjectGroup()) == null || p.add(u), this.css3DRender.render(this.five.camera));
17103
17103
  });
17104
17104
  }
17105
17105
  removeObject3DHelper(e) {
@@ -17249,10 +17249,10 @@ class tl {
17249
17249
  render() {
17250
17250
  if (!this.five.renderer || !this.containerDom)
17251
17251
  return;
17252
- const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, p = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), m = Math.floor(n * a), g = Math.floor(o * a);
17253
- g0(p, m, g);
17254
- const A = new ImageData(m, g);
17255
- A.data.set(p), e.putImageData(A, 0, 0);
17252
+ const { scale: t, context: e, width: n, height: o } = this, s = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new E.Vector2()), a = 1, l = n / t, c = o / t, d = a * t, u = (s.x + 1) / 2 * r.x, h = (s.y + 1) / 2 * r.y, m = this.five.getPixels(u - l / 2, h - l / 2, l, c, d), p = Math.floor(n * a), g = Math.floor(o * a);
17253
+ g0(m, p, g);
17254
+ const v = new ImageData(p, g);
17255
+ v.data.set(m), e.putImageData(v, 0, 0);
17256
17256
  }
17257
17257
  initStyle() {
17258
17258
  const t = this.canvas;