@realsee/dnalogel 2.3.9-alpha.4 → 2.3.9-alpha.5
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.
- package/dist/index.cjs.js +2 -2
- package/dist/index.js +15 -13
- package/dist/index.umd.js +2 -2
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +41 -41
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +16 -16
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +10 -10
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/VERSION.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/PanoTagPlugin/Components/Common/Audio.js +13 -13
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +25 -25
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +62 -60
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +40 -40
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -541,7 +541,7 @@ void main() {
|
|
|
541
541
|
${i[8]?"transform: translateX(-50%); left: 50%":""}
|
|
542
542
|
${i[9]?"transform: translateX(-50%); top: 50%":""}
|
|
543
543
|
${i[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
|
|
544
|
-
`))&&b(t,"style",e),a&8&&z(t,"width",_e(i[3])),a&16&&z(t,"height",_e(i[4])),a&8192&&z(t,"z-index",i[13])},i(r){s||(r&&ze(()=>{o&&o.end(1),n=Tt(t,Vt,{duration:i[0]}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=qt(t,Vt,{duration:i[1]})),s=!1},d(r){r&&M(t),r&&o&&o.end()}}}function Om(i){let t,e=i[2]&&Jr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,[o]){n[2]?e?(e.p(n,o),o&4&&k(e,1)):(e=Jr(n),e.c(),k(e,1),e.m(t.parentNode,t)):e&&(re(),S(e,1,1,()=>{e=null}),ae())},i(n){k(e)},o(n){S(e)},d(n){e&&e.d(n),n&&M(t)}}}function _e(i){return typeof i=="number"?i/16+"rem":i}function Rm(i,t,e){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:u=!1}=t,{horizontalCenter:d=!1}=t,{verticalCenter:f=!1}=t,{blurRadius:h}=t,{spreadRadius:p}=t,{opacity:g=.15}=t,{zIndex:A=void 0}=t;return i.$$set=v=>{"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,u=v.center),"horizontalCenter"in v&&e(8,d=v.horizontalCenter),"verticalCenter"in v&&e(9,f=v.verticalCenter),"blurRadius"in v&&e(10,h=v.blurRadius),"spreadRadius"in v&&e(11,p=v.spreadRadius),"opacity"in v&&e(12,g=v.opacity),"zIndex"in v&&e(13,A=v.zIndex)},[n,o,s,r,a,l,c,u,d,f,h,p,g,A]}class ot extends se{constructor(t){super(),oe(this,t,Rm,Om,ie,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},Qm)}}function Fm(i,t){t.forEach(e=>{const n=new x.SphereGeometry(.02,16,16),o=[],s=[new x.MeshBasicMaterial({color:16776960}),new x.MeshBasicMaterial({color:16711935}),new x.MeshBasicMaterial({color:16711680}),new x.MeshBasicMaterial({color:65535})];if(e.position.length===4)e.position.forEach((r,a)=>{const l=s[a],c=new x.Mesh(n,l);c.position.copy(lt(r)),o.push(c)});else{const r=s[0],a=new x.Mesh(n,r);a.position.copy(lt(e.position)),o.push(a)}o.forEach(r=>{r.material.depthTest=!1,i.scene.add(r)})})}const xe=i=>i;function Zr(i){if(i.length<3)return;const t=i.map(hn),e=t[1].clone().sub(t[0]),n=t[2].clone().sub(t[1]);return e.cross(n)}function di(i){if(Array.isArray(i)&&i.length===4){const e=i.map(hn);return To(e[0],e[2])}else return hn(i)}function yn(i,t){if(i===void 0)return;const{min:e,max:n}=t!=null?t:{};if(!(e===void 0&&n===void 0))return!(typeof n=="number"&&n<i||typeof e=="number"&&e>i)}function Gm(i){return new Promise(t=>{i.model.loaded?t():i.once("modelLoaded",()=>t())})}function Hm(i,t,e){const o=new x.Plane().setFromNormalAndCoplanarPoint(e,t),s=t.clone().sub(i).cross(new x.Vector3(0,1,0)).setLength(.01),r=new x.Vector3(0,.01,0);return[t.clone().sub(s).sub(r),t.clone().add(s).sub(r),t.clone().add(s).add(r),t.clone().sub(s).add(r)].map(l=>o.projectPoint(l,new x.Vector3))}const qr=(i,t=1e3/60)=>{let e=null;const n=i;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},t)}};function Nm(i,t=200){let e;return function(...n){e||(i.apply(this,n),e=setTimeout(function(){e=null},t))}}function Wm(i,t){const[e,n]=t;if(e>=n||n<=1||e<=1)return-1;const o={},s=r=>(o[r]||(o[r]=i(r)),o[r]);for(let r=e;r<n;r++){const a=s(r),l=s(r-1);if(a<l)return r}return-1}function Kr(i,t){if(!t||typeof ResizeObserver=="undefined"||!ResizeObserver)return{observe:()=>window.addEventListener("resize",i),unobserve:()=>window.removeEventListener("resize",i)};{const e=new ResizeObserver(i);return{observe:()=>e.observe(t),unobserve:()=>e.unobserve(t)}}}function _m(){return Math.random().toString(36).slice(-6)}const io=_m();function Xm(i){le(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function $r(i,t,e){const n=i.slice();return n[18]=t[e].id,n[0]=t[e].content,n[19]=t,n[20]=e,n}function Ym(i){let t,e=i[0]+"",n,o=i[20];const s=()=>i[9](t,o),r=()=>i[9](null,o);return{c(){t=B("span"),n=Pe(e),b(t,"class","text-char svelte-1b2n9wi")},m(a,l){T(a,t,l),j(t,n),s()},p(a,l){i=a,l&4&&e!==(e=i[0]+"")&&ke(n,e),o!==i[20]&&(r(),o=i[20],s())},d(a){a&&M(t),r()}}}function Um(i){let t,e=i[20];const n=()=>i[8](t,e),o=()=>i[8](null,e);return{c(){t=B("span"),t.textContent="\xA0",b(t,"class","text-char svelte-1b2n9wi")},m(s,r){T(s,t,r),n()},p(s,r){i=s,e!==i[20]&&(o(),e=i[20],n())},d(s){s&&M(t),o()}}}function ea(i,t){let e,n;function o(a,l){return a[0]===a[3]?Um:Ym}let s=o(t),r=s(t);return{key:i,first:null,c(){e=me(),r.c(),n=me(),this.first=e},m(a,l){T(a,e,l),r.m(a,l),T(a,n,l)},p(a,l){t=a,s===(s=o(t))&&r?r.p(t,l):(r.d(1),r=s(t),r&&(r.c(),r.m(n.parentNode,n)))},d(a){a&&M(e),r.d(a),a&&M(n)}}}function Jm(i){let t=[],e=new Map,n,o=i[2];const s=r=>r[18];for(let r=0;r<o.length;r+=1){let a=$r(i,o,r),l=s(a);e.set(l,t[r]=ea(l,a))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();n=me()},m(r,a){for(let l=0;l<t.length;l+=1)t[l].m(r,a);T(r,n,a)},p(r,[a]){a&14&&(o=r[2],t=$e(t,a,s,1,r,o,e,n.parentNode,Mi,ea,n,$r))},i:J,o:J,d(r){for(let a=0;a<t.length;a+=1)t[a].d(r);r&&M(n)}}}function Zm(i,t,e){let n,{inDelay:o=0}=t,{outDelay:s=0}=t,{content:r}=t,{unfolded:a}=t,{isFistUnfoldedUpdate:l=!0}=t;const c=`__EMOJI_SPLIT_${io}__`,u=`__EMOJI_${io}__`,d=`__SPACE_${io}__`;let f,h,p=[];function g(I){const C=[],L=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu"));return I.slice().replace(L,D=>`${c}${u}${D}${c}`).split(c).forEach(D=>D.startsWith(u)?C.push({id:He(),content:D.slice(u.length)}):C.push(...D.split("").map(V=>V===" "?d:V).map(V=>({id:He(),content:V})))),C}function A(){if(!h)return;const I=!a;h.reversed!==I&&h.reverse(),h.play()}function v(I){if(l){e(4,l=!1);return}clearTimeout(f),f=setTimeout(A,I?o:s)}function w(I){const C=function(){const L=Wm(D=>I[D].getBoundingClientRect().x,[Math.min(I.length-1,10),Math.min(I.length-1,30)]);if(L>0)return L}();h=xo.default({targets:I.slice(0,C).filter(Ze),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:xo.default.stagger(50),easing:"easeInOutCubic"}),a&&h.seek(h.duration)}function y(I,C){Te[I?"unshift":"push"](()=>{p[C]=I,e(1,p)})}function E(I,C){Te[I?"unshift":"push"](()=>{p[C]=I,e(1,p)})}return i.$$set=I=>{"inDelay"in I&&e(5,o=I.inDelay),"outDelay"in I&&e(6,s=I.outDelay),"content"in I&&e(0,r=I.content),"unfolded"in I&&e(7,a=I.unfolded),"isFistUnfoldedUpdate"in I&&e(4,l=I.isFistUnfoldedUpdate)},i.$$.update=()=>{i.$$.dirty&1&&e(2,n=g(r)),i.$$.dirty&128&&v(a),i.$$.dirty&2&&w(p.filter(I=>!!I))},[r,p,n,d,l,o,s,a,y,E]}class ta extends se{constructor(t){super(),oe(this,t,Zm,Jm,ie,{inDelay:5,outDelay:6,content:0,unfolded:7,isFistUnfoldedUpdate:4},Xm)}}const qm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013q3IWVV5r2aw/2TK+svWbPGU68KQCa6pYeus1V0X99quSfvtVSc39lmfz2mdbz32tg1dAJ0421AVs9E7/FxBSezrMmjI/gm5/nYmMkBq+TqBs7LNgTlZH6EnWlPmORdk+pHQipUNfTxtg7p3NIXWRMvXfoqusmXsNhpC6crIS1Zf9C6yAOdlxpK5BW18CiT7A/G93gE+P0FY/RoO+RWqS62YhB2r4YhlixArECsQKxArECvzjCnwAOr0wF44ggHAAAAAASUVORK5CYII=",Km="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAACoCAMAAAD6pITnAAABQVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACvr68AAAAAAAAAAAB5eXkAAAA8PDzr6+sLCwuenp4UFBT////8/PyLi4umpqZycnKxsbHMzMykpKTy8vKoqKhcXFwpKSmwsLD+/v7k5OSCgoLw8PDo6Oi0tLRkZGSrq6syMjL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tK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=",ep="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri2sa6rnIyHhX54bVtZVU9NSUcsJSIcFROno6Hcwp+ekHVxbWhnRC8nDLc9s8oAAAOGSURBVEjHpdd3X9pAGAfwkBBDAoQmBJmWvUWWiIDIHoJb66x7a4d78Op7pBQ1J5DY33987vnyXEIu3CGy/0hvnDthM+l0hj3JScSudDKOdhNPpl1i8Ut624Gi6+trI3zW1tcdqGM7/SIC5/ZRR2SNJEm7JkHt7FAJjR18WIs40P3cAFxIOaIRna6ZOHxGunk+TDR1ukjUkSr0w86bcKShiz1OI4JMP8YAD9+4emM2Gm407IfIhzm0NxrhKNsLH4SvQ+RktyvUfZIMXYcPPsSFCcvY6EYW6ZPsxuiYZaLwAW5bDY70Da5paxjvm8d+UcjAUL/GzPtCnDF/mwFWhJ75Zs68x05gxxFRGQfa+RYXokHVCC4O4yOqYLTwBjNB+ncWEZnsbzrIvOLz4CW9g4jODn0ZPO/iZN0UmhaPp0Omq+Q/nLu6NO0hErJnurjKdTBzEdAhkqILXDAdbFkJ7EnDe4EVy198srpiwhE4X1RKDFOqviBwcNPK6gmPmeWlGDz+VdHqRPEVHo0tLTM8RpcX4G+flLe6kU/Cs1pYRnm8uriQhfoC+0ZDvbMLi6ttfO5fDCDCKFrvooAKAov+c4BZvy8EzaolCHRdIZ+fBThl9G0Ih1RCrBJWbPiMKYAZ409oMSqFWAktzJ9GBuDvRoVGOIQJMSas0CiM39u45v0M9tbaeLc6F5M+7dhcbRfgg+pcU/oNa85VDwDOzBtmpP9UKsN8BuCzeb1P+kPi08+fASyr6fVPUh/PJ72+xj/bZk5PSV0YlJ4z83iC4EipS5LkiAkeHxGcQerLwMARRzyW+QklhUgKpST8nXfYg+fHkjS89MPz0MFnhKdCSWpc8RBnPAZB3RUvLt7i3oob7f5juDzuikY81tjcHlcHg9xabdyUWDvF2ay3slecr1ptimNx9lhhs1bzXQxy5NZa6VMx9pS2Wt1H77cVjFartYvBdlDICDc0cbVa3Twd2NcOyuLwVqo+K1ebjgdcr0k+O1uXwThfl8vlhqm+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==";function tp(i){le(i,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function na(i){let t,e,n,o,s,r,a,l,c,u;return e=new ot({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),b(o,"class",s="arrow "+i[0]+" svelte-1ogmlqq"),z(o,"background-image","url("+qm+")"),b(t,"class","arrow-wrapper svelte-1ogmlqq")},m(d,f){T(d,t,f),K(e,t,null),j(t,n),j(t,o),l=!0,c||(u=Me(o,"click",i[5]),c=!0)},p(d,f){i=d,(!l||f&1&&s!==(s="arrow "+i[0]+" svelte-1ogmlqq"))&&b(o,"class",s)},i(d){l||(k(e.$$.fragment,d),d&&ze(()=>{a&&a.end(1),r=Tt(o,Vt,{duration:i[2],delay:i[3],easing:Kt}),r.start()}),l=!0)},o(d){S(e.$$.fragment,d),r&&r.invalidate(),d&&(a=qt(o,Vt,{duration:i[2],delay:i[4],easing:Kt})),l=!1},d(d){d&&M(t),$(e),d&&a&&a.end(),c=!1,u()}}}function np(i){let t,e,n=i[1]&&na(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=na(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function ip(i,t,e){let{direction:n="right"}=t,{visible:o=!0}=t,{duration:s=0}=t,{inDelay:r=0}=t,{outDelay:a=0}=t;function l(c){lc.call(this,i,c)}return i.$$set=c=>{"direction"in c&&e(0,n=c.direction),"visible"in c&&e(1,o=c.visible),"duration"in c&&e(2,s=c.duration),"inDelay"in c&&e(3,r=c.inDelay),"outDelay"in c&&e(4,a=c.outDelay)},[n,o,s,r,a,l]}class op extends se{constructor(t){super(),oe(this,t,ip,np,ie,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},tp)}}function sp(i,t,e=20,n=5){return new Promise((o,s)=>{let r=0;const a=setInterval(()=>{const l=i();t(l)?(clearInterval(a),o(l)):r>=n&&(clearInterval(a),s(l)),r++},e)})}function rp(i){le(i,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function ia(i){let t,e,n;return e=new ta({props:{unfolded:i[0],content:i[1],inDelay:500,outDelay:i[5]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1fuzm7v"),z(t,"transform",i[7])},m(o,s){T(o,t,s),K(e,t,null),i[10](t),n=!0},p(o,s){const r={};s&1&&(r.unfolded=o[0]),s&2&&(r.content=o[1]),s&32&&(r.outDelay=o[5]),e.$set(r),s&128&&z(t,"transform",o[7])},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e),i[10](null)}}}function oa(i){let t,e,n;return e=new op({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","arrow svelte-1fuzm7v")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.direction=o[6]),s&1&&(r.visible=o[0]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function ap(i){let t,e,n,o=i[1]&&ia(i),s=i[3]<i[4]&&oa(i);return{c(){o&&o.c(),t=ee(),s&&s.c(),e=me()},m(r,a){o&&o.m(r,a),T(r,t,a),s&&s.m(r,a),T(r,e,a),n=!0},p(r,[a]){r[1]?o?(o.p(r,a),a&2&&k(o,1)):(o=ia(r),o.c(),k(o,1),o.m(t.parentNode,t)):o&&(re(),S(o,1,1,()=>{o=null}),ae()),r[3]<r[4]?s?(s.p(r,a),a&24&&k(s,1)):(s=oa(r),s.c(),k(s,1),s.m(e.parentNode,e)):s&&(re(),S(s,1,1,()=>{s=null}),ae())},i(r){n||(k(o),k(s),n=!0)},o(r){S(o),S(s),n=!1},d(r){o&&o.d(r),r&&M(t),s&&s.d(r),r&&M(e)}}}function lp(i,t,e){let n,o,s,{visible:r=!1}=t,{textUnfolded:a=!1}=t,{content:l}=t,c,u=0,d=0,f=0;function h(p){Te[p?"unshift":"push"](()=>{c=p,e(2,c)})}return i.$$set=p=>{"visible"in p&&e(0,r=p.visible),"textUnfolded"in p&&e(8,a=p.textUnfolded),"content"in p&&e(1,l=p.content)},i.$$.update=()=>{if(i.$$.dirty&7&&c&&r&&l){const{lineHeight:p}=getComputedStyle(c);e(4,f=c.offsetHeight),sp(()=>c==null?void 0:c.offsetHeight,Boolean).then(()=>{e(4,f=c.offsetHeight)}),e(3,d=Number(p.replace("px","")))}i.$$.dirty&280&&e(9,u=a?d-f:0),i.$$.dirty&512&&e(7,n=`translateY(${u}px)`),i.$$.dirty&256&&e(6,o=a?"left":"right"),i.$$.dirty&256&&e(5,s=a?450:0)},[r,l,c,d,f,s,o,n,a,u,h]}class sa extends se{constructor(t){super(),oe(this,t,lp,ap,ie,{visible:0,textUnfolded:8,content:1},rp)}}function cp(i){le(i,"svelte-nlvd3x",".content.svelte-nlvd3x{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}")}function ra(i){var d,f;let t,e,n,o,s,r,a,l,c,u;return t=new ot({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new no({props:{unfolded:i[2],length:i[3],outDelay:i[4]+40*Math.min((f=(d=i[6][0])==null?void 0:d.content.length)!=null?f:10,15),useLinearColor:!0}}),r=new sa({props:{visible:i[2],textUnfolded:i[1],content:i[5]}}),{c(){te(t.$$.fragment),e=ee(),te(n.$$.fragment),o=ee(),s=B("div"),te(r.$$.fragment),b(s,"class","content svelte-nlvd3x"),ze(()=>i[8].call(s))},m(h,p){K(t,h,p),T(h,e,p),K(n,h,p),T(h,o,p),T(h,s,p),K(r,s,null),a=vt(s,i[8].bind(s)),l=!0,c||(u=Me(s,"click",i[7]),c=!0)},p(h,p){var w,y;const g={};p&4&&(g.visible=h[2]),p&8&&(g.left=h[3]/2+"px"),t.$set(g);const A={};p&4&&(A.unfolded=h[2]),p&8&&(A.length=h[3]),p&16&&(A.outDelay=h[4]+40*Math.min((y=(w=h[6][0])==null?void 0:w.content.length)!=null?y:10,15)),n.$set(A);const v={};p&4&&(v.visible=h[2]),p&2&&(v.textUnfolded=h[1]),p&32&&(v.content=h[5]),r.$set(v)},i(h){l||(k(t.$$.fragment,h),k(n.$$.fragment,h),k(r.$$.fragment,h),l=!0)},o(h){S(t.$$.fragment,h),S(n.$$.fragment,h),S(r.$$.fragment,h),l=!1},d(h){$(t,h),h&&M(e),$(n,h),h&&M(o),h&&M(s),$(r),a(),c=!1,u()}}}function up(i){let t,e,n=i[0].state&&ra(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=ra(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function dp(i,t,e){let n,o,s,{tag:r}=t,a,l=!1,c=[];function u(){e(1,l=!l)}function d(){a=this.clientWidth,e(3,a)}return i.$$set=f=>{"tag"in f&&e(0,r=f.tag)},i.$$.update=()=>{var f,h,p;i.$$.dirty&1&&e(2,n=!!((f=r.state)!=null&&f.unfolded)),i.$$.dirty&1&&e(5,o=(p=(h=r.data.title)!=null?h:r.data.text)!=null?p:""),i.$$.dirty&4&&(n||setTimeout(()=>{e(1,l=!1)},20)),i.$$.dirty&2&&e(4,s=l?450:0)},[r,l,n,a,s,o,c,u,d]}class fp extends se{constructor(t){super(),oe(this,t,dp,up,ie,{tag:0},cp)}}function Ie(i){return i/16+"rem"}function hp(i){le(i,"svelte-ilb1qs",".text.svelte-ilb1qs{display:-webkit-box;display:-ms-box;display:-moz-box;position:relative;width:-moz-max-content;width:max-content;max-width:100%;word-break:break-all;-webkit-box-orient:vertical;-ms-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@keyframes svelte-ilb1qs-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.caret.svelte-ilb1qs{position:absolute;width:0.0625rem;height:100%;background-color:#fff;animation:svelte-ilb1qs-blink 1.2s infinite}.placeholder.svelte-ilb1qs{opacity:0.5}")}function mp(i){let t;const e=i[6].default,n=Xe(e,i,i[5],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&32)&&Ue(n,e,o,o[5],t?Ye(e,o[5],s,null):Je(o[5]),null)},i(o){t||(k(n,o),t=!0)},o(o){S(n,o),t=!1},d(o){n&&n.d(o)}}}function pp(i){var s,r;let t,e,n=((s=i[3])==null?void 0:s.inputting)&&aa(),o=((r=i[3])==null?void 0:r.placeholder)&&la(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(a,l){n&&n.m(a,l),T(a,t,l),o&&o.m(a,l),T(a,e,l)},p(a,l){var c,u;(c=a[3])!=null&&c.inputting?n||(n=aa(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),(u=a[3])!=null&&u.placeholder?o?o.p(a,l):(o=la(a),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:J,o:J,d(a){n&&n.d(a),a&&M(t),o&&o.d(a),a&&M(e)}}}function gp(i){let t;return{c(){t=Pe(i[2])},m(e,n){T(e,t,n)},p(e,n){n&4&&ke(t,e[2])},i:J,o:J,d(e){e&&M(t)}}}function aa(i){let t;return{c(){t=B("div"),b(t,"class","caret svelte-ilb1qs")},m(e,n){T(e,t,n)},d(e){e&&M(t)}}}function la(i){let t,e=i[3].placeholder+"",n;return{c(){t=B("span"),n=Pe(e),b(t,"class","placeholder svelte-ilb1qs")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].placeholder+"")&&ke(n,e)},d(o){o&&M(t)}}}function Ap(i){let t,e,n,o;const s=[gp,pp,mp],r=[];function a(l,c){return l[2]?0:l[4]?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=B("div"),n.c(),b(t,"class","text svelte-ilb1qs"),z(t,"max-width",typeof i[1]=="number"?Ie(i[1]):i[1]),z(t,"-webkit-line-clamp",i[0])},m(l,c){T(l,t,c),r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?r[e].p(l,c):(re(),S(r[u],1,1,()=>{r[u]=null}),ae(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null)),c&2&&z(t,"max-width",typeof l[1]=="number"?Ie(l[1]):l[1]),c&1&&z(t,"-webkit-line-clamp",l[0])},i(l){o||(k(n),o=!0)},o(l){S(n),o=!1},d(l){l&&M(t),r[e].d()}}}function vp(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{maxLine:r=1}=t,{maxWidth:a=null}=t,{text:l=null}=t,{edit:c=null}=t;return i.$$set=u=>{"maxLine"in u&&e(0,r=u.maxLine),"maxWidth"in u&&e(1,a=u.maxWidth),"text"in u&&e(2,l=u.text),"edit"in u&&e(3,c=u.edit),"$$scope"in u&&e(5,s=u.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(4,n=(c==null?void 0:c.placeholder)||(c==null?void 0:c.inputting))},[r,a,l,c,n,s,o]}class oo extends se{constructor(t){super(),oe(this,t,vp,Ap,ie,{maxLine:0,maxWidth:1,text:2,edit:3},hp)}}function bp(i){le(i,"svelte-10r5rix",".plane__container.svelte-10r5rix.svelte-10r5rix{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-10r5rix.svelte-10r5rix{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.5);border-radius:0.25rem}.unfolded.svelte-10r5rix .plane__wrapper.svelte-10r5rix{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-10r5rix .plane__wrapper.svelte-10r5rix{opacity:0}.plane.svelte-10r5rix.svelte-10r5rix{max-width:11.75rem}.title.svelte-10r5rix.svelte-10r5rix{font-weight:bold;font-size:0.75rem;line-height:1.125rem;margin-bottom:0.25rem}.description.svelte-10r5rix.svelte-10r5rix{font-size:0.6875rem;line-height:1rem}")}function ca(i){var f,h;let t,e,n,o,s,r,a,l,c,u,d;return t=new no({props:{unfolded:i[1],direction:"vertical",length:15,duration:500,inDelay:200,useLinearColor:!0}}),a=new oo({props:{text:i[2],edit:(f=i[0].data.edit)==null?void 0:f.title}}),u=new oo({props:{text:i[0].data.description,edit:(h=i[0].data.edit)==null?void 0:h.description,maxLine:3}}),{c(){te(t.$$.fragment),e=ee(),n=B("div"),o=B("div"),s=B("div"),r=B("div"),te(a.$$.fragment),l=ee(),c=B("div"),te(u.$$.fragment),b(r,"class","title svelte-10r5rix"),b(c,"class","description svelte-10r5rix"),b(s,"class","plane svelte-10r5rix"),b(o,"class","plane__wrapper svelte-10r5rix"),z(o,"transform",i[1]?"translateY(-15px)":"translateY(0)"),b(n,"class","plane__container svelte-10r5rix"),ne(n,"unfolded",i[1]),ne(n,"folded",i[3])},m(p,g){K(t,p,g),T(p,e,g),T(p,n,g),j(n,o),j(o,s),j(s,r),K(a,r,null),j(s,l),j(s,c),K(u,c,null),d=!0},p(p,g){var y,E;const A={};g&2&&(A.unfolded=p[1]),t.$set(A);const v={};g&4&&(v.text=p[2]),g&1&&(v.edit=(y=p[0].data.edit)==null?void 0:y.title),a.$set(v);const w={};g&1&&(w.text=p[0].data.description),g&1&&(w.edit=(E=p[0].data.edit)==null?void 0:E.description),u.$set(w),g&2&&z(o,"transform",p[1]?"translateY(-15px)":"translateY(0)"),(!d||g&2)&&ne(n,"unfolded",p[1]),(!d||g&8)&&ne(n,"folded",p[3])},i(p){d||(k(t.$$.fragment,p),k(a.$$.fragment,p),k(u.$$.fragment,p),d=!0)},o(p){S(t.$$.fragment,p),S(a.$$.fragment,p),S(u.$$.fragment,p),d=!1},d(p){$(t,p),p&&M(e),p&&M(n),$(a),$(u)}}}function yp(i){let t,e,n=i[0].state&&ca(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=ca(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function wp(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l,c;i.$$.dirty&1&&e(1,n=!!((a=r.state)!=null&&a.unfolded)),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&1&&e(2,s=(c=(l=r.data.title)!=null?l:r.data.text)!=null?c:"")},[r,n,s,o]}class Cp extends se{constructor(t){super(),oe(this,t,wp,yp,ie,{tag:0},bp)}}function Pp(i){let t,e;return t=new Cp({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Ip(i){let t,e;return t=new fp({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Ep(i){let t,e,n,o;const s=[Ip,Pp],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(re(),S(r[u],1,1,()=>{r[u]=null}),ae()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){~t&&r[t].d(l),l&&M(n)}}}function kp(i,t,e){let n,{tag:o}=t;return i.$$set=s=>{"tag"in s&&e(0,o=s.tag)},i.$$.update=()=>{var s;i.$$.dirty&1&&e(1,n=(s=o.data.appearance)!=null?s:"line")},[o,n]}class xp extends se{constructor(t){super(),oe(this,t,kp,Ep,ie,{tag:0})}}function Dp(i){le(i,"svelte-blgtit",".line.svelte-blgtit{width:100%;height:100%;overflow:visible;pointer-events:none}")}function ua(i){let t,e,n,o;return{c(){t=ve("path"),b(t,"fill","none"),b(t,"stroke","url(#"+i[4]+")"),b(t,"stroke-width","1"),b(t,"d","M0 21 L14 0.5 L105 0.5")},m(s,r){T(s,t,r),o=!0},p(s,r){i=s},i(s){o||(s&&ze(()=>{n&&n.end(1),e=Tt(t,Yn,{duration:i[1],delay:i[0],easing:ls}),e.start()}),o=!0)},o(s){e&&e.invalidate(),s&&(n=qt(t,Yn,{duration:i[1],delay:i[2],easing:Kt})),o=!1},d(s){s&&M(t),s&&n&&n.end()}}}function Lp(i){let t,e,n,o,s,r=i[3]&&ua(i);return{c(){t=ve("svg"),e=ve("defs"),n=ve("linearGradient"),o=ve("stop"),s=ve("stop"),r&&r.c(),b(o,"offset","25%"),b(o,"stop-color","white"),b(o,"stop-opacity","1"),b(s,"offset","100%"),b(s,"stop-color","white"),b(s,"stop-opacity","0.5"),b(n,"id",i[4]),b(n,"gradientUnits","userSpaceOnUse"),b(t,"class","line svelte-blgtit"),b(t,"viewBox","0 0 105 21")},m(a,l){T(a,t,l),j(t,e),j(e,n),j(n,o),j(n,s),r&&r.m(t,null)},p(a,[l]){a[3]?r?(r.p(a,l),l&8&&k(r,1)):(r=ua(a),r.c(),k(r,1),r.m(t,null)):r&&(re(),S(r,1,1,()=>{r=null}),ae())},i(a){k(r)},o(a){S(r)},d(a){a&&M(t),r&&r.d()}}}function Sp(i,t,e){let{inDelay:n=0}=t,{duration:o=1e3}=t,{outDelay:s=0}=t,{unfolded:r}=t;const a=He();return i.$$set=l=>{"inDelay"in l&&e(0,n=l.inDelay),"duration"in l&&e(1,o=l.duration),"outDelay"in l&&e(2,s=l.outDelay),"unfolded"in l&&e(3,r=l.unfolded)},[n,o,s,r,a]}class zp extends se{constructor(t){super(),oe(this,t,Sp,Lp,ie,{inDelay:0,duration:1,outDelay:2,unfolded:3},Dp)}}function Rt(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Et(i,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>e.indexOf(n)<0).forEach(n=>{typeof i[n]=="undefined"?i[n]=t[n]:Rt(t[n])&&Rt(i[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?i[n]=t[n]:Et(i[n],t[n]):i[n]=t[n]})}function so(i={}){return i.navigation&&typeof i.navigation.nextEl=="undefined"&&typeof i.navigation.prevEl=="undefined"}function ro(i={}){return i.pagination&&typeof i.pagination.el=="undefined"}function ao(i={}){return i.scrollbar&&typeof i.scrollbar.el=="undefined"}function fi(i=""){const t=i.split(" ").map(n=>n.trim()).filter(n=>!!n),e=[];return t.forEach(n=>{e.indexOf(n)<0&&e.push(n)}),e.join(" ")}const da=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function Mp(i={},t=!0){const e={on:{}},n={},o={};Et(e,bi.default.defaults),Et(e,bi.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const s={},r=da.map(l=>l.replace(/_/,"")),a=Object.assign({},i);return Object.keys(a).forEach(l=>{typeof i[l]!="undefined"&&(r.indexOf(l)>=0?Rt(i[l])?(e[l]={},o[l]={},Et(e[l],i[l]),Et(o[l],i[l])):(e[l]=i[l],o[l]=i[l]):l.search(/on[A-Z]/)===0&&typeof i[l]=="function"?t?n[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:e.on[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:s[l]=i[l])}),["navigation","pagination","scrollbar"].forEach(l=>{e[l]===!0&&(e[l]={}),e[l]===!1&&delete e[l]}),{params:e,passedParams:o,rest:s,events:n}}function Tp({el:i,nextEl:t,prevEl:e,paginationEl:n,scrollbarEl:o,swiper:s},r){so(r)&&t&&e&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=e,s.originalParams.navigation.prevEl=e),ro(r)&&n&&(s.params.pagination.el=n,s.originalParams.pagination.el=n),ao(r)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(i)}function Bp(i,t,e,n,o){const s=[];if(!t)return s;const r=l=>{s.indexOf(l)<0&&s.push(l)};if(e&&n){const l=n.map(o),c=e.map(o);l.join("")!==c.join("")&&r("children"),n.length!==e.length&&r("children")}return da.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in i&&l in t)if(Rt(i[l])&&Rt(t[l])){const c=Object.keys(i[l]),u=Object.keys(t[l]);c.length!==u.length?r(l):(c.forEach(d=>{i[l][d]!==t[l][d]&&r(l)}),u.forEach(d=>{i[l][d]!==t[l][d]&&r(l)}))}else i[l]!==t[l]&&r(l)}),s}function Vp({swiper:i,slides:t,passedParams:e,changedParams:n,nextEl:o,prevEl:s,scrollbarEl:r,paginationEl:a}){const l=n.filter(I=>I!=="children"&&I!=="direction"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:h,thumbs:p}=i;let g,A,v,w,y;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)&&u&&!u.el&&(v=!0),n.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||r)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(w=!0),n.includes("navigation")&&e.navigation&&(e.navigation.prevEl||s)&&(e.navigation.nextEl||o)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const E=I=>{!i[I]||(i[I].destroy(),I==="navigation"?(c[I].prevEl=void 0,c[I].nextEl=void 0,i[I].prevEl=void 0,i[I].nextEl=void 0):(c[I].el=void 0,i[I].el=void 0))};l.forEach(I=>{if(Rt(c[I])&&Rt(e[I]))Et(c[I],e[I]);else{const C=e[I];(C===!0||C===!1)&&(I==="navigation"||I==="pagination"||I==="scrollbar")?C===!1&&E(I):c[I]=e[I]}}),l.includes("controller")&&!A&&i.controller&&i.controller.control&&c.controller&&c.controller.control&&(i.controller.control=c.controller.control),n.includes("children")&&t&&h&&c.virtual.enabled?(h.slides=t,h.update(!0)):n.includes("children")&&i.lazy&&i.params.lazy.enabled&&i.lazy.load(),g&&p.init()&&p.update(!0),A&&(i.controller.control=c.controller.control),v&&(a&&(c.pagination.el=a),u.init(),u.render(),u.update()),w&&(r&&(c.scrollbar.el=r),f.init(),f.updateSize(),f.setTranslate()),y&&(o&&(c.navigation.nextEl=o),s&&(c.navigation.prevEl=s),d.init(),d.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()}const jp=i=>({virtualData:i&512}),fa=i=>({virtualData:i[9]}),Qp=i=>({virtualData:i&512}),ha=i=>({virtualData:i[9]}),Op=i=>({virtualData:i&512}),ma=i=>({virtualData:i[9]}),Rp=i=>({virtualData:i&512}),pa=i=>({virtualData:i[9]}),Fp=i=>({virtualData:i&512}),ga=i=>({virtualData:i[9]});function Aa(i){let t,e,n;return{c(){t=B("div"),e=ee(),n=B("div"),b(t,"class","swiper-button-prev"),b(n,"class","swiper-button-next")},m(o,s){T(o,t,s),i[13](t),T(o,e,s),T(o,n,s),i[14](n)},p:J,d(o){o&&M(t),i[13](null),o&&M(e),o&&M(n),i[14](null)}}}function va(i){let t;return{c(){t=B("div"),b(t,"class","swiper-scrollbar")},m(e,n){T(e,t,n),i[15](t)},p:J,d(e){e&&M(t),i[15](null)}}}function ba(i){let t;return{c(){t=B("div"),b(t,"class","swiper-pagination")},m(e,n){T(e,t,n),i[16](t)},p:J,d(e){e&&M(t),i[16](null)}}}function Gp(i){let t,e,n,o,s,r,a=so(i[2]),l,c=ao(i[2]),u,d=ro(i[2]),f,h,p;const g=i[12]["container-start"],A=Xe(g,i,i[11],ga),v=i[12]["wrapper-start"],w=Xe(v,i,i[11],pa),y=i[12].default,E=Xe(y,i,i[11],ma),I=i[12]["wrapper-end"],C=Xe(I,i,i[11],ha);let L=a&&Aa(i),D=c&&va(i),V=d&&ba(i);const W=i[12]["container-end"],H=Xe(W,i,i[11],fa);let X=[{class:h=fi(`${i[1]}${i[0]?` ${i[0]}`:""}`)},i[3]],Q={};for(let P=0;P<X.length;P+=1)Q=Ce(Q,X[P]);return{c(){t=B("div"),A&&A.c(),e=ee(),n=B("div"),w&&w.c(),o=ee(),E&&E.c(),s=ee(),C&&C.c(),r=ee(),L&&L.c(),l=ee(),D&&D.c(),u=ee(),V&&V.c(),f=ee(),H&&H.c(),b(n,"class","swiper-wrapper"),Bn(t,Q)},m(P,O){T(P,t,O),A&&A.m(t,null),j(t,e),j(t,n),w&&w.m(n,null),j(n,o),E&&E.m(n,null),j(n,s),C&&C.m(n,null),j(t,r),L&&L.m(t,null),j(t,l),D&&D.m(t,null),j(t,u),V&&V.m(t,null),j(t,f),H&&H.m(t,null),i[17](t),p=!0},p(P,[O]){A&&A.p&&(!p||O&2560)&&Ue(A,g,P,P[11],p?Ye(g,P[11],O,Fp):Je(P[11]),ga),w&&w.p&&(!p||O&2560)&&Ue(w,v,P,P[11],p?Ye(v,P[11],O,Rp):Je(P[11]),pa),E&&E.p&&(!p||O&2560)&&Ue(E,y,P,P[11],p?Ye(y,P[11],O,Op):Je(P[11]),ma),C&&C.p&&(!p||O&2560)&&Ue(C,I,P,P[11],p?Ye(I,P[11],O,Qp):Je(P[11]),ha),O&4&&(a=so(P[2])),a?L?L.p(P,O):(L=Aa(P),L.c(),L.m(t,l)):L&&(L.d(1),L=null),O&4&&(c=ao(P[2])),c?D?D.p(P,O):(D=va(P),D.c(),D.m(t,u)):D&&(D.d(1),D=null),O&4&&(d=ro(P[2])),d?V?V.p(P,O):(V=ba(P),V.c(),V.m(t,f)):V&&(V.d(1),V=null),H&&H.p&&(!p||O&2560)&&Ue(H,W,P,P[11],p?Ye(W,P[11],O,jp):Je(P[11]),fa),Bn(t,Q=Be(X,[(!p||O&3&&h!==(h=fi(`${P[1]}${P[0]?` ${P[0]}`:""}`)))&&{class:h},O&8&&P[3]]))},i(P){p||(k(A,P),k(w,P),k(E,P),k(C,P),k(H,P),p=!0)},o(P){S(A,P),S(w,P),S(E,P),S(C,P),S(H,P),p=!1},d(P){P&&M(t),A&&A.d(P),w&&w.d(P),E&&E.d(P),C&&C.d(P),L&&L.d(),D&&D.d(),V&&V.d(),H&&H.d(P),i[17](null)}}}function Hp(i,t,e){const n=["class","swiper"];let o=Tn(t,n),{$$slots:s={},$$scope:r}=t;const a=ac();let{class:l=void 0}=t,c="swiper",u=!1,d=null,f=null,h,p,g,A,v=null,w=null,y=null,E=null,I=null,C={slides:[]};function L(){return d}const D=R=>{e(9,C=R),cc().then(()=>{d.$wrapperEl.children(".swiper-slide").each(N=>{N.onSwiper&&N.onSwiper(d)}),d.updateSlides(),d.updateProgress(),d.updateSlidesClasses(),d.lazy&&d.params.lazy.enabled&&d.lazy.load()})},V=()=>{h=Mp(o),e(2,p=h.params),g=h.passedParams,e(3,A=h.rest)};V(),f=g;const W=()=>{u=!0};if(p.onAny=(R,...N)=>{a(R,N)},Object.assign(p.on,{_beforeBreakpoint:W,_containerClasses(R,N){e(1,c=N)}}),d=new bi.default(p),Rn("swiper",d),d.virtual&&d.params.virtual.enabled){const R={cache:!1,renderExternal:N=>{D(N),p.virtual&&p.virtual.renderExternal&&p.virtual.renderExternal(N)},renderExternalUpdate:!1};Et(d.params.virtual,R),Et(d.originalParams.virtual,R)}Ke(()=>{!v||(Tp({el:v,nextEl:y,prevEl:w,paginationEl:I,scrollbarEl:E,swiper:d},p),a("swiper",[d]),!p.virtual&&d.slides.each(R=>{R.onSwiper&&R.onSwiper(d)}))}),Di(()=>{if(!d)return;V();const R=Bp(g,f);(R.length||u)&&d&&!d.destroyed&&Vp({swiper:d,passedParams:g,changedParams:R,nextEl:y,prevEl:w,scrollbarEl:E,paginationEl:I}),u=!1,f=g}),yt(()=>{typeof window!="undefined"&&d&&!d.destroyed&&d.destroy(!0,!1)});function H(R){Te[R?"unshift":"push"](()=>{w=R,e(5,w)})}function X(R){Te[R?"unshift":"push"](()=>{y=R,e(6,y)})}function Q(R){Te[R?"unshift":"push"](()=>{E=R,e(7,E)})}function P(R){Te[R?"unshift":"push"](()=>{I=R,e(8,I)})}function O(R){Te[R?"unshift":"push"](()=>{v=R,e(4,v)})}return i.$$set=R=>{t=Ce(Ce({},t),Wo(R)),e(27,o=Tn(t,n)),"class"in R&&e(0,l=R.class),"$$scope"in R&&e(11,r=R.$$scope)},[l,c,p,A,v,w,y,E,I,C,L,r,s,H,X,Q,P,O]}class Np extends se{constructor(t){super(),oe(this,t,Hp,Gp,ie,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const Wp=i=>({data:i&32}),ya=i=>({data:i[5]}),_p=i=>({data:i&32}),wa=i=>({data:i[5]});function Xp(i){let t;const e=i[8].default,n=Xe(e,i,i[7],ya);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&160)&&Ue(n,e,o,o[7],t?Ye(e,o[7],s,Wp):Je(o[7]),ya)},i(o){t||(k(n,o),t=!0)},o(o){S(n,o),t=!1},d(o){n&&n.d(o)}}}function Yp(i){let t,e,n;const o=i[8].default,s=Xe(o,i,i[7],wa);return{c(){t=B("div"),s&&s.c(),b(t,"class","swiper-zoom-container"),b(t,"data-swiper-zoom",e=typeof i[0]=="number"?i[0]:void 0)},m(r,a){T(r,t,a),s&&s.m(t,null),n=!0},p(r,a){s&&s.p&&(!n||a&160)&&Ue(s,o,r,r[7],n?Ye(o,r[7],a,_p):Je(r[7]),wa),(!n||a&1&&e!==(e=typeof r[0]=="number"?r[0]:void 0))&&b(t,"data-swiper-zoom",e)},i(r){n||(k(s,r),n=!0)},o(r){S(s,r),n=!1},d(r){r&&M(t),s&&s.d(r)}}}function Up(i){let t,e,n,o,s;const r=[Yp,Xp],a=[];function l(d,f){return d[0]?0:1}e=l(i),n=a[e]=r[e](i);let c=[{class:o=fi(`${i[3]}${i[2]?` ${i[2]}`:""}`)},{"data-swiper-slide-index":i[1]},i[6]],u={};for(let d=0;d<c.length;d+=1)u=Ce(u,c[d]);return{c(){t=B("div"),n.c(),Bn(t,u)},m(d,f){T(d,t,f),a[e].m(t,null),i[9](t),s=!0},p(d,[f]){let h=e;e=l(d),e===h?a[e].p(d,f):(re(),S(a[h],1,1,()=>{a[h]=null}),ae(),n=a[e],n?n.p(d,f):(n=a[e]=r[e](d),n.c()),k(n,1),n.m(t,null)),Bn(t,u=Be(c,[(!s||f&12&&o!==(o=fi(`${d[3]}${d[2]?` ${d[2]}`:""}`)))&&{class:o},(!s||f&2)&&{"data-swiper-slide-index":d[1]},f&64&&d[6]]))},i(d){s||(k(n),s=!0)},o(d){S(n),s=!1},d(d){d&&M(t),a[e].d(),i[9](null)}}}function Jp(i,t,e){let n;const o=["zoom","virtualIndex","class"];let s=Tn(t,o),{$$slots:r={},$$scope:a}=t,{zoom:l=void 0}=t,{virtualIndex:c=void 0}=t,{class:u=void 0}=t,d=null,f="swiper-slide",h=dt("swiper"),p=!1;const g=(y,E,I)=>{E===d&&e(3,f=I)},A=()=>{!h||p||(h.on("_slideClass",g),p=!0)},v=()=>{!h||(h.off("_slideClass",g),p=!1)};Ke(()=>{typeof c!="undefined"&&(e(4,d.onSwiper=y=>{h=y,A()},d),A())}),Di(()=>{if(!(!d||!h)){if(h.destroyed){f!=="swiper-slide"&&e(3,f="swiper-slide");return}A()}}),xi(()=>{A()}),yt(()=>{!h||v()});function w(y){Te[y?"unshift":"push"](()=>{d=y,e(4,d)})}return i.$$set=y=>{t=Ce(Ce({},t),Wo(y)),e(6,s=Tn(t,o)),"zoom"in y&&e(0,l=y.zoom),"virtualIndex"in y&&e(1,c=y.virtualIndex),"class"in y&&e(2,u=y.class),"$$scope"in y&&e(7,a=y.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(5,n={isActive:f.indexOf("swiper-slide-active")>=0||f.indexOf("swiper-slide-duplicate-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isDuplicate:f.indexOf("swiper-slide-duplicate")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0||f.indexOf("swiper-slide-duplicate-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0||f.indexOf("swiper-slide-duplicate-next")>=0})},[l,c,u,f,d,n,s,a,r,w]}class Zp extends se{constructor(t){super(),oe(this,t,Jp,Up,ie,{zoom:0,virtualIndex:1,class:2})}}function qp(i){le(i,"svelte-q6hk4f",".media-item.svelte-q6hk4f.svelte-q6hk4f{height:100%}.media-content.svelte-q6hk4f.svelte-q6hk4f{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-q6hk4f.svelte-q6hk4f{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-q6hk4f.svelte-q6hk4f{display:block}.video-icon.large.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem}.video-icon.small.svelte-q6hk4f.svelte-q6hk4f{width:1.75rem;height:1.75rem}.video-icon.svelte-q6hk4f .video-icon-img.svelte-q6hk4f{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-q6hk4f .video-icon-img.canPlay.svelte-q6hk4f{cursor:pointer}")}function Ca(i){let t;function e(s,r){if(s[1].type==="Image")return $p;if(s[1].type==="Video")return Kp}let n=e(i),o=n&&n(i);return{c(){t=B("div"),o&&o.c(),b(t,"class","media-item svelte-q6hk4f")},m(s,r){T(s,t,r),o&&o.m(t,null)},p(s,r){n===(n=e(s))&&o?o.p(s,r):(o&&o.d(1),o=n&&n(s),o&&(o.c(),o.m(t,null)))},d(s){s&&M(t),o&&o.d()}}}function Kp(i){let t,e,n,o,s,r;function a(u,d){return u[6]&&u[1].videoCoverUrl?tg:eg}let l=a(i),c=l(i);return{c(){c.c(),t=ee(),e=B("div"),n=B("div"),o=B("div"),b(o,"class","video-icon-img svelte-q6hk4f"),z(o,"background-image","url("+i[14]()+")"),ne(o,"canPlay",i[4]),b(n,"class","video-icon svelte-q6hk4f"),ne(n,"large",i[3]==="large"),ne(n,"small",i[3]==="small"),b(e,"class","video-play-button-container svelte-q6hk4f"),ne(e,"showPlayButton",i[8])},m(u,d){c.m(u,d),T(u,t,d),T(u,e,d),j(e,n),j(n,o),s||(r=Me(o,"click",i[15]),s=!0)},p(u,d){l===(l=a(u))&&c?c.p(u,d):(c.d(1),c=l(u),c&&(c.c(),c.m(t.parentNode,t))),d&4&&z(o,"background-image","url("+u[14]()+")"),d&16&&ne(o,"canPlay",u[4]),d&8&&ne(n,"large",u[3]==="large"),d&8&&ne(n,"small",u[3]==="small"),d&256&&ne(e,"showPlayButton",u[8])},d(u){c.d(u),u&&M(t),u&&M(e),s=!1,r()}}}function $p(i){let t,e,n,o;return{c(){t=B("img"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].url)||b(t,"src",n),b(t,"alt",o=i[1].name)},m(s,r){T(s,t,r)},p(s,r){r&32&&e!==(e=`object-fit: ${s[5]};`)&&b(t,"style",e),r&2&&!We(t.src,n=s[1].url)&&b(t,"src",n),r&2&&o!==(o=s[1].name)&&b(t,"alt",o)},d(s){s&&M(t)}}}function eg(i){let t,e,n,o,s,r,a;return{c(){t=B("video"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].videoCoverUrl?i[1].url:i[1].url+"#t=0.1")||b(t,"src",n),b(t,"poster",o=i[1].videoCoverUrl),b(t,"preload",s=i[1].videoCoverUrl?"none":"auto"),t.playsInline=!0,b(t,"paused",""),t.muted=!0,t.loop=!1,b(t,"crossorigin",""),t.controls=!1,ne(t,"showPlayButton",i[8]),z(t,"position","relative")},m(l,c){T(l,t,c),i[13](t),r||(a=Me(t,"click",i[12]),r=!0)},p(l,c){c&32&&e!==(e=`object-fit: ${l[5]};`)&&b(t,"style",e),c&2&&!We(t.src,n=l[1].videoCoverUrl?l[1].url:l[1].url+"#t=0.1")&&b(t,"src",n),c&2&&o!==(o=l[1].videoCoverUrl)&&b(t,"poster",o),c&2&&s!==(s=l[1].videoCoverUrl?"none":"auto")&&b(t,"preload",s),c&256&&ne(t,"showPlayButton",l[8])},d(l){l&&M(t),i[13](null),r=!1,a()}}}function tg(i){let t,e,n,o;return{c(){t=B("img"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].videoCoverUrl)||b(t,"src",n),b(t,"alt",o=i[1].name)},m(s,r){T(s,t,r)},p(s,r){r&32&&e!==(e=`object-fit: ${s[5]};`)&&b(t,"style",e),r&2&&!We(t.src,n=s[1].videoCoverUrl)&&b(t,"src",n),r&2&&o!==(o=s[1].name)&&b(t,"alt",o)},d(s){s&&M(t)}}}function ng(i){let t,e=i[1]&&Ca(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,[o]){n[1]?e?e.p(n,o):(e=Ca(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:J,o:J,d(n){e&&e.d(n),n&&M(t)}}}function ig(i,t,e){let{tag:n}=t,{media:o}=t,{playButtonIfNeed:s="withoutText"}=t,{playButtonSizeIfNeed:r="small"}=t,{canPlay:a=!0}=t,{objectFit:l="cover"}=t,{disableVideoIfHavePoster:c=!1}=t,u=(o==null?void 0:o.type)==="Video"&&Boolean(o==null?void 0:o.videoCoverUrl),d,f=!1;const h=dt("mediaStore"),p=dt("hooks"),g=()=>{u||(d==null||d.play(),d==null||d.pause(),e(11,u=!0))};p.on("loadVideoFirstFrame",g);const A=E=>{d&&(d.pause(),p.emit("playStateChange",{event:E,state:"paused",tag:n,mediaInstance:d}))};function v(E){Te[E?"unshift":"push"](()=>{d=E,e(7,d)})}const w=()=>s==="withText"?Km:s==="withoutText"?$m:s,y=E=>{!a||d&&(e(7,d.muted=!1,d),d.play(),h.set({currentMediaElement:d}),p.emit("playStateChange",{event:E,state:"playing",tag:n,mediaInstance:d}))};return i.$$set=E=>{"tag"in E&&e(0,n=E.tag),"media"in E&&e(1,o=E.media),"playButtonIfNeed"in E&&e(2,s=E.playButtonIfNeed),"playButtonSizeIfNeed"in E&&e(3,r=E.playButtonSizeIfNeed),"canPlay"in E&&e(4,a=E.canPlay),"objectFit"in E&&e(5,l=E.objectFit),"disableVideoIfHavePoster"in E&&e(6,c=E.disableVideoIfHavePoster)},i.$$.update=()=>{if(i.$$.dirty&128&&d&&(e(8,f=d.paused),d.addEventListener("play",()=>{e(8,f=!1)}),d.addEventListener("pause",()=>{e(8,f=!0)}),h.subscribe(({currentMediaElement:E})=>{E!==d&&(d==null||d.pause())})),i.$$.dirty&2178&&(o==null?void 0:o.type)==="Video"&&!u){const E=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1,C=navigator.userAgent.toLowerCase().indexOf("iphone")!==-1&&E;d&&C&&d.paused&&(document.removeEventListener("WeixinJSBridgeReady",g),document.removeEventListener("touchstart",g),document.removeEventListener("click",g),document.addEventListener("WeixinJSBridgeReady",g),document.addEventListener("touchstart",g),document.addEventListener("click",g))}},[n,o,s,r,a,l,c,d,f,h,p,u,A,v,w,y]}class Pa extends se{constructor(t){super(),oe(this,t,ig,ng,ie,{tag:0,media:1,playButtonIfNeed:2,playButtonSizeIfNeed:3,canPlay:4,objectFit:5,disableVideoIfHavePoster:6},qp)}}function og(i){le(i,"svelte-ai0lv9",".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function Ia(i,t,e){const n=i.slice();return n[22]=t[e],n}function Ea(i){let t,e,n,o,s,r;const a=[rg,sg],l=[];function c(u,d){return u[12]?0:1}return e=c(i),n=l[e]=a[e](i),{c(){t=B("div"),n.c(),b(t,"class","media svelte-ai0lv9"),ne(t,"unfolded",i[5])},m(u,d){T(u,t,d),l[e].m(t,null),r=!0},p(u,d){i=u;let f=e;e=c(i),e===f?l[e].p(i,d):(re(),S(l[f],1,1,()=>{l[f]=null}),ae(),n=l[e],n?n.p(i,d):(n=l[e]=a[e](i),n.c()),k(n,1),n.m(t,null)),(!r||d&32)&&ne(t,"unfolded",i[5])},i(u){r||(k(n),u&&ze(()=>{s&&s.end(1),o=Tt(t,cs,i[6]?{y:4,duration:i[4],delay:i[2],easing:At}:void 0),o.start()}),r=!0)},o(u){S(n),o&&o.invalidate(),u&&(s=qt(t,cs,i[6]?{y:4,duration:i[4],delay:i[3],easing:At}:void 0)),r=!1},d(u){u&&M(t),l[e].d(),u&&s&&s.end()}}}function sg(i){let t,e;const n=[{media:i[1][0]},i[7],{tag:i[0]}];let o={};for(let s=0;s<n.length;s+=1)o=Ce(o,n[s]);return t=new Pa({props:o}),{c(){te(t.$$.fragment)},m(s,r){K(t,s,r),e=!0},p(s,r){const a=r&131?Be(n,[r&2&&{media:s[1][0]},r&128&&ss(s[7]),r&1&&{tag:s[0]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){S(t.$$.fragment,s),e=!1},d(s){$(t,s)}}}function rg(i){let t,e;return t=new Np({props:{style:"height: 100%",modules:[Eo.Autoplay],spaceBetween:30,autoplay:i[13]?xe({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[lg]},$$scope:{ctx:i}}}),t.$on("init",i[20]),t.$on("slideChange",i[21]),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.autoplay=n[13]?xe({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),o&33555585&&(s.$$scope={dirty:o,ctx:n}),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function ag(i){let t,e,n;const o=[i[7],{media:i[22]},{tag:i[0]}];let s={};for(let r=0;r<o.length;r+=1)s=Ce(s,o[r]);return t=new Pa({props:s}),{c(){te(t.$$.fragment),e=ee()},m(r,a){K(t,r,a),T(r,e,a),n=!0},p(r,a){const l=a&1153?Be(o,[a&128&&ss(r[7]),a&1024&&{media:r[22]},a&1&&{tag:r[0]}]):{};t.$set(l)},i(r){n||(k(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){$(t,r),r&&M(e)}}}function ka(i){let t,e;return t=new i[14]({props:{$$slots:{default:[ag]},$$scope:{ctx:i}}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&33555585&&(s.$$scope={dirty:o,ctx:n}),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function lg(i){let t,e,n=i[10],o=[];for(let r=0;r<n.length;r+=1)o[r]=ka(Ia(i,n,r));const s=r=>S(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;r<o.length;r+=1)o[r].c();t=me()},m(r,a){for(let l=0;l<o.length;l+=1)o[l].m(r,a);T(r,t,a),e=!0},p(r,a){if(a&1153){n=r[10];let l;for(l=0;l<n.length;l+=1){const c=Ia(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=ka(c),o[l].c(),k(o[l],1),o[l].m(t.parentNode,t))}for(re(),l=n.length;l<o.length;l+=1)s(l);ae()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)S(o[a]);e=!1},d(r){ct(o,r),r&&M(t)}}}function cg(i){let t,e,n=i[5]&&Ea(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[5]?n?(n.p(o,s),s&32&&k(n,1)):(n=Ea(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function ug(i,t,e){let n,o,s;const r=xe(Zp);let{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:u=0}=t,{duration:d=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{mediaItemConfig:p}=t,{enableCarousel:g=!0}=t,{autoplayConfig:A={autoplay:!0,autoplayVideo:!1}}=t;const v=dt("mediaStore"),w=dt("hooks");let y;function E(V){!n||!y||(v.set({currentMediaElement:this}),w.emit("playStateChange",{event:V,state:"playing",tag:a,mediaInstance:this}),y.autoplay.stop())}function I(V){!n||!y||(w.emit("playStateChange",{event:V,state:"paused",tag:a,mediaInstance:this}),y.autoplay.running||y.autoplay.start())}let C=null;const L=V=>{e(9,y=V.detail[0])},D=V=>Y(this,null,function*(){var O,R,N;if(!s||!A.autoplayVideo)return;const W=V.detail[0];if(!W)return;const H=W.realIndex;if(H===C)return;e(11,C=H);const X=o[H];if(!X||X.type!=="Video")return;W.autoplay.stop(),W.slides.map(Z=>Z.querySelector("video")).filter(Ze).forEach(Z=>Z.pause());const P=(O=W.slides[W.activeIndex])==null?void 0:O.querySelector("video");if(P&&(P.removeEventListener("play",E),P.removeEventListener("pause",I),P.addEventListener("play",E),P.addEventListener("pause",I)),P){P.addEventListener("click",()=>P.pause());const Z=(N=(R=P.parentElement)==null?void 0:R.getElementsByClassName("video-play-button-container"))==null?void 0:N[0];P.addEventListener("play",()=>Z==null?void 0:Z.classList.remove("showPlayButton")),P.addEventListener("pause",()=>Z==null?void 0:Z.classList.add("showPlayButton")),Z&&(P.paused?Z.classList.add("showPlayButton"):Z.classList.remove("showPlayButton"),Z.addEventListener("click",_=>{P.muted=!1,P.play(),v.set({currentMediaElement:P}),w.emit("playStateChange",{event:_,state:"playing",tag:a,mediaInstance:P})}))}});return i.$$set=V=>{"tag"in V&&e(0,a=V.tag),"mediaData"in V&&e(1,l=V.mediaData),"inDelay"in V&&e(2,c=V.inDelay),"outDelay"in V&&e(3,u=V.outDelay),"duration"in V&&e(4,d=V.duration),"unfolded"in V&&e(5,f=V.unfolded),"animation"in V&&e(6,h=V.animation),"mediaItemConfig"in V&&e(7,p=V.mediaItemConfig),"enableCarousel"in V&&e(19,g=V.enableCarousel),"autoplayConfig"in V&&e(8,A=V.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&524290&&e(12,n=g&&(l==null?void 0:l.length)>1),i.$$.dirty&2&&e(10,o=l),i.$$.dirty&1280&&e(13,s=o.length>1&&A.autoplay),i.$$.dirty&512&&y&&y.slides.forEach(V=>{const W=V.querySelector("video");W&&v.subscribe(({currentMediaElement:H})=>{H!==W&&W.pause()})})},[a,l,c,u,d,f,h,p,A,y,o,C,n,s,r,v,w,E,I,g,L,D]}class xa extends se{constructor(t){super(),oe(this,t,ug,cg,ie,{tag:0,mediaData:1,inDelay:2,outDelay:3,duration:4,unfolded:5,animation:6,mediaItemConfig:7,enableCarousel:19,autoplayConfig:8},og)}}function dg(i){le(i,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function Da(i){let t,e,n,o,s,r,a,l;t=new ot({props:{visible:i[3],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),o=new zp({props:{unfolded:i[3],outDelay:400}});let c=i[2]&&La(i),u=i[1]&&Sa(i);return{c(){te(t.$$.fragment),e=ee(),n=B("div"),te(o.$$.fragment),s=ee(),c&&c.c(),r=ee(),u&&u.c(),a=me(),b(n,"class","line svelte-1f7m1lj")},m(d,f){K(t,d,f),T(d,e,f),T(d,n,f),K(o,n,null),T(d,s,f),c&&c.m(d,f),T(d,r,f),u&&u.m(d,f),T(d,a,f),l=!0},p(d,f){const h={};f&8&&(h.visible=d[3]),t.$set(h);const p={};f&8&&(p.unfolded=d[3]),o.$set(p),d[2]?c?(c.p(d,f),f&4&&k(c,1)):(c=La(d),c.c(),k(c,1),c.m(r.parentNode,r)):c&&(re(),S(c,1,1,()=>{c=null}),ae()),d[1]?u?(u.p(d,f),f&2&&k(u,1)):(u=Sa(d),u.c(),k(u,1),u.m(a.parentNode,a)):u&&(re(),S(u,1,1,()=>{u=null}),ae())},i(d){l||(k(t.$$.fragment,d),k(o.$$.fragment,d),k(c),k(u),l=!0)},o(d){S(t.$$.fragment,d),S(o.$$.fragment,d),S(c),S(u),l=!1},d(d){$(t,d),d&&M(e),d&&M(n),$(o),d&&M(s),c&&c.d(d),d&&M(r),u&&u.d(d),d&&M(a)}}}function La(i){let t,e,n;return e=new ta({props:{unfolded:i[3],content:i[2],inDelay:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1f7m1lj")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&4&&(r.content=o[2]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function Sa(i){let t,e,n;return e=new xa({props:{autoplayConfig:{autoplay:!1},unfolded:i[3],mediaData:i[1],tag:i[0],enableCarousel:!1,mediaItemConfig:{canPlay:!1,playButtonSizeIfNeed:"small",disableVideoIfHavePoster:!0},inDelay:500,duration:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","media-wrapper svelte-1f7m1lj")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&2&&(r.mediaData=o[1]),s&1&&(r.tag=o[0]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function fg(i){let t,e,n=i[0].state&&Da(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=Da(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function hg(i,t,e){let n,o,s,r,{tag:a}=t;return i.$$set=l=>{"tag"in l&&e(0,a=l.tag)},i.$$.update=()=>{var l,c,u;i.$$.dirty&1&&e(3,n=a.state?a.state.unfolded:!1),i.$$.dirty&1&&e(4,o=(c=(l=a.data.title)!=null?l:a.data.text)!=null?c:""),i.$$.dirty&16&&e(2,s=((u=o.length)!=null?u:0)>7?o.substring(0,6)+"...":o),i.$$.dirty&1&&e(1,r=a.data.mediaData)},[a,r,s,n,o]}class mg extends se{constructor(t){super(),oe(this,t,hg,fg,ie,{tag:0},dg)}}class lo{constructor(t=0,e=0){m(this,"min");m(this,"max");m(this,"isInterval",!0);this.min=t,this.max=e}fromArray(t){return this.min=t[0],this.max=t[1],this}isOverlap(t){return Math.min(this.max,t.max)<Math.max(this.min,t.min)}contains(t){return this.min<t.min&&this.max>t.max}}class pg{constructor(t,e){m(this,"min");m(this,"max");m(this,"xInterval");m(this,"yInterval");m(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new lo(this.min.x,this.max.x),this.yInterval=new lo(this.min.y,this.max.y)}isOverlapWithRectangle(t){return!this.xInterval.isOverlap(t.xInterval)&&!this.yInterval.isOverlap(t.yInterval)}containsRect(t){return this.xInterval.contains(t.xInterval)&&this.yInterval.contains(t.yInterval)}}function hi(i,t,e){const n=i[t],o=i[e];!n||!o||(i[t]=o,i[e]=n)}function gg(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;hi(i,a*4+0,l*4+0),hi(i,a*4+1,l*4+1),hi(i,a*4+2,l*4+2),hi(i,a*4+3,l*4+3)}}}class za{constructor(t,e){m(this,"width");m(this,"height");m(this,"containerDom");m(this,"hooks",new de.Subscribe);m(this,"canvas",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"context");m(this,"renderCenter",new x.Vector3);m(this,"hammer");m(this,"state",{enabled:!1});m(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const n=this.offset.x+t.deltaX,o=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});m(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new un.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){var t;if(!this.state.enabled)return this.state.enabled=!0,(t=this.containerDom)==null||t.append(this.canvas),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){var e;return this.containerDom&&((e=this.containerDom)==null||e.removeChild(this.canvas)),this.containerDom=t,this.state.enabled&&t.append(this.canvas),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,n=this.renderCenter.clone().project(this.five.camera),o=(n.x+1)/2*this.containerDom.clientWidth,s=-(n.x-1)/2*this.containerDom.clientWidth,r=-(n.y-1)/2*this.containerDom.clientHeight;o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):r<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):s<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${o}px, ${r}px, 10px)`,this.offset={x:o,y:r}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.renderCenter.clone().project(this.five.camera),r=this.five.renderer.getSize(new x.Vector2),a=1,l=n/t,c=o/t,u=a*t,d=(s.x+1)/2*r.x,f=(s.y+1)/2*r.y,h=this.five.getPixels(d-l/2,f-l/2,l,c,u),p=Math.floor(n*a),g=Math.floor(o*a);gg(h,p,g);const A=new ImageData(p,g);A.data.set(h),e.putImageData(A,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}function Ag(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return new x.Vector2().set((i.x-s)/e*2-1,-(i.y-o)/n*2+1)}function Ma(i,t){const{offsetWidth:e,offsetHeight:n}=t;return new x.Vector2().set(i.x/e*2-1,-i.y/n*2+1)}function vg(i,t){const e=i.getElement();if(!e)return;const n=Ma(t,e),o=new x.Raycaster;return o.setFromCamera(n,i.camera),o}function bg(i,t){const{x:e,y:n}=t,o=e*2-1,s=n*2-1,r=new x.Vector2().fromArray([o,s]),a=new x.Raycaster;return a.setFromCamera(r,i.camera),i.model.intersectRaycaster(a)[0]}const yg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEp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hAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",wg=`
|
|
544
|
+
`))&&b(t,"style",e),a&8&&z(t,"width",_e(i[3])),a&16&&z(t,"height",_e(i[4])),a&8192&&z(t,"z-index",i[13])},i(r){s||(r&&ze(()=>{o&&o.end(1),n=Tt(t,Vt,{duration:i[0]}),n.start()}),s=!0)},o(r){n&&n.invalidate(),r&&(o=qt(t,Vt,{duration:i[1]})),s=!1},d(r){r&&M(t),r&&o&&o.end()}}}function Om(i){let t,e=i[2]&&Jr(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,[o]){n[2]?e?(e.p(n,o),o&4&&k(e,1)):(e=Jr(n),e.c(),k(e,1),e.m(t.parentNode,t)):e&&(re(),S(e,1,1,()=>{e=null}),ae())},i(n){k(e)},o(n){S(e)},d(n){e&&e.d(n),n&&M(t)}}}function _e(i){return typeof i=="number"?i/16+"rem":i}function Rm(i,t,e){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:u=!1}=t,{horizontalCenter:d=!1}=t,{verticalCenter:f=!1}=t,{blurRadius:h}=t,{spreadRadius:p}=t,{opacity:g=.15}=t,{zIndex:A=void 0}=t;return i.$$set=v=>{"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,u=v.center),"horizontalCenter"in v&&e(8,d=v.horizontalCenter),"verticalCenter"in v&&e(9,f=v.verticalCenter),"blurRadius"in v&&e(10,h=v.blurRadius),"spreadRadius"in v&&e(11,p=v.spreadRadius),"opacity"in v&&e(12,g=v.opacity),"zIndex"in v&&e(13,A=v.zIndex)},[n,o,s,r,a,l,c,u,d,f,h,p,g,A]}class ot extends se{constructor(t){super(),oe(this,t,Rm,Om,ie,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},Qm)}}function Fm(i,t){t.forEach(e=>{const n=new x.SphereGeometry(.02,16,16),o=[],s=[new x.MeshBasicMaterial({color:16776960}),new x.MeshBasicMaterial({color:16711935}),new x.MeshBasicMaterial({color:16711680}),new x.MeshBasicMaterial({color:65535})];if(e.position.length===4)e.position.forEach((r,a)=>{const l=s[a],c=new x.Mesh(n,l);c.position.copy(lt(r)),o.push(c)});else{const r=s[0],a=new x.Mesh(n,r);a.position.copy(lt(e.position)),o.push(a)}o.forEach(r=>{r.material.depthTest=!1,i.scene.add(r)})})}const xe=i=>i;function Zr(i){if(i.length<3)return;const t=i.map(hn),e=t[1].clone().sub(t[0]),n=t[2].clone().sub(t[1]);return e.cross(n)}function di(i){if(Array.isArray(i)&&i.length===4){const e=i.map(hn);return To(e[0],e[2])}else return hn(i)}function yn(i,t){if(i===void 0)return;const{min:e,max:n}=t!=null?t:{};if(!(e===void 0&&n===void 0))return!(typeof n=="number"&&n<i||typeof e=="number"&&e>i)}function Gm(i){return new Promise(t=>{i.model.loaded?t():i.once("modelLoaded",()=>t())})}function Hm(i,t,e){const o=new x.Plane().setFromNormalAndCoplanarPoint(e,t),s=t.clone().sub(i).cross(new x.Vector3(0,1,0)).setLength(.01),r=new x.Vector3(0,.01,0);return[t.clone().sub(s).sub(r),t.clone().add(s).sub(r),t.clone().add(s).add(r),t.clone().sub(s).add(r)].map(l=>o.projectPoint(l,new x.Vector3))}const qr=(i,t=1e3/60)=>{let e=null;const n=i;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},t)}};function Nm(i,t=200){let e;return function(...n){e||(i.apply(this,n),e=setTimeout(function(){e=null},t))}}function Wm(i,t){const[e,n]=t;if(e>=n||n<=1||e<=1)return-1;const o={},s=r=>(o[r]||(o[r]=i(r)),o[r]);for(let r=e;r<n;r++){const a=s(r),l=s(r-1);if(a<l)return r}return-1}function Kr(i,t){if(!t||typeof ResizeObserver=="undefined"||!ResizeObserver)return{observe:()=>window.addEventListener("resize",i),unobserve:()=>window.removeEventListener("resize",i)};{const e=new ResizeObserver(i);return{observe:()=>e.observe(t),unobserve:()=>e.unobserve(t)}}}function _m(){return Math.random().toString(36).slice(-6)}const io=_m();function Xm(i){le(i,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function $r(i,t,e){const n=i.slice();return n[18]=t[e].id,n[0]=t[e].content,n[19]=t,n[20]=e,n}function Ym(i){let t,e=i[0]+"",n,o=i[20];const s=()=>i[9](t,o),r=()=>i[9](null,o);return{c(){t=B("span"),n=Pe(e),b(t,"class","text-char svelte-1b2n9wi")},m(a,l){T(a,t,l),j(t,n),s()},p(a,l){i=a,l&4&&e!==(e=i[0]+"")&&ke(n,e),o!==i[20]&&(r(),o=i[20],s())},d(a){a&&M(t),r()}}}function Um(i){let t,e=i[20];const n=()=>i[8](t,e),o=()=>i[8](null,e);return{c(){t=B("span"),t.textContent="\xA0",b(t,"class","text-char svelte-1b2n9wi")},m(s,r){T(s,t,r),n()},p(s,r){i=s,e!==i[20]&&(o(),e=i[20],n())},d(s){s&&M(t),o()}}}function ea(i,t){let e,n;function o(a,l){return a[0]===a[3]?Um:Ym}let s=o(t),r=s(t);return{key:i,first:null,c(){e=me(),r.c(),n=me(),this.first=e},m(a,l){T(a,e,l),r.m(a,l),T(a,n,l)},p(a,l){t=a,s===(s=o(t))&&r?r.p(t,l):(r.d(1),r=s(t),r&&(r.c(),r.m(n.parentNode,n)))},d(a){a&&M(e),r.d(a),a&&M(n)}}}function Jm(i){let t=[],e=new Map,n,o=i[2];const s=r=>r[18];for(let r=0;r<o.length;r+=1){let a=$r(i,o,r),l=s(a);e.set(l,t[r]=ea(l,a))}return{c(){for(let r=0;r<t.length;r+=1)t[r].c();n=me()},m(r,a){for(let l=0;l<t.length;l+=1)t[l].m(r,a);T(r,n,a)},p(r,[a]){a&14&&(o=r[2],t=$e(t,a,s,1,r,o,e,n.parentNode,Mi,ea,n,$r))},i:J,o:J,d(r){for(let a=0;a<t.length;a+=1)t[a].d(r);r&&M(n)}}}function Zm(i,t,e){let n,{inDelay:o=0}=t,{outDelay:s=0}=t,{content:r}=t,{unfolded:a}=t,{isFistUnfoldedUpdate:l=!0}=t;const c=`__EMOJI_SPLIT_${io}__`,u=`__EMOJI_${io}__`,d=`__SPACE_${io}__`;let f,h,p=[];function g(I){const C=[],L=new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)","gu"));return I.slice().replace(L,D=>`${c}${u}${D}${c}`).split(c).forEach(D=>D.startsWith(u)?C.push({id:He(),content:D.slice(u.length)}):C.push(...D.split("").map(V=>V===" "?d:V).map(V=>({id:He(),content:V})))),C}function A(){if(!h)return;const I=!a;h.reversed!==I&&h.reverse(),h.play()}function v(I){if(l){e(4,l=!1);return}clearTimeout(f),f=setTimeout(A,I?o:s)}function w(I){const C=function(){const L=Wm(D=>I[D].getBoundingClientRect().x,[Math.min(I.length-1,10),Math.min(I.length-1,30)]);if(L>0)return L}();h=xo.default({targets:I.slice(0,C).filter(Ze),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:xo.default.stagger(50),easing:"easeInOutCubic"}),a&&h.seek(h.duration)}function y(I,C){Te[I?"unshift":"push"](()=>{p[C]=I,e(1,p)})}function E(I,C){Te[I?"unshift":"push"](()=>{p[C]=I,e(1,p)})}return i.$$set=I=>{"inDelay"in I&&e(5,o=I.inDelay),"outDelay"in I&&e(6,s=I.outDelay),"content"in I&&e(0,r=I.content),"unfolded"in I&&e(7,a=I.unfolded),"isFistUnfoldedUpdate"in I&&e(4,l=I.isFistUnfoldedUpdate)},i.$$.update=()=>{i.$$.dirty&1&&e(2,n=g(r)),i.$$.dirty&128&&v(a),i.$$.dirty&2&&w(p.filter(I=>!!I))},[r,p,n,d,l,o,s,a,y,E]}class ta extends se{constructor(t){super(),oe(this,t,Zm,Jm,ie,{inDelay:5,outDelay:6,content:0,unfolded:7,isFistUnfoldedUpdate:4},Xm)}}const qm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAAKgAAAADUGqULAAAB0ElEQVRYCe2WSUoEQRBFLVHEiVZU1I03cKW38SSewRt4A5fiTty5cQIFR9pZQWkcUNSe2/Z9yISiSGxRkUAy4BGZSVX168gistraYsQKxArECsQKxApYqkDyU5lmsznMM+ZgAGpQhaUkSRbINgLJCXiCBtSgAkVYtGGIBTKj8AgKSVahDNvQa0IUkUG4Bx91BpLdBTOS/cgUIB3a+gMwI9mFzE3a0I3z5B4r292JzGVA8tSSZILMcUDyzIykthOZvYDk+V9Ktmz4yGzhOhV4/+5YU4N/hzqo0StX3Fg5TcnNlYvgs8bPsM4hkScHoyO46haRnGEYktQVI+4ypUYKyXtxyUu27JCceAMJvjo0HoM5CEZ7cPX7i013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4akfiEJAOZdFKzsq/nNjIssdufjbhQAEAUodOGDWp4m8S0oHEhb+YexGkD4EBUpdVMrfl/E/RhNJnsjF/ls0r980YRQDlAqBylIqylcCzf4lHecB5veigSfmYoBycaxN2SHgT8e7pWKZwCzqzZpigUr9DlRuoIxXn8pIZJgHtkwpa8togHIiw587LeNx9mc2ZwIK5DOlXJaMFqhWwoMp/Ax+1W+ToOXTHGKNrDMLLo38LmKsQKmbdSrWil+N82UJaS40YTuJv/RdtAdpzet+aJDzvMpQV71oo2gYX5RXG2HnYZXtouzNRzXE3R0KE6jWjZU2iaZ9u8pqpU3UfvwrYSgSBVDtGDurBlHn/zj0QMIh7qlDNOfmcBj9ihKo9o+l1euiWGxSE5eun3na6jxQk3joEgdQ7TR+FWutE43lhQpph3sQvISAVRa9ppRzipY4gZqdw8/WigIWDWt1gD8EIsqSLlT/KPUVlKSAujs2XTLYeRHiIlA2DVi1qkRtK8PSULaEDF+Ue7ashwkTlf8DQc/cITdx9+UAAAAASUVORK5CYII=",ep="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABcVBMVEUAAAAAAAD////////+/v45OTn////////39/fp6enPz8/7+/vw8PD+/v7x8fHc3NzHx8f////////+/v77+/vr6+v////7+/v5+fn////z8/P////////q6uqgoKD+/v79/f3m5ub+/v7////////////////39/f39/f////z8/P////t7e3s7Oz29vb////5+fn////h4eH////g4ODV1dX////////BwcH///////////+Ojo5zc3MlJSX////////////////////////7+/v////////////v7+/u7u7n5+f////39/f////09PT6+vr09PT+/v76+vr////5+fnv7+/09PTk5OT////////////////Jycn///++vr7///////+0tLT///9TU1P///8SEhL////////+/v76+vr////8/Pz39/ft7e3t7e36+vr////////X19fV1dX///+xsbF9fX1iYmL///////+K8mOEAAAAenRSTlMaAIDy8CD41cWRX9uk7Kl1VVEw6dWT/M/NvKyVkY475eWIgx0Z39rHv7axnZyZmIuKhn56emZjX1FEPTU0Kx4PCAX69fTgxcKkopWL7crJuri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+99kASup5GINsYhhmG8d7UXzcBgo2e21cd9WlUll5/7G958ql8uxu7y0zS5SGSkOGBA51TRiGQAi232Y9v4kVQZGavpt6c6l3tLpNsc38gGOC01IeLg4Xi8NaLz1KkqO0VzvcTrFscYo4oLjiRAsKEXeJPRqxW0bsFWLGLVbiocyZSm5vbW0nU9BsIfyp/AGqAvfOkBaFawAAAABJRU5ErkJggg==";function tp(i){le(i,"svelte-1ogmlqq",".arrow.svelte-1ogmlqq{width:100%;height:100%;background-size:100%;transition:transform 400ms ease-in-out;cursor:pointer;pointer-events:auto}.arrow-wrapper.svelte-1ogmlqq{position:relative;width:100%;height:100%}.arrow.left.svelte-1ogmlqq{transform:rotate(0deg)}.arrow.right.svelte-1ogmlqq{transform:rotate(-180deg)}.arrow.top.svelte-1ogmlqq{transform:rotate(90deg)}.arrow.bottom.svelte-1ogmlqq{transform:rotate(-90deg)}")}function na(i){let t,e,n,o,s,r,a,l,c,u;return e=new ot({props:{center:!0,blurRadius:9,spreadRadius:3}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),b(o,"class",s="arrow "+i[0]+" svelte-1ogmlqq"),z(o,"background-image","url("+qm+")"),b(t,"class","arrow-wrapper svelte-1ogmlqq")},m(d,f){T(d,t,f),K(e,t,null),j(t,n),j(t,o),l=!0,c||(u=Me(o,"click",i[5]),c=!0)},p(d,f){i=d,(!l||f&1&&s!==(s="arrow "+i[0]+" svelte-1ogmlqq"))&&b(o,"class",s)},i(d){l||(k(e.$$.fragment,d),d&&ze(()=>{a&&a.end(1),r=Tt(o,Vt,{duration:i[2],delay:i[3],easing:Kt}),r.start()}),l=!0)},o(d){S(e.$$.fragment,d),r&&r.invalidate(),d&&(a=qt(o,Vt,{duration:i[2],delay:i[4],easing:Kt})),l=!1},d(d){d&&M(t),$(e),d&&a&&a.end(),c=!1,u()}}}function np(i){let t,e,n=i[1]&&na(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=na(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function ip(i,t,e){let{direction:n="right"}=t,{visible:o=!0}=t,{duration:s=0}=t,{inDelay:r=0}=t,{outDelay:a=0}=t;function l(c){lc.call(this,i,c)}return i.$$set=c=>{"direction"in c&&e(0,n=c.direction),"visible"in c&&e(1,o=c.visible),"duration"in c&&e(2,s=c.duration),"inDelay"in c&&e(3,r=c.inDelay),"outDelay"in c&&e(4,a=c.outDelay)},[n,o,s,r,a,l]}class op extends se{constructor(t){super(),oe(this,t,ip,np,ie,{direction:0,visible:1,duration:2,inDelay:3,outDelay:4},tp)}}function sp(i,t,e=20,n=5){return new Promise((o,s)=>{let r=0;const a=setInterval(()=>{const l=i();t(l)?(clearInterval(a),o(l)):r>=n&&(clearInterval(a),s(l)),r++},e)})}function rp(i){le(i,"svelte-1fuzm7v",".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}")}function ia(i){let t,e,n;return e=new ta({props:{unfolded:i[0],content:i[1],inDelay:500,outDelay:i[5]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1fuzm7v"),z(t,"transform",i[7])},m(o,s){T(o,t,s),K(e,t,null),i[10](t),n=!0},p(o,s){const r={};s&1&&(r.unfolded=o[0]),s&2&&(r.content=o[1]),s&32&&(r.outDelay=o[5]),e.$set(r),s&128&&z(t,"transform",o[7])},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e),i[10](null)}}}function oa(i){let t,e,n;return e=new op({props:{direction:i[6],visible:i[0],inDelay:600,duration:1e3}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","arrow svelte-1fuzm7v")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.direction=o[6]),s&1&&(r.visible=o[0]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function ap(i){let t,e,n,o=i[1]&&ia(i),s=i[3]<i[4]&&oa(i);return{c(){o&&o.c(),t=ee(),s&&s.c(),e=me()},m(r,a){o&&o.m(r,a),T(r,t,a),s&&s.m(r,a),T(r,e,a),n=!0},p(r,[a]){r[1]?o?(o.p(r,a),a&2&&k(o,1)):(o=ia(r),o.c(),k(o,1),o.m(t.parentNode,t)):o&&(re(),S(o,1,1,()=>{o=null}),ae()),r[3]<r[4]?s?(s.p(r,a),a&24&&k(s,1)):(s=oa(r),s.c(),k(s,1),s.m(e.parentNode,e)):s&&(re(),S(s,1,1,()=>{s=null}),ae())},i(r){n||(k(o),k(s),n=!0)},o(r){S(o),S(s),n=!1},d(r){o&&o.d(r),r&&M(t),s&&s.d(r),r&&M(e)}}}function lp(i,t,e){let n,o,s,{visible:r=!1}=t,{textUnfolded:a=!1}=t,{content:l}=t,c,u=0,d=0,f=0;function h(p){Te[p?"unshift":"push"](()=>{c=p,e(2,c)})}return i.$$set=p=>{"visible"in p&&e(0,r=p.visible),"textUnfolded"in p&&e(8,a=p.textUnfolded),"content"in p&&e(1,l=p.content)},i.$$.update=()=>{if(i.$$.dirty&7&&c&&r&&l){const{lineHeight:p}=getComputedStyle(c);e(4,f=c.offsetHeight),sp(()=>c==null?void 0:c.offsetHeight,Boolean).then(()=>{e(4,f=c.offsetHeight)}),e(3,d=Number(p.replace("px","")))}i.$$.dirty&280&&e(9,u=a?d-f:0),i.$$.dirty&512&&e(7,n=`translateY(${u}px)`),i.$$.dirty&256&&e(6,o=a?"left":"right"),i.$$.dirty&256&&e(5,s=a?450:0)},[r,l,c,d,f,s,o,n,a,u,h]}class sa extends se{constructor(t){super(),oe(this,t,lp,ap,ie,{visible:0,textUnfolded:8,content:1},rp)}}function cp(i){le(i,"svelte-nlvd3x",".content.svelte-nlvd3x{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}")}function ra(i){var d,f;let t,e,n,o,s,r,a,l,c,u;return t=new ot({props:{visible:i[2],left:i[3]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),n=new no({props:{unfolded:i[2],length:i[3],outDelay:i[4]+40*Math.min((f=(d=i[6][0])==null?void 0:d.content.length)!=null?f:10,15),useLinearColor:!0}}),r=new sa({props:{visible:i[2],textUnfolded:i[1],content:i[5]}}),{c(){te(t.$$.fragment),e=ee(),te(n.$$.fragment),o=ee(),s=B("div"),te(r.$$.fragment),b(s,"class","content svelte-nlvd3x"),ze(()=>i[8].call(s))},m(h,p){K(t,h,p),T(h,e,p),K(n,h,p),T(h,o,p),T(h,s,p),K(r,s,null),a=vt(s,i[8].bind(s)),l=!0,c||(u=Me(s,"click",i[7]),c=!0)},p(h,p){var w,y;const g={};p&4&&(g.visible=h[2]),p&8&&(g.left=h[3]/2+"px"),t.$set(g);const A={};p&4&&(A.unfolded=h[2]),p&8&&(A.length=h[3]),p&16&&(A.outDelay=h[4]+40*Math.min((y=(w=h[6][0])==null?void 0:w.content.length)!=null?y:10,15)),n.$set(A);const v={};p&4&&(v.visible=h[2]),p&2&&(v.textUnfolded=h[1]),p&32&&(v.content=h[5]),r.$set(v)},i(h){l||(k(t.$$.fragment,h),k(n.$$.fragment,h),k(r.$$.fragment,h),l=!0)},o(h){S(t.$$.fragment,h),S(n.$$.fragment,h),S(r.$$.fragment,h),l=!1},d(h){$(t,h),h&&M(e),$(n,h),h&&M(o),h&&M(s),$(r),a(),c=!1,u()}}}function up(i){let t,e,n=i[0].state&&ra(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=ra(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function dp(i,t,e){let n,o,s,{tag:r}=t,a,l=!1,c=[];function u(){e(1,l=!l)}function d(){a=this.clientWidth,e(3,a)}return i.$$set=f=>{"tag"in f&&e(0,r=f.tag)},i.$$.update=()=>{var f,h,p;i.$$.dirty&1&&e(2,n=!!((f=r.state)!=null&&f.unfolded)),i.$$.dirty&1&&e(5,o=(p=(h=r.data.title)!=null?h:r.data.text)!=null?p:""),i.$$.dirty&4&&(n||setTimeout(()=>{e(1,l=!1)},20)),i.$$.dirty&2&&e(4,s=l?450:0)},[r,l,n,a,s,o,c,u,d]}class fp extends se{constructor(t){super(),oe(this,t,dp,up,ie,{tag:0},cp)}}function Ie(i){return i/16+"rem"}function hp(i){le(i,"svelte-ilb1qs",".text.svelte-ilb1qs{display:-webkit-box;display:-ms-box;display:-moz-box;position:relative;width:-moz-max-content;width:max-content;max-width:100%;word-break:break-all;-webkit-box-orient:vertical;-ms-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@keyframes svelte-ilb1qs-blink{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.caret.svelte-ilb1qs{position:absolute;width:0.0625rem;height:100%;background-color:#fff;animation:svelte-ilb1qs-blink 1.2s infinite}.placeholder.svelte-ilb1qs{opacity:0.5}")}function mp(i){let t;const e=i[6].default,n=Xe(e,i,i[5],null);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&32)&&Ue(n,e,o,o[5],t?Ye(e,o[5],s,null):Je(o[5]),null)},i(o){t||(k(n,o),t=!0)},o(o){S(n,o),t=!1},d(o){n&&n.d(o)}}}function pp(i){var s,r;let t,e,n=((s=i[3])==null?void 0:s.inputting)&&aa(),o=((r=i[3])==null?void 0:r.placeholder)&&la(i);return{c(){n&&n.c(),t=ee(),o&&o.c(),e=me()},m(a,l){n&&n.m(a,l),T(a,t,l),o&&o.m(a,l),T(a,e,l)},p(a,l){var c,u;(c=a[3])!=null&&c.inputting?n||(n=aa(),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null),(u=a[3])!=null&&u.placeholder?o?o.p(a,l):(o=la(a),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null)},i:J,o:J,d(a){n&&n.d(a),a&&M(t),o&&o.d(a),a&&M(e)}}}function gp(i){let t;return{c(){t=Pe(i[2])},m(e,n){T(e,t,n)},p(e,n){n&4&&ke(t,e[2])},i:J,o:J,d(e){e&&M(t)}}}function aa(i){let t;return{c(){t=B("div"),b(t,"class","caret svelte-ilb1qs")},m(e,n){T(e,t,n)},d(e){e&&M(t)}}}function la(i){let t,e=i[3].placeholder+"",n;return{c(){t=B("span"),n=Pe(e),b(t,"class","placeholder svelte-ilb1qs")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&8&&e!==(e=o[3].placeholder+"")&&ke(n,e)},d(o){o&&M(t)}}}function Ap(i){let t,e,n,o;const s=[gp,pp,mp],r=[];function a(l,c){return l[2]?0:l[4]?1:2}return e=a(i),n=r[e]=s[e](i),{c(){t=B("div"),n.c(),b(t,"class","text svelte-ilb1qs"),z(t,"max-width",typeof i[1]=="number"?Ie(i[1]):i[1]),z(t,"-webkit-line-clamp",i[0])},m(l,c){T(l,t,c),r[e].m(t,null),o=!0},p(l,[c]){let u=e;e=a(l),e===u?r[e].p(l,c):(re(),S(r[u],1,1,()=>{r[u]=null}),ae(),n=r[e],n?n.p(l,c):(n=r[e]=s[e](l),n.c()),k(n,1),n.m(t,null)),c&2&&z(t,"max-width",typeof l[1]=="number"?Ie(l[1]):l[1]),c&1&&z(t,"-webkit-line-clamp",l[0])},i(l){o||(k(n),o=!0)},o(l){S(n),o=!1},d(l){l&&M(t),r[e].d()}}}function vp(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{maxLine:r=1}=t,{maxWidth:a=null}=t,{text:l=null}=t,{edit:c=null}=t;return i.$$set=u=>{"maxLine"in u&&e(0,r=u.maxLine),"maxWidth"in u&&e(1,a=u.maxWidth),"text"in u&&e(2,l=u.text),"edit"in u&&e(3,c=u.edit),"$$scope"in u&&e(5,s=u.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(4,n=(c==null?void 0:c.placeholder)||(c==null?void 0:c.inputting))},[r,a,l,c,n,s,o]}class oo extends se{constructor(t){super(),oe(this,t,vp,Ap,ie,{maxLine:0,maxWidth:1,text:2,edit:3},hp)}}function bp(i){le(i,"svelte-1lhi5w1",".plane__container.svelte-1lhi5w1.svelte-1lhi5w1{position:absolute;left:50%;transform:translate(-50%, -100%);width:-moz-max-content;width:max-content}.plane__wrapper.svelte-1lhi5w1.svelte-1lhi5w1{transition:transform 500ms linear, opacity 200ms linear;padding:0.625rem;background-color:rgba(0, 0, 0, 0.5);border:0.03125rem solid rgba(255, 255, 255, 0.3);border-radius:0.25rem}.unfolded.svelte-1lhi5w1 .plane__wrapper.svelte-1lhi5w1{transition-delay:200ms, 500ms;opacity:1}.folded.svelte-1lhi5w1 .plane__wrapper.svelte-1lhi5w1{opacity:0}.plane.svelte-1lhi5w1.svelte-1lhi5w1{max-width:11.75rem}.title.svelte-1lhi5w1.svelte-1lhi5w1{white-space:pre-wrap;font-weight:bold;font-size:0.75rem;line-height:1.125rem;margin-bottom:0.25rem}.description.svelte-1lhi5w1.svelte-1lhi5w1{white-space:pre-wrap;font-size:0.6875rem;line-height:1rem}")}function ca(i){var f,h;let t,e,n,o,s,r,a,l,c,u,d;return t=new no({props:{unfolded:i[1],direction:"vertical",length:15,duration:500,inDelay:200,useLinearColor:!0}}),a=new oo({props:{text:i[2],edit:(f=i[0].data.edit)==null?void 0:f.title}}),u=new oo({props:{text:i[0].data.description,edit:(h=i[0].data.edit)==null?void 0:h.description,maxLine:3}}),{c(){te(t.$$.fragment),e=ee(),n=B("div"),o=B("div"),s=B("div"),r=B("div"),te(a.$$.fragment),l=ee(),c=B("div"),te(u.$$.fragment),b(r,"class","title svelte-1lhi5w1"),b(c,"class","description svelte-1lhi5w1"),b(s,"class","plane svelte-1lhi5w1"),b(o,"class","plane__wrapper svelte-1lhi5w1"),z(o,"transform",i[1]?"translateY(-15px)":"translateY(0)"),b(n,"class","plane__container svelte-1lhi5w1"),ne(n,"unfolded",i[1]),ne(n,"folded",i[3])},m(p,g){K(t,p,g),T(p,e,g),T(p,n,g),j(n,o),j(o,s),j(s,r),K(a,r,null),j(s,l),j(s,c),K(u,c,null),d=!0},p(p,g){var y,E;const A={};g&2&&(A.unfolded=p[1]),t.$set(A);const v={};g&4&&(v.text=p[2]),g&1&&(v.edit=(y=p[0].data.edit)==null?void 0:y.title),a.$set(v);const w={};g&1&&(w.text=p[0].data.description),g&1&&(w.edit=(E=p[0].data.edit)==null?void 0:E.description),u.$set(w),g&2&&z(o,"transform",p[1]?"translateY(-15px)":"translateY(0)"),(!d||g&2)&&ne(n,"unfolded",p[1]),(!d||g&8)&&ne(n,"folded",p[3])},i(p){d||(k(t.$$.fragment,p),k(a.$$.fragment,p),k(u.$$.fragment,p),d=!0)},o(p){S(t.$$.fragment,p),S(a.$$.fragment,p),S(u.$$.fragment,p),d=!1},d(p){$(t,p),p&&M(e),p&&M(n),$(a),$(u)}}}function yp(i){let t,e,n=i[0].state&&ca(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=ca(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function wp(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l,c;i.$$.dirty&1&&e(1,n=!!((a=r.state)!=null&&a.unfolded)),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&1&&e(2,s=(c=(l=r.data.title)!=null?l:r.data.text)!=null?c:"")},[r,n,s,o]}class Cp extends se{constructor(t){super(),oe(this,t,wp,yp,ie,{tag:0},bp)}}function Pp(i){let t,e;return t=new Cp({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Ip(i){let t,e;return t=new fp({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Ep(i){let t,e,n,o;const s=[Ip,Pp],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(re(),S(r[u],1,1,()=>{r[u]=null}),ae()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){~t&&r[t].d(l),l&&M(n)}}}function kp(i,t,e){let n,{tag:o}=t;return i.$$set=s=>{"tag"in s&&e(0,o=s.tag)},i.$$.update=()=>{var s;i.$$.dirty&1&&e(1,n=(s=o.data.appearance)!=null?s:"line")},[o,n]}class xp extends se{constructor(t){super(),oe(this,t,kp,Ep,ie,{tag:0})}}function Dp(i){le(i,"svelte-blgtit",".line.svelte-blgtit{width:100%;height:100%;overflow:visible;pointer-events:none}")}function ua(i){let t,e,n,o;return{c(){t=ve("path"),b(t,"fill","none"),b(t,"stroke","url(#"+i[4]+")"),b(t,"stroke-width","1"),b(t,"d","M0 21 L14 0.5 L105 0.5")},m(s,r){T(s,t,r),o=!0},p(s,r){i=s},i(s){o||(s&&ze(()=>{n&&n.end(1),e=Tt(t,Yn,{duration:i[1],delay:i[0],easing:ls}),e.start()}),o=!0)},o(s){e&&e.invalidate(),s&&(n=qt(t,Yn,{duration:i[1],delay:i[2],easing:Kt})),o=!1},d(s){s&&M(t),s&&n&&n.end()}}}function Lp(i){let t,e,n,o,s,r=i[3]&&ua(i);return{c(){t=ve("svg"),e=ve("defs"),n=ve("linearGradient"),o=ve("stop"),s=ve("stop"),r&&r.c(),b(o,"offset","25%"),b(o,"stop-color","white"),b(o,"stop-opacity","1"),b(s,"offset","100%"),b(s,"stop-color","white"),b(s,"stop-opacity","0.5"),b(n,"id",i[4]),b(n,"gradientUnits","userSpaceOnUse"),b(t,"class","line svelte-blgtit"),b(t,"viewBox","0 0 105 21")},m(a,l){T(a,t,l),j(t,e),j(e,n),j(n,o),j(n,s),r&&r.m(t,null)},p(a,[l]){a[3]?r?(r.p(a,l),l&8&&k(r,1)):(r=ua(a),r.c(),k(r,1),r.m(t,null)):r&&(re(),S(r,1,1,()=>{r=null}),ae())},i(a){k(r)},o(a){S(r)},d(a){a&&M(t),r&&r.d()}}}function Sp(i,t,e){let{inDelay:n=0}=t,{duration:o=1e3}=t,{outDelay:s=0}=t,{unfolded:r}=t;const a=He();return i.$$set=l=>{"inDelay"in l&&e(0,n=l.inDelay),"duration"in l&&e(1,o=l.duration),"outDelay"in l&&e(2,s=l.outDelay),"unfolded"in l&&e(3,r=l.unfolded)},[n,o,s,r,a]}class zp extends se{constructor(t){super(),oe(this,t,Sp,Lp,ie,{inDelay:0,duration:1,outDelay:2,unfolded:3},Dp)}}function Rt(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function Et(i,t){const e=["__proto__","constructor","prototype"];Object.keys(t).filter(n=>e.indexOf(n)<0).forEach(n=>{typeof i[n]=="undefined"?i[n]=t[n]:Rt(t[n])&&Rt(i[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?i[n]=t[n]:Et(i[n],t[n]):i[n]=t[n]})}function so(i={}){return i.navigation&&typeof i.navigation.nextEl=="undefined"&&typeof i.navigation.prevEl=="undefined"}function ro(i={}){return i.pagination&&typeof i.pagination.el=="undefined"}function ao(i={}){return i.scrollbar&&typeof i.scrollbar.el=="undefined"}function fi(i=""){const t=i.split(" ").map(n=>n.trim()).filter(n=>!!n),e=[];return t.forEach(n=>{e.indexOf(n)<0&&e.push(n)}),e.join(" ")}const da=["modules","init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopedSlidesLimit","_loopFillGroupWithBlank","loopPreventsSlide","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function Mp(i={},t=!0){const e={on:{}},n={},o={};Et(e,bi.default.defaults),Et(e,bi.default.extendedDefaults),e._emitClasses=!0,e.init=!1;const s={},r=da.map(l=>l.replace(/_/,"")),a=Object.assign({},i);return Object.keys(a).forEach(l=>{typeof i[l]!="undefined"&&(r.indexOf(l)>=0?Rt(i[l])?(e[l]={},o[l]={},Et(e[l],i[l]),Et(o[l],i[l])):(e[l]=i[l],o[l]=i[l]):l.search(/on[A-Z]/)===0&&typeof i[l]=="function"?t?n[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:e.on[`${l[2].toLowerCase()}${l.substr(3)}`]=i[l]:s[l]=i[l])}),["navigation","pagination","scrollbar"].forEach(l=>{e[l]===!0&&(e[l]={}),e[l]===!1&&delete e[l]}),{params:e,passedParams:o,rest:s,events:n}}function Tp({el:i,nextEl:t,prevEl:e,paginationEl:n,scrollbarEl:o,swiper:s},r){so(r)&&t&&e&&(s.params.navigation.nextEl=t,s.originalParams.navigation.nextEl=t,s.params.navigation.prevEl=e,s.originalParams.navigation.prevEl=e),ro(r)&&n&&(s.params.pagination.el=n,s.originalParams.pagination.el=n),ao(r)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(i)}function Bp(i,t,e,n,o){const s=[];if(!t)return s;const r=l=>{s.indexOf(l)<0&&s.push(l)};if(e&&n){const l=n.map(o),c=e.map(o);l.join("")!==c.join("")&&r("children"),n.length!==e.length&&r("children")}return da.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in i&&l in t)if(Rt(i[l])&&Rt(t[l])){const c=Object.keys(i[l]),u=Object.keys(t[l]);c.length!==u.length?r(l):(c.forEach(d=>{i[l][d]!==t[l][d]&&r(l)}),u.forEach(d=>{i[l][d]!==t[l][d]&&r(l)}))}else i[l]!==t[l]&&r(l)}),s}function Vp({swiper:i,slides:t,passedParams:e,changedParams:n,nextEl:o,prevEl:s,scrollbarEl:r,paginationEl:a}){const l=n.filter(I=>I!=="children"&&I!=="direction"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:h,thumbs:p}=i;let g,A,v,w,y;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)&&u&&!u.el&&(v=!0),n.includes("scrollbar")&&e.scrollbar&&(e.scrollbar.el||r)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(w=!0),n.includes("navigation")&&e.navigation&&(e.navigation.prevEl||s)&&(e.navigation.nextEl||o)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);const E=I=>{!i[I]||(i[I].destroy(),I==="navigation"?(c[I].prevEl=void 0,c[I].nextEl=void 0,i[I].prevEl=void 0,i[I].nextEl=void 0):(c[I].el=void 0,i[I].el=void 0))};l.forEach(I=>{if(Rt(c[I])&&Rt(e[I]))Et(c[I],e[I]);else{const C=e[I];(C===!0||C===!1)&&(I==="navigation"||I==="pagination"||I==="scrollbar")?C===!1&&E(I):c[I]=e[I]}}),l.includes("controller")&&!A&&i.controller&&i.controller.control&&c.controller&&c.controller.control&&(i.controller.control=c.controller.control),n.includes("children")&&t&&h&&c.virtual.enabled?(h.slides=t,h.update(!0)):n.includes("children")&&i.lazy&&i.params.lazy.enabled&&i.lazy.load(),g&&p.init()&&p.update(!0),A&&(i.controller.control=c.controller.control),v&&(a&&(c.pagination.el=a),u.init(),u.render(),u.update()),w&&(r&&(c.scrollbar.el=r),f.init(),f.updateSize(),f.setTranslate()),y&&(o&&(c.navigation.nextEl=o),s&&(c.navigation.prevEl=s),d.init(),d.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()}const jp=i=>({virtualData:i&512}),fa=i=>({virtualData:i[9]}),Qp=i=>({virtualData:i&512}),ha=i=>({virtualData:i[9]}),Op=i=>({virtualData:i&512}),ma=i=>({virtualData:i[9]}),Rp=i=>({virtualData:i&512}),pa=i=>({virtualData:i[9]}),Fp=i=>({virtualData:i&512}),ga=i=>({virtualData:i[9]});function Aa(i){let t,e,n;return{c(){t=B("div"),e=ee(),n=B("div"),b(t,"class","swiper-button-prev"),b(n,"class","swiper-button-next")},m(o,s){T(o,t,s),i[13](t),T(o,e,s),T(o,n,s),i[14](n)},p:J,d(o){o&&M(t),i[13](null),o&&M(e),o&&M(n),i[14](null)}}}function va(i){let t;return{c(){t=B("div"),b(t,"class","swiper-scrollbar")},m(e,n){T(e,t,n),i[15](t)},p:J,d(e){e&&M(t),i[15](null)}}}function ba(i){let t;return{c(){t=B("div"),b(t,"class","swiper-pagination")},m(e,n){T(e,t,n),i[16](t)},p:J,d(e){e&&M(t),i[16](null)}}}function Gp(i){let t,e,n,o,s,r,a=so(i[2]),l,c=ao(i[2]),u,d=ro(i[2]),f,h,p;const g=i[12]["container-start"],A=Xe(g,i,i[11],ga),v=i[12]["wrapper-start"],w=Xe(v,i,i[11],pa),y=i[12].default,E=Xe(y,i,i[11],ma),I=i[12]["wrapper-end"],C=Xe(I,i,i[11],ha);let L=a&&Aa(i),D=c&&va(i),V=d&&ba(i);const W=i[12]["container-end"],H=Xe(W,i,i[11],fa);let X=[{class:h=fi(`${i[1]}${i[0]?` ${i[0]}`:""}`)},i[3]],Q={};for(let P=0;P<X.length;P+=1)Q=Ce(Q,X[P]);return{c(){t=B("div"),A&&A.c(),e=ee(),n=B("div"),w&&w.c(),o=ee(),E&&E.c(),s=ee(),C&&C.c(),r=ee(),L&&L.c(),l=ee(),D&&D.c(),u=ee(),V&&V.c(),f=ee(),H&&H.c(),b(n,"class","swiper-wrapper"),Bn(t,Q)},m(P,O){T(P,t,O),A&&A.m(t,null),j(t,e),j(t,n),w&&w.m(n,null),j(n,o),E&&E.m(n,null),j(n,s),C&&C.m(n,null),j(t,r),L&&L.m(t,null),j(t,l),D&&D.m(t,null),j(t,u),V&&V.m(t,null),j(t,f),H&&H.m(t,null),i[17](t),p=!0},p(P,[O]){A&&A.p&&(!p||O&2560)&&Ue(A,g,P,P[11],p?Ye(g,P[11],O,Fp):Je(P[11]),ga),w&&w.p&&(!p||O&2560)&&Ue(w,v,P,P[11],p?Ye(v,P[11],O,Rp):Je(P[11]),pa),E&&E.p&&(!p||O&2560)&&Ue(E,y,P,P[11],p?Ye(y,P[11],O,Op):Je(P[11]),ma),C&&C.p&&(!p||O&2560)&&Ue(C,I,P,P[11],p?Ye(I,P[11],O,Qp):Je(P[11]),ha),O&4&&(a=so(P[2])),a?L?L.p(P,O):(L=Aa(P),L.c(),L.m(t,l)):L&&(L.d(1),L=null),O&4&&(c=ao(P[2])),c?D?D.p(P,O):(D=va(P),D.c(),D.m(t,u)):D&&(D.d(1),D=null),O&4&&(d=ro(P[2])),d?V?V.p(P,O):(V=ba(P),V.c(),V.m(t,f)):V&&(V.d(1),V=null),H&&H.p&&(!p||O&2560)&&Ue(H,W,P,P[11],p?Ye(W,P[11],O,jp):Je(P[11]),fa),Bn(t,Q=Be(X,[(!p||O&3&&h!==(h=fi(`${P[1]}${P[0]?` ${P[0]}`:""}`)))&&{class:h},O&8&&P[3]]))},i(P){p||(k(A,P),k(w,P),k(E,P),k(C,P),k(H,P),p=!0)},o(P){S(A,P),S(w,P),S(E,P),S(C,P),S(H,P),p=!1},d(P){P&&M(t),A&&A.d(P),w&&w.d(P),E&&E.d(P),C&&C.d(P),L&&L.d(),D&&D.d(),V&&V.d(),H&&H.d(P),i[17](null)}}}function Hp(i,t,e){const n=["class","swiper"];let o=Tn(t,n),{$$slots:s={},$$scope:r}=t;const a=ac();let{class:l=void 0}=t,c="swiper",u=!1,d=null,f=null,h,p,g,A,v=null,w=null,y=null,E=null,I=null,C={slides:[]};function L(){return d}const D=R=>{e(9,C=R),cc().then(()=>{d.$wrapperEl.children(".swiper-slide").each(N=>{N.onSwiper&&N.onSwiper(d)}),d.updateSlides(),d.updateProgress(),d.updateSlidesClasses(),d.lazy&&d.params.lazy.enabled&&d.lazy.load()})},V=()=>{h=Mp(o),e(2,p=h.params),g=h.passedParams,e(3,A=h.rest)};V(),f=g;const W=()=>{u=!0};if(p.onAny=(R,...N)=>{a(R,N)},Object.assign(p.on,{_beforeBreakpoint:W,_containerClasses(R,N){e(1,c=N)}}),d=new bi.default(p),Rn("swiper",d),d.virtual&&d.params.virtual.enabled){const R={cache:!1,renderExternal:N=>{D(N),p.virtual&&p.virtual.renderExternal&&p.virtual.renderExternal(N)},renderExternalUpdate:!1};Et(d.params.virtual,R),Et(d.originalParams.virtual,R)}Ke(()=>{!v||(Tp({el:v,nextEl:y,prevEl:w,paginationEl:I,scrollbarEl:E,swiper:d},p),a("swiper",[d]),!p.virtual&&d.slides.each(R=>{R.onSwiper&&R.onSwiper(d)}))}),Di(()=>{if(!d)return;V();const R=Bp(g,f);(R.length||u)&&d&&!d.destroyed&&Vp({swiper:d,passedParams:g,changedParams:R,nextEl:y,prevEl:w,scrollbarEl:E,paginationEl:I}),u=!1,f=g}),yt(()=>{typeof window!="undefined"&&d&&!d.destroyed&&d.destroy(!0,!1)});function H(R){Te[R?"unshift":"push"](()=>{w=R,e(5,w)})}function X(R){Te[R?"unshift":"push"](()=>{y=R,e(6,y)})}function Q(R){Te[R?"unshift":"push"](()=>{E=R,e(7,E)})}function P(R){Te[R?"unshift":"push"](()=>{I=R,e(8,I)})}function O(R){Te[R?"unshift":"push"](()=>{v=R,e(4,v)})}return i.$$set=R=>{t=Ce(Ce({},t),Wo(R)),e(27,o=Tn(t,n)),"class"in R&&e(0,l=R.class),"$$scope"in R&&e(11,r=R.$$scope)},[l,c,p,A,v,w,y,E,I,C,L,r,s,H,X,Q,P,O]}class Np extends se{constructor(t){super(),oe(this,t,Hp,Gp,ie,{class:0,swiper:10})}get swiper(){return this.$$.ctx[10]}}const Wp=i=>({data:i&32}),ya=i=>({data:i[5]}),_p=i=>({data:i&32}),wa=i=>({data:i[5]});function Xp(i){let t;const e=i[8].default,n=Xe(e,i,i[7],ya);return{c(){n&&n.c()},m(o,s){n&&n.m(o,s),t=!0},p(o,s){n&&n.p&&(!t||s&160)&&Ue(n,e,o,o[7],t?Ye(e,o[7],s,Wp):Je(o[7]),ya)},i(o){t||(k(n,o),t=!0)},o(o){S(n,o),t=!1},d(o){n&&n.d(o)}}}function Yp(i){let t,e,n;const o=i[8].default,s=Xe(o,i,i[7],wa);return{c(){t=B("div"),s&&s.c(),b(t,"class","swiper-zoom-container"),b(t,"data-swiper-zoom",e=typeof i[0]=="number"?i[0]:void 0)},m(r,a){T(r,t,a),s&&s.m(t,null),n=!0},p(r,a){s&&s.p&&(!n||a&160)&&Ue(s,o,r,r[7],n?Ye(o,r[7],a,_p):Je(r[7]),wa),(!n||a&1&&e!==(e=typeof r[0]=="number"?r[0]:void 0))&&b(t,"data-swiper-zoom",e)},i(r){n||(k(s,r),n=!0)},o(r){S(s,r),n=!1},d(r){r&&M(t),s&&s.d(r)}}}function Up(i){let t,e,n,o,s;const r=[Yp,Xp],a=[];function l(d,f){return d[0]?0:1}e=l(i),n=a[e]=r[e](i);let c=[{class:o=fi(`${i[3]}${i[2]?` ${i[2]}`:""}`)},{"data-swiper-slide-index":i[1]},i[6]],u={};for(let d=0;d<c.length;d+=1)u=Ce(u,c[d]);return{c(){t=B("div"),n.c(),Bn(t,u)},m(d,f){T(d,t,f),a[e].m(t,null),i[9](t),s=!0},p(d,[f]){let h=e;e=l(d),e===h?a[e].p(d,f):(re(),S(a[h],1,1,()=>{a[h]=null}),ae(),n=a[e],n?n.p(d,f):(n=a[e]=r[e](d),n.c()),k(n,1),n.m(t,null)),Bn(t,u=Be(c,[(!s||f&12&&o!==(o=fi(`${d[3]}${d[2]?` ${d[2]}`:""}`)))&&{class:o},(!s||f&2)&&{"data-swiper-slide-index":d[1]},f&64&&d[6]]))},i(d){s||(k(n),s=!0)},o(d){S(n),s=!1},d(d){d&&M(t),a[e].d(),i[9](null)}}}function Jp(i,t,e){let n;const o=["zoom","virtualIndex","class"];let s=Tn(t,o),{$$slots:r={},$$scope:a}=t,{zoom:l=void 0}=t,{virtualIndex:c=void 0}=t,{class:u=void 0}=t,d=null,f="swiper-slide",h=dt("swiper"),p=!1;const g=(y,E,I)=>{E===d&&e(3,f=I)},A=()=>{!h||p||(h.on("_slideClass",g),p=!0)},v=()=>{!h||(h.off("_slideClass",g),p=!1)};Ke(()=>{typeof c!="undefined"&&(e(4,d.onSwiper=y=>{h=y,A()},d),A())}),Di(()=>{if(!(!d||!h)){if(h.destroyed){f!=="swiper-slide"&&e(3,f="swiper-slide");return}A()}}),xi(()=>{A()}),yt(()=>{!h||v()});function w(y){Te[y?"unshift":"push"](()=>{d=y,e(4,d)})}return i.$$set=y=>{t=Ce(Ce({},t),Wo(y)),e(6,s=Tn(t,o)),"zoom"in y&&e(0,l=y.zoom),"virtualIndex"in y&&e(1,c=y.virtualIndex),"class"in y&&e(2,u=y.class),"$$scope"in y&&e(7,a=y.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&e(5,n={isActive:f.indexOf("swiper-slide-active")>=0||f.indexOf("swiper-slide-duplicate-active")>=0,isVisible:f.indexOf("swiper-slide-visible")>=0,isDuplicate:f.indexOf("swiper-slide-duplicate")>=0,isPrev:f.indexOf("swiper-slide-prev")>=0||f.indexOf("swiper-slide-duplicate-prev")>=0,isNext:f.indexOf("swiper-slide-next")>=0||f.indexOf("swiper-slide-duplicate-next")>=0})},[l,c,u,f,d,n,s,a,r,w]}class Zp extends se{constructor(t){super(),oe(this,t,Jp,Up,ie,{zoom:0,virtualIndex:1,class:2})}}function qp(i){le(i,"svelte-q6hk4f",".media-item.svelte-q6hk4f.svelte-q6hk4f{height:100%}.media-content.svelte-q6hk4f.svelte-q6hk4f{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-q6hk4f.svelte-q6hk4f{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-q6hk4f.svelte-q6hk4f{display:block}.video-icon.large.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem}.video-icon.small.svelte-q6hk4f.svelte-q6hk4f{width:1.75rem;height:1.75rem}.video-icon.svelte-q6hk4f .video-icon-img.svelte-q6hk4f{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-q6hk4f .video-icon-img.canPlay.svelte-q6hk4f{cursor:pointer}")}function Ca(i){let t;function e(s,r){if(s[1].type==="Image")return $p;if(s[1].type==="Video")return Kp}let n=e(i),o=n&&n(i);return{c(){t=B("div"),o&&o.c(),b(t,"class","media-item svelte-q6hk4f")},m(s,r){T(s,t,r),o&&o.m(t,null)},p(s,r){n===(n=e(s))&&o?o.p(s,r):(o&&o.d(1),o=n&&n(s),o&&(o.c(),o.m(t,null)))},d(s){s&&M(t),o&&o.d()}}}function Kp(i){let t,e,n,o,s,r;function a(u,d){return u[6]&&u[1].videoCoverUrl?tg:eg}let l=a(i),c=l(i);return{c(){c.c(),t=ee(),e=B("div"),n=B("div"),o=B("div"),b(o,"class","video-icon-img svelte-q6hk4f"),z(o,"background-image","url("+i[14]()+")"),ne(o,"canPlay",i[4]),b(n,"class","video-icon svelte-q6hk4f"),ne(n,"large",i[3]==="large"),ne(n,"small",i[3]==="small"),b(e,"class","video-play-button-container svelte-q6hk4f"),ne(e,"showPlayButton",i[8])},m(u,d){c.m(u,d),T(u,t,d),T(u,e,d),j(e,n),j(n,o),s||(r=Me(o,"click",i[15]),s=!0)},p(u,d){l===(l=a(u))&&c?c.p(u,d):(c.d(1),c=l(u),c&&(c.c(),c.m(t.parentNode,t))),d&4&&z(o,"background-image","url("+u[14]()+")"),d&16&&ne(o,"canPlay",u[4]),d&8&&ne(n,"large",u[3]==="large"),d&8&&ne(n,"small",u[3]==="small"),d&256&&ne(e,"showPlayButton",u[8])},d(u){c.d(u),u&&M(t),u&&M(e),s=!1,r()}}}function $p(i){let t,e,n,o;return{c(){t=B("img"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].url)||b(t,"src",n),b(t,"alt",o=i[1].name)},m(s,r){T(s,t,r)},p(s,r){r&32&&e!==(e=`object-fit: ${s[5]};`)&&b(t,"style",e),r&2&&!We(t.src,n=s[1].url)&&b(t,"src",n),r&2&&o!==(o=s[1].name)&&b(t,"alt",o)},d(s){s&&M(t)}}}function eg(i){let t,e,n,o,s,r,a;return{c(){t=B("video"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].videoCoverUrl?i[1].url:i[1].url+"#t=0.1")||b(t,"src",n),b(t,"poster",o=i[1].videoCoverUrl),b(t,"preload",s=i[1].videoCoverUrl?"none":"auto"),t.playsInline=!0,b(t,"paused",""),t.muted=!0,t.loop=!1,b(t,"crossorigin",""),t.controls=!1,ne(t,"showPlayButton",i[8]),z(t,"position","relative")},m(l,c){T(l,t,c),i[13](t),r||(a=Me(t,"click",i[12]),r=!0)},p(l,c){c&32&&e!==(e=`object-fit: ${l[5]};`)&&b(t,"style",e),c&2&&!We(t.src,n=l[1].videoCoverUrl?l[1].url:l[1].url+"#t=0.1")&&b(t,"src",n),c&2&&o!==(o=l[1].videoCoverUrl)&&b(t,"poster",o),c&2&&s!==(s=l[1].videoCoverUrl?"none":"auto")&&b(t,"preload",s),c&256&&ne(t,"showPlayButton",l[8])},d(l){l&&M(t),i[13](null),r=!1,a()}}}function tg(i){let t,e,n,o;return{c(){t=B("img"),b(t,"class","media-content svelte-q6hk4f"),b(t,"style",e=`object-fit: ${i[5]};`),We(t.src,n=i[1].videoCoverUrl)||b(t,"src",n),b(t,"alt",o=i[1].name)},m(s,r){T(s,t,r)},p(s,r){r&32&&e!==(e=`object-fit: ${s[5]};`)&&b(t,"style",e),r&2&&!We(t.src,n=s[1].videoCoverUrl)&&b(t,"src",n),r&2&&o!==(o=s[1].name)&&b(t,"alt",o)},d(s){s&&M(t)}}}function ng(i){let t,e=i[1]&&Ca(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,[o]){n[1]?e?e.p(n,o):(e=Ca(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},i:J,o:J,d(n){e&&e.d(n),n&&M(t)}}}function ig(i,t,e){let{tag:n}=t,{media:o}=t,{playButtonIfNeed:s="withoutText"}=t,{playButtonSizeIfNeed:r="small"}=t,{canPlay:a=!0}=t,{objectFit:l="cover"}=t,{disableVideoIfHavePoster:c=!1}=t,u=(o==null?void 0:o.type)==="Video"&&Boolean(o==null?void 0:o.videoCoverUrl),d,f=!1;const h=dt("mediaStore"),p=dt("hooks"),g=()=>{u||(d==null||d.play(),d==null||d.pause(),e(11,u=!0))};p.on("loadVideoFirstFrame",g);const A=E=>{d&&(d.pause(),p.emit("playStateChange",{event:E,state:"paused",tag:n,mediaInstance:d}))};function v(E){Te[E?"unshift":"push"](()=>{d=E,e(7,d)})}const w=()=>s==="withText"?Km:s==="withoutText"?$m:s,y=E=>{!a||d&&(e(7,d.muted=!1,d),d.play(),h.set({currentMediaElement:d}),p.emit("playStateChange",{event:E,state:"playing",tag:n,mediaInstance:d}))};return i.$$set=E=>{"tag"in E&&e(0,n=E.tag),"media"in E&&e(1,o=E.media),"playButtonIfNeed"in E&&e(2,s=E.playButtonIfNeed),"playButtonSizeIfNeed"in E&&e(3,r=E.playButtonSizeIfNeed),"canPlay"in E&&e(4,a=E.canPlay),"objectFit"in E&&e(5,l=E.objectFit),"disableVideoIfHavePoster"in E&&e(6,c=E.disableVideoIfHavePoster)},i.$$.update=()=>{if(i.$$.dirty&128&&d&&(e(8,f=d.paused),d.addEventListener("play",()=>{e(8,f=!1)}),d.addEventListener("pause",()=>{e(8,f=!0)}),h.subscribe(({currentMediaElement:E})=>{E!==d&&(d==null||d.pause())})),i.$$.dirty&2178&&(o==null?void 0:o.type)==="Video"&&!u){const E=navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1,C=navigator.userAgent.toLowerCase().indexOf("iphone")!==-1&&E;d&&C&&d.paused&&(document.removeEventListener("WeixinJSBridgeReady",g),document.removeEventListener("touchstart",g),document.removeEventListener("click",g),document.addEventListener("WeixinJSBridgeReady",g),document.addEventListener("touchstart",g),document.addEventListener("click",g))}},[n,o,s,r,a,l,c,d,f,h,p,u,A,v,w,y]}class Pa extends se{constructor(t){super(),oe(this,t,ig,ng,ie,{tag:0,media:1,playButtonIfNeed:2,playButtonSizeIfNeed:3,canPlay:4,objectFit:5,disableVideoIfHavePoster:6},qp)}}function og(i){le(i,"svelte-ai0lv9",".media.svelte-ai0lv9{width:100%;height:100%;position:relative;overflow:hidden;border-radius:0.125rem}")}function Ia(i,t,e){const n=i.slice();return n[22]=t[e],n}function Ea(i){let t,e,n,o,s,r;const a=[rg,sg],l=[];function c(u,d){return u[12]?0:1}return e=c(i),n=l[e]=a[e](i),{c(){t=B("div"),n.c(),b(t,"class","media svelte-ai0lv9"),ne(t,"unfolded",i[5])},m(u,d){T(u,t,d),l[e].m(t,null),r=!0},p(u,d){i=u;let f=e;e=c(i),e===f?l[e].p(i,d):(re(),S(l[f],1,1,()=>{l[f]=null}),ae(),n=l[e],n?n.p(i,d):(n=l[e]=a[e](i),n.c()),k(n,1),n.m(t,null)),(!r||d&32)&&ne(t,"unfolded",i[5])},i(u){r||(k(n),u&&ze(()=>{s&&s.end(1),o=Tt(t,cs,i[6]?{y:4,duration:i[4],delay:i[2],easing:At}:void 0),o.start()}),r=!0)},o(u){S(n),o&&o.invalidate(),u&&(s=qt(t,cs,i[6]?{y:4,duration:i[4],delay:i[3],easing:At}:void 0)),r=!1},d(u){u&&M(t),l[e].d(),u&&s&&s.end()}}}function sg(i){let t,e;const n=[{media:i[1][0]},i[7],{tag:i[0]}];let o={};for(let s=0;s<n.length;s+=1)o=Ce(o,n[s]);return t=new Pa({props:o}),{c(){te(t.$$.fragment)},m(s,r){K(t,s,r),e=!0},p(s,r){const a=r&131?Be(n,[r&2&&{media:s[1][0]},r&128&&ss(s[7]),r&1&&{tag:s[0]}]):{};t.$set(a)},i(s){e||(k(t.$$.fragment,s),e=!0)},o(s){S(t.$$.fragment,s),e=!1},d(s){$(t,s)}}}function rg(i){let t,e;return t=new Np({props:{style:"height: 100%",modules:[Eo.Autoplay],spaceBetween:30,autoplay:i[13]?xe({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1,loop:!0,$$slots:{default:[lg]},$$scope:{ctx:i}}}),t.$on("init",i[20]),t.$on("slideChange",i[21]),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&8192&&(s.autoplay=n[13]?xe({delay:4e3,stopOnLastSlide:!1,disableOnInteraction:!1}):!1),o&33555585&&(s.$$scope={dirty:o,ctx:n}),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function ag(i){let t,e,n;const o=[i[7],{media:i[22]},{tag:i[0]}];let s={};for(let r=0;r<o.length;r+=1)s=Ce(s,o[r]);return t=new Pa({props:s}),{c(){te(t.$$.fragment),e=ee()},m(r,a){K(t,r,a),T(r,e,a),n=!0},p(r,a){const l=a&1153?Be(o,[a&128&&ss(r[7]),a&1024&&{media:r[22]},a&1&&{tag:r[0]}]):{};t.$set(l)},i(r){n||(k(t.$$.fragment,r),n=!0)},o(r){S(t.$$.fragment,r),n=!1},d(r){$(t,r),r&&M(e)}}}function ka(i){let t,e;return t=new i[14]({props:{$$slots:{default:[ag]},$$scope:{ctx:i}}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&33555585&&(s.$$scope={dirty:o,ctx:n}),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function lg(i){let t,e,n=i[10],o=[];for(let r=0;r<n.length;r+=1)o[r]=ka(Ia(i,n,r));const s=r=>S(o[r],1,1,()=>{o[r]=null});return{c(){for(let r=0;r<o.length;r+=1)o[r].c();t=me()},m(r,a){for(let l=0;l<o.length;l+=1)o[l].m(r,a);T(r,t,a),e=!0},p(r,a){if(a&1153){n=r[10];let l;for(l=0;l<n.length;l+=1){const c=Ia(r,n,l);o[l]?(o[l].p(c,a),k(o[l],1)):(o[l]=ka(c),o[l].c(),k(o[l],1),o[l].m(t.parentNode,t))}for(re(),l=n.length;l<o.length;l+=1)s(l);ae()}},i(r){if(!e){for(let a=0;a<n.length;a+=1)k(o[a]);e=!0}},o(r){o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)S(o[a]);e=!1},d(r){ct(o,r),r&&M(t)}}}function cg(i){let t,e,n=i[5]&&Ea(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[5]?n?(n.p(o,s),s&32&&k(n,1)):(n=Ea(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function ug(i,t,e){let n,o,s;const r=xe(Zp);let{tag:a}=t,{mediaData:l}=t,{inDelay:c=0}=t,{outDelay:u=0}=t,{duration:d=0}=t,{unfolded:f=!0}=t,{animation:h=!0}=t,{mediaItemConfig:p}=t,{enableCarousel:g=!0}=t,{autoplayConfig:A={autoplay:!0,autoplayVideo:!1}}=t;const v=dt("mediaStore"),w=dt("hooks");let y;function E(V){!n||!y||(v.set({currentMediaElement:this}),w.emit("playStateChange",{event:V,state:"playing",tag:a,mediaInstance:this}),y.autoplay.stop())}function I(V){!n||!y||(w.emit("playStateChange",{event:V,state:"paused",tag:a,mediaInstance:this}),y.autoplay.running||y.autoplay.start())}let C=null;const L=V=>{e(9,y=V.detail[0])},D=V=>Y(this,null,function*(){var O,R,N;if(!s||!A.autoplayVideo)return;const W=V.detail[0];if(!W)return;const H=W.realIndex;if(H===C)return;e(11,C=H);const X=o[H];if(!X||X.type!=="Video")return;W.autoplay.stop(),W.slides.map(Z=>Z.querySelector("video")).filter(Ze).forEach(Z=>Z.pause());const P=(O=W.slides[W.activeIndex])==null?void 0:O.querySelector("video");if(P&&(P.removeEventListener("play",E),P.removeEventListener("pause",I),P.addEventListener("play",E),P.addEventListener("pause",I)),P){P.addEventListener("click",()=>P.pause());const Z=(N=(R=P.parentElement)==null?void 0:R.getElementsByClassName("video-play-button-container"))==null?void 0:N[0];P.addEventListener("play",()=>Z==null?void 0:Z.classList.remove("showPlayButton")),P.addEventListener("pause",()=>Z==null?void 0:Z.classList.add("showPlayButton")),Z&&(P.paused?Z.classList.add("showPlayButton"):Z.classList.remove("showPlayButton"),Z.addEventListener("click",_=>{P.muted=!1,P.play(),v.set({currentMediaElement:P}),w.emit("playStateChange",{event:_,state:"playing",tag:a,mediaInstance:P})}))}});return i.$$set=V=>{"tag"in V&&e(0,a=V.tag),"mediaData"in V&&e(1,l=V.mediaData),"inDelay"in V&&e(2,c=V.inDelay),"outDelay"in V&&e(3,u=V.outDelay),"duration"in V&&e(4,d=V.duration),"unfolded"in V&&e(5,f=V.unfolded),"animation"in V&&e(6,h=V.animation),"mediaItemConfig"in V&&e(7,p=V.mediaItemConfig),"enableCarousel"in V&&e(19,g=V.enableCarousel),"autoplayConfig"in V&&e(8,A=V.autoplayConfig)},i.$$.update=()=>{i.$$.dirty&524290&&e(12,n=g&&(l==null?void 0:l.length)>1),i.$$.dirty&2&&e(10,o=l),i.$$.dirty&1280&&e(13,s=o.length>1&&A.autoplay),i.$$.dirty&512&&y&&y.slides.forEach(V=>{const W=V.querySelector("video");W&&v.subscribe(({currentMediaElement:H})=>{H!==W&&W.pause()})})},[a,l,c,u,d,f,h,p,A,y,o,C,n,s,r,v,w,E,I,g,L,D]}class xa extends se{constructor(t){super(),oe(this,t,ug,cg,ie,{tag:0,mediaData:1,inDelay:2,outDelay:3,duration:4,unfolded:5,animation:6,mediaItemConfig:7,enableCarousel:19,autoplayConfig:8},og)}}function dg(i){le(i,"svelte-1f7m1lj",".line.svelte-1f7m1lj{position:absolute;width:6.5625rem;height:1.3125rem;transform:translateY(-100%)}.text.svelte-1f7m1lj{position:absolute;width:6.25rem;left:1rem;bottom:0.0625rem;font-weight:600}.media-wrapper.svelte-1f7m1lj{position:absolute;left:0.875rem;top:-5.3125rem;width:5.625rem;height:3.75rem;font-weight:600}")}function Da(i){let t,e,n,o,s,r,a,l;t=new ot({props:{visible:i[3],left:61,bottom:57,width:2,blurRadius:150,spreadRadius:75}}),o=new zp({props:{unfolded:i[3],outDelay:400}});let c=i[2]&&La(i),u=i[1]&&Sa(i);return{c(){te(t.$$.fragment),e=ee(),n=B("div"),te(o.$$.fragment),s=ee(),c&&c.c(),r=ee(),u&&u.c(),a=me(),b(n,"class","line svelte-1f7m1lj")},m(d,f){K(t,d,f),T(d,e,f),T(d,n,f),K(o,n,null),T(d,s,f),c&&c.m(d,f),T(d,r,f),u&&u.m(d,f),T(d,a,f),l=!0},p(d,f){const h={};f&8&&(h.visible=d[3]),t.$set(h);const p={};f&8&&(p.unfolded=d[3]),o.$set(p),d[2]?c?(c.p(d,f),f&4&&k(c,1)):(c=La(d),c.c(),k(c,1),c.m(r.parentNode,r)):c&&(re(),S(c,1,1,()=>{c=null}),ae()),d[1]?u?(u.p(d,f),f&2&&k(u,1)):(u=Sa(d),u.c(),k(u,1),u.m(a.parentNode,a)):u&&(re(),S(u,1,1,()=>{u=null}),ae())},i(d){l||(k(t.$$.fragment,d),k(o.$$.fragment,d),k(c),k(u),l=!0)},o(d){S(t.$$.fragment,d),S(o.$$.fragment,d),S(c),S(u),l=!1},d(d){$(t,d),d&&M(e),d&&M(n),$(o),d&&M(s),c&&c.d(d),d&&M(r),u&&u.d(d),d&&M(a)}}}function La(i){let t,e,n;return e=new ta({props:{unfolded:i[3],content:i[2],inDelay:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1f7m1lj")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&4&&(r.content=o[2]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function Sa(i){let t,e,n;return e=new xa({props:{autoplayConfig:{autoplay:!1},unfolded:i[3],mediaData:i[1],tag:i[0],enableCarousel:!1,mediaItemConfig:{canPlay:!1,playButtonSizeIfNeed:"small",disableVideoIfHavePoster:!0},inDelay:500,duration:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","media-wrapper svelte-1f7m1lj")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&8&&(r.unfolded=o[3]),s&2&&(r.mediaData=o[1]),s&1&&(r.tag=o[0]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function fg(i){let t,e,n=i[0].state&&Da(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=Da(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function hg(i,t,e){let n,o,s,r,{tag:a}=t;return i.$$set=l=>{"tag"in l&&e(0,a=l.tag)},i.$$.update=()=>{var l,c,u;i.$$.dirty&1&&e(3,n=a.state?a.state.unfolded:!1),i.$$.dirty&1&&e(4,o=(c=(l=a.data.title)!=null?l:a.data.text)!=null?c:""),i.$$.dirty&16&&e(2,s=((u=o.length)!=null?u:0)>7?o.substring(0,6)+"...":o),i.$$.dirty&1&&e(1,r=a.data.mediaData)},[a,r,s,n,o]}class mg extends se{constructor(t){super(),oe(this,t,hg,fg,ie,{tag:0},dg)}}class lo{constructor(t=0,e=0){m(this,"min");m(this,"max");m(this,"isInterval",!0);this.min=t,this.max=e}fromArray(t){return this.min=t[0],this.max=t[1],this}isOverlap(t){return Math.min(this.max,t.max)<Math.max(this.min,t.min)}contains(t){return this.min<t.min&&this.max>t.max}}class pg{constructor(t,e){m(this,"min");m(this,"max");m(this,"xInterval");m(this,"yInterval");m(this,"isRectangle",!0);this.min=t,this.max=e,this.xInterval=new lo(this.min.x,this.max.x),this.yInterval=new lo(this.min.y,this.max.y)}isOverlapWithRectangle(t){return!this.xInterval.isOverlap(t.xInterval)&&!this.yInterval.isOverlap(t.yInterval)}containsRect(t){return this.xInterval.contains(t.xInterval)&&this.yInterval.contains(t.yInterval)}}function hi(i,t,e){const n=i[t],o=i[e];!n||!o||(i[t]=o,i[e]=n)}function gg(i,t,e){const n=e/2;for(let o=1;o<=n;o++){const s=e-(o-1);for(let r=1;r<=t;r++){const a=(o-1)*t+r-1,l=(s-1)*t+r-1;hi(i,a*4+0,l*4+0),hi(i,a*4+1,l*4+1),hi(i,a*4+2,l*4+2),hi(i,a*4+3,l*4+3)}}}class za{constructor(t,e){m(this,"width");m(this,"height");m(this,"containerDom");m(this,"hooks",new de.Subscribe);m(this,"canvas",document.createElement("canvas"));m(this,"five");m(this,"scale");m(this,"config");m(this,"offset",{x:0,y:0});m(this,"context");m(this,"renderCenter",new x.Vector3);m(this,"hammer");m(this,"state",{enabled:!1});m(this,"onPan",t=>{if(!this.containerDom||this.hooks.emit("wantsPanGesture",t))return;const n=this.offset.x+t.deltaX,o=this.offset.y+t.deltaY;this.canvas.style.boxShadow="0 2px 30px 0 rgba(0,0,0,0.20)",this.canvas.style.transform=`translate3d(${n}px, ${o}px, 100px)`});m(this,"onPanEnd",t=>{this.offset={x:this.offset.x+t.deltaX,y:this.offset.y+t.deltaY},this.canvas.style.boxShadow="none"});var o,s,r;if(!t.renderer)throw new Error("Five Render \u672A\u521D\u59CB\u5316");this.five=t,this.scale=(o=e==null?void 0:e.scale)!=null?o:2,this.width=(s=e==null?void 0:e.width)!=null?s:190,this.height=(r=e==null?void 0:e.height)!=null?r:190,this.config={dragEnabled:(e==null?void 0:e.dragEnabled)||!1,autoFixPCPosition:(e==null?void 0:e.autoFixPCPosition)||!1,initialPosition:(e==null?void 0:e.initialPosition)||{left:"0",top:"0"}};const n=this.canvas.getContext("2d");if(!n)throw new Error("CANNOT CREATE CONTEXT2D");this.context=n,this.config.dragEnabled&&(this.hammer=new un.default(this.canvas),this.hammer.on("pan",this.onPan),this.hammer.on("panend",this.onPanEnd)),this.initStyle()}dispose(){var t;this.clear(),this.disable(),(t=this.hammer)==null||t.destroy()}enable(){var t;if(!this.state.enabled)return this.state.enabled=!0,(t=this.containerDom)==null||t.append(this.canvas),this}disable(){if(!!this.state.enabled)return this.state.enabled=!1,this.canvas.remove(),this}appendTo(t){var e;return this.containerDom&&((e=this.containerDom)==null||e.removeChild(this.canvas)),this.containerDom=t,this.state.enabled&&t.append(this.canvas),this}clear(){return this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this}renderWithPoint(t){!this.containerDom||!this.state.enabled||(this.renderCenter=t,this.render(),this.config.autoFixPCPosition&&this.autoFixPCPosition())}autoFixPCPosition(){if(!this.containerDom)return;const{width:t,height:e}=this,n=this.renderCenter.clone().project(this.five.camera),o=(n.x+1)/2*this.containerDom.clientWidth,s=-(n.x-1)/2*this.containerDom.clientWidth,r=-(n.y-1)/2*this.containerDom.clientHeight;o<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=90+"px"):r<183?(this.canvas.style.top=90+"px",this.canvas.style.left=-t/2+"px"):s<183?(this.canvas.style.top=-e/2+"px",this.canvas.style.left=-t-90+"px"):(this.canvas.style.left=-t/2+"px",this.canvas.style.top=-e-90+"px"),this.canvas.style.transform=`translate3d(${o}px, ${r}px, 10px)`,this.offset={x:o,y:r}}render(){if(!this.five.renderer||!this.containerDom)return;const{scale:t,context:e,width:n,height:o}=this,s=this.renderCenter.clone().project(this.five.camera),r=this.five.renderer.getSize(new x.Vector2),a=1,l=n/t,c=o/t,u=a*t,d=(s.x+1)/2*r.x,f=(s.y+1)/2*r.y,h=this.five.getPixels(d-l/2,f-l/2,l,c,u),p=Math.floor(n*a),g=Math.floor(o*a);gg(h,p,g);const A=new ImageData(p,g);A.data.set(h),e.putImageData(A,0,0)}initStyle(){const t=this.canvas;t.classList.add("five-plugin__magnifier"),t.style.position="absolute",t.style.pointerEvents="all",t.style.borderRadius="50%",t.style.zIndex="99";const e=1;t.setAttribute("width",(this.width*e).toString()),t.setAttribute("height",(this.height*e).toString()),t.style.border="2px solid rgba(255,255,255,0.20)",t.style.width=this.width+"px",t.style.height=this.height+"px",t.style.top=this.config.initialPosition.top,t.style.left=this.config.initialPosition.left,t.style.transform="translate(0,0,100px)",this.config.dragEnabled&&(this.canvas.style.cursor="pointer")}}function Ag(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return new x.Vector2().set((i.x-s)/e*2-1,-(i.y-o)/n*2+1)}function Ma(i,t){const{offsetWidth:e,offsetHeight:n}=t;return new x.Vector2().set(i.x/e*2-1,-i.y/n*2+1)}function vg(i,t){const e=i.getElement();if(!e)return;const n=Ma(t,e),o=new x.Raycaster;return o.setFromCamera(n,i.camera),o}function bg(i,t){const{x:e,y:n}=t,o=e*2-1,s=n*2-1,r=new x.Vector2().fromArray([o,s]),a=new x.Raycaster;return a.setFromCamera(r,i.camera),i.model.intersectRaycaster(a)[0]}const yg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbYAAAGwCAYAAADFUEBtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABtqADAAQAAAABAAABsAAAAABTZ8U6AAAtiklEQVR4Ae2dAXJbSbJdp+d7AfYSHOGVeAPek5fkNXgLjviLmRkZl+CRbtc8UBKRRalZpyIesiorMx/eIcjb+QCh//Y3hwQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgA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5xLYQEBh2wDVkscSaNF6mf/xxx9fbuNm7vZYMl64BCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQlIQAISkIAEJCABCUhAAhKQgAQkIAEJSEACEpCABCQgAQn8NQn8fyHnyuSABiy2AAAAAElFTkSuQmCC",wg=`
|
|
545
545
|
varying vec2 vUv;
|
|
546
546
|
void main() {
|
|
547
547
|
vUv = uv;
|
|
@@ -556,4 +556,4 @@ void main() {
|
|
|
556
556
|
float match = 1.0 - uv.x;
|
|
557
557
|
gl_FragColor = vec4(1.0,1.0,1.0,match);
|
|
558
558
|
}
|
|
559
|
-
`;function Pg(){const i=new x.PlaneGeometry(.4,.4),t=yg,e=new x.TextureLoader().load(t);e.encoding=x.sRGBEncoding;const n=new x.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new x.Mesh(i,n)}function Ig(){const i=new x.CurvePath;i.add(new x.LineCurve3(new x.Vector3(0,0,0),new x.Vector3(0,0,.1)));const t=new x.TubeGeometry(i,8,.003),e=new x.ShaderMaterial({vertexShader:wg,fragmentShader:Cg,depthTest:!1,transparent:!0});return new x.Mesh(t,e)}function Eg(){const i=new x.SphereGeometry(.01,20,20),t=new x.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:x.DoubleSide}),e=new x.Mesh(i,t);return e.position.set(0,0,.1),e}class Ta extends x.Object3D{constructor(){super();m(this,"planeMesh");m(this,"lineMesh");m(this,"ballMesh");this.planeMesh=Pg(),this.lineMesh=Ig(),this.ballMesh=Eg(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new x.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class Ba{constructor(t){m(this,"five");m(this,"contentElement",document.createElement("div"));m(this,"animeIns");m(this,"container");m(this,"css3DObject");m(this,"disposeCss3DObject");m(this,"state",{enabled:!1});this.five=t;const n=.4/2,s=Jt(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new x.Vector3().fromArray(r)));if(s){const{container:r,dispose:a,css3DObject:l}=s;this.container=r,this.css3DObject=l,this.disposeCss3DObject=a}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Ar})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new x.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Ni({progress:0}).to({progress:[1,0]}).duration(500).easing(In.Easing.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class kg{constructor(t,e){m(this,"five");m(this,"hooks",new de.Subscribe);m(this,"magnifier",null);m(this,"pointHelper",null);m(this,"pointDomHelper",null);m(this,"contentDom",document.createElement("div"));m(this,"state",{enabled:!1});m(this,"group",new x.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new za(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Ta:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new Ba(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var s;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(s=t.face)==null?void 0:s.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const o=this.pointDomHelper;o&&o.updateWithIntersect(t),this.five.needsRender=!0}}const xg=Object.freeze(Object.defineProperty({__proto__:null,Interval:lo,Rectangle:pg,Magnifier:za,getCoordsFromClient:Ag,getCoordsFromElement:Ma,getRaycasterFromFivePointer:vg,getIntersectFromRelativePosition:bg,PointHelper:Ta,PointDomHelper:Ba,FivePointSelector:kg,isNil:Im,notNil:Ze,BetterTween:Ni,tweenProgress:_s,nextFrame:qn,requestAnimationFrameInterval:Kn,getFrameTime:Ud},Symbol.toStringTag,{value:"Module"}));function Dg(i){le(i,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function Va(i,t,e){const n=i.slice();return n[0]=t[e],n}function ja(i,t,e){const n=i.slice();return n[0]=t[e],n}function Qa(i){let t,e=i[0]+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","base-tag primary-tag svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&ke(n,e)},d(o){o&&M(t)}}}function Oa(i){let t,e=i[0]&&Qa(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,o){n[0]?e?e.p(n,o):(e=Qa(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&M(t)}}}function Ra(i){let t,e=i[0]+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","base-tag secondary-tag svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&ke(n,e)},d(o){o&&M(t)}}}function Fa(i){let t,e=i[0]&&Ra(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,o){n[0]?e?e.p(n,o):(e=Ra(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&M(t)}}}function Ga(i){let t,e,n=i[2].price.value+"",o,s,r=i[2].price.unit&&Ha(i);return{c(){t=B("div"),e=B("span"),o=Pe(n),s=ee(),r&&r.c(),b(e,"class","value svelte-8mby9k"),b(t,"class","price svelte-8mby9k")},m(a,l){T(a,t,l),j(t,e),j(e,o),j(t,s),r&&r.m(t,null)},p(a,l){l&4&&n!==(n=a[2].price.value+"")&&ke(o,n),a[2].price.unit?r?r.p(a,l):(r=Ha(a),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(a){a&&M(t),r&&r.d()}}}function Ha(i){let t,e=i[2].price.unit+"",n;return{c(){t=B("span"),n=Pe(e),b(t,"class","unit svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].price.unit+"")&&ke(n,e)},d(o){o&&M(t)}}}function Na(i){let t,e=i[2].highlightText+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","goto-button goto-icon svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].highlightText+"")&&ke(n,e)},d(o){o&&M(t)}}}function Lg(i){var X,Q;let t,e,n,o,s,r,a,l,c,u,d,f,h,p,g=i[2].title+"",A,v,w,y=Ze((X=i[2].price)==null?void 0:X.value)&&((Q=i[2].price)==null?void 0:Q.value)!=="",E,I;e=new ot({props:{visible:i[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let C=i[2].brandTags||[],L=[];for(let P=0;P<C.length;P+=1)L[P]=Oa(ja(i,C,P));let D=i[2].tags||[],V=[];for(let P=0;P<D.length;P+=1)V[P]=Fa(Va(i,D,P));let W=y&&Ga(i),H=i[2].highlightText&&Na(i);return{c(){var P;t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=ee(),r=B("div"),a=B("img"),c=ee(),u=B("div");for(let O=0;O<L.length;O+=1)L[O].c();d=ee();for(let O=0;O<V.length;O+=1)V[O].c();f=ee(),h=B("div"),p=B("div"),A=Pe(g),v=ee(),w=B("div"),W&&W.c(),E=ee(),H&&H.c(),b(o,"class","line svelte-8mby9k"),z(o,"transition-delay",i[1]?mi+"ms":pi+_a-Wa-40+"ms"),b(a,"class","headerImage svelte-8mby9k"),We(a.src,l=i[2].headerPictureUrl)||b(a,"src",l),b(a,"alt",""),b(u,"class","tag svelte-8mby9k"),b(p,"class","text svelte-8mby9k"),b(h,"class","title svelte-8mby9k"),b(w,"class","footer svelte-8mby9k"),z(w,"height",Ze((P=i[2].price)==null?void 0:P.value)&&i[2].highlightText?void 0:"1rem"),b(r,"class","content svelte-8mby9k"),z(r,"transition-delay",i[1]?mi+pi+"ms":"0ms"),b(t,"class","marketing svelte-8mby9k"),ne(t,"unfolded",i[1]),ne(t,"folded",i[3])},m(P,O){T(P,t,O),K(e,t,null),j(t,n),j(t,o),j(t,s),j(t,r),j(r,a),j(r,c),j(r,u);for(let R=0;R<L.length;R+=1)L[R].m(u,null);j(u,d);for(let R=0;R<V.length;R+=1)V[R].m(u,null);j(r,f),j(r,h),j(h,p),j(p,A),j(r,v),j(r,w),W&&W.m(w,null),j(w,E),H&&H.m(w,null),I=!0},p(P,[O]){var N,Z,_;const R={};if(O&2&&(R.visible=P[1]),e.$set(R),O&2&&z(o,"transition-delay",P[1]?mi+"ms":pi+_a-Wa-40+"ms"),(!I||O&4&&!We(a.src,l=P[2].headerPictureUrl))&&b(a,"src",l),O&4){C=P[2].brandTags||[];let q;for(q=0;q<C.length;q+=1){const fe=ja(P,C,q);L[q]?L[q].p(fe,O):(L[q]=Oa(fe),L[q].c(),L[q].m(u,d))}for(;q<L.length;q+=1)L[q].d(1);L.length=C.length}if(O&4){D=P[2].tags||[];let q;for(q=0;q<D.length;q+=1){const fe=Va(P,D,q);V[q]?V[q].p(fe,O):(V[q]=Fa(fe),V[q].c(),V[q].m(u,null))}for(;q<V.length;q+=1)V[q].d(1);V.length=D.length}(!I||O&4)&&g!==(g=P[2].title+"")&&ke(A,g),O&4&&(y=Ze((N=P[2].price)==null?void 0:N.value)&&((Z=P[2].price)==null?void 0:Z.value)!==""),y?W?W.p(P,O):(W=Ga(P),W.c(),W.m(w,E)):W&&(W.d(1),W=null),P[2].highlightText?H?H.p(P,O):(H=Na(P),H.c(),H.m(w,null)):H&&(H.d(1),H=null),O&4&&z(w,"height",Ze((_=P[2].price)==null?void 0:_.value)&&P[2].highlightText?void 0:"1rem"),O&2&&z(r,"transition-delay",P[1]?mi+pi+"ms":"0ms"),(!I||O&2)&&ne(t,"unfolded",P[1]),(!I||O&8)&&ne(t,"folded",P[3])},i(P){I||(k(e.$$.fragment,P),I=!0)},o(P){S(e.$$.fragment,P),I=!1},d(P){P&&M(t),$(e),ct(L,P),ct(V,P),W&&W.d(),H&&H.d()}}}const mi=400,Wa=500,pi=180,_a=500;function Sg(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l;i.$$.dirty&1&&e(1,n=(l=(a=r.state)==null?void 0:a.unfolded)!=null?l:!1),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&1&&e(2,s=r.data)},[r,n,s,o]}class zg extends se{constructor(t){super(),oe(this,t,Sg,Lg,ie,{tag:0},Dg)}}const Ft="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCI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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",gi=[];function Mg(i){let t=gi.find(e=>!e.realSrc||e.realSrc===Ft);return t||(t=new co(Ft),gi.push(t)),i&&(t.src=i),t}function Tg(i){return Y(this,null,function*(){const t=(()=>i instanceof co?i:Mg(i))(),e=yield new Promise(n=>{t.duration?t.isBlankAudio?n(0):n(t.duration):(t.addEventListener("loadedmetadata",()=>{t.isBlankAudio?n(0):n(t.duration)}),t.addEventListener("canplaythrough",()=>{t.isBlankAudio?n(0):n(t.duration)}))});return typeof i=="string"&&t.clear(),e})}function Bg(i){const t=i-gi.length;if(!(t<=0))for(let e=0;e<t;e++)gi.push(new co(Ft))}function Vg(i){i.inited||(i.src&&(i.inited=!0,i.removeDocumentEventListener()),i.src===Ft&&i.play())}class co extends Audio{constructor(e){super(e);m(this,"preload","auto");m(this,"realSrc","");m(this,"inited",!1);m(this,"removeDocumentEventListener");this.realSrc=e!=null?e:"",super.addEventListener("ended",()=>{this.src=""});const n=()=>Vg(this);document.addEventListener("mousedown",n),document.addEventListener("click",n),document.addEventListener("touchstart",n),this.removeDocumentEventListener=()=>{document.removeEventListener("mousedown",n),document.removeEventListener("click",n),document.removeEventListener("touchstart",n)}}get isBlankAudio(){return this.realSrc===Ft||!this.realSrc}get src(){return super.src}set src(e){super.src=e,this.realSrc=e}clear(){this.src=Ft,console.log(this.realSrc===Ft)}}function jg(i){le(i,"svelte-kebunf",".audio.svelte-kebunf{pointer-events:auto;cursor:pointer;width:100%;height:100%}.children.svelte-kebunf{width:100%;height:100%}")}const Qg=i=>({currentTime:i&8,duration:i&4,playing:i&16}),Xa=i=>({currentTime:typeof i[3]=="number"&&!Number.isNaN(i[3])?i[3]:void 0,duration:typeof i[2]=="number"&&!Number.isNaN(i[2])?i[2]:void 0,playing:i[4]}),Og=i=>({playing:i&16}),Ya=i=>({playing:i[4]});function Rg(i){let t,e,n,o,s,r,a;const l=i[12].audioIcon,c=Xe(l,i,i[11],Ya),u=i[12].currentTime,d=Xe(u,i,i[11],Xa),f=i[12].default,h=Xe(f,i,i[11],null);return{c(){t=B("div"),e=B("div"),c&&c.c(),n=ee(),d&&d.c(),o=ee(),h&&h.c(),b(e,"class","children svelte-kebunf"),b(e,"style",i[1]),b(t,"class","audio svelte-kebunf"),b(t,"style",i[0])},m(p,g){T(p,t,g),j(t,e),c&&c.m(e,null),j(e,n),d&&d.m(e,null),j(e,o),h&&h.m(e,null),s=!0,r||(a=Me(t,"click",Zo(i[5])),r=!0)},p(p,[g]){c&&c.p&&(!s||g&2064)&&Ue(c,l,p,p[11],s?Ye(l,p[11],g,Og):Je(p[11]),Ya),d&&d.p&&(!s||g&2076)&&Ue(d,u,p,p[11],s?Ye(u,p[11],g,Qg):Je(p[11]),Xa),h&&h.p&&(!s||g&2048)&&Ue(h,f,p,p[11],s?Ye(f,p[11],g,null):Je(p[11]),null),(!s||g&2)&&b(e,"style",p[1]),(!s||g&1)&&b(t,"style",p[0])},i(p){s||(k(c,p),k(d,p),k(h,p),s=!0)},o(p){S(c,p),S(d,p),S(h,p),s=!1},d(p){p&&M(t),c&&c.d(p),d&&d.d(p),h&&h.d(p),r=!1,a()}}}function Fg(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{url:r}=t,{paused:a=!0}=t,{style:l=""}=t,{slotWrapperStyle:c=""}=t,{hooksInfo:u}=t;const d=dt("hooks"),f=dt("mediaStore");let h,p=!0,g=null,A=null;function v(){e(9,h.onplay=y=>{d.emit("playStateChange",G({event:y,state:"playing",mediaInstance:h},u)),e(10,p=!1)},h),e(9,h.onpause=y=>{d.emit("playStateChange",G({event:y,state:"paused",mediaInstance:h},u)),e(10,p=!0)},h),e(9,h.onended=y=>{e(10,p=!0)},h),e(9,h.onloadedmetadata=y=>{e(2,g=h.duration)},h),e(9,h.ontimeupdate=y=>{e(3,A=h.currentTime)},h)}f.subscribe(({currentMediaElement:y})=>{y!==h&&(h==null||h.pause())});function w(y){!h||(d.emit("click",G({event:y,target:"AudioTagPlayIcon",audioInstance:h},u)),f.set({currentMediaElement:h}),h.paused?h.play():h.pause())}return i.$$set=y=>{"url"in y&&e(6,r=y.url),"paused"in y&&e(7,a=y.paused),"style"in y&&e(0,l=y.style),"slotWrapperStyle"in y&&e(1,c=y.slotWrapperStyle),"hooksInfo"in y&&e(8,u=y.hooksInfo),"$$scope"in y&&e(11,s=y.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&(e(9,h=new Audio(r)),Tg(r).then(y=>{e(2,g=y)}),v()),i.$$.dirty&640&&(a||h==null||h.pause()),i.$$.dirty&1152&&e(4,n=!a&&!p)},[l,c,g,A,n,w,r,a,u,h,p,s,o]}class Ua extends se{constructor(t){super(),oe(this,t,Fg,Rg,ie,{url:6,paused:7,style:0,slotWrapperStyle:1,hooksInfo:8},jg)}}function Gg(i){le(i,"svelte-srt2pi",".audio-icon__wrapper.svelte-srt2pi.svelte-srt2pi{display:inline-block}.audio-icon.svelte-srt2pi.svelte-srt2pi{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;border-radius:50%;background-color:rgba(255, 255, 255, 0.8)}.audio-icon.svelte-srt2pi .sound-wave__container.svelte-srt2pi{position:absolute;pointer-events:none;width:60%;height:60%}.sound-wave.svelte-srt2pi.svelte-srt2pi{animation-duration:2s;animation-iteration-count:infinite;animation-play-state:paused;transition:opacity 0}.playing.svelte-srt2pi .sound-wave.svelte-srt2pi{animation-play-state:running}.playing.svelte-srt2pi .sound-wave-1.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_1_animation}.playing.svelte-srt2pi .sound-wave-2.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_2_animation}.playing.svelte-srt2pi .sound-wave-3.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_3_animation}@keyframes svelte-srt2pi-sound_wave_1_animation{0%,10%{opacity:0}25%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_2_animation{0%,35%{opacity:0}50%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_3_animation{0%,60%{opacity:0}75%,100%{opacity:1}}")}function Ja(i){let t,e;return t=new ot({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Hg(i){let t,e,n,o,s,r=i[1]&&Ja();return{c(){t=B("div"),r&&r.c(),e=ee(),n=B("div"),o=B("div"),o.innerHTML='<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>',b(o,"class","sound-wave__container svelte-srt2pi"),b(n,"class","audio-icon svelte-srt2pi"),ne(n,"playing",i[0]),b(t,"class","audio-icon__wrapper svelte-srt2pi"),b(t,"style",i[2]),z(t,"width",i[5]),z(t,"height",i[5])},m(a,l){T(a,t,l),r&&r.m(t,null),j(t,e),j(t,n),j(n,o),i[7](o),i[8](t),s=!0},p(a,[l]){a[1]?r?l&2&&k(r,1):(r=Ja(),r.c(),k(r,1),r.m(t,e)):r&&(re(),S(r,1,1,()=>{r=null}),ae()),(!s||l&1)&&ne(n,"playing",a[0]),(!s||l&4)&&b(t,"style",a[2]),l&32&&z(t,"width",a[5]),l&32&&z(t,"height",a[5])},i(a){s||(k(r),s=!0)},o(a){S(r),s=!1},d(a){a&&M(t),r&&r.d(),i[7](null),i[8](null)}}}function Ng(i,t,e){let n,{playing:o}=t,{shadow:s=!1}=t,{style:r=null}=t,{width:a="100%"}=t,l,c;function u(f){Te[f?"unshift":"push"](()=>{c=f,e(4,c)})}function d(f){Te[f?"unshift":"push"](()=>{l=f,e(3,l)})}return i.$$set=f=>{"playing"in f&&e(0,o=f.playing),"shadow"in f&&e(1,s=f.shadow),"style"in f&&e(2,r=f.style),"width"in f&&e(6,a=f.width)},i.$$.update=()=>{i.$$.dirty&64&&e(5,n=typeof a=="number"?Ie(a):a)},[o,s,r,l,c,n,a,u,d]}class Za extends se{constructor(t){super(),oe(this,t,Ng,Hg,ie,{playing:0,shadow:1,style:2,width:6},Gg)}}function Wg(i){le(i,"svelte-1s6gk4a",".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}")}function qa(i){var v,w;let t,e,n,o,s,r,a,l,c,u,d,f,h,p,g;e=new ot({props:{visible:i[5],left:i[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}});let A=i[5]&&Ka(i);return c=new sa({props:{visible:i[5],textUnfolded:i[1],content:i[4]}}),f=new no({props:{unfolded:i[5],length:150,outDelay:i[3]+20*Math.min((w=(v=i[4])==null?void 0:v.length)!=null?w:10,15),useLinearColor:!0}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=B("div"),r=B("div"),A&&A.c(),a=ee(),l=B("div"),te(c.$$.fragment),d=ee(),te(f.$$.fragment),b(r,"class","audio-icon svelte-1s6gk4a"),ze(()=>i[7].call(l)),z(l,"display","inline-block"),b(s,"class","wrapper svelte-1s6gk4a"),b(o,"class","content svelte-1s6gk4a"),b(t,"class","audio-tag svelte-1s6gk4a"),ne(t,"unfolded",i[5])},m(y,E){T(y,t,E),K(e,t,null),j(t,n),j(t,o),j(o,s),j(s,r),A&&A.m(r,null),j(s,a),j(s,l),K(c,l,null),u=vt(l,i[7].bind(l)),j(t,d),K(f,t,null),h=!0,p||(g=Me(l,"click",i[6]),p=!0)},p(y,E){var D,V;const I={};E&32&&(I.visible=y[5]),E&4&&(I.left=y[2]/2+"px"),e.$set(I),y[5]?A?(A.p(y,E),E&32&&k(A,1)):(A=Ka(y),A.c(),k(A,1),A.m(r,null)):A&&(re(),S(A,1,1,()=>{A=null}),ae());const C={};E&32&&(C.visible=y[5]),E&2&&(C.textUnfolded=y[1]),E&16&&(C.content=y[4]),c.$set(C);const L={};E&32&&(L.unfolded=y[5]),E&24&&(L.outDelay=y[3]+20*Math.min((V=(D=y[4])==null?void 0:D.length)!=null?V:10,15)),f.$set(L),(!h||E&32)&&ne(t,"unfolded",y[5])},i(y){h||(k(e.$$.fragment,y),k(A),k(c.$$.fragment,y),k(f.$$.fragment,y),h=!0)},o(y){S(e.$$.fragment,y),S(A),S(c.$$.fragment,y),S(f.$$.fragment,y),h=!1},d(y){y&&M(t),$(e),A&&A.d(),$(c),u(),$(f),p=!1,g()}}}function Ka(i){let t,e,n,o,s,r,a;return e=new ot({props:{center:!0,blurRadius:15,spreadRadius:6}}),o=new Ua({props:{paused:!i[5],url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{audioIcon:[_g,({playing:l})=>({8:l}),({playing:l})=>l?256:0]},$$scope:{ctx:i}}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),te(o.$$.fragment),b(t,"class","audio svelte-1s6gk4a")},m(l,c){T(l,t,c),K(e,t,null),j(t,n),K(o,t,null),a=!0},p(l,c){i=l;const u={};c&32&&(u.paused=!i[5]),c&1&&(u.url=i[0].data.audioUrl),c&1&&(u.hooksInfo={tag:i[0]}),c&768&&(u.$$scope={dirty:c,ctx:i}),o.$set(u)},i(l){a||(k(e.$$.fragment,l),k(o.$$.fragment,l),l&&ze(()=>{r&&r.end(1),s=Tt(t,Vt,{duration:1e3,delay:0,easing:Kt}),s.start()}),a=!0)},o(l){var c,u;S(e.$$.fragment,l),S(o.$$.fragment,l),s&&s.invalidate(),l&&(r=qt(t,Vt,{duration:1e3,delay:20*Math.min((u=(c=i[4])==null?void 0:c.length)!=null?u:10,15),easing:Kt})),a=!1},d(l){l&&M(t),$(e),$(o),l&&r&&r.end()}}}function _g(i){let t,e,n;return e=new Za({props:{playing:i[8]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"slot","audioIcon"),b(t,"class","audio-icon__wrapper svelte-1s6gk4a")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&256&&(r.playing=o[8]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function Xg(i){let t,e,n=i[0].state&&qa(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=qa(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function Yg(i,t,e){let n,o,s,{tag:r}=t,a=!1,l;function c(){e(1,a=!a)}function u(){l=this.clientWidth,e(2,l)}return i.$$set=d=>{"tag"in d&&e(0,r=d.tag)},i.$$.update=()=>{var d,f,h;i.$$.dirty&1&&e(5,n=!!((d=r.state)!=null&&d.unfolded)),i.$$.dirty&1&&e(4,o=(h=(f=r.data.title)!=null?f:r.data.text)!=null?h:""),i.$$.dirty&2&&e(3,s=a?450:0)},[r,a,l,s,o,n,c,u]}class Ug extends se{constructor(t){super(),oe(this,t,Yg,Xg,ie,{tag:0},Wg)}}function $a(i){const t=Math.floor(i/60),e=Math.floor(i%60),n=e<10?`0${e}`:e;return`${t}'${n}''`}function Jg(i){const t=document.createElement("div");t.style.color=i,document.body.appendChild(t);const e=window.getComputedStyle(t).color;document.body.removeChild(t);const n=(()=>e.search("rgba")===-1?e.replace("rgb","rgba").replace(")",", 1)"):e)(),o=n.replace("rgba","").replace("(","").replace(")","").split(",").map(s=>Number(s.trim()));return{rgba:n,r:o[0],g:o[1],b:o[2],a:o[3]}}function Zg(i){le(i,"svelte-1fezrt1",".audio-tag__wrapper.svelte-1fezrt1{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-1fezrt1{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.currentTime.svelte-1fezrt1{font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;margin-left:0.25rem}.text.svelte-1fezrt1{font-weight:bold;font-size:0.75rem;margin-left:0.125rem}.audio-icon__wrapper.svelte-1fezrt1{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}")}function el(i){let t,e,n,o;return n=new Ua({props:{paused:!i[0].state.visible,url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},style:"width: max-content; height: max-content;",slotWrapperStyle:"display: flex; align-items: center; justify-content: center;",$$slots:{currentTime:[e0,({duration:s,currentTime:r,playing:a})=>({4:s,5:r,6:a}),({duration:s,currentTime:r,playing:a})=>(s?16:0)|(r?32:0)|(a?64:0)],audioIcon:[$g,({playing:s})=>({6:s}),({playing:s})=>s?64:0],default:[Kg]},$$scope:{ctx:i}}}),{c(){t=B("div"),e=B("div"),te(n.$$.fragment),b(e,"class","audio-tag svelte-1fezrt1"),z(e,"background-color",i[1]),z(e,"color",i[2]),b(t,"class","audio-tag__wrapper svelte-1fezrt1")},m(s,r){T(s,t,r),j(t,e),K(n,e,null),o=!0},p(s,r){const a={};r&1&&(a.paused=!s[0].state.visible),r&1&&(a.url=s[0].data.audioUrl),r&1&&(a.hooksInfo={tag:s[0]}),r&248&&(a.$$scope={dirty:r,ctx:s}),n.$set(a),r&2&&z(e,"background-color",s[1]),r&4&&z(e,"color",s[2])},i(s){o||(k(n.$$.fragment,s),o=!0)},o(s){S(n.$$.fragment,s),o=!1},d(s){s&&M(t),$(n)}}}function qg(i){let t;return{c(){t=Pe(i[3])},m(e,n){T(e,t,n)},p(e,n){n&8&&ke(t,e[3])},d(e){e&&M(t)}}}function Kg(i){let t,e,n;return e=new oo({props:{maxWidth:72,$$slots:{default:[qg]},$$scope:{ctx:i}}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1fezrt1")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&136&&(r.$$scope={dirty:s,ctx:o}),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function $g(i){let t,e,n;return e=new Za({props:{playing:i[6]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"slot","audioIcon"),b(t,"class","audio-icon__wrapper svelte-1fezrt1")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.playing=o[6]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function tl(i){let t=$a(xe(i[6]?i[5]:i[4]))+"",e;return{c(){e=Pe(t)},m(n,o){T(n,e,o)},p(n,o){o&112&&t!==(t=$a(xe(n[6]?n[5]:n[4]))+"")&&ke(e,t)},d(n){n&&M(e)}}}function e0(i){let t,e=typeof(i[6]?i[5]:i[4])=="number"&&tl(i);return{c(){t=B("div"),e&&e.c(),b(t,"slot","currentTime"),b(t,"class","currentTime svelte-1fezrt1")},m(n,o){T(n,t,o),e&&e.m(t,null)},p(n,o){typeof(n[6]?n[5]:n[4])=="number"?e?e.p(n,o):(e=tl(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},d(n){n&&M(t),e&&e.d()}}}function t0(i){let t,e,n=i[0].state&&el(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=el(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function n0(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l;i.$$.dirty&1&&e(3,n=(l=(a=r.data.title)!=null?a:r.data.text)!=null?l:""),i.$$.dirty&1&&e(1,o=(()=>{var c;return r.data.backgroundColor==="dark"?"rgba(0, 0, 0, 0.3)":r.data.backgroundColor==="light"?"rgba(255, 255, 255, 0.3)":(c=r.data.backgroundColor)!=null?c:"rgba(0, 0, 0, 0.3)"})()),i.$$.dirty&2&&e(2,s=(()=>{const{r:c,g:u,b:d}=Jg(o);return(c*299+u*587+d*114)/1e3>=128?"rgba(0, 0, 0, 0.6)":"white"})())},[r,o,s,n]}class i0 extends se{constructor(t){super(),oe(this,t,n0,t0,ie,{tag:0},Zg)}}function o0(i){let t,e;return t=new i0({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function s0(i){let t,e;return t=new Ug({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function r0(i){let t,e,n,o;const s=[s0,o0],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(re(),S(r[u],1,1,()=>{r[u]=null}),ae()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){~t&&r[t].d(l),l&&M(n)}}}function a0(i,t,e){let n,{tag:o}=t;return i.$$set=s=>{"tag"in s&&e(0,o=s.tag)},i.$$.update=()=>{var s;i.$$.dirty&1&&e(1,n=(s=o.data.appearance)!=null?s:"line")},[o,n]}class l0 extends se{constructor(t){super(),oe(this,t,a0,r0,ie,{tag:0})}}function c0(i){le(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function nl(i){var o;let t,e,n;return e=new xa({props:{mediaItemConfig:{canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(o=i[4])!=null?o:"withText",disableVideoIfHavePoster:!1,objectFit:i[2]},unfolded:i[6],mediaData:i[5],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],inDelay:500,duration:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","media-wrapper svelte-10cw0el")},m(s,r){T(s,t,r),K(e,t,null),n=!0},p(s,r){var l;const a={};r&20&&(a.mediaItemConfig={canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(l=s[4])!=null?l:"withText",disableVideoIfHavePoster:!1,objectFit:s[2]}),r&64&&(a.unfolded=s[6]),r&32&&(a.mediaData=s[5]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){S(e.$$.fragment,s),n=!1},d(s){s&&M(t),$(e)}}}function u0(i){let t,e,n=i[0].state&&i[5]&&nl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state&&o[5]?n?(n.p(o,s),s&33&&k(n,1)):(n=nl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function d0(i,t,e){let n,o,s,r,a,l,{tag:c}=t;return i.$$set=u=>{"tag"in u&&e(0,c=u.tag)},i.$$.update=()=>{var u,d;i.$$.dirty&1&&e(6,n=c.state?c.state.unfolded:!1),i.$$.dirty&1&&e(5,o=c.data.mediaData),i.$$.dirty&1&&e(1,s=c.data.enableCarousel),i.$$.dirty&1&&e(4,r=c.data.playIcon),i.$$.dirty&3&&e(3,a=(u=c.data.autoplayConfig)!=null?u:{autoplay:s!=null?s:!0,autoplayVideo:!0}),i.$$.dirty&1&&e(2,l=(d=c.data.objectFit)!=null?d:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,s,l,a,r,o,n]}class f0 extends se{constructor(t){super(),oe(this,t,d0,u0,ie,{tag:0},c0)}}function h0(i){return Y(this,null,function*(){return new Promise((t,e)=>{if(!i){e(Error("url is empty"));return}const n=new Image;n.src=i,n.onload=()=>t({width:n.width,height:n.height}),n.onerror=e})})}function il(i){return Y(this,null,function*(){const{steps:t,url:e,ratio:n=3,fps:o=24}=i;if(!t)throw new Error("KeyframeIcon requires steps");const{width:s,height:r}=yield h0(e),a=s/n,l=r/n,c=a/t,u=l,d=1/o*t+"s",f=a/t-a;return{url:e,keyframesWidth:a,keyframesHeight:l,wrapperWidth:c,wrapperHeight:u,steps:t,duration:d,offsetX:f,offsetY:0}})}function m0(i){le(i,"svelte-mhs8j5","@keyframes svelte-mhs8j5-sprites-animation{0%{background-position:0 0}100%{background-position:var(--keyframe_offset_x) 0}}.icon-image.svelte-mhs8j5{display:block;width:100%}.icon-keyframe-container.svelte-mhs8j5{overflow:hidden}.icon-keyframe-wrapper.svelte-mhs8j5{transform-origin:0 0}.icon-keyframe.svelte-mhs8j5{background-repeat:no-repeat;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-mhs8j5-sprites-animation}")}function ol(i){i[4]=i[12].url,i[5]=i[12].keyframesWidth,i[6]=i[12].keyframesHeight,i[7]=i[12].wrapperWidth,i[8]=i[12].wrapperHeight,i[9]=i[12].steps,i[10]=i[12].duration,i[11]=i[12].offsetX}function sl(i){let t,e,n,o=i[2]&&rl();function s(l,c){return l[3]?g0:p0}let r=s(i),a=r(i);return{c(){t=B("div"),o&&o.c(),e=ee(),a.c(),b(t,"class","icon"),z(t,"width",typeof i[0]=="number"?Ie(i[0]):i[0])},m(l,c){T(l,t,c),o&&o.m(t,null),j(t,e),a.m(t,null),n=!0},p(l,c){l[2]?o?c&4&&k(o,1):(o=rl(),o.c(),k(o,1),o.m(t,e)):o&&(re(),S(o,1,1,()=>{o=null}),ae()),r===(r=s(l))&&a?a.p(l,c):(a.d(1),a=r(l),a&&(a.c(),a.m(t,null))),c&1&&z(t,"width",typeof l[0]=="number"?Ie(l[0]):l[0])},i(l){n||(k(o),n=!0)},o(l){S(o),n=!1},d(l){l&&M(t),o&&o.d(),a.d()}}}function rl(i){let t,e;return t=new ot({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function p0(i){let t,e;return{c(){t=B("img"),b(t,"class","icon-image svelte-mhs8j5"),We(t.src,e=i[1].url)||b(t,"src",e),b(t,"alt","icon")},m(n,o){T(n,t,o)},p(n,o){o&2&&!We(t.src,e=n[1].url)&&b(t,"src",e)},d(n){n&&M(t)}}}function g0(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:b0,then:v0,catch:A0,value:12};return os(e=il(i[1]),n),{c(){t=me(),n.block.c()},m(o,s){T(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&2&&e!==(e=il(i[1]))&&os(e,n)||dc(n,i,s)},d(o){o&&M(t),n.block.d(o),n.token=null,n=null}}}function A0(i){return{c:J,m:J,p:J,d:J}}function v0(i){ol(i);let t,e,n,o=`url(${i[4]})`,s=`steps(${i[9]-1})`;return{c(){t=B("div"),e=B("div"),n=B("div"),b(n,"class","icon-keyframe svelte-mhs8j5"),z(n,"width",Ie(i[5])),z(n,"height",Ie(i[6])),z(n,"background-image",o),z(n,"animation-duration",i[10]),z(n,"animation-timing-function",s),z(n,"animation-delay",0),z(n,"background-size","100% 100%"),z(n,"--keyframe_offset_x",Ie(i[11])),b(e,"class","icon-keyframe-wrapper svelte-mhs8j5"),z(e,"transform",typeof i[0]=="number"?`scale(${i[0]/i[7]})`:void 0),b(t,"class","icon-keyframe-container svelte-mhs8j5"),z(t,"width",typeof i[0]=="number"?Ie(i[0]):Ie(i[7])),z(t,"height",typeof i[0]=="number"?Ie(i[8]*(i[0]/i[7])):Ie(i[8]))},m(r,a){T(r,t,a),j(t,e),j(e,n)},p(r,a){ol(r),a&2&&z(n,"width",Ie(r[5])),a&2&&z(n,"height",Ie(r[6])),a&2&&o!==(o=`url(${r[4]})`)&&z(n,"background-image",o),a&2&&z(n,"animation-duration",r[10]),a&2&&s!==(s=`steps(${r[9]-1})`)&&z(n,"animation-timing-function",s),a&2&&z(n,"--keyframe_offset_x",Ie(r[11])),a&3&&z(e,"transform",typeof r[0]=="number"?`scale(${r[0]/r[7]})`:void 0),a&3&&z(t,"width",typeof r[0]=="number"?Ie(r[0]):Ie(r[7])),a&3&&z(t,"height",typeof r[0]=="number"?Ie(r[8]*(r[0]/r[7])):Ie(r[8]))},d(r){r&&M(t)}}}function b0(i){return{c:J,m:J,p:J,d:J}}function y0(i){let t,e,n=i[1]&&sl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=sl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function w0(i,t,e){let n,{width:o=null}=t,{icon:s=null}=t,{shadow:r=!1}=t;return i.$$set=a=>{"width"in a&&e(0,o=a.width),"icon"in a&&e(1,s=a.icon),"shadow"in a&&e(2,r=a.shadow)},i.$$.update=()=>{i.$$.dirty&2&&e(3,n=(s==null?void 0:s.steps)>=2)},[o,s,r,n]}class al extends se{constructor(t){super(),oe(this,t,w0,y0,ie,{width:0,icon:1,shadow:2},m0)}}function C0(i){le(i,"svelte-1lmyni6",".wrapper.svelte-1lmyni6{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-1lmyni6{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-1lmyni6{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function ll(i){let t,e,n,o,s,r;return e=new ot({props:{outDelay:0,inDelay:0,center:!0,width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=Pe(i[1]),b(o,"class","text svelte-1lmyni6"),b(t,"class","text-wrapper svelte-1lmyni6")},m(a,l){T(a,t,l),K(e,t,null),j(t,n),j(t,o),j(o,s),r=!0},p(a,l){(!r||l&2)&&ke(s,a[1])},i(a){r||(k(e.$$.fragment,a),r=!0)},o(a){S(e.$$.fragment,a),r=!1},d(a){a&&M(t),$(e)}}}function P0(i){let t,e,n,o;e=new al({props:{icon:i[0]}});let s=i[1]&&ll(i);return{c(){t=B("div"),te(e.$$.fragment),n=ee(),s&&s.c(),b(t,"class","wrapper svelte-1lmyni6")},m(r,a){T(r,t,a),K(e,t,null),j(t,n),s&&s.m(t,null),o=!0},p(r,[a]){const l={};a&1&&(l.icon=r[0]),e.$set(l),r[1]?s?(s.p(r,a),a&2&&k(s,1)):(s=ll(r),s.c(),k(s,1),s.m(t,null)):s&&(re(),S(s,1,1,()=>{s=null}),ae())},i(r){o||(k(e.$$.fragment,r),k(s),o=!0)},o(r){S(e.$$.fragment,r),S(s),o=!1},d(r){r&&M(t),$(e),s&&s.d()}}}function I0(i,t,e){let n,o,s,r,a,l,c,{tag:u}=t;return i.$$set=d=>{"tag"in d&&e(2,u=d.tag)},i.$$.update=()=>{var d,f;i.$$.dirty&4&&e(1,n=(d=u.data.title)!=null?d:u.data.text),i.$$.dirty&4&&e(7,o=(f=u.data.icon)!=null?f:u.style.point),i.$$.dirty&128&&e(6,s=o.url),i.$$.dirty&128&&e(5,r=o.steps),i.$$.dirty&128&&e(4,a=o.fps),i.$$.dirty&128&&e(3,l=o.ratio),i.$$.dirty&120&&e(0,c={url:s,steps:r,fps:a,ratio:l})},[c,n,u,l,a,r,s,o]}class E0 extends se{constructor(t){super(),oe(this,t,I0,P0,ie,{tag:2},C0)}}function k0(i){le(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function cl(i){let t,e=i[0].element+"",n;return{c(){t=new jn(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),T(o,n,s)},p(o,s){s&1&&e!==(e=o[0].element+"")&&t.p(e)},d(o){o&&M(n),o&&t.d()}}}function x0(i){let t,e=typeof i[0].element=="string"&&cl(i);return{c(){t=B("div"),e&&e.c(),b(t,"class","customElement__container svelte-kzl2aj")},m(n,o){T(n,t,o),e&&e.m(t,null),i[2](t)},p(n,[o]){typeof n[0].element=="string"?e?e.p(n,o):(e=cl(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:J,o:J,d(n){n&&M(t),e&&e.d(),i[2](null)}}}function D0(i,t,e){let{tag:n}=t,o,s;Ke(()=>{if(o){if(n.element instanceof Element){const a=n.element;o.appendChild(a),s=()=>o==null?void 0:o.removeChild(a)}else if(typeof n.element=="function"){const a=n.element;s=a(o)}}}),yt(()=>{s==null||s()});function r(a){Te[a?"unshift":"push"](()=>{o=a,e(1,o)})}return i.$$set=a=>{"tag"in a&&e(0,n=a.tag)},[n,o,r]}class L0 extends se{constructor(t){super(),oe(this,t,D0,x0,ie,{tag:0},k0)}}function S0(i){le(i,"svelte-ofx2uu",'@font-face{font-family:"TG-TYPE";font-style:normal;font-weight:400;src:local("TG-TYPE-Bold"), url(data:application/font-woff2;charset=utf-8;base64,T1R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di/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==) format("woff2")}*{-webkit-tap-highlight-color:transparent}.content__container.svelte-ofx2uu{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-ofx2uu{transition:opacity 0.3s linear}.content__container.unClickable.svelte-ofx2uu{pointer-events:none !important}.content__container.unClickable.svelte-ofx2uu *{pointer-events:none !important}.content__wrapper.svelte-ofx2uu{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-ofx2uu{opacity:0;pointer-events:none}.content__container.hide.svelte-ofx2uu *{pointer-events:none !important}.content__container.disable.svelte-ofx2uu{display:none}.content.svelte-ofx2uu{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-ofx2uu:not(.unfolded){pointer-events:none}.content.svelte-ofx2uu:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-ofx2uu{pointer-events:auto}')}function z0(i){let t,e;return{c(){t=B("div"),b(t,"data-info","tag content is keep folded"),b(t,"data-id",e=i[1].id)},m(n,o){T(n,t,o)},p(n,o){o&2&&e!==(e=n[1].id)&&b(t,"data-id",e)},i:J,o:J,d(n){n&&M(t)}}}function M0(i){let t,e,n,o,s,r,a,l,c;const u=[R0,O0,Q0,j0,V0,B0,T0],d=[];function f(h,p){return h[1].element?0:h[1].contentType==="Text"?1:h[1].contentType==="ImageText"||h[1].contentType==="Image"||h[1].contentType==="Video"?2:h[1].contentType==="Audio"?3:h[1].contentType==="Marketing"?4:h[1].contentType==="Link"||h[1].contentType==="VRLink"||h[1].contentType==="PanoLink"?5:h[1].contentType==="MediaPlane"?6:-1}return~(o=f(i))&&(s=d[o]=u[o](i)),{c(){var h,p,g;t=B("div"),e=B("div"),n=B("div"),s&&s.c(),b(n,"class","content svelte-ofx2uu"),ne(n,"unfolded",(h=i[1].state)==null?void 0:h.unfolded),b(e,"class","content__wrapper svelte-ofx2uu"),b(t,"class","content__container svelte-ofx2uu"),b(t,"data-id",r=i[1].id),ne(t,"disable",i[1].enabled===!1),ne(t,"hide",!i[3].visible||!i[3].enabled||!i[4].visible||!((p=i[1].state)!=null&&p.visible)||((g=i[1].temporaryState)==null?void 0:g.visible)===!1),ne(t,"withAnimation",i[0]),ne(t,"unClickable",i[1].clickable===!1),z(t,"width",i[1].stickType==="Plane"?"100%":0),z(t,"height",i[1].stickType==="Plane"?"100%":0)},m(h,p){T(h,t,p),j(t,e),j(e,n),~o&&d[o].m(n,null),a=!0,l||(c=Me(t,"click",Zo(i[12])),l=!0)},p(h,p){var A,v,w;let g=o;o=f(h),o===g?~o&&d[o].p(h,p):(s&&(re(),S(d[g],1,1,()=>{d[g]=null}),ae()),~o?(s=d[o],s?s.p(h,p):(s=d[o]=u[o](h),s.c()),k(s,1),s.m(n,null)):s=null),(!a||p&2)&&ne(n,"unfolded",(A=h[1].state)==null?void 0:A.unfolded),(!a||p&2&&r!==(r=h[1].id))&&b(t,"data-id",r),(!a||p&2)&&ne(t,"disable",h[1].enabled===!1),(!a||p&26)&&ne(t,"hide",!h[3].visible||!h[3].enabled||!h[4].visible||!((v=h[1].state)!=null&&v.visible)||((w=h[1].temporaryState)==null?void 0:w.visible)===!1),(!a||p&1)&&ne(t,"withAnimation",h[0]),(!a||p&2)&&ne(t,"unClickable",h[1].clickable===!1),p&2&&z(t,"width",h[1].stickType==="Plane"?"100%":0),p&2&&z(t,"height",h[1].stickType==="Plane"?"100%":0)},i(h){a||(k(s),a=!0)},o(h){S(s),a=!1},d(h){h&&M(t),~o&&d[o].d(),l=!1,c()}}}function T0(i){let t,e;return t=new f0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function B0(i){let t,e;return t=new E0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function V0(i){let t,e;return t=new zg({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function j0(i){let t,e;return t=new l0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Q0(i){let t,e;return t=new mg({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function O0(i){let t,e;return t=new xp({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function R0(i){let t,e;return t=new L0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function F0(i){let t,e,n,o;const s=[M0,z0],r=[];function a(l,c){return l[5]?0:1}return t=a(i),e=r[t]=s[t](i),{c(){e.c(),n=me()},m(l,c){r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?r[t].p(l,c):(re(),S(r[u],1,1,()=>{r[u]=null}),ae(),e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n))},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){r[t].d(l),l&&M(n)}}}function G0(i,t,e){let n,o,s,r,a,{withAnimation:l=!1}=t,{tag:c}=t,{hooks:u}=t,{state:d}=t,{mediaStore:f}=t,{temporaryState:h}=t;Rn("hooks",u),Rn("mediaStore",f);let p,g;function A(w){w?u.emit("exposure",{id:r,type:"start"}):u.emit("exposure",{id:r,type:"end"})}const v=w=>u.emit("click",{event:w,target:"TagContent",tag:c});return i.$$set=w=>{"withAnimation"in w&&e(0,l=w.withAnimation),"tag"in w&&e(1,c=w.tag),"hooks"in w&&e(2,u=w.hooks),"state"in w&&e(3,d=w.state),"mediaStore"in w&&e(6,f=w.mediaStore),"temporaryState"in w&&e(4,h=w.temporaryState)},i.$$.update=()=>{var w,y,E,I,C,L,D,V,W,H,X;i.$$.dirty&2&&e(10,n=(w=c.state)==null?void 0:w.unfolded),i.$$.dirty&2&&e(9,o=(y=c.state)==null?void 0:y.visible),i.$$.dirty&26&&e(11,s=d.visible&&h.visible&&((E=c.state)==null?void 0:E.visible)),i.$$.dirty&2&&(r=c.id),i.$$.dirty&2048&&A(s),i.$$.dirty&1922&&c.hooks&&(n!==void 0&&n!==g&&(e(8,g=n),n?(C=(I=c.hooks).emit)==null||C.call(I,"unfolded"):(D=c==null?void 0:(L=c.hooks).emit)==null||D.call(L,"folded")),o!==void 0&&o!==p&&(e(7,p=o),o?(W=(V=c.hooks).emit)==null||W.call(V,"show"):(X=(H=c.hooks).emit)==null||X.call(H,"hide"))),i.$$.dirty&2&&e(5,a=(()=>!(typeof c.mergedConfig.unfoldedConfig=="object"&&c.mergedConfig.unfoldedConfig.keep==="folded"))())},[l,c,u,d,h,a,f,p,g,o,n,s,v]}class ul extends se{constructor(t){super(),oe(this,t,G0,F0,ie,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:6,temporaryState:4},S0)}}function H0(i){le(i,"svelte-1m3xhhr",'@charset "UTF-8";.tag-point-click-helper.svelte-1m3xhhr.svelte-1m3xhhr{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-1m3xhhr.svelte-1m3xhhr{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-1m3xhhr.svelte-1m3xhhr,.tag-unfolded-point.svelte-1m3xhhr.svelte-1m3xhhr{transition:all 0.5s}.tag-point-wrapper.svelte-1m3xhhr .tag-unfolded-point.svelte-1m3xhhr{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-1m3xhhr .tag-unfolded-point.svelte-1m3xhhr:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-1m3xhhr .tag-unfolded-point.svelte-1m3xhhr:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-1m3xhhr .tag-folded-point.svelte-1m3xhhr{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-1m3xhhr .tag-unfolded-point.svelte-1m3xhhr{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-1m3xhhr .tag-folded-point.svelte-1m3xhhr{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-1m3xhhr .tag-unfolded-point.svelte-1m3xhhr{opacity:1;scale:1}')}function N0(i){let t,e,n,o,s,r,a,l,c,u,d,f;return o=new ot({props:{center:!0,blurRadius:15,spreadRadius:5,opacity:.3}}),c=new al({props:{icon:i[2],width:i[1]}}),{c(){t=B("div"),e=ee(),n=B("div"),te(o.$$.fragment),s=ee(),r=B("div"),a=ee(),l=B("div"),te(c.$$.fragment),b(t,"class","tag-point-click-helper svelte-1m3xhhr"),b(r,"class","tag-unfolded-point svelte-1m3xhhr"),z(r,"transition-delay",(i[3]?i[5]:0)+"ms"),b(l,"class","tag-folded-point svelte-1m3xhhr"),z(l,"transition-delay",(i[3]?i[5]:0)+"ms"),b(n,"class","tag-point-wrapper svelte-1m3xhhr"),ne(n,"unfolded",i[0]),ne(n,"folded",i[3]),z(n,"width",Ie(i[1])),z(n,"height",Ie(i[1]))},m(h,p){T(h,t,p),T(h,e,p),T(h,n,p),K(o,n,null),j(n,s),j(n,r),j(n,a),j(n,l),K(c,l,null),u=!0,d||(f=Me(t,"click",i[4]),d=!0)},p(h,[p]){p&8&&z(r,"transition-delay",(h[3]?h[5]:0)+"ms");const g={};p&4&&(g.icon=h[2]),p&2&&(g.width=h[1]),c.$set(g),p&8&&z(l,"transition-delay",(h[3]?h[5]:0)+"ms"),(!u||p&1)&&ne(n,"unfolded",h[0]),(!u||p&8)&&ne(n,"folded",h[3]),p&2&&z(n,"width",Ie(h[1])),p&2&&z(n,"height",Ie(h[1]))},i(h){u||(k(o.$$.fragment,h),k(c.$$.fragment,h),u=!0)},o(h){S(o.$$.fragment,h),S(c.$$.fragment,h),u=!1},d(h){h&&M(t),h&&M(e),h&&M(n),$(o),$(c),d=!1,f()}}}function W0(i,t,e){let n,o,s,r;const a=dt("hooks");let{tag:l}=t,c,u=!1;const d=()=>{c!==void 0&&clearTimeout(c),u=!0,c=setTimeout(()=>{u=!1},800)},f=p=>{u||a.emit("click",{event:p,target:"TagPoint",tag:l})},h=(()=>l.contentType==="Text"&&l.data.appearance==="plane"?500:800)();return i.$$set=p=>{"tag"in p&&e(6,l=p.tag)},i.$$.update=()=>{var p,g,A,v;i.$$.dirty&64&&e(0,n=(p=l.state)==null?void 0:p.unfolded),i.$$.dirty&1&&e(3,o=!n),i.$$.dirty&64&&e(2,s=(A=(g=l.style)==null?void 0:g.point)!=null&&A.url?(v=l.style)==null?void 0:v.point:{url:ep}),i.$$.dirty&64&&e(1,r=(()=>{var y,E,I;const w=(I=(E=(y=l.style)==null?void 0:y.point)==null?void 0:E.size)!=null?I:"S";return typeof w=="number"?w:w==="S"?18:w==="M"?20:w==="L"?24:w==="XL"?28:18})())},d(),[n,r,s,o,f,h,l]}class _0 extends se{constructor(t){super(),oe(this,t,W0,N0,ie,{tag:6},H0)}}function X0(i){le(i,"svelte-bdubcv",".tag.hide.svelte-bdubcv{opacity:0;pointer-events:none}.tag.disable.svelte-bdubcv{display:none}.tag.withAnimation.svelte-bdubcv{transition:opacity 0.3s linear}.wrapper.svelte-bdubcv{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}")}function Y0(i){let t;return{c(){t=B("div"),b(t,"data-info","tag content is disable")},m(e,n){T(e,t,n)},p:J,i:J,o:J,d(e){e&&M(t)}}}function U0(i){let t,e;return t=new ul({props:{mediaStore:i[2],withAnimation:i[0],tag:xe(i[1]),hooks:i[14],state:i[3],temporaryState:i[4]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&4&&(s.mediaStore=n[2]),o&1&&(s.withAnimation=n[0]),o&2&&(s.tag=xe(n[1])),o&8&&(s.state=n[3]),o&16&&(s.temporaryState=n[4]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function J0(i){let t;return{c(){t=B("div"),b(t,"data-info","tag point is disable")},m(e,n){T(e,t,n)},p:J,i:J,o:J,d(e){e&&M(t)}}}function Z0(i){let t,e;return t=new _0({props:{tag:i[1]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=n[1]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function q0(i){let t,e,n,o,s,r,a,l,c;const u=[U0,Y0],d=[];function f(A,v){return A[12]?0:1}n=f(i),o=d[n]=u[n](i);const h=[Z0,J0],p=[];function g(A,v){return A[13]?0:1}return r=g(i),a=p[r]=h[r](i),{c(){t=B("div"),e=B("div"),o.c(),s=ee(),a.c(),b(e,"class","wrapper svelte-bdubcv"),b(e,"data-tag-unfolded",i[8]),b(e,"data-tag-id",i[11]),b(e,"data-content-type",l=i[1].contentType),z(e,"left",i[7]),z(e,"top",i[6]),z(e,"z-index",i[5]),b(t,"class","tag svelte-bdubcv"),b(t,"data-tag-id",i[11]),ne(t,"disable",i[10]),ne(t,"hide",i[9]),ne(t,"withAnimation",i[0])},m(A,v){T(A,t,v),j(t,e),d[n].m(e,null),j(e,s),p[r].m(e,null),c=!0},p(A,[v]){let w=n;n=f(A),n===w?d[n].p(A,v):(re(),S(d[w],1,1,()=>{d[w]=null}),ae(),o=d[n],o?o.p(A,v):(o=d[n]=u[n](A),o.c()),k(o,1),o.m(e,s));let y=r;r=g(A),r===y?p[r].p(A,v):(re(),S(p[y],1,1,()=>{p[y]=null}),ae(),a=p[r],a?a.p(A,v):(a=p[r]=h[r](A),a.c()),k(a,1),a.m(e,null)),(!c||v&256)&&b(e,"data-tag-unfolded",A[8]),(!c||v&2048)&&b(e,"data-tag-id",A[11]),(!c||v&2&&l!==(l=A[1].contentType))&&b(e,"data-content-type",l),v&128&&z(e,"left",A[7]),v&64&&z(e,"top",A[6]),v&32&&z(e,"z-index",A[5]),(!c||v&2048)&&b(t,"data-tag-id",A[11]),(!c||v&1024)&&ne(t,"disable",A[10]),(!c||v&512)&&ne(t,"hide",A[9]),(!c||v&1)&&ne(t,"withAnimation",A[0])},i(A){c||(k(o),k(a),c=!0)},o(A){S(o),S(a),c=!1},d(A){A&&M(t),d[n].d(),p[r].d()}}}function K0(i,t,e){let n,o,s,r,a,l,c,u,d,{withAnimation:f=!1}=t,{tag:h}=t,{mediaStore:p}=t,{state:g}=t,{temporaryState:A}=t;const v=dt("hooks");return i.$$set=w=>{"withAnimation"in w&&e(0,f=w.withAnimation),"tag"in w&&e(1,h=w.tag),"mediaStore"in w&&e(2,p=w.mediaStore),"state"in w&&e(3,g=w.state),"temporaryState"in w&&e(4,A=w.temporaryState)},i.$$.update=()=>{var w,y,E,I,C,L,D,V;i.$$.dirty&2&&e(13,n=(()=>!(h.contentType==="Link"||h.contentType==="VRLink"||h.contentType==="PanoLink"||h.contentType==="Audio"&&h.data.appearance==="plane"))()),i.$$.dirty&2&&e(12,o=(()=>h.stickType==="2DPoint")()),i.$$.dirty&2&&e(11,s=h.id),i.$$.dirty&2&&e(10,r=!((w=h.pointTagStyle)!=null&&w.leftPercent)||!((y=h.pointTagStyle)!=null&&y.topPercent)||h.enabled===!1||!h.state),i.$$.dirty&2&&e(9,a=!((E=h.state)!=null&&E.visible)||((I=h.temporaryState)==null?void 0:I.visible)===!1),i.$$.dirty&2&&e(8,l=(C=h.state)==null?void 0:C.unfolded),i.$$.dirty&2&&e(7,c=((L=h.pointTagStyle)==null?void 0:L.leftPercent)+"%"),i.$$.dirty&2&&e(6,u=((D=h.pointTagStyle)==null?void 0:D.topPercent)+"%"),i.$$.dirty&2&&e(5,d=(V=h.state)!=null&&V.unfolded?1:0)},[f,h,p,g,A,d,u,c,l,a,r,s,o,n,v]}class $0 extends se{constructor(t){super(),oe(this,t,K0,q0,ie,{withAnimation:0,tag:1,mediaStore:2,state:3,temporaryState:4},X0)}}function eA(i){le(i,"svelte-wqbk81",".tag--container.svelte-wqbk81{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.withAnimation.svelte-wqbk81{transition:opacity 0.3s linear}.tag--container.hide.svelte-wqbk81{opacity:0;pointer-events:none}.tag--container.hide.svelte-wqbk81 *{pointer-events:none}")}function dl(i,t,e){const n=i.slice();return n[6]=t[e],n}function fl(i){let t,e=[],n=new Map,o,s=i[1];const r=a=>a[6].id;for(let a=0;a<s.length;a+=1){let l=dl(i,s,a),c=r(l);n.set(c,e[a]=hl(c,l))}return{c(){t=B("div");for(let a=0;a<e.length;a+=1)e[a].c();b(t,"class","tag--container svelte-wqbk81"),ne(t,"hide",!i[3].visible||!i[4].visible),ne(t,"withAnimation",i[0])},m(a,l){T(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,l){l&31&&(s=a[1],re(),e=$e(e,l,r,1,a,s,n,t,Bt,hl,null,dl),ae()),(!o||l&24)&&ne(t,"hide",!a[3].visible||!a[4].visible),(!o||l&1)&&ne(t,"withAnimation",a[0])},i(a){if(!o){for(let l=0;l<s.length;l+=1)k(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)S(e[l]);o=!1},d(a){a&&M(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function hl(i,t){let e,n,o;return n=new $0({props:{state:t[3],temporaryState:t[4],withAnimation:t[0],tag:t[6],mediaStore:t[2]}}),{key:i,first:null,c(){e=me(),te(n.$$.fragment),this.first=e},m(s,r){T(s,e,r),K(n,s,r),o=!0},p(s,r){t=s;const a={};r&8&&(a.state=t[3]),r&16&&(a.temporaryState=t[4]),r&1&&(a.withAnimation=t[0]),r&2&&(a.tag=t[6]),r&4&&(a.mediaStore=t[2]),n.$set(a)},i(s){o||(k(n.$$.fragment,s),o=!0)},o(s){S(n.$$.fragment,s),o=!1},d(s){s&&M(e),$(n,s)}}}function tA(i){let t,e,n=i[3].enabled&&fl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[3].enabled?n?(n.p(o,s),s&8&&k(n,1)):(n=fl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function nA(i,t,e){let{withAnimation:n=!1}=t,{tags:o=[]}=t,{hooks:s}=t,{mediaStore:r}=t,{state:a}=t,{temporaryState:l}=t;return Rn("hooks",s),i.$$set=c=>{"withAnimation"in c&&e(0,n=c.withAnimation),"tags"in c&&e(1,o=c.tags),"hooks"in c&&e(5,s=c.hooks),"mediaStore"in c&&e(2,r=c.mediaStore),"state"in c&&e(3,a=c.state),"temporaryState"in c&&e(4,l=c.temporaryState)},[n,o,r,a,l,s]}class iA extends se{constructor(t){super(),oe(this,t,nA,tA,ie,{withAnimation:0,tags:1,hooks:5,mediaStore:2,state:3,temporaryState:4},eA)}}const oA={globalConfig:{unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance",distance:{max:5}}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Audio-plane":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},Link:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},VRLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},PanoLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},MediaPlane:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0}}}};function sA(i){return i.stickType==="2DPoint"||i.stickType==="3DPoint"}function rA(i){return i.stickType==="3DPoint"||i.stickType==="Plane"}class aA extends Zn{constructor(e){super(e);m(this,"tagCacheByPanoIndex",{})}getCaches({panoIndex:e,id:n,key:o}){var c,u,d,f;const{five:s}=this,r=(c=s.panoIndex)!=null?c:e;if(r===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${r}`);const a=`${(d=(u=s.work)==null?void 0:u.workCode)!=null?d:s.model.uuid}-${r}`;let l=this.tagCacheByPanoIndex[a];if(l||(l=new Map,this.tagCacheByPanoIndex[a]=l),n===void 0)return l;if(o===void 0){const h=l.get(n);return h||(l.set(n,{}),l.get(n))}return(f=l.get(n))==null?void 0:f[o]}clearCache(){this.tagCacheByPanoIndex={}}}class lA extends aA{constructor(e){super(e);m(this,"tags",[]);m(this,"config",oA);m(this,"raycaster",new x.Raycaster)}get isPanorama(){return this.five.currentMode==="Panorama"}getTagById(e){const n=this.tags.find(o=>o.id===e);if(!n){console.error(`getTagById(): tag is ${n}, id is ${e}`);return}return n}changeContentTypeConfig(e,n,o=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),o?this.config.contentTypeConfig[e]=zt.default({},this.config.contentTypeConfig[e],n):this.config.contentTypeConfig[e]=n,this.clearCache()}getVisibleByPanoIndex(e,n){var r;const o=this.getCaches({panoIndex:n,id:e.id}),s=(r=this.five.panoIndex)!=null?r:n;if(o.visible!==void 0)return o.visible;{const a=(()=>{var u,d,f;const l=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},c=this.getDistance(e);if(typeof l=="function")return l(this.five,{tag:e,distance:c});if(l.keep==="hidden")return!1;if(l.keep==="visible")return!0;if(l.visiblePanoIndex!==void 0&&l.visiblePanoIndex!=="all"&&s!==void 0&&(Array.isArray(l.visiblePanoIndex)&&!l.visiblePanoIndex.includes(s)||l.visiblePanoIndex==="current"&&s!==((d=e.fiveState)==null?void 0:d.panoIndex))||l.visibleDistance!==void 0&&l.visibleDistance!=="unLimited"&&yn(c,l.visibleDistance)===!1)return!1;if(l.intersectRaycaster!==!1&&(typeof l.intersectRaycaster!="object"||l.intersectRaycaster.enabled!==!1)){if(s===void 0)return!1;const h=(f=this.five.work.observers[s])==null?void 0:f.position;if(h===void 0)throw new Error(`getVisible(): observerPosition is ${h}`);const p=di(e.position).sub(h).normalize();this.raycaster.set(h,p);const[g]=this.five.model.intersectRaycaster(this.raycaster),A=(()=>{var v;return typeof l.intersectRaycaster=="object"&&(v=l.intersectRaycaster.distanceAccuracy)!=null?v:.01})();if(g&&g.distance+A<c)return!1}return!(l.angleRange&&rA(e)&&yn(this.getAngle(e),l.angleRange)===!1)})();return o.visible=a,o.visible}}getUnfoldedByPanoIndex(e,n){if(!this.getVisibleByPanoIndex(e))return;const s=this.getCaches({panoIndex:n,id:e.id});if(s.unfolded!==void 0)return s.unfolded;{const r=this.getTagConfig(e).unfoldedConfig;if(!r)return;const a=(()=>{const c=this.getDistance(e);if(typeof r=="function")return r(this.five,{tag:e,distance:c});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.unfoldDistance&&yn(c,r.unfoldDistance)===!1)return!1})();s.unfolded=a;const l=this.getUnfoldedByCamera(e);return l!==void 0?l:s.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var a;const s=this.getDistance(e),r=this.getTagConfig(e).unfoldedConfig;if(!!r){if(typeof r=="function")return r(this.five,{tag:e,distance:s});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.autoUnfold===void 0||r.autoUnfold===!1||r.autoUnfold.enable===!1)return;if(r.autoUnfold.strategy==="ScreenPostion"){const l=this.getTagProject(e);if(l&&yn(l.x,r.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(r.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag().filter(f=>this.getVisibleByPanoIndex(f)).filter(f=>{const h=this.getTagProject(f);if(!h)return!1;const{x:p,y:g,z:A}=h;return!(Math.abs(A)>1||Math.abs(p)>1||Math.abs(g)>1)}).map(f=>({tag:f,id:f.id,tagConfig:this.getTagConfig(f).unfoldedConfig})).filter(({tag:f,tagConfig:h})=>{var p,g;return!(typeof h!="object"||h.keep||h.autoUnfold===!1||((p=h.autoUnfold)==null?void 0:p.enable)===!1||((g=h.autoUnfold)==null?void 0:g.strategy)!=="MinimumDistance")}).map(f=>pe(G({},f),{distance:this.getDistance(f.tag)})).filter(({distance:f,tagConfig:h})=>{var p,g;return!(f===void 0||typeof h!="object"||h.autoUnfold===!1||((p=h.autoUnfold)==null?void 0:p.enable)===!1||((g=h.autoUnfold)==null?void 0:g.strategy)!=="MinimumDistance"||h.autoUnfold.distance&&yn(f,h.autoUnfold.distance)===!1)}).sort((f,h)=>f.distance-h.distance).findIndex(f=>f.id===e.id);if(u===-1||u<=((a=r.autoUnfold.maxNumber)!=null?a:1)-1===!1)return!1}return!0}})():void 0}getDistance(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCaches({panoIndex:n,id:e.id});if(s.distance!==void 0)return s.distance;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getDistance(): observerPosition is ${c}`);const u=(()=>sA(e)?lt(e==null?void 0:e.position):di(e.position))(),d=c.distanceTo(u);return s.distance=d,d}}getAngle(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCaches({panoIndex:n,id:e.id});if(s.angle!==void 0)return s.angle;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getAngleRange(): observerPosition is ${c}`);const u=(()=>e.stickType==="3DPoint"?hn(e.normal):Zr(e.position))();if(!u)return;const d=new x.Vector3().copy(c).sub(di(e.position)),f=u.angleTo(d)*180/Math.PI;return s.angle=f,s.angle}}getTagConfig(e){var s;if(!e)return(s=this.config.globalConfig)!=null?s:{};const n={};this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(r=>{const a=r;if(n[a])return;const l=a.split("-");if(l.length===1){const[c]=l;e.contentType===c&&(n[a]=this.config.contentTypeConfig[a])}if(l.length===2){const[c="Any",u="Any"]=l;(e.stickType===c||c==="Any")&&(e.contentType===u||u==="Any")&&(n[a]=this.config.contentTypeConfig[a])}if(l.length===3){const[c="Any",u,d]=l;if(u==="Audio"&&e.contentType==="Audio"){const f=e;(f.stickType===c||c==="Any")&&f.data.appearance===d&&(n[a]=this.config.contentTypeConfig[a])}}});const o=zt.default({},this.config.globalConfig,...Object.values(n),e.config);return typeof o.unfoldedConfig=="object"&&(o.unfoldedConfig.disableFold&&(o.unfoldedConfig={keep:"unfolded"}),o.unfoldedConfig.disableUnfold&&(o.unfoldedConfig={keep:"folded"}),o.unfoldedConfig.keep&&(o.unfoldedConfig={keep:o.unfoldedConfig.keep})),typeof o.visibleConfig=="object"&&o.visibleConfig.keep&&(o.visibleConfig={keep:o.visibleConfig.keep}),o}can(e,n){const o=this.getTagConfig(n);if(!o||typeof o!="object")return!0;if(e==="show"||e==="hide"){if(!o.visibleConfig||typeof o.visibleConfig!="object")return!0;if(e==="show"&&o.visibleConfig.keep==="hidden"||e==="hide"&&(o.visibleConfig.keep==="visible"||o.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!o.unfoldedConfig||typeof o.unfoldedConfig!="object")return!0;if(e==="fold"&&o.unfoldedConfig.keep==="unfolded"||e==="unfold"&&o.unfoldedConfig.keep==="folded")return!1}return!0}sort(e){return e.sort((n,o)=>{const s=this.getDistance(n),r=this.getDistance(o);return s===void 0||r===void 0?0:r-s})}setPointTagPosition(){const e=this.filterPointTag();e.length!==0&&e.forEach(n=>{var s;if(!((s=n.state)!=null&&s.visible)){n.pointTagStyle=void 0;return}const o=this.getTagProject(n);if(!o){n.pointTagStyle=void 0;return}n.pointTagStyle={leftPercent:(o.x+1)/2*100,topPercent:(-o.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const n=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=n)})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const n=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(n!==void 0&&(e.state.unfolded=n),n&&!e.state.visible)){const o=this.getTagConfig(e);typeof o.unfoldedConfig=="object"&&o.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e))return;const o=di(e.position),{x:s,y:r,z:a}=o.project(this.five.camera);if(!(a>1))return{x:s,y:r,z:a}}filterPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint"||e.stickType==="3DPoint")}filter2DPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint")}filter3DPointTag(){return this.tags.filter(e=>e.stickType==="3DPoint")}filter3DTag(){return this.tags.filter(e=>e.stickType==="3DPoint"||e.stickType==="Plane")}filterPlaneTag(){return this.tags.filter(e=>e.stickType==="Plane")}updateTagConfig(e){e!=null&&e.force&&this.clearCache(),this.tags.forEach(n=>{const o=this.getTagConfig(n);n.mergedConfig=o})}}function cA(i){var t,e,n,o;if(!i.stickType){const s=(()=>i.pointType==="PointTag"&&i.dimensionType==="3D"?"3DPoint":i.pointType==="PlaneTag"?"Plane":"2DPoint")();i.stickType=s}if(i.contentType==="VRLink"||i.contentType==="PanoLink"||i.contentType==="Link"){const s=i;!((e=(t=s.data)==null?void 0:t.icon)!=null&&e.url)&&!((o=(n=s.style)==null?void 0:n.point)!=null&&o.url)&&(s.data.icon={url:"//vrlab-static.ljcdn.com/release/web/test.09dee741.png",steps:28})}return i}const ml="2.0.3",uo=`DnalogelPlugin-PanoTagPlugin@${ml}`,uA=!1,dA=i=>`${uo}--${i}`;class pl extends lA{constructor(e,n){super(e);m(this,"version",ml);m(this,"state",{enabled:!0,visible:!0});m(this,"params");m(this,"debug");m(this,"css3DRenderPlugin");m(this,"TagContainerSvelte");m(this,"temporaryState",{visible:!0});m(this,"mediaStore",Bi({currentMediaElement:null}));m(this,"isIOSWX",navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1&&navigator.userAgent.toLowerCase().indexOf("iphone")!==-1);m(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});m(this,"disposedErrorLog",()=>{console.error(`${uo} is disposed`)});this.params=G({debug:!1,config:this.config},n),this.debug=this.params.debug,this.config=this.params.config,Bg(1),Object.assign(window,{[`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]:this}),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,n){return Y(this,null,function*(){var o,s;if(this.clearTags(),console.log(uo," load:",{data:e}),this.config=zt.default({},this.config,{globalConfig:(o=e.globalConfig)!=null?o:{},contentTypeConfig:(s=e.contentTypeConfig)!=null?s:{}}),this.debug)try{Fm(this.five,this.tags)}catch(r){console.error(r)}return this.addTag(e.tagList,n)})}addTag(e,n){return Y(this,null,function*(){const s=(Array.isArray(e)?e:[e]).map(r=>{const a=this.getTagConfig(r);return pe(G({},r),{state:G({visible:void 0,unfolded:uA},a.initialState),hooks:new de.Subscribe,clickable:a.clickable,mergedConfig:a})}).filter(r=>r.position);return s.forEach(cA),this.tags.push(...s),Gm(this.five).then(()=>{var r,a,l;return this.store.eventListenerDisposer&&((a=(r=this.store).eventListenerDisposer)==null||a.call(r)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(l=n==null?void 0:n.withAnimation)!=null?l:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags(),!0})})}changeConfig(e,n=!0){n?this.config=zt.default({},this.config,e):this.config=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeGlobalConfig(e,n=!0){n?this.config.globalConfig=zt.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return Y(this,null,function*(){const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("show",{userAction:n,withAnimation:o})})}hide(e){return Y(this,null,function*(){const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("hide",{userAction:n,withAnimation:o})})}enable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:n}),this.hooks.emit("enable",{userAction:n})}disable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:n}),this.hooks.emit("disable",{userAction:n})}dispose(){var e,n,o,s,r,a;this.pauseCurrentMedia(),this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(l=>{var c;return(c=l.tag3DContentSvelte)==null?void 0:c.svelteApp.$destroy()}),this.tags=[],(n=this.store.disposers)==null||n.forEach(l=>l==null?void 0:l()),this.store.disposers=[],this.store.disposed=!0,(s=(o=this.store).eventListenerDisposer)==null||s.call(o),this.store.eventListenerDisposer=void 0,(a=(r=this.store).resizeObserverDisposer)==null||a.call(r),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,n){if(this.store.disposed)return this.disposedErrorLog();const{userAction:o=!0,visibleWithAnimation:s=!1}=n,r=G({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=s,r.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),r.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:r,userAction:o})}changeUnfoldedById(e,n){var r;const o=this.getTagById(e);if(!o)return;o.state.unfolded=n;const s=this.filterPointTag();(r=this.TagContainerSvelte)==null||r.$set({tags:s})}changeTagNormalById(e,n){const o=this.getTagById(e);!o||!o.tag3DContentSvelte||(o.tag3DContentSvelte.currentNormal=lt(n),this.updateRenderPlaneTag())}changeDataById(e,n,o=!0){const s=this.getTagById(e);!s||(o?s.data=zt.default({},s.data,n):s.data=G(G({},s.data),n),this.checkPanelTag(),this.updateRenderAllTags())}changeStickTypeById(e,n,o=!0){this.changeTagById(e,n,o)}changeTagById(e,n,o=!0){const s=this.getTagById(e);!n||(o?zt.default(s,n):Object.assign(s,n),(s==null?void 0:s.tag3DContentSvelte)&&(n==null?void 0:n.normal)&&(s.tag3DContentSvelte.currentNormal=lt(n.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(o=>{const s=this.tags.findIndex(r=>r.id===o);s!==-1&&this.tags.splice(s,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaElement:null})}setVisibleAndUnfolded(){return Y(this,arguments,function*({withAnimation:e}={withAnimation:!1}){if(!!this.isPanorama)return this.setVisibleByPanoIndex(),e?new Promise((n,o)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),n()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.pauseCurrentMedia(),this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,n,o;this.pauseCurrentMedia(),this.state.enabled=!1,(n=(e=this.store).eventListenerDisposer)==null||n.call(e),(o=this.TagContainerSvelte)==null||o.$set({tags:[]}),this.filter3DTag().forEach(s=>{var r;(r=s.tag3DContentSvelte)==null||r.svelteApp.$destroy(),s.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:n}=this,o=this.handleFiveWantsMoveToPano.bind(this),s=this.handleFiveModeChange.bind(this),r=this.handleFiveCameraUpdate.bind(this),a=this.handleFiveCameraUpdateDebounce(),l=this.handleFivePanoArrived.bind(this),c=this.loadVideoFirstFrame.bind(this),u=this.clickhandler.bind(this);return this.five.currentMode&&(this.isPanorama?(this.handleFivePanoArrived(),this.temporaryShow({withAnimation:!0})):this.temporaryHide()),e.on("wantsMoveToPano",o),e.on("modeChange",s),e.on("cameraUpdate",r),e.on("cameraUpdate",a),e.on("panoArrived",l),e.on("panoArrived",c),n.on("click",u),()=>{e.off("wantsMoveToPano",o),e.off("modeChange",s),e.off("cameraUpdate",r),e.off("cameraUpdate",a),e.off("panoArrived",l),e.off("panoArrived",c),n.off("click",u),this.store.eventListenerDisposer=void 0}}loadVideoFirstFrame(){this.isIOSWX&&this.hooks.emit("loadVideoFirstFrame")}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),n=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},o=()=>{!this.state.enabled||this.hide()},{observe:s,unobserve:r}=Kr(Nm(()=>{!this.store.resizeObserverDisposer||o()},500),e),{observe:a,unobserve:l}=Kr(qr(()=>n(),400),e);return s(),a(),()=>{r(),l()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow({withAnimation:!0})):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const n=this.getTagConfig(e);typeof n.visibleConfig=="object"&&(n.visibleConfig.keep?e.temporaryState=pe(G({},e.temporaryState),{visible:n.visibleConfig.keep==="visible"}):e.temporaryState=pe(G({},e.temporaryState),{visible:Boolean(n.visibleConfig.alwaysShowWhenMovePano)}))}),this.updateTagContainerVisible()}temporaryShow({withAnimation:e}={withAnimation:!1}){this.store.visibleWithAnimation=e,this.temporaryState.visible=!0,this.updateTagContainerVisible()}temporaryHide({withAnimation:e}={withAnimation:!1}){this.store.visibleWithAnimation=e,this.temporaryState.visible=!1,this.updateTagContainerVisible()}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const n=this.can("fold",e.tag),o=this.can("unfold",e.tag);n&&o&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(s=>{s.id!==e.tag.id&&s.state&&this.can("fold",s)&&(s.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(n=>{var o;(o=n.tag3DContentSvelte)==null||o.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return qr(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return Y(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=pe(G({},e.temporaryState),{visible:!0})}),this.store.visibleWithAnimation=!0,this.updateTagContainerVisible()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(n=>{const o=this.getUnfoldedByCamera(n);!n.state||o!==void 0&&(o===!0&&(e=!0),n.state.unfolded=o)}),e&&this.tags.forEach(n=>{const o=this.getTagConfig(n).unfoldedConfig;typeof o=="object"&&(o.autoUnfold||o.keep)||n.state&&(n.state.unfolded=!1)})}updateRenderPointTag(){var n;const e=this.sort(this.filterPointTag());if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const o=(n=this.five.getElement())==null?void 0:n.parentElement;if(!o)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new iA({target:o,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){this.sort([...this.filterPlaneTag(),...this.filter3DPointTag()]).forEach(n=>{var o;if(n.tag3DContentSvelte){const{svelteApp:s,domContainer:r,initialNormal:a,currentNormal:l}=n.tag3DContentSvelte;if(s.$set({tag:n,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!a.equals(l)){const c=new F.Quaternion().setFromUnitVectors(a,l);r.css3DObject.setRotationFromQuaternion(c)}}else{if(((o=n.state)==null?void 0:o.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=Jt(this.five)),n.stickType==="3DPoint"&&!n.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const s=n.stickType==="Plane"?n.position:Hm(this.five.camera.position,lt(n.position),lt(n.normal)),r=n.stickType==="Plane"?Zr(n.position):lt(n.normal),a=this.getTagConfig(n).tag3DConfig,l=this.css3DRenderPlugin.create3DDomContainer(s,a);if(!l)return;this.store.css3DRenderDisposer.set(n.id,l.dispose),n.tag3DContentSvelte={svelteApp:new ul({target:l.container,props:{tag:n,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:l,initialNormal:r,currentNormal:r}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,n]of this.store.css3DRenderDisposer)n==null||n();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.filter2DPointTag().forEach(e=>{var n;(n=e.tag3DContentSvelte)==null||n.domContainer.dispose(),e.tag3DContentSvelte=void 0});for(const[e,n]of this.store.css3DRenderDisposer){const o=this.getTagById(e);(!o||o.stickType==="2DPoint")&&(n==null||n(),this.store.css3DRenderDisposer.delete(e))}}}var gl=(i=>(i.Audio="Audio",i.Text="Text",i.ImageText="ImageText",i.Image="Image",i.Video="Video",i.Link="Link",i.VRLink="VRLink",i.PanoLink="PanoLink",i.Marketing="Marketing",i.MediaPlane="MediaPlane",i.Custom="Custom",i))(gl||{}),Al=(i=>(i.Two="2D",i.Three="3D",i))(Al||{}),vl=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(vl||{});const fA=(i,t)=>new pl(i,t);class fo extends F.Object3D{constructor(e,n){var o;super();m(this,"originObject3D");m(this,"onRender");this.originObject3D=e,this.onRender=(o=n==null?void 0:n.onRender)!=null?o:()=>{}}get helperObject(){return this}render(){this.onRender()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}updatePosition(){this.position.copy(this.originObject3D.position)}updateQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,n){this.scale.applyMatrix4(e)}applyHelperQuaternion(e,n){this.applyQuaternion(e)}}class hA extends fo{}class mA extends fo{}class pA extends fo{}class gA extends pA{}class AA extends x.Group{constructor(e){super();m(this,"direction");this.direction=e||"x"}}class bl extends x.Mesh{constructor(e,n,o){super(e,n);m(this,"direction");this.direction=o||"x"}}function vA(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new x.Vector2,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}function ho(i,t,e){if(!t||!e||!i)return;const n=vA(t,e);if(Math.abs(n.x)===1||Math.abs(n.y)===1)return;const o=new x.Raycaster;return o.setFromCamera(n,i),o}function bA(i,t){return!(Math.abs(i.x-t.x)>1e-5||Math.abs(i.y-t.y)>1e-5||Math.abs(i.z-t.z)>1e-5)}class mo extends AA{constructor(e){var u;super(e.direction);m(this,"line");m(this,"arrow");m(this,"lineHeight",.4);m(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new x.Color((u=e.color)!=null?u:16214315),o=new x.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:x.DoubleSide}),s=new x.ConeGeometry(.04,.1,32),r=new bl(s,o.clone(),e.direction);r.name=`arrow-${e.direction}`,this.arrow=r;const a=.004,l=new x.CylinderGeometry(a,a,.4,32),c=new bl(l,o.clone(),e.direction);c.name=`line-${e.direction}`,this.line=c,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}const po={X:15618642,Y:4765519,Z:4227839};class ft{static get X(){return new x.Color(po.X).convertSRGBToLinear().clone()}static get Y(){return new x.Color(po.Y).convertSRGBToLinear().clone()}static get Z(){return new x.Color(po.Z).convertSRGBToLinear().clone()}}class yA extends hA{constructor(e){super(e);m(this,"xArrow",new mo({direction:"x",color:ft.X}));m(this,"yArrow",new mo({direction:"y",color:ft.Y}));m(this,"zArrow",new mo({direction:"z",color:ft.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(e){this.xArrow.visible=e.includes("x"),this.yArrow.visible=e.includes("y"),this.zArrow.visible=e.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}function Gt(i,t){return wA(document.createElement(t!=null?t:"div"),i)}function wA(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function CA(i){const t=Gt(G({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},i)),e=()=>{t.style.display!=="block"&&(!t.style.top||!t.style.left||(t.style.display="block"))};return{element:t,show:e,hide:()=>{t.style.display="none",t.style.top="",t.style.left=""},setLeftTop:(s,r)=>{t.style.left=s,t.style.top=r,e()}}}class PA extends mA{constructor(e,n){var o;super(e);m(this,"yzCircle",new go({direction:"x",color:ft.X}));m(this,"xzCircle",new go({direction:"y",color:ft.Y}));m(this,"xyCircle",new go({direction:"z",color:ft.Z}));m(this,"xRingHelper",new Ao({direction:"x"}));m(this,"yRingHelper",new Ao({direction:"y"}));m(this,"zRingHelper",new Ao({direction:"z"}));m(this,"xAngleHelper",new vo({direction:"x",color:ft.X}));m(this,"yAngleHelper",new vo({direction:"y",color:ft.Y}));m(this,"zAngleHelper",new vo({direction:"z",color:ft.Z}));m(this,"angleTips");m(this,"container");n&&(this.container=n==null?void 0:n.container,this.angleTips=CA({display:"none"}),(o=this.container)==null||o.appendChild(this.angleTips.element)),this.show()}updateAngleHelperQuaternion(){this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion),this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion),this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion),this.xRingHelper.quaternion.copy(this.yzCircle.quaternion),this.yRingHelper.quaternion.copy(this.xzCircle.quaternion),this.zRingHelper.quaternion.copy(this.xyCircle.quaternion)}applyHelperQuaternion(e,n){this.yzCircle.applyQuaternion(e),this.xzCircle.applyQuaternion(e),this.xyCircle.applyQuaternion(e),this.xAngleHelper.baseAxes.applyQuaternion(e),this.yAngleHelper.baseAxes.applyQuaternion(e),this.zAngleHelper.baseAxes.applyQuaternion(e)}hide(){this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper)}show(){var e;this.add(this.xyCircle,this.xzCircle,this.yzCircle),this.remove(this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var n;this.hide(),this.add(...this.filterRingHelper(e)),this.add(...this.filterAngleHelper(e)),(n=this.angleTips)==null||n.show()}dispose(){var e,n;this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)!=null&&e.element&&((n=this.container)==null||n.removeChild(this.angleTips.element))}filterRingHelper(e){return[this.xRingHelper,this.yRingHelper,this.zRingHelper].filter(n=>e.includes(n.direction))}filterAngleHelper(e){return[this.xAngleHelper,this.yAngleHelper,this.zAngleHelper].filter(n=>e.includes(n.direction))}}class go extends x.Mesh{constructor(e){var n;super();m(this,"direction");m(this,"gapAngle",.02);m(this,"geometry",new x.RingGeometry(.25,.3,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2));this.material=new x.MeshBasicMaterial({opacity:.6,color:(n=e.color)!=null?n:16777215,transparent:!0,side:x.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class Ao extends x.Group{constructor(e){super();m(this,"direction");this.direction=e.direction;const n=.015,o=new Array(8).fill(null).map((s,r)=>{const a=new x.RingGeometry(.25,.3,20,8,Math.PI/4*r+n,Math.PI/4-n*2),l=new x.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:x.DoubleSide}),c=new x.Mesh(a,l);return c.name=`AxesDashedRing-${this.direction}-${r}`,c});this.add(...o),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class vo extends x.Mesh{constructor(e){var o;super();m(this,"direction");m(this,"baseAxes");switch(e.direction){case"x":this.baseAxes=new x.Vector3(0,0,1);break;case"y":this.baseAxes=new x.Vector3(1,0,0);break;case"z":this.baseAxes=new x.Vector3(1,0,0);break}const n=.3+5e-4;this.geometry=new x.CircleGeometry(n,48,0,1e-4),this.material=new x.MeshBasicMaterial({opacity:.4,color:(o=e.color)!=null?o:16777215,depthTest:!1,transparent:!0,side:x.DoubleSide}),this.direction=e.direction,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}function IA(){const i=Gt({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Gt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Gt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});i.appendChild(t),t.appendChild(e);const n="-4px",o={direction:"nesw",element:kt({cursor:"nesw-resize",left:n,bottom:n})},s={direction:"ns",element:kt({cursor:"ns-resize",bottom:n})},r={direction:"nwse",element:kt({cursor:"nwse-resize",right:n,bottom:n})},a={direction:"ew",element:kt({cursor:"ew-resize",right:n})},l={direction:"nesw",element:kt({cursor:"nesw-resize",right:n,top:n})},c={direction:"ns",element:kt({cursor:"ns-resize",top:n})},u={direction:"nwse",element:kt({cursor:"nwse-resize",left:n,top:n})},d={direction:"ew",element:kt({cursor:"ew-resize",left:n})};return new Array(s,a,c,d,o,r,l,u).forEach(h=>t.appendChild(h.element)),{container:i,squares:[o,s,r,a,l,c,u,d]}}function kt(i){const t=Gt(G({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Gt({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=Gt({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,e.appendChild(n),t.appendChild(e),t}class EA extends gA{constructor(e,n,o,s){super(e);m(this,"points",[]);m(this,"cornerPositions",[]);m(this,"css3DInstance");m(this,"plane");m(this,"css3DRenderer",new Ut);m(this,"camera");m(this,"scene");m(this,"container");m(this,"enabled",!1);this.camera=o,this.scene=s,this.container=n,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}updatePosition(){var e;this.helperObject.position.copy(this.originObject3D.position),(e=this.plane)==null||e.position.copy(this.originObject3D.position)}updateQuaternion(){var e;(e=this.plane)==null||e.quaternion.copy(this.originObject3D.quaternion)}applyMatrix4(e){var n;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(n=this.plane)==null||n.applyMatrix4(e),this.cornerPositions.forEach(o=>o.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,n){var o;(o=this.plane)==null||o.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((n,o)=>{n.position.copy(e[o])})}applyHelperQuaternion(e,n){var s;const o=(s=this.css3DInstance)==null?void 0:s.css3DObject;if(o){const r=new x.Vector3().subVectors(o.position,n).applyQuaternion(e).add(n);o.position.copy(r),o.applyQuaternion(e)}if(this.plane){const r=new x.Vector3().subVectors(this.plane.position,n).applyQuaternion(e).add(n);this.plane.position.copy(r),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(r=>{const a=new x.Vector3().subVectors(r,n).applyQuaternion(e).add(n);r.copy(a)})}enable(){var e;this.enabled||(this.enabled=!0,(e=this.css3DInstance)==null||e.enable(),this.plane&&this.scene.add(this.plane))}disable(){var e;!this.enabled||(this.enabled=!1,(e=this.css3DInstance)==null||e.disable(),this.plane&&this.scene.remove(this.plane))}show(){var e;(e=this.css3DInstance)==null||e.show(),this.plane&&(this.plane.visible=!0)}hide(){var e;(e=this.css3DInstance)==null||e.hide(),this.plane&&(this.plane.visible=!1)}dispose(){this.disable(),this.css3DRenderer.dispose()}initRectangleScaleHelper(){var a;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const n=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!n)return;this.css3DInstance=n,n.appendToElement(this.container);const o=n.css3DObject.container,{container:s,squares:r}=IA();this.points=r.map((l,c)=>({direction:l.direction,point:l.element,position:this.calculatePointPosition(e)[c]})),o.insertBefore(s,(a=o.children[0])!=null?a:null),this.updatePosition()}getCornerPositions(){const{originObject3D:e}=this;if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u5F53\u524D\u7269\u4F53\u6682\u65F6\u4E0D\u652F\u6301 ScaleHelper")}calculatePointPosition(e){return[e[0].clone(),e[0].clone().add(e[1]).divideScalar(2),e[1].clone(),e[1].clone().add(e[2]).divideScalar(2),e[2].clone(),e[2].clone().add(e[3]).divideScalar(2),e[3].clone(),e[3].clone().add(e[0]).divideScalar(2)]}}new x.Vector3;function ge(i,t){this._camera=i||null,this._domElement=t||document,this._raycaster=new x.Raycaster,this._selected=null,this._boundObjs={};var e=this;this._$onClick=function(){e._onClick.apply(e,arguments)},this._$onDblClick=function(){e._onDblClick.apply(e,arguments)},this._$onMouseMove=function(){e._onMouseMove.apply(e,arguments)},this._$onMouseDown=function(){e._onMouseDown.apply(e,arguments)},this._$onMouseUp=function(){e._onMouseUp.apply(e,arguments)},this._$onTouchMove=function(){e._onTouchMove.apply(e,arguments)},this._$onTouchStart=function(){e._onTouchStart.apply(e,arguments)},this._$onTouchEnd=function(){e._onTouchEnd.apply(e,arguments)},this._$onContextmenu=function(){e._onContextmenu.apply(e,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}ge.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)},ge.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"],ge.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},n=t,o=getComputedStyle(n,null);e.y+=parseInt(o.getPropertyValue("padding-top"),10),e.x+=parseInt(o.getPropertyValue("padding-left"),10);do e.x+=n.offsetLeft,e.y+=n.offsetTop,o=getComputedStyle(n,null),e.x+=parseInt(o.getPropertyValue("border-left-width"),10),e.y+=parseInt(o.getPropertyValue("border-top-width"),10);while(n=n.offsetParent);var s={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/s.width)*2-1,y:-((i.pageY-e.y)/s.height)*2+1}},ge.prototype._objectCtxInit=function(i){i._3xDomEvent={}},ge.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent},ge.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent},ge.prototype._objectCtxGet=function(i){return i._3xDomEvent},ge.prototype.camera=function(i){return i&&(this._camera=i),this._camera},ge.prototype.bind=function(i,t,e,n){console.assert(ge.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]),o[t+"Handlers"].push({callback:e,useCapture:n}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)},ge.prototype.addEventListener=ge.prototype.bind,ge.prototype.unbind=function(i,t,e,n){console.assert(ge.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]);for(var s=o[t+"Handlers"],r=0;r<s.length;r++){var a=s[r];if(e==a.callback&&n==a.useCapture){s.splice(r,1);break}}var l=this._boundObjs[t].indexOf(i);console.assert(l!==-1),this._boundObjs[t].splice(l,1)},ge.prototype.removeEventListener=ge.prototype.unbind,ge.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1},ge.prototype._onMove=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new x.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o),a=this._selected;if(r.length>0){var l,c,u,d=r[0],f=d.object;this._selected=f,u=this._bound("mousemove",f),a!=f&&(l=this._bound("mouseover",f),c=a&&this._bound("mouseout",a))}else c=a&&this._bound("mouseout",a),this._selected=null;u&&this._notify("mousemove",f,n,d),l&&this._notify("mouseover",f,n,d),c&&this._notify("mouseout",a,n,d)}},ge.prototype._onEvent=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new x.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o,!0);if(r.length!==0){for(var a=r[0],l=a.object,c=this._objectCtxGet(l),u=l.parent;typeof c=="undefined"&&u;)c=this._objectCtxGet(u),u=u.parent;!c||this._notify(i,l,n,a)}}},ge.prototype._notify=function(i,t,e,n){var o=this._objectCtxGet(t),s=o?o[i+"Handlers"]:null;if(console.assert(arguments.length===4),!o||!s||s.length===0){t.parent&&this._notify(i,t.parent,e,n);return}for(var s=o[i+"Handlers"],r=0;r<s.length;r++){var a=s[r],l=!0;a.callback({type:i,target:t,origDomEvent:e,intersect:n,stopPropagation:function(){l=!1}}),!!l&&a.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,n)}},ge.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)},ge.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)},ge.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)},ge.prototype._onMouseMove=function(i){var t=this._getRelativeMouseXY(i);this._onMove("mousemove",t.x,t.y,i),this._onMove("mouseover",t.x,t.y,i),this._onMove("mouseout",t.x,t.y,i)},ge.prototype._onClick=function(i){this._onMouseEvent("click",i)},ge.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)},ge.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)},ge.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)},ge.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)},ge.prototype._onTouchMove=function(i){if(i.touches.length==1){i.preventDefault();var t=Number(i.touches[0].pageX/window.innerWidth)*2-1,e=-(i.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",t,e,i),this._onMove("mouseover",t,e,i),this._onMove("mouseout",t,e,i)}},ge.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,n=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,n,t)}};let Ht=null;class bo{constructor(t,e,n,o,s,r,a){m(this,"hooks",new Xt);m(this,"helperObject3D");m(this,"originObject3D");m(this,"camera");m(this,"model");m(this,"scene");m(this,"container");m(this,"domEvents");m(this,"isDragging",!1);m(this,"onRender");m(this,"enabled",!1);m(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});this.camera=t,this.model=e,this.originObject3D=n,this.helperObject3D=o,this.container=s,this.scene=r,this.domEvents=new ge(t,s),this.onRender=a!=null?a:()=>{},this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable()}initialHelperPosition(){this.helperObject3D.updatePosition()}initialHelperQuaternion(){this.helperObject3D.updateQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.render())}disable(){!this.enabled||(this.enabled=!1,this.scene.remove(this.helperObject3D),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){this.helperObject3D.dispose(),this.scene.remove(this.helperObject3D),this.render()}setOpacity(t){this.setOriginOpacityProperty();const e=this.originObject3D;if(e instanceof x.Mesh&&(e.material.opacity=t),e.isCSS3DObjectPlus){const n=e;n.container.style.opacity=t.toString()}this.render()}restoreOpacity(){if(Ht===null)return;const t=this.originObject3D;if(t instanceof x.Mesh&&(t.material.opacity=Ht.opacity),t.isCSS3DObjectPlus){const e=t;e.container.style.opacity=Ht.opacity.toString()}this.render()}setOriginOpacityProperty(){var t,e;if(Ht===null){const n=this.originObject3D;n instanceof x.Mesh&&(Ht={opacity:n.material.opacity}),n instanceof Vo&&(Ht={opacity:(t=n.container.style.opacity)!=null?t:1}),n.isCSS3DObjectPlus&&(Ht={opacity:Number((e=n.container.style.opacity)!=null?e:1)})}}updateHelperPosition(){this.helperObject3D.updatePosition()}updateHelperQuaternion(){this.helperObject3D.updateQuaternion()}applyHelperMatrix4(t){this.helperObject3D.applyMatrix4(t)}applyHelperQuaternion(t,e){this.helperObject3D.applyHelperQuaternion(t,e)}applyHelperScaleMatrix4(t,e){this.helperObject3D.applyHelperScaleMatrix4(t,e)}onWantsGesture(t,e,n){if(this.isDragging)return!1}render(){this.onRender()}hoverListener(t,e=16777215,n=1){const o=(Array.isArray(t)?t:[t]).filter(Ze),s=[];for(const r of o)if(r instanceof x.Mesh||r instanceof x.Group){const a=r instanceof x.Group?r.children.filter(f=>f instanceof x.Mesh):[r];a.forEach(f=>{f.__originalColor__=f.material.color.clone(),f.__originalOpacity__=f.material.opacity});const l=()=>{a.forEach(f=>{f.material.color.set(e),f.material.opacity=n}),this.render()},c=()=>{a.forEach(f=>{f.material.color.copy(f.__originalColor__),f.material.opacity=f.__originalOpacity__}),this.render()},u=()=>{this.isDragging||l()},d=()=>{this.isDragging||c()};for(const f of a)this.domEvents.addEventListener(f,"mouseover",u),this.domEvents.addEventListener(f,"mouseout",d),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",c),this.hooks.on("rotateEnd",c),s.push(()=>{this.domEvents.removeEventListener(f,"mouseover",u),this.domEvents.removeEventListener(f,"mouseout",d),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",c),this.hooks.off("rotateEnd",c)})}return()=>s.forEach(r=>r==null?void 0:r())}getIntersectObject(t){const e=this.camera.position,n=this.helperObject3D;if(!n)return;let o;const s=t.intersectObject(n,!0)[0];if(!!s&&(o=s,o.object=n,!!o)){if(this.model.intersectRaycaster){const r=this.model.intersectRaycaster(t)[0];if(r&&r.point.distanceTo(e)<o.point.distanceTo(e))return}return o.object}}}class kA extends bo{constructor(...e){super(...e);m(this,"startInfo");const n=this.helperObject3D;this.hoverListener([n.xArrow,n.yArrow,n.zArrow]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=new x.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),r=new x.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),a=new x.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),l=(()=>{switch(o){case"x":return s;case"y":return r;case"z":return a}})(),c=(()=>{switch(o){case"x":case"y":return a;case"z":return s}})(),u=n.point.clone(),d=new x.Plane;d.setFromNormalAndCoplanarPoint(c,u),this.startInfo={startVectorProject:u.clone().projectOnVector(l),directionVector:l,plane:d},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging||!this.startInfo)return;const n=ho(this.camera,e,this.container);return n?(console.log("%c RotateController dragging","color: #49de1b"),this.move(n),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:n,directionVector:o,startVectorProject:s}=this.startInfo,r=this.originObject3D,a=e.ray.intersectPlane(n,new x.Vector3);if(!a)return;const l=a.clone().projectOnVector(o),c=l.clone().sub(s),u=new x.Matrix4;u.setPosition(c),r.applyMatrix4(u),this.helperObject3D.applyMatrix4(u),s.copy(l),this.hooks.emit("positionUpdate",{matrix4:u})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class yo{constructor(t,e,n,o){m(this,"helperController");m(this,"five");m(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});m(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});const{camera:s,model:r,scene:a}=t,l=t.getElement();if(this.five=t,!s||!r||!l||!a)return;const c=()=>{t.needsRender=!0};this.helperController=new e(s,r,n,o,l,a,c),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture)}}const wo="Object3DHelper@v1.0.1",xA=()=>{console.error(`${wo} is disposed`)},DA=()=>{console.warn(`${wo} is disabled`)},LA=()=>{console.error(`${wo} is disabled`)};class SA{constructor(t,e){m(this,"controllers",{});m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"hooks",new Xt);m(this,"helpers");m(this,"eventListener",{});m(this,"handlePositionUpdate",(t,...e)=>{var s,r,a,l;const[n]=e,o=n==null?void 0:n.matrix4;o&&(t!==this.controllers.moveController&&((s=this.controllers.moveController)==null||s.applyHelperMatrix4(o)),t!==this.controllers.rotateController&&((r=this.controllers.rotateController)==null||r.applyHelperMatrix4(o)),t!==this.controllers.scaleController&&((a=this.controllers.scaleController)==null||a.applyHelperMatrix4(o)),(l=this.helpers.outlineHelper)==null||l.applyMatrix4(o))});m(this,"handleScaleUpdate",(t,...e)=>{var s,r;const[n]=e,o=n==null?void 0:n.matrix4;o&&((s=this.controllers.scaleController)==null||s.applyHelperScaleMatrix4(o,n),(r=this.helpers.outlineHelper)==null||r.scale.applyMatrix4(o))});m(this,"handleRotateUpdate",(t,...e)=>{var o,s,r,a;const[n]=e;if(n){const{quaternion:l,origin:c}=n;l&&(t!==this.controllers.moveController&&((o=this.controllers.moveController)==null||o.applyHelperQuaternion(l,c)),t!==this.controllers.rotateController&&((s=this.controllers.rotateController)==null||s.applyHelperQuaternion(l,c)),t!==this.controllers.scaleController&&((r=this.controllers.scaleController)==null||r.applyHelperQuaternion(l,c)),(a=this.helpers.outlineHelper)==null||a.applyQuaternion(l))}});t&&this.addControllers(t),this.helpers=e!=null?e:{},this.setState(this.state)}show(t){return Y(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return Y(this,null,function*(){this.setState({visible:!1},t)})}enable(t){this.setState({enabled:!0},t)}disable(t){this.setState({enabled:!1},t)}dispose(){this.setState({disposed:!0})}setState(t,e){if(this.state.disposed)return xA();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return LA();const n=G({},this.state);this.state=G(G({},this.state),t),t.disposed!==void 0&&t.disposed!==n.disposed&&t.disposed&&this.handleDispose(),t.visible!==void 0&&this.handleVisible(t.visible),t.enabled!==void 0&&this.handleEnable(t.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}addControllers(t){this.controllers=G(G({},this.controllers),t),this.addEventListener(),this.setState(this.state)}addHelpers(t){this.helpers=G(G({},this.helpers),t)}getCurrentState(){return this.state}addEventListener(){for(const t in this.controllers){if(!t)continue;const e=t;this.eventListener[e]||(this.eventListener[e]=(()=>{const n=this.controllers[e];if(!n)return;const o=()=>this.handleStart(n),s=()=>this.handleEnd(n),r=(...c)=>this.handlePositionUpdate(n,...c),a=(...c)=>this.handleRotateUpdate(n,...c),l=(...c)=>this.handleScaleUpdate(n,...c);return n.hooks.on("moveStart",o),n.hooks.on("rotateStart",o),n.hooks.on("scaleStart",o),n.hooks.on("positionUpdate",r),n.hooks.on("rotateUpdate",a),n.hooks.on("scaleUpdate",l),n.hooks.on("moveEnd",s),n.hooks.on("rotateEnd",s),n.hooks.on("scaleEnd",s),()=>{n.hooks.off("moveStart",o),n.hooks.off("rotateStart",o),n.hooks.off("scaleStart",o),n.hooks.off("positionUpdate",r),n.hooks.off("rotateUpdate",a),n.hooks.off("scaleUpdate",l),n.hooks.off("moveEnd",s),n.hooks.off("rotateEnd",s),n.hooks.off("scaleEnd",s)}})())}}handleEnd(t){t&&this.setOtherHelpersVisible(!0,t)}handleStart(t){t&&this.setOtherHelpersVisible(!1,t)}setOtherHelpersVisible(t,e){var n,o,s,r;t?((s=this.controllers.moveController)==null||s.helperObject3D.show(),(r=this.controllers.rotateController)==null||r.helperObject3D.show()):(e!==this.controllers.moveController&&((n=this.controllers.moveController)==null||n.helperObject3D.hide()),e!==this.controllers.rotateController&&((o=this.controllers.rotateController)==null||o.helperObject3D.hide()))}handleEnable(t,e=!0){t?(this.everyControllerDo(n=>{n.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(n=>{n.disable(),n.restoreOpacity()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(n=>{n.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(n=>{n.hide(),n.restoreOpacity()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:e}))),this.state.visible=t}everyControllerDo(t){Object.values(this.controllers).forEach(e=>{e&&t(e)})}handleDispose(){var t,e;Object.values(this.controllers).forEach(n=>{n==null||n.dispose(),n==null||n.restoreOpacity()});for(const n in this.controllers){if(!n)continue;const o=n;(e=(t=this.eventListener)[o])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&DA()}}class zA extends bo{constructor(...e){super(...e);m(this,"startInfo");m(this,"lastRotation");m(this,"rotations",[]);m(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const n=this.helperObject3D;this.hoverListener([n.xyCircle,n.xzCircle,n.yzCircle]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const s=n.point,r=this.originObject3D.position.clone(),a=this.getAngleHelper(o);this.setTipsAngle(0);const l=s.clone();l.y+=.2,this.setTipsPosition(l);const c=new x.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),u=new x.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),d=new x.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),f=(()=>{switch(o){case"x":return c;case"y":return u;case"z":return d}})(),h=new x.Plane().setFromNormalAndCoplanarPoint(f,s),p=new x.Vector3;h.projectPoint(s.clone(),p);const g=p.clone().sub(r),A=g.clone(),v=g.angleTo(a.baseAxes);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:h,angleHelper:a},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${o}`,"color: #e5af2e")}dragging(e){var o;if(!this.isDragging)return;const n=ho(this.camera,e,this.container);return n?(console.log(`%c RotateController dragging ${(o=this.startInfo)==null?void 0:o.direction}`,"color: #49de1b"),this.rotate(n),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:n,plane:o,angleHelper:s,staticStartVector:r,direction:a}=this.startInfo,l=this.originObject3D,c=e.ray.intersectPlane(o,new x.Vector3);if(!c)return;const u=l.position.clone(),d=new x.Vector3;o.projectPoint(c.clone(),d);const f=d.clone().sub(u);if(n.angleTo(f)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const h=(()=>{if(this.rotations.length===1)return f.angleTo(s.baseAxes)>r.angleTo(s.baseAxes);{const g=this.rotations[this.rotations.length-1],A=this.rotations[this.rotations.length-2],v=f.angleTo(A.vector),w=f.angleTo(g.vector),y=g.vector.angleTo(A.vector);if(y===0||w===0||v===0)return;if(v>w&&v>y)return g.direction;if(v<y&&w<y||v<w&&w>y)return!g.direction}})();if(h===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:f,direction:h}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+f.angleTo(n)*(h?1:-1),this.setAngleHelperLength(a,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const p=new x.Quaternion().setFromUnitVectors(n.clone().normalize(),f.clone().normalize());l.applyQuaternion(p),this.helperObject3D.applyHelperQuaternion(p),this.helperObject3DQuaternion.premultiply(p),this.hooks.emit("rotateUpdate",{quaternion:p,origin:u}),this.startInfo.startVector=f}dragEnd(){!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"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,n){const o=this.getAngleHelper(e);if(o instanceof x.Mesh&&o.geometry instanceof x.CircleGeometry){const{radius:s,segments:r,thetaLength:a}=o.geometry.parameters;o.geometry=new x.CircleGeometry(s,r,n,a)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,n){const s=n>=0?Math.max(n,.001):Math.min(n,-.001),r=this.getAngleHelper(e);if(r instanceof x.Mesh&&r.geometry instanceof x.CircleGeometry){const{radius:a,thetaStart:l}=r.geometry.parameters,c=Math.ceil(Math.abs(s)*(40/(2*Math.PI)));r.geometry=new x.CircleGeometry(a,c,l,s)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var o;const n=(o=this.helperObject3D.angleTips)==null?void 0:o.element;!n||(n.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const n=this.helperObject3D.angleTips;if(!n)return;const o=e.project(this.camera),{x:s,y:r,z:a}=o;if(a>1)return;const l=(s+1)/2*100+"%",c=(-r+1)/2*100+"%";n.setLeftTop(l,c)}}class MA extends bo{constructor(...e){super(...e);m(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new x.Plane,n=this.helperObject3D.cornerPositions;if(n.length!==0)return n.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new F.Vector3),n[0]):e.setFromCoplanarPoints(n[0],n[1],n[2]),e}dragStart(e,n){var s,r;(r=(s=this.helperObject3D).updatePoints)==null||r.call(s);const o=this.getDragPlane();if(!o)return this.dragEnd();this.startInfo={startPoint:{position:n.position.clone(),direction:n.direction},plane:o},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const n=ho(this.camera,e,this.container);if(!n)return this.dragEnd();this.scale(n),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var V,W;if(!this.startInfo)return;const n=this.originObject3D,{startPoint:o,plane:s}=this.startInfo,r=this.helperObject3D.cornerPositions;if(r.length<4)return this.dragEnd();const a=e.ray.intersectPlane(s,new F.Vector3);if(!a||bA(a,this.camera.position))return;const l=new F.Vector3().addVectors(r[0],r[2]).divideScalar(2),{position:c,direction:u}=o,d=new F.Vector3().subVectors(r[1],r[0]),f=new F.Vector3().subVectors(r[3],r[0]),h=H=>{const X=new F.Vector3(0,0,0);if(!this.startInfo)return X;const Q=(H==="ew"?d:f).clone(),P=c.clone().projectOnVector(Q),O=a.clone().projectOnVector(Q),R=l.clone().projectOnVector(Q);if(O.equals(P))return X;if(H==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const _=new F.Vector3().subVectors(O,R),q=_.x<0&&Q.x>=0,fe=_.y<0&&Q.y>=0,he=_.z<0&&Q.z>=0;this.startInfo.dragPointInCenterBottom=q||fe||he}if(H==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const _=new F.Vector3().subVectors(O,R),q=_.x<0&&Q.x>=0,fe=_.y<0&&Q.y>=0,he=_.z<0&&Q.z>=0;this.startInfo.dragPointInCenterLeft=q||fe||he}const N=new F.Vector3().subVectors(O,P),Z=N.length();return Z>.3?(console.warn("offset.length() > 0.3, skipped",Z),X):N},p=h("ew"),g=h("ns"),A=()=>{const H=p;this.helperObject3D.cornerPositions.forEach((X,Q)=>{var P;(P=this.startInfo)!=null&&P.dragPointInCenterLeft?(Q===0||Q===3)&&X.add(H):(Q===1||Q===2)&&X.add(H)})},v=()=>{const H=g;this.helperObject3D.cornerPositions.forEach((X,Q)=>{var P;(P=this.startInfo)!=null&&P.dragPointInCenterBottom?(Q===0||Q===1)&&X.add(H):(Q===2||Q===3)&&X.add(H)})};switch(u){case"ew":A();break;case"ns":v();break;case"nesw":case"nwse":A(),v()}const w=new F.Vector3().subVectors(r[1],r[0]).length()/d.length(),y=new F.Vector3().subVectors(r[3],r[0]).length()/f.length(),E=new F.Vector3(w,y,1),I=new x.Matrix4().scale(E);n.isCSS3DObjectPlus?n.applyScaleMatrix4(I):n.scale.applyMatrix4(I),o.position.copy(a);const C=new F.Vector3().addVectors(r[0],r[2]).divideScalar(2),L=new F.Vector3().subVectors(C,l),D=new x.Matrix4().setPosition(L);n.applyMatrix4(D),(V=this.helperObject3D.css3DInstance)==null||V.css3DObject.applyMatrix4(D),(W=this.helperObject3D.plane)==null||W.applyMatrix4(D),this.hooks.emit("scaleUpdate",{matrix4:I,helperOrigin:l}),this.hooks.emit("positionUpdate",{matrix4:D}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}class TA extends MA{constructor(...t){super(...t),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(t=>{if(!t)return;const e=t.point,n=r=>this.dragStart(r,t),o=this.dragging.bind(this),s=this.dragEnd.bind(this);e.addEventListener("dragstart",n),e.addEventListener("drag",o),e.addEventListener("dragend",s)})}}const Co="v1.0.0",Po="Object3DHelperPlugin",Ai=`${Po}@${Co}`,BA=()=>{console.error(`${Ai} is disposed`)},VA=()=>{console.warn(`${Ai} is disabled`)},jA=()=>{console.error(`${Ai} is disabled`)};class yl extends Zn{constructor(e){super(e);m(this,"version",Co);m(this,"name",Po);m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"objectHelperMap",new Map);m(this,"css3DObjectParentMap",new Map);m(this,"css3DRender");this.five=e,this.css3DRender=new Ut(this.five.scene),console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${Po.toUpperCase()}_DEBUG__`]:this})}show(e){return Y(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return Y(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){if(this.state.disposed)return BA();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return jA();const o=G({},this.state);this.state=G(G({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:o})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,n={}){var u;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const o=new SA;this.objectHelperMap.set(e,o);const s=(u=this.five.getElement())==null?void 0:u.parentElement,r=this.five.camera,{moveHelper:a=!0,rotateHelper:l=!0,scaleHelper:c=!0}=n;if(a){const d=new yA(e),f=new yo(this.five,kA,e,d);o.addControllers({moveController:f.helperController})}if(l){let d;s&&r&&(d={container:s});const f=new PA(e,d),h=new yo(this.five,zA,e,f);o.addControllers({rotateController:h.helperController})}if(c&&s){const d=new EA(e,s,r,this.five.scene),f=new yo(this.five,TA,e,d);o.addControllers({scaleController:f.helperController})}e.isCSS3DObjectPlus&&Oo(this.five).then(()=>{var d,f;if(e.isCSS3DObjectPlus){const h=e,p=(d=this.css3DRender.behindModeCSS3DRenderer.wrapper)!=null?d:Ro(this.five);p&&e&&(this.css3DObjectParentMap.set(h,h.parent),h.removeFromParent(),this.css3DRender.behindModeCSS3DRenderer.setWrapper(p),(f=this.css3DRender.getBehindCSS3DObjectGroup())==null||f.add(h),this.css3DRender.render(this.five.camera))}})}removeObject3DHelper(e){const n=this.objectHelperMap.get(e);if(!!n){if(e.isCSS3DObjectPlus){const o=e,s=this.css3DObjectParentMap.get(o);s==null||s.add(o),this.css3DRender.render(this.five.camera)}this.objectHelperMap.delete(e),n.dispose()}}handleEnable(e,n=!0){e?(this.everyHelperDo(o=>o.enable()),this.hooks.emit("enable",{userAction:n})):(this.everyHelperDo(o=>o.disable()),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){e?(this.everyHelperDo(o=>o.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.everyHelperDo(o=>o.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(n=>{n&&e(n)})}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&VA()}}const QA=i=>new yl(i);U.CSS3DRender=Ut,U.CSS3DRenderPlugin=Jt,U.CameraMovementEffect=Xs,U.CameraMovementPlugin=Kd,U.ContentType=gl,U.CruisePlugin=Tm,U.CruisePluginController=to,U.DIRECTION=sn,U.DISPLAY_STRATEGY_TYPE=Qt,U.DimensionType=Al,U.FLOOR_PLAN_ATTACHED_TO=Ct,U.FLOOR_TYPE_MAP=Fd,U.GuideLinePlugin=Hr,U.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=Ot,U.ItemLabelPlugin=om,U.Magnifier=or,U.MapviewFloorplanPlugin=vd,U.ModelChassisCompassPlugin=Nd,U.ModelEntryDoorGuidePlugin=Xd,U.ModelFloorplanPlugin=md,U.ModelItemLabelPlugin=Oh,U.ModelRoomLabelPlugin=kc,U.ModelTVVideoPlugin=Gh,U.ModelViewPlugin=Vl,U.Object3DHelperController=yl,U.Object3DHelperPlugin=QA,U.PLUGIN=Ai,U.PaintBrush=Bl,U.PaintBrushTypeEnum=at,U.PanoCompassPlugin=yf,U.PanoCursorRaycasterPlugin=Kl,U.PanoDoorLabelPlugin=Am,U.PanoFloorplanRadarPlugin=Od,U.PanoMeasurePlugin=fh,U.PanoRulerPlugin=of,U.PanoRulerProPlugin=pf,U.PanoSpatialTagPlugin=xh,U.PanoTagPlugin=fA,U.PanoTagPluginController=pl,U.PointType=vl,U.ROOM_FETILE_TYPE_MAP=Rd,U.ROOM_TYPE_MAP=Gd,U.Rotation=tt,U.TopviewFloorplanPlugin=yd,U.Util=xg,U.VERSION=Co,U.itemLabelPluginServerParams=sm,U.modelItemLabelPluginServerParams=Rh,U.modelRoomLabelPluginServerParams=xc,U.pluginFlag=dA,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
559
|
+
`;function Pg(){const i=new x.PlaneGeometry(.4,.4),t=yg,e=new x.TextureLoader().load(t);e.encoding=x.sRGBEncoding;const n=new x.MeshBasicMaterial({map:e,transparent:!0,depthTest:!1});return new x.Mesh(i,n)}function Ig(){const i=new x.CurvePath;i.add(new x.LineCurve3(new x.Vector3(0,0,0),new x.Vector3(0,0,.1)));const t=new x.TubeGeometry(i,8,.003),e=new x.ShaderMaterial({vertexShader:wg,fragmentShader:Cg,depthTest:!1,transparent:!0});return new x.Mesh(t,e)}function Eg(){const i=new x.SphereGeometry(.01,20,20),t=new x.MeshBasicMaterial({color:10349931,depthTest:!1,transparent:!0,side:x.DoubleSide}),e=new x.Mesh(i,t);return e.position.set(0,0,.1),e}class Ta extends x.Object3D{constructor(){super();m(this,"planeMesh");m(this,"lineMesh");m(this,"ballMesh");this.planeMesh=Pg(),this.lineMesh=Ig(),this.ballMesh=Eg(),this.add(this.planeMesh,this.lineMesh,this.ballMesh)}updateWithIntersect(e){if(!e.face)return;const n=new x.Vector3().addVectors(e.point,e.face.normal);this.position.copy(e.point),this.lookAt(n)}dispose(){var e;(e=this.planeMesh.material.map)==null||e.dispose()}}class Ba{constructor(t){m(this,"five");m(this,"contentElement",document.createElement("div"));m(this,"animeIns");m(this,"container");m(this,"css3DObject");m(this,"disposeCss3DObject");m(this,"state",{enabled:!1});this.five=t;const n=.4/2,s=Jt(t).create3DDomContainer([[-n,n,0],[-n,-n,0],[n,-n,0],[n,n,0]].map(r=>new x.Vector3().fromArray(r)));if(s){const{container:r,dispose:a,css3DObject:l}=s;this.container=r,this.css3DObject=l,this.disposeCss3DObject=a}this.contentElement.style.width="100%",this.contentElement.style.height="100%",this.contentElement.style.backgroundImage=`url(${Ar})`,this.contentElement.style.backgroundSize="100%",this.contentElement.style.backgroundRepeat="no-repeat"}enable(){var t;this.state.enabled||(this.state.enabled=!0,(t=this.container)==null||t.appendChild(this.contentElement))}disable(){!this.state.enabled||(this.state.enabled=!1,this.contentElement.remove())}updateWithIntersect(t){if(!t.face||!this.css3DObject)return;const e=new x.Vector3().addVectors(t.point,t.face.normal);this.css3DObject.position.copy(t.point),this.css3DObject.lookAt(e),this.five.needsRender=!0}doAnimation(){var t;(t=this.animeIns)==null||t.dispose(),new Ni({progress:0}).to({progress:[1,0]}).duration(500).easing(In.Easing.Quadratic.InOut).onUpdate(({progress:e})=>{}).play()}dispose(){var t;(t=this.disposeCss3DObject)==null||t.call(this)}}class kg{constructor(t,e){m(this,"five");m(this,"hooks",new de.Subscribe);m(this,"magnifier",null);m(this,"pointHelper",null);m(this,"pointDomHelper",null);m(this,"contentDom",document.createElement("div"));m(this,"state",{enabled:!1});m(this,"group",new x.Group);this.five=t,this.magnifier=(e==null?void 0:e.magnifier)===void 0?new za(t,{dragEnabled:!0}):null,this.pointHelper=(e==null?void 0:e.pointHelper)===void 0?new Ta:null,this.pointDomHelper=(e==null?void 0:e.pointDomHelper)===void 0?new Ba(t):null,this.group.name="five-point-selector",this.five.scene.add(this.group),this.contentDom.classList.add("five-point-selector-content"),this.contentDom.style.position="absolute",this.contentDom.style.top="0",this.contentDom.style.left="0",this.contentDom.style.width="100%",this.contentDom.style.height="100%",this.contentDom.style.pointerEvents="none"}enable(){var t,e;this.state.enabled||(this.state.enabled=!0,this.pointHelper&&this.group.add(this.pointHelper),(t=this.magnifier)==null||t.enable(),(e=this.pointDomHelper)==null||e.enable(),this.five.needsRender=!0,this.hooks.emit("enabled"))}disable(){var t,e;!this.state.enabled||(this.state.enabled=!1,this.pointHelper&&this.group.remove(this.pointHelper),(t=this.magnifier)==null||t.disable(),(e=this.pointDomHelper)==null||e.disable(),this.hooks.emit("disabled"))}dispose(){this.hooks.off(),this.disable(),this.magnifier=null,this.pointHelper=null,this.pointDomHelper=null}updateWithIntersect(t){var s;this.hooks.emit("pointChanged",{panoIndex:this.five.getCurrentState().panoIndex,position:t.point.toArray(),normal:(s=t.face)==null?void 0:s.normal.toArray()});const e=this.magnifier;e&&e.renderWithPoint(t.point);const n=this.pointHelper;n&&n.updateWithIntersect(t);const o=this.pointDomHelper;o&&o.updateWithIntersect(t),this.five.needsRender=!0}}const xg=Object.freeze(Object.defineProperty({__proto__:null,Interval:lo,Rectangle:pg,Magnifier:za,getCoordsFromClient:Ag,getCoordsFromElement:Ma,getRaycasterFromFivePointer:vg,getIntersectFromRelativePosition:bg,PointHelper:Ta,PointDomHelper:Ba,FivePointSelector:kg,isNil:Im,notNil:Ze,BetterTween:Ni,tweenProgress:_s,nextFrame:qn,requestAnimationFrameInterval:Kn,getFrameTime:Ud},Symbol.toStringTag,{value:"Module"}));function Dg(i){le(i,"svelte-8mby9k",".svelte-8mby9k.svelte-8mby9k{box-sizing:border-box}.marketing.svelte-8mby9k.svelte-8mby9k{transform:translateY(-100%)}.content.svelte-8mby9k .headerImage.svelte-8mby9k{position:absolute;width:100%;top:0.25rem;transform:translateY(-100%);border-top-left-radius:0.25rem;border-top-right-radius:0.25rem}.line.svelte-8mby9k.svelte-8mby9k{position:absolute;height:2.0625rem;width:0.0625rem;left:50%;transform:translateX(-50%);background-color:white;bottom:0;transform-origin:bottom;transition:all 500ms}.content.svelte-8mby9k.svelte-8mby9k{background-color:white;position:relative;display:flex;flex-direction:column;min-width:11.125rem;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;border-radius:0.25rem;top:-1.875rem;left:-1rem;padding:0.5rem 0rem 0.5625rem;transition:all 500ms}.title.svelte-8mby9k.svelte-8mby9k{position:absolute;background-color:white;border-radius:0.25rem;width:100%;top:0.5rem;padding-left:0.75rem;padding-right:0.75rem}.title.svelte-8mby9k .text.svelte-8mby9k{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:0.75rem;font-weight:bold;line-height:1.125rem;color:#000}.footer.svelte-8mby9k.svelte-8mby9k{position:relative;padding-left:0.75rem;padding-right:0.75rem;width:100%;height:1.375rem;display:flex;align-items:center}.footer.svelte-8mby9k .goto-button.svelte-8mby9k{flex-shrink:0;white-space:nowrap;background-image:linear-gradient(to right, rgba(87, 144, 253, 1) 0, rgba(42, 114, 254, 1) 100%);color:#fff;font-size:0.625rem;border-radius:0.875rem;font-weight:bold;padding-left:0.5rem;padding-right:0.5rem;height:1.25rem;margin-left:auto;display:flex;align-items:center}.footer.svelte-8mby9k .goto-icon.svelte-8mby9k::after{content:'';display:inline-block;width:0.75rem;height:0.75rem;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAeFBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////GqOSsAAAAJ3RSTlMAFNO2pYt4bErz8uP6ysawgVtBPDcR5C4s2L6ZmJBzZGJXUyEeDws/0G2zAAAAkklEQVQ4y+3TRw6DMBAF0OAeJ3QCpCe0uf8NwRILLBYfiS1/aT3JoymnI+sERZ5VCH0iVto3QDfBLmeSSMUTogRV9bBEpJAKaYpGijn13aTSLeraeG9D0NZFZv4/rRL5FDHnITlllqjv6tykWsmX4JHr05y7j6oFKq2P8He48B0tAM0EY0EDxquClw6vLz6EI35GmwwSZpe+WOgAAAAASUVORK5CYII=);background-size:100% auto;background-repeat:no-repeat}.price.svelte-8mby9k.svelte-8mby9k{flex-shrink:0;margin-right:0.75rem;white-space:nowrap;color:#ff6600;display:flex;align-items:baseline}.price.svelte-8mby9k .value.svelte-8mby9k{position:relative;top:0.0625rem;font-size:1.125rem;line-height:1.375rem;font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;letter-spacing:0rem}.price.svelte-8mby9k .unit.svelte-8mby9k{padding-left:0.125rem;font-size:0.625rem}.tag.svelte-8mby9k.svelte-8mby9k{position:relative;background-color:white;display:flex;width:-moz-max-content;width:max-content;padding-left:0.75rem;padding-right:0.75rem;min-height:1.75rem}.tag.svelte-8mby9k .base-tag.svelte-8mby9k{height:1rem;margin-top:1.375rem;margin-bottom:0.5rem;margin-right:0.25rem;font-size:0.625rem;line-height:0.875rem;padding:0.0625rem 0.25rem;border-radius:0.125rem;overflow:hidden}.tag.svelte-8mby9k .primary-tag.svelte-8mby9k{background:#e5eefe;color:#0055ff}.tag.svelte-8mby9k .secondary-tag.svelte-8mby9k{background:rgba(255, 102, 0, 0.08);color:rgba(255, 102, 0, 1)}.unfolded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 1)}.folded.svelte-8mby9k .line.svelte-8mby9k{transform:translateX(-50%) scale(1, 0);transition-timing-function:ease-in}.unfolded.svelte-8mby9k .content.svelte-8mby9k{opacity:1}.folded.svelte-8mby9k .content.svelte-8mby9k{opacity:0;transform:translateY(0.425rem);transition-timing-function:ease-in}")}function Va(i,t,e){const n=i.slice();return n[0]=t[e],n}function ja(i,t,e){const n=i.slice();return n[0]=t[e],n}function Qa(i){let t,e=i[0]+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","base-tag primary-tag svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&ke(n,e)},d(o){o&&M(t)}}}function Oa(i){let t,e=i[0]&&Qa(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,o){n[0]?e?e.p(n,o):(e=Qa(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&M(t)}}}function Ra(i){let t,e=i[0]+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","base-tag secondary-tag svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[0]+"")&&ke(n,e)},d(o){o&&M(t)}}}function Fa(i){let t,e=i[0]&&Ra(i);return{c(){e&&e.c(),t=me()},m(n,o){e&&e.m(n,o),T(n,t,o)},p(n,o){n[0]?e?e.p(n,o):(e=Ra(n),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(n){e&&e.d(n),n&&M(t)}}}function Ga(i){let t,e,n=i[2].price.value+"",o,s,r=i[2].price.unit&&Ha(i);return{c(){t=B("div"),e=B("span"),o=Pe(n),s=ee(),r&&r.c(),b(e,"class","value svelte-8mby9k"),b(t,"class","price svelte-8mby9k")},m(a,l){T(a,t,l),j(t,e),j(e,o),j(t,s),r&&r.m(t,null)},p(a,l){l&4&&n!==(n=a[2].price.value+"")&&ke(o,n),a[2].price.unit?r?r.p(a,l):(r=Ha(a),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(a){a&&M(t),r&&r.d()}}}function Ha(i){let t,e=i[2].price.unit+"",n;return{c(){t=B("span"),n=Pe(e),b(t,"class","unit svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].price.unit+"")&&ke(n,e)},d(o){o&&M(t)}}}function Na(i){let t,e=i[2].highlightText+"",n;return{c(){t=B("div"),n=Pe(e),b(t,"class","goto-button goto-icon svelte-8mby9k")},m(o,s){T(o,t,s),j(t,n)},p(o,s){s&4&&e!==(e=o[2].highlightText+"")&&ke(n,e)},d(o){o&&M(t)}}}function Lg(i){var X,Q;let t,e,n,o,s,r,a,l,c,u,d,f,h,p,g=i[2].title+"",A,v,w,y=Ze((X=i[2].price)==null?void 0:X.value)&&((Q=i[2].price)==null?void 0:Q.value)!=="",E,I;e=new ot({props:{visible:i[1],outDelay:500,left:61,bottom:87,blurRadius:150,spreadRadius:75}});let C=i[2].brandTags||[],L=[];for(let P=0;P<C.length;P+=1)L[P]=Oa(ja(i,C,P));let D=i[2].tags||[],V=[];for(let P=0;P<D.length;P+=1)V[P]=Fa(Va(i,D,P));let W=y&&Ga(i),H=i[2].highlightText&&Na(i);return{c(){var P;t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=ee(),r=B("div"),a=B("img"),c=ee(),u=B("div");for(let O=0;O<L.length;O+=1)L[O].c();d=ee();for(let O=0;O<V.length;O+=1)V[O].c();f=ee(),h=B("div"),p=B("div"),A=Pe(g),v=ee(),w=B("div"),W&&W.c(),E=ee(),H&&H.c(),b(o,"class","line svelte-8mby9k"),z(o,"transition-delay",i[1]?mi+"ms":pi+_a-Wa-40+"ms"),b(a,"class","headerImage svelte-8mby9k"),We(a.src,l=i[2].headerPictureUrl)||b(a,"src",l),b(a,"alt",""),b(u,"class","tag svelte-8mby9k"),b(p,"class","text svelte-8mby9k"),b(h,"class","title svelte-8mby9k"),b(w,"class","footer svelte-8mby9k"),z(w,"height",Ze((P=i[2].price)==null?void 0:P.value)&&i[2].highlightText?void 0:"1rem"),b(r,"class","content svelte-8mby9k"),z(r,"transition-delay",i[1]?mi+pi+"ms":"0ms"),b(t,"class","marketing svelte-8mby9k"),ne(t,"unfolded",i[1]),ne(t,"folded",i[3])},m(P,O){T(P,t,O),K(e,t,null),j(t,n),j(t,o),j(t,s),j(t,r),j(r,a),j(r,c),j(r,u);for(let R=0;R<L.length;R+=1)L[R].m(u,null);j(u,d);for(let R=0;R<V.length;R+=1)V[R].m(u,null);j(r,f),j(r,h),j(h,p),j(p,A),j(r,v),j(r,w),W&&W.m(w,null),j(w,E),H&&H.m(w,null),I=!0},p(P,[O]){var N,Z,_;const R={};if(O&2&&(R.visible=P[1]),e.$set(R),O&2&&z(o,"transition-delay",P[1]?mi+"ms":pi+_a-Wa-40+"ms"),(!I||O&4&&!We(a.src,l=P[2].headerPictureUrl))&&b(a,"src",l),O&4){C=P[2].brandTags||[];let q;for(q=0;q<C.length;q+=1){const fe=ja(P,C,q);L[q]?L[q].p(fe,O):(L[q]=Oa(fe),L[q].c(),L[q].m(u,d))}for(;q<L.length;q+=1)L[q].d(1);L.length=C.length}if(O&4){D=P[2].tags||[];let q;for(q=0;q<D.length;q+=1){const fe=Va(P,D,q);V[q]?V[q].p(fe,O):(V[q]=Fa(fe),V[q].c(),V[q].m(u,null))}for(;q<V.length;q+=1)V[q].d(1);V.length=D.length}(!I||O&4)&&g!==(g=P[2].title+"")&&ke(A,g),O&4&&(y=Ze((N=P[2].price)==null?void 0:N.value)&&((Z=P[2].price)==null?void 0:Z.value)!==""),y?W?W.p(P,O):(W=Ga(P),W.c(),W.m(w,E)):W&&(W.d(1),W=null),P[2].highlightText?H?H.p(P,O):(H=Na(P),H.c(),H.m(w,null)):H&&(H.d(1),H=null),O&4&&z(w,"height",Ze((_=P[2].price)==null?void 0:_.value)&&P[2].highlightText?void 0:"1rem"),O&2&&z(r,"transition-delay",P[1]?mi+pi+"ms":"0ms"),(!I||O&2)&&ne(t,"unfolded",P[1]),(!I||O&8)&&ne(t,"folded",P[3])},i(P){I||(k(e.$$.fragment,P),I=!0)},o(P){S(e.$$.fragment,P),I=!1},d(P){P&&M(t),$(e),ct(L,P),ct(V,P),W&&W.d(),H&&H.d()}}}const mi=400,Wa=500,pi=180,_a=500;function Sg(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l;i.$$.dirty&1&&e(1,n=(l=(a=r.state)==null?void 0:a.unfolded)!=null?l:!1),i.$$.dirty&2&&e(3,o=!n),i.$$.dirty&1&&e(2,s=r.data)},[r,n,s,o]}class zg extends se{constructor(t){super(),oe(this,t,Sg,Lg,ie,{tag:0},Dg)}}const Ft="data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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muadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",gi=[];function Mg(i){let t=gi.find(e=>!e.realSrc||e.realSrc===Ft);return t||(t=new co(Ft),gi.push(t)),i&&(t.src=i),t}function Tg(i){return Y(this,null,function*(){const t=(()=>i instanceof co?i:Mg(i))(),e=yield new Promise(n=>{t.duration?t.isBlankAudio?n(0):n(t.duration):(t.addEventListener("loadedmetadata",()=>{t.isBlankAudio?n(0):n(t.duration)}),t.addEventListener("canplaythrough",()=>{t.isBlankAudio?n(0):n(t.duration)}))});return typeof i=="string"&&t.clear(),e})}function Bg(i){const t=i-gi.length;if(!(t<=0))for(let e=0;e<t;e++)gi.push(new co(Ft))}function Vg(i){i.inited||(i.src&&(i.inited=!0,i.removeDocumentEventListener()),i.src===Ft&&i.play())}class co extends Audio{constructor(e){super(e);m(this,"preload","auto");m(this,"realSrc","");m(this,"inited",!1);m(this,"removeDocumentEventListener");this.realSrc=e!=null?e:"",super.addEventListener("ended",()=>{this.src=""});const n=()=>Vg(this);document.addEventListener("mousedown",n),document.addEventListener("click",n),document.addEventListener("touchstart",n),this.removeDocumentEventListener=()=>{document.removeEventListener("mousedown",n),document.removeEventListener("click",n),document.removeEventListener("touchstart",n)}}get isBlankAudio(){return this.realSrc===Ft||!this.realSrc}get src(){return super.src}set src(e){super.src=e,this.realSrc=e}clear(){this.src=Ft,console.log(this.realSrc===Ft)}}function jg(i){le(i,"svelte-kebunf",".audio.svelte-kebunf{pointer-events:auto;cursor:pointer;width:100%;height:100%}.children.svelte-kebunf{width:100%;height:100%}")}const Qg=i=>({currentTime:i&8,duration:i&4,playing:i&16}),Xa=i=>({currentTime:typeof i[3]=="number"&&!Number.isNaN(i[3])?i[3]:0,duration:typeof i[2]=="number"&&!Number.isNaN(i[2])?i[2]:void 0,playing:i[4]}),Og=i=>({playing:i&16}),Ya=i=>({playing:i[4]});function Rg(i){let t,e,n,o,s,r,a;const l=i[12].audioIcon,c=Xe(l,i,i[11],Ya),u=i[12].currentTime,d=Xe(u,i,i[11],Xa),f=i[12].default,h=Xe(f,i,i[11],null);return{c(){t=B("div"),e=B("div"),c&&c.c(),n=ee(),d&&d.c(),o=ee(),h&&h.c(),b(e,"class","children svelte-kebunf"),b(e,"style",i[1]),b(t,"class","audio svelte-kebunf"),b(t,"style",i[0])},m(p,g){T(p,t,g),j(t,e),c&&c.m(e,null),j(e,n),d&&d.m(e,null),j(e,o),h&&h.m(e,null),s=!0,r||(a=Me(t,"click",Zo(i[5])),r=!0)},p(p,[g]){c&&c.p&&(!s||g&2064)&&Ue(c,l,p,p[11],s?Ye(l,p[11],g,Og):Je(p[11]),Ya),d&&d.p&&(!s||g&2076)&&Ue(d,u,p,p[11],s?Ye(u,p[11],g,Qg):Je(p[11]),Xa),h&&h.p&&(!s||g&2048)&&Ue(h,f,p,p[11],s?Ye(f,p[11],g,null):Je(p[11]),null),(!s||g&2)&&b(e,"style",p[1]),(!s||g&1)&&b(t,"style",p[0])},i(p){s||(k(c,p),k(d,p),k(h,p),s=!0)},o(p){S(c,p),S(d,p),S(h,p),s=!1},d(p){p&&M(t),c&&c.d(p),d&&d.d(p),h&&h.d(p),r=!1,a()}}}function Fg(i,t,e){let n,{$$slots:o={},$$scope:s}=t,{url:r}=t,{paused:a=!0}=t,{style:l=""}=t,{slotWrapperStyle:c=""}=t,{hooksInfo:u}=t;const d=dt("hooks"),f=dt("mediaStore");let h,p=!0,g=null,A=null;function v(){e(9,h.onplay=y=>{d.emit("playStateChange",G({event:y,state:"playing",mediaInstance:h},u)),e(10,p=!1)},h),e(9,h.onpause=y=>{d.emit("playStateChange",G({event:y,state:"paused",mediaInstance:h},u)),e(10,p=!0)},h),e(9,h.onended=y=>{e(10,p=!0)},h),e(9,h.onloadedmetadata=y=>{e(2,g=h.duration)},h),e(9,h.ontimeupdate=y=>{e(3,A=h.currentTime)},h)}f.subscribe(({currentMediaElement:y})=>{y!==h&&(h==null||h.pause())});function w(y){!h||(d.emit("click",G({event:y,target:"AudioTagPlayIcon",audioInstance:h},u)),f.set({currentMediaElement:h}),h.paused?h.play():h.pause())}return i.$$set=y=>{"url"in y&&e(6,r=y.url),"paused"in y&&e(7,a=y.paused),"style"in y&&e(0,l=y.style),"slotWrapperStyle"in y&&e(1,c=y.slotWrapperStyle),"hooksInfo"in y&&e(8,u=y.hooksInfo),"$$scope"in y&&e(11,s=y.$$scope)},i.$$.update=()=>{i.$$.dirty&64&&(e(9,h=new Audio(r)),Tg(r).then(y=>{e(2,g=y)}),v()),i.$$.dirty&640&&(a||h==null||h.pause()),i.$$.dirty&1152&&e(4,n=!a&&!p)},[l,c,g,A,n,w,r,a,u,h,p,s,o]}class Ua extends se{constructor(t){super(),oe(this,t,Fg,Rg,ie,{url:6,paused:7,style:0,slotWrapperStyle:1,hooksInfo:8},jg)}}function Gg(i){le(i,"svelte-srt2pi",".audio-icon__wrapper.svelte-srt2pi.svelte-srt2pi{display:inline-block}.audio-icon.svelte-srt2pi.svelte-srt2pi{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:100%;border-radius:50%;background-color:rgba(255, 255, 255, 0.8)}.audio-icon.svelte-srt2pi .sound-wave__container.svelte-srt2pi{position:absolute;pointer-events:none;width:60%;height:60%}.sound-wave.svelte-srt2pi.svelte-srt2pi{animation-duration:2s;animation-iteration-count:infinite;animation-play-state:paused;transition:opacity 0}.playing.svelte-srt2pi .sound-wave.svelte-srt2pi{animation-play-state:running}.playing.svelte-srt2pi .sound-wave-1.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_1_animation}.playing.svelte-srt2pi .sound-wave-2.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_2_animation}.playing.svelte-srt2pi .sound-wave-3.svelte-srt2pi{animation-name:svelte-srt2pi-sound_wave_3_animation}@keyframes svelte-srt2pi-sound_wave_1_animation{0%,10%{opacity:0}25%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_2_animation{0%,35%{opacity:0}50%,100%{opacity:1}}@keyframes svelte-srt2pi-sound_wave_3_animation{0%,60%{opacity:0}75%,100%{opacity:1}}")}function Ja(i){let t,e;return t=new ot({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Hg(i){let t,e,n,o,s,r=i[1]&&Ja();return{c(){t=B("div"),r&&r.c(),e=ee(),n=B("div"),o=B("div"),o.innerHTML='<svg width="100%" height="100%" viewBox="0 0 128 128"><g transform="rotate(-45 12 64) translate(12 64)" fill="black" stroke="black" fill-opacity="0.6" stroke-opacity="0.6"><path stroke="none" class="sound-wave sound-wave-1 svelte-srt2pi" d="M0,23 A23,23 0 0,0 23,0 L0,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-2 svelte-srt2pi" d="M0,46 A46,46 0 0,0 46,0"></path><path fill="none" stroke-width="15" class="sound-wave sound-wave-3 svelte-srt2pi" d="M0,80 A80,80 0 0,0 80,0"></path></g></svg>',b(o,"class","sound-wave__container svelte-srt2pi"),b(n,"class","audio-icon svelte-srt2pi"),ne(n,"playing",i[0]),b(t,"class","audio-icon__wrapper svelte-srt2pi"),b(t,"style",i[2]),z(t,"width",i[5]),z(t,"height",i[5])},m(a,l){T(a,t,l),r&&r.m(t,null),j(t,e),j(t,n),j(n,o),i[7](o),i[8](t),s=!0},p(a,[l]){a[1]?r?l&2&&k(r,1):(r=Ja(),r.c(),k(r,1),r.m(t,e)):r&&(re(),S(r,1,1,()=>{r=null}),ae()),(!s||l&1)&&ne(n,"playing",a[0]),(!s||l&4)&&b(t,"style",a[2]),l&32&&z(t,"width",a[5]),l&32&&z(t,"height",a[5])},i(a){s||(k(r),s=!0)},o(a){S(r),s=!1},d(a){a&&M(t),r&&r.d(),i[7](null),i[8](null)}}}function Ng(i,t,e){let n,{playing:o}=t,{shadow:s=!1}=t,{style:r=null}=t,{width:a="100%"}=t,l,c;function u(f){Te[f?"unshift":"push"](()=>{c=f,e(4,c)})}function d(f){Te[f?"unshift":"push"](()=>{l=f,e(3,l)})}return i.$$set=f=>{"playing"in f&&e(0,o=f.playing),"shadow"in f&&e(1,s=f.shadow),"style"in f&&e(2,r=f.style),"width"in f&&e(6,a=f.width)},i.$$.update=()=>{i.$$.dirty&64&&e(5,n=typeof a=="number"?Ie(a):a)},[o,s,r,l,c,n,a,u,d]}class Za extends se{constructor(t){super(),oe(this,t,Ng,Hg,ie,{playing:0,shadow:1,style:2,width:6},Gg)}}function Wg(i){le(i,"svelte-1s6gk4a",".audio-tag.svelte-1s6gk4a{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.audio-icon__wrapper.svelte-1s6gk4a{position:relative;vertical-align:top;width:100%;height:100%}.content.svelte-1s6gk4a{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-1s6gk4a{position:relative;width:100%;height:100%}.audio-icon.svelte-1s6gk4a{pointer-events:none;vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.audio.svelte-1s6gk4a{position:relative;width:100%;height:100%}")}function qa(i){var v,w;let t,e,n,o,s,r,a,l,c,u,d,f,h,p,g;e=new ot({props:{visible:i[5],left:i[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}});let A=i[5]&&Ka(i);return c=new sa({props:{visible:i[5],textUnfolded:i[1],content:i[4]}}),f=new no({props:{unfolded:i[5],length:150,outDelay:i[3]+20*Math.min((w=(v=i[4])==null?void 0:v.length)!=null?w:10,15),useLinearColor:!0}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=B("div"),r=B("div"),A&&A.c(),a=ee(),l=B("div"),te(c.$$.fragment),d=ee(),te(f.$$.fragment),b(r,"class","audio-icon svelte-1s6gk4a"),ze(()=>i[7].call(l)),z(l,"display","inline-block"),b(s,"class","wrapper svelte-1s6gk4a"),b(o,"class","content svelte-1s6gk4a"),b(t,"class","audio-tag svelte-1s6gk4a"),ne(t,"unfolded",i[5])},m(y,E){T(y,t,E),K(e,t,null),j(t,n),j(t,o),j(o,s),j(s,r),A&&A.m(r,null),j(s,a),j(s,l),K(c,l,null),u=vt(l,i[7].bind(l)),j(t,d),K(f,t,null),h=!0,p||(g=Me(l,"click",i[6]),p=!0)},p(y,E){var D,V;const I={};E&32&&(I.visible=y[5]),E&4&&(I.left=y[2]/2+"px"),e.$set(I),y[5]?A?(A.p(y,E),E&32&&k(A,1)):(A=Ka(y),A.c(),k(A,1),A.m(r,null)):A&&(re(),S(A,1,1,()=>{A=null}),ae());const C={};E&32&&(C.visible=y[5]),E&2&&(C.textUnfolded=y[1]),E&16&&(C.content=y[4]),c.$set(C);const L={};E&32&&(L.unfolded=y[5]),E&24&&(L.outDelay=y[3]+20*Math.min((V=(D=y[4])==null?void 0:D.length)!=null?V:10,15)),f.$set(L),(!h||E&32)&&ne(t,"unfolded",y[5])},i(y){h||(k(e.$$.fragment,y),k(A),k(c.$$.fragment,y),k(f.$$.fragment,y),h=!0)},o(y){S(e.$$.fragment,y),S(A),S(c.$$.fragment,y),S(f.$$.fragment,y),h=!1},d(y){y&&M(t),$(e),A&&A.d(),$(c),u(),$(f),p=!1,g()}}}function Ka(i){let t,e,n,o,s,r,a;return e=new ot({props:{center:!0,blurRadius:15,spreadRadius:6}}),o=new Ua({props:{paused:!i[5],url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},$$slots:{audioIcon:[_g,({playing:l})=>({8:l}),({playing:l})=>l?256:0]},$$scope:{ctx:i}}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),te(o.$$.fragment),b(t,"class","audio svelte-1s6gk4a")},m(l,c){T(l,t,c),K(e,t,null),j(t,n),K(o,t,null),a=!0},p(l,c){i=l;const u={};c&32&&(u.paused=!i[5]),c&1&&(u.url=i[0].data.audioUrl),c&1&&(u.hooksInfo={tag:i[0]}),c&768&&(u.$$scope={dirty:c,ctx:i}),o.$set(u)},i(l){a||(k(e.$$.fragment,l),k(o.$$.fragment,l),l&&ze(()=>{r&&r.end(1),s=Tt(t,Vt,{duration:1e3,delay:0,easing:Kt}),s.start()}),a=!0)},o(l){var c,u;S(e.$$.fragment,l),S(o.$$.fragment,l),s&&s.invalidate(),l&&(r=qt(t,Vt,{duration:1e3,delay:20*Math.min((u=(c=i[4])==null?void 0:c.length)!=null?u:10,15),easing:Kt})),a=!1},d(l){l&&M(t),$(e),$(o),l&&r&&r.end()}}}function _g(i){let t,e,n;return e=new Za({props:{playing:i[8]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"slot","audioIcon"),b(t,"class","audio-icon__wrapper svelte-1s6gk4a")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&256&&(r.playing=o[8]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function Xg(i){let t,e,n=i[0].state&&qa(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=qa(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function Yg(i,t,e){let n,o,s,{tag:r}=t,a=!1,l;function c(){e(1,a=!a)}function u(){l=this.clientWidth,e(2,l)}return i.$$set=d=>{"tag"in d&&e(0,r=d.tag)},i.$$.update=()=>{var d,f,h;i.$$.dirty&1&&e(5,n=!!((d=r.state)!=null&&d.unfolded)),i.$$.dirty&1&&e(4,o=(h=(f=r.data.title)!=null?f:r.data.text)!=null?h:""),i.$$.dirty&2&&e(3,s=a?450:0)},[r,a,l,s,o,n,c,u]}class Ug extends se{constructor(t){super(),oe(this,t,Yg,Xg,ie,{tag:0},Wg)}}function $a(i){const t=Math.floor(i/60),e=Math.floor(i%60),n=e<10?`0${e}`:e;return`${t}'${n}''`}function Jg(i){const t=document.createElement("div");t.style.color=i,document.body.appendChild(t);const e=window.getComputedStyle(t).color;document.body.removeChild(t);const n=(()=>e.search("rgba")===-1?e.replace("rgb","rgba").replace(")",", 1)"):e)(),o=n.replace("rgba","").replace("(","").replace(")","").split(",").map(s=>Number(s.trim()));return{rgba:n,r:o[0],g:o[1],b:o[2],a:o[3]}}function Zg(i){le(i,"svelte-1fezrt1",".audio-tag__wrapper.svelte-1fezrt1{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.audio-tag.svelte-1fezrt1{position:relative;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;padding:0.1875rem;padding-right:0.625rem;border-radius:624999.9375rem;border:0.03125rem solid rgba(255, 255, 255, 0.2)}.currentTime.svelte-1fezrt1{font-family:TG-TYPE, PingFangSC, Segoe UI, Rototo, sans-serif;margin-left:0.25rem}.text.svelte-1fezrt1{font-weight:bold;font-size:0.75rem;margin-left:0.125rem}.audio-icon__wrapper.svelte-1fezrt1{position:relative;vertical-align:top;pointer-events:none;width:1.375rem;height:1.375rem}")}function el(i){let t,e,n,o;return n=new Ua({props:{paused:!i[0].state.visible,url:i[0].data.audioUrl,hooksInfo:{tag:i[0]},style:"width: max-content; height: max-content;",slotWrapperStyle:"display: flex; align-items: center; justify-content: center;",$$slots:{currentTime:[e0,({duration:s,currentTime:r,playing:a})=>({4:s,5:r,6:a}),({duration:s,currentTime:r,playing:a})=>(s?16:0)|(r?32:0)|(a?64:0)],audioIcon:[$g,({playing:s})=>({6:s}),({playing:s})=>s?64:0],default:[Kg]},$$scope:{ctx:i}}}),{c(){t=B("div"),e=B("div"),te(n.$$.fragment),b(e,"class","audio-tag svelte-1fezrt1"),z(e,"background-color",i[1]),z(e,"color",i[2]),b(t,"class","audio-tag__wrapper svelte-1fezrt1")},m(s,r){T(s,t,r),j(t,e),K(n,e,null),o=!0},p(s,r){const a={};r&1&&(a.paused=!s[0].state.visible),r&1&&(a.url=s[0].data.audioUrl),r&1&&(a.hooksInfo={tag:s[0]}),r&248&&(a.$$scope={dirty:r,ctx:s}),n.$set(a),r&2&&z(e,"background-color",s[1]),r&4&&z(e,"color",s[2])},i(s){o||(k(n.$$.fragment,s),o=!0)},o(s){S(n.$$.fragment,s),o=!1},d(s){s&&M(t),$(n)}}}function qg(i){let t;return{c(){t=Pe(i[3])},m(e,n){T(e,t,n)},p(e,n){n&8&&ke(t,e[3])},d(e){e&&M(t)}}}function Kg(i){let t,e,n;return e=new oo({props:{maxWidth:72,$$slots:{default:[qg]},$$scope:{ctx:i}}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","text svelte-1fezrt1")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&136&&(r.$$scope={dirty:s,ctx:o}),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function $g(i){let t,e,n;return e=new Za({props:{playing:i[6]}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"slot","audioIcon"),b(t,"class","audio-icon__wrapper svelte-1fezrt1")},m(o,s){T(o,t,s),K(e,t,null),n=!0},p(o,s){const r={};s&64&&(r.playing=o[6]),e.$set(r)},i(o){n||(k(e.$$.fragment,o),n=!0)},o(o){S(e.$$.fragment,o),n=!1},d(o){o&&M(t),$(e)}}}function tl(i){var n;let t=$a(xe(i[6]?i[5]:(n=i[4])!=null?n:0))+"",e;return{c(){e=Pe(t)},m(o,s){T(o,e,s)},p(o,s){var r;s&112&&t!==(t=$a(xe(o[6]?o[5]:(r=o[4])!=null?r:0))+"")&&ke(e,t)},d(o){o&&M(e)}}}function e0(i){let t,e=typeof(i[6]?i[5]:i[4])=="number"&&tl(i);return{c(){t=B("div"),e&&e.c(),b(t,"slot","currentTime"),b(t,"class","currentTime svelte-1fezrt1")},m(n,o){T(n,t,o),e&&e.m(t,null)},p(n,o){typeof(n[6]?n[5]:n[4])=="number"?e?e.p(n,o):(e=tl(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},d(n){n&&M(t),e&&e.d()}}}function t0(i){let t,e,n=i[0].state&&el(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state?n?(n.p(o,s),s&1&&k(n,1)):(n=el(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function n0(i,t,e){let n,o,s,{tag:r}=t;return i.$$set=a=>{"tag"in a&&e(0,r=a.tag)},i.$$.update=()=>{var a,l;i.$$.dirty&1&&e(3,n=(l=(a=r.data.title)!=null?a:r.data.text)!=null?l:""),i.$$.dirty&1&&e(1,o=(()=>{var c;return r.data.backgroundColor==="dark"?"rgba(0, 0, 0, 0.3)":r.data.backgroundColor==="light"?"rgba(255, 255, 255, 0.3)":(c=r.data.backgroundColor)!=null?c:"rgba(0, 0, 0, 0.3)"})()),i.$$.dirty&2&&e(2,s=(()=>{const{r:c,g:u,b:d}=Jg(o);return(c*299+u*587+d*114)/1e3>=128?"rgba(0, 0, 0, 0.6)":"white"})())},[r,o,s,n]}class i0 extends se{constructor(t){super(),oe(this,t,n0,t0,ie,{tag:0},Zg)}}function o0(i){let t,e;return t=new i0({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function s0(i){let t,e;return t=new Ug({props:{tag:i[0]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&1&&(s.tag=n[0]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function r0(i){let t,e,n,o;const s=[s0,o0],r=[];function a(l,c){return l[1]==="line"?0:l[1]==="plane"?1:-1}return~(t=a(i))&&(e=r[t]=s[t](i)),{c(){e&&e.c(),n=me()},m(l,c){~t&&r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?~t&&r[t].p(l,c):(e&&(re(),S(r[u],1,1,()=>{r[u]=null}),ae()),~t?(e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n)):e=null)},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){~t&&r[t].d(l),l&&M(n)}}}function a0(i,t,e){let n,{tag:o}=t;return i.$$set=s=>{"tag"in s&&e(0,o=s.tag)},i.$$.update=()=>{var s;i.$$.dirty&1&&e(1,n=(s=o.data.appearance)!=null?s:"line")},[o,n]}class l0 extends se{constructor(t){super(),oe(this,t,a0,r0,ie,{tag:0})}}function c0(i){le(i,"svelte-10cw0el",".media-wrapper.svelte-10cw0el{position:absolute;width:100%;height:100%}")}function nl(i){var o;let t,e,n;return e=new xa({props:{mediaItemConfig:{canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(o=i[4])!=null?o:"withText",disableVideoIfHavePoster:!1,objectFit:i[2]},unfolded:i[6],mediaData:i[5],enableCarousel:i[1],autoplayConfig:i[3],tag:i[0],inDelay:500,duration:500}}),{c(){t=B("div"),te(e.$$.fragment),b(t,"class","media-wrapper svelte-10cw0el")},m(s,r){T(s,t,r),K(e,t,null),n=!0},p(s,r){var l;const a={};r&20&&(a.mediaItemConfig={canPlay:!0,playButtonSizeIfNeed:"large",playButtonIfNeed:(l=s[4])!=null?l:"withText",disableVideoIfHavePoster:!1,objectFit:s[2]}),r&64&&(a.unfolded=s[6]),r&32&&(a.mediaData=s[5]),r&2&&(a.enableCarousel=s[1]),r&8&&(a.autoplayConfig=s[3]),r&1&&(a.tag=s[0]),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){S(e.$$.fragment,s),n=!1},d(s){s&&M(t),$(e)}}}function u0(i){let t,e,n=i[0].state&&i[5]&&nl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[0].state&&o[5]?n?(n.p(o,s),s&33&&k(n,1)):(n=nl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function d0(i,t,e){let n,o,s,r,a,l,{tag:c}=t;return i.$$set=u=>{"tag"in u&&e(0,c=u.tag)},i.$$.update=()=>{var u,d;i.$$.dirty&1&&e(6,n=c.state?c.state.unfolded:!1),i.$$.dirty&1&&e(5,o=c.data.mediaData),i.$$.dirty&1&&e(1,s=c.data.enableCarousel),i.$$.dirty&1&&e(4,r=c.data.playIcon),i.$$.dirty&3&&e(3,a=(u=c.data.autoplayConfig)!=null?u:{autoplay:s!=null?s:!0,autoplayVideo:!0}),i.$$.dirty&1&&e(2,l=(d=c.data.objectFit)!=null?d:(()=>c.data.adaptationMode==="stretch"?"cover":c.data.adaptationMode==="proportional"?"contain":void 0)())},[c,s,l,a,r,o,n]}class f0 extends se{constructor(t){super(),oe(this,t,d0,u0,ie,{tag:0},c0)}}function h0(i){return Y(this,null,function*(){return new Promise((t,e)=>{if(!i){e(Error("url is empty"));return}const n=new Image;n.src=i,n.onload=()=>t({width:n.width,height:n.height}),n.onerror=e})})}function il(i){return Y(this,null,function*(){const{steps:t,url:e,ratio:n=3,fps:o=24}=i;if(!t)throw new Error("KeyframeIcon requires steps");const{width:s,height:r}=yield h0(e),a=s/n,l=r/n,c=a/t,u=l,d=1/o*t+"s",f=a/t-a;return{url:e,keyframesWidth:a,keyframesHeight:l,wrapperWidth:c,wrapperHeight:u,steps:t,duration:d,offsetX:f,offsetY:0}})}function m0(i){le(i,"svelte-mhs8j5","@keyframes svelte-mhs8j5-sprites-animation{0%{background-position:0 0}100%{background-position:var(--keyframe_offset_x) 0}}.icon-image.svelte-mhs8j5{display:block;width:100%}.icon-keyframe-container.svelte-mhs8j5{overflow:hidden}.icon-keyframe-wrapper.svelte-mhs8j5{transform-origin:0 0}.icon-keyframe.svelte-mhs8j5{background-repeat:no-repeat;animation-direction:normal;animation-iteration-count:infinite;animation-name:svelte-mhs8j5-sprites-animation}")}function ol(i){i[4]=i[12].url,i[5]=i[12].keyframesWidth,i[6]=i[12].keyframesHeight,i[7]=i[12].wrapperWidth,i[8]=i[12].wrapperHeight,i[9]=i[12].steps,i[10]=i[12].duration,i[11]=i[12].offsetX}function sl(i){let t,e,n,o=i[2]&&rl();function s(l,c){return l[3]?g0:p0}let r=s(i),a=r(i);return{c(){t=B("div"),o&&o.c(),e=ee(),a.c(),b(t,"class","icon"),z(t,"width",typeof i[0]=="number"?Ie(i[0]):i[0])},m(l,c){T(l,t,c),o&&o.m(t,null),j(t,e),a.m(t,null),n=!0},p(l,c){l[2]?o?c&4&&k(o,1):(o=rl(),o.c(),k(o,1),o.m(t,e)):o&&(re(),S(o,1,1,()=>{o=null}),ae()),r===(r=s(l))&&a?a.p(l,c):(a.d(1),a=r(l),a&&(a.c(),a.m(t,null))),c&1&&z(t,"width",typeof l[0]=="number"?Ie(l[0]):l[0])},i(l){n||(k(o),n=!0)},o(l){S(o),n=!1},d(l){l&&M(t),o&&o.d(),a.d()}}}function rl(i){let t,e;return t=new ot({props:{center:!0,blurRadius:12,spreadRadius:5}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function p0(i){let t,e;return{c(){t=B("img"),b(t,"class","icon-image svelte-mhs8j5"),We(t.src,e=i[1].url)||b(t,"src",e),b(t,"alt","icon")},m(n,o){T(n,t,o)},p(n,o){o&2&&!We(t.src,e=n[1].url)&&b(t,"src",e)},d(n){n&&M(t)}}}function g0(i){let t,e,n={ctx:i,current:null,token:null,hasCatch:!1,pending:b0,then:v0,catch:A0,value:12};return os(e=il(i[1]),n),{c(){t=me(),n.block.c()},m(o,s){T(o,t,s),n.block.m(o,n.anchor=s),n.mount=()=>t.parentNode,n.anchor=t},p(o,s){i=o,n.ctx=i,s&2&&e!==(e=il(i[1]))&&os(e,n)||dc(n,i,s)},d(o){o&&M(t),n.block.d(o),n.token=null,n=null}}}function A0(i){return{c:J,m:J,p:J,d:J}}function v0(i){ol(i);let t,e,n,o=`url(${i[4]})`,s=`steps(${i[9]-1})`;return{c(){t=B("div"),e=B("div"),n=B("div"),b(n,"class","icon-keyframe svelte-mhs8j5"),z(n,"width",Ie(i[5])),z(n,"height",Ie(i[6])),z(n,"background-image",o),z(n,"animation-duration",i[10]),z(n,"animation-timing-function",s),z(n,"animation-delay",0),z(n,"background-size","100% 100%"),z(n,"--keyframe_offset_x",Ie(i[11])),b(e,"class","icon-keyframe-wrapper svelte-mhs8j5"),z(e,"transform",typeof i[0]=="number"?`scale(${i[0]/i[7]})`:void 0),b(t,"class","icon-keyframe-container svelte-mhs8j5"),z(t,"width",typeof i[0]=="number"?Ie(i[0]):Ie(i[7])),z(t,"height",typeof i[0]=="number"?Ie(i[8]*(i[0]/i[7])):Ie(i[8]))},m(r,a){T(r,t,a),j(t,e),j(e,n)},p(r,a){ol(r),a&2&&z(n,"width",Ie(r[5])),a&2&&z(n,"height",Ie(r[6])),a&2&&o!==(o=`url(${r[4]})`)&&z(n,"background-image",o),a&2&&z(n,"animation-duration",r[10]),a&2&&s!==(s=`steps(${r[9]-1})`)&&z(n,"animation-timing-function",s),a&2&&z(n,"--keyframe_offset_x",Ie(r[11])),a&3&&z(e,"transform",typeof r[0]=="number"?`scale(${r[0]/r[7]})`:void 0),a&3&&z(t,"width",typeof r[0]=="number"?Ie(r[0]):Ie(r[7])),a&3&&z(t,"height",typeof r[0]=="number"?Ie(r[8]*(r[0]/r[7])):Ie(r[8]))},d(r){r&&M(t)}}}function b0(i){return{c:J,m:J,p:J,d:J}}function y0(i){let t,e,n=i[1]&&sl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[1]?n?(n.p(o,s),s&2&&k(n,1)):(n=sl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function w0(i,t,e){let n,{width:o=null}=t,{icon:s=null}=t,{shadow:r=!1}=t;return i.$$set=a=>{"width"in a&&e(0,o=a.width),"icon"in a&&e(1,s=a.icon),"shadow"in a&&e(2,r=a.shadow)},i.$$.update=()=>{i.$$.dirty&2&&e(3,n=(s==null?void 0:s.steps)>=2)},[o,s,r,n]}class al extends se{constructor(t){super(),oe(this,t,w0,y0,ie,{width:0,icon:1,shadow:2},m0)}}function C0(i){le(i,"svelte-1lmyni6",".wrapper.svelte-1lmyni6{font-weight:600;cursor:pointer;width:-moz-max-content;width:max-content;height:-moz-max-content;height:max-content;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);display:flex;align-items:center;justify-content:center;flex-direction:column;pointer-events:auto}.text-wrapper.svelte-1lmyni6{position:relative;display:flex;align-items:center;justify-content:center}.text.svelte-1lmyni6{position:absolute;top:0;font-size:0.875rem;color:#ffffff;letter-spacing:0;text-align:center;max-width:8.75rem;width:-moz-max-content;width:max-content;word-break:break-all;line-height:1.125rem;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function ll(i){let t,e,n,o,s,r;return e=new ot({props:{outDelay:0,inDelay:0,center:!0,width:"80%",blurRadius:40,spreadRadius:16,opacity:.08}}),{c(){t=B("div"),te(e.$$.fragment),n=ee(),o=B("div"),s=Pe(i[1]),b(o,"class","text svelte-1lmyni6"),b(t,"class","text-wrapper svelte-1lmyni6")},m(a,l){T(a,t,l),K(e,t,null),j(t,n),j(t,o),j(o,s),r=!0},p(a,l){(!r||l&2)&&ke(s,a[1])},i(a){r||(k(e.$$.fragment,a),r=!0)},o(a){S(e.$$.fragment,a),r=!1},d(a){a&&M(t),$(e)}}}function P0(i){let t,e,n,o;e=new al({props:{icon:i[0]}});let s=i[1]&&ll(i);return{c(){t=B("div"),te(e.$$.fragment),n=ee(),s&&s.c(),b(t,"class","wrapper svelte-1lmyni6")},m(r,a){T(r,t,a),K(e,t,null),j(t,n),s&&s.m(t,null),o=!0},p(r,[a]){const l={};a&1&&(l.icon=r[0]),e.$set(l),r[1]?s?(s.p(r,a),a&2&&k(s,1)):(s=ll(r),s.c(),k(s,1),s.m(t,null)):s&&(re(),S(s,1,1,()=>{s=null}),ae())},i(r){o||(k(e.$$.fragment,r),k(s),o=!0)},o(r){S(e.$$.fragment,r),S(s),o=!1},d(r){r&&M(t),$(e),s&&s.d()}}}function I0(i,t,e){let n,o,s,r,a,l,c,{tag:u}=t;return i.$$set=d=>{"tag"in d&&e(2,u=d.tag)},i.$$.update=()=>{var d,f;i.$$.dirty&4&&e(1,n=(d=u.data.title)!=null?d:u.data.text),i.$$.dirty&4&&e(7,o=(f=u.data.icon)!=null?f:u.style.point),i.$$.dirty&128&&e(6,s=o.url),i.$$.dirty&128&&e(5,r=o.steps),i.$$.dirty&128&&e(4,a=o.fps),i.$$.dirty&128&&e(3,l=o.ratio),i.$$.dirty&120&&e(0,c={url:s,steps:r,fps:a,ratio:l})},[c,n,u,l,a,r,s,o]}class E0 extends se{constructor(t){super(),oe(this,t,I0,P0,ie,{tag:2},C0)}}function k0(i){le(i,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function cl(i){let t,e=i[0].element+"",n;return{c(){t=new jn(!1),n=me(),t.a=n},m(o,s){t.m(e,o,s),T(o,n,s)},p(o,s){s&1&&e!==(e=o[0].element+"")&&t.p(e)},d(o){o&&M(n),o&&t.d()}}}function x0(i){let t,e=typeof i[0].element=="string"&&cl(i);return{c(){t=B("div"),e&&e.c(),b(t,"class","customElement__container svelte-kzl2aj")},m(n,o){T(n,t,o),e&&e.m(t,null),i[2](t)},p(n,[o]){typeof n[0].element=="string"?e?e.p(n,o):(e=cl(n),e.c(),e.m(t,null)):e&&(e.d(1),e=null)},i:J,o:J,d(n){n&&M(t),e&&e.d(),i[2](null)}}}function D0(i,t,e){let{tag:n}=t,o,s;Ke(()=>{if(o){if(n.element instanceof Element){const a=n.element;o.appendChild(a),s=()=>o==null?void 0:o.removeChild(a)}else if(typeof n.element=="function"){const a=n.element;s=a(o)}}}),yt(()=>{s==null||s()});function r(a){Te[a?"unshift":"push"](()=>{o=a,e(1,o)})}return i.$$set=a=>{"tag"in a&&e(0,n=a.tag)},[n,o,r]}class L0 extends se{constructor(t){super(),oe(this,t,D0,x0,ie,{tag:0},k0)}}function S0(i){le(i,"svelte-ofx2uu",'@font-face{font-family:"TG-TYPE";font-style:normal;font-weight:400;src:local("TG-TYPE-Bold"), url(data:application/font-woff2;charset=utf-8;base64,T1RUTwAKAIAAAwAgQ0ZGINFD4CEAAAaQAAAHC0dTVUIAAQAAAAANnAAAAApPUy8yaB5pEwAAAjQAAABgY21hcEItjGUAAAT0AAABfGhlYWQS1WWOAAAAtAAAADZoaGVhBfMBxwAAAhAAAAAkaG10eJ9gBO8AAADsAAABJG1heHAASVAAAAAArAAAAAZuYW1lqczkZQAAApQAAAJecG9zdP+4ADIAAAZwAAAAIAAAUAAASQAAAAEAAAABAADkeHeyXw889QADA+gAAAAA2NoRKwAAAADY2hErACn/OAHgAyAAAQADAAIAAAAAAAAB9ABdAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACWAAAAlgAAAJYAAACCAA7AcwAdwIIADMCCAA0AhwAMwISADkCCAAuAfQANAH+ACsB/gApAggANAEeAFABHgBQAR4AUAIIADQCCAAuAR4AUAEeAFABfAAxAAEAAAPo/zgAAAIcACkAKQHgA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Hw6i96Tz92/0AbTz93DzA/hp+HkVsIGveKwezmNFtUAbZGeBeGofSmNiRT8aZJVnnmseSrHPYtoboAb7EvukBfcHBvdL+CEFmaySqaQa+9gWxry+yJ6dhoGcHq12oWZmGk5YW1BMXLnKHg4gCiEK+11L91IlCvdiyhWtb6hpJgoeJAoOIQogCqz3pe/3b/UBufX3bfQD+G74dxWyga94rB7NZEW0PhtlaIF4ah9KY2FFPxo7tkTPZh6MjIqKjB+TiJCIjYoIjgaCoKGHoRuanY6QoB+IgfsB+6QF9wcG9y/4IgWYppGnqhr7a/sCFVBbvMjHu7zGyLxbTk5aWk4fDvtd+AojCoz7jBUmCh8kCq1vqGkeDvtdi/cS94wjCvwKBCIKDiD3ru8BvPeuA7z4EhUn967vBw4eoDf/DAmLDAv47BT4exWcEwAHAQFBXW97ipCarPcv8+7yAfdl8gP4aPf6FfIjB+r3gwUiBi77gwWHBjH3gwUkBuP7gwUnJPcxKPsxI/cx+y/y9y/3MPP7MO4GDvtdi/cSJQr3JBZkcqOzsKSksrCkcWdlcnFmHw6up6eurm+naGhvb2hop2+uHwv3EiUK9yP4ChUiCgt3SgWxBrnmBZGVj5eZGgsB2/cSAwtobm5paqBzqoYLAAABAAAAAAAAAAAAAA==) format("woff2")}*{-webkit-tap-highlight-color:transparent}.content__container.svelte-ofx2uu{position:relative;left:50%;top:50%;transform:translate(-50%, -50%);font-family:PingFangSC, Segoe UI, Rototo, sans-serif}.content__container.withAnimation.svelte-ofx2uu{transition:opacity 0.3s linear}.content__container.unClickable.svelte-ofx2uu{pointer-events:none !important}.content__container.unClickable.svelte-ofx2uu *{pointer-events:none !important}.content__wrapper.svelte-ofx2uu{pointer-events:none;width:100%;height:100%}.content__container.hide.svelte-ofx2uu{opacity:0;pointer-events:none}.content__container.hide.svelte-ofx2uu *{pointer-events:none !important}.content__container.disable.svelte-ofx2uu{display:none}.content.svelte-ofx2uu{position:relative;width:100%;height:100%;font-size:0.75rem;line-height:1.125rem;color:#fff}.content.svelte-ofx2uu:not(.unfolded){pointer-events:none}.content.svelte-ofx2uu:not(.unfolded) *{pointer-events:none !important}.content.unfolded.svelte-ofx2uu{pointer-events:auto}')}function z0(i){let t,e;return{c(){t=B("div"),b(t,"data-info","tag content is keep folded"),b(t,"data-id",e=i[1].id)},m(n,o){T(n,t,o)},p(n,o){o&2&&e!==(e=n[1].id)&&b(t,"data-id",e)},i:J,o:J,d(n){n&&M(t)}}}function M0(i){let t,e,n,o,s,r,a,l,c;const u=[R0,O0,Q0,j0,V0,B0,T0],d=[];function f(h,p){return h[1].element?0:h[1].contentType==="Text"?1:h[1].contentType==="ImageText"||h[1].contentType==="Image"||h[1].contentType==="Video"?2:h[1].contentType==="Audio"?3:h[1].contentType==="Marketing"?4:h[1].contentType==="Link"||h[1].contentType==="VRLink"||h[1].contentType==="PanoLink"?5:h[1].contentType==="MediaPlane"?6:-1}return~(o=f(i))&&(s=d[o]=u[o](i)),{c(){var h,p,g;t=B("div"),e=B("div"),n=B("div"),s&&s.c(),b(n,"class","content svelte-ofx2uu"),ne(n,"unfolded",(h=i[1].state)==null?void 0:h.unfolded),b(e,"class","content__wrapper svelte-ofx2uu"),b(t,"class","content__container svelte-ofx2uu"),b(t,"data-id",r=i[1].id),ne(t,"disable",i[1].enabled===!1),ne(t,"hide",!i[3].visible||!i[3].enabled||!i[4].visible||!((p=i[1].state)!=null&&p.visible)||((g=i[1].temporaryState)==null?void 0:g.visible)===!1),ne(t,"withAnimation",i[0]),ne(t,"unClickable",i[1].clickable===!1),z(t,"width",i[1].stickType==="Plane"?"100%":0),z(t,"height",i[1].stickType==="Plane"?"100%":0)},m(h,p){T(h,t,p),j(t,e),j(e,n),~o&&d[o].m(n,null),a=!0,l||(c=Me(t,"click",Zo(i[12])),l=!0)},p(h,p){var A,v,w;let g=o;o=f(h),o===g?~o&&d[o].p(h,p):(s&&(re(),S(d[g],1,1,()=>{d[g]=null}),ae()),~o?(s=d[o],s?s.p(h,p):(s=d[o]=u[o](h),s.c()),k(s,1),s.m(n,null)):s=null),(!a||p&2)&&ne(n,"unfolded",(A=h[1].state)==null?void 0:A.unfolded),(!a||p&2&&r!==(r=h[1].id))&&b(t,"data-id",r),(!a||p&2)&&ne(t,"disable",h[1].enabled===!1),(!a||p&26)&&ne(t,"hide",!h[3].visible||!h[3].enabled||!h[4].visible||!((v=h[1].state)!=null&&v.visible)||((w=h[1].temporaryState)==null?void 0:w.visible)===!1),(!a||p&1)&&ne(t,"withAnimation",h[0]),(!a||p&2)&&ne(t,"unClickable",h[1].clickable===!1),p&2&&z(t,"width",h[1].stickType==="Plane"?"100%":0),p&2&&z(t,"height",h[1].stickType==="Plane"?"100%":0)},i(h){a||(k(s),a=!0)},o(h){S(s),a=!1},d(h){h&&M(t),~o&&d[o].d(),l=!1,c()}}}function T0(i){let t,e;return t=new f0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function B0(i){let t,e;return t=new E0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function V0(i){let t,e;return t=new zg({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function j0(i){let t,e;return t=new l0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function Q0(i){let t,e;return t=new mg({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function O0(i){let t,e;return t=new xp({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function R0(i){let t,e;return t=new L0({props:{tag:xe(i[1])}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=xe(n[1])),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function F0(i){let t,e,n,o;const s=[M0,z0],r=[];function a(l,c){return l[5]?0:1}return t=a(i),e=r[t]=s[t](i),{c(){e.c(),n=me()},m(l,c){r[t].m(l,c),T(l,n,c),o=!0},p(l,[c]){let u=t;t=a(l),t===u?r[t].p(l,c):(re(),S(r[u],1,1,()=>{r[u]=null}),ae(),e=r[t],e?e.p(l,c):(e=r[t]=s[t](l),e.c()),k(e,1),e.m(n.parentNode,n))},i(l){o||(k(e),o=!0)},o(l){S(e),o=!1},d(l){r[t].d(l),l&&M(n)}}}function G0(i,t,e){let n,o,s,r,a,{withAnimation:l=!1}=t,{tag:c}=t,{hooks:u}=t,{state:d}=t,{mediaStore:f}=t,{temporaryState:h}=t;Rn("hooks",u),Rn("mediaStore",f);let p,g;function A(w){w?u.emit("exposure",{id:r,type:"start"}):u.emit("exposure",{id:r,type:"end"})}const v=w=>u.emit("click",{event:w,target:"TagContent",tag:c});return i.$$set=w=>{"withAnimation"in w&&e(0,l=w.withAnimation),"tag"in w&&e(1,c=w.tag),"hooks"in w&&e(2,u=w.hooks),"state"in w&&e(3,d=w.state),"mediaStore"in w&&e(6,f=w.mediaStore),"temporaryState"in w&&e(4,h=w.temporaryState)},i.$$.update=()=>{var w,y,E,I,C,L,D,V,W,H,X;i.$$.dirty&2&&e(10,n=(w=c.state)==null?void 0:w.unfolded),i.$$.dirty&2&&e(9,o=(y=c.state)==null?void 0:y.visible),i.$$.dirty&26&&e(11,s=d.visible&&h.visible&&((E=c.state)==null?void 0:E.visible)),i.$$.dirty&2&&(r=c.id),i.$$.dirty&2048&&A(s),i.$$.dirty&1922&&c.hooks&&(n!==void 0&&n!==g&&(e(8,g=n),n?(C=(I=c.hooks).emit)==null||C.call(I,"unfolded"):(D=c==null?void 0:(L=c.hooks).emit)==null||D.call(L,"folded")),o!==void 0&&o!==p&&(e(7,p=o),o?(W=(V=c.hooks).emit)==null||W.call(V,"show"):(X=(H=c.hooks).emit)==null||X.call(H,"hide"))),i.$$.dirty&2&&e(5,a=(()=>!(typeof c.mergedConfig.unfoldedConfig=="object"&&c.mergedConfig.unfoldedConfig.keep==="folded"))())},[l,c,u,d,h,a,f,p,g,o,n,s,v]}class ul extends se{constructor(t){super(),oe(this,t,G0,F0,ie,{withAnimation:0,tag:1,hooks:2,state:3,mediaStore:6,temporaryState:4},S0)}}function H0(i){le(i,"svelte-yex9rb",'@charset "UTF-8";.tag-point-click-helper.svelte-yex9rb.svelte-yex9rb{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-yex9rb.svelte-yex9rb{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-yex9rb.svelte-yex9rb,.tag-unfolded-point.svelte-yex9rb.svelte-yex9rb{transition:all 0.5s}.tag-point-wrapper.svelte-yex9rb .tag-unfolded-point.svelte-yex9rb{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-yex9rb .tag-unfolded-point.svelte-yex9rb:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-yex9rb .tag-unfolded-point.svelte-yex9rb:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-yex9rb .tag-folded-point.svelte-yex9rb{opacity:1;scale:1}.tag-point-wrapper.folded.svelte-yex9rb .tag-unfolded-point.svelte-yex9rb{opacity:0;scale:1}.tag-point-wrapper.unfolded.svelte-yex9rb .tag-folded-point.svelte-yex9rb{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-yex9rb .tag-unfolded-point.svelte-yex9rb{opacity:1;scale:1}')}function N0(i){let t,e,n,o,s,r,a,l,c,u,d,f;return o=new ot({props:{center:!0,blurRadius:15,spreadRadius:5,opacity:.3}}),c=new al({props:{icon:i[2],width:i[1]}}),{c(){t=B("div"),e=ee(),n=B("div"),te(o.$$.fragment),s=ee(),r=B("div"),a=ee(),l=B("div"),te(c.$$.fragment),b(t,"class","tag-point-click-helper svelte-yex9rb"),b(r,"class","tag-unfolded-point svelte-yex9rb"),z(r,"transition-delay",(i[3]?i[5]:0)+"ms"),b(l,"class","tag-folded-point svelte-yex9rb"),z(l,"transition-delay",(i[3]?i[5]:0)+"ms"),b(n,"class","tag-point-wrapper svelte-yex9rb"),ne(n,"unfolded",i[0]),ne(n,"folded",i[3]),z(n,"width",Ie(i[1])),z(n,"height",Ie(i[1]))},m(h,p){T(h,t,p),T(h,e,p),T(h,n,p),K(o,n,null),j(n,s),j(n,r),j(n,a),j(n,l),K(c,l,null),u=!0,d||(f=Me(t,"click",i[4]),d=!0)},p(h,[p]){p&8&&z(r,"transition-delay",(h[3]?h[5]:0)+"ms");const g={};p&4&&(g.icon=h[2]),p&2&&(g.width=h[1]),c.$set(g),p&8&&z(l,"transition-delay",(h[3]?h[5]:0)+"ms"),(!u||p&1)&&ne(n,"unfolded",h[0]),(!u||p&8)&&ne(n,"folded",h[3]),p&2&&z(n,"width",Ie(h[1])),p&2&&z(n,"height",Ie(h[1]))},i(h){u||(k(o.$$.fragment,h),k(c.$$.fragment,h),u=!0)},o(h){S(o.$$.fragment,h),S(c.$$.fragment,h),u=!1},d(h){h&&M(t),h&&M(e),h&&M(n),$(o),$(c),d=!1,f()}}}function W0(i,t,e){let n,o,s,r;const a=dt("hooks");let{tag:l}=t,c,u=!1;const d=()=>{c!==void 0&&clearTimeout(c),u=!0,c=setTimeout(()=>{u=!1},800)},f=p=>{u||a.emit("click",{event:p,target:"TagPoint",tag:l})},h=(()=>l.contentType==="Text"&&l.data.appearance==="plane"?500:800)();return i.$$set=p=>{"tag"in p&&e(6,l=p.tag)},i.$$.update=()=>{var p,g,A,v;i.$$.dirty&64&&e(0,n=(p=l.state)==null?void 0:p.unfolded),i.$$.dirty&1&&e(3,o=!n),i.$$.dirty&64&&e(2,s=(A=(g=l.style)==null?void 0:g.point)!=null&&A.url?(v=l.style)==null?void 0:v.point:{url:ep}),i.$$.dirty&64&&e(1,r=(()=>{var y,E,I;const w=(I=(E=(y=l.style)==null?void 0:y.point)==null?void 0:E.size)!=null?I:"S";return typeof w=="number"?w:w==="S"?18:w==="M"?20:w==="L"?24:w==="XL"?28:18})())},d(),[n,r,s,o,f,h,l]}class _0 extends se{constructor(t){super(),oe(this,t,W0,N0,ie,{tag:6},H0)}}function X0(i){le(i,"svelte-bdubcv",".tag.hide.svelte-bdubcv{opacity:0;pointer-events:none}.tag.disable.svelte-bdubcv{display:none}.tag.withAnimation.svelte-bdubcv{transition:opacity 0.3s linear}.wrapper.svelte-bdubcv{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}")}function Y0(i){let t;return{c(){t=B("div"),b(t,"data-info","tag content is disable")},m(e,n){T(e,t,n)},p:J,i:J,o:J,d(e){e&&M(t)}}}function U0(i){let t,e;return t=new ul({props:{mediaStore:i[2],withAnimation:i[0],tag:xe(i[1]),hooks:i[14],state:i[3],temporaryState:i[4]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&4&&(s.mediaStore=n[2]),o&1&&(s.withAnimation=n[0]),o&2&&(s.tag=xe(n[1])),o&8&&(s.state=n[3]),o&16&&(s.temporaryState=n[4]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function J0(i){let t;return{c(){t=B("div"),b(t,"data-info","tag point is disable")},m(e,n){T(e,t,n)},p:J,i:J,o:J,d(e){e&&M(t)}}}function Z0(i){let t,e;return t=new _0({props:{tag:i[1]}}),{c(){te(t.$$.fragment)},m(n,o){K(t,n,o),e=!0},p(n,o){const s={};o&2&&(s.tag=n[1]),t.$set(s)},i(n){e||(k(t.$$.fragment,n),e=!0)},o(n){S(t.$$.fragment,n),e=!1},d(n){$(t,n)}}}function q0(i){let t,e,n,o,s,r,a,l,c;const u=[U0,Y0],d=[];function f(A,v){return A[12]?0:1}n=f(i),o=d[n]=u[n](i);const h=[Z0,J0],p=[];function g(A,v){return A[13]?0:1}return r=g(i),a=p[r]=h[r](i),{c(){t=B("div"),e=B("div"),o.c(),s=ee(),a.c(),b(e,"class","wrapper svelte-bdubcv"),b(e,"data-tag-unfolded",i[8]),b(e,"data-tag-id",i[11]),b(e,"data-content-type",l=i[1].contentType),z(e,"left",i[7]),z(e,"top",i[6]),z(e,"z-index",i[5]),b(t,"class","tag svelte-bdubcv"),b(t,"data-tag-id",i[11]),ne(t,"disable",i[10]),ne(t,"hide",i[9]),ne(t,"withAnimation",i[0])},m(A,v){T(A,t,v),j(t,e),d[n].m(e,null),j(e,s),p[r].m(e,null),c=!0},p(A,[v]){let w=n;n=f(A),n===w?d[n].p(A,v):(re(),S(d[w],1,1,()=>{d[w]=null}),ae(),o=d[n],o?o.p(A,v):(o=d[n]=u[n](A),o.c()),k(o,1),o.m(e,s));let y=r;r=g(A),r===y?p[r].p(A,v):(re(),S(p[y],1,1,()=>{p[y]=null}),ae(),a=p[r],a?a.p(A,v):(a=p[r]=h[r](A),a.c()),k(a,1),a.m(e,null)),(!c||v&256)&&b(e,"data-tag-unfolded",A[8]),(!c||v&2048)&&b(e,"data-tag-id",A[11]),(!c||v&2&&l!==(l=A[1].contentType))&&b(e,"data-content-type",l),v&128&&z(e,"left",A[7]),v&64&&z(e,"top",A[6]),v&32&&z(e,"z-index",A[5]),(!c||v&2048)&&b(t,"data-tag-id",A[11]),(!c||v&1024)&&ne(t,"disable",A[10]),(!c||v&512)&&ne(t,"hide",A[9]),(!c||v&1)&&ne(t,"withAnimation",A[0])},i(A){c||(k(o),k(a),c=!0)},o(A){S(o),S(a),c=!1},d(A){A&&M(t),d[n].d(),p[r].d()}}}function K0(i,t,e){let n,o,s,r,a,l,c,u,d,{withAnimation:f=!1}=t,{tag:h}=t,{mediaStore:p}=t,{state:g}=t,{temporaryState:A}=t;const v=dt("hooks");return i.$$set=w=>{"withAnimation"in w&&e(0,f=w.withAnimation),"tag"in w&&e(1,h=w.tag),"mediaStore"in w&&e(2,p=w.mediaStore),"state"in w&&e(3,g=w.state),"temporaryState"in w&&e(4,A=w.temporaryState)},i.$$.update=()=>{var w,y,E,I,C,L,D,V;i.$$.dirty&2&&e(13,n=(()=>!(h.contentType==="Link"||h.contentType==="VRLink"||h.contentType==="PanoLink"||h.contentType==="Audio"&&h.data.appearance==="plane"))()),i.$$.dirty&2&&e(12,o=(()=>h.stickType==="2DPoint")()),i.$$.dirty&2&&e(11,s=h.id),i.$$.dirty&2&&e(10,r=!((w=h.pointTagStyle)!=null&&w.leftPercent)||!((y=h.pointTagStyle)!=null&&y.topPercent)||h.enabled===!1||!h.state),i.$$.dirty&2&&e(9,a=!((E=h.state)!=null&&E.visible)||((I=h.temporaryState)==null?void 0:I.visible)===!1),i.$$.dirty&2&&e(8,l=(C=h.state)==null?void 0:C.unfolded),i.$$.dirty&2&&e(7,c=((L=h.pointTagStyle)==null?void 0:L.leftPercent)+"%"),i.$$.dirty&2&&e(6,u=((D=h.pointTagStyle)==null?void 0:D.topPercent)+"%"),i.$$.dirty&2&&e(5,d=(V=h.state)!=null&&V.unfolded?1:0)},[f,h,p,g,A,d,u,c,l,a,r,s,o,n,v]}class $0 extends se{constructor(t){super(),oe(this,t,K0,q0,ie,{withAnimation:0,tag:1,mediaStore:2,state:3,temporaryState:4},X0)}}function eA(i){le(i,"svelte-wqbk81",".tag--container.svelte-wqbk81{box-sizing:border-box;position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:1;-webkit-user-select:none;-moz-user-select:none;user-select:none}.withAnimation.svelte-wqbk81{transition:opacity 0.3s linear}.tag--container.hide.svelte-wqbk81{opacity:0;pointer-events:none}.tag--container.hide.svelte-wqbk81 *{pointer-events:none}")}function dl(i,t,e){const n=i.slice();return n[6]=t[e],n}function fl(i){let t,e=[],n=new Map,o,s=i[1];const r=a=>a[6].id;for(let a=0;a<s.length;a+=1){let l=dl(i,s,a),c=r(l);n.set(c,e[a]=hl(c,l))}return{c(){t=B("div");for(let a=0;a<e.length;a+=1)e[a].c();b(t,"class","tag--container svelte-wqbk81"),ne(t,"hide",!i[3].visible||!i[4].visible),ne(t,"withAnimation",i[0])},m(a,l){T(a,t,l);for(let c=0;c<e.length;c+=1)e[c].m(t,null);o=!0},p(a,l){l&31&&(s=a[1],re(),e=$e(e,l,r,1,a,s,n,t,Bt,hl,null,dl),ae()),(!o||l&24)&&ne(t,"hide",!a[3].visible||!a[4].visible),(!o||l&1)&&ne(t,"withAnimation",a[0])},i(a){if(!o){for(let l=0;l<s.length;l+=1)k(e[l]);o=!0}},o(a){for(let l=0;l<e.length;l+=1)S(e[l]);o=!1},d(a){a&&M(t);for(let l=0;l<e.length;l+=1)e[l].d()}}}function hl(i,t){let e,n,o;return n=new $0({props:{state:t[3],temporaryState:t[4],withAnimation:t[0],tag:t[6],mediaStore:t[2]}}),{key:i,first:null,c(){e=me(),te(n.$$.fragment),this.first=e},m(s,r){T(s,e,r),K(n,s,r),o=!0},p(s,r){t=s;const a={};r&8&&(a.state=t[3]),r&16&&(a.temporaryState=t[4]),r&1&&(a.withAnimation=t[0]),r&2&&(a.tag=t[6]),r&4&&(a.mediaStore=t[2]),n.$set(a)},i(s){o||(k(n.$$.fragment,s),o=!0)},o(s){S(n.$$.fragment,s),o=!1},d(s){s&&M(e),$(n,s)}}}function tA(i){let t,e,n=i[3].enabled&&fl(i);return{c(){n&&n.c(),t=me()},m(o,s){n&&n.m(o,s),T(o,t,s),e=!0},p(o,[s]){o[3].enabled?n?(n.p(o,s),s&8&&k(n,1)):(n=fl(o),n.c(),k(n,1),n.m(t.parentNode,t)):n&&(re(),S(n,1,1,()=>{n=null}),ae())},i(o){e||(k(n),e=!0)},o(o){S(n),e=!1},d(o){n&&n.d(o),o&&M(t)}}}function nA(i,t,e){let{withAnimation:n=!1}=t,{tags:o=[]}=t,{hooks:s}=t,{mediaStore:r}=t,{state:a}=t,{temporaryState:l}=t;return Rn("hooks",s),i.$$set=c=>{"withAnimation"in c&&e(0,n=c.withAnimation),"tags"in c&&e(1,o=c.tags),"hooks"in c&&e(5,s=c.hooks),"mediaStore"in c&&e(2,r=c.mediaStore),"state"in c&&e(3,a=c.state),"temporaryState"in c&&e(4,l=c.temporaryState)},[n,o,r,a,l,s]}class iA extends se{constructor(t){super(),oe(this,t,nA,tA,ie,{withAnimation:0,tags:1,hooks:5,mediaStore:2,state:3,temporaryState:4},eA)}}const oA={globalConfig:{unfoldedConfig:{autoUnfold:{strategy:"MinimumDistance",distance:{max:5}}},tag3DConfig:{ratio:.0035}},contentTypeConfig:{"Any-Audio-plane":{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},Link:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},VRLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},PanoLink:{unfoldedConfig:{keep:"unfolded"},initialState:{unfolded:!0}},MediaPlane:{unfoldedConfig:{keep:"unfolded"},visibleConfig:{alwaysShowWhenMovePano:!0}}}};function sA(i){return i.stickType==="2DPoint"||i.stickType==="3DPoint"}function rA(i){return i.stickType==="3DPoint"||i.stickType==="Plane"}class aA extends Zn{constructor(e){super(e);m(this,"tagCacheByPanoIndex",{})}getCaches({panoIndex:e,id:n,key:o}){var c,u,d,f;const{five:s}=this,r=(c=s.panoIndex)!=null?c:e;if(r===void 0)throw new Error(`TagCacheController getCache(): fivePanoIndex is ${r}`);const a=`${(d=(u=s.work)==null?void 0:u.workCode)!=null?d:s.model.uuid}-${r}`;let l=this.tagCacheByPanoIndex[a];if(l||(l=new Map,this.tagCacheByPanoIndex[a]=l),n===void 0)return l;if(o===void 0){const h=l.get(n);return h||(l.set(n,{}),l.get(n))}return(f=l.get(n))==null?void 0:f[o]}clearCache(){this.tagCacheByPanoIndex={}}}class lA extends aA{constructor(e){super(e);m(this,"tags",[]);m(this,"config",oA);m(this,"raycaster",new x.Raycaster)}get isPanorama(){return this.five.currentMode==="Panorama"}getTagById(e){const n=this.tags.find(o=>o.id===e);if(!n){console.error(`getTagById(): tag is ${n}, id is ${e}`);return}return n}changeContentTypeConfig(e,n,o=!0){this.config.contentTypeConfig||(this.config.contentTypeConfig={}),o?this.config.contentTypeConfig[e]=zt.default({},this.config.contentTypeConfig[e],n):this.config.contentTypeConfig[e]=n,this.clearCache()}getVisibleByPanoIndex(e,n){var r;const o=this.getCaches({panoIndex:n,id:e.id}),s=(r=this.five.panoIndex)!=null?r:n;if(o.visible!==void 0)return o.visible;{const a=(()=>{var u,d,f;const l=(u=this.getTagConfig(e).visibleConfig)!=null?u:{},c=this.getDistance(e);if(typeof l=="function")return l(this.five,{tag:e,distance:c});if(l.keep==="hidden")return!1;if(l.keep==="visible")return!0;if(l.visiblePanoIndex!==void 0&&l.visiblePanoIndex!=="all"&&s!==void 0&&(Array.isArray(l.visiblePanoIndex)&&!l.visiblePanoIndex.includes(s)||l.visiblePanoIndex==="current"&&s!==((d=e.fiveState)==null?void 0:d.panoIndex))||l.visibleDistance!==void 0&&l.visibleDistance!=="unLimited"&&yn(c,l.visibleDistance)===!1)return!1;if(l.intersectRaycaster!==!1&&(typeof l.intersectRaycaster!="object"||l.intersectRaycaster.enabled!==!1)){if(s===void 0)return!1;const h=(f=this.five.work.observers[s])==null?void 0:f.position;if(h===void 0)throw new Error(`getVisible(): observerPosition is ${h}`);const p=di(e.position).sub(h).normalize();this.raycaster.set(h,p);const[g]=this.five.model.intersectRaycaster(this.raycaster),A=(()=>{var v;return typeof l.intersectRaycaster=="object"&&(v=l.intersectRaycaster.distanceAccuracy)!=null?v:.01})();if(g&&g.distance+A<c)return!1}return!(l.angleRange&&rA(e)&&yn(this.getAngle(e),l.angleRange)===!1)})();return o.visible=a,o.visible}}getUnfoldedByPanoIndex(e,n){if(!this.getVisibleByPanoIndex(e))return;const s=this.getCaches({panoIndex:n,id:e.id});if(s.unfolded!==void 0)return s.unfolded;{const r=this.getTagConfig(e).unfoldedConfig;if(!r)return;const a=(()=>{const c=this.getDistance(e);if(typeof r=="function")return r(this.five,{tag:e,distance:c});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.unfoldDistance&&yn(c,r.unfoldDistance)===!1)return!1})();s.unfolded=a;const l=this.getUnfoldedByCamera(e);return l!==void 0?l:s.unfolded}}getUnfoldedByCamera(e){return this.getVisibleByPanoIndex(e)?(()=>{var a;const s=this.getDistance(e),r=this.getTagConfig(e).unfoldedConfig;if(!!r){if(typeof r=="function")return r(this.five,{tag:e,distance:s});if(r.keep==="folded")return!1;if(r.keep==="unfolded")return!0;if(r.autoUnfold===void 0||r.autoUnfold===!1||r.autoUnfold.enable===!1)return;if(r.autoUnfold.strategy==="ScreenPostion"){const l=this.getTagProject(e);if(l&&yn(l.x,r.autoUnfold.autoUnfoldProjectX)===!1)return!1}if(r.autoUnfold.strategy==="MinimumDistance"){const u=this.filterPointTag().filter(f=>this.getVisibleByPanoIndex(f)).filter(f=>{const h=this.getTagProject(f);if(!h)return!1;const{x:p,y:g,z:A}=h;return!(Math.abs(A)>1||Math.abs(p)>1||Math.abs(g)>1)}).map(f=>({tag:f,id:f.id,tagConfig:this.getTagConfig(f).unfoldedConfig})).filter(({tag:f,tagConfig:h})=>{var p,g;return!(typeof h!="object"||h.keep||h.autoUnfold===!1||((p=h.autoUnfold)==null?void 0:p.enable)===!1||((g=h.autoUnfold)==null?void 0:g.strategy)!=="MinimumDistance")}).map(f=>pe(G({},f),{distance:this.getDistance(f.tag)})).filter(({distance:f,tagConfig:h})=>{var p,g;return!(f===void 0||typeof h!="object"||h.autoUnfold===!1||((p=h.autoUnfold)==null?void 0:p.enable)===!1||((g=h.autoUnfold)==null?void 0:g.strategy)!=="MinimumDistance"||h.autoUnfold.distance&&yn(f,h.autoUnfold.distance)===!1)}).sort((f,h)=>f.distance-h.distance).findIndex(f=>f.id===e.id);if(u===-1||u<=((a=r.autoUnfold.maxNumber)!=null?a:1)-1===!1)return!1}return!0}})():void 0}getDistance(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCaches({panoIndex:n,id:e.id});if(s.distance!==void 0)return s.distance;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getDistance(): observerPosition is ${c}`);const u=(()=>sA(e)?lt(e==null?void 0:e.position):di(e.position))(),d=c.distanceTo(u);return s.distance=d,d}}getAngle(e,n){var r,a,l;const o=(r=this.five.panoIndex)!=null?r:n;if(o===void 0)throw new Error(`getDistance(): fivePanoIndex is ${o}`);const s=this.getCaches({panoIndex:n,id:e.id});if(s.angle!==void 0)return s.angle;{const c=(l=(a=this.five.work)==null?void 0:a.observers[o])==null?void 0:l.position;if(c===void 0)throw new Error(`getAngleRange(): observerPosition is ${c}`);const u=(()=>e.stickType==="3DPoint"?hn(e.normal):Zr(e.position))();if(!u)return;const d=new x.Vector3().copy(c).sub(di(e.position)),f=u.angleTo(d)*180/Math.PI;return s.angle=f,s.angle}}getTagConfig(e){var s;if(!e)return(s=this.config.globalConfig)!=null?s:{};const n={};this.config.contentTypeConfig&&Object.keys(this.config.contentTypeConfig).forEach(r=>{const a=r;if(n[a])return;const l=a.split("-");if(l.length===1){const[c]=l;e.contentType===c&&(n[a]=this.config.contentTypeConfig[a])}if(l.length===2){const[c="Any",u="Any"]=l;(e.stickType===c||c==="Any")&&(e.contentType===u||u==="Any")&&(n[a]=this.config.contentTypeConfig[a])}if(l.length===3){const[c="Any",u,d]=l;if(u==="Audio"&&e.contentType==="Audio"){const f=e;(f.stickType===c||c==="Any")&&f.data.appearance===d&&(n[a]=this.config.contentTypeConfig[a])}}});const o=zt.default({},this.config.globalConfig,...Object.values(n),e.config);return typeof o.unfoldedConfig=="object"&&(o.unfoldedConfig.disableFold&&(o.unfoldedConfig={keep:"unfolded"}),o.unfoldedConfig.disableUnfold&&(o.unfoldedConfig={keep:"folded"}),o.unfoldedConfig.keep&&(o.unfoldedConfig={keep:o.unfoldedConfig.keep})),typeof o.visibleConfig=="object"&&o.visibleConfig.keep&&(o.visibleConfig={keep:o.visibleConfig.keep}),o}can(e,n){const o=this.getTagConfig(n);if(!o||typeof o!="object")return!0;if(e==="show"||e==="hide"){if(!o.visibleConfig||typeof o.visibleConfig!="object")return!0;if(e==="show"&&o.visibleConfig.keep==="hidden"||e==="hide"&&(o.visibleConfig.keep==="visible"||o.visibleConfig.alwaysShowWhenMovePano))return!1}if(e==="fold"||e==="unfold"){if(!o.unfoldedConfig||typeof o.unfoldedConfig!="object")return!0;if(e==="fold"&&o.unfoldedConfig.keep==="unfolded"||e==="unfold"&&o.unfoldedConfig.keep==="folded")return!1}return!0}sort(e){return e.sort((n,o)=>{const s=this.getDistance(n),r=this.getDistance(o);return s===void 0||r===void 0?0:r-s})}setPointTagPosition(){const e=this.filterPointTag();e.length!==0&&e.forEach(n=>{var s;if(!((s=n.state)!=null&&s.visible)){n.pointTagStyle=void 0;return}const o=this.getTagProject(n);if(!o){n.pointTagStyle=void 0;return}n.pointTagStyle={leftPercent:(o.x+1)/2*100,topPercent:(-o.y+1)/2*100}})}setVisibleByPanoIndex(){this.tags.forEach(e=>{const n=this.getVisibleByPanoIndex(e);e.state&&(e.state.visible=n)})}setUnfoldedByPanoIndex(){this.tags.forEach(e=>{const n=this.getUnfoldedByPanoIndex(e);if(!!e.state&&(n!==void 0&&(e.state.unfolded=n),n&&!e.state.visible)){const o=this.getTagConfig(e);typeof o.unfoldedConfig=="object"&&o.unfoldedConfig.autoUnfoldWhenHide!==!1&&(e.state.unfolded=!1)}})}getTagProject(e){if(!this.getVisibleByPanoIndex(e))return;const o=di(e.position),{x:s,y:r,z:a}=o.project(this.five.camera);if(!(a>1))return{x:s,y:r,z:a}}filterPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint"||e.stickType==="3DPoint")}filter2DPointTag(){return this.tags.filter(e=>e.stickType==="2DPoint")}filter3DPointTag(){return this.tags.filter(e=>e.stickType==="3DPoint")}filter3DTag(){return this.tags.filter(e=>e.stickType==="3DPoint"||e.stickType==="Plane")}filterPlaneTag(){return this.tags.filter(e=>e.stickType==="Plane")}updateTagConfig(e){e!=null&&e.force&&this.clearCache(),this.tags.forEach(n=>{const o=this.getTagConfig(n);n.mergedConfig=o})}}function cA(i){var t,e,n,o;if(!i.stickType){const s=(()=>i.pointType==="PointTag"&&i.dimensionType==="3D"?"3DPoint":i.pointType==="PlaneTag"?"Plane":"2DPoint")();i.stickType=s}if(i.contentType==="VRLink"||i.contentType==="PanoLink"||i.contentType==="Link"){const s=i;!((e=(t=s.data)==null?void 0:t.icon)!=null&&e.url)&&!((o=(n=s.style)==null?void 0:n.point)!=null&&o.url)&&(s.data.icon={url:"//vrlab-static.ljcdn.com/release/web/test.09dee741.png",steps:28})}return i}const ml="2.0.4",uo=`DnalogelPlugin-PanoTagPlugin@${ml}`,uA=!1,dA=i=>`${uo}--${i}`;class pl extends lA{constructor(e,n){super(e);m(this,"version",ml);m(this,"state",{enabled:!0,visible:!0});m(this,"params");m(this,"debug");m(this,"css3DRenderPlugin");m(this,"TagContainerSvelte");m(this,"temporaryState",{visible:!0});m(this,"mediaStore",Bi({currentMediaElement:null}));m(this,"isIOSWX",navigator.userAgent.toLowerCase().indexOf("micromessenger")!==-1&&navigator.userAgent.toLowerCase().indexOf("iphone")!==-1);m(this,"store",{disposers:[],disposed:!1,resizeObserverDisposerAdding:!1,css3DRenderDisposer:new Map});m(this,"disposedErrorLog",()=>{console.error(`${uo} is disposed`)});this.params=G({debug:!1,config:this.config},n),this.debug=this.params.debug,this.config=this.params.config,Bg(1),Object.assign(window,{[`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]:this}),Object.assign(window,{__PANOTAGPLUGIN_DEBUG__:this})}load(e,n){return Y(this,null,function*(){var o,s;if(this.clearTags(),console.log(uo," load:",{data:e}),this.config=zt.default({},this.config,{globalConfig:(o=e.globalConfig)!=null?o:{},contentTypeConfig:(s=e.contentTypeConfig)!=null?s:{}}),this.debug)try{Fm(this.five,this.tags)}catch(r){console.error(r)}return this.addTag(e.tagList,n)})}addTag(e,n){return Y(this,null,function*(){const s=(Array.isArray(e)?e:[e]).map(r=>{const a=this.getTagConfig(r);return pe(G({},r),{state:G({visible:void 0,unfolded:uA},a.initialState),hooks:new de.Subscribe,clickable:a.clickable,mergedConfig:a})}).filter(r=>r.position);return s.forEach(cA),this.tags.push(...s),Gm(this.five).then(()=>{var r,a,l;return this.store.eventListenerDisposer&&((a=(r=this.store).eventListenerDisposer)==null||a.call(r)),this.state.enabled&&(this.store.eventListenerDisposer=this.addEventListener()),this.addResizeListener(),this.checkPanelTag(),this.setVisibleAndUnfolded({withAnimation:(l=n==null?void 0:n.withAnimation)!=null?l:!0}).then(()=>this.updateRenderAllTags()),this.updateRenderAllTags(),!0})})}changeConfig(e,n=!0){n?this.config=zt.default({},this.config,e):this.config=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}changeGlobalConfig(e,n=!0){n?this.config.globalConfig=zt.default({},this.config.globalConfig,e):this.config.globalConfig=e,this.updateTagConfig({force:!0}),this.updateRenderAllTags()}clearTags(){this.tags=[],this.clearCache(),this.disposeAllCSS3DContainer(),this.updateRenderAllTags()}show(e){return Y(this,null,function*(){const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!0},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("show",{userAction:n,withAnimation:o})})}hide(e){return Y(this,null,function*(){const{userAction:n=!0,withAnimation:o=!1}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({visible:!1},{userAction:n,visibleWithAnimation:o}),this.hooks.emit("hide",{userAction:n,withAnimation:o})})}enable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!0},{userAction:n}),this.hooks.emit("enable",{userAction:n})}disable(e){const{userAction:n=!0}=e!=null?e:{};if(this.store.disposed)return this.disposedErrorLog();this.setState({enabled:!1},{userAction:n}),this.hooks.emit("disable",{userAction:n})}dispose(){var e,n,o,s,r,a;this.pauseCurrentMedia(),this.disposeAllCSS3DContainer(),(e=this.TagContainerSvelte)==null||e.$destroy(),this.filter3DTag().forEach(l=>{var c;return(c=l.tag3DContentSvelte)==null?void 0:c.svelteApp.$destroy()}),this.tags=[],(n=this.store.disposers)==null||n.forEach(l=>l==null?void 0:l()),this.store.disposers=[],this.store.disposed=!0,(s=(o=this.store).eventListenerDisposer)==null||s.call(o),this.store.eventListenerDisposer=void 0,(a=(r=this.store).resizeObserverDisposer)==null||a.call(r),this.store.resizeObserverDisposer=void 0,this.store.resizeObserverDisposerAdding=!1,this.clearCache(),this.hooks.emit("dispose")}setState(e,n){if(this.store.disposed)return this.disposedErrorLog();const{userAction:o=!0,visibleWithAnimation:s=!1}=n,r=G({},this.state);this.state=Object.assign(this.state,e),this.store.visibleWithAnimation=s,r.visible!==this.state.visible&&(e.visible?this.handleShow():this.handleHide()),r.enabled!==this.state.enabled&&(e.enabled?this.handleEnable():this.handleDisable()),this.hooks.emit("stateChange",{state:this.state,prevState:r,userAction:o})}changeUnfoldedById(e,n){var r;const o=this.getTagById(e);if(!o)return;o.state.unfolded=n;const s=this.filterPointTag();(r=this.TagContainerSvelte)==null||r.$set({tags:s})}changeTagNormalById(e,n){const o=this.getTagById(e);!o||!o.tag3DContentSvelte||(o.tag3DContentSvelte.currentNormal=lt(n),this.updateRenderPlaneTag())}changeDataById(e,n,o=!0){const s=this.getTagById(e);!s||(o?s.data=zt.default({},s.data,n):s.data=G(G({},s.data),n),this.checkPanelTag(),this.updateRenderAllTags())}changeStickTypeById(e,n,o=!0){this.changeTagById(e,n,o)}changeTagById(e,n,o=!0){const s=this.getTagById(e);!n||(o?zt.default(s,n):Object.assign(s,n),(s==null?void 0:s.tag3DContentSvelte)&&(n==null?void 0:n.normal)&&(s.tag3DContentSvelte.currentNormal=lt(n.normal)),this.updateRenderAllTags(),this.checkPanelTag())}destroyTagById(e){(Array.isArray(e)?e:[e]).forEach(o=>{const s=this.tags.findIndex(r=>r.id===o);s!==-1&&this.tags.splice(s,1)}),this.updateRenderAllTags()}pauseCurrentMedia(){this.mediaStore.set({currentMediaElement:null})}setVisibleAndUnfolded(){return Y(this,arguments,function*({withAnimation:e}={withAnimation:!1}){if(!!this.isPanorama)return this.setVisibleByPanoIndex(),e?new Promise((n,o)=>{setTimeout(()=>{this.setUnfoldedByPanoIndex(),n()},10)}):(this.setUnfoldedByPanoIndex(),Promise.resolve())})}handleShow(){this.state.visible=!0,this.updateTagContainerVisible()}handleHide(){this.pauseCurrentMedia(),this.state.visible=!1,this.updateTagContainerVisible()}handleEnable(){this.state.enabled=!0,this.store.eventListenerDisposer=this.addEventListener(),this.updateRenderAllTags()}handleDisable(){var e,n,o;this.pauseCurrentMedia(),this.state.enabled=!1,(n=(e=this.store).eventListenerDisposer)==null||n.call(e),(o=this.TagContainerSvelte)==null||o.$set({tags:[]}),this.filter3DTag().forEach(s=>{var r;(r=s.tag3DContentSvelte)==null||r.svelteApp.$destroy(),s.tag3DContentSvelte=void 0})}addEventListener(){const{five:e,hooks:n}=this,o=this.handleFiveWantsMoveToPano.bind(this),s=this.handleFiveModeChange.bind(this),r=this.handleFiveCameraUpdate.bind(this),a=this.handleFiveCameraUpdateDebounce(),l=this.handleFivePanoArrived.bind(this),c=this.loadVideoFirstFrame.bind(this),u=this.clickhandler.bind(this);return this.five.currentMode&&(this.isPanorama?(this.handleFivePanoArrived(),this.temporaryShow({withAnimation:!0})):this.temporaryHide()),e.on("wantsMoveToPano",o),e.on("modeChange",s),e.on("cameraUpdate",r),e.on("cameraUpdate",a),e.on("panoArrived",l),e.on("panoArrived",c),n.on("click",u),()=>{e.off("wantsMoveToPano",o),e.off("modeChange",s),e.off("cameraUpdate",r),e.off("cameraUpdate",a),e.off("panoArrived",l),e.off("panoArrived",c),n.off("click",u),this.store.eventListenerDisposer=void 0}}loadVideoFirstFrame(){this.isIOSWX&&this.hooks.emit("loadVideoFirstFrame")}addResizeListener(){if(!this.store.resizeObserverDisposer&&!this.store.resizeObserverDisposerAdding){const e=this.addResizeObserver();this.store.resizeObserverDisposerAdding=!0,setTimeout(()=>{this.store.resizeObserverDisposer=e,this.store.resizeObserverDisposerAdding=!1},200)}}addResizeObserver(){if(!this.store.disposed)return;const e=this.five.getElement(),n=()=>{!this.state.enabled||(this.show(),this.updateRenderAllTags())},o=()=>{!this.state.enabled||this.hide()},{observe:s,unobserve:r}=Kr(Nm(()=>{!this.store.resizeObserverDisposer||o()},500),e),{observe:a,unobserve:l}=Kr(qr(()=>n(),400),e);return s(),a(),()=>{r(),l()}}handleFiveModeChange(e){e==="Panorama"?this.five.once("panoArrived",()=>this.temporaryShow({withAnimation:!0})):this.temporaryHide()}handleFiveWantsMoveToPano(){this.tags.forEach(e=>{const n=this.getTagConfig(e);typeof n.visibleConfig=="object"&&(n.visibleConfig.keep?e.temporaryState=pe(G({},e.temporaryState),{visible:n.visibleConfig.keep==="visible"}):e.temporaryState=pe(G({},e.temporaryState),{visible:Boolean(n.visibleConfig.alwaysShowWhenMovePano)}))}),this.updateTagContainerVisible()}temporaryShow({withAnimation:e}={withAnimation:!1}){this.store.visibleWithAnimation=e,this.temporaryState.visible=!0,this.updateTagContainerVisible()}temporaryHide({withAnimation:e}={withAnimation:!1}){this.store.visibleWithAnimation=e,this.temporaryState.visible=!1,this.updateTagContainerVisible()}clickhandler(e){if(e.target!=="TagPoint")return;if(!e.tag.state)return console.warn("Clickhandler: params.tag.state is undefined");const n=this.can("fold",e.tag),o=this.can("unfold",e.tag);n&&o&&(e.tag.state.unfolded=!e.tag.state.unfolded,e.tag.state.unfolded&&this.tags.forEach(s=>{s.id!==e.tag.id&&s.state&&this.can("fold",s)&&(s.state.unfolded=!1)}),this.updateRenderAllTags())}updateRenderAllTags(){this.updateRenderPointTag(),this.updateRenderPlaneTag()}updateTagContainerVisible(){var e;(e=this.TagContainerSvelte)==null||e.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation}),this.filter3DTag().forEach(n=>{var o;(o=n.tag3DContentSvelte)==null||o.svelteApp.$set({state:this.state,temporaryState:this.temporaryState,withAnimation:this.store.visibleWithAnimation})})}handleFiveCameraUpdateDebounce(){return qr(()=>{this.setUnfoldedByCamera(),this.updateRenderAllTags()},100)}handleFiveCameraUpdate(){this.updateRenderPointTag()}handleFivePanoArrived(){return Y(this,null,function*(){yield this.setVisibleAndUnfolded(),this.tags.forEach(e=>{e.temporaryState=pe(G({},e.temporaryState),{visible:!0})}),this.store.visibleWithAnimation=!0,this.updateTagContainerVisible()})}setUnfoldedByCamera(){let e=!1;this.tags.forEach(n=>{const o=this.getUnfoldedByCamera(n);!n.state||o!==void 0&&(o===!0&&(e=!0),n.state.unfolded=o)}),e&&this.tags.forEach(n=>{const o=this.getTagConfig(n).unfoldedConfig;typeof o=="object"&&(o.autoUnfold||o.keep)||n.state&&(n.state.unfolded=!1)})}updateRenderPointTag(){var n;const e=this.sort(this.filterPointTag());if(this.setPointTagPosition(),this.TagContainerSvelte)this.TagContainerSvelte.$set({tags:e,state:this.state,temporaryState:this.temporaryState});else{const o=(n=this.five.getElement())==null?void 0:n.parentElement;if(!o)return console.error("updateRenderPlaneTag: tag2DContainer not found");this.TagContainerSvelte=new iA({target:o,props:{hooks:this.hooks,tags:e,state:this.state,temporaryState:this.temporaryState,mediaStore:this.mediaStore}})}}updateRenderPlaneTag(){this.sort([...this.filterPlaneTag(),...this.filter3DPointTag()]).forEach(n=>{var o;if(n.tag3DContentSvelte){const{svelteApp:s,domContainer:r,initialNormal:a,currentNormal:l}=n.tag3DContentSvelte;if(s.$set({tag:n,hooks:this.hooks,state:this.state,temporaryState:this.temporaryState}),!a.equals(l)){const c=new F.Quaternion().setFromUnitVectors(a,l);r.css3DObject.setRotationFromQuaternion(c)}}else{if(((o=n.state)==null?void 0:o.visible)===!1)return;if(this.css3DRenderPlugin||(this.css3DRenderPlugin=Jt(this.five)),n.stickType==="3DPoint"&&!n.normal)return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");const s=n.stickType==="Plane"?n.position:Hm(this.five.camera.position,lt(n.position),lt(n.normal)),r=n.stickType==="Plane"?Zr(n.position):lt(n.normal),a=this.getTagConfig(n).tag3DConfig,l=this.css3DRenderPlugin.create3DDomContainer(s,a);if(!l)return;this.store.css3DRenderDisposer.set(n.id,l.dispose),n.tag3DContentSvelte={svelteApp:new ul({target:l.container,props:{tag:n,hooks:this.hooks,state:this.state,mediaStore:this.mediaStore,temporaryState:this.temporaryState}}),domContainer:l,initialNormal:r,currentNormal:r}}}),this.checkPanelTag()}disposeAllCSS3DContainer(){for(const[e,n]of this.store.css3DRenderDisposer)n==null||n();this.store.css3DRenderDisposer=new Map}checkPanelTag(){this.filter2DPointTag().forEach(e=>{var n;(n=e.tag3DContentSvelte)==null||n.domContainer.dispose(),e.tag3DContentSvelte=void 0});for(const[e,n]of this.store.css3DRenderDisposer){const o=this.getTagById(e);(!o||o.stickType==="2DPoint")&&(n==null||n(),this.store.css3DRenderDisposer.delete(e))}}}var gl=(i=>(i.Audio="Audio",i.Text="Text",i.ImageText="ImageText",i.Image="Image",i.Video="Video",i.Link="Link",i.VRLink="VRLink",i.PanoLink="PanoLink",i.Marketing="Marketing",i.MediaPlane="MediaPlane",i.Custom="Custom",i))(gl||{}),Al=(i=>(i.Two="2D",i.Three="3D",i))(Al||{}),vl=(i=>(i.PointTag="PointTag",i.PlaneTag="PlaneTag",i))(vl||{});const fA=(i,t)=>new pl(i,t);class fo extends F.Object3D{constructor(e,n){var o;super();m(this,"originObject3D");m(this,"onRender");this.originObject3D=e,this.onRender=(o=n==null?void 0:n.onRender)!=null?o:()=>{}}get helperObject(){return this}render(){this.onRender()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}updatePosition(){this.position.copy(this.originObject3D.position)}updateQuaternion(){this.quaternion.copy(this.originObject3D.quaternion)}applyHelperScaleMatrix4(e,n){this.scale.applyMatrix4(e)}applyHelperQuaternion(e,n){this.applyQuaternion(e)}}class hA extends fo{}class mA extends fo{}class pA extends fo{}class gA extends pA{}class AA extends x.Group{constructor(e){super();m(this,"direction");this.direction=e||"x"}}class bl extends x.Mesh{constructor(e,n,o){super(e,n);m(this,"direction");this.direction=o||"x"}}function vA(i,t){const{offsetWidth:e,offsetHeight:n}=t,{top:o,left:s}=t.getBoundingClientRect();return Object.assign(new x.Vector2,{x:(i.x-s)/e*2-1,y:-(i.y-o)/n*2+1})}function ho(i,t,e){if(!t||!e||!i)return;const n=vA(t,e);if(Math.abs(n.x)===1||Math.abs(n.y)===1)return;const o=new x.Raycaster;return o.setFromCamera(n,i),o}function bA(i,t){return!(Math.abs(i.x-t.x)>1e-5||Math.abs(i.y-t.y)>1e-5||Math.abs(i.z-t.z)>1e-5)}class mo extends AA{constructor(e){var u;super(e.direction);m(this,"line");m(this,"arrow");m(this,"lineHeight",.4);m(this,"arrowHeight",.1);this.name="ArrowGroup";const n=new x.Color((u=e.color)!=null?u:16214315),o=new x.MeshBasicMaterial({color:n,depthTest:!1,opacity:1,transparent:!0,side:x.DoubleSide}),s=new x.ConeGeometry(.04,.1,32),r=new bl(s,o.clone(),e.direction);r.name=`arrow-${e.direction}`,this.arrow=r;const a=.004,l=new x.CylinderGeometry(a,a,.4,32),c=new bl(l,o.clone(),e.direction);c.name=`line-${e.direction}`,this.line=c,this.formatArrow(),this.formatLine(),this.add(this.arrow,this.line)}formatArrow(){this.arrow.geometry.translate(0,this.lineHeight+this.arrowHeight/2,0),this.direction==="x"?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.arrow.geometry.rotateX(Math.PI/2)}formatLine(){this.line.geometry.translate(0,this.lineHeight/2,0),this.direction==="x"?(this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction==="z"&&this.line.geometry.rotateX(Math.PI/2)}}const po={X:15618642,Y:4765519,Z:4227839};class ft{static get X(){return new x.Color(po.X).convertSRGBToLinear().clone()}static get Y(){return new x.Color(po.Y).convertSRGBToLinear().clone()}static get Z(){return new x.Color(po.Z).convertSRGBToLinear().clone()}}class yA extends hA{constructor(e){super(e);m(this,"xArrow",new mo({direction:"x",color:ft.X}));m(this,"yArrow",new mo({direction:"y",color:ft.Y}));m(this,"zArrow",new mo({direction:"z",color:ft.Z}));this.add(this.xArrow),this.add(this.yArrow),this.add(this.zArrow)}show(){super.show(),this.xArrow.visible=!0,this.yArrow.visible=!0,this.zArrow.visible=!0}showDraggingHelper(e){this.xArrow.visible=e.includes("x"),this.yArrow.visible=e.includes("y"),this.zArrow.visible=e.includes("z")}dispose(){this.remove(this.xArrow,this.yArrow,this.zArrow)}}function Gt(i,t){return wA(document.createElement(t!=null?t:"div"),i)}function wA(i,t){if(!t)return i;for(const e in t)e&&t[e]&&(i.style[e]=t[e]);return i}function CA(i){const t=Gt(G({position:"absolute",display:"block",borderRadius:"4px",paddingTop:"1px",paddingBottom:"1px",paddingLeft:"4px",paddingRight:"4px",pointerEvents:"none",userSelect:"none",zIndex:"9999",backgroundColor:"rgba(0,0,0,0.7)",fontSize:"12px",color:"#fff",letterSpacing:"0",lineHeight:"18px"},i)),e=()=>{t.style.display!=="block"&&(!t.style.top||!t.style.left||(t.style.display="block"))};return{element:t,show:e,hide:()=>{t.style.display="none",t.style.top="",t.style.left=""},setLeftTop:(s,r)=>{t.style.left=s,t.style.top=r,e()}}}class PA extends mA{constructor(e,n){var o;super(e);m(this,"yzCircle",new go({direction:"x",color:ft.X}));m(this,"xzCircle",new go({direction:"y",color:ft.Y}));m(this,"xyCircle",new go({direction:"z",color:ft.Z}));m(this,"xRingHelper",new Ao({direction:"x"}));m(this,"yRingHelper",new Ao({direction:"y"}));m(this,"zRingHelper",new Ao({direction:"z"}));m(this,"xAngleHelper",new vo({direction:"x",color:ft.X}));m(this,"yAngleHelper",new vo({direction:"y",color:ft.Y}));m(this,"zAngleHelper",new vo({direction:"z",color:ft.Z}));m(this,"angleTips");m(this,"container");n&&(this.container=n==null?void 0:n.container,this.angleTips=CA({display:"none"}),(o=this.container)==null||o.appendChild(this.angleTips.element)),this.show()}updateAngleHelperQuaternion(){this.xAngleHelper.quaternion.copy(this.yzCircle.quaternion),this.yAngleHelper.quaternion.copy(this.xzCircle.quaternion),this.zAngleHelper.quaternion.copy(this.xyCircle.quaternion),this.xRingHelper.quaternion.copy(this.yzCircle.quaternion),this.yRingHelper.quaternion.copy(this.xzCircle.quaternion),this.zRingHelper.quaternion.copy(this.xyCircle.quaternion)}applyHelperQuaternion(e,n){this.yzCircle.applyQuaternion(e),this.xzCircle.applyQuaternion(e),this.xyCircle.applyQuaternion(e),this.xAngleHelper.baseAxes.applyQuaternion(e),this.yAngleHelper.baseAxes.applyQuaternion(e),this.zAngleHelper.baseAxes.applyQuaternion(e)}hide(){this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper)}show(){var e;this.add(this.xyCircle,this.xzCircle,this.yzCircle),this.remove(this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)==null||e.hide()}showDraggingHelper(e){var n;this.hide(),this.add(...this.filterRingHelper(e)),this.add(...this.filterAngleHelper(e)),(n=this.angleTips)==null||n.show()}dispose(){var e,n;this.remove(this.yzCircle,this.xzCircle,this.xyCircle,this.xRingHelper,this.yRingHelper,this.zRingHelper,this.xAngleHelper,this.yAngleHelper,this.zAngleHelper),(e=this.angleTips)!=null&&e.element&&((n=this.container)==null||n.removeChild(this.angleTips.element))}filterRingHelper(e){return[this.xRingHelper,this.yRingHelper,this.zRingHelper].filter(n=>e.includes(n.direction))}filterAngleHelper(e){return[this.xAngleHelper,this.yAngleHelper,this.zAngleHelper].filter(n=>e.includes(n.direction))}}class go extends x.Mesh{constructor(e){var n;super();m(this,"direction");m(this,"gapAngle",.02);m(this,"geometry",new x.RingGeometry(.25,.3,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2));this.material=new x.MeshBasicMaterial({opacity:.6,color:(n=e.color)!=null?n:16777215,transparent:!0,side:x.DoubleSide,depthTest:!1}),this.direction=e.direction,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class Ao extends x.Group{constructor(e){super();m(this,"direction");this.direction=e.direction;const n=.015,o=new Array(8).fill(null).map((s,r)=>{const a=new x.RingGeometry(.25,.3,20,8,Math.PI/4*r+n,Math.PI/4-n*2),l=new x.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,transparent:!0,side:x.DoubleSide}),c=new x.Mesh(a,l);return c.name=`AxesDashedRing-${this.direction}-${r}`,c});this.add(...o),this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}class vo extends x.Mesh{constructor(e){var o;super();m(this,"direction");m(this,"baseAxes");switch(e.direction){case"x":this.baseAxes=new x.Vector3(0,0,1);break;case"y":this.baseAxes=new x.Vector3(1,0,0);break;case"z":this.baseAxes=new x.Vector3(1,0,0);break}const n=.3+5e-4;this.geometry=new x.CircleGeometry(n,48,0,1e-4),this.material=new x.MeshBasicMaterial({opacity:.4,color:(o=e.color)!=null?o:16777215,depthTest:!1,transparent:!0,side:x.DoubleSide}),this.direction=e.direction,this.direction==="y"?this.rotateX(Math.PI/2):this.direction==="x"&&this.rotateY(-Math.PI/2)}}function IA(){const i=Gt({width:"100%",height:"100%",left:"0",top:"0",position:"absolute",pointerEvents:"none"}),t=Gt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"relative",display:"flex",alignItems:"center",justifyContent:"center"}),e=Gt({boxSizing:"border-box",width:"100%",height:"100%",left:"0",top:"0",position:"absolute",border:"1px solid rgba(255,255,255,0.4)"});i.appendChild(t),t.appendChild(e);const n="-4px",o={direction:"nesw",element:kt({cursor:"nesw-resize",left:n,bottom:n})},s={direction:"ns",element:kt({cursor:"ns-resize",bottom:n})},r={direction:"nwse",element:kt({cursor:"nwse-resize",right:n,bottom:n})},a={direction:"ew",element:kt({cursor:"ew-resize",right:n})},l={direction:"nesw",element:kt({cursor:"nesw-resize",right:n,top:n})},c={direction:"ns",element:kt({cursor:"ns-resize",top:n})},u={direction:"nwse",element:kt({cursor:"nwse-resize",left:n,top:n})},d={direction:"ew",element:kt({cursor:"ew-resize",left:n})};return new Array(s,a,c,d,o,r,l,u).forEach(h=>t.appendChild(h.element)),{container:i,squares:[o,s,r,a,l,c,u,d]}}function kt(i){const t=Gt(G({background:"#FFFFFF",width:"9px",height:"9px",position:"absolute",pointerEvents:"none"},i)),e=Gt({width:"15px",height:"15px",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",pointerEvents:"none"}),n=Gt({width:"15px",height:"15px",cursor:i==null?void 0:i.cursor,pointerEvents:"auto",background:"transparent"});return n.draggable=!0,e.appendChild(n),t.appendChild(e),t}class EA extends gA{constructor(e,n,o,s){super(e);m(this,"points",[]);m(this,"cornerPositions",[]);m(this,"css3DInstance");m(this,"plane");m(this,"css3DRenderer",new Ut);m(this,"camera");m(this,"scene");m(this,"container");m(this,"enabled",!1);this.camera=o,this.scene=s,this.container=n,this.initRectangleScaleHelper()}get helperObject(){var e;if(!((e=this.css3DInstance)!=null&&e.css3DObject))throw new Error("css3DInstance is not initialized");return this.css3DInstance.css3DObject}updatePosition(){var e;this.helperObject.position.copy(this.originObject3D.position),(e=this.plane)==null||e.position.copy(this.originObject3D.position)}updateQuaternion(){var e;(e=this.plane)==null||e.quaternion.copy(this.originObject3D.quaternion)}applyMatrix4(e){var n;super.applyMatrix4(e),this.helperObject.applyMatrix4(e),(n=this.plane)==null||n.applyMatrix4(e),this.cornerPositions.forEach(o=>o.applyMatrix4(e))}showDraggingHelper(){}applyHelperScaleMatrix4(e,n){var o;(o=this.plane)==null||o.scale.applyMatrix4(e),this.helperObject.applyScaleMatrix4(e)}updatePoints(){const e=this.calculatePointPosition(this.cornerPositions);this.points.forEach((n,o)=>{n.position.copy(e[o])})}applyHelperQuaternion(e,n){var s;const o=(s=this.css3DInstance)==null?void 0:s.css3DObject;if(o){const r=new x.Vector3().subVectors(o.position,n).applyQuaternion(e).add(n);o.position.copy(r),o.applyQuaternion(e)}if(this.plane){const r=new x.Vector3().subVectors(this.plane.position,n).applyQuaternion(e).add(n);this.plane.position.copy(r),this.plane.applyQuaternion(e)}this.cornerPositions.forEach(r=>{const a=new x.Vector3().subVectors(r,n).applyQuaternion(e).add(n);r.copy(a)})}enable(){var e;this.enabled||(this.enabled=!0,(e=this.css3DInstance)==null||e.enable(),this.plane&&this.scene.add(this.plane))}disable(){var e;!this.enabled||(this.enabled=!1,(e=this.css3DInstance)==null||e.disable(),this.plane&&this.scene.remove(this.plane))}show(){var e;(e=this.css3DInstance)==null||e.show(),this.plane&&(this.plane.visible=!0)}hide(){var e;(e=this.css3DInstance)==null||e.hide(),this.plane&&(this.plane.visible=!1)}dispose(){this.disable(),this.css3DRenderer.dispose()}initRectangleScaleHelper(){var a;const e=this.getCornerPositions();if(!e)return;this.cornerPositions=e;const n=this.css3DRenderer.create3DElement(this.camera,e,{ratio:.003});if(!n)return;this.css3DInstance=n,n.appendToElement(this.container);const o=n.css3DObject.container,{container:s,squares:r}=IA();this.points=r.map((l,c)=>({direction:l.direction,point:l.element,position:this.calculatePointPosition(e)[c]})),o.insertBefore(s,(a=o.children[0])!=null?a:null),this.updatePosition()}getCornerPositions(){const{originObject3D:e}=this;if(e.isCSS3DObjectPlus)return e.cornerPoints;console.error("\u5F53\u524D\u7269\u4F53\u6682\u65F6\u4E0D\u652F\u6301 ScaleHelper")}calculatePointPosition(e){return[e[0].clone(),e[0].clone().add(e[1]).divideScalar(2),e[1].clone(),e[1].clone().add(e[2]).divideScalar(2),e[2].clone(),e[2].clone().add(e[3]).divideScalar(2),e[3].clone(),e[3].clone().add(e[0]).divideScalar(2)]}}new x.Vector3;function ge(i,t){this._camera=i||null,this._domElement=t||document,this._raycaster=new x.Raycaster,this._selected=null,this._boundObjs={};var e=this;this._$onClick=function(){e._onClick.apply(e,arguments)},this._$onDblClick=function(){e._onDblClick.apply(e,arguments)},this._$onMouseMove=function(){e._onMouseMove.apply(e,arguments)},this._$onMouseDown=function(){e._onMouseDown.apply(e,arguments)},this._$onMouseUp=function(){e._onMouseUp.apply(e,arguments)},this._$onTouchMove=function(){e._onTouchMove.apply(e,arguments)},this._$onTouchStart=function(){e._onTouchStart.apply(e,arguments)},this._$onTouchEnd=function(){e._onTouchEnd.apply(e,arguments)},this._$onContextmenu=function(){e._onContextmenu.apply(e,arguments)},this._domElement.addEventListener("click",this._$onClick,!1),this._domElement.addEventListener("dblclick",this._$onDblClick,!1),this._domElement.addEventListener("mousemove",this._$onMouseMove,!1),this._domElement.addEventListener("mousedown",this._$onMouseDown,!1),this._domElement.addEventListener("mouseup",this._$onMouseUp,!1),this._domElement.addEventListener("touchmove",this._$onTouchMove,!1),this._domElement.addEventListener("touchstart",this._$onTouchStart,!1),this._domElement.addEventListener("touchend",this._$onTouchEnd,!1),this._domElement.addEventListener("contextmenu",this._$onContextmenu,!1)}ge.prototype.destroy=function(){this._domElement.removeEventListener("click",this._$onClick,!1),this._domElement.removeEventListener("dblclick",this._$onDblClick,!1),this._domElement.removeEventListener("mousemove",this._$onMouseMove,!1),this._domElement.removeEventListener("mousedown",this._$onMouseDown,!1),this._domElement.removeEventListener("mouseup",this._$onMouseUp,!1),this._domElement.removeEventListener("touchmove",this._$onTouchMove,!1),this._domElement.removeEventListener("touchstart",this._$onTouchStart,!1),this._domElement.removeEventListener("touchend",this._$onTouchEnd,!1),this._domElement.removeEventListener("contextmenu",this._$onContextmenu,!1)},ge.eventNames=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","contextmenu","touchstart","touchend"],ge.prototype._getRelativeMouseXY=function(i){var t=i.target||i.srcElement;t.nodeType===3&&(t=t.parentNode);var e={x:0,y:0},n=t,o=getComputedStyle(n,null);e.y+=parseInt(o.getPropertyValue("padding-top"),10),e.x+=parseInt(o.getPropertyValue("padding-left"),10);do e.x+=n.offsetLeft,e.y+=n.offsetTop,o=getComputedStyle(n,null),e.x+=parseInt(o.getPropertyValue("border-left-width"),10),e.y+=parseInt(o.getPropertyValue("border-top-width"),10);while(n=n.offsetParent);var s={width:t===window?window.innerWidth:t.offsetWidth,height:t===window?window.innerHeight:t.offsetHeight};return{x:Number((i.pageX-e.x)/s.width)*2-1,y:-((i.pageY-e.y)/s.height)*2+1}},ge.prototype._objectCtxInit=function(i){i._3xDomEvent={}},ge.prototype._objectCtxDeinit=function(i){delete i._3xDomEvent},ge.prototype._objectCtxIsInit=function(i){return!!i._3xDomEvent},ge.prototype._objectCtxGet=function(i){return i._3xDomEvent},ge.prototype.camera=function(i){return i&&(this._camera=i),this._camera},ge.prototype.bind=function(i,t,e,n){console.assert(ge.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]),o[t+"Handlers"].push({callback:e,useCapture:n}),this._boundObjs[t]===void 0&&(this._boundObjs[t]=[]),this._boundObjs[t].push(i)},ge.prototype.addEventListener=ge.prototype.bind,ge.prototype.unbind=function(i,t,e,n){console.assert(ge.eventNames.indexOf(t)!==-1,"not available events:"+t),this._objectCtxIsInit(i)||this._objectCtxInit(i);var o=this._objectCtxGet(i);o[t+"Handlers"]||(o[t+"Handlers"]=[]);for(var s=o[t+"Handlers"],r=0;r<s.length;r++){var a=s[r];if(e==a.callback&&n==a.useCapture){s.splice(r,1);break}}var l=this._boundObjs[t].indexOf(i);console.assert(l!==-1),this._boundObjs[t].splice(l,1)},ge.prototype.removeEventListener=ge.prototype.unbind,ge.prototype._bound=function(i,t){var e=this._objectCtxGet(t);return e?!!e[i+"Handlers"]:!1},ge.prototype._onMove=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new x.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o),a=this._selected;if(r.length>0){var l,c,u,d=r[0],f=d.object;this._selected=f,u=this._bound("mousemove",f),a!=f&&(l=this._bound("mouseover",f),c=a&&this._bound("mouseout",a))}else c=a&&this._bound("mouseout",a),this._selected=null;u&&this._notify("mousemove",f,n,d),l&&this._notify("mouseover",f,n,d),c&&this._notify("mouseout",a,n,d)}},ge.prototype._onEvent=function(i,t,e,n){var o=this._boundObjs[i];if(!(o===void 0||o.length===0)){var s=new x.Vector2;s.set(t,e),this._raycaster.setFromCamera(s,this._camera);var r=this._raycaster.intersectObjects(o,!0);if(r.length!==0){for(var a=r[0],l=a.object,c=this._objectCtxGet(l),u=l.parent;typeof c=="undefined"&&u;)c=this._objectCtxGet(u),u=u.parent;!c||this._notify(i,l,n,a)}}},ge.prototype._notify=function(i,t,e,n){var o=this._objectCtxGet(t),s=o?o[i+"Handlers"]:null;if(console.assert(arguments.length===4),!o||!s||s.length===0){t.parent&&this._notify(i,t.parent,e,n);return}for(var s=o[i+"Handlers"],r=0;r<s.length;r++){var a=s[r],l=!0;a.callback({type:i,target:t,origDomEvent:e,intersect:n,stopPropagation:function(){l=!1}}),!!l&&a.useCapture===!1&&t.parent&&this._notify(i,t.parent,e,n)}},ge.prototype._onMouseDown=function(i){return this._onMouseEvent("mousedown",i)},ge.prototype._onMouseUp=function(i){return this._onMouseEvent("mouseup",i)},ge.prototype._onMouseEvent=function(i,t){var e=this._getRelativeMouseXY(t);this._onEvent(i,e.x,e.y,t)},ge.prototype._onMouseMove=function(i){var t=this._getRelativeMouseXY(i);this._onMove("mousemove",t.x,t.y,i),this._onMove("mouseover",t.x,t.y,i),this._onMove("mouseout",t.x,t.y,i)},ge.prototype._onClick=function(i){this._onMouseEvent("click",i)},ge.prototype._onDblClick=function(i){this._onMouseEvent("dblclick",i)},ge.prototype._onContextmenu=function(i){this._onMouseEvent("contextmenu",i)},ge.prototype._onTouchStart=function(i){return this._onTouchEvent("touchstart",i)},ge.prototype._onTouchEnd=function(i){return this._onTouchEvent("touchend",i)},ge.prototype._onTouchMove=function(i){if(i.touches.length==1){i.preventDefault();var t=Number(i.touches[0].pageX/window.innerWidth)*2-1,e=-(i.touches[0].pageY/window.innerHeight)*2+1;this._onMove("mousemove",t,e,i),this._onMove("mouseover",t,e,i),this._onMove("mouseout",t,e,i)}},ge.prototype._onTouchEvent=function(i,t){if(t.touches.length==1){t.preventDefault();var e=Number(t.touches[0].pageX/window.innerWidth)*2-1,n=-(t.touches[0].pageY/window.innerHeight)*2+1;this._onEvent(i,e,n,t)}};let Ht=null;class bo{constructor(t,e,n,o,s,r,a){m(this,"hooks",new Xt);m(this,"helperObject3D");m(this,"originObject3D");m(this,"camera");m(this,"model");m(this,"scene");m(this,"container");m(this,"domEvents");m(this,"isDragging",!1);m(this,"onRender");m(this,"enabled",!1);m(this,"onWantsTapGesture",t=>{if(this.getIntersectObject(t))return!1});this.camera=t,this.model=e,this.originObject3D=n,this.helperObject3D=o,this.container=s,this.scene=r,this.domEvents=new ge(t,s),this.onRender=a!=null?a:()=>{},this.initialHelperPosition(),this.initialHelperQuaternion(),this.enable()}initialHelperPosition(){this.helperObject3D.updatePosition()}initialHelperQuaternion(){this.helperObject3D.updateQuaternion()}enable(){this.enabled||(this.enabled=!0,this.scene.add(this.helperObject3D),this.render())}disable(){!this.enabled||(this.enabled=!1,this.scene.remove(this.helperObject3D),this.render())}show(){this.helperObject3D.show(),this.render()}hide(){this.helperObject3D.hide(),this.render()}dispose(){this.helperObject3D.dispose(),this.scene.remove(this.helperObject3D),this.render()}setOpacity(t){this.setOriginOpacityProperty();const e=this.originObject3D;if(e instanceof x.Mesh&&(e.material.opacity=t),e.isCSS3DObjectPlus){const n=e;n.container.style.opacity=t.toString()}this.render()}restoreOpacity(){if(Ht===null)return;const t=this.originObject3D;if(t instanceof x.Mesh&&(t.material.opacity=Ht.opacity),t.isCSS3DObjectPlus){const e=t;e.container.style.opacity=Ht.opacity.toString()}this.render()}setOriginOpacityProperty(){var t,e;if(Ht===null){const n=this.originObject3D;n instanceof x.Mesh&&(Ht={opacity:n.material.opacity}),n instanceof Vo&&(Ht={opacity:(t=n.container.style.opacity)!=null?t:1}),n.isCSS3DObjectPlus&&(Ht={opacity:Number((e=n.container.style.opacity)!=null?e:1)})}}updateHelperPosition(){this.helperObject3D.updatePosition()}updateHelperQuaternion(){this.helperObject3D.updateQuaternion()}applyHelperMatrix4(t){this.helperObject3D.applyMatrix4(t)}applyHelperQuaternion(t,e){this.helperObject3D.applyHelperQuaternion(t,e)}applyHelperScaleMatrix4(t,e){this.helperObject3D.applyHelperScaleMatrix4(t,e)}onWantsGesture(t,e,n){if(this.isDragging)return!1}render(){this.onRender()}hoverListener(t,e=16777215,n=1){const o=(Array.isArray(t)?t:[t]).filter(Ze),s=[];for(const r of o)if(r instanceof x.Mesh||r instanceof x.Group){const a=r instanceof x.Group?r.children.filter(f=>f instanceof x.Mesh):[r];a.forEach(f=>{f.__originalColor__=f.material.color.clone(),f.__originalOpacity__=f.material.opacity});const l=()=>{a.forEach(f=>{f.material.color.set(e),f.material.opacity=n}),this.render()},c=()=>{a.forEach(f=>{f.material.color.copy(f.__originalColor__),f.material.opacity=f.__originalOpacity__}),this.render()},u=()=>{this.isDragging||l()},d=()=>{this.isDragging||c()};for(const f of a)this.domEvents.addEventListener(f,"mouseover",u),this.domEvents.addEventListener(f,"mouseout",d),this.hooks.on("moveStart",l),this.hooks.on("moveEnd",c),this.hooks.on("rotateEnd",c),s.push(()=>{this.domEvents.removeEventListener(f,"mouseover",u),this.domEvents.removeEventListener(f,"mouseout",d),this.hooks.off("moveStart",l),this.hooks.off("moveEnd",c),this.hooks.off("rotateEnd",c)})}return()=>s.forEach(r=>r==null?void 0:r())}getIntersectObject(t){const e=this.camera.position,n=this.helperObject3D;if(!n)return;let o;const s=t.intersectObject(n,!0)[0];if(!!s&&(o=s,o.object=n,!!o)){if(this.model.intersectRaycaster){const r=this.model.intersectRaycaster(t)[0];if(r&&r.point.distanceTo(e)<o.point.distanceTo(e))return}return o.object}}}class kA extends bo{constructor(...e){super(...e);m(this,"startInfo");const n=this.helperObject3D;this.hoverListener([n.xArrow,n.yArrow,n.zArrow]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();const s=new x.Vector3(1,0,0).applyQuaternion(this.helperObject3D.quaternion),r=new x.Vector3(0,1,0).applyQuaternion(this.helperObject3D.quaternion),a=new x.Vector3(0,0,1).applyQuaternion(this.helperObject3D.quaternion),l=(()=>{switch(o){case"x":return s;case"y":return r;case"z":return a}})(),c=(()=>{switch(o){case"x":case"y":return a;case"z":return s}})(),u=n.point.clone(),d=new x.Plane;d.setFromNormalAndCoplanarPoint(c,u),this.startInfo={startVectorProject:u.clone().projectOnVector(l),directionVector:l,plane:d},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("moveStart"),this.isDragging=!0,console.log("%c MoveController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging||!this.startInfo)return;const n=ho(this.camera,e,this.container);return n?(console.log("%c RotateController dragging","color: #49de1b"),this.move(n),!1):this.dragEnd()}move(e){if(!this.startInfo)return this.dragEnd();const{plane:n,directionVector:o,startVectorProject:s}=this.startInfo,r=this.originObject3D,a=e.ray.intersectPlane(n,new x.Vector3);if(!a)return;const l=a.clone().projectOnVector(o),c=l.clone().sub(s),u=new x.Matrix4;u.setPosition(c),r.applyMatrix4(u),this.helperObject3D.applyMatrix4(u),s.copy(l),this.hooks.emit("positionUpdate",{matrix4:u})}dragEnd(){!this.isDragging||(console.log("%c MoveController dragEnd","color: #e94e4e"),this.startInfo=void 0,this.isDragging=!1,this.helperObject3D.show(),this.hooks.emit("moveEnd"))}}class yo{constructor(t,e,n,o){m(this,"helperController");m(this,"five");m(this,"onFiveWantsTapGesture",t=>{if(!this.helperController)return;const e=this.helperController.onWantsTapGesture(t);return this.five.needsRender=!0,e});m(this,"onFiveWantsGesture",(...t)=>{if(!this.helperController)return;const e=this.helperController.onWantsGesture(...t);return this.five.needsRender=!0,e});const{camera:s,model:r,scene:a}=t,l=t.getElement();if(this.five=t,!s||!r||!l||!a)return;const c=()=>{t.needsRender=!0};this.helperController=new e(s,r,n,o,l,a,c),t.on("wantsTapGesture",this.onFiveWantsTapGesture),t.on("wantsGesture",this.onFiveWantsGesture)}}const wo="Object3DHelper@v1.0.1",xA=()=>{console.error(`${wo} is disposed`)},DA=()=>{console.warn(`${wo} is disabled`)},LA=()=>{console.error(`${wo} is disabled`)};class SA{constructor(t,e){m(this,"controllers",{});m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"hooks",new Xt);m(this,"helpers");m(this,"eventListener",{});m(this,"handlePositionUpdate",(t,...e)=>{var s,r,a,l;const[n]=e,o=n==null?void 0:n.matrix4;o&&(t!==this.controllers.moveController&&((s=this.controllers.moveController)==null||s.applyHelperMatrix4(o)),t!==this.controllers.rotateController&&((r=this.controllers.rotateController)==null||r.applyHelperMatrix4(o)),t!==this.controllers.scaleController&&((a=this.controllers.scaleController)==null||a.applyHelperMatrix4(o)),(l=this.helpers.outlineHelper)==null||l.applyMatrix4(o))});m(this,"handleScaleUpdate",(t,...e)=>{var s,r;const[n]=e,o=n==null?void 0:n.matrix4;o&&((s=this.controllers.scaleController)==null||s.applyHelperScaleMatrix4(o,n),(r=this.helpers.outlineHelper)==null||r.scale.applyMatrix4(o))});m(this,"handleRotateUpdate",(t,...e)=>{var o,s,r,a;const[n]=e;if(n){const{quaternion:l,origin:c}=n;l&&(t!==this.controllers.moveController&&((o=this.controllers.moveController)==null||o.applyHelperQuaternion(l,c)),t!==this.controllers.rotateController&&((s=this.controllers.rotateController)==null||s.applyHelperQuaternion(l,c)),t!==this.controllers.scaleController&&((r=this.controllers.scaleController)==null||r.applyHelperQuaternion(l,c)),(a=this.helpers.outlineHelper)==null||a.applyQuaternion(l))}});t&&this.addControllers(t),this.helpers=e!=null?e:{},this.setState(this.state)}show(t){return Y(this,null,function*(){this.setState({visible:!0},t)})}hide(t){return Y(this,null,function*(){this.setState({visible:!1},t)})}enable(t){this.setState({enabled:!0},t)}disable(t){this.setState({enabled:!1},t)}dispose(){this.setState({disposed:!0})}setState(t,e){if(this.state.disposed)return xA();if(!this.state.enabled&&t.enabled!==!0&&t.disposed!==!0)return LA();const n=G({},this.state);this.state=G(G({},this.state),t),t.disposed!==void 0&&t.disposed!==n.disposed&&t.disposed&&this.handleDispose(),t.visible!==void 0&&this.handleVisible(t.visible),t.enabled!==void 0&&this.handleEnable(t.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:n})}addControllers(t){this.controllers=G(G({},this.controllers),t),this.addEventListener(),this.setState(this.state)}addHelpers(t){this.helpers=G(G({},this.helpers),t)}getCurrentState(){return this.state}addEventListener(){for(const t in this.controllers){if(!t)continue;const e=t;this.eventListener[e]||(this.eventListener[e]=(()=>{const n=this.controllers[e];if(!n)return;const o=()=>this.handleStart(n),s=()=>this.handleEnd(n),r=(...c)=>this.handlePositionUpdate(n,...c),a=(...c)=>this.handleRotateUpdate(n,...c),l=(...c)=>this.handleScaleUpdate(n,...c);return n.hooks.on("moveStart",o),n.hooks.on("rotateStart",o),n.hooks.on("scaleStart",o),n.hooks.on("positionUpdate",r),n.hooks.on("rotateUpdate",a),n.hooks.on("scaleUpdate",l),n.hooks.on("moveEnd",s),n.hooks.on("rotateEnd",s),n.hooks.on("scaleEnd",s),()=>{n.hooks.off("moveStart",o),n.hooks.off("rotateStart",o),n.hooks.off("scaleStart",o),n.hooks.off("positionUpdate",r),n.hooks.off("rotateUpdate",a),n.hooks.off("scaleUpdate",l),n.hooks.off("moveEnd",s),n.hooks.off("rotateEnd",s),n.hooks.off("scaleEnd",s)}})())}}handleEnd(t){t&&this.setOtherHelpersVisible(!0,t)}handleStart(t){t&&this.setOtherHelpersVisible(!1,t)}setOtherHelpersVisible(t,e){var n,o,s,r;t?((s=this.controllers.moveController)==null||s.helperObject3D.show(),(r=this.controllers.rotateController)==null||r.helperObject3D.show()):(e!==this.controllers.moveController&&((n=this.controllers.moveController)==null||n.helperObject3D.hide()),e!==this.controllers.rotateController&&((o=this.controllers.rotateController)==null||o.helperObject3D.hide()))}handleEnable(t,e=!0){t?(this.everyControllerDo(n=>{n.enable()}),this.hooks.emit("enable",{userAction:e})):(this.everyControllerDo(n=>{n.disable(),n.restoreOpacity()}),this.hooks.emit("disable",{userAction:e})),this.state.enabled=t}handleVisible(t,e=!0){t?(this.everyControllerDo(n=>{n.show()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:e}))):(this.everyControllerDo(n=>{n.hide(),n.restoreOpacity()}),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:e}))),this.state.visible=t}everyControllerDo(t){Object.values(this.controllers).forEach(e=>{e&&t(e)})}handleDispose(){var t,e;Object.values(this.controllers).forEach(n=>{n==null||n.dispose(),n==null||n.restoreOpacity()});for(const n in this.controllers){if(!n)continue;const o=n;(e=(t=this.eventListener)[o])==null||e.call(t)}}actionIfStateIsEnabled(t,e){if(this.state.enabled)return t();e!=null&&e.warnLog&&DA()}}class zA extends bo{constructor(...e){super(...e);m(this,"startInfo");m(this,"lastRotation");m(this,"rotations",[]);m(this,"helperObject3DQuaternion",this.originObject3D.quaternion.clone());const n=this.helperObject3D;this.hoverListener([n.xyCircle,n.xzCircle,n.yzCircle]);const o=this.dragStart.bind(this),s=this.dragging.bind(this),r=this.dragEnd.bind(this);this.domEvents.addEventListener(this.helperObject3D,"mousedown",o),document.addEventListener("mousemove",s),document.addEventListener("mouseup",r)}initialHelperQuaternion(){this.helperObject3D.updateAngleHelperQuaternion(),this.helperObject3D.applyHelperQuaternion(this.originObject3D.quaternion)}dragStart(e){if(this.isDragging)return;const n=e==null?void 0:e.intersect;if(!n)return this.dragEnd();const o=(n==null?void 0:n.object).direction;if(!o)return this.dragEnd();this.helperObject3D.updateAngleHelperQuaternion();const s=n.point,r=this.originObject3D.position.clone(),a=this.getAngleHelper(o);this.setTipsAngle(0);const l=s.clone();l.y+=.2,this.setTipsPosition(l);const c=new x.Vector3(1,0,0).applyQuaternion(this.helperObject3DQuaternion),u=new x.Vector3(0,1,0).applyQuaternion(this.helperObject3DQuaternion),d=new x.Vector3(0,0,1).applyQuaternion(this.helperObject3DQuaternion),f=(()=>{switch(o){case"x":return c;case"y":return u;case"z":return d}})(),h=new x.Plane().setFromNormalAndCoplanarPoint(f,s),p=new x.Vector3;h.projectPoint(s.clone(),p);const g=p.clone().sub(r),A=g.clone(),v=g.angleTo(a.baseAxes);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:h,angleHelper:a},this.helperObject3D.showDraggingHelper([o]),this.hooks.emit("rotateStart"),this.isDragging=!0,console.log(`%c RotateController dragStart ${o}`,"color: #e5af2e")}dragging(e){var o;if(!this.isDragging)return;const n=ho(this.camera,e,this.container);return n?(console.log(`%c RotateController dragging ${(o=this.startInfo)==null?void 0:o.direction}`,"color: #49de1b"),this.rotate(n),!1):this.dragEnd()}rotate(e){if(!this.startInfo)return this.dragEnd();const{startVector:n,plane:o,angleHelper:s,staticStartVector:r,direction:a}=this.startInfo,l=this.originObject3D,c=e.ray.intersectPlane(o,new x.Vector3);if(!c)return;const u=l.position.clone(),d=new x.Vector3;o.projectPoint(c.clone(),d);const f=d.clone().sub(u);if(n.angleTo(f)===0||(this.lastRotation===void 0&&(this.lastRotation={angle:0}),this.rotations.length===0))return;const h=(()=>{if(this.rotations.length===1)return f.angleTo(s.baseAxes)>r.angleTo(s.baseAxes);{const g=this.rotations[this.rotations.length-1],A=this.rotations[this.rotations.length-2],v=f.angleTo(A.vector),w=f.angleTo(g.vector),y=g.vector.angleTo(A.vector);if(y===0||w===0||v===0)return;if(v>w&&v>y)return g.direction;if(v<y&&w<y||v<w&&w>y)return!g.direction}})();if(h===void 0)return console.warn("rotationDirection is undefined");this.rotations.push({vector:f,direction:h}),this.rotations=this.rotations.slice(-2),this.lastRotation.angle=this.lastRotation.angle+f.angleTo(n)*(h?1:-1),this.setAngleHelperLength(a,this.lastRotation.angle),this.setTipsAngle(this.lastRotation.angle/Math.PI*180);const p=new x.Quaternion().setFromUnitVectors(n.clone().normalize(),f.clone().normalize());l.applyQuaternion(p),this.helperObject3D.applyHelperQuaternion(p),this.helperObject3DQuaternion.premultiply(p),this.hooks.emit("rotateUpdate",{quaternion:p,origin:u}),this.startInfo.startVector=f}dragEnd(){!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"))}getAngleHelper(e){switch(e){case"x":return this.helperObject3D.xAngleHelper;case"y":return this.helperObject3D.yAngleHelper;case"z":return this.helperObject3D.zAngleHelper}}setAngleHelperStart(e,n){const o=this.getAngleHelper(e);if(o instanceof x.Mesh&&o.geometry instanceof x.CircleGeometry){const{radius:s,segments:r,thetaLength:a}=o.geometry.parameters;o.geometry=new x.CircleGeometry(s,r,n,a)}else console.warn("only support THREE.CircleGeometry")}setAngleHelperLength(e,n){const s=n>=0?Math.max(n,.001):Math.min(n,-.001),r=this.getAngleHelper(e);if(r instanceof x.Mesh&&r.geometry instanceof x.CircleGeometry){const{radius:a,thetaStart:l}=r.geometry.parameters,c=Math.ceil(Math.abs(s)*(40/(2*Math.PI)));r.geometry=new x.CircleGeometry(a,c,l,s)}else console.warn("only support THREE.CircleGeometry")}setTipsAngle(e){var o;const n=(o=this.helperObject3D.angleTips)==null?void 0:o.element;!n||(n.innerText=`${e.toFixed(0)}\xB0`)}setTipsPosition(e){const n=this.helperObject3D.angleTips;if(!n)return;const o=e.project(this.camera),{x:s,y:r,z:a}=o;if(a>1)return;const l=(s+1)/2*100+"%",c=(-r+1)/2*100+"%";n.setLeftTop(l,c)}}class MA extends bo{constructor(...e){super(...e);m(this,"startInfo")}enable(){this.helperObject3D.enable(),super.enable()}disable(){this.helperObject3D.disable(),super.disable()}show(){this.helperObject3D.show(),super.show()}hide(){this.helperObject3D.hide(),super.hide()}getDragPlane(){const e=new x.Plane,n=this.helperObject3D.cornerPositions;if(n.length!==0)return n.length<3?e.setFromNormalAndCoplanarPoint(this.originObject3D.getWorldDirection(new F.Vector3),n[0]):e.setFromCoplanarPoints(n[0],n[1],n[2]),e}dragStart(e,n){var s,r;(r=(s=this.helperObject3D).updatePoints)==null||r.call(s);const o=this.getDragPlane();if(!o)return this.dragEnd();this.startInfo={startPoint:{position:n.position.clone(),direction:n.direction},plane:o},this.hooks.emit("scaleStart"),this.render(),this.isDragging=!0,console.log("%c RectangleScaleController dragStart","color: #e5af2e")}dragging(e){if(!this.isDragging)return;const n=ho(this.camera,e,this.container);if(!n)return this.dragEnd();this.scale(n),console.log("%c RectangleScaleController dragging","color: #49de1b")}scale(e){var V,W;if(!this.startInfo)return;const n=this.originObject3D,{startPoint:o,plane:s}=this.startInfo,r=this.helperObject3D.cornerPositions;if(r.length<4)return this.dragEnd();const a=e.ray.intersectPlane(s,new F.Vector3);if(!a||bA(a,this.camera.position))return;const l=new F.Vector3().addVectors(r[0],r[2]).divideScalar(2),{position:c,direction:u}=o,d=new F.Vector3().subVectors(r[1],r[0]),f=new F.Vector3().subVectors(r[3],r[0]),h=H=>{const X=new F.Vector3(0,0,0);if(!this.startInfo)return X;const Q=(H==="ew"?d:f).clone(),P=c.clone().projectOnVector(Q),O=a.clone().projectOnVector(Q),R=l.clone().projectOnVector(Q);if(O.equals(P))return X;if(H==="ns"&&typeof this.startInfo.dragPointInCenterBottom!="boolean"){const _=new F.Vector3().subVectors(O,R),q=_.x<0&&Q.x>=0,fe=_.y<0&&Q.y>=0,he=_.z<0&&Q.z>=0;this.startInfo.dragPointInCenterBottom=q||fe||he}if(H==="ew"&&typeof this.startInfo.dragPointInCenterLeft!="boolean"){const _=new F.Vector3().subVectors(O,R),q=_.x<0&&Q.x>=0,fe=_.y<0&&Q.y>=0,he=_.z<0&&Q.z>=0;this.startInfo.dragPointInCenterLeft=q||fe||he}const N=new F.Vector3().subVectors(O,P),Z=N.length();return Z>.3?(console.warn("offset.length() > 0.3, skipped",Z),X):N},p=h("ew"),g=h("ns"),A=()=>{const H=p;this.helperObject3D.cornerPositions.forEach((X,Q)=>{var P;(P=this.startInfo)!=null&&P.dragPointInCenterLeft?(Q===0||Q===3)&&X.add(H):(Q===1||Q===2)&&X.add(H)})},v=()=>{const H=g;this.helperObject3D.cornerPositions.forEach((X,Q)=>{var P;(P=this.startInfo)!=null&&P.dragPointInCenterBottom?(Q===0||Q===1)&&X.add(H):(Q===2||Q===3)&&X.add(H)})};switch(u){case"ew":A();break;case"ns":v();break;case"nesw":case"nwse":A(),v()}const w=new F.Vector3().subVectors(r[1],r[0]).length()/d.length(),y=new F.Vector3().subVectors(r[3],r[0]).length()/f.length(),E=new F.Vector3(w,y,1),I=new x.Matrix4().scale(E);n.isCSS3DObjectPlus?n.applyScaleMatrix4(I):n.scale.applyMatrix4(I),o.position.copy(a);const C=new F.Vector3().addVectors(r[0],r[2]).divideScalar(2),L=new F.Vector3().subVectors(C,l),D=new x.Matrix4().setPosition(L);n.applyMatrix4(D),(V=this.helperObject3D.css3DInstance)==null||V.css3DObject.applyMatrix4(D),(W=this.helperObject3D.plane)==null||W.applyMatrix4(D),this.hooks.emit("scaleUpdate",{matrix4:I,helperOrigin:l}),this.hooks.emit("positionUpdate",{matrix4:D}),this.render()}dragEnd(){!this.isDragging||(this.startInfo=void 0,this.isDragging=!1,this.hooks.emit("scaleEnd"),this.render(),console.log("%c RectangleScaleController dragEnd","color: #e94e4e"))}}class TA extends MA{constructor(...t){super(...t),this.addHTMLEventListener()}addHTMLEventListener(){this.helperObject3D.points.forEach(t=>{if(!t)return;const e=t.point,n=r=>this.dragStart(r,t),o=this.dragging.bind(this),s=this.dragEnd.bind(this);e.addEventListener("dragstart",n),e.addEventListener("drag",o),e.addEventListener("dragend",s)})}}const Co="v1.0.0",Po="Object3DHelperPlugin",Ai=`${Po}@${Co}`,BA=()=>{console.error(`${Ai} is disposed`)},VA=()=>{console.warn(`${Ai} is disabled`)},jA=()=>{console.error(`${Ai} is disabled`)};class yl extends Zn{constructor(e){super(e);m(this,"version",Co);m(this,"name",Po);m(this,"state",{visible:!0,enabled:!0,disposed:!1});m(this,"objectHelperMap",new Map);m(this,"css3DObjectParentMap",new Map);m(this,"css3DRender");this.five=e,this.css3DRender=new Ut(this.five.scene),console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"),Object.assign(window,{[`__${Po.toUpperCase()}_DEBUG__`]:this})}show(e){return Y(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return Y(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,n){if(this.state.disposed)return BA();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return jA();const o=G({},this.state);this.state=G(G({},this.state),e),e.disposed!==void 0&&e.disposed!==o.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==o.visible&&this.handleVisible(e.visible),e.enabled!==void 0&&e.enabled!==o.enabled&&this.handleEnable(e.enabled),this.hooks.emit("stateChange",{state:this.state,prevState:o})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,n={}){var u;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const o=new SA;this.objectHelperMap.set(e,o);const s=(u=this.five.getElement())==null?void 0:u.parentElement,r=this.five.camera,{moveHelper:a=!0,rotateHelper:l=!0,scaleHelper:c=!0}=n;if(a){const d=new yA(e),f=new yo(this.five,kA,e,d);o.addControllers({moveController:f.helperController})}if(l){let d;s&&r&&(d={container:s});const f=new PA(e,d),h=new yo(this.five,zA,e,f);o.addControllers({rotateController:h.helperController})}if(c&&s){const d=new EA(e,s,r,this.five.scene),f=new yo(this.five,TA,e,d);o.addControllers({scaleController:f.helperController})}e.isCSS3DObjectPlus&&Oo(this.five).then(()=>{var d,f;if(e.isCSS3DObjectPlus){const h=e,p=(d=this.css3DRender.behindModeCSS3DRenderer.wrapper)!=null?d:Ro(this.five);p&&e&&(this.css3DObjectParentMap.set(h,h.parent),h.removeFromParent(),this.css3DRender.behindModeCSS3DRenderer.setWrapper(p),(f=this.css3DRender.getBehindCSS3DObjectGroup())==null||f.add(h),this.css3DRender.render(this.five.camera))}})}removeObject3DHelper(e){const n=this.objectHelperMap.get(e);if(!!n){if(e.isCSS3DObjectPlus){const o=e,s=this.css3DObjectParentMap.get(o);s==null||s.add(o),this.css3DRender.render(this.five.camera)}this.objectHelperMap.delete(e),n.dispose()}}handleEnable(e,n=!0){e?(this.everyHelperDo(o=>o.enable()),this.hooks.emit("enable",{userAction:n})):(this.everyHelperDo(o=>o.disable()),this.hooks.emit("disable",{userAction:n})),this.state.enabled=e}handleVisible(e,n=!0){e?(this.everyHelperDo(o=>o.show()),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:n}))):(this.everyHelperDo(o=>o.hide()),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:n}))),this.state.visible=e}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(n=>{n&&e(n)})}actionIfStateIsEnabled(e,n){if(this.state.enabled)return e();n!=null&&n.warnLog&&VA()}}const QA=i=>new yl(i);U.CSS3DRender=Ut,U.CSS3DRenderPlugin=Jt,U.CameraMovementEffect=Xs,U.CameraMovementPlugin=Kd,U.ContentType=gl,U.CruisePlugin=Tm,U.CruisePluginController=to,U.DIRECTION=sn,U.DISPLAY_STRATEGY_TYPE=Qt,U.DimensionType=Al,U.FLOOR_PLAN_ATTACHED_TO=Ct,U.FLOOR_TYPE_MAP=Fd,U.GuideLinePlugin=Hr,U.ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE=Ot,U.ItemLabelPlugin=om,U.Magnifier=or,U.MapviewFloorplanPlugin=vd,U.ModelChassisCompassPlugin=Nd,U.ModelEntryDoorGuidePlugin=Xd,U.ModelFloorplanPlugin=md,U.ModelItemLabelPlugin=Oh,U.ModelRoomLabelPlugin=kc,U.ModelTVVideoPlugin=Gh,U.ModelViewPlugin=Vl,U.Object3DHelperController=yl,U.Object3DHelperPlugin=QA,U.PLUGIN=Ai,U.PaintBrush=Bl,U.PaintBrushTypeEnum=at,U.PanoCompassPlugin=yf,U.PanoCursorRaycasterPlugin=Kl,U.PanoDoorLabelPlugin=Am,U.PanoFloorplanRadarPlugin=Od,U.PanoMeasurePlugin=fh,U.PanoRulerPlugin=of,U.PanoRulerProPlugin=pf,U.PanoSpatialTagPlugin=xh,U.PanoTagPlugin=fA,U.PanoTagPluginController=pl,U.PointType=vl,U.ROOM_FETILE_TYPE_MAP=Rd,U.ROOM_TYPE_MAP=Gd,U.Rotation=tt,U.TopviewFloorplanPlugin=yd,U.Util=xg,U.VERSION=Co,U.itemLabelPluginServerParams=sm,U.modelItemLabelPluginServerParams=Rh,U.modelRoomLabelPluginServerParams=xc,U.pluginFlag=dA,Object.defineProperties(U,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|