@realsee/vreo 1.0.0-alpha.14 → 1.0.0-alpha.16

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/README.md CHANGED
@@ -15,20 +15,36 @@
15
15
 
16
16
  ## 安装说明
17
17
 
18
- 推荐使用 `npm` `yarn` 的方式进行安装。由于 `@realsee/vreo` 依赖 [Five](https://unpkg.com/@realsee/five/docs/index.html) 和 [React](https://reactjs.org/) ,请务必同时安装相关依赖:
19
-
20
- ```bash
21
- $ npm install @realsee/vreo @realsee/five react react-dom --save
22
- # or
23
- $ yarn add @realsee/vreo @realsee/five react react-dom
24
- ```
18
+ - 由于 `@realsee/vreo` 依赖 [Five](https://unpkg.com/@realsee/five/docs/index.html) 和 [React](https://reactjs.org/) ,请务必同时安装相关依赖
19
+ - 根据项目的包管理器来安装:
20
+ ``` bash
21
+ # pnpm
22
+ pnpm install @realsee/vreo @realsee/five react react-dom --save
23
+ # npm
24
+ npm install @realsee/vreo @realsee/five react react-dom --save
25
+ # yarn
26
+ yarn add @realsee/vreo @realsee/five react react-dom
27
+ ```
25
28
 
26
29
  ## 快速上手
30
+ 引入样式:
27
31
 
32
+ ```css
33
+ /* @file xxx.css */
34
+ @import '@realsee/vreo/stylesheets/default.css';
35
+ ```
36
+
28
37
  ```jsx
38
+ /* @file xxx.tsx | xxx.jsx */
39
+ import '@realsee/vreo/stylesheets/default.css';
40
+ ```
41
+ examples:
42
+ ```tsx
43
+ /* @file index.tsx | index.jsx */
29
44
  import * as React from 'react'
30
45
  import { Five } from '@realsee/five'
31
46
  import { Player } from '@realsee/vreo'
47
+ import '@realsee/vreo/stylesheets/default.css';
32
48
 
33
49
  // 创建 Five 实例
34
50
  const five = new Five({
@@ -36,32 +52,28 @@ const five = new Five({
36
52
  })
37
53
 
38
54
  // 创建 Player 实例
39
- const vreoplayer = new Player(five)
55
+ const vreoPlayer = new Player(five)
40
56
 
41
57
  // 异步请求剧本数据
42
58
  const vreoUnit = await fetch('api/**/**')
43
59
 
44
60
  // 加载剧本数据(剧本数据见下文)
45
- vreoplayer.load(vreoUnit)
61
+ vreoPlayer.load(vreoUnit)
46
62
 
47
63
  // 播放
48
- vreoplayer.play()
64
+ vreoPlayer.play()
49
65
 
50
66
  // 暂停
51
- vreoplayer.pause()
52
- ```
53
-
54
- 引入样式:
55
-
56
- ```css
57
- @import '@realsee/vreo/stylesheets/default.css';
67
+ vreoPlayer.pause()
58
68
  ```
59
69
 
60
70
  ## React Context & Hooks 模式使用
61
71
 
62
72
  **Vreo** 支持 [React Context](https://reactjs.org/docs/context.html) 与 [Hooks](https://reactjs.org/docs/hooks-intro.html) 相配合的模式使用,简单样例如下:
63
73
 
64
- ```jsx
74
+ ```tsx
75
+ /* @file App.tsx */
76
+
65
77
  import * as React from 'react'
66
78
  import * as ReactDOM from 'react-dom'
67
79
  import { Five, Work, parseWork } from '@realsee/five'
@@ -78,20 +90,21 @@ const PlayButton: React.FC = () => {
78
90
  const { load, play, pause } = useVreoAction()
79
91
 
80
92
  return (
81
- <button
82
- onClick={async () => {
83
- // 获取讲房数据
84
- const vreoUnit = await fetch('api/**/**')
85
- // 载入数据
86
- await load(vreoUnit)
87
- // 播放
88
- play()
89
- // 暂停
90
- pause()
91
- }}
92
- >
93
- 讲解
94
- </button>
93
+ <>
94
+ <button
95
+ onClick={async () => {
96
+ // 获取讲房数据
97
+ const vreoUnit = await fetch('api/**/**')
98
+ // 载入数据
99
+ await load(vreoUnit)
100
+ // 播放
101
+ play()
102
+ }}
103
+ >
104
+ 讲解
105
+ </button>
106
+ <button onClick={() => pause()}>暂停</button>
107
+ </>
95
108
  )
96
109
  }
97
110
 
@@ -559,7 +572,4 @@ vreoplayer.load(vreoUnit, 0, true)
559
572
 
560
573
  ```
561
574
 
562
-
563
- ## API 文档
564
-
565
- 详细的 API 文档请参考:[Vreo API](https://realsee.js.org/vreo/index.html) 。
575
+ Enjoy it!
@@ -1 +1 @@
1
- import{r as e,u as y,P as x,j as E,e as b}from"./default.d3519aaf.js";const F=e.exports.createContext(null),A=u=>{const a=y(),[t,r]=e.exports.useState(null),d=e.exports.useRef(null);return e.exports.useEffect(()=>(d.current=new x(a,u.configs||{}),r(d.current),()=>{var p;(p=d.current)==null||p.dispose()}),[]),t?E(F.Provider,{value:t,children:u.children}):E(b,{})};function c(){const u=e.exports.useContext(F);if(!u)throw new Error("VreoProvider never found.");return u}function i(){const u=c(),a=e.exports.useCallback((o,s)=>u.load(o,s),[u]),t=e.exports.useCallback(o=>u.play(o||0),[u]),r=e.exports.useCallback(()=>u.pause(),[u]),d=e.exports.useCallback(()=>u.show(),[u]),p=e.exports.useCallback(()=>u.hide(),[u]),f=e.exports.useCallback(()=>u.dispose(),[u]);return{load:a,pause:r,show:d,play:t,hide:p,dispose:f}}function n(u,a,t){const r=c();let d=[r,u];t!==void 0&&(d=d.concat(t)),e.exports.useEffect(()=>(r.on(u,a),()=>{r.off(u,a)}),d)}function C(){const u=c(),[a,t]=e.exports.useState(u.paused);return n("paused",()=>t(!0)),n("playing",()=>t(!1)),a}const B={categoryId:"b35b2980-9394-42a4-8ccb-0d2d4c8634fa",categoryText:"b4aff456-9a94-46c8-6e15-13cfa540aed8",frontRequestId:"ffc05d41-e588-48dc-adb7-d20d350ea1b4",index:0,video:{duration:249e3,start:0,end:249e3,url:"//vrlab-public.ljcdn.com/vrframework/release/audio_merged/Llk9Mhep/aitalk_text/merged.mp4"},keyframes:[{uuid:"87c795f5-95f3-435b-947e-c5ba030dd396",type:"CameraMovement",start:18600,end:28970,parsed:!1,data:{effect:"Rotate",panoIndex:0,fov:120,mode:"Panorama",latitude:-.010928962416050254,longitude:6.085904225460554,rotation:"Clockwise",rotateSpeed:.3}},{uuid:"6c21e958-5232-4097-57ef-dcbd7084073e",type:"InfoPanel",start:29010,end:40580,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/___2b82e40ca6a7d298cc6f4134a80ba58e.png",type:"Image"}},{uuid:"fb63d3aa-bbc8-41a3-379f-6714b255a894",type:"InfoPanel",start:40630,end:47950,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/___6b581b51cf12461442a31b3aef9aa504.jpg",type:"Image"}},{uuid:"89f7f29a-c816-4716-b420-2cdb58b527be",type:"CameraMovement",start:127020,end:128520,parsed:!1,data:{effect:"Move",panoIndex:8,fov:103.5,mode:"Panorama",latitude:.08334099549985256,longitude:4.765651641044329}},{uuid:"ce298bb1-5a38-4df7-5aab-1e378f598afc",type:"CameraMovement",start:13200,end:14700,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.08049960901252118,longitude:4.767461665999537}},{uuid:"e89aebe0-208d-43db-fc45-ddab6b2f8494",type:"CameraMovement",start:47900,end:49400,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.10405749787530304,longitude:5.272073180707112}},{uuid:"6d9424e0-2675-4843-b625-a762470e02ad",type:"CameraMovement",start:81800,end:83300,parsed:!1,data:{effect:"Move",panoIndex:12,fov:120,mode:"Panorama",latitude:.011858721114165922,longitude:1.2954826860590476}},{uuid:"72afc500-b4b7-4977-0685-1b432b30fd71",type:"CameraMovement",start:92500,end:94e3,parsed:!1,data:{effect:"Move",panoIndex:9,fov:120,mode:"Panorama",latitude:.003004866296355502,longitude:.13052484428045208}},{uuid:"f158594f-3863-429e-ac27-606af8b65e67",type:"CameraMovement",start:133900,end:135400,parsed:!1,data:{effect:"Move",panoIndex:6,fov:103.5,mode:"Panorama",latitude:.21615302557504054,longitude:3.7230169653291494}},{uuid:"0d3e24c0-06d4-4621-c73d-0026d2bc8a4c",type:"CameraMovement",start:179600,end:181100,parsed:!1,data:{effect:"Move",panoIndex:18,fov:105,mode:"Panorama",latitude:.14909776312915213,longitude:5.400919815605706}},{uuid:"f9ea52f9-c9d2-41c0-fa03-3177cbe77320",type:"CameraMovement",start:196180,end:197680,parsed:!1,data:{effect:"Move",panoIndex:23,fov:120,mode:"Panorama",latitude:.02935657980524926,longitude:1.2375176610076473}},{uuid:"643c8d41-777d-468e-184d-6df692f19f54",type:"CameraMovement",start:222e3,end:223500,parsed:!1,data:{effect:"Move",panoIndex:21,fov:108,mode:"Panorama",latitude:.10444027741202826,longitude:1.2490838384253422}},{uuid:"10fc17bd-b7be-4fbf-0220-a5214f9a6853",type:"CameraMovement",start:65140,end:70250,parsed:!1,data:{effect:"Rotate",panoIndex:0,fov:120,mode:"Panorama",latitude:.2917266708076339,longitude:3.22696039875224,rotation:"Anticlockwise",rotateSpeed:.6}},{uuid:"65022608-f0f2-4745-4554-e019aef325c3",type:"CameraMovement",start:208710,end:210700,parsed:!1,data:{effect:"Move",panoIndex:27,fov:81,mode:"Panorama",latitude:.09538804087572342,longitude:.13388593579664576}},{uuid:"4e8a5281-6136-4f1f-431e-666c53767f76",type:"CameraMovement",start:147600,end:152080,parsed:!1,data:{effect:"Rotate",panoIndex:6,fov:102,mode:"Panorama",latitude:.11636355189082886,longitude:5.151892672556052,rotateSpeed:.5,rotation:"Clockwise"}},{uuid:"06dc1ecb-0f89-43e1-ae79-287036f6fbcc",start:1045,end:1572,data:{text:"\u60A8\u597D",type:"Text"},type:"Prompter"},{uuid:"777ddc34-dea5-4714-ac09-5feea0e644d4",start:1672,end:5009,data:{text:"\u6211\u662F\u8D1D\u58F3\u5408\u4F5C\u623F\u4EA7\u7ECF\u7EAA\u54C1\u724C\u5FB7\u4F51\u5E97\u4E1C\u5468\u677E",type:"Text"},type:"Prompter"},{uuid:"d7fb6ef7-e1bd-4c4f-dcc2-6df3ee701b14",start:5109,end:8237,data:{text:"\u4E5F\u662F\u8D1D\u58F3\u91D1\u724C\u54C1\u8D28\u96C7\u4E3B\u3001\u5FB7\u4F51\u9886\u822A\u8005\u5E97\u4E1C",type:"Text"},type:"Prompter"},{uuid:"af2ea4f8-a88e-487e-d9e8-f648c82c3b0c",start:8337,end:10838,data:{text:"\u5728\u623F\u4EA7\u884C\u4E1A\u5DF2\u7ECF\u5DE5\u4F5C\u4E8614\u5E74",type:"Text"},type:"Prompter"},{uuid:"fe310d2f-ff41-44b8-dc92-6aab94b6014d",start:10938,end:13393,data:{text:"\u5F88\u8363\u5E78\u4E3A\u60A8\u5168\u65B9\u4F4D\u5C55\u793A\u6211\u7684\u5E97\u9762",type:"Text"},type:"Prompter"},{uuid:"a4e0f25e-1bc0-43ec-103d-8205a562c03f",start:13236,end:14646,data:{text:"\u6211\u6240\u7ECF\u8425\u7684\u8FD9\u5BB6\u5E97",type:"Text"},type:"Prompter"},{uuid:"d552e251-142b-4069-e8a6-c95a90cdd5ec",start:14746,end:16922,data:{text:"\u662F\u6B66\u6C49\u5FB7\u4F51\u6700\u5927\u7684\u4F18\u9009\u5F62\u8C61\u5E97",type:"Text"},type:"Prompter"},{uuid:"92c8baea-72af-4304-2328-bfccb6e40e31",start:17022,end:18594,data:{text:"\u5171\u670930\u591A\u540D\u5458\u5DE5",type:"Text"},type:"Prompter"},{uuid:"ff0d6154-45fb-4e08-9e7a-24ca3f05ce3e",start:18694,end:20313,data:{text:"\u5927\u5E97\u4F18\u52BF\u663E\u800C\u6613\u89C1",type:"Text"},type:"Prompter"},{uuid:"c9e8a13d-0487-49bf-44bc-0d776dc7662f",start:20413,end:22984,data:{text:"\u65E2\u80FD\u63D0\u4F9B\u66F4\u597D\u7684\u5DE5\u4F5C\u73AF\u5883\u548C\u6C1B\u56F4",type:"Text"},type:"Prompter"},{uuid:"ad608f54-b33d-4b71-8198-615a30a57b8c",start:23084,end:24587,data:{text:"\u4E5F\u66F4\u5BB9\u6613\u5438\u5F15\u5BA2\u6237",type:"Text"},type:"Prompter"},{uuid:"333ec189-0578-45e6-4004-892ccd92456a",start:24687,end:25911,data:{text:"\u63D0\u5347\u6210\u5355\u6982\u7387",type:"Text"},type:"Prompter"},{uuid:"91760827-5a1f-431d-b170-29146aacd2f9",start:26011,end:28953,data:{text:"\u63A5\u4E0B\u6765\u8DDF\u968F\u6211\u4E00\u8D77\u4E86\u89E3\u95E8\u5E97\u8BE6\u7EC6\u60C5\u51B5\u5427",type:"Text"},type:"Prompter"},{uuid:"5eb73b8f-073d-4cbe-2cc5-c6aa4c90d2d2",start:29053,end:31113,data:{text:"\u5E97\u9762\u4F4D\u4E8E\u5357\u6E56\u90BB\u91CC\u5E7F\u573A",type:"Text"},type:"Prompter"},{uuid:"e300f233-600d-4aa8-e4fc-175c7f6dabb6",start:31213,end:32460,data:{text:"\u4EA4\u901A\u6781\u5176\u4FBF\u5229",type:"Text"},type:"Prompter"},{uuid:"1ba9846d-f020-4f37-d418-9a120e0890d3",start:32560,end:35409,data:{text:"\u8DDD\u79BB7\u53F7\u7EBF\u5EFA\u5B89\u8857\u5730\u94C1\u7AD9\u4EC5300\u7C73",type:"Text"},type:"Prompter"},{uuid:"506e8fb2-e9aa-42c7-e2f3-fe19d2f65a37",start:35509,end:37174,data:{text:"500\u7C73\u5185\u6709\u5C0F\u5B66\u4E2D\u5B66",type:"Text"},type:"Prompter"},{uuid:"ee23e395-1d68-4674-67c7-f235ee0daf49",start:37274,end:39079,data:{text:"\u4E00\u516C\u91CC\u51854\u5BB6\u8D2D\u7269\u5E7F\u573A",type:"Text"},type:"Prompter"},{uuid:"5c655ed0-8768-4d34-6163-331db5abe004",start:39179,end:40566,data:{text:"\u5403\u559D\u73A9\u4E50\u5168\u8986\u76D6",type:"Text"},type:"Prompter"},{uuid:"f805ca1e-1069-45d0-7ec1-de2c3cbabadc",start:40666,end:41890,data:{text:"\u95E8\u593430\u7C73\u5BBD",type:"Text"},type:"Prompter"},{uuid:"d0a15e0c-0c90-4d58-f19e-0911e7471514",start:41990,end:43725,data:{text:"\u5728\u8FD9\u6761\u8857\u9053\u4E0A\u5F88\u663E\u773C",type:"Text"},type:"Prompter"},{uuid:"720fc0be-5a64-400b-d3f8-b750c72a162b",start:43825,end:44886,data:{text:"\u5BBD\u9614\u7684\u573A\u5730",type:"Text"},type:"Prompter"},{uuid:"77531bd9-55e0-40b9-d6e3-832f37b9dbba",start:44986,end:47835,data:{text:"\u4E5F\u65B9\u4FBF\u5F00\u5C55\u5404\u79CD\u4E30\u5BCC\u7684\u4E3B\u9898\u793E\u533A\u6D3B\u52A8",type:"Text"},type:"Prompter"},{uuid:"060100ab-a953-4184-7414-d87938681d1b",start:47935,end:48788,data:{text:"\u7531\u5916\u5411\u5185",type:"Text"},type:"Prompter"},{uuid:"6d651686-a230-479c-4a44-c13f71850869",start:48888,end:52434,data:{text:"\u8FDB\u5165\u95E8\u5E97\u9996\u5148\u6620\u5165\u773C\u5E18\u7684\u662F\u660E\u4EAE\u7684\u524D\u53F0\u63A5\u5F85\u533A",type:"Text"},type:"Prompter"},{uuid:"7f63c69e-af16-458e-6d4b-83751c21b089",start:52534,end:56219,data:{text:"\u5E38\u7528\u4E8E\u9996\u6B21\u5230\u5E97\u7684\u5BA2\u6237\u63A5\u5F85\u548C\u793E\u533A\u90BB\u91CC\u6696\u5FC3\u670D\u52A1",type:"Text"},type:"Prompter"},{uuid:"a244ce90-e416-496a-63b9-da8ec27da526",start:56319,end:59261,data:{text:"\u53EF\u80FD\u662F\u8D70\u7D2F\u4E86\u7684\u5927\u7237\u5927\u5988\u6765\u5E97\u91CC\u4E34\u65F6\u6B47\u811A",type:"Text"},type:"Prompter"},{uuid:"79eec73e-091c-4cab-e175-be96ce0f680e",start:59361,end:61746,data:{text:"\u4E5F\u53EF\u80FD\u662F\u5BB6\u957F\u6765\u4E3A\u5B69\u5B50\u6253\u5370\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"237d0697-68d4-4254-16a0-d73b3901cd83",start:61846,end:63743,data:{text:"\u6211\u4EEC\u4EE5\u6696\u5FC3\u670D\u52A1\u52A9\u6C11\u5229\u6C11",type:"Text"},type:"Prompter"},{uuid:"157b4c29-c5ac-470d-19dd-79ae2d54f5cf",start:63843,end:65090,data:{text:"\u6E29\u6696\u90BB\u91CC\u516B\u65B9",type:"Text"},type:"Prompter"},{uuid:"4f4acb0e-430a-46ac-c8a4-f38f9832270c",start:65190,end:66971,data:{text:"\u53F3\u624B\u8FB9\u662F\u5BA2\u6237\u63A5\u5F85\u533A",type:"Text"},type:"Prompter"},{uuid:"6872d4bf-9498-407e-d05c-883e7a65adb0",start:67071,end:68458,data:{text:"\u4E5F\u662F\u5BA2\u6237\u4F11\u606F\u533A",type:"Text"},type:"Prompter"},{uuid:"ee903cbc-6f8e-4a9b-a925-7b15d0a23905",start:68558,end:70246,data:{text:"\u6709\u7535\u89C6\u673A\u4F9B\u5BA2\u6237\u5A31\u4E50",type:"Text"},type:"Prompter"},{uuid:"30ab6e6b-9469-46d6-10a7-3ef0e2b2b88f",start:70346,end:73242,data:{text:"\u4F11\u606F\u533A\u65C1\u7684\u8FD9\u9762\u5899\u6302\u7740\u6211\u4EEC\u7684\u5546\u5708\u5730\u56FE",type:"Text"},type:"Prompter"},{uuid:"a2870c6e-4638-4e7d-1b03-94f17adaace1",start:73342,end:75634,data:{text:"\u8986\u76D6\u6574\u4E2A\u6B66\u6C49\u5730\u533A\u7684\u6240\u6709\u697C\u76D8",type:"Text"},type:"Prompter"},{uuid:"ac4218d6-1f0a-4af7-87fd-4ce9fd406c14",start:75734,end:78235,data:{text:"\u65E0\u8BBA\u662F\u672C\u5730\u5BA2\u6237\u8FD8\u662F\u5916\u5730\u5BA2\u6237",type:"Text"},type:"Prompter"},{uuid:"9def907f-9546-401a-66fe-125dd6fbca04",start:78335,end:80836,data:{text:"\u90FD\u80FD\u901A\u8FC7\u5730\u56FE\u6E05\u6670\u4E86\u89E3\u697C\u5E02\u5E03\u5C40",type:"Text"},type:"Prompter"},{uuid:"63489f30-bdc8-4afc-ace8-0db4e47d16dc",start:80936,end:81742,data:{text:"\u4E00\u76EE\u4E86\u7136",type:"Text"},type:"Prompter"},{uuid:"8ff1c9cc-48b0-4081-ee06-95a1066661e6",start:81842,end:84622,data:{text:"\u8FD9\u8FB9\u662F\u5BBD\u9614\u7684\u843D\u5730\u7A97\u666F\u4F11\u95F2\u5427\u53F0",type:"Text"},type:"Prompter"},{uuid:"dbd88648-2fb8-45df-843b-7f112dd093eb",start:84722,end:85807,data:{text:"\u914D\u6709\u5145\u7535\u5B9D",type:"Text"},type:"Prompter"},{uuid:"d9890f34-01f8-4841-29f0-f4f08157f7d1",start:85907,end:87317,data:{text:"\u5BA2\u6237\u53EF\u4EE5\u5728\u8FD9\u91CC\u7B49\u4EBA",type:"Text"},type:"Prompter"},{uuid:"7fe1ea7d-d435-4174-2eb8-482bfecca261",start:87417,end:90824,data:{text:"\u95E8\u5E97\u7684\u5B9D\u5988\u7ECF\u7EAA\u4EBA\u4E5F\u53EF\u4EE5\u5B89\u7F6E\u5B69\u5B50\u5728\u8FD9\u91CC\u5199\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"a4427301-90ca-4d7d-42fb-58f15fcc9192",start:90924,end:92427,data:{text:"\u7B49\u5F85\u5988\u5988\u4E00\u8D77\u4E0B\u73ED",type:"Text"},type:"Prompter"},{uuid:"6a503c9f-8589-40df-1076-b640f69c00eb",start:92527,end:94262,data:{text:"\u63A5\u4E0B\u6765\u662F\u6211\u4EEC\u7684\u8363\u8A89\u5C55\u67DC",type:"Text"},type:"Prompter"},{uuid:"86c737a6-98cb-46c7-1ef2-f85a835e8af8",start:94362,end:97304,data:{text:"\u6EE1\u5899\u7684\u8363\u8A89\u8BB0\u5F55\u4E86\u95E8\u5E97\u7684\u6BCF\u4E00\u62B9\u9AD8\u5149\u65F6\u523B",type:"Text"},type:"Prompter"},{uuid:"da039a1a-a4e6-4f2e-410e-ef768b571f39",start:97404,end:100184,data:{text:"\u6BCF\u4E00\u5458\u4E4B\u95F4\u4E92\u5E2E\u4E92\u52A9\uFF0C\u4E92\u76F8\u6210\u5C31",type:"Text"},type:"Prompter"},{uuid:"f7daa549-013c-464b-041c-da5f8a16edda",start:100284,end:102228,data:{text:"\u624D\u80FD\u4E0D\u65AD\u521B\u9020\u51FA\u65B0\u7684\u6210\u679C",type:"Text"},type:"Prompter"},{uuid:"50536aff-0854-4598-588d-94d590f47e48",start:102512,end:104177,data:{text:"\u731C\u731C\u770B\u8FD9\u9762\u5927\u5C4F\u662F\u4EC0\u4E48",type:"Text"},type:"Prompter"},{uuid:"4deb0587-7d57-4fee-30ed-4fdc7b0860e4",start:104277,end:106778,data:{text:"\u5B83\u662F\u4E00\u6B3E\u9ED1\u79D1\u6280\u2014\u2014VR\u667A\u80FD\u5927\u5C4F",type:"Text"},type:"Prompter"},{uuid:"00d161b1-fdea-4bef-c6bd-8030a9b8b570",start:106878,end:109217,data:{text:"\u201C\u5954\u8DD1\u4E24\u5C0F\u65F6,\u770B\u623F\u4E94\u5206\u949F\u201D",type:"Text"},type:"Prompter"},{uuid:"68ccb1d2-e755-4396-bd34-8f55ca3ea8e0",start:109317,end:111377,data:{text:"\u662F\u5F88\u591A\u4EBA\u771F\u5B9E\u7684\u770B\u623F\u5199\u7167",type:"Text"},type:"Prompter"},{uuid:"9e39bdee-b70a-41ad-8c59-0920cb63ed30",start:111477,end:113932,data:{text:"\u73B0\u5728\u5BA2\u6237\u4E0A\u95E8\u6211\u4EEC\u9996\u5148\u4E86\u89E3\u9700\u6C42",type:"Text"},type:"Prompter"},{uuid:"bc1b057a-4ee0-4940-ad0a-26eb68f5624f",start:114032,end:117415,data:{text:"\u7136\u540E\u5728VR\u5927\u5C4F\u4E0A\u4E3A\u5BA2\u6237\u5C55\u793A\u7B26\u5408\u8981\u6C42\u7684\u623F\u6E90",type:"Text"},type:"Prompter"},{uuid:"2430a276-93f5-4130-c501-50e6f3b5a449",start:117515,end:119180,data:{text:"\u771F\u5B9E\u8FD8\u539F\u623F\u5C4B\u7EC6\u8282",type:"Text"},type:"Prompter"},{uuid:"794bf9f6-fb9e-4d7e-7ab9-c80351ac78d3",start:119280,end:122013,data:{text:"\u8BA9\u5BA2\u6237\u5B9E\u73B0\u89C6\u89C9\u5728\u753B\u9762\u4E2D\u81EA\u7531\u6E38\u8D70",type:"Text"},type:"Prompter"},{uuid:"24d6ce8b-ebc4-4988-034a-3ec9072e2345",start:122113,end:125056,data:{text:"\u5982\u679C\u5BA2\u6237\u6EE1\u610F\uFF0C\u6211\u4EEC\u518D\u53BB\u5B9E\u5730\u5E26\u770B",type:"Text"},type:"Prompter"},{uuid:"0147dd29-25c1-418f-eab0-aabe918a4e0f",start:125156,end:126961,data:{text:"\u80FD\u591F\u6781\u5927\u63D0\u5347\u770B\u623F\u6548\u7387",type:"Text"},type:"Prompter"},{uuid:"906ce1ee-add3-4338-acaf-0bc759602981",start:127061,end:129470,data:{text:"\u518D\u5F80\u91CC\u9762\u8D70\uFF0C\u662F\u5458\u5DE5\u4F11\u606F\u533A",type:"Text"},type:"Prompter"},{uuid:"21674257-9d97-4683-2606-e07603ec22c4",start:129570,end:132071,data:{text:"\u4E5F\u53EF\u4EE5\u8BF4\u662F\u5458\u5DE5\u7684\u5F00\u653E\u5F0F\u529E\u516C\u533A",type:"Text"},type:"Prompter"},{uuid:"20d57f20-3d69-4ab5-3e1d-4b594f79a7de",start:132171,end:133859,data:{text:"\u5728\u8FD9\u91CC\u53EF\u4EE5\u5B89\u9759\u529E\u516C",type:"Text"},type:"Prompter"},{uuid:"5c8178a0-71d5-47b8-a863-cd2e04f8c8b3",start:133959,end:136460,data:{text:"\u4F11\u606F\u533A\u518D\u5F80\u91CC\u662F\u591A\u529F\u80FD\u4F11\u95F2\u533A",type:"Text"},type:"Prompter"},{uuid:"dd265f66-e1a5-4873-7111-5b4565114c83",start:136560,end:139015,data:{text:"\u770B\u4E66\u3001\u53F0\u7403\u3001\u4E52\u4E53\u7403\u4E00\u5385\u4E09\u7528",type:"Text"},type:"Prompter"},{uuid:"d66f5f7c-7bf5-43f2-d437-1003a43dff6a",start:139115,end:140200,data:{text:"\u8FD9\u4E2A\u4E52\u4E53\u7403\u53F0",type:"Text"},type:"Prompter"},{uuid:"e59e0688-6a40-4ee9-2fb5-b59f59d041c2",start:140300,end:142546,data:{text:"\u63D0\u8D77\u6765\u4E4B\u540E\u5C31\u4F1A\u53D8\u6210\u53F0\u7403\u684C",type:"Text"},type:"Prompter"},{uuid:"99fa63ef-7b12-4285-7d99-4f7e14592420",start:142646,end:144543,data:{text:"\u6211\u9F13\u52B1\u5C0F\u4F19\u4F34\u4EEC\u52B3\u9038\u7ED3\u5408",type:"Text"},type:"Prompter"},{uuid:"6cf6623d-be48-4add-5964-ebe5823dbf27",start:144643,end:147585,data:{text:"\u6240\u4EE5\u4F1A\u5C3D\u529B\u5728\u95E8\u5E97\u6253\u9020\u5458\u5DE5\u7684\u201C\u8212\u9002\u533A\u201D",type:"Text"},type:"Prompter"},{uuid:"3091e882-bc83-41f5-6eb8-e5fbb80b2df8",start:147685,end:149536,data:{text:"\u591A\u529F\u80FD\u533A\u57DF\u4FA7\u65B9\u662F\u4E66\u5427",type:"Text"},type:"Prompter"},{uuid:"728a40d3-d29c-4d17-4165-f852613d41f3",start:149636,end:150721,data:{text:"\u53EF\u4EE5\u770B\u4E66\u5145\u7535",type:"Text"},type:"Prompter"},{uuid:"54df8874-f8ab-48c8-2c49-0999451bd2a6",start:150821,end:152068,data:{text:"\u4E5F\u53EF\u4EE5\u653E\u7A7A\u51A5\u60F3",type:"Text"},type:"Prompter"},{uuid:"67d03050-ad1d-4d65-590a-4370db4d9991",start:152168,end:153578,data:{text:"\u518D\u6765\u770B\u4E00\u4E0B\u7B7E\u7EA6\u5BA4",type:"Text"},type:"Prompter"},{uuid:"4f454854-12d5-4828-3255-69c2f552946c",start:153678,end:155622,data:{text:"\u7B7E\u7EA6\u5BA4\u53EF\u4EE5\u5BB9\u7EB3\u5341\u4E8C\u4E2A\u4EBA",type:"Text"},type:"Prompter"},{uuid:"a0a55818-a4ed-46ce-4338-2563248649de",start:155722,end:157225,data:{text:"\u9664\u4E86\u5BA2\u6237\u7B7E\u7EA6\u65F6\u7528",type:"Text"},type:"Prompter"},{uuid:"22cf6cb4-5465-42b8-5c75-aa1e28811ec9",start:157325,end:160500,data:{text:"\u65E5\u5E38\u4F1A\u8BAE\u3001\u57F9\u8BAD\u6D3B\u52A8\u90FD\u53EF\u4EE5\u5728\u8FD9\u4E2A\u7A7A\u95F4\u8FDB\u884C",type:"Text"},type:"Prompter"},{uuid:"96068a33-ea7f-4e10-8342-707d799f79b0",start:160600,end:161987,data:{text:"\u8FD9\u4E5F\u662F\u5927\u5E97\u7684\u4F18\u52BF",type:"Text"},type:"Prompter"},{uuid:"f9e3976f-203d-414d-18a9-23dedd89c20f",start:162087,end:163938,data:{text:"\u901A\u8FC7\u5B9A\u671F\u7CFB\u7EDF\u6027\u57F9\u8BAD",type:"Text"},type:"Prompter"},{uuid:"6b463257-0d4c-469b-d11d-1d1a123c454e",start:164038,end:165332,data:{text:"\u8BA9\u65B0\u4EBA\u8301\u58EE\u6210\u957F",type:"Text"},type:"Prompter"},{uuid:"9190706f-41a2-40d6-2e15-311ee0027a80",start:165432,end:167492,data:{text:"\u7B7E\u7EA6\u5BA4\u7684\u5916\u5899\u4E5F\u662F\u6587\u5316\u5899",type:"Text"},type:"Prompter"},{uuid:"7d5c1cf5-2d6f-42e9-eee4-f6b4a5772cd0",start:167592,end:169652,data:{text:"\u4E3A\u4E86\u6700\u5927\u5316\u6316\u6398\u65B0\u4EBA\u7684\u6F5C\u80FD",type:"Text"},type:"Prompter"},{uuid:"00de4d50-b5af-4d32-df04-b0135fb6d30b",start:169752,end:171487,data:{text:"\u6211\u4F1A\u4E3B\u52A8\u548C\u65B0\u4EBA\u63A5\u89E6",type:"Text"},type:"Prompter"},{uuid:"e218966f-0a5d-4126-004a-9f92aec88e2c",start:171587,end:173252,data:{text:"\u53D1\u73B0\u4ED6\u4EEC\u8EAB\u4E0A\u7684\u95EA\u5149\u70B9",type:"Text"},type:"Prompter"},{uuid:"1db42aae-6ac0-45a3-0a9f-5730b8323fcd",start:173352,end:176201,data:{text:"\u4ECE\u4E2D\u6811\u7ACB\u4F18\u79C0\u7684\u6807\u6746\u5728\u95E8\u5E97\u8FDB\u884C\u5BA3\u4F20",type:"Text"},type:"Prompter"},{uuid:"5964828d-c580-405e-47af-c37cf008b22b",start:176301,end:179545,data:{text:"\u5206\u522B\u6709\u4E1A\u7EE9\u6807\u6746\u3001\u4EF7\u503C\u89C2\u6807\u6746\u548C\u6587\u5316\u6807\u6746",type:"Text"},type:"Prompter"},{uuid:"5da47b79-ce6e-40a5-b1ae-6a4d4076b201",start:179645,end:182030,data:{text:"\u6587\u5316\u5899\u6B63\u5BF9\u7684\u662F\u96C6\u4E2D\u529E\u516C\u533A\u57DF",type:"Text"},type:"Prompter"},{uuid:"d29c8b23-cd62-4a58-aa1d-59d0ba3f39df",start:182130,end:186419,data:{text:"\u623F\u4EA7\u7ECF\u7EAA\u4EBA\u804C\u4E1A\u65E9\u5DF2\u4E0D\u662F\u9760\u8DD1\u817F\u3001\u6253\u7535\u8BDD\u6362\u53D6\u4E1A\u7EE9\u7684\u804C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"4ec9faa9-5780-4a4d-c0f2-c2180dd4c4ba",start:186519,end:190367,data:{text:"\u6211\u4EEC\u9700\u8981\u501F\u52A9\u8D1D\u58F3\u63D0\u4F9B\u7684\u7EBF\u4E0A\u5DE5\u5177\u7BA1\u7406\u623F\u6E90\u5BA2\u6E90\u4FE1\u606F",type:"Text"},type:"Prompter"},{uuid:"1e5e0163-3c32-416e-5fd6-3dfa7bcee00f",start:190467,end:192248,data:{text:"\u89C4\u8303\u5316\u3001\u6D41\u7A0B\u5316\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"232052ba-47ca-4f07-0ed3-f0693a740a61",start:192348,end:196126,data:{text:"\u6240\u4EE5\u6211\u4F1A\u4E3A\u6BCF\u4E00\u540D\u5458\u5DE5\u914D\u5907\u7B14\u8BB0\u672C\u6216\u8005\u53F0\u5F0F\u7535\u8111",type:"Text"},type:"Prompter"},{uuid:"87df17c4-cc0f-41e0-fa01-7a58b00d8a36",start:196226,end:199006,data:{text:"\u518D\u5F80\u524D\u8D70\u662F\u7ECF\u7406\u529E\u516C\u5BA4\u548C\u8D22\u52A1\u5BA4",type:"Text"},type:"Prompter"},{uuid:"eae26a0c-d7ce-4c55-dbfd-8489222c05cb",start:199106,end:200446,data:{text:"\u8FD9\u8FB9\u4E5F\u662F\u6587\u5316\u5899",type:"Text"},type:"Prompter"},{uuid:"2449b4d6-501f-4c6d-ad0d-32cc262f8608",start:200546,end:202327,data:{text:"\u8BB0\u5F55\u4E86\u95E8\u5E97\u7684\u70B9\u70B9\u6EF4\u6EF4",type:"Text"},type:"Prompter"},{uuid:"60b31972-9429-41ee-714d-c8e94a98db81",start:202427,end:205393,data:{text:"\u6BCF\u4E00\u4EFD\u8363\u8A89\u3001\u6BCF\u4E00\u6B21\u56E2\u5EFA\u3001\u6BCF\u4E00\u671F\u57F9\u8BAD",type:"Text"},type:"Prompter"},{uuid:"5b8c1c36-d51f-4df4-0c2d-3b515a6adfee",start:205493,end:206717,data:{text:"\u90FD\u4F1A\u5C55\u793A\u5728\u8FD9\u91CC",type:"Text"},type:"Prompter"},{uuid:"11def882-b844-4d94-07de-a8d63781fb25",start:206817,end:208668,data:{text:"\u6211\u4EEC\u7684\u5E97\u662F\u4E00\u4E2A\u6709\u7231\u7684\u56E2\u961F",type:"Text"},type:"Prompter"},{uuid:"2a7d1d8d-0cd6-46f7-02a9-d728ef8e20dd",start:208768,end:210828,data:{text:"\u201C\u5BF9\u7ECF\u7EAA\u4EBA\u597D\u201D\u662F\u6211\u7684\u7528\u5DE5\u7406\u5FF5",type:"Text"},type:"Prompter"},{uuid:"cd70bcfc-a54d-4ad2-b833-b3815af4fe9b",start:210928,end:212988,data:{text:"\u8D70\u5728\u95E8\u5E97\u91CC\u6211\u7ECF\u5E38\u601D\u8003",type:"Text"},type:"Prompter"},{uuid:"2d789507-713a-4640-3730-81ac16c03c6c",start:213088,end:215543,data:{text:"\u600E\u4E48\u80FD\u8BA9\u5458\u5DE5\u4EEC\u50CF\u5728\u5BB6\u4E00\u822C\u8212\u9002",type:"Text"},type:"Prompter"},{uuid:"4d8060e1-b2f9-4dba-943a-7cf73f2ab030",start:215643,end:217308,data:{text:"\u4E8E\u662F\u5C31\u6709\u4E86\u8FD9\u5957\u5458\u5DE5\u67DC",type:"Text"},type:"Prompter"},{uuid:"0e10450e-175e-4a46-ec71-da7c9ae23a5d",start:217408,end:220258,data:{text:"\u6BCF\u4EBA\u4E00\u4E2A\uFF0C\u65E2\u4FDD\u8BC1\u5145\u8DB3\u7684\u50A8\u5B58\u7A7A\u95F4",type:"Text"},type:"Prompter"},{uuid:"1db16507-0c1c-4c8f-6f7f-ed9f9c9f1f48",start:220358,end:221977,data:{text:"\u8FD8\u80FD\u4FDD\u8BC1\u5DE5\u4F4D\u7684\u6574\u6D01",type:"Text"},type:"Prompter"},{uuid:"19bc0567-cc66-472c-481b-58ec8a64f1eb",start:222077,end:223301,data:{text:"\u9664\u4E86\u50A8\u7269\u67DC\u4E4B\u5916",type:"Text"},type:"Prompter"},{uuid:"4a3c01fa-e0e2-4604-776c-8c70f8991e5d",start:223401,end:225415,data:{text:"\u8FD9\u91CC\u8FD8\u8BBE\u6709\u5458\u5DE5\u81EA\u5DF1\u7684\u6C34\u5427",type:"Text"},type:"Prompter"},{uuid:"8b477eb7-452d-4bd9-b703-a981a689b622",start:225515,end:227691,data:{text:"\u6709\u996E\u6C34\u673A\u3001\u5FAE\u6CE2\u7089\u548C\u51B0\u7BB1",type:"Text"},type:"Prompter"},{uuid:"82c50a7e-0868-4464-58dc-f36a49d05e7b",start:227791,end:229317,data:{text:"\u6C34\u5427\u548C\u529E\u516C\u533A\u5206\u5F00",type:"Text"},type:"Prompter"},{uuid:"2c7f7ded-e44f-413f-0450-a52e4d821031",start:229417,end:231477,data:{text:"\u662F\u4E3A\u4E86\u5C0F\u4F19\u4F34\u5728\u5DE5\u4F5C\u95F4\u9699",type:"Text"},type:"Prompter"},{uuid:"bce4d35f-c88f-45c7-dba1-a21f69cba8a3",start:231577,end:233149,data:{text:"\u53EF\u4EE5\u8D77\u6765\u591A\u6D3B\u52A8\u6D3B\u52A8",type:"Text"},type:"Prompter"},{uuid:"352eabc5-35af-4e25-f8f5-d9241f213007",start:233249,end:235146,data:{text:"\u4EE5\u4E0A\u5C31\u662F\u95E8\u5E97\u7684\u57FA\u672C\u60C5\u51B5",type:"Text"},type:"Prompter"},{uuid:"50ef5685-b5a1-4e19-54e0-9271502cb835",start:235246,end:238072,data:{text:"\u5982\u679C\u60A8\u5BF9\u623F\u4EA7\u7ECF\u7EAA\u4EBA\u8FD9\u4EFD\u804C\u4E1A\u611F\u5174\u8DA3",type:"Text"},type:"Prompter"},{uuid:"883e92b3-ea04-4abe-6099-20a317808823",start:238172,end:240743,data:{text:"\u6211\u771F\u8BDA\u9080\u8BF7\u60A8\u6765\u5230\u6211\u7684\u95E8\u5E97\u5B9E\u5730\u8003\u5BDF",type:"Text"},type:"Prompter"},{uuid:"7068453e-b2cd-4736-9a27-cf98ff3dd791",start:240843,end:243669,data:{text:"\u8FD9\u662F\u4E00\u4EFD\u4ED8\u51FA\u5373\u6240\u5F97\u3001\u6210\u957F\u4E0D\u8BBE\u9650\u7684\u804C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"84a4e247-c3e9-4a20-ae14-80c1567c96f2",start:243769,end:246944,data:{text:"\u53EF\u4EE5\u5F97\u5230\u4E13\u4E1A\u7684\u57F9\u8BAD\u3001\u516C\u6B63\u900F\u660E\u7684\u664B\u5347\u901A\u9053",type:"Text"},type:"Prompter"},{uuid:"e1ba1956-24b5-4afc-ca16-97c4747c4bb4",start:247044,end:248664,data:{text:"\u91D1\u724C\u54C1\u8D28\u96C7\u4E3B,\u503C\u5F97\u6258\u4ED8\uFF01",type:"Text"},type:"Prompter"},{uuid:"66b25387-00b6-4ca8-16b9-a2a5447cbfe9",type:"InfoPanel",start:233200,end:236200,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/4___35fe05bbba927f9dedee4de525d7394f.jpg",type:"Image"}},{uuid:"02fed567-054d-4f17-9051-dc63f7632cbe",type:"CameraMovement",start:0,end:2e3,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.04438022675004691,longitude:5.232986472982764}},{uuid:"1024856a-5809-4492-0af6-d0f28b1bb8fc",type:"CameraMovement",start:70300,end:71800,parsed:!1,data:{effect:"Move",panoIndex:10,fov:120,mode:"Panorama",latitude:.0030048662963554655,longitude:1.1385672815664698}},{uuid:"70fc7728-cd97-4b2c-1400-2651dc6044bf",type:"CameraMovement",start:102460,end:103950,parsed:!1,data:{effect:"Move",panoIndex:12,fov:102,mode:"Panorama",latitude:.09535367780803297,longitude:4.538265211748573}},{uuid:"d2784b77-93fc-4788-4d73-564c946e6272",type:"CameraMovement",start:152100,end:153600,parsed:!1,data:{effect:"Move",panoIndex:14,fov:102,mode:"Panorama",latitude:.13272445414646844,longitude:.5147689397444273}},{uuid:"f970f558-3c7a-42d0-ad46-9feb99f04ff6",type:"CameraMovement",start:165380,end:166880,parsed:!1,data:{effect:"Move",panoIndex:18,fov:120,mode:"Panorama",latitude:.010150394708099617,longitude:1.109313455794532}},{uuid:"2173534e-8d54-4197-bb79-a7244ccac6b4",type:"CameraMovement",start:199050,end:201050,parsed:!1,data:{effect:"Move",panoIndex:28,fov:120,mode:"Panorama",latitude:.09871290045418332,longitude:4.731142937321037}},{uuid:"00f378d7-3c72-4f68-32fb-6382069d30f0",type:"CameraMovement",start:240800,end:242300,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.04438022675004691,longitude:5.232986472982764}}]};function D(){const u=e.exports.useRef(!1),{show:a,play:t,hide:r,pause:d,load:p}=i(),f=C();return Object.assign(window,{$load:p,$show:a}),E("div",{className:"btns",children:E("button",{onClick:async()=>{if(!f){d(),r();return}a(),u.current?t():(u.current=!0,p(B))},children:f?"\u64AD\u653E":"\u6682\u505C"})})}export{D as A,A as V};
1
+ import{r as e,u as y,P as x,j as E,e as b}from"./default.1c2d6361.js";const F=e.exports.createContext(null),A=u=>{const a=y(),[t,r]=e.exports.useState(null),d=e.exports.useRef(null);return e.exports.useEffect(()=>(d.current=new x(a,u.configs||{}),r(d.current),()=>{var p;(p=d.current)==null||p.dispose()}),[]),t?E(F.Provider,{value:t,children:u.children}):E(b,{})};function c(){const u=e.exports.useContext(F);if(!u)throw new Error("VreoProvider never found.");return u}function i(){const u=c(),a=e.exports.useCallback((o,s)=>u.load(o,s),[u]),t=e.exports.useCallback(o=>u.play(o||0),[u]),r=e.exports.useCallback(()=>u.pause(),[u]),d=e.exports.useCallback(()=>u.show(),[u]),p=e.exports.useCallback(()=>u.hide(),[u]),f=e.exports.useCallback(()=>u.dispose(),[u]);return{load:a,pause:r,show:d,play:t,hide:p,dispose:f}}function n(u,a,t){const r=c();let d=[r,u];t!==void 0&&(d=d.concat(t)),e.exports.useEffect(()=>(r.on(u,a),()=>{r.off(u,a)}),d)}function C(){const u=c(),[a,t]=e.exports.useState(u.paused);return n("paused",()=>t(!0)),n("playing",()=>t(!1)),a}const B={categoryId:"b35b2980-9394-42a4-8ccb-0d2d4c8634fa",categoryText:"b4aff456-9a94-46c8-6e15-13cfa540aed8",frontRequestId:"ffc05d41-e588-48dc-adb7-d20d350ea1b4",index:0,video:{duration:249e3,start:0,end:249e3,url:"//vrlab-public.ljcdn.com/vrframework/release/audio_merged/Llk9Mhep/aitalk_text/merged.mp4"},keyframes:[{uuid:"87c795f5-95f3-435b-947e-c5ba030dd396",type:"CameraMovement",start:18600,end:28970,parsed:!1,data:{effect:"Rotate",panoIndex:0,fov:120,mode:"Panorama",latitude:-.010928962416050254,longitude:6.085904225460554,rotation:"Clockwise",rotateSpeed:.3}},{uuid:"6c21e958-5232-4097-57ef-dcbd7084073e",type:"InfoPanel",start:29010,end:40580,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/___2b82e40ca6a7d298cc6f4134a80ba58e.png",type:"Image"}},{uuid:"fb63d3aa-bbc8-41a3-379f-6714b255a894",type:"InfoPanel",start:40630,end:47950,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/___6b581b51cf12461442a31b3aef9aa504.jpg",type:"Image"}},{uuid:"89f7f29a-c816-4716-b420-2cdb58b527be",type:"CameraMovement",start:127020,end:128520,parsed:!1,data:{effect:"Move",panoIndex:8,fov:103.5,mode:"Panorama",latitude:.08334099549985256,longitude:4.765651641044329}},{uuid:"ce298bb1-5a38-4df7-5aab-1e378f598afc",type:"CameraMovement",start:13200,end:14700,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.08049960901252118,longitude:4.767461665999537}},{uuid:"e89aebe0-208d-43db-fc45-ddab6b2f8494",type:"CameraMovement",start:47900,end:49400,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.10405749787530304,longitude:5.272073180707112}},{uuid:"6d9424e0-2675-4843-b625-a762470e02ad",type:"CameraMovement",start:81800,end:83300,parsed:!1,data:{effect:"Move",panoIndex:12,fov:120,mode:"Panorama",latitude:.011858721114165922,longitude:1.2954826860590476}},{uuid:"72afc500-b4b7-4977-0685-1b432b30fd71",type:"CameraMovement",start:92500,end:94e3,parsed:!1,data:{effect:"Move",panoIndex:9,fov:120,mode:"Panorama",latitude:.003004866296355502,longitude:.13052484428045208}},{uuid:"f158594f-3863-429e-ac27-606af8b65e67",type:"CameraMovement",start:133900,end:135400,parsed:!1,data:{effect:"Move",panoIndex:6,fov:103.5,mode:"Panorama",latitude:.21615302557504054,longitude:3.7230169653291494}},{uuid:"0d3e24c0-06d4-4621-c73d-0026d2bc8a4c",type:"CameraMovement",start:179600,end:181100,parsed:!1,data:{effect:"Move",panoIndex:18,fov:105,mode:"Panorama",latitude:.14909776312915213,longitude:5.400919815605706}},{uuid:"f9ea52f9-c9d2-41c0-fa03-3177cbe77320",type:"CameraMovement",start:196180,end:197680,parsed:!1,data:{effect:"Move",panoIndex:23,fov:120,mode:"Panorama",latitude:.02935657980524926,longitude:1.2375176610076473}},{uuid:"643c8d41-777d-468e-184d-6df692f19f54",type:"CameraMovement",start:222e3,end:223500,parsed:!1,data:{effect:"Move",panoIndex:21,fov:108,mode:"Panorama",latitude:.10444027741202826,longitude:1.2490838384253422}},{uuid:"10fc17bd-b7be-4fbf-0220-a5214f9a6853",type:"CameraMovement",start:65140,end:70250,parsed:!1,data:{effect:"Rotate",panoIndex:0,fov:120,mode:"Panorama",latitude:.2917266708076339,longitude:3.22696039875224,rotation:"Anticlockwise",rotateSpeed:.6}},{uuid:"65022608-f0f2-4745-4554-e019aef325c3",type:"CameraMovement",start:208710,end:210700,parsed:!1,data:{effect:"Move",panoIndex:27,fov:81,mode:"Panorama",latitude:.09538804087572342,longitude:.13388593579664576}},{uuid:"4e8a5281-6136-4f1f-431e-666c53767f76",type:"CameraMovement",start:147600,end:152080,parsed:!1,data:{effect:"Rotate",panoIndex:6,fov:102,mode:"Panorama",latitude:.11636355189082886,longitude:5.151892672556052,rotateSpeed:.5,rotation:"Clockwise"}},{uuid:"06dc1ecb-0f89-43e1-ae79-287036f6fbcc",start:1045,end:1572,data:{text:"\u60A8\u597D",type:"Text"},type:"Prompter"},{uuid:"777ddc34-dea5-4714-ac09-5feea0e644d4",start:1672,end:5009,data:{text:"\u6211\u662F\u8D1D\u58F3\u5408\u4F5C\u623F\u4EA7\u7ECF\u7EAA\u54C1\u724C\u5FB7\u4F51\u5E97\u4E1C\u5468\u677E",type:"Text"},type:"Prompter"},{uuid:"d7fb6ef7-e1bd-4c4f-dcc2-6df3ee701b14",start:5109,end:8237,data:{text:"\u4E5F\u662F\u8D1D\u58F3\u91D1\u724C\u54C1\u8D28\u96C7\u4E3B\u3001\u5FB7\u4F51\u9886\u822A\u8005\u5E97\u4E1C",type:"Text"},type:"Prompter"},{uuid:"af2ea4f8-a88e-487e-d9e8-f648c82c3b0c",start:8337,end:10838,data:{text:"\u5728\u623F\u4EA7\u884C\u4E1A\u5DF2\u7ECF\u5DE5\u4F5C\u4E8614\u5E74",type:"Text"},type:"Prompter"},{uuid:"fe310d2f-ff41-44b8-dc92-6aab94b6014d",start:10938,end:13393,data:{text:"\u5F88\u8363\u5E78\u4E3A\u60A8\u5168\u65B9\u4F4D\u5C55\u793A\u6211\u7684\u5E97\u9762",type:"Text"},type:"Prompter"},{uuid:"a4e0f25e-1bc0-43ec-103d-8205a562c03f",start:13236,end:14646,data:{text:"\u6211\u6240\u7ECF\u8425\u7684\u8FD9\u5BB6\u5E97",type:"Text"},type:"Prompter"},{uuid:"d552e251-142b-4069-e8a6-c95a90cdd5ec",start:14746,end:16922,data:{text:"\u662F\u6B66\u6C49\u5FB7\u4F51\u6700\u5927\u7684\u4F18\u9009\u5F62\u8C61\u5E97",type:"Text"},type:"Prompter"},{uuid:"92c8baea-72af-4304-2328-bfccb6e40e31",start:17022,end:18594,data:{text:"\u5171\u670930\u591A\u540D\u5458\u5DE5",type:"Text"},type:"Prompter"},{uuid:"ff0d6154-45fb-4e08-9e7a-24ca3f05ce3e",start:18694,end:20313,data:{text:"\u5927\u5E97\u4F18\u52BF\u663E\u800C\u6613\u89C1",type:"Text"},type:"Prompter"},{uuid:"c9e8a13d-0487-49bf-44bc-0d776dc7662f",start:20413,end:22984,data:{text:"\u65E2\u80FD\u63D0\u4F9B\u66F4\u597D\u7684\u5DE5\u4F5C\u73AF\u5883\u548C\u6C1B\u56F4",type:"Text"},type:"Prompter"},{uuid:"ad608f54-b33d-4b71-8198-615a30a57b8c",start:23084,end:24587,data:{text:"\u4E5F\u66F4\u5BB9\u6613\u5438\u5F15\u5BA2\u6237",type:"Text"},type:"Prompter"},{uuid:"333ec189-0578-45e6-4004-892ccd92456a",start:24687,end:25911,data:{text:"\u63D0\u5347\u6210\u5355\u6982\u7387",type:"Text"},type:"Prompter"},{uuid:"91760827-5a1f-431d-b170-29146aacd2f9",start:26011,end:28953,data:{text:"\u63A5\u4E0B\u6765\u8DDF\u968F\u6211\u4E00\u8D77\u4E86\u89E3\u95E8\u5E97\u8BE6\u7EC6\u60C5\u51B5\u5427",type:"Text"},type:"Prompter"},{uuid:"5eb73b8f-073d-4cbe-2cc5-c6aa4c90d2d2",start:29053,end:31113,data:{text:"\u5E97\u9762\u4F4D\u4E8E\u5357\u6E56\u90BB\u91CC\u5E7F\u573A",type:"Text"},type:"Prompter"},{uuid:"e300f233-600d-4aa8-e4fc-175c7f6dabb6",start:31213,end:32460,data:{text:"\u4EA4\u901A\u6781\u5176\u4FBF\u5229",type:"Text"},type:"Prompter"},{uuid:"1ba9846d-f020-4f37-d418-9a120e0890d3",start:32560,end:35409,data:{text:"\u8DDD\u79BB7\u53F7\u7EBF\u5EFA\u5B89\u8857\u5730\u94C1\u7AD9\u4EC5300\u7C73",type:"Text"},type:"Prompter"},{uuid:"506e8fb2-e9aa-42c7-e2f3-fe19d2f65a37",start:35509,end:37174,data:{text:"500\u7C73\u5185\u6709\u5C0F\u5B66\u4E2D\u5B66",type:"Text"},type:"Prompter"},{uuid:"ee23e395-1d68-4674-67c7-f235ee0daf49",start:37274,end:39079,data:{text:"\u4E00\u516C\u91CC\u51854\u5BB6\u8D2D\u7269\u5E7F\u573A",type:"Text"},type:"Prompter"},{uuid:"5c655ed0-8768-4d34-6163-331db5abe004",start:39179,end:40566,data:{text:"\u5403\u559D\u73A9\u4E50\u5168\u8986\u76D6",type:"Text"},type:"Prompter"},{uuid:"f805ca1e-1069-45d0-7ec1-de2c3cbabadc",start:40666,end:41890,data:{text:"\u95E8\u593430\u7C73\u5BBD",type:"Text"},type:"Prompter"},{uuid:"d0a15e0c-0c90-4d58-f19e-0911e7471514",start:41990,end:43725,data:{text:"\u5728\u8FD9\u6761\u8857\u9053\u4E0A\u5F88\u663E\u773C",type:"Text"},type:"Prompter"},{uuid:"720fc0be-5a64-400b-d3f8-b750c72a162b",start:43825,end:44886,data:{text:"\u5BBD\u9614\u7684\u573A\u5730",type:"Text"},type:"Prompter"},{uuid:"77531bd9-55e0-40b9-d6e3-832f37b9dbba",start:44986,end:47835,data:{text:"\u4E5F\u65B9\u4FBF\u5F00\u5C55\u5404\u79CD\u4E30\u5BCC\u7684\u4E3B\u9898\u793E\u533A\u6D3B\u52A8",type:"Text"},type:"Prompter"},{uuid:"060100ab-a953-4184-7414-d87938681d1b",start:47935,end:48788,data:{text:"\u7531\u5916\u5411\u5185",type:"Text"},type:"Prompter"},{uuid:"6d651686-a230-479c-4a44-c13f71850869",start:48888,end:52434,data:{text:"\u8FDB\u5165\u95E8\u5E97\u9996\u5148\u6620\u5165\u773C\u5E18\u7684\u662F\u660E\u4EAE\u7684\u524D\u53F0\u63A5\u5F85\u533A",type:"Text"},type:"Prompter"},{uuid:"7f63c69e-af16-458e-6d4b-83751c21b089",start:52534,end:56219,data:{text:"\u5E38\u7528\u4E8E\u9996\u6B21\u5230\u5E97\u7684\u5BA2\u6237\u63A5\u5F85\u548C\u793E\u533A\u90BB\u91CC\u6696\u5FC3\u670D\u52A1",type:"Text"},type:"Prompter"},{uuid:"a244ce90-e416-496a-63b9-da8ec27da526",start:56319,end:59261,data:{text:"\u53EF\u80FD\u662F\u8D70\u7D2F\u4E86\u7684\u5927\u7237\u5927\u5988\u6765\u5E97\u91CC\u4E34\u65F6\u6B47\u811A",type:"Text"},type:"Prompter"},{uuid:"79eec73e-091c-4cab-e175-be96ce0f680e",start:59361,end:61746,data:{text:"\u4E5F\u53EF\u80FD\u662F\u5BB6\u957F\u6765\u4E3A\u5B69\u5B50\u6253\u5370\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"237d0697-68d4-4254-16a0-d73b3901cd83",start:61846,end:63743,data:{text:"\u6211\u4EEC\u4EE5\u6696\u5FC3\u670D\u52A1\u52A9\u6C11\u5229\u6C11",type:"Text"},type:"Prompter"},{uuid:"157b4c29-c5ac-470d-19dd-79ae2d54f5cf",start:63843,end:65090,data:{text:"\u6E29\u6696\u90BB\u91CC\u516B\u65B9",type:"Text"},type:"Prompter"},{uuid:"4f4acb0e-430a-46ac-c8a4-f38f9832270c",start:65190,end:66971,data:{text:"\u53F3\u624B\u8FB9\u662F\u5BA2\u6237\u63A5\u5F85\u533A",type:"Text"},type:"Prompter"},{uuid:"6872d4bf-9498-407e-d05c-883e7a65adb0",start:67071,end:68458,data:{text:"\u4E5F\u662F\u5BA2\u6237\u4F11\u606F\u533A",type:"Text"},type:"Prompter"},{uuid:"ee903cbc-6f8e-4a9b-a925-7b15d0a23905",start:68558,end:70246,data:{text:"\u6709\u7535\u89C6\u673A\u4F9B\u5BA2\u6237\u5A31\u4E50",type:"Text"},type:"Prompter"},{uuid:"30ab6e6b-9469-46d6-10a7-3ef0e2b2b88f",start:70346,end:73242,data:{text:"\u4F11\u606F\u533A\u65C1\u7684\u8FD9\u9762\u5899\u6302\u7740\u6211\u4EEC\u7684\u5546\u5708\u5730\u56FE",type:"Text"},type:"Prompter"},{uuid:"a2870c6e-4638-4e7d-1b03-94f17adaace1",start:73342,end:75634,data:{text:"\u8986\u76D6\u6574\u4E2A\u6B66\u6C49\u5730\u533A\u7684\u6240\u6709\u697C\u76D8",type:"Text"},type:"Prompter"},{uuid:"ac4218d6-1f0a-4af7-87fd-4ce9fd406c14",start:75734,end:78235,data:{text:"\u65E0\u8BBA\u662F\u672C\u5730\u5BA2\u6237\u8FD8\u662F\u5916\u5730\u5BA2\u6237",type:"Text"},type:"Prompter"},{uuid:"9def907f-9546-401a-66fe-125dd6fbca04",start:78335,end:80836,data:{text:"\u90FD\u80FD\u901A\u8FC7\u5730\u56FE\u6E05\u6670\u4E86\u89E3\u697C\u5E02\u5E03\u5C40",type:"Text"},type:"Prompter"},{uuid:"63489f30-bdc8-4afc-ace8-0db4e47d16dc",start:80936,end:81742,data:{text:"\u4E00\u76EE\u4E86\u7136",type:"Text"},type:"Prompter"},{uuid:"8ff1c9cc-48b0-4081-ee06-95a1066661e6",start:81842,end:84622,data:{text:"\u8FD9\u8FB9\u662F\u5BBD\u9614\u7684\u843D\u5730\u7A97\u666F\u4F11\u95F2\u5427\u53F0",type:"Text"},type:"Prompter"},{uuid:"dbd88648-2fb8-45df-843b-7f112dd093eb",start:84722,end:85807,data:{text:"\u914D\u6709\u5145\u7535\u5B9D",type:"Text"},type:"Prompter"},{uuid:"d9890f34-01f8-4841-29f0-f4f08157f7d1",start:85907,end:87317,data:{text:"\u5BA2\u6237\u53EF\u4EE5\u5728\u8FD9\u91CC\u7B49\u4EBA",type:"Text"},type:"Prompter"},{uuid:"7fe1ea7d-d435-4174-2eb8-482bfecca261",start:87417,end:90824,data:{text:"\u95E8\u5E97\u7684\u5B9D\u5988\u7ECF\u7EAA\u4EBA\u4E5F\u53EF\u4EE5\u5B89\u7F6E\u5B69\u5B50\u5728\u8FD9\u91CC\u5199\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"a4427301-90ca-4d7d-42fb-58f15fcc9192",start:90924,end:92427,data:{text:"\u7B49\u5F85\u5988\u5988\u4E00\u8D77\u4E0B\u73ED",type:"Text"},type:"Prompter"},{uuid:"6a503c9f-8589-40df-1076-b640f69c00eb",start:92527,end:94262,data:{text:"\u63A5\u4E0B\u6765\u662F\u6211\u4EEC\u7684\u8363\u8A89\u5C55\u67DC",type:"Text"},type:"Prompter"},{uuid:"86c737a6-98cb-46c7-1ef2-f85a835e8af8",start:94362,end:97304,data:{text:"\u6EE1\u5899\u7684\u8363\u8A89\u8BB0\u5F55\u4E86\u95E8\u5E97\u7684\u6BCF\u4E00\u62B9\u9AD8\u5149\u65F6\u523B",type:"Text"},type:"Prompter"},{uuid:"da039a1a-a4e6-4f2e-410e-ef768b571f39",start:97404,end:100184,data:{text:"\u6BCF\u4E00\u5458\u4E4B\u95F4\u4E92\u5E2E\u4E92\u52A9\uFF0C\u4E92\u76F8\u6210\u5C31",type:"Text"},type:"Prompter"},{uuid:"f7daa549-013c-464b-041c-da5f8a16edda",start:100284,end:102228,data:{text:"\u624D\u80FD\u4E0D\u65AD\u521B\u9020\u51FA\u65B0\u7684\u6210\u679C",type:"Text"},type:"Prompter"},{uuid:"50536aff-0854-4598-588d-94d590f47e48",start:102512,end:104177,data:{text:"\u731C\u731C\u770B\u8FD9\u9762\u5927\u5C4F\u662F\u4EC0\u4E48",type:"Text"},type:"Prompter"},{uuid:"4deb0587-7d57-4fee-30ed-4fdc7b0860e4",start:104277,end:106778,data:{text:"\u5B83\u662F\u4E00\u6B3E\u9ED1\u79D1\u6280\u2014\u2014VR\u667A\u80FD\u5927\u5C4F",type:"Text"},type:"Prompter"},{uuid:"00d161b1-fdea-4bef-c6bd-8030a9b8b570",start:106878,end:109217,data:{text:"\u201C\u5954\u8DD1\u4E24\u5C0F\u65F6,\u770B\u623F\u4E94\u5206\u949F\u201D",type:"Text"},type:"Prompter"},{uuid:"68ccb1d2-e755-4396-bd34-8f55ca3ea8e0",start:109317,end:111377,data:{text:"\u662F\u5F88\u591A\u4EBA\u771F\u5B9E\u7684\u770B\u623F\u5199\u7167",type:"Text"},type:"Prompter"},{uuid:"9e39bdee-b70a-41ad-8c59-0920cb63ed30",start:111477,end:113932,data:{text:"\u73B0\u5728\u5BA2\u6237\u4E0A\u95E8\u6211\u4EEC\u9996\u5148\u4E86\u89E3\u9700\u6C42",type:"Text"},type:"Prompter"},{uuid:"bc1b057a-4ee0-4940-ad0a-26eb68f5624f",start:114032,end:117415,data:{text:"\u7136\u540E\u5728VR\u5927\u5C4F\u4E0A\u4E3A\u5BA2\u6237\u5C55\u793A\u7B26\u5408\u8981\u6C42\u7684\u623F\u6E90",type:"Text"},type:"Prompter"},{uuid:"2430a276-93f5-4130-c501-50e6f3b5a449",start:117515,end:119180,data:{text:"\u771F\u5B9E\u8FD8\u539F\u623F\u5C4B\u7EC6\u8282",type:"Text"},type:"Prompter"},{uuid:"794bf9f6-fb9e-4d7e-7ab9-c80351ac78d3",start:119280,end:122013,data:{text:"\u8BA9\u5BA2\u6237\u5B9E\u73B0\u89C6\u89C9\u5728\u753B\u9762\u4E2D\u81EA\u7531\u6E38\u8D70",type:"Text"},type:"Prompter"},{uuid:"24d6ce8b-ebc4-4988-034a-3ec9072e2345",start:122113,end:125056,data:{text:"\u5982\u679C\u5BA2\u6237\u6EE1\u610F\uFF0C\u6211\u4EEC\u518D\u53BB\u5B9E\u5730\u5E26\u770B",type:"Text"},type:"Prompter"},{uuid:"0147dd29-25c1-418f-eab0-aabe918a4e0f",start:125156,end:126961,data:{text:"\u80FD\u591F\u6781\u5927\u63D0\u5347\u770B\u623F\u6548\u7387",type:"Text"},type:"Prompter"},{uuid:"906ce1ee-add3-4338-acaf-0bc759602981",start:127061,end:129470,data:{text:"\u518D\u5F80\u91CC\u9762\u8D70\uFF0C\u662F\u5458\u5DE5\u4F11\u606F\u533A",type:"Text"},type:"Prompter"},{uuid:"21674257-9d97-4683-2606-e07603ec22c4",start:129570,end:132071,data:{text:"\u4E5F\u53EF\u4EE5\u8BF4\u662F\u5458\u5DE5\u7684\u5F00\u653E\u5F0F\u529E\u516C\u533A",type:"Text"},type:"Prompter"},{uuid:"20d57f20-3d69-4ab5-3e1d-4b594f79a7de",start:132171,end:133859,data:{text:"\u5728\u8FD9\u91CC\u53EF\u4EE5\u5B89\u9759\u529E\u516C",type:"Text"},type:"Prompter"},{uuid:"5c8178a0-71d5-47b8-a863-cd2e04f8c8b3",start:133959,end:136460,data:{text:"\u4F11\u606F\u533A\u518D\u5F80\u91CC\u662F\u591A\u529F\u80FD\u4F11\u95F2\u533A",type:"Text"},type:"Prompter"},{uuid:"dd265f66-e1a5-4873-7111-5b4565114c83",start:136560,end:139015,data:{text:"\u770B\u4E66\u3001\u53F0\u7403\u3001\u4E52\u4E53\u7403\u4E00\u5385\u4E09\u7528",type:"Text"},type:"Prompter"},{uuid:"d66f5f7c-7bf5-43f2-d437-1003a43dff6a",start:139115,end:140200,data:{text:"\u8FD9\u4E2A\u4E52\u4E53\u7403\u53F0",type:"Text"},type:"Prompter"},{uuid:"e59e0688-6a40-4ee9-2fb5-b59f59d041c2",start:140300,end:142546,data:{text:"\u63D0\u8D77\u6765\u4E4B\u540E\u5C31\u4F1A\u53D8\u6210\u53F0\u7403\u684C",type:"Text"},type:"Prompter"},{uuid:"99fa63ef-7b12-4285-7d99-4f7e14592420",start:142646,end:144543,data:{text:"\u6211\u9F13\u52B1\u5C0F\u4F19\u4F34\u4EEC\u52B3\u9038\u7ED3\u5408",type:"Text"},type:"Prompter"},{uuid:"6cf6623d-be48-4add-5964-ebe5823dbf27",start:144643,end:147585,data:{text:"\u6240\u4EE5\u4F1A\u5C3D\u529B\u5728\u95E8\u5E97\u6253\u9020\u5458\u5DE5\u7684\u201C\u8212\u9002\u533A\u201D",type:"Text"},type:"Prompter"},{uuid:"3091e882-bc83-41f5-6eb8-e5fbb80b2df8",start:147685,end:149536,data:{text:"\u591A\u529F\u80FD\u533A\u57DF\u4FA7\u65B9\u662F\u4E66\u5427",type:"Text"},type:"Prompter"},{uuid:"728a40d3-d29c-4d17-4165-f852613d41f3",start:149636,end:150721,data:{text:"\u53EF\u4EE5\u770B\u4E66\u5145\u7535",type:"Text"},type:"Prompter"},{uuid:"54df8874-f8ab-48c8-2c49-0999451bd2a6",start:150821,end:152068,data:{text:"\u4E5F\u53EF\u4EE5\u653E\u7A7A\u51A5\u60F3",type:"Text"},type:"Prompter"},{uuid:"67d03050-ad1d-4d65-590a-4370db4d9991",start:152168,end:153578,data:{text:"\u518D\u6765\u770B\u4E00\u4E0B\u7B7E\u7EA6\u5BA4",type:"Text"},type:"Prompter"},{uuid:"4f454854-12d5-4828-3255-69c2f552946c",start:153678,end:155622,data:{text:"\u7B7E\u7EA6\u5BA4\u53EF\u4EE5\u5BB9\u7EB3\u5341\u4E8C\u4E2A\u4EBA",type:"Text"},type:"Prompter"},{uuid:"a0a55818-a4ed-46ce-4338-2563248649de",start:155722,end:157225,data:{text:"\u9664\u4E86\u5BA2\u6237\u7B7E\u7EA6\u65F6\u7528",type:"Text"},type:"Prompter"},{uuid:"22cf6cb4-5465-42b8-5c75-aa1e28811ec9",start:157325,end:160500,data:{text:"\u65E5\u5E38\u4F1A\u8BAE\u3001\u57F9\u8BAD\u6D3B\u52A8\u90FD\u53EF\u4EE5\u5728\u8FD9\u4E2A\u7A7A\u95F4\u8FDB\u884C",type:"Text"},type:"Prompter"},{uuid:"96068a33-ea7f-4e10-8342-707d799f79b0",start:160600,end:161987,data:{text:"\u8FD9\u4E5F\u662F\u5927\u5E97\u7684\u4F18\u52BF",type:"Text"},type:"Prompter"},{uuid:"f9e3976f-203d-414d-18a9-23dedd89c20f",start:162087,end:163938,data:{text:"\u901A\u8FC7\u5B9A\u671F\u7CFB\u7EDF\u6027\u57F9\u8BAD",type:"Text"},type:"Prompter"},{uuid:"6b463257-0d4c-469b-d11d-1d1a123c454e",start:164038,end:165332,data:{text:"\u8BA9\u65B0\u4EBA\u8301\u58EE\u6210\u957F",type:"Text"},type:"Prompter"},{uuid:"9190706f-41a2-40d6-2e15-311ee0027a80",start:165432,end:167492,data:{text:"\u7B7E\u7EA6\u5BA4\u7684\u5916\u5899\u4E5F\u662F\u6587\u5316\u5899",type:"Text"},type:"Prompter"},{uuid:"7d5c1cf5-2d6f-42e9-eee4-f6b4a5772cd0",start:167592,end:169652,data:{text:"\u4E3A\u4E86\u6700\u5927\u5316\u6316\u6398\u65B0\u4EBA\u7684\u6F5C\u80FD",type:"Text"},type:"Prompter"},{uuid:"00de4d50-b5af-4d32-df04-b0135fb6d30b",start:169752,end:171487,data:{text:"\u6211\u4F1A\u4E3B\u52A8\u548C\u65B0\u4EBA\u63A5\u89E6",type:"Text"},type:"Prompter"},{uuid:"e218966f-0a5d-4126-004a-9f92aec88e2c",start:171587,end:173252,data:{text:"\u53D1\u73B0\u4ED6\u4EEC\u8EAB\u4E0A\u7684\u95EA\u5149\u70B9",type:"Text"},type:"Prompter"},{uuid:"1db42aae-6ac0-45a3-0a9f-5730b8323fcd",start:173352,end:176201,data:{text:"\u4ECE\u4E2D\u6811\u7ACB\u4F18\u79C0\u7684\u6807\u6746\u5728\u95E8\u5E97\u8FDB\u884C\u5BA3\u4F20",type:"Text"},type:"Prompter"},{uuid:"5964828d-c580-405e-47af-c37cf008b22b",start:176301,end:179545,data:{text:"\u5206\u522B\u6709\u4E1A\u7EE9\u6807\u6746\u3001\u4EF7\u503C\u89C2\u6807\u6746\u548C\u6587\u5316\u6807\u6746",type:"Text"},type:"Prompter"},{uuid:"5da47b79-ce6e-40a5-b1ae-6a4d4076b201",start:179645,end:182030,data:{text:"\u6587\u5316\u5899\u6B63\u5BF9\u7684\u662F\u96C6\u4E2D\u529E\u516C\u533A\u57DF",type:"Text"},type:"Prompter"},{uuid:"d29c8b23-cd62-4a58-aa1d-59d0ba3f39df",start:182130,end:186419,data:{text:"\u623F\u4EA7\u7ECF\u7EAA\u4EBA\u804C\u4E1A\u65E9\u5DF2\u4E0D\u662F\u9760\u8DD1\u817F\u3001\u6253\u7535\u8BDD\u6362\u53D6\u4E1A\u7EE9\u7684\u804C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"4ec9faa9-5780-4a4d-c0f2-c2180dd4c4ba",start:186519,end:190367,data:{text:"\u6211\u4EEC\u9700\u8981\u501F\u52A9\u8D1D\u58F3\u63D0\u4F9B\u7684\u7EBF\u4E0A\u5DE5\u5177\u7BA1\u7406\u623F\u6E90\u5BA2\u6E90\u4FE1\u606F",type:"Text"},type:"Prompter"},{uuid:"1e5e0163-3c32-416e-5fd6-3dfa7bcee00f",start:190467,end:192248,data:{text:"\u89C4\u8303\u5316\u3001\u6D41\u7A0B\u5316\u4F5C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"232052ba-47ca-4f07-0ed3-f0693a740a61",start:192348,end:196126,data:{text:"\u6240\u4EE5\u6211\u4F1A\u4E3A\u6BCF\u4E00\u540D\u5458\u5DE5\u914D\u5907\u7B14\u8BB0\u672C\u6216\u8005\u53F0\u5F0F\u7535\u8111",type:"Text"},type:"Prompter"},{uuid:"87df17c4-cc0f-41e0-fa01-7a58b00d8a36",start:196226,end:199006,data:{text:"\u518D\u5F80\u524D\u8D70\u662F\u7ECF\u7406\u529E\u516C\u5BA4\u548C\u8D22\u52A1\u5BA4",type:"Text"},type:"Prompter"},{uuid:"eae26a0c-d7ce-4c55-dbfd-8489222c05cb",start:199106,end:200446,data:{text:"\u8FD9\u8FB9\u4E5F\u662F\u6587\u5316\u5899",type:"Text"},type:"Prompter"},{uuid:"2449b4d6-501f-4c6d-ad0d-32cc262f8608",start:200546,end:202327,data:{text:"\u8BB0\u5F55\u4E86\u95E8\u5E97\u7684\u70B9\u70B9\u6EF4\u6EF4",type:"Text"},type:"Prompter"},{uuid:"60b31972-9429-41ee-714d-c8e94a98db81",start:202427,end:205393,data:{text:"\u6BCF\u4E00\u4EFD\u8363\u8A89\u3001\u6BCF\u4E00\u6B21\u56E2\u5EFA\u3001\u6BCF\u4E00\u671F\u57F9\u8BAD",type:"Text"},type:"Prompter"},{uuid:"5b8c1c36-d51f-4df4-0c2d-3b515a6adfee",start:205493,end:206717,data:{text:"\u90FD\u4F1A\u5C55\u793A\u5728\u8FD9\u91CC",type:"Text"},type:"Prompter"},{uuid:"11def882-b844-4d94-07de-a8d63781fb25",start:206817,end:208668,data:{text:"\u6211\u4EEC\u7684\u5E97\u662F\u4E00\u4E2A\u6709\u7231\u7684\u56E2\u961F",type:"Text"},type:"Prompter"},{uuid:"2a7d1d8d-0cd6-46f7-02a9-d728ef8e20dd",start:208768,end:210828,data:{text:"\u201C\u5BF9\u7ECF\u7EAA\u4EBA\u597D\u201D\u662F\u6211\u7684\u7528\u5DE5\u7406\u5FF5",type:"Text"},type:"Prompter"},{uuid:"cd70bcfc-a54d-4ad2-b833-b3815af4fe9b",start:210928,end:212988,data:{text:"\u8D70\u5728\u95E8\u5E97\u91CC\u6211\u7ECF\u5E38\u601D\u8003",type:"Text"},type:"Prompter"},{uuid:"2d789507-713a-4640-3730-81ac16c03c6c",start:213088,end:215543,data:{text:"\u600E\u4E48\u80FD\u8BA9\u5458\u5DE5\u4EEC\u50CF\u5728\u5BB6\u4E00\u822C\u8212\u9002",type:"Text"},type:"Prompter"},{uuid:"4d8060e1-b2f9-4dba-943a-7cf73f2ab030",start:215643,end:217308,data:{text:"\u4E8E\u662F\u5C31\u6709\u4E86\u8FD9\u5957\u5458\u5DE5\u67DC",type:"Text"},type:"Prompter"},{uuid:"0e10450e-175e-4a46-ec71-da7c9ae23a5d",start:217408,end:220258,data:{text:"\u6BCF\u4EBA\u4E00\u4E2A\uFF0C\u65E2\u4FDD\u8BC1\u5145\u8DB3\u7684\u50A8\u5B58\u7A7A\u95F4",type:"Text"},type:"Prompter"},{uuid:"1db16507-0c1c-4c8f-6f7f-ed9f9c9f1f48",start:220358,end:221977,data:{text:"\u8FD8\u80FD\u4FDD\u8BC1\u5DE5\u4F4D\u7684\u6574\u6D01",type:"Text"},type:"Prompter"},{uuid:"19bc0567-cc66-472c-481b-58ec8a64f1eb",start:222077,end:223301,data:{text:"\u9664\u4E86\u50A8\u7269\u67DC\u4E4B\u5916",type:"Text"},type:"Prompter"},{uuid:"4a3c01fa-e0e2-4604-776c-8c70f8991e5d",start:223401,end:225415,data:{text:"\u8FD9\u91CC\u8FD8\u8BBE\u6709\u5458\u5DE5\u81EA\u5DF1\u7684\u6C34\u5427",type:"Text"},type:"Prompter"},{uuid:"8b477eb7-452d-4bd9-b703-a981a689b622",start:225515,end:227691,data:{text:"\u6709\u996E\u6C34\u673A\u3001\u5FAE\u6CE2\u7089\u548C\u51B0\u7BB1",type:"Text"},type:"Prompter"},{uuid:"82c50a7e-0868-4464-58dc-f36a49d05e7b",start:227791,end:229317,data:{text:"\u6C34\u5427\u548C\u529E\u516C\u533A\u5206\u5F00",type:"Text"},type:"Prompter"},{uuid:"2c7f7ded-e44f-413f-0450-a52e4d821031",start:229417,end:231477,data:{text:"\u662F\u4E3A\u4E86\u5C0F\u4F19\u4F34\u5728\u5DE5\u4F5C\u95F4\u9699",type:"Text"},type:"Prompter"},{uuid:"bce4d35f-c88f-45c7-dba1-a21f69cba8a3",start:231577,end:233149,data:{text:"\u53EF\u4EE5\u8D77\u6765\u591A\u6D3B\u52A8\u6D3B\u52A8",type:"Text"},type:"Prompter"},{uuid:"352eabc5-35af-4e25-f8f5-d9241f213007",start:233249,end:235146,data:{text:"\u4EE5\u4E0A\u5C31\u662F\u95E8\u5E97\u7684\u57FA\u672C\u60C5\u51B5",type:"Text"},type:"Prompter"},{uuid:"50ef5685-b5a1-4e19-54e0-9271502cb835",start:235246,end:238072,data:{text:"\u5982\u679C\u60A8\u5BF9\u623F\u4EA7\u7ECF\u7EAA\u4EBA\u8FD9\u4EFD\u804C\u4E1A\u611F\u5174\u8DA3",type:"Text"},type:"Prompter"},{uuid:"883e92b3-ea04-4abe-6099-20a317808823",start:238172,end:240743,data:{text:"\u6211\u771F\u8BDA\u9080\u8BF7\u60A8\u6765\u5230\u6211\u7684\u95E8\u5E97\u5B9E\u5730\u8003\u5BDF",type:"Text"},type:"Prompter"},{uuid:"7068453e-b2cd-4736-9a27-cf98ff3dd791",start:240843,end:243669,data:{text:"\u8FD9\u662F\u4E00\u4EFD\u4ED8\u51FA\u5373\u6240\u5F97\u3001\u6210\u957F\u4E0D\u8BBE\u9650\u7684\u804C\u4E1A",type:"Text"},type:"Prompter"},{uuid:"84a4e247-c3e9-4a20-ae14-80c1567c96f2",start:243769,end:246944,data:{text:"\u53EF\u4EE5\u5F97\u5230\u4E13\u4E1A\u7684\u57F9\u8BAD\u3001\u516C\u6B63\u900F\u660E\u7684\u664B\u5347\u901A\u9053",type:"Text"},type:"Prompter"},{uuid:"e1ba1956-24b5-4afc-ca16-97c4747c4bb4",start:247044,end:248664,data:{text:"\u91D1\u724C\u54C1\u8D28\u96C7\u4E3B,\u503C\u5F97\u6258\u4ED8\uFF01",type:"Text"},type:"Prompter"},{uuid:"66b25387-00b6-4ca8-16b9-a2a5447cbfe9",type:"InfoPanel",start:233200,end:236200,parsed:!1,data:{url:"//vrlab-public.ljcdn.com/release/seesay/tools/4___35fe05bbba927f9dedee4de525d7394f.jpg",type:"Image"}},{uuid:"02fed567-054d-4f17-9051-dc63f7632cbe",type:"CameraMovement",start:0,end:2e3,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.04438022675004691,longitude:5.232986472982764}},{uuid:"1024856a-5809-4492-0af6-d0f28b1bb8fc",type:"CameraMovement",start:70300,end:71800,parsed:!1,data:{effect:"Move",panoIndex:10,fov:120,mode:"Panorama",latitude:.0030048662963554655,longitude:1.1385672815664698}},{uuid:"70fc7728-cd97-4b2c-1400-2651dc6044bf",type:"CameraMovement",start:102460,end:103950,parsed:!1,data:{effect:"Move",panoIndex:12,fov:102,mode:"Panorama",latitude:.09535367780803297,longitude:4.538265211748573}},{uuid:"d2784b77-93fc-4788-4d73-564c946e6272",type:"CameraMovement",start:152100,end:153600,parsed:!1,data:{effect:"Move",panoIndex:14,fov:102,mode:"Panorama",latitude:.13272445414646844,longitude:.5147689397444273}},{uuid:"f970f558-3c7a-42d0-ad46-9feb99f04ff6",type:"CameraMovement",start:165380,end:166880,parsed:!1,data:{effect:"Move",panoIndex:18,fov:120,mode:"Panorama",latitude:.010150394708099617,longitude:1.109313455794532}},{uuid:"2173534e-8d54-4197-bb79-a7244ccac6b4",type:"CameraMovement",start:199050,end:201050,parsed:!1,data:{effect:"Move",panoIndex:28,fov:120,mode:"Panorama",latitude:.09871290045418332,longitude:4.731142937321037}},{uuid:"00f378d7-3c72-4f68-32fb-6382069d30f0",type:"CameraMovement",start:240800,end:242300,parsed:!1,data:{effect:"Move",panoIndex:0,fov:120,mode:"Panorama",latitude:.04438022675004691,longitude:5.232986472982764}}]};function D(){const u=e.exports.useRef(!1),{show:a,play:t,hide:r,pause:d,load:p}=i(),f=C();return Object.assign(window,{$load:p,$show:a}),E("div",{className:"btns",children:E("button",{onClick:async()=>{if(!f){d(),r();return}a(),u.current?t():(u.current=!0,p(B))},children:f?"\u64AD\u653E":"\u6682\u505C"})})}export{D as A,A as V};
@@ -3692,7 +3692,7 @@ Z
3692
3692
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var storedAnnotationsSymbol=Symbol("mobx-stored-annotations");function createDecoratorAnnotation(_u){function $u(Bu,Ru){storeAnnotation(Bu,Ru,_u)}return Object.assign($u,_u)}function storeAnnotation(_u,$u,Bu){hasProp(_u,storedAnnotationsSymbol)||addHiddenProp(_u,storedAnnotationsSymbol,_extends({},_u[storedAnnotationsSymbol])),isOverride(Bu)||(_u[storedAnnotationsSymbol][$u]=Bu)}function collectStoredAnnotations(_u){return hasProp(_u,storedAnnotationsSymbol)||addHiddenProp(_u,storedAnnotationsSymbol,_extends({},_u[storedAnnotationsSymbol])),_u[storedAnnotationsSymbol]}var $mobx=Symbol("mobx administration"),Atom=function(){function _u(Bu){Bu===void 0&&(Bu="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=Bu}var $u=_u.prototype;return $u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(Ru){return Ru()})},$u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(Ru){return Ru()})},$u.reportObserved=function(){return reportObserved(this)},$u.reportChanged=function(){startBatch(),propagateChanged(this),endBatch()},$u.toString=function(){return this.name_},_u}(),isAtom=createInstanceofPredicate("Atom",Atom);function createAtom(_u,$u,Bu){$u===void 0&&($u=noop),Bu===void 0&&(Bu=noop);var Ru=new Atom(_u);return $u!==noop&&onBecomeObserved(Ru,$u),Bu!==noop&&onBecomeUnobserved(Ru,Bu),Ru}function identityComparer(_u,$u){return _u===$u}function structuralComparer(_u,$u){return deepEqual(_u,$u)}function shallowComparer(_u,$u){return deepEqual(_u,$u,1)}function defaultComparer(_u,$u){return Object.is?Object.is(_u,$u):_u===$u?_u!==0||1/_u===1/$u:_u!==_u&&$u!==$u}var comparer={identity:identityComparer,structural:structuralComparer,default:defaultComparer,shallow:shallowComparer};function deepEnhancer(_u,$u,Bu){return isObservable(_u)?_u:Array.isArray(_u)?observable.array(_u,{name:Bu}):isPlainObject(_u)?observable.object(_u,void 0,{name:Bu}):isES6Map(_u)?observable.map(_u,{name:Bu}):isES6Set(_u)?observable.set(_u,{name:Bu}):typeof _u=="function"&&!isAction(_u)&&!isFlow(_u)?isGenerator(_u)?flow(_u):autoAction(Bu,_u):_u}function shallowEnhancer(_u,$u,Bu){if(_u==null||isObservableObject(_u)||isObservableArray(_u)||isObservableMap(_u)||isObservableSet(_u))return _u;if(Array.isArray(_u))return observable.array(_u,{name:Bu,deep:!1});if(isPlainObject(_u))return observable.object(_u,void 0,{name:Bu,deep:!1});if(isES6Map(_u))return observable.map(_u,{name:Bu,deep:!1});if(isES6Set(_u))return observable.set(_u,{name:Bu,deep:!1})}function referenceEnhancer(_u){return _u}function refStructEnhancer(_u,$u){return deepEqual(_u,$u)?$u:_u}var OVERRIDE="override";function isOverride(_u){return _u.annotationType_===OVERRIDE}function createActionAnnotation(_u,$u){return{annotationType_:_u,options_:$u,make_:make_$1,extend_:extend_$1}}function make_$1(_u,$u,Bu,Ru){var Lu;if((Lu=this.options_)!=null&&Lu.bound)return this.extend_(_u,$u,Bu,!1)===null?0:1;if(Ru===_u.target_)return this.extend_(_u,$u,Bu,!1)===null?0:2;if(isAction(Bu.value))return 1;var Ou=createActionDescriptor(_u,this,$u,Bu,!1);return defineProperty(Ru,$u,Ou),2}function extend_$1(_u,$u,Bu,Ru){var Lu=createActionDescriptor(_u,this,$u,Bu);return _u.defineProperty_($u,Lu,Ru)}function assertActionDescriptor(_u,$u,Bu,Ru){$u.annotationType_,Ru.value}function createActionDescriptor(_u,$u,Bu,Ru,Lu){var Ou,Fu,Nu,Vu,Uu,Gu,zu;Lu===void 0&&(Lu=globalState.safeDescriptors),assertActionDescriptor(_u,$u,Bu,Ru);var Hu=Ru.value;if((Ou=$u.options_)!=null&&Ou.bound){var ju;Hu=Hu.bind((ju=_u.proxy_)!=null?ju:_u.target_)}return{value:createAction((Fu=(Nu=$u.options_)==null?void 0:Nu.name)!=null?Fu:Bu.toString(),Hu,(Vu=(Uu=$u.options_)==null?void 0:Uu.autoAction)!=null?Vu:!1,(Gu=$u.options_)!=null&&Gu.bound?(zu=_u.proxy_)!=null?zu:_u.target_:void 0),configurable:Lu?_u.isPlainObject_:!0,enumerable:!1,writable:!Lu}}function createFlowAnnotation(_u,$u){return{annotationType_:_u,options_:$u,make_:make_$2,extend_:extend_$2}}function make_$2(_u,$u,Bu,Ru){var Lu;if(Ru===_u.target_)return this.extend_(_u,$u,Bu,!1)===null?0:2;if((Lu=this.options_)!=null&&Lu.bound&&(!hasProp(_u.target_,$u)||!isFlow(_u.target_[$u]))&&this.extend_(_u,$u,Bu,!1)===null)return 0;if(isFlow(Bu.value))return 1;var Ou=createFlowDescriptor(_u,this,$u,Bu,!1,!1);return defineProperty(Ru,$u,Ou),2}function extend_$2(_u,$u,Bu,Ru){var Lu,Ou=createFlowDescriptor(_u,this,$u,Bu,(Lu=this.options_)==null?void 0:Lu.bound);return _u.defineProperty_($u,Ou,Ru)}function assertFlowDescriptor(_u,$u,Bu,Ru){$u.annotationType_,Ru.value}function createFlowDescriptor(_u,$u,Bu,Ru,Lu,Ou){Ou===void 0&&(Ou=globalState.safeDescriptors),assertFlowDescriptor(_u,$u,Bu,Ru);var Fu=Ru.value;if(isFlow(Fu)||(Fu=flow(Fu)),Lu){var Nu;Fu=Fu.bind((Nu=_u.proxy_)!=null?Nu:_u.target_),Fu.isMobXFlow=!0}return{value:Fu,configurable:Ou?_u.isPlainObject_:!0,enumerable:!1,writable:!Ou}}function createComputedAnnotation(_u,$u){return{annotationType_:_u,options_:$u,make_:make_$3,extend_:extend_$3}}function make_$3(_u,$u,Bu){return this.extend_(_u,$u,Bu,!1)===null?0:1}function extend_$3(_u,$u,Bu,Ru){return assertComputedDescriptor(_u,this,$u,Bu),_u.defineComputedProperty_($u,_extends({},this.options_,{get:Bu.get,set:Bu.set}),Ru)}function assertComputedDescriptor(_u,$u,Bu,Ru){$u.annotationType_,Ru.get}function createObservableAnnotation(_u,$u){return{annotationType_:_u,options_:$u,make_:make_$4,extend_:extend_$4}}function make_$4(_u,$u,Bu){return this.extend_(_u,$u,Bu,!1)===null?0:1}function extend_$4(_u,$u,Bu,Ru){var Lu,Ou;return assertObservableDescriptor(_u,this),_u.defineObservableProperty_($u,Bu.value,(Lu=(Ou=this.options_)==null?void 0:Ou.enhancer)!=null?Lu:deepEnhancer,Ru)}function assertObservableDescriptor(_u,$u,Bu,Ru){$u.annotationType_}var AUTO="true",autoAnnotation=createAutoAnnotation();function createAutoAnnotation(_u){return{annotationType_:AUTO,options_:_u,make_:make_$5,extend_:extend_$5}}function make_$5(_u,$u,Bu,Ru){var Lu,Ou;if(Bu.get)return computed.make_(_u,$u,Bu,Ru);if(Bu.set){var Fu=createAction($u.toString(),Bu.set);return Ru===_u.target_?_u.defineProperty_($u,{configurable:globalState.safeDescriptors?_u.isPlainObject_:!0,set:Fu})===null?0:2:(defineProperty(Ru,$u,{configurable:!0,set:Fu}),2)}if(Ru!==_u.target_&&typeof Bu.value=="function"){var Nu;if(isGenerator(Bu.value)){var Vu,Uu=(Vu=this.options_)!=null&&Vu.autoBind?flow.bound:flow;return Uu.make_(_u,$u,Bu,Ru)}var Gu=(Nu=this.options_)!=null&&Nu.autoBind?autoAction.bound:autoAction;return Gu.make_(_u,$u,Bu,Ru)}var zu=((Lu=this.options_)==null?void 0:Lu.deep)===!1?observable.ref:observable;if(typeof Bu.value=="function"&&(Ou=this.options_)!=null&&Ou.autoBind){var Hu;Bu.value=Bu.value.bind((Hu=_u.proxy_)!=null?Hu:_u.target_)}return zu.make_(_u,$u,Bu,Ru)}function extend_$5(_u,$u,Bu,Ru){var Lu,Ou;if(Bu.get)return computed.extend_(_u,$u,Bu,Ru);if(Bu.set)return _u.defineProperty_($u,{configurable:globalState.safeDescriptors?_u.isPlainObject_:!0,set:createAction($u.toString(),Bu.set)},Ru);if(typeof Bu.value=="function"&&(Lu=this.options_)!=null&&Lu.autoBind){var Fu;Bu.value=Bu.value.bind((Fu=_u.proxy_)!=null?Fu:_u.target_)}var Nu=((Ou=this.options_)==null?void 0:Ou.deep)===!1?observable.ref:observable;return Nu.extend_(_u,$u,Bu,Ru)}var OBSERVABLE="observable",OBSERVABLE_REF="observable.ref",OBSERVABLE_SHALLOW="observable.shallow",OBSERVABLE_STRUCT="observable.struct",defaultCreateObservableOptions={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(defaultCreateObservableOptions);function asCreateObservableOptions(_u){return _u||defaultCreateObservableOptions}var observableAnnotation=createObservableAnnotation(OBSERVABLE),observableRefAnnotation=createObservableAnnotation(OBSERVABLE_REF,{enhancer:referenceEnhancer}),observableShallowAnnotation=createObservableAnnotation(OBSERVABLE_SHALLOW,{enhancer:shallowEnhancer}),observableStructAnnotation=createObservableAnnotation(OBSERVABLE_STRUCT,{enhancer:refStructEnhancer}),observableDecoratorAnnotation=createDecoratorAnnotation(observableAnnotation);function getEnhancerFromOptions(_u){return _u.deep===!0?deepEnhancer:_u.deep===!1?referenceEnhancer:getEnhancerFromAnnotation(_u.defaultDecorator)}function getAnnotationFromOptions(_u){var $u;return _u?($u=_u.defaultDecorator)!=null?$u:createAutoAnnotation(_u):void 0}function getEnhancerFromAnnotation(_u){var $u,Bu;return _u&&($u=(Bu=_u.options_)==null?void 0:Bu.enhancer)!=null?$u:deepEnhancer}function createObservable(_u,$u,Bu){if(isStringish($u)){storeAnnotation(_u,$u,observableAnnotation);return}return isObservable(_u)?_u:isPlainObject(_u)?observable.object(_u,$u,Bu):Array.isArray(_u)?observable.array(_u,$u):isES6Map(_u)?observable.map(_u,$u):isES6Set(_u)?observable.set(_u,$u):typeof _u=="object"&&_u!==null?_u:observable.box(_u,$u)}Object.assign(createObservable,observableDecoratorAnnotation);var observableFactories={box:function _u($u,Bu){var Ru=asCreateObservableOptions(Bu);return new ObservableValue($u,getEnhancerFromOptions(Ru),Ru.name,!0,Ru.equals)},array:function _u($u,Bu){var Ru=asCreateObservableOptions(Bu);return(globalState.useProxies===!1||Ru.proxy===!1?createLegacyArray:createObservableArray)($u,getEnhancerFromOptions(Ru),Ru.name)},map:function _u($u,Bu){var Ru=asCreateObservableOptions(Bu);return new ObservableMap($u,getEnhancerFromOptions(Ru),Ru.name)},set:function _u($u,Bu){var Ru=asCreateObservableOptions(Bu);return new ObservableSet($u,getEnhancerFromOptions(Ru),Ru.name)},object:function _u($u,Bu,Ru){return extendObservable(globalState.useProxies===!1||(Ru==null?void 0:Ru.proxy)===!1?asObservableObject({},Ru):asDynamicObservableObject({},Ru),$u,Bu)},ref:createDecoratorAnnotation(observableRefAnnotation),shallow:createDecoratorAnnotation(observableShallowAnnotation),deep:observableDecoratorAnnotation,struct:createDecoratorAnnotation(observableStructAnnotation)},observable=assign(createObservable,observableFactories),COMPUTED="computed",COMPUTED_STRUCT="computed.struct",computedAnnotation=createComputedAnnotation(COMPUTED),computedStructAnnotation=createComputedAnnotation(COMPUTED_STRUCT,{equals:comparer.structural}),computed=function _u($u,Bu){if(isStringish(Bu))return storeAnnotation($u,Bu,computedAnnotation);if(isPlainObject($u))return createDecoratorAnnotation(createComputedAnnotation(COMPUTED,$u));var Ru=isPlainObject(Bu)?Bu:{};return Ru.get=$u,Ru.name||(Ru.name=$u.name||""),new ComputedValue(Ru)};Object.assign(computed,computedAnnotation);computed.struct=createDecoratorAnnotation(computedStructAnnotation);var _getDescriptor$config,_getDescriptor,currentActionId=0,nextActionId=1,isFunctionNameConfigurable=(_getDescriptor$config=(_getDescriptor=getDescriptor(function(){},"name"))==null?void 0:_getDescriptor.configurable)!=null?_getDescriptor$config:!1,tmpNameDescriptor={value:"action",configurable:!0,writable:!1,enumerable:!1};function createAction(_u,$u,Bu,Ru){Bu===void 0&&(Bu=!1);function Lu(){return executeAction(_u,Bu,$u,Ru||this,arguments)}return Lu.isMobxAction=!0,isFunctionNameConfigurable&&(tmpNameDescriptor.value=_u,Object.defineProperty(Lu,"name",tmpNameDescriptor)),Lu}function executeAction(_u,$u,Bu,Ru,Lu){var Ou=_startAction(_u,$u);try{return Bu.apply(Ru,Lu)}catch(Fu){throw Ou.error_=Fu,Fu}finally{_endAction(Ou)}}function _startAction(_u,$u,Bu,Ru){var Lu=!1,Ou=0,Fu=globalState.trackingDerivation,Nu=!$u||!Fu;startBatch();var Vu=globalState.allowStateChanges;Nu&&(untrackedStart(),Vu=allowStateChangesStart(!0));var Uu=allowStateReadsStart(!0),Gu={runAsAction_:Nu,prevDerivation_:Fu,prevAllowStateChanges_:Vu,prevAllowStateReads_:Uu,notifySpy_:Lu,startTime_:Ou,actionId_:nextActionId++,parentActionId_:currentActionId};return currentActionId=Gu.actionId_,Gu}function _endAction(_u){currentActionId!==_u.actionId_&&die(30),currentActionId=_u.parentActionId_,_u.error_!==void 0&&(globalState.suppressReactionErrors=!0),allowStateChangesEnd(_u.prevAllowStateChanges_),allowStateReadsEnd(_u.prevAllowStateReads_),endBatch(),_u.runAsAction_&&untrackedEnd(_u.prevDerivation_),globalState.suppressReactionErrors=!1}function allowStateChanges(_u,$u){var Bu=allowStateChangesStart(_u);try{return $u()}finally{allowStateChangesEnd(Bu)}}function allowStateChangesStart(_u){var $u=globalState.allowStateChanges;return globalState.allowStateChanges=_u,$u}function allowStateChangesEnd(_u){globalState.allowStateChanges=_u}var _Symbol$toPrimitive;_Symbol$toPrimitive=Symbol.toPrimitive;var ObservableValue=function(_u){_inheritsLoose($u,_u);function $u(Ru,Lu,Ou,Fu,Nu){var Vu;return Ou===void 0&&(Ou="ObservableValue"),Nu===void 0&&(Nu=comparer.default),Vu=_u.call(this,Ou)||this,Vu.enhancer=void 0,Vu.name_=void 0,Vu.equals=void 0,Vu.hasUnreportedChange_=!1,Vu.interceptors_=void 0,Vu.changeListeners_=void 0,Vu.value_=void 0,Vu.dehancer=void 0,Vu.enhancer=Lu,Vu.name_=Ou,Vu.equals=Nu,Vu.value_=Lu(Ru,void 0,Ou),Vu}var Bu=$u.prototype;return Bu.dehanceValue=function(Lu){return this.dehancer!==void 0?this.dehancer(Lu):Lu},Bu.set=function(Lu){this.value_,Lu=this.prepareNewValue_(Lu),Lu!==globalState.UNCHANGED&&this.setNewValue_(Lu)},Bu.prepareNewValue_=function(Lu){if(hasInterceptors(this)){var Ou=interceptChange(this,{object:this,type:UPDATE,newValue:Lu});if(!Ou)return globalState.UNCHANGED;Lu=Ou.newValue}return Lu=this.enhancer(Lu,this.value_,this.name_),this.equals(this.value_,Lu)?globalState.UNCHANGED:Lu},Bu.setNewValue_=function(Lu){var Ou=this.value_;this.value_=Lu,this.reportChanged(),hasListeners(this)&&notifyListeners(this,{type:UPDATE,object:this,newValue:Lu,oldValue:Ou})},Bu.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},Bu.intercept_=function(Lu){return registerInterceptor(this,Lu)},Bu.observe_=function(Lu,Ou){return Ou&&Lu({observableKind:"value",debugObjectName:this.name_,object:this,type:UPDATE,newValue:this.value_,oldValue:void 0}),registerListener(this,Lu)},Bu.raw=function(){return this.value_},Bu.toJSON=function(){return this.get()},Bu.toString=function(){return this.name_+"["+this.value_+"]"},Bu.valueOf=function(){return toPrimitive(this.get())},Bu[_Symbol$toPrimitive]=function(){return this.valueOf()},$u}(Atom),_Symbol$toPrimitive$1;_Symbol$toPrimitive$1=Symbol.toPrimitive;var ComputedValue=function(){function _u(Bu){this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=IDerivationState_.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new CaughtException(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=TraceMode.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,Bu.get||die(31),this.derivation=Bu.get,this.name_=Bu.name||"ComputedValue",Bu.set&&(this.setter_=createAction("ComputedValue-setter",Bu.set)),this.equals_=Bu.equals||(Bu.compareStructural||Bu.struct?comparer.structural:comparer.default),this.scope_=Bu.context,this.requiresReaction_=Bu.requiresReaction,this.keepAlive_=!!Bu.keepAlive}var $u=_u.prototype;return $u.onBecomeStale_=function(){propagateMaybeChanged(this)},$u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(Ru){return Ru()})},$u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(Ru){return Ru()})},$u.get=function(){if(this.isComputing_&&die(32,this.name_,this.derivation),globalState.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)shouldCompute(this)&&(this.warnAboutUntrackedRead_(),startBatch(),this.value_=this.computeValue_(!1),endBatch());else if(reportObserved(this),shouldCompute(this)){var Ru=globalState.trackingContext;this.keepAlive_&&!Ru&&(globalState.trackingContext=this),this.trackAndCompute()&&propagateChangeConfirmed(this),globalState.trackingContext=Ru}var Lu=this.value_;if(isCaughtException(Lu))throw Lu.cause;return Lu},$u.set=function(Ru){if(this.setter_){this.isRunningSetter_&&die(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,Ru)}finally{this.isRunningSetter_=!1}}else die(34,this.name_)},$u.trackAndCompute=function(){var Ru=this.value_,Lu=this.dependenciesState_===IDerivationState_.NOT_TRACKING_,Ou=this.computeValue_(!0),Fu=Lu||isCaughtException(Ru)||isCaughtException(Ou)||!this.equals_(Ru,Ou);return Fu&&(this.value_=Ou),Fu},$u.computeValue_=function(Ru){this.isComputing_=!0;var Lu=allowStateChangesStart(!1),Ou;if(Ru)Ou=trackDerivedFunction(this,this.derivation,this.scope_);else if(globalState.disableErrorBoundaries===!0)Ou=this.derivation.call(this.scope_);else try{Ou=this.derivation.call(this.scope_)}catch(Fu){Ou=new CaughtException(Fu)}return allowStateChangesEnd(Lu),this.isComputing_=!1,Ou},$u.suspend_=function(){this.keepAlive_||(clearObserving(this),this.value_=void 0)},$u.observe_=function(Ru,Lu){var Ou=this,Fu=!0,Nu=void 0;return autorun(function(){var Vu=Ou.get();if(!Fu||Lu){var Uu=untrackedStart();Ru({observableKind:"computed",debugObjectName:Ou.name_,type:UPDATE,object:Ou,newValue:Vu,oldValue:Nu}),untrackedEnd(Uu)}Fu=!1,Nu=Vu})},$u.warnAboutUntrackedRead_=function(){},$u.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},$u.valueOf=function(){return toPrimitive(this.get())},$u[_Symbol$toPrimitive$1]=function(){return this.valueOf()},_u}(),isComputedValue=createInstanceofPredicate("ComputedValue",ComputedValue),IDerivationState_;(function(_u){_u[_u.NOT_TRACKING_=-1]="NOT_TRACKING_",_u[_u.UP_TO_DATE_=0]="UP_TO_DATE_",_u[_u.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",_u[_u.STALE_=2]="STALE_"})(IDerivationState_||(IDerivationState_={}));var TraceMode;(function(_u){_u[_u.NONE=0]="NONE",_u[_u.LOG=1]="LOG",_u[_u.BREAK=2]="BREAK"})(TraceMode||(TraceMode={}));var CaughtException=function _u($u){this.cause=void 0,this.cause=$u};function isCaughtException(_u){return _u instanceof CaughtException}function shouldCompute(_u){switch(_u.dependenciesState_){case IDerivationState_.UP_TO_DATE_:return!1;case IDerivationState_.NOT_TRACKING_:case IDerivationState_.STALE_:return!0;case IDerivationState_.POSSIBLY_STALE_:{for(var $u=allowStateReadsStart(!0),Bu=untrackedStart(),Ru=_u.observing_,Lu=Ru.length,Ou=0;Ou<Lu;Ou++){var Fu=Ru[Ou];if(isComputedValue(Fu)){if(globalState.disableErrorBoundaries)Fu.get();else try{Fu.get()}catch{return untrackedEnd(Bu),allowStateReadsEnd($u),!0}if(_u.dependenciesState_===IDerivationState_.STALE_)return untrackedEnd(Bu),allowStateReadsEnd($u),!0}}return changeDependenciesStateTo0(_u),untrackedEnd(Bu),allowStateReadsEnd($u),!1}}}function checkIfStateModificationsAreAllowed(_u){}function trackDerivedFunction(_u,$u,Bu){var Ru=allowStateReadsStart(!0);changeDependenciesStateTo0(_u),_u.newObserving_=new Array(_u.observing_.length+100),_u.unboundDepsCount_=0,_u.runId_=++globalState.runId;var Lu=globalState.trackingDerivation;globalState.trackingDerivation=_u,globalState.inBatch++;var Ou;if(globalState.disableErrorBoundaries===!0)Ou=$u.call(Bu);else try{Ou=$u.call(Bu)}catch(Fu){Ou=new CaughtException(Fu)}return globalState.inBatch--,globalState.trackingDerivation=Lu,bindDependencies(_u),allowStateReadsEnd(Ru),Ou}function bindDependencies(_u){for(var $u=_u.observing_,Bu=_u.observing_=_u.newObserving_,Ru=IDerivationState_.UP_TO_DATE_,Lu=0,Ou=_u.unboundDepsCount_,Fu=0;Fu<Ou;Fu++){var Nu=Bu[Fu];Nu.diffValue_===0&&(Nu.diffValue_=1,Lu!==Fu&&(Bu[Lu]=Nu),Lu++),Nu.dependenciesState_>Ru&&(Ru=Nu.dependenciesState_)}for(Bu.length=Lu,_u.newObserving_=null,Ou=$u.length;Ou--;){var Vu=$u[Ou];Vu.diffValue_===0&&removeObserver(Vu,_u),Vu.diffValue_=0}for(;Lu--;){var Uu=Bu[Lu];Uu.diffValue_===1&&(Uu.diffValue_=0,addObserver(Uu,_u))}Ru!==IDerivationState_.UP_TO_DATE_&&(_u.dependenciesState_=Ru,_u.onBecomeStale_())}function clearObserving(_u){var $u=_u.observing_;_u.observing_=[];for(var Bu=$u.length;Bu--;)removeObserver($u[Bu],_u);_u.dependenciesState_=IDerivationState_.NOT_TRACKING_}function untracked(_u){var $u=untrackedStart();try{return _u()}finally{untrackedEnd($u)}}function untrackedStart(){var _u=globalState.trackingDerivation;return globalState.trackingDerivation=null,_u}function untrackedEnd(_u){globalState.trackingDerivation=_u}function allowStateReadsStart(_u){var $u=globalState.allowStateReads;return globalState.allowStateReads=_u,$u}function allowStateReadsEnd(_u){globalState.allowStateReads=_u}function changeDependenciesStateTo0(_u){if(_u.dependenciesState_!==IDerivationState_.UP_TO_DATE_){_u.dependenciesState_=IDerivationState_.UP_TO_DATE_;for(var $u=_u.observing_,Bu=$u.length;Bu--;)$u[Bu].lowestObserverState_=IDerivationState_.UP_TO_DATE_}}var MobXGlobals=function _u(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},canMergeGlobalState=!0,isolateCalled=!1,globalState=function(){var _u=getGlobal();return _u.__mobxInstanceCount>0&&!_u.__mobxGlobals&&(canMergeGlobalState=!1),_u.__mobxGlobals&&_u.__mobxGlobals.version!==new MobXGlobals().version&&(canMergeGlobalState=!1),canMergeGlobalState?_u.__mobxGlobals?(_u.__mobxInstanceCount+=1,_u.__mobxGlobals.UNCHANGED||(_u.__mobxGlobals.UNCHANGED={}),_u.__mobxGlobals):(_u.__mobxInstanceCount=1,_u.__mobxGlobals=new MobXGlobals):(setTimeout(function(){isolateCalled||die(35)},1),new MobXGlobals)}();function isolateGlobalState(){if((globalState.pendingReactions.length||globalState.inBatch||globalState.isRunningReactions)&&die(36),isolateCalled=!0,canMergeGlobalState){var _u=getGlobal();--_u.__mobxInstanceCount===0&&(_u.__mobxGlobals=void 0),globalState=new MobXGlobals}}function addObserver(_u,$u){_u.observers_.add($u),_u.lowestObserverState_>$u.dependenciesState_&&(_u.lowestObserverState_=$u.dependenciesState_)}function removeObserver(_u,$u){_u.observers_.delete($u),_u.observers_.size===0&&queueForUnobservation(_u)}function queueForUnobservation(_u){_u.isPendingUnobservation_===!1&&(_u.isPendingUnobservation_=!0,globalState.pendingUnobservations.push(_u))}function startBatch(){globalState.inBatch++}function endBatch(){if(--globalState.inBatch===0){runReactions();for(var _u=globalState.pendingUnobservations,$u=0;$u<_u.length;$u++){var Bu=_u[$u];Bu.isPendingUnobservation_=!1,Bu.observers_.size===0&&(Bu.isBeingObserved_&&(Bu.isBeingObserved_=!1,Bu.onBUO()),Bu instanceof ComputedValue&&Bu.suspend_())}globalState.pendingUnobservations=[]}}function reportObserved(_u){var $u=globalState.trackingDerivation;return $u!==null?($u.runId_!==_u.lastAccessedBy_&&(_u.lastAccessedBy_=$u.runId_,$u.newObserving_[$u.unboundDepsCount_++]=_u,!_u.isBeingObserved_&&globalState.trackingContext&&(_u.isBeingObserved_=!0,_u.onBO())),!0):(_u.observers_.size===0&&globalState.inBatch>0&&queueForUnobservation(_u),!1)}function propagateChanged(_u){_u.lowestObserverState_!==IDerivationState_.STALE_&&(_u.lowestObserverState_=IDerivationState_.STALE_,_u.observers_.forEach(function($u){$u.dependenciesState_===IDerivationState_.UP_TO_DATE_&&$u.onBecomeStale_(),$u.dependenciesState_=IDerivationState_.STALE_}))}function propagateChangeConfirmed(_u){_u.lowestObserverState_!==IDerivationState_.STALE_&&(_u.lowestObserverState_=IDerivationState_.STALE_,_u.observers_.forEach(function($u){$u.dependenciesState_===IDerivationState_.POSSIBLY_STALE_?$u.dependenciesState_=IDerivationState_.STALE_:$u.dependenciesState_===IDerivationState_.UP_TO_DATE_&&(_u.lowestObserverState_=IDerivationState_.UP_TO_DATE_)}))}function propagateMaybeChanged(_u){_u.lowestObserverState_===IDerivationState_.UP_TO_DATE_&&(_u.lowestObserverState_=IDerivationState_.POSSIBLY_STALE_,_u.observers_.forEach(function($u){$u.dependenciesState_===IDerivationState_.UP_TO_DATE_&&($u.dependenciesState_=IDerivationState_.POSSIBLY_STALE_,$u.onBecomeStale_())}))}var Reaction=function(){function _u(Bu,Ru,Lu,Ou){Bu===void 0&&(Bu="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=IDerivationState_.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=TraceMode.NONE,this.name_=Bu,this.onInvalidate_=Ru,this.errorHandler_=Lu,this.requiresObservable_=Ou}var $u=_u.prototype;return $u.onBecomeStale_=function(){this.schedule_()},$u.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,globalState.pendingReactions.push(this),runReactions())},$u.isScheduled=function(){return this.isScheduled_},$u.runReaction_=function(){if(!this.isDisposed_){startBatch(),this.isScheduled_=!1;var Ru=globalState.trackingContext;if(globalState.trackingContext=this,shouldCompute(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(Lu){this.reportExceptionInDerivation_(Lu)}}globalState.trackingContext=Ru,endBatch()}},$u.track=function(Ru){if(!this.isDisposed_){startBatch(),this.isRunning_=!0;var Lu=globalState.trackingContext;globalState.trackingContext=this;var Ou=trackDerivedFunction(this,Ru,void 0);globalState.trackingContext=Lu,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&clearObserving(this),isCaughtException(Ou)&&this.reportExceptionInDerivation_(Ou.cause),endBatch()}},$u.reportExceptionInDerivation_=function(Ru){var Lu=this;if(this.errorHandler_){this.errorHandler_(Ru,this);return}if(globalState.disableErrorBoundaries)throw Ru;var Ou="[mobx] uncaught error in '"+this+"'";globalState.suppressReactionErrors||console.error(Ou,Ru),globalState.globalReactionErrorHandlers.forEach(function(Fu){return Fu(Ru,Lu)})},$u.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(startBatch(),clearObserving(this),endBatch()))},$u.getDisposer_=function(){var Ru=this.dispose.bind(this);return Ru[$mobx]=this,Ru},$u.toString=function(){return"Reaction["+this.name_+"]"},$u.trace=function(Ru){Ru===void 0&&(Ru=!1),trace(this,Ru)},_u}(),MAX_REACTION_ITERATIONS=100,reactionScheduler=function _u($u){return $u()};function runReactions(){globalState.inBatch>0||globalState.isRunningReactions||reactionScheduler(runReactionsHelper)}function runReactionsHelper(){globalState.isRunningReactions=!0;for(var _u=globalState.pendingReactions,$u=0;_u.length>0;){++$u===MAX_REACTION_ITERATIONS&&(console.error("[mobx] cycle in reaction: "+_u[0]),_u.splice(0));for(var Bu=_u.splice(0),Ru=0,Lu=Bu.length;Ru<Lu;Ru++)Bu[Ru].runReaction_()}globalState.isRunningReactions=!1}var isReaction=createInstanceofPredicate("Reaction",Reaction);function setReactionScheduler(_u){var $u=reactionScheduler;reactionScheduler=function(Ru){return _u(function(){return $u(Ru)})}}function isSpyEnabled(){return!1}function spyReport(_u){}function spyReportStart(_u){}function spyReportEnd(_u){}function spy(_u){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ACTION="action",ACTION_BOUND="action.bound",AUTOACTION="autoAction",AUTOACTION_BOUND="autoAction.bound",DEFAULT_ACTION_NAME="<unnamed action>",actionAnnotation=createActionAnnotation(ACTION),actionBoundAnnotation=createActionAnnotation(ACTION_BOUND,{bound:!0}),autoActionAnnotation=createActionAnnotation(AUTOACTION,{autoAction:!0}),autoActionBoundAnnotation=createActionAnnotation(AUTOACTION_BOUND,{autoAction:!0,bound:!0});function createActionFactory(_u){var $u=function(Ru,Lu){if(isFunction(Ru))return createAction(Ru.name||DEFAULT_ACTION_NAME,Ru,_u);if(isFunction(Lu))return createAction(Ru,Lu,_u);if(isStringish(Lu))return storeAnnotation(Ru,Lu,_u?autoActionAnnotation:actionAnnotation);if(isStringish(Ru))return createDecoratorAnnotation(createActionAnnotation(_u?AUTOACTION:ACTION,{name:Ru,autoAction:_u}))};return $u}var action=createActionFactory(!1);Object.assign(action,actionAnnotation);var autoAction=createActionFactory(!0);Object.assign(autoAction,autoActionAnnotation);action.bound=createDecoratorAnnotation(actionBoundAnnotation);autoAction.bound=createDecoratorAnnotation(autoActionBoundAnnotation);function runInAction(_u){return executeAction(_u.name||DEFAULT_ACTION_NAME,!1,_u,this,void 0)}function isAction(_u){return isFunction(_u)&&_u.isMobxAction===!0}function autorun(_u,$u){var Bu,Ru;$u===void 0&&($u=EMPTY_OBJECT);var Lu=(Bu=(Ru=$u)==null?void 0:Ru.name)!=null?Bu:"Autorun",Ou=!$u.scheduler&&!$u.delay,Fu;if(Ou)Fu=new Reaction(Lu,function(){this.track(Uu)},$u.onError,$u.requiresObservable);else{var Nu=createSchedulerFromOptions($u),Vu=!1;Fu=new Reaction(Lu,function(){Vu||(Vu=!0,Nu(function(){Vu=!1,Fu.isDisposed_||Fu.track(Uu)}))},$u.onError,$u.requiresObservable)}function Uu(){_u(Fu)}return Fu.schedule_(),Fu.getDisposer_()}var run=function _u($u){return $u()};function createSchedulerFromOptions(_u){return _u.scheduler?_u.scheduler:_u.delay?function($u){return setTimeout($u,_u.delay)}:run}function reaction(_u,$u,Bu){var Ru;Bu===void 0&&(Bu=EMPTY_OBJECT);var Lu=(Ru=Bu.name)!=null?Ru:"Reaction",Ou=action(Lu,Bu.onError?wrapErrorHandler(Bu.onError,$u):$u),Fu=!Bu.scheduler&&!Bu.delay,Nu=createSchedulerFromOptions(Bu),Vu=!0,Uu=!1,Gu,zu,Hu=Bu.compareStructural?comparer.structural:Bu.equals||comparer.default,ju=new Reaction(Lu,function(){Vu||Fu?Qu():Uu||(Uu=!0,Nu(Qu))},Bu.onError,Bu.requiresObservable);function Qu(){if(Uu=!1,!ju.isDisposed_){var Xu=!1;ju.track(function(){var Ku=allowStateChanges(!1,function(){return _u(ju)});Xu=Vu||!Hu(Gu,Ku),zu=Gu,Gu=Ku}),(Vu&&Bu.fireImmediately||!Vu&&Xu)&&Ou(Gu,zu,ju),Vu=!1}}return ju.schedule_(),ju.getDisposer_()}function wrapErrorHandler(_u,$u){return function(){try{return $u.apply(this,arguments)}catch(Bu){_u.call(this,Bu)}}}var ON_BECOME_OBSERVED="onBO",ON_BECOME_UNOBSERVED="onBUO";function onBecomeObserved(_u,$u,Bu){return interceptHook(ON_BECOME_OBSERVED,_u,$u,Bu)}function onBecomeUnobserved(_u,$u,Bu){return interceptHook(ON_BECOME_UNOBSERVED,_u,$u,Bu)}function interceptHook(_u,$u,Bu,Ru){var Lu=typeof Ru=="function"?getAtom($u,Bu):getAtom($u),Ou=isFunction(Ru)?Ru:Bu,Fu=_u+"L";return Lu[Fu]?Lu[Fu].add(Ou):Lu[Fu]=new Set([Ou]),function(){var Nu=Lu[Fu];Nu&&(Nu.delete(Ou),Nu.size===0&&delete Lu[Fu])}}var NEVER="never",ALWAYS="always",OBSERVED="observed";function configure(_u){_u.isolateGlobalState===!0&&isolateGlobalState();var $u=_u.useProxies,Bu=_u.enforceActions;if($u!==void 0&&(globalState.useProxies=$u===ALWAYS?!0:$u===NEVER?!1:typeof Proxy!="undefined"),$u==="ifavailable"&&(globalState.verifyProxies=!0),Bu!==void 0){var Ru=Bu===ALWAYS?ALWAYS:Bu===OBSERVED;globalState.enforceActions=Ru,globalState.allowStateChanges=!(Ru===!0||Ru===ALWAYS)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(Lu){Lu in _u&&(globalState[Lu]=!!_u[Lu])}),globalState.allowStateReads=!globalState.observableRequiresReaction,_u.reactionScheduler&&setReactionScheduler(_u.reactionScheduler)}function extendObservable(_u,$u,Bu,Ru){var Lu=getOwnPropertyDescriptors($u),Ou=asObservableObject(_u,Ru)[$mobx];startBatch();try{ownKeys(Lu).forEach(function(Fu){Ou.extend_(Fu,Lu[Fu],Bu&&Fu in Bu?Bu[Fu]:!0)})}finally{endBatch()}return _u}function getDependencyTree(_u,$u){return nodeToDependencyTree(getAtom(_u,$u))}function nodeToDependencyTree(_u){var $u={name:_u.name_};return _u.observing_&&_u.observing_.length>0&&($u.dependencies=unique(_u.observing_).map(nodeToDependencyTree)),$u}function unique(_u){return Array.from(new Set(_u))}var generatorId=0;function FlowCancellationError(){this.message="FLOW_CANCELLED"}FlowCancellationError.prototype=Object.create(Error.prototype);var flowAnnotation=createFlowAnnotation("flow"),flowBoundAnnotation=createFlowAnnotation("flow.bound",{bound:!0}),flow=Object.assign(function _u($u,Bu){if(isStringish(Bu))return storeAnnotation($u,Bu,flowAnnotation);var Ru=$u,Lu=Ru.name||"<unnamed flow>",Ou=function(){var Nu=this,Vu=arguments,Uu=++generatorId,Gu=action(Lu+" - runid: "+Uu+" - init",Ru).apply(Nu,Vu),zu,Hu=void 0,ju=new Promise(function(Qu,Xu){var Ku=0;zu=Xu;function Wu(Zu){Hu=void 0;var _h;try{_h=action(Lu+" - runid: "+Uu+" - yield "+Ku++,Gu.next).call(Gu,Zu)}catch(ep){return Xu(ep)}Yu(_h)}function qu(Zu){Hu=void 0;var _h;try{_h=action(Lu+" - runid: "+Uu+" - yield "+Ku++,Gu.throw).call(Gu,Zu)}catch(ep){return Xu(ep)}Yu(_h)}function Yu(Zu){if(isFunction(Zu==null?void 0:Zu.then)){Zu.then(Yu,Xu);return}return Zu.done?Qu(Zu.value):(Hu=Promise.resolve(Zu.value),Hu.then(Wu,qu))}Wu(void 0)});return ju.cancel=action(Lu+" - runid: "+Uu+" - cancel",function(){try{Hu&&cancelPromise(Hu);var Qu=Gu.return(void 0),Xu=Promise.resolve(Qu.value);Xu.then(noop,noop),cancelPromise(Xu),zu(new FlowCancellationError)}catch(Ku){zu(Ku)}}),ju};return Ou.isMobXFlow=!0,Ou},flowAnnotation);flow.bound=createDecoratorAnnotation(flowBoundAnnotation);function cancelPromise(_u){isFunction(_u.cancel)&&_u.cancel()}function isFlow(_u){return(_u==null?void 0:_u.isMobXFlow)===!0}function _isObservable(_u,$u){return _u?$u!==void 0?isObservableObject(_u)?_u[$mobx].values_.has($u):!1:isObservableObject(_u)||!!_u[$mobx]||isAtom(_u)||isReaction(_u)||isComputedValue(_u):!1}function isObservable(_u){return _isObservable(_u)}function trace(){die("trace() is not available in production builds");for(var _u=!1,$u=arguments.length,Bu=new Array($u),Ru=0;Ru<$u;Ru++)Bu[Ru]=arguments[Ru];typeof Bu[Bu.length-1]=="boolean"&&(_u=Bu.pop());var Lu=getAtomFromArgs(Bu);if(!Lu)return die("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");Lu.isTracing_===TraceMode.NONE&&console.log("[mobx.trace] '"+Lu.name_+"' tracing enabled"),Lu.isTracing_=_u?TraceMode.BREAK:TraceMode.LOG}function getAtomFromArgs(_u){switch(_u.length){case 0:return globalState.trackingDerivation;case 1:return getAtom(_u[0]);case 2:return getAtom(_u[0],_u[1])}}function transaction(_u,$u){$u===void 0&&($u=void 0),startBatch();try{return _u.apply($u)}finally{endBatch()}}function getAdm(_u){return _u[$mobx]}var objectProxyTraps={has:function _u($u,Bu){return getAdm($u).has_(Bu)},get:function _u($u,Bu){return getAdm($u).get_(Bu)},set:function _u($u,Bu,Ru){var Lu;return isStringish(Bu)?(Lu=getAdm($u).set_(Bu,Ru,!0))!=null?Lu:!0:!1},deleteProperty:function _u($u,Bu){var Ru;return isStringish(Bu)?(Ru=getAdm($u).delete_(Bu,!0))!=null?Ru:!0:!1},defineProperty:function _u($u,Bu,Ru){var Lu;return(Lu=getAdm($u).defineProperty_(Bu,Ru))!=null?Lu:!0},ownKeys:function _u($u){return getAdm($u).ownKeys_()},preventExtensions:function _u($u){die(13)}};function asDynamicObservableObject(_u,$u){var Bu,Ru;return assertProxies(),_u=asObservableObject(_u,$u),(Ru=(Bu=_u[$mobx]).proxy_)!=null?Ru:Bu.proxy_=new Proxy(_u,objectProxyTraps)}function hasInterceptors(_u){return _u.interceptors_!==void 0&&_u.interceptors_.length>0}function registerInterceptor(_u,$u){var Bu=_u.interceptors_||(_u.interceptors_=[]);return Bu.push($u),once(function(){var Ru=Bu.indexOf($u);Ru!==-1&&Bu.splice(Ru,1)})}function interceptChange(_u,$u){var Bu=untrackedStart();try{for(var Ru=[].concat(_u.interceptors_||[]),Lu=0,Ou=Ru.length;Lu<Ou&&($u=Ru[Lu]($u),$u&&!$u.type&&die(14),!!$u);Lu++);return $u}finally{untrackedEnd(Bu)}}function hasListeners(_u){return _u.changeListeners_!==void 0&&_u.changeListeners_.length>0}function registerListener(_u,$u){var Bu=_u.changeListeners_||(_u.changeListeners_=[]);return Bu.push($u),once(function(){var Ru=Bu.indexOf($u);Ru!==-1&&Bu.splice(Ru,1)})}function notifyListeners(_u,$u){var Bu=untrackedStart(),Ru=_u.changeListeners_;if(!!Ru){Ru=Ru.slice();for(var Lu=0,Ou=Ru.length;Lu<Ou;Lu++)Ru[Lu]($u);untrackedEnd(Bu)}}function makeObservable(_u,$u,Bu){var Ru=asObservableObject(_u,Bu)[$mobx];startBatch();try{var Lu;(Lu=$u)!=null||($u=collectStoredAnnotations(_u)),ownKeys($u).forEach(function(Ou){return Ru.make_(Ou,$u[Ou])})}finally{endBatch()}return _u}var SPLICE="splice",UPDATE="update",MAX_SPLICE_SIZE=1e4,arrayTraps={get:function _u($u,Bu){var Ru=$u[$mobx];return Bu===$mobx?Ru:Bu==="length"?Ru.getArrayLength_():typeof Bu=="string"&&!isNaN(Bu)?Ru.get_(parseInt(Bu)):hasProp(arrayExtensions,Bu)?arrayExtensions[Bu]:$u[Bu]},set:function _u($u,Bu,Ru){var Lu=$u[$mobx];return Bu==="length"&&Lu.setArrayLength_(Ru),typeof Bu=="symbol"||isNaN(Bu)?$u[Bu]=Ru:Lu.set_(parseInt(Bu),Ru),!0},preventExtensions:function _u(){die(15)}},ObservableArrayAdministration=function(){function _u(Bu,Ru,Lu,Ou){Bu===void 0&&(Bu="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=Lu,this.legacyMode_=Ou,this.atom_=new Atom(Bu),this.enhancer_=function(Fu,Nu){return Ru(Fu,Nu,"ObservableArray[..]")}}var $u=_u.prototype;return $u.dehanceValue_=function(Ru){return this.dehancer!==void 0?this.dehancer(Ru):Ru},$u.dehanceValues_=function(Ru){return this.dehancer!==void 0&&Ru.length>0?Ru.map(this.dehancer):Ru},$u.intercept_=function(Ru){return registerInterceptor(this,Ru)},$u.observe_=function(Ru,Lu){return Lu===void 0&&(Lu=!1),Lu&&Ru({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),registerListener(this,Ru)},$u.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},$u.setArrayLength_=function(Ru){(typeof Ru!="number"||isNaN(Ru)||Ru<0)&&die("Out of range: "+Ru);var Lu=this.values_.length;if(Ru!==Lu)if(Ru>Lu){for(var Ou=new Array(Ru-Lu),Fu=0;Fu<Ru-Lu;Fu++)Ou[Fu]=void 0;this.spliceWithArray_(Lu,0,Ou)}else this.spliceWithArray_(Ru,Lu-Ru)},$u.updateArrayLength_=function(Ru,Lu){Ru!==this.lastKnownLength_&&die(16),this.lastKnownLength_+=Lu,this.legacyMode_&&Lu>0&&reserveArrayBuffer(Ru+Lu+1)},$u.spliceWithArray_=function(Ru,Lu,Ou){var Fu=this;this.atom_;var Nu=this.values_.length;if(Ru===void 0?Ru=0:Ru>Nu?Ru=Nu:Ru<0&&(Ru=Math.max(0,Nu+Ru)),arguments.length===1?Lu=Nu-Ru:Lu==null?Lu=0:Lu=Math.max(0,Math.min(Lu,Nu-Ru)),Ou===void 0&&(Ou=EMPTY_ARRAY),hasInterceptors(this)){var Vu=interceptChange(this,{object:this.proxy_,type:SPLICE,index:Ru,removedCount:Lu,added:Ou});if(!Vu)return EMPTY_ARRAY;Lu=Vu.removedCount,Ou=Vu.added}if(Ou=Ou.length===0?Ou:Ou.map(function(zu){return Fu.enhancer_(zu,void 0)}),this.legacyMode_){var Uu=Ou.length-Lu;this.updateArrayLength_(Nu,Uu)}var Gu=this.spliceItemsIntoValues_(Ru,Lu,Ou);return(Lu!==0||Ou.length!==0)&&this.notifyArraySplice_(Ru,Ou,Gu),this.dehanceValues_(Gu)},$u.spliceItemsIntoValues_=function(Ru,Lu,Ou){if(Ou.length<MAX_SPLICE_SIZE){var Fu;return(Fu=this.values_).splice.apply(Fu,[Ru,Lu].concat(Ou))}else{var Nu=this.values_.slice(Ru,Ru+Lu),Vu=this.values_.slice(Ru+Lu);this.values_.length+=Ou.length-Lu;for(var Uu=0;Uu<Ou.length;Uu++)this.values_[Ru+Uu]=Ou[Uu];for(var Gu=0;Gu<Vu.length;Gu++)this.values_[Ru+Ou.length+Gu]=Vu[Gu];return Nu}},$u.notifyArrayChildUpdate_=function(Ru,Lu,Ou){var Fu=!this.owned_&&isSpyEnabled(),Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"array",object:this.proxy_,type:UPDATE,debugObjectName:this.atom_.name_,index:Ru,newValue:Lu,oldValue:Ou}:null;this.atom_.reportChanged(),Nu&&notifyListeners(this,Vu)},$u.notifyArraySplice_=function(Ru,Lu,Ou){var Fu=!this.owned_&&isSpyEnabled(),Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:SPLICE,index:Ru,removed:Ou,added:Lu,removedCount:Ou.length,addedCount:Lu.length}:null;this.atom_.reportChanged(),Nu&&notifyListeners(this,Vu)},$u.get_=function(Ru){if(Ru<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[Ru]);console.warn("[mobx.array] Attempt to read an array index ("+Ru+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},$u.set_=function(Ru,Lu){var Ou=this.values_;if(Ru<Ou.length){this.atom_;var Fu=Ou[Ru];if(hasInterceptors(this)){var Nu=interceptChange(this,{type:UPDATE,object:this.proxy_,index:Ru,newValue:Lu});if(!Nu)return;Lu=Nu.newValue}Lu=this.enhancer_(Lu,Fu);var Vu=Lu!==Fu;Vu&&(Ou[Ru]=Lu,this.notifyArrayChildUpdate_(Ru,Lu,Fu))}else Ru===Ou.length?this.spliceWithArray_(Ru,0,[Lu]):die(17,Ru,Ou.length)},_u}();function createObservableArray(_u,$u,Bu,Ru){Bu===void 0&&(Bu="ObservableArray"),Ru===void 0&&(Ru=!1),assertProxies();var Lu=new ObservableArrayAdministration(Bu,$u,Ru,!1);addHiddenFinalProp(Lu.values_,$mobx,Lu);var Ou=new Proxy(Lu.values_,arrayTraps);if(Lu.proxy_=Ou,_u&&_u.length){var Fu=allowStateChangesStart(!0);Lu.spliceWithArray_(0,0,_u),allowStateChangesEnd(Fu)}return Ou}var arrayExtensions={clear:function _u(){return this.splice(0)},replace:function _u($u){var Bu=this[$mobx];return Bu.spliceWithArray_(0,Bu.values_.length,$u)},toJSON:function _u(){return this.slice()},splice:function _u($u,Bu){for(var Ru=arguments.length,Lu=new Array(Ru>2?Ru-2:0),Ou=2;Ou<Ru;Ou++)Lu[Ou-2]=arguments[Ou];var Fu=this[$mobx];switch(arguments.length){case 0:return[];case 1:return Fu.spliceWithArray_($u);case 2:return Fu.spliceWithArray_($u,Bu)}return Fu.spliceWithArray_($u,Bu,Lu)},spliceWithArray:function _u($u,Bu,Ru){return this[$mobx].spliceWithArray_($u,Bu,Ru)},push:function _u(){for(var $u=this[$mobx],Bu=arguments.length,Ru=new Array(Bu),Lu=0;Lu<Bu;Lu++)Ru[Lu]=arguments[Lu];return $u.spliceWithArray_($u.values_.length,0,Ru),$u.values_.length},pop:function _u(){return this.splice(Math.max(this[$mobx].values_.length-1,0),1)[0]},shift:function _u(){return this.splice(0,1)[0]},unshift:function _u(){for(var $u=this[$mobx],Bu=arguments.length,Ru=new Array(Bu),Lu=0;Lu<Bu;Lu++)Ru[Lu]=arguments[Lu];return $u.spliceWithArray_(0,0,Ru),$u.values_.length},reverse:function _u(){return globalState.trackingDerivation&&die(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function _u(){globalState.trackingDerivation&&die(37,"sort");var $u=this.slice();return $u.sort.apply($u,arguments),this.replace($u),this},remove:function _u($u){var Bu=this[$mobx],Ru=Bu.dehanceValues_(Bu.values_).indexOf($u);return Ru>-1?(this.splice(Ru,1),!0):!1}};addArrayExtension("concat",simpleFunc);addArrayExtension("flat",simpleFunc);addArrayExtension("includes",simpleFunc);addArrayExtension("indexOf",simpleFunc);addArrayExtension("join",simpleFunc);addArrayExtension("lastIndexOf",simpleFunc);addArrayExtension("slice",simpleFunc);addArrayExtension("toString",simpleFunc);addArrayExtension("toLocaleString",simpleFunc);addArrayExtension("every",mapLikeFunc);addArrayExtension("filter",mapLikeFunc);addArrayExtension("find",mapLikeFunc);addArrayExtension("findIndex",mapLikeFunc);addArrayExtension("flatMap",mapLikeFunc);addArrayExtension("forEach",mapLikeFunc);addArrayExtension("map",mapLikeFunc);addArrayExtension("some",mapLikeFunc);addArrayExtension("reduce",reduceLikeFunc);addArrayExtension("reduceRight",reduceLikeFunc);function addArrayExtension(_u,$u){typeof Array.prototype[_u]=="function"&&(arrayExtensions[_u]=$u(_u))}function simpleFunc(_u){return function(){var $u=this[$mobx];$u.atom_.reportObserved();var Bu=$u.dehanceValues_($u.values_);return Bu[_u].apply(Bu,arguments)}}function mapLikeFunc(_u){return function($u,Bu){var Ru=this,Lu=this[$mobx];Lu.atom_.reportObserved();var Ou=Lu.dehanceValues_(Lu.values_);return Ou[_u](function(Fu,Nu){return $u.call(Bu,Fu,Nu,Ru)})}}function reduceLikeFunc(_u){return function(){var $u=this,Bu=this[$mobx];Bu.atom_.reportObserved();var Ru=Bu.dehanceValues_(Bu.values_),Lu=arguments[0];return arguments[0]=function(Ou,Fu,Nu){return Lu(Ou,Fu,Nu,$u)},Ru[_u].apply(Ru,arguments)}}var isObservableArrayAdministration=createInstanceofPredicate("ObservableArrayAdministration",ObservableArrayAdministration);function isObservableArray(_u){return isObject(_u)&&isObservableArrayAdministration(_u[$mobx])}var _Symbol$iterator,_Symbol$toStringTag,ObservableMapMarker={},ADD="add",DELETE="delete";_Symbol$iterator=Symbol.iterator;_Symbol$toStringTag=Symbol.toStringTag;var ObservableMap=function(){function _u(Bu,Ru,Lu){var Ou=this;Ru===void 0&&(Ru=deepEnhancer),Lu===void 0&&(Lu="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$mobx]=ObservableMapMarker,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=Ru,this.name_=Lu,isFunction(Map)||die(18),this.keysAtom_=createAtom("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,allowStateChanges(!0,function(){Ou.merge(Bu)})}var $u=_u.prototype;return $u.has_=function(Ru){return this.data_.has(Ru)},$u.has=function(Ru){var Lu=this;if(!globalState.trackingDerivation)return this.has_(Ru);var Ou=this.hasMap_.get(Ru);if(!Ou){var Fu=Ou=new ObservableValue(this.has_(Ru),referenceEnhancer,"ObservableMap.key?",!1);this.hasMap_.set(Ru,Fu),onBecomeUnobserved(Fu,function(){return Lu.hasMap_.delete(Ru)})}return Ou.get()},$u.set=function(Ru,Lu){var Ou=this.has_(Ru);if(hasInterceptors(this)){var Fu=interceptChange(this,{type:Ou?UPDATE:ADD,object:this,newValue:Lu,name:Ru});if(!Fu)return this;Lu=Fu.newValue}return Ou?this.updateValue_(Ru,Lu):this.addValue_(Ru,Lu),this},$u.delete=function(Ru){var Lu=this;if(this.keysAtom_,hasInterceptors(this)){var Ou=interceptChange(this,{type:DELETE,object:this,name:Ru});if(!Ou)return!1}if(this.has_(Ru)){var Fu=isSpyEnabled(),Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"map",debugObjectName:this.name_,type:DELETE,object:this,oldValue:this.data_.get(Ru).value_,name:Ru}:null;return transaction(function(){var Uu;Lu.keysAtom_.reportChanged(),(Uu=Lu.hasMap_.get(Ru))==null||Uu.setNewValue_(!1);var Gu=Lu.data_.get(Ru);Gu.setNewValue_(void 0),Lu.data_.delete(Ru)}),Nu&&notifyListeners(this,Vu),!0}return!1},$u.updateValue_=function(Ru,Lu){var Ou=this.data_.get(Ru);if(Lu=Ou.prepareNewValue_(Lu),Lu!==globalState.UNCHANGED){var Fu=isSpyEnabled(),Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"map",debugObjectName:this.name_,type:UPDATE,object:this,oldValue:Ou.value_,name:Ru,newValue:Lu}:null;Ou.setNewValue_(Lu),Nu&&notifyListeners(this,Vu)}},$u.addValue_=function(Ru,Lu){var Ou=this;this.keysAtom_,transaction(function(){var Uu,Gu=new ObservableValue(Lu,Ou.enhancer_,"ObservableMap.key",!1);Ou.data_.set(Ru,Gu),Lu=Gu.value_,(Uu=Ou.hasMap_.get(Ru))==null||Uu.setNewValue_(!0),Ou.keysAtom_.reportChanged()});var Fu=isSpyEnabled(),Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"map",debugObjectName:this.name_,type:ADD,object:this,name:Ru,newValue:Lu}:null;Nu&&notifyListeners(this,Vu)},$u.get=function(Ru){return this.has(Ru)?this.dehanceValue_(this.data_.get(Ru).get()):this.dehanceValue_(void 0)},$u.dehanceValue_=function(Ru){return this.dehancer!==void 0?this.dehancer(Ru):Ru},$u.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},$u.values=function(){var Ru=this,Lu=this.keys();return makeIterable({next:function(){var Fu=Lu.next(),Nu=Fu.done,Vu=Fu.value;return{done:Nu,value:Nu?void 0:Ru.get(Vu)}}})},$u.entries=function(){var Ru=this,Lu=this.keys();return makeIterable({next:function(){var Fu=Lu.next(),Nu=Fu.done,Vu=Fu.value;return{done:Nu,value:Nu?void 0:[Vu,Ru.get(Vu)]}}})},$u[_Symbol$iterator]=function(){return this.entries()},$u.forEach=function(Ru,Lu){for(var Ou=_createForOfIteratorHelperLoose(this),Fu;!(Fu=Ou()).done;){var Nu=Fu.value,Vu=Nu[0],Uu=Nu[1];Ru.call(Lu,Uu,Vu,this)}},$u.merge=function(Ru){var Lu=this;return isObservableMap(Ru)&&(Ru=new Map(Ru)),transaction(function(){isPlainObject(Ru)?getPlainObjectKeys(Ru).forEach(function(Ou){return Lu.set(Ou,Ru[Ou])}):Array.isArray(Ru)?Ru.forEach(function(Ou){var Fu=Ou[0],Nu=Ou[1];return Lu.set(Fu,Nu)}):isES6Map(Ru)?(Ru.constructor!==Map&&die(19,Ru),Ru.forEach(function(Ou,Fu){return Lu.set(Fu,Ou)})):Ru!=null&&die(20,Ru)}),this},$u.clear=function(){var Ru=this;transaction(function(){untracked(function(){for(var Lu=_createForOfIteratorHelperLoose(Ru.keys()),Ou;!(Ou=Lu()).done;){var Fu=Ou.value;Ru.delete(Fu)}})})},$u.replace=function(Ru){var Lu=this;return transaction(function(){for(var Ou=convertToMap(Ru),Fu=new Map,Nu=!1,Vu=_createForOfIteratorHelperLoose(Lu.data_.keys()),Uu;!(Uu=Vu()).done;){var Gu=Uu.value;if(!Ou.has(Gu)){var zu=Lu.delete(Gu);if(zu)Nu=!0;else{var Hu=Lu.data_.get(Gu);Fu.set(Gu,Hu)}}}for(var ju=_createForOfIteratorHelperLoose(Ou.entries()),Qu;!(Qu=ju()).done;){var Xu=Qu.value,Ku=Xu[0],Wu=Xu[1],qu=Lu.data_.has(Ku);if(Lu.set(Ku,Wu),Lu.data_.has(Ku)){var Yu=Lu.data_.get(Ku);Fu.set(Ku,Yu),qu||(Nu=!0)}}if(!Nu)if(Lu.data_.size!==Fu.size)Lu.keysAtom_.reportChanged();else for(var Zu=Lu.data_.keys(),_h=Fu.keys(),ep=Zu.next(),ip=_h.next();!ep.done;){if(ep.value!==ip.value){Lu.keysAtom_.reportChanged();break}ep=Zu.next(),ip=_h.next()}Lu.data_=Fu}),this},$u.toString=function(){return"[object ObservableMap]"},$u.toJSON=function(){return Array.from(this)},$u.observe_=function(Ru,Lu){return registerListener(this,Ru)},$u.intercept_=function(Ru){return registerInterceptor(this,Ru)},_createClass(_u,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:_Symbol$toStringTag,get:function(){return"Map"}}]),_u}(),isObservableMap=createInstanceofPredicate("ObservableMap",ObservableMap);function convertToMap(_u){if(isES6Map(_u)||isObservableMap(_u))return _u;if(Array.isArray(_u))return new Map(_u);if(isPlainObject(_u)){var $u=new Map;for(var Bu in _u)$u.set(Bu,_u[Bu]);return $u}else return die(21,_u)}var _Symbol$iterator$1,_Symbol$toStringTag$1,ObservableSetMarker={};_Symbol$iterator$1=Symbol.iterator;_Symbol$toStringTag$1=Symbol.toStringTag;var ObservableSet=function(){function _u(Bu,Ru,Lu){Ru===void 0&&(Ru=deepEnhancer),Lu===void 0&&(Lu="ObservableSet"),this.name_=void 0,this[$mobx]=ObservableSetMarker,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=Lu,isFunction(Set)||die(22),this.atom_=createAtom(this.name_),this.enhancer_=function(Ou,Fu){return Ru(Ou,Fu,Lu)},Bu&&this.replace(Bu)}var $u=_u.prototype;return $u.dehanceValue_=function(Ru){return this.dehancer!==void 0?this.dehancer(Ru):Ru},$u.clear=function(){var Ru=this;transaction(function(){untracked(function(){for(var Lu=_createForOfIteratorHelperLoose(Ru.data_.values()),Ou;!(Ou=Lu()).done;){var Fu=Ou.value;Ru.delete(Fu)}})})},$u.forEach=function(Ru,Lu){for(var Ou=_createForOfIteratorHelperLoose(this),Fu;!(Fu=Ou()).done;){var Nu=Fu.value;Ru.call(Lu,Nu,Nu,this)}},$u.add=function(Ru){var Lu=this;if(this.atom_,hasInterceptors(this)){var Ou=interceptChange(this,{type:ADD,object:this,newValue:Ru});if(!Ou)return this}if(!this.has(Ru)){transaction(function(){Lu.data_.add(Lu.enhancer_(Ru,void 0)),Lu.atom_.reportChanged()});var Fu=!1,Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"set",debugObjectName:this.name_,type:ADD,object:this,newValue:Ru}:null;Nu&&notifyListeners(this,Vu)}return this},$u.delete=function(Ru){var Lu=this;if(hasInterceptors(this)){var Ou=interceptChange(this,{type:DELETE,object:this,oldValue:Ru});if(!Ou)return!1}if(this.has(Ru)){var Fu=!1,Nu=hasListeners(this),Vu=Nu||Fu?{observableKind:"set",debugObjectName:this.name_,type:DELETE,object:this,oldValue:Ru}:null;return transaction(function(){Lu.atom_.reportChanged(),Lu.data_.delete(Ru)}),Nu&&notifyListeners(this,Vu),!0}return!1},$u.has=function(Ru){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(Ru))},$u.entries=function(){var Ru=0,Lu=Array.from(this.keys()),Ou=Array.from(this.values());return makeIterable({next:function(){var Nu=Ru;return Ru+=1,Nu<Ou.length?{value:[Lu[Nu],Ou[Nu]],done:!1}:{done:!0}}})},$u.keys=function(){return this.values()},$u.values=function(){this.atom_.reportObserved();var Ru=this,Lu=0,Ou=Array.from(this.data_.values());return makeIterable({next:function(){return Lu<Ou.length?{value:Ru.dehanceValue_(Ou[Lu++]),done:!1}:{done:!0}}})},$u.replace=function(Ru){var Lu=this;return isObservableSet(Ru)&&(Ru=new Set(Ru)),transaction(function(){Array.isArray(Ru)?(Lu.clear(),Ru.forEach(function(Ou){return Lu.add(Ou)})):isES6Set(Ru)?(Lu.clear(),Ru.forEach(function(Ou){return Lu.add(Ou)})):Ru!=null&&die("Cannot initialize set from "+Ru)}),this},$u.observe_=function(Ru,Lu){return registerListener(this,Ru)},$u.intercept_=function(Ru){return registerInterceptor(this,Ru)},$u.toJSON=function(){return Array.from(this)},$u.toString=function(){return"[object ObservableSet]"},$u[_Symbol$iterator$1]=function(){return this.values()},_createClass(_u,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:_Symbol$toStringTag$1,get:function(){return"Set"}}]),_u}(),isObservableSet=createInstanceofPredicate("ObservableSet",ObservableSet),descriptorCache=Object.create(null),REMOVE="remove",ObservableObjectAdministration=function(){function _u(Bu,Ru,Lu,Ou){Ru===void 0&&(Ru=new Map),Ou===void 0&&(Ou=autoAnnotation),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=Bu,this.values_=Ru,this.name_=Lu,this.defaultAnnotation_=Ou,this.keysAtom_=new Atom("ObservableObject.keys"),this.isPlainObject_=isPlainObject(this.target_)}var $u=_u.prototype;return $u.getObservablePropValue_=function(Ru){return this.values_.get(Ru).get()},$u.setObservablePropValue_=function(Ru,Lu){var Ou=this.values_.get(Ru);if(Ou instanceof ComputedValue)return Ou.set(Lu),!0;if(hasInterceptors(this)){var Fu=interceptChange(this,{type:UPDATE,object:this.proxy_||this.target_,name:Ru,newValue:Lu});if(!Fu)return null;Lu=Fu.newValue}if(Lu=Ou.prepareNewValue_(Lu),Lu!==globalState.UNCHANGED){var Nu=hasListeners(this),Vu=!1,Uu=Nu||Vu?{type:UPDATE,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:Ou.value_,name:Ru,newValue:Lu}:null;Ou.setNewValue_(Lu),Nu&&notifyListeners(this,Uu)}return!0},$u.get_=function(Ru){return globalState.trackingDerivation&&!hasProp(this.target_,Ru)&&this.has_(Ru),this.target_[Ru]},$u.set_=function(Ru,Lu,Ou){return Ou===void 0&&(Ou=!1),hasProp(this.target_,Ru)?this.values_.has(Ru)?this.setObservablePropValue_(Ru,Lu):Ou?Reflect.set(this.target_,Ru,Lu):(this.target_[Ru]=Lu,!0):this.extend_(Ru,{value:Lu,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,Ou)},$u.has_=function(Ru){if(!globalState.trackingDerivation)return Ru in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var Lu=this.pendingKeys_.get(Ru);return Lu||(Lu=new ObservableValue(Ru in this.target_,referenceEnhancer,"ObservableObject.key?",!1),this.pendingKeys_.set(Ru,Lu)),Lu.get()},$u.make_=function(Ru,Lu){if(Lu===!0&&(Lu=this.defaultAnnotation_),Lu!==!1){if(!(Ru in this.target_)){var Ou;if((Ou=this.target_[storedAnnotationsSymbol])!=null&&Ou[Ru])return;die(1,Lu.annotationType_,this.name_+"."+Ru.toString())}for(var Fu=this.target_;Fu&&Fu!==objectPrototype;){var Nu=getDescriptor(Fu,Ru);if(Nu){var Vu=Lu.make_(this,Ru,Nu,Fu);if(Vu===0)return;if(Vu===1)break}Fu=Object.getPrototypeOf(Fu)}recordAnnotationApplied(this,Lu,Ru)}},$u.extend_=function(Ru,Lu,Ou,Fu){if(Fu===void 0&&(Fu=!1),Ou===!0&&(Ou=this.defaultAnnotation_),Ou===!1)return this.defineProperty_(Ru,Lu,Fu);var Nu=Ou.extend_(this,Ru,Lu,Fu);return Nu&&recordAnnotationApplied(this,Ou,Ru),Nu},$u.defineProperty_=function(Ru,Lu,Ou){Ou===void 0&&(Ou=!1);try{startBatch();var Fu=this.delete_(Ru);if(!Fu)return Fu;if(hasInterceptors(this)){var Nu=interceptChange(this,{object:this.proxy_||this.target_,name:Ru,type:ADD,newValue:Lu.value});if(!Nu)return null;var Vu=Nu.newValue;Lu.value!==Vu&&(Lu=_extends({},Lu,{value:Vu}))}if(Ou){if(!Reflect.defineProperty(this.target_,Ru,Lu))return!1}else defineProperty(this.target_,Ru,Lu);this.notifyPropertyAddition_(Ru,Lu.value)}finally{endBatch()}return!0},$u.defineObservableProperty_=function(Ru,Lu,Ou,Fu){Fu===void 0&&(Fu=!1);try{startBatch();var Nu=this.delete_(Ru);if(!Nu)return Nu;if(hasInterceptors(this)){var Vu=interceptChange(this,{object:this.proxy_||this.target_,name:Ru,type:ADD,newValue:Lu});if(!Vu)return null;Lu=Vu.newValue}var Uu=getCachedObservablePropDescriptor(Ru),Gu={configurable:globalState.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:Uu.get,set:Uu.set};if(Fu){if(!Reflect.defineProperty(this.target_,Ru,Gu))return!1}else defineProperty(this.target_,Ru,Gu);var zu=new ObservableValue(Lu,Ou,"ObservableObject.key",!1);this.values_.set(Ru,zu),this.notifyPropertyAddition_(Ru,zu.value_)}finally{endBatch()}return!0},$u.defineComputedProperty_=function(Ru,Lu,Ou){Ou===void 0&&(Ou=!1);try{startBatch();var Fu=this.delete_(Ru);if(!Fu)return Fu;if(hasInterceptors(this)){var Nu=interceptChange(this,{object:this.proxy_||this.target_,name:Ru,type:ADD,newValue:void 0});if(!Nu)return null}Lu.name||(Lu.name="ObservableObject.key"),Lu.context=this.proxy_||this.target_;var Vu=getCachedObservablePropDescriptor(Ru),Uu={configurable:globalState.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:Vu.get,set:Vu.set};if(Ou){if(!Reflect.defineProperty(this.target_,Ru,Uu))return!1}else defineProperty(this.target_,Ru,Uu);this.values_.set(Ru,new ComputedValue(Lu)),this.notifyPropertyAddition_(Ru,void 0)}finally{endBatch()}return!0},$u.delete_=function(Ru,Lu){if(Lu===void 0&&(Lu=!1),!hasProp(this.target_,Ru))return!0;if(hasInterceptors(this)){var Ou=interceptChange(this,{object:this.proxy_||this.target_,name:Ru,type:REMOVE});if(!Ou)return null}try{var Fu,Nu;startBatch();var Vu=hasListeners(this),Uu=!1,Gu=this.values_.get(Ru),zu=void 0;if(!Gu&&(Vu||Uu)){var Hu;zu=(Hu=getDescriptor(this.target_,Ru))==null?void 0:Hu.value}if(Lu){if(!Reflect.deleteProperty(this.target_,Ru))return!1}else delete this.target_[Ru];if(Gu&&(this.values_.delete(Ru),Gu instanceof ObservableValue&&(zu=Gu.value_),propagateChanged(Gu)),this.keysAtom_.reportChanged(),(Fu=this.pendingKeys_)==null||(Nu=Fu.get(Ru))==null||Nu.set(Ru in this.target_),Vu||Uu){var ju={type:REMOVE,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:zu,name:Ru};Vu&&notifyListeners(this,ju)}}finally{endBatch()}return!0},$u.observe_=function(Ru,Lu){return registerListener(this,Ru)},$u.intercept_=function(Ru){return registerInterceptor(this,Ru)},$u.notifyPropertyAddition_=function(Ru,Lu){var Ou,Fu,Nu=hasListeners(this),Vu=!1;if(Nu||Vu){var Uu=Nu||Vu?{type:ADD,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:Ru,newValue:Lu}:null;Nu&&notifyListeners(this,Uu)}(Ou=this.pendingKeys_)==null||(Fu=Ou.get(Ru))==null||Fu.set(!0),this.keysAtom_.reportChanged()},$u.ownKeys_=function(){return this.keysAtom_.reportObserved(),ownKeys(this.target_)},$u.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},_u}();function asObservableObject(_u,$u){var Bu;if(hasProp(_u,$mobx))return _u;var Ru=(Bu=$u==null?void 0:$u.name)!=null?Bu:"ObservableObject",Lu=new ObservableObjectAdministration(_u,new Map,String(Ru),getAnnotationFromOptions($u));return addHiddenProp(_u,$mobx,Lu),_u}var isObservableObjectAdministration=createInstanceofPredicate("ObservableObjectAdministration",ObservableObjectAdministration);function getCachedObservablePropDescriptor(_u){return descriptorCache[_u]||(descriptorCache[_u]={get:function(){return this[$mobx].getObservablePropValue_(_u)},set:function(Bu){return this[$mobx].setObservablePropValue_(_u,Bu)}})}function isObservableObject(_u){return isObject(_u)?isObservableObjectAdministration(_u[$mobx]):!1}function recordAnnotationApplied(_u,$u,Bu){var Ru;(Ru=_u.target_[storedAnnotationsSymbol])==null||delete Ru[Bu]}var ENTRY_0=createArrayEntryDescriptor(0),OBSERVABLE_ARRAY_BUFFER_SIZE=0,StubArray=function _u(){};function inherit(_u,$u){Object.setPrototypeOf?Object.setPrototypeOf(_u.prototype,$u):_u.prototype.__proto__!==void 0?_u.prototype.__proto__=$u:_u.prototype=$u}inherit(StubArray,Array.prototype);var LegacyObservableArray=function(_u,$u,Bu){_inheritsLoose(Ru,_u);function Ru(Ou,Fu,Nu,Vu){var Uu;Nu===void 0&&(Nu="ObservableArray"),Vu===void 0&&(Vu=!1),Uu=_u.call(this)||this;var Gu=new ObservableArrayAdministration(Nu,Fu,Vu,!0);if(Gu.proxy_=_assertThisInitialized(Uu),addHiddenFinalProp(_assertThisInitialized(Uu),$mobx,Gu),Ou&&Ou.length){var zu=allowStateChangesStart(!0);Uu.spliceWithArray(0,0,Ou),allowStateChangesEnd(zu)}return Object.defineProperty(_assertThisInitialized(Uu),"0",ENTRY_0),Uu}var Lu=Ru.prototype;return Lu.concat=function(){this[$mobx].atom_.reportObserved();for(var Fu=arguments.length,Nu=new Array(Fu),Vu=0;Vu<Fu;Vu++)Nu[Vu]=arguments[Vu];return Array.prototype.concat.apply(this.slice(),Nu.map(function(Uu){return isObservableArray(Uu)?Uu.slice():Uu}))},Lu[Bu]=function(){var Ou=this,Fu=0;return makeIterable({next:function(){return Fu<Ou.length?{value:Ou[Fu++],done:!1}:{done:!0,value:void 0}}})},_createClass(Ru,[{key:"length",get:function(){return this[$mobx].getArrayLength_()},set:function(Fu){this[$mobx].setArrayLength_(Fu)}},{key:$u,get:function(){return"Array"}}]),Ru}(StubArray,Symbol.toStringTag,Symbol.iterator);Object.entries(arrayExtensions).forEach(function(_u){var $u=_u[0],Bu=_u[1];$u!=="concat"&&addHiddenProp(LegacyObservableArray.prototype,$u,Bu)});function createArrayEntryDescriptor(_u){return{enumerable:!1,configurable:!0,get:function(){return this[$mobx].get_(_u)},set:function(Bu){this[$mobx].set_(_u,Bu)}}}function createArrayBufferItem(_u){defineProperty(LegacyObservableArray.prototype,""+_u,createArrayEntryDescriptor(_u))}function reserveArrayBuffer(_u){if(_u>OBSERVABLE_ARRAY_BUFFER_SIZE){for(var $u=OBSERVABLE_ARRAY_BUFFER_SIZE;$u<_u+100;$u++)createArrayBufferItem($u);OBSERVABLE_ARRAY_BUFFER_SIZE=_u}}reserveArrayBuffer(1e3);function createLegacyArray(_u,$u,Bu){return new LegacyObservableArray(_u,$u,Bu)}function getAtom(_u,$u){if(typeof _u=="object"&&_u!==null){if(isObservableArray(_u))return $u!==void 0&&die(23),_u[$mobx].atom_;if(isObservableSet(_u))return _u[$mobx];if(isObservableMap(_u)){if($u===void 0)return _u.keysAtom_;var Bu=_u.data_.get($u)||_u.hasMap_.get($u);return Bu||die(25,$u,getDebugName(_u)),Bu}if(isObservableObject(_u)){if(!$u)return die(26);var Ru=_u[$mobx].values_.get($u);return Ru||die(27,$u,getDebugName(_u)),Ru}if(isAtom(_u)||isComputedValue(_u)||isReaction(_u))return _u}else if(isFunction(_u)&&isReaction(_u[$mobx]))return _u[$mobx];die(28)}function getAdministration(_u,$u){if(_u||die(29),$u!==void 0)return getAdministration(getAtom(_u,$u));if(isAtom(_u)||isComputedValue(_u)||isReaction(_u)||isObservableMap(_u)||isObservableSet(_u))return _u;if(_u[$mobx])return _u[$mobx];die(24,_u)}function getDebugName(_u,$u){var Bu;if($u!==void 0)Bu=getAtom(_u,$u);else{if(isAction(_u))return _u.name;isObservableObject(_u)||isObservableMap(_u)||isObservableSet(_u)?Bu=getAdministration(_u):Bu=getAtom(_u)}return Bu.name_}var toString=objectPrototype.toString;function deepEqual(_u,$u,Bu){return Bu===void 0&&(Bu=-1),eq(_u,$u,Bu)}function eq(_u,$u,Bu,Ru,Lu){if(_u===$u)return _u!==0||1/_u===1/$u;if(_u==null||$u==null)return!1;if(_u!==_u)return $u!==$u;var Ou=typeof _u;if(Ou!=="function"&&Ou!=="object"&&typeof $u!="object")return!1;var Fu=toString.call(_u);if(Fu!==toString.call($u))return!1;switch(Fu){case"[object RegExp]":case"[object String]":return""+_u==""+$u;case"[object Number]":return+_u!=+_u?+$u!=+$u:+_u==0?1/+_u===1/$u:+_u==+$u;case"[object Date]":case"[object Boolean]":return+_u==+$u;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(_u)===Symbol.valueOf.call($u);case"[object Map]":case"[object Set]":Bu>=0&&Bu++;break}_u=unwrap(_u),$u=unwrap($u);var Nu=Fu==="[object Array]";if(!Nu){if(typeof _u!="object"||typeof $u!="object")return!1;var Vu=_u.constructor,Uu=$u.constructor;if(Vu!==Uu&&!(isFunction(Vu)&&Vu instanceof Vu&&isFunction(Uu)&&Uu instanceof Uu)&&"constructor"in _u&&"constructor"in $u)return!1}if(Bu===0)return!1;Bu<0&&(Bu=-1),Ru=Ru||[],Lu=Lu||[];for(var Gu=Ru.length;Gu--;)if(Ru[Gu]===_u)return Lu[Gu]===$u;if(Ru.push(_u),Lu.push($u),Nu){if(Gu=_u.length,Gu!==$u.length)return!1;for(;Gu--;)if(!eq(_u[Gu],$u[Gu],Bu-1,Ru,Lu))return!1}else{var zu=Object.keys(_u),Hu;if(Gu=zu.length,Object.keys($u).length!==Gu)return!1;for(;Gu--;)if(Hu=zu[Gu],!(hasProp($u,Hu)&&eq(_u[Hu],$u[Hu],Bu-1,Ru,Lu)))return!1}return Ru.pop(),Lu.pop(),!0}function unwrap(_u){return isObservableArray(_u)?_u.slice():isES6Map(_u)||isObservableMap(_u)||isES6Set(_u)||isObservableSet(_u)?Array.from(_u.entries()):_u}function makeIterable(_u){return _u[Symbol.iterator]=getSelf,_u}function getSelf(){return this}["Symbol","Map","Set"].forEach(function(_u){var $u=getGlobal();typeof $u[_u]=="undefined"&&die("MobX requires global '"+_u+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy,extras:{getDebugName},$mobx});if(!react$1.exports.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function defaultNoopBatch(_u){_u()}function observerBatching(_u){_u||(_u=defaultNoopBatch),configure({reactionScheduler:_u})}function printDebugValue(_u){return getDependencyTree(_u)}var FinalizationRegistryLocal=typeof FinalizationRegistry=="undefined"?void 0:FinalizationRegistry;function createTrackingData(_u){var $u={reaction:_u,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS};return $u}var CLEANUP_LEAKED_REACTIONS_AFTER_MILLIS=1e4,CLEANUP_TIMER_LOOP_MILLIS=1e4;function createReactionCleanupTrackingUsingFinalizationRegister(_u){var $u=new Map,Bu=1,Ru=new _u(function(Ou){var Fu=$u.get(Ou);Fu&&(Fu.reaction.dispose(),$u.delete(Ou))});return{addReactionToTrack:function(Lu,Ou,Fu){var Nu=Bu++;return Ru.register(Fu,Nu,Lu),Lu.current=createTrackingData(Ou),Lu.current.finalizationRegistryCleanupToken=Nu,$u.set(Nu,Lu.current),Lu.current},recordReactionAsCommitted:function(Lu){Ru.unregister(Lu),Lu.current&&Lu.current.finalizationRegistryCleanupToken&&$u.delete(Lu.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}var __values=globalThis&&globalThis.__values||function(_u){var $u=typeof Symbol=="function"&&Symbol.iterator,Bu=$u&&_u[$u],Ru=0;if(Bu)return Bu.call(_u);if(_u&&typeof _u.length=="number")return{next:function(){return _u&&Ru>=_u.length&&(_u=void 0),{value:_u&&_u[Ru++],done:!_u}}};throw new TypeError($u?"Object is not iterable.":"Symbol.iterator is not defined.")};function createTimerBasedReactionCleanupTracking(){var _u=new Set,$u;function Bu(){$u&&(clearTimeout($u),Nu())}function Ru(){var Vu,Uu;if(_u.size>0){try{for(var Gu=__values(_u),zu=Gu.next();!zu.done;zu=Gu.next()){var Hu=zu.value,ju=Hu.current;ju&&(ju.reaction.dispose(),Hu.current=null)}}catch(Qu){Vu={error:Qu}}finally{try{zu&&!zu.done&&(Uu=Gu.return)&&Uu.call(Gu)}finally{if(Vu)throw Vu.error}}_u.clear()}$u&&(clearTimeout($u),$u=void 0)}function Lu(){$u===void 0&&($u=setTimeout(Nu,CLEANUP_TIMER_LOOP_MILLIS))}function Ou(Vu){_u.add(Vu),Lu()}function Fu(Vu){_u.delete(Vu)}function Nu(){$u=void 0;var Vu=Date.now();_u.forEach(function(Uu){var Gu=Uu.current;Gu&&Vu>=Gu.cleanAt&&(Gu.reaction.dispose(),Uu.current=null,_u.delete(Uu))}),_u.size>0&&Lu()}return{addReactionToTrack:function(Vu,Uu,Gu){return Vu.current=createTrackingData(Uu),Ou(Vu),Vu.current},recordReactionAsCommitted:Fu,forceCleanupTimerToRunNowForTests:Bu,resetCleanupScheduleForTests:Ru}}var _a$1=FinalizationRegistryLocal?createReactionCleanupTrackingUsingFinalizationRegister(FinalizationRegistryLocal):createTimerBasedReactionCleanupTracking(),addReactionToTrack=_a$1.addReactionToTrack,recordReactionAsCommitted=_a$1.recordReactionAsCommitted,__read=globalThis&&globalThis.__read||function(_u,$u){var Bu=typeof Symbol=="function"&&_u[Symbol.iterator];if(!Bu)return _u;var Ru=Bu.call(_u),Lu,Ou=[],Fu;try{for(;($u===void 0||$u-- >0)&&!(Lu=Ru.next()).done;)Ou.push(Lu.value)}catch(Nu){Fu={error:Nu}}finally{try{Lu&&!Lu.done&&(Bu=Ru.return)&&Bu.call(Ru)}finally{if(Fu)throw Fu.error}}return Ou};function observerComponentNameFor(_u){return"observer".concat(_u)}var ObjectToBeRetainedByReact=function(){function _u(){}return _u}();function objectToBeRetainedByReactFactory(){return new ObjectToBeRetainedByReact}function useObserver(_u,$u){$u===void 0&&($u="observed");var Bu=__read(React.useState(objectToBeRetainedByReactFactory),1),Ru=Bu[0],Lu=__read(React.useState(),2),Ou=Lu[1],Fu=function(){return Ou([])},Nu=React.useRef(null);if(!Nu.current)var Vu=new Reaction(observerComponentNameFor($u),function(){Uu.mounted?Fu():Uu.changedBeforeMount=!0}),Uu=addReactionToTrack(Nu,Vu,Ru);var Gu=Nu.current.reaction;React.useDebugValue(Gu,printDebugValue),React.useEffect(function(){return recordReactionAsCommitted(Nu),Nu.current?(Nu.current.mounted=!0,Nu.current.changedBeforeMount&&(Nu.current.changedBeforeMount=!1,Fu())):(Nu.current={reaction:new Reaction(observerComponentNameFor($u),function(){Fu()}),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},Fu()),function(){Nu.current.reaction.dispose(),Nu.current=null}},[]);var zu,Hu;if(Gu.track(function(){try{zu=_u()}catch(ju){Hu=ju}}),Hu)throw Hu;return zu}var hasSymbol=typeof Symbol=="function"&&Symbol.for,ReactForwardRefSymbol=hasSymbol?Symbol.for("react.forward_ref"):typeof react$1.exports.forwardRef=="function"&&react$1.exports.forwardRef(function(_u){return null}).$$typeof,ReactMemoSymbol=hasSymbol?Symbol.for("react.memo"):typeof react$1.exports.memo=="function"&&react$1.exports.memo(function(_u){return null}).$$typeof;function observer$1(_u,$u){var Bu;if(ReactMemoSymbol&&_u.$$typeof===ReactMemoSymbol)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var Ru=(Bu=$u==null?void 0:$u.forwardRef)!==null&&Bu!==void 0?Bu:!1,Lu=_u,Ou=_u.displayName||_u.name;if(ReactForwardRefSymbol&&_u.$$typeof===ReactForwardRefSymbol&&(Ru=!0,Lu=_u.render,typeof Lu!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var Fu=function(Nu,Vu){return useObserver(function(){return Lu(Nu,Vu)},Ou)};return Ou!==""&&(Fu.displayName=Ou),_u.contextTypes&&(Fu.contextTypes=_u.contextTypes),Ru&&(Fu=react$1.exports.forwardRef(Fu)),Fu=react$1.exports.memo(Fu),copyStaticProperties(_u,Fu),Fu}var hoistBlackList={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function copyStaticProperties(_u,$u){Object.keys(_u).forEach(function(Bu){hoistBlackList[Bu]||Object.defineProperty($u,Bu,Object.getOwnPropertyDescriptor(_u,Bu))})}globalThis&&globalThis.__read;observerBatching(reactDom.exports.unstable_batchedUpdates);var symbolId=0;function createSymbol(_u){if(typeof Symbol=="function")return Symbol(_u);var $u="__$mobx-react "+_u+" ("+symbolId+")";return symbolId++,$u}var createdSymbols={};function newSymbol(_u){return createdSymbols[_u]||(createdSymbols[_u]=createSymbol(_u)),createdSymbols[_u]}function shallowEqual(_u,$u){if(is$1(_u,$u))return!0;if(typeof _u!="object"||_u===null||typeof $u!="object"||$u===null)return!1;var Bu=Object.keys(_u),Ru=Object.keys($u);if(Bu.length!==Ru.length)return!1;for(var Lu=0;Lu<Bu.length;Lu++)if(!Object.hasOwnProperty.call($u,Bu[Lu])||!is$1(_u[Bu[Lu]],$u[Bu[Lu]]))return!1;return!0}function is$1(_u,$u){return _u===$u?_u!==0||1/_u===1/$u:_u!==_u&&$u!==$u}function setHiddenProp(_u,$u,Bu){Object.hasOwnProperty.call(_u,$u)?_u[$u]=Bu:Object.defineProperty(_u,$u,{enumerable:!1,configurable:!0,writable:!0,value:Bu})}var mobxMixins=newSymbol("patchMixins"),mobxPatchedDefinition=newSymbol("patchedDefinition");function getMixins(_u,$u){var Bu=_u[mobxMixins]=_u[mobxMixins]||{},Ru=Bu[$u]=Bu[$u]||{};return Ru.locks=Ru.locks||0,Ru.methods=Ru.methods||[],Ru}function wrapper(_u,$u){for(var Bu=this,Ru=arguments.length,Lu=new Array(Ru>2?Ru-2:0),Ou=2;Ou<Ru;Ou++)Lu[Ou-2]=arguments[Ou];$u.locks++;try{var Fu;return _u!=null&&(Fu=_u.apply(this,Lu)),Fu}finally{$u.locks--,$u.locks===0&&$u.methods.forEach(function(Nu){Nu.apply(Bu,Lu)})}}function wrapFunction(_u,$u){var Bu=function(){for(var Lu=arguments.length,Ou=new Array(Lu),Fu=0;Fu<Lu;Fu++)Ou[Fu]=arguments[Fu];wrapper.call.apply(wrapper,[this,_u,$u].concat(Ou))};return Bu}function patch(_u,$u,Bu){var Ru=getMixins(_u,$u);Ru.methods.indexOf(Bu)<0&&Ru.methods.push(Bu);var Lu=Object.getOwnPropertyDescriptor(_u,$u);if(!(Lu&&Lu[mobxPatchedDefinition])){var Ou=_u[$u],Fu=createDefinition(_u,$u,Lu?Lu.enumerable:void 0,Ru,Ou);Object.defineProperty(_u,$u,Fu)}}function createDefinition(_u,$u,Bu,Ru,Lu){var Ou,Fu=wrapFunction(Lu,Ru);return Ou={},Ou[mobxPatchedDefinition]=!0,Ou.get=function(){return Fu},Ou.set=function(Vu){if(this===_u)Fu=wrapFunction(Vu,Ru);else{var Uu=createDefinition(this,$u,Bu,Ru,Vu);Object.defineProperty(this,$u,Uu)}},Ou.configurable=!0,Ou.enumerable=Bu,Ou}var mobxAdminProperty=$mobx||"$mobx",mobxObserverProperty=newSymbol("isMobXReactObserver"),mobxIsUnmounted=newSymbol("isUnmounted"),skipRenderKey=newSymbol("skipRender"),isForcingUpdateKey=newSymbol("isForcingUpdate");function makeClassComponentObserver(_u){var $u=_u.prototype;if(_u[mobxObserverProperty]){var Bu=getDisplayName($u);console.warn("The provided component class ("+Bu+`)
3693
3693
  has already been declared as an observer component.`)}else _u[mobxObserverProperty]=!0;if($u.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(_u.__proto__!==react$1.exports.PureComponent){if(!$u.shouldComponentUpdate)$u.shouldComponentUpdate=observerSCU;else if($u.shouldComponentUpdate!==observerSCU)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}makeObservableProp($u,"props"),makeObservableProp($u,"state"),_u.contextType&&makeObservableProp($u,"context");var Ru=$u.render;if(typeof Ru!="function"){var Lu=getDisplayName($u);throw new Error("[mobx-react] class component ("+Lu+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}return $u.render=function(){return this.render=createReactiveRender.call(this,Ru),this.render()},patch($u,"componentDidMount",function(){this[mobxIsUnmounted]=!1,this.render[mobxAdminProperty]||react$1.exports.Component.prototype.forceUpdate.call(this)}),patch($u,"componentWillUnmount",function(){var Ou=this.render[mobxAdminProperty];if(Ou)Ou.dispose(),this.render[mobxAdminProperty]=null;else{var Fu=getDisplayName(this);console.warn("The reactive render of an observer class component ("+Fu+`)
3694
3694
  was overridden after MobX attached. This may result in a memory leak if the
3695
- overridden reactive render was not properly disposed.`)}this[mobxIsUnmounted]=!0}),_u}function getDisplayName(_u){return _u.displayName||_u.name||_u.constructor&&(_u.constructor.displayName||_u.constructor.name)||"<component>"}function createReactiveRender(_u){var $u=this;setHiddenProp(this,skipRenderKey,!1),setHiddenProp(this,isForcingUpdateKey,!1);var Bu=getDisplayName(this),Ru=_u.bind(this),Lu=!1,Ou=function(){var Vu=new Reaction(Bu+".render()",function(){if(!Lu&&(Lu=!0,$u[mobxIsUnmounted]!==!0)){var Uu=!0;try{setHiddenProp($u,isForcingUpdateKey,!0),$u[skipRenderKey]||react$1.exports.Component.prototype.forceUpdate.call($u),Uu=!1}finally{setHiddenProp($u,isForcingUpdateKey,!1),Uu&&(Vu.dispose(),$u.render[mobxAdminProperty]=null)}}});return Vu.reactComponent=$u,Vu};function Fu(){var Nu;Lu=!1;var Vu=(Nu=Fu[mobxAdminProperty])!=null?Nu:Fu[mobxAdminProperty]=Ou(),Uu=void 0,Gu=void 0;if(Vu.track(function(){try{Gu=allowStateChanges(!1,Ru)}catch(zu){Uu=zu}}),Uu)throw Uu;return Gu}return Fu}function observerSCU(_u,$u){return this.state!==$u?!0:!shallowEqual(this.props,_u)}function makeObservableProp(_u,$u){var Bu=newSymbol("reactProp_"+$u+"_valueHolder"),Ru=newSymbol("reactProp_"+$u+"_atomHolder");function Lu(){return this[Ru]||setHiddenProp(this,Ru,createAtom("reactive "+$u)),this[Ru]}Object.defineProperty(_u,$u,{configurable:!0,enumerable:!0,get:function(){var Fu=!1;return allowStateReadsStart&&allowStateReadsEnd&&(Fu=allowStateReadsStart(!0)),Lu.call(this).reportObserved(),allowStateReadsStart&&allowStateReadsEnd&&allowStateReadsEnd(Fu),this[Bu]},set:function(Fu){!this[isForcingUpdateKey]&&!shallowEqual(this[Bu],Fu)?(setHiddenProp(this,Bu,Fu),setHiddenProp(this,skipRenderKey,!0),Lu.call(this).reportChanged(),setHiddenProp(this,skipRenderKey,!1)):setHiddenProp(this,Bu,Fu)}})}function observer(_u){return _u.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(react$1.exports.Component,_u)||Object.prototype.isPrototypeOf.call(react$1.exports.PureComponent,_u)?makeClassComponentObserver(_u):observer$1(_u)}if(!react$1.exports.Component)throw new Error("mobx-react requires React to be available");if(!observable)throw new Error("mobx-react requires mobx to be available");const _requestAnimationFrame=window.requestAnimationFrame||(_u=>setTimeout(_u,16)),_cancelAnimationFrame=window.cancelAnimationFrame||clearTimeout;function nextFrame(_u,$u=0){$u<=0?_requestAnimationFrame(_u):_requestAnimationFrame(()=>nextFrame(_u,$u-1))}function requestAnimationFrameInterval(_u,$u=60){let Bu=-1,Ru=0,Lu=-1;const Ou=1e3/$u;function Fu(Nu){Lu===-1&&(Lu=Nu),Bu=_requestAnimationFrame(Fu),!(Nu-Ru<Ou)&&(Ru=Nu,_u&&_u(Nu-Lu))}return Bu=_requestAnimationFrame(Fu),function(){_cancelAnimationFrame(Bu)}}function setElementDataset(_u,$u){_u&&Object.keys($u).forEach(Bu=>{const Ru=$u[Bu].toString();_u instanceof Element?_u.setAttribute(`data-${Bu}`,Ru):_u instanceof Document?_u.documentElement.setAttribute(`data-${Bu}`,Ru):_u instanceof HTMLElement?_u.dataset[Bu]=Ru:_u.setAttribute(`data-${Bu}`,Ru)})}function getFileExpandedName(_u){if(!_u)return"";const $u=_u.lastIndexOf(".");return _u.substring($u+1).toLowerCase()}function getMediaType(_u){const $u=getFileExpandedName(_u);return getMediaTypeByExpandedName($u)}function getMediaTypeByExpandedName(_u){return _u?/jpg|jpeg|png$/.test(_u)?"image":/mp3|wav$/.test(_u)?"audio":/avi|wmv|mpeg|mp4|m4v|mov|asf|flv|f4v|rmvb|rm|3gp|vob$/.test(_u)?"video":"unknown":"unknown"}class Controller extends Subscribe{constructor({five:Bu,container:Ru,configs:Lu}){super();xm(this,"five");xm(this,"configs");xm(this,"videoAgentScene");xm(this,"vreoUnit");xm(this,"stopInterval");xm(this,"playing",!1);xm(this,"ended",!1);xm(this,"loading",!1);xm(this,"containerSize",{width:0,height:0});xm(this,"appSize");xm(this,"container");xm(this,"waveAppearance",null);xm(this,"appearance",{waveStyle:"wave"});xm(this,"avatar",{});xm(this,"visible",!1);xm(this,"popUp",null);xm(this,"drawerConfig",null);this.configs=Lu,this.container=Ru,this.five=Bu,this.appSize=Lu.appSize,this.appearance={...this.appearance,...Lu.appearance},makeObservable(this,{visible:observable,setVisible:action,playing:observable,setPlaying:action,loading:observable,setLoading:action,popUp:observable.ref,openPopUp:action,drawerConfig:observable.ref,openDrawer:action,ended:observable,waveAppearance:observable,avatar:observable,containerSize:observable,setContainerSize:action,appearance:observable,setAppearance:action,configs:observable.ref,setEnded:action,setAvatar:action}),reaction(()=>[this.appearance.waveStyle,this.loading],([Ou,Fu])=>{if(Fu===null){this.waveAppearance=null;return}if(Ou==="wave")switch(Fu){case!0:this.waveAppearance="double";break;case!1:this.waveAppearance="solid";break}else if(Ou==="solid")switch(Fu){case!0:this.waveAppearance="swap";break;case!1:this.waveAppearance="expand";break}},{fireImmediately:!0}),this.appSize?setElementDataset(this.container,{size:this.appSize}):reaction(()=>this.containerSize,Ou=>{if(!(Ou!=null&&Ou.width))return;const Fu=Ou.width,Nu=Ou.height,Vu=(()=>Fu<=500?"S":Fu<=1024?"M":Fu<=2048?"L":"XL")(),Uu=(()=>Nu>Fu?"portrait":"landscape")();setElementDataset(this.container,{size:Vu}),setElementDataset(this.container,{orientation:Uu})},{fireImmediately:!0}),reaction(()=>this.ended,Ou=>{Ou&&this.emit("paused",!0)}),reaction(()=>this.playing,Ou=>{this.ended||this.emit(Ou?"playing":"paused")})}get agentType(){var Ru,Lu;const Bu=getMediaType((Ru=this.videoAgentScene)==null?void 0:Ru.videoAgentMesh.videoUrl);return(Lu=this.avatar)!=null&&Lu.force?"avatar":Bu==="video"?"video":"none"}openPopUp(Bu){if(!Bu){this.popUp=null;return}this.popUp=Bu}setLoading(Bu){this.loading=Bu}setAvatar(Bu){this.avatar=Bu}setContainerSize(Bu,Ru){this.containerSize={width:Bu,height:Ru}}setVisible(Bu){this.visible=Bu}setPlaying(Bu){this.playing=Bu}setEnded(Bu){this.ended=Bu}setAppearance(Bu){this.appearance={...this.appearance,...Bu}}openDrawer(Bu){var Ru;if(!Bu){this.drawerConfig={content:"",height:(Ru=this.drawerConfig)==null?void 0:Ru.height};return}this.drawerConfig=Bu}get ready(){return!!this.videoAgentScene}get currentTime(){var Bu;return((Bu=this.videoAgentScene)==null?void 0:Bu.videoAgentMesh.currentTime)||0}get currentKeyframes(){return this.vreoUnit?this.vreoUnit.keyframes.filter(Ru=>{if(Ru.parsed)return!1;const Lu=this.currentTime-Ru.start;return Lu<=100&&Lu>=0}):[]}get mediaInstance(){var Bu;return(Bu=this.videoAgentScene)==null?void 0:Bu.videoAgentMesh.mediaInstance}requestAnimationFrameLoop(Bu){var Lu,Ou,Fu,Nu;if((Lu=this.mediaInstance)!=null&&Lu.ended){this.setEnded(!0),this.setPlaying(!1),this.mediaInstance.pause();return}if(!this.playing){(Ou=this.mediaInstance)!=null&&Ou.paused||(Fu=this.mediaInstance)==null||Fu.pause();return}((Nu=this.mediaInstance)==null?void 0:Nu.paused)&&this.playing&&this.mediaInstance.play(),this.currentKeyframes.forEach(Vu=>{Vu.parsed||(Vu.parsed=!0,this.emit(Vu.type,Vu),Bu&&Bu(Vu.type,Vu))})}run(Bu){this.stopInterval||(this.stopInterval=requestAnimationFrameInterval(()=>this.requestAnimationFrameLoop(Bu)))}dispose(){this.setPlaying(!1),this.currentKeyframes&&this.currentKeyframes.forEach(Bu=>Bu.parsed=!1),this.vreoUnit=void 0,this.mediaInstance&&(this.mediaInstance.currentTime=0),this.stopInterval&&(this.stopInterval(),this.stopInterval=void 0)}}const ControllerContext=react$1.exports.createContext(null);function useController(){const _u=React.useContext(ControllerContext);if(!_u)throw new Error('\u6CA1\u6709\u627E\u5230 "ControllerContext"');return _u}function useFiveInstance(){const _u=useController();if(!_u.five)throw new Error('\u6CA1\u6709\u627E\u5230 "five" \u5B9E\u4F8B');return _u.five}function useFiveProject2d(){const _u=useFiveInstance();return $u=>_u.project2d($u,!1)}var CameraMovementEffect=(_u=>(_u.Move="Move",_u.Rotate="Rotate",_u))(CameraMovementEffect||{}),Rotation=(_u=>(_u.Clockwise="Clockwise",_u.Anticlockwise="Anticlockwise",_u.Loop="Loop",_u))(Rotation||{}),Easing$1={Linear:{None:function(_u){return _u}},Quadratic:{In:function(_u){return _u*_u},Out:function(_u){return _u*(2-_u)},InOut:function(_u){return(_u*=2)<1?.5*_u*_u:-.5*(--_u*(_u-2)-1)}},Cubic:{In:function(_u){return _u*_u*_u},Out:function(_u){return--_u*_u*_u+1},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u:.5*((_u-=2)*_u*_u+2)}},Quartic:{In:function(_u){return _u*_u*_u*_u},Out:function(_u){return 1- --_u*_u*_u*_u},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u*_u:-.5*((_u-=2)*_u*_u*_u-2)}},Quintic:{In:function(_u){return _u*_u*_u*_u*_u},Out:function(_u){return--_u*_u*_u*_u*_u+1},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u*_u*_u:.5*((_u-=2)*_u*_u*_u*_u+2)}},Sinusoidal:{In:function(_u){return 1-Math.cos(_u*Math.PI/2)},Out:function(_u){return Math.sin(_u*Math.PI/2)},InOut:function(_u){return .5*(1-Math.cos(Math.PI*_u))}},Exponential:{In:function(_u){return _u===0?0:Math.pow(1024,_u-1)},Out:function(_u){return _u===1?1:1-Math.pow(2,-10*_u)},InOut:function(_u){return _u===0?0:_u===1?1:(_u*=2)<1?.5*Math.pow(1024,_u-1):.5*(-Math.pow(2,-10*(_u-1))+2)}},Circular:{In:function(_u){return 1-Math.sqrt(1-_u*_u)},Out:function(_u){return Math.sqrt(1- --_u*_u)},InOut:function(_u){return(_u*=2)<1?-.5*(Math.sqrt(1-_u*_u)-1):.5*(Math.sqrt(1-(_u-=2)*_u)+1)}},Elastic:{In:function(_u){return _u===0?0:_u===1?1:-Math.pow(2,10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI)},Out:function(_u){return _u===0?0:_u===1?1:Math.pow(2,-10*_u)*Math.sin((_u-.1)*5*Math.PI)+1},InOut:function(_u){return _u===0?0:_u===1?1:(_u*=2,_u<1?-.5*Math.pow(2,10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI):.5*Math.pow(2,-10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI)+1)}},Back:{In:function(_u){var $u=1.70158;return _u*_u*(($u+1)*_u-$u)},Out:function(_u){var $u=1.70158;return--_u*_u*(($u+1)*_u+$u)+1},InOut:function(_u){var $u=2.5949095;return(_u*=2)<1?.5*(_u*_u*(($u+1)*_u-$u)):.5*((_u-=2)*_u*(($u+1)*_u+$u)+2)}},Bounce:{In:function(_u){return 1-Easing$1.Bounce.Out(1-_u)},Out:function(_u){return _u<1/2.75?7.5625*_u*_u:_u<2/2.75?7.5625*(_u-=1.5/2.75)*_u+.75:_u<2.5/2.75?7.5625*(_u-=2.25/2.75)*_u+.9375:7.5625*(_u-=2.625/2.75)*_u+.984375},InOut:function(_u){return _u<.5?Easing$1.Bounce.In(_u*2)*.5:Easing$1.Bounce.Out(_u*2-1)*.5+.5}}},now;typeof self=="undefined"&&typeof process!="undefined"&&process.hrtime?now=function(){var _u=process.hrtime();return _u[0]*1e3+_u[1]/1e6}:typeof self!="undefined"&&self.performance!==void 0&&self.performance.now!==void 0?now=self.performance.now.bind(self.performance):Date.now!==void 0?now=Date.now:now=function(){return new Date().getTime()};var now$1=now,Group=function(){function _u(){this._tweens={},this._tweensAddedDuringUpdate={}}return _u.prototype.getAll=function(){var $u=this;return Object.keys(this._tweens).map(function(Bu){return $u._tweens[Bu]})},_u.prototype.removeAll=function(){this._tweens={}},_u.prototype.add=function($u){this._tweens[$u.getId()]=$u,this._tweensAddedDuringUpdate[$u.getId()]=$u},_u.prototype.remove=function($u){delete this._tweens[$u.getId()],delete this._tweensAddedDuringUpdate[$u.getId()]},_u.prototype.update=function($u,Bu){$u===void 0&&($u=now$1()),Bu===void 0&&(Bu=!1);var Ru=Object.keys(this._tweens);if(Ru.length===0)return!1;for(;Ru.length>0;){this._tweensAddedDuringUpdate={};for(var Lu=0;Lu<Ru.length;Lu++){var Ou=this._tweens[Ru[Lu]],Fu=!Bu;Ou&&Ou.update($u,Fu)===!1&&!Bu&&delete this._tweens[Ru[Lu]]}Ru=Object.keys(this._tweensAddedDuringUpdate)}return!0},_u}(),Interpolation={Linear:function(_u,$u){var Bu=_u.length-1,Ru=Bu*$u,Lu=Math.floor(Ru),Ou=Interpolation.Utils.Linear;return $u<0?Ou(_u[0],_u[1],Ru):$u>1?Ou(_u[Bu],_u[Bu-1],Bu-Ru):Ou(_u[Lu],_u[Lu+1>Bu?Bu:Lu+1],Ru-Lu)},Bezier:function(_u,$u){for(var Bu=0,Ru=_u.length-1,Lu=Math.pow,Ou=Interpolation.Utils.Bernstein,Fu=0;Fu<=Ru;Fu++)Bu+=Lu(1-$u,Ru-Fu)*Lu($u,Fu)*_u[Fu]*Ou(Ru,Fu);return Bu},CatmullRom:function(_u,$u){var Bu=_u.length-1,Ru=Bu*$u,Lu=Math.floor(Ru),Ou=Interpolation.Utils.CatmullRom;return _u[0]===_u[Bu]?($u<0&&(Lu=Math.floor(Ru=Bu*(1+$u))),Ou(_u[(Lu-1+Bu)%Bu],_u[Lu],_u[(Lu+1)%Bu],_u[(Lu+2)%Bu],Ru-Lu)):$u<0?_u[0]-(Ou(_u[0],_u[0],_u[1],_u[1],-Ru)-_u[0]):$u>1?_u[Bu]-(Ou(_u[Bu],_u[Bu],_u[Bu-1],_u[Bu-1],Ru-Bu)-_u[Bu]):Ou(_u[Lu?Lu-1:0],_u[Lu],_u[Bu<Lu+1?Bu:Lu+1],_u[Bu<Lu+2?Bu:Lu+2],Ru-Lu)},Utils:{Linear:function(_u,$u,Bu){return($u-_u)*Bu+_u},Bernstein:function(_u,$u){var Bu=Interpolation.Utils.Factorial;return Bu(_u)/Bu($u)/Bu(_u-$u)},Factorial:function(){var _u=[1];return function($u){var Bu=1;if(_u[$u])return _u[$u];for(var Ru=$u;Ru>1;Ru--)Bu*=Ru;return _u[$u]=Bu,Bu}}(),CatmullRom:function(_u,$u,Bu,Ru,Lu){var Ou=(Bu-_u)*.5,Fu=(Ru-$u)*.5,Nu=Lu*Lu,Vu=Lu*Nu;return(2*$u-2*Bu+Ou+Fu)*Vu+(-3*$u+3*Bu-2*Ou-Fu)*Nu+Ou*Lu+$u}}},Sequence=function(){function _u(){}return _u.nextId=function(){return _u._nextId++},_u._nextId=0,_u}(),mainGroup=new Group,Tween=function(){function _u($u,Bu){Bu===void 0&&(Bu=mainGroup),this._object=$u,this._group=Bu,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Easing$1.Linear.None,this._interpolationFunction=Interpolation.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Sequence.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return _u.prototype.getId=function(){return this._id},_u.prototype.isPlaying=function(){return this._isPlaying},_u.prototype.isPaused=function(){return this._isPaused},_u.prototype.to=function($u,Bu){return this._valuesEnd=Object.create($u),Bu!==void 0&&(this._duration=Bu),this},_u.prototype.duration=function($u){return this._duration=$u,this},_u.prototype.start=function($u){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var Bu in this._valuesStartRepeat)this._swapEndStartRepeatValues(Bu),this._valuesStart[Bu]=this._valuesStartRepeat[Bu]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=$u!==void 0?typeof $u=="string"?now$1()+parseFloat($u):$u:now$1(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},_u.prototype._setupProperties=function($u,Bu,Ru,Lu){for(var Ou in Ru){var Fu=$u[Ou],Nu=Array.isArray(Fu),Vu=Nu?"array":typeof Fu,Uu=!Nu&&Array.isArray(Ru[Ou]);if(!(Vu==="undefined"||Vu==="function")){if(Uu){var Gu=Ru[Ou];if(Gu.length===0)continue;Gu=Gu.map(this._handleRelativeValue.bind(this,Fu)),Ru[Ou]=[Fu].concat(Gu)}if((Vu==="object"||Nu)&&Fu&&!Uu){Bu[Ou]=Nu?[]:{};for(var zu in Fu)Bu[Ou][zu]=Fu[zu];Lu[Ou]=Nu?[]:{},this._setupProperties(Fu,Bu[Ou],Ru[Ou],Lu[Ou])}else typeof Bu[Ou]=="undefined"&&(Bu[Ou]=Fu),Nu||(Bu[Ou]*=1),Uu?Lu[Ou]=Ru[Ou].slice().reverse():Lu[Ou]=Bu[Ou]||0}}},_u.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},_u.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},_u.prototype.pause=function($u){return $u===void 0&&($u=now$1()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=$u,this._group&&this._group.remove(this),this)},_u.prototype.resume=function($u){return $u===void 0&&($u=now$1()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=$u-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},_u.prototype.stopChainedTweens=function(){for(var $u=0,Bu=this._chainedTweens.length;$u<Bu;$u++)this._chainedTweens[$u].stop();return this},_u.prototype.group=function($u){return this._group=$u,this},_u.prototype.delay=function($u){return this._delayTime=$u,this},_u.prototype.repeat=function($u){return this._initialRepeat=$u,this._repeat=$u,this},_u.prototype.repeatDelay=function($u){return this._repeatDelayTime=$u,this},_u.prototype.yoyo=function($u){return this._yoyo=$u,this},_u.prototype.easing=function($u){return this._easingFunction=$u,this},_u.prototype.interpolation=function($u){return this._interpolationFunction=$u,this},_u.prototype.chain=function(){for(var $u=[],Bu=0;Bu<arguments.length;Bu++)$u[Bu]=arguments[Bu];return this._chainedTweens=$u,this},_u.prototype.onStart=function($u){return this._onStartCallback=$u,this},_u.prototype.onUpdate=function($u){return this._onUpdateCallback=$u,this},_u.prototype.onRepeat=function($u){return this._onRepeatCallback=$u,this},_u.prototype.onComplete=function($u){return this._onCompleteCallback=$u,this},_u.prototype.onStop=function($u){return this._onStopCallback=$u,this},_u.prototype.update=function($u,Bu){if($u===void 0&&($u=now$1()),Bu===void 0&&(Bu=!0),this._isPaused)return!0;var Ru,Lu,Ou=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if($u>Ou)return!1;Bu&&this.start($u)}if(this._goToEnd=!1,$u<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),Lu=($u-this._startTime)/this._duration,Lu=this._duration===0||Lu>1?1:Lu;var Fu=this._easingFunction(Lu);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,Fu),this._onUpdateCallback&&this._onUpdateCallback(this._object,Lu),Lu===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(Ru in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[Ru]=="string"&&(this._valuesStartRepeat[Ru]=this._valuesStartRepeat[Ru]+parseFloat(this._valuesEnd[Ru])),this._yoyo&&this._swapEndStartRepeatValues(Ru),this._valuesStart[Ru]=this._valuesStartRepeat[Ru];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=$u+this._repeatDelayTime:this._startTime=$u+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var Nu=0,Vu=this._chainedTweens.length;Nu<Vu;Nu++)this._chainedTweens[Nu].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},_u.prototype._updateProperties=function($u,Bu,Ru,Lu){for(var Ou in Ru)if(Bu[Ou]!==void 0){var Fu=Bu[Ou]||0,Nu=Ru[Ou],Vu=Array.isArray($u[Ou]),Uu=Array.isArray(Nu),Gu=!Vu&&Uu;Gu?$u[Ou]=this._interpolationFunction(Nu,Lu):typeof Nu=="object"&&Nu?this._updateProperties($u[Ou],Fu,Nu,Lu):(Nu=this._handleRelativeValue(Fu,Nu),typeof Nu=="number"&&($u[Ou]=Fu+(Nu-Fu)*Lu))}},_u.prototype._handleRelativeValue=function($u,Bu){return typeof Bu!="string"?Bu:Bu.charAt(0)==="+"||Bu.charAt(0)==="-"?$u+parseFloat(Bu):parseFloat(Bu)},_u.prototype._swapEndStartRepeatValues=function($u){var Bu=this._valuesStartRepeat[$u],Ru=this._valuesEnd[$u];typeof Ru=="string"?this._valuesStartRepeat[$u]=this._valuesStartRepeat[$u]+parseFloat(Ru):this._valuesStartRepeat[$u]=this._valuesEnd[$u],this._valuesEnd[$u]=Bu},_u}(),VERSION="18.6.4",nextId=Sequence.nextId,TWEEN=mainGroup,getAll=TWEEN.getAll.bind(TWEEN),removeAll=TWEEN.removeAll.bind(TWEEN),add=TWEEN.add.bind(TWEEN),remove=TWEEN.remove.bind(TWEEN),update=TWEEN.update.bind(TWEEN),exports={Easing:Easing$1,Group,Interpolation,now:now$1,Sequence,nextId,Tween,VERSION,getAll,removeAll,add,remove,update};const Easing=Easing$1;function tween(_u,$u,Bu,Ru=Easing.Linear.None){const Lu=new Tween(_u).to($u,Bu).easing(Ru);nextFrame(()=>Lu.start(0));const Ou=requestAnimationFrameInterval(Nu=>{Lu.update(Nu)===!1&&Ou()}),Fu=[];return Lu.onDestroy=Nu=>(Fu.push(Nu),Lu),Lu.destroy=function(){this.stop(),Object.assign(Lu,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let Nu;for(;Nu=Fu.shift();)Nu();Ou()},Lu}function tweenProgress$1(_u,$u){return tween({progress:0},{progress:1},_u,$u)}const PI$1=Math.PI,PI_2$1=PI$1*2;function formatLatitude(_u){return _u%PI_2$1}function formatLongitude(_u){return _u%PI_2$1}const getLongitudeParams=(_u,$u,Bu)=>{if(_u=formatLongitude(_u),$u=formatLongitude($u),Bu===Rotation.Anticlockwise&&_u>$u)$u+=PI_2$1;else if(Bu===Rotation.Clockwise&&$u>_u)_u+=PI_2$1;else{if(Bu!==Rotation.Anticlockwise&&Bu!==Rotation.Clockwise&&$u-_u>PI$1)return getLongitudeParams(_u,$u,Rotation.Clockwise);if(Bu!==Rotation.Anticlockwise&&Bu!==Rotation.Clockwise&&_u-$u>PI$1)return getLongitudeParams(_u,$u,Rotation.Anticlockwise)}return{from:_u,to:$u}};function progressNumber(_u,$u,Bu){return _u+($u-_u)*Bu}const CameraMovementPlugin=_u=>{const $u=(Lu,Ou,Fu={preload:!0})=>new Promise(async(Nu,Vu)=>{if(Fu.asyncStartCallback&&Fu.asyncStartCallback(),_u.panoIndex===void 0)return Vu(!1);if(Lu.mode&&Lu.mode!==_u.currentMode&&await new Promise(Gu=>{!Lu.mode||(_u.once("modeChange",zu=>{_u.once("initAnimationEnded",()=>{zu===Lu.mode&&Gu(!0)})}),_u.changeMode(Lu.mode,{fov:Lu.fov||void 0,latitude:Lu.latitude||void 0,longitude:Lu.longitude||void 0,panoIndex:Lu.panoIndex||void 0}))}),Lu.mode===Five.Mode.Floorplan||(Fu.preload&&Lu.panoIndex!==void 0&&Lu.panoIndex!==_u.panoIndex&&await _u.preloadPano(Lu.panoIndex),Fu.asyncEndCallback&&Fu.asyncEndCallback(),Lu.panoIndex===void 0&&Lu.fov===void 0&&Lu.latitude===void 0&&Lu.longitude===void 0))return Nu(!0);const Uu=Lu.panoIndex!==void 0?Lu.panoIndex:_u.panoIndex;if(Uu!==void 0){const Gu=Object.assign(Lu,{duration:Ou,moveEndCallback:()=>Nu(!0),moveCancelCallback:()=>{Nu(!0)}});await _u.moveToPano(Uu,Gu)}else Vu(!1)}),Bu=Lu=>{const Ou=_u.state,Fu=formatLatitude(Ou.latitude),Nu=formatLatitude(Lu.latitude),{from:Vu,to:Uu}=getLongitudeParams(Ou.longitude,Lu.longitude,Lu.rotation||Rotation.Loop),Gu=Ou.fov,zu=Lu.fov;return{from:{latitude:Fu,longitude:Vu,fov:Gu},to:{latitude:Nu,longitude:Uu,fov:zu}}};return{move:$u,rotate:async(Lu,Ou,Fu={})=>{Fu.asyncStartCallback&&Fu.asyncStartCallback(),Lu.mode&&_u.currentMode!==Lu.mode&&await _u.changeMode(Lu.mode),Lu.mode===Five.Mode.Panorama&&_u.currentMode===Five.Mode.Panorama&&Lu.panoIndex!==void 0&&Lu.panoIndex!==_u.panoIndex&&(Fu.preload&&await _u.preloadPano(Lu.panoIndex),await new Promise((Uu,Gu)=>{_u.moveToPano(Lu.panoIndex,{moveEndCallback:()=>Uu(!0),moveCancelCallback:()=>Gu(!1),effect:"fade"})})),Fu.asyncEndCallback&&Fu.asyncEndCallback();const{from:Nu,to:Vu}=Bu(Lu);return await new Promise((Uu,Gu)=>{const zu=({progress:Ku})=>{const Wu={};Wu.longitude=progressNumber(Nu.longitude,Vu.longitude,Ku)%PI_2$1,Wu.latitude=progressNumber(Nu.latitude,Vu.latitude,Ku),Wu.fov=progressNumber(Nu.fov,Vu.fov,Ku),_u.setState(Wu,!0)},Hu=()=>{Uu(!0)},ju=()=>{Uu(!1)};let Qu=Ou;Lu.rotation===Rotation.Loop&&(Qu=Lu.rotateSpeed?Math.ceil(Math.abs(Vu.longitude-Nu.longitude)/Lu.rotateSpeed*1e3):Ou);const Xu=tweenProgress$1(Qu,Easing.Linear.None).onUpdate(zu).onComplete(Hu).onDestroy(ju);Lu.rotation===Rotation.Loop&&Xu.repeat(1/0).yoyo(!0),setTimeout(()=>{Xu.destroy(),Uu(!0)},Ou)})}}};var VreoKeyframeEnum=(_u=>(_u.CameraMovement="CameraMovement",_u.PanoTag="PanoTag",_u.PanoTextLabel="PanoTextLabel",_u.Prompter="Prompter",_u.UpdateVRPanorama="UpdateVRPanorama",_u.ModelVideo="ModelVideo",_u.PanoEffect="PanoEffect",_u.InfoPanel="InfoPanel",_u.VideoEffect="VideoEffect",_u.BgMusic="BgMusic",_u.Exit="Exit",_u.Custom="Custom",_u))(VreoKeyframeEnum||{}),InfoPanelTypeEnum=(_u=>(_u.Image="Image",_u.Video="Video",_u))(InfoPanelTypeEnum||{}),InfoPanelStyleEnum=(_u=>(_u.Drawer="Drawer",_u.PopUp="PopUp",_u))(InfoPanelStyleEnum||{});function CameraMovement(){const _u=useController(),$u=useFiveInstance(),Bu=react$1.exports.useRef();return react$1.exports.useEffect(()=>{const Ru=async Lu=>{Bu.current||(Bu.current=CameraMovementPlugin($u));const{start:Ou,end:Fu,data:Nu}=Lu,Vu=Nu,Uu=Vu.effect;Uu===CameraMovementEffect.Rotate?await Bu.current.rotate(Nu,Fu-Ou):Uu===CameraMovementEffect.Move?await Bu.current.move(Nu,Fu-Ou):Vu.panoIndex!==void 0&&Vu.panoIndex!==$u.panoIndex?await Bu.current.move(Nu,Fu-Ou):await Bu.current.rotate(Nu,Fu-Ou)};return _u.on(VreoKeyframeEnum.CameraMovement,Ru),()=>{_u.off(VreoKeyframeEnum.CameraMovement,Ru)}},[_u]),jsx(Fragment,{})}const resizeObserverCache=new Map;function addResizeListener(_u,$u,Bu=!0){if(!_u)return()=>{};if(Bu&&$u(_u.clientWidth,_u.clientHeight),typeof ResizeObserver!="undefined"&&ResizeObserver){const Ru=new ResizeObserver(()=>$u(_u.clientWidth,_u.clientHeight));return Ru.observe(_u),resizeObserverCache.set(_u,resizeObserverCache.get(_u)||0+1),()=>{_u&&Ru.unobserve(_u),resizeObserverCache.get(_u)===1&&resizeObserverCache.delete(_u)}}else{const Ru=document.createElement("iframe");return Ru.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;opacity:0;visibility:hidden;margin:0;border:0;padding:0;z-index:-1;",Ru.classList.add("resize-sensor-iframe"),_u.appendChild(Ru),Ru.contentWindow?(Ru.contentWindow.addEventListener("resize",()=>{$u(Ru.clientWidth,Ru.clientHeight)}),resizeObserverCache.set(_u,resizeObserverCache.get(_u)||0+1),()=>{_u.removeChild(Ru),resizeObserverCache.get(_u)===1&&resizeObserverCache.delete(_u)}):()=>{}}}function hasResizeListener(_u){return _u?resizeObserverCache.get(_u)||0>0:!1}function ResizeObserver$1(){const _u=React.useRef(null),$u=useController();return React.useEffect(()=>{if(!_u.current)return;const Bu=$u.container.parentElement;if(hasResizeListener(Bu))return;const Ru=addResizeListener(Bu,(Lu,Ou)=>{$u.setContainerSize(Lu,Ou)});return()=>{Ru()}},[]),jsx("div",{className:"resizeObserver-element",ref:_u})}function InfoPanelImg({url:_u,children:$u}){return jsx("div",{className:"vreo-infoPanel-container",children:jsx("div",{className:"vreo-infoPanel vreo-infoPanel--img",children:jsx("div",{className:"ratio-4-5 vreo-infoPanel-wrapper",children:jsxs("div",{className:"vreo-infoPanel-inner",children:[$u,jsx("img",{className:"vreo-infoPanelImg",src:_u})]})})})})}function InfoPanelVideo({url:_u,children:$u}){return jsx("div",{className:"vreo-infoPanel-container",children:jsx("div",{className:"vreo-infoPanel vreo-infoPanel--video",children:jsx("div",{className:"ratio-4-5 vreo-infoPanel-wrapper",children:jsxs("div",{className:"vreo-infoPanel-inner",children:[$u,jsx("div",{className:"vreo-infoPanelVideo",children:jsx("video",{playsInline:!0,autoPlay:!0,className:"vreo-infoPanelVideo",src:_u})})]})})})})}const Title=_u=>!_u.title&&!_u.subTitle?null:jsxs(Fragment,{children:[jsx("div",{className:"vreo-infoPanel-title-shadow"}),jsxs("div",{className:"vreo-infoPanel-title",children:[jsx("div",{className:"vreo-infoPanel-t1",children:_u.title}),jsx("div",{className:"vreo-infoPanel-t2",children:_u.subTitle})]})]});function InfoPanel(){const _u=react$1.exports.useRef(),$u=useController();return react$1.exports.useEffect(()=>{var Ru;if(((Ru=$u.configs)==null?void 0:Ru.keyframeMap.InfoPanel)===!1)return;const Bu=Lu=>{const{start:Ou,end:Fu,data:Nu}=Lu,Vu=Nu,{title:Uu,subTitle:Gu,style:zu}=Vu;do{if(zu===InfoPanelStyleEnum.PopUp){Vu.type===InfoPanelTypeEnum.Image?$u.openPopUp(jsx(InfoPanelImg,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})})):Vu.type===InfoPanelTypeEnum.Video&&$u.openPopUp(jsx(InfoPanelVideo,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}));break}Vu.type===InfoPanelTypeEnum.Image?$u.openDrawer({content:jsx(InfoPanelImg,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}),height:"60vh"}):Vu.type===InfoPanelTypeEnum.Video&&$u.openDrawer({content:jsx(InfoPanelVideo,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}),height:"60vh"})}while(!1);_u.current=setTimeout(()=>{$u.openDrawer(!1),$u.openPopUp(!1)},Fu-Ou)};return $u.on(VreoKeyframeEnum.InfoPanel,Bu),()=>{$u.off(VreoKeyframeEnum.InfoPanel,Bu),_u.current&&clearTimeout(_u.current)}},[$u]),jsx(Fragment,{})}const ModelTVVideoPlugin=(_u,{videoElement:$u})=>{const Bu={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:$u},Ru=zu=>{Bu.videoTexture&&(Bu.videoTexture.image.muted=zu,Bu.videoTexture.image.play())},Lu=()=>Bu.videoTexture?Bu.videoTexture.image.muted:!0,Ou=()=>{if(Bu.enabled||!Bu.videoTexture)return;Bu.enabled=!0,Bu.videoMeshes=Nu(),Bu.videoMeshes.forEach(Hu=>_u.scene.add(Hu));const zu=()=>{if(!Bu.videoTexture)return;const Hu=()=>{var ju;!Bu.videoTexture||((ju=Bu.videoTexture)==null||ju.image.removeEventListener("timeupdate",Hu),Bu.videoTextureEnabled=!0,Bu.videoMeshes.forEach(Qu=>{Qu.material.map!==Bu.videoTexture&&(Qu.material.map=Bu.videoTexture)}),_u.needsRender=!0)};Bu.videoTexture.image.addEventListener("timeupdate",Hu),Bu.videoTexture&&Bu.videoMeshes.length&&Bu.videoTexture.image.play()};if(_u.model.loaded)zu();else return _u.once("modelLoaded",()=>zu())},Fu=()=>{!Bu.enabled||(Bu.enabled=!1,Bu.videoMeshes.forEach(zu=>{zu.geometry.dispose(),zu.material.dispose(),_u.scene.remove(zu),Bu.videoTexture&&Bu.videoTexture.image.pause()}),Bu.videoMeshes=[],_u.needsRender=!0)},Nu=()=>Bu.rectPoints.map((zu,Hu)=>{const ju=new BufferGeometry,Qu=128,Xu=[];Xu.push(zu[0].x,zu[0].y,zu[0].z);for(let Zu=1;Zu<Qu;Zu++)Xu.push(zu[0].x+(zu[1].x-zu[0].x)*Zu/Qu,zu[0].y+(zu[1].y-zu[0].y)*Zu/Qu,zu[0].z+(zu[1].z-zu[0].z)*Zu/Qu);Xu.push(zu[1].x,zu[1].y,zu[1].z),Xu.push(zu[2].x,zu[2].y,zu[2].z);for(let Zu=1;Zu<Qu;Zu++)Xu.push(zu[2].x+(zu[3].x-zu[2].x)*Zu/Qu,zu[2].y+(zu[3].y-zu[2].y)*Zu/Qu,zu[2].z+(zu[3].z-zu[2].z)*Zu/Qu);Xu.push(zu[3].x,zu[3].y,zu[3].z);const Ku=[];Ku.push(0,1);for(let Zu=1;Zu<Qu;Zu++)Ku.push(0,1-Zu/Qu);Ku.push(0,0),Ku.push(1,0);for(let Zu=1;Zu<Qu;Zu++)Ku.push(1,Zu/Qu);Ku.push(1,1);const Wu=[];for(let Zu=0;Zu<Qu;Zu++)Wu.push(Zu,Zu+1,Qu*2-Zu,Zu,Qu*2-Zu,Qu*2+1-Zu);ju.setAttribute("position",new BufferAttribute(new Float32Array(Xu),3)),ju.setAttribute("uv",new BufferAttribute(new Float32Array(Ku),2)),ju.setIndex(new BufferAttribute(new Uint32Array(Wu),1));const qu=new MeshBasicMaterial({map:Bu.videoTextureEnabled?Bu.videoTexture:Bu.imageTexture,side:DoubleSide}),Yu=new Mesh(ju,qu);return Yu.renderOrder=1,Yu.name=`video-${Hu}-${performance.now()}`,Yu}),Vu=zu=>{const Hu=new TextureLoader().load(zu);return Hu.minFilter=LinearFilter,Hu.magFilter=LinearFilter,Hu.format=RGBFormat,Hu},Uu=(zu,Hu)=>new Promise((ju,Qu)=>{const Xu=new XMLHttpRequest;Xu.onreadystatechange=()=>{if(Xu.readyState==4)if(Xu.status==200){const Ku=window.URL||window.webkitURL;Hu=Hu||document.createElement("video"),Hu.crossOrigin="anonymous",Hu.autoplay=!0,Hu.muted=!0,Hu.loop=!0,Hu.playsInline=!0,Hu.src=Ku.createObjectURL(Xu.response);const Wu=new VideoTexture(Hu);Wu.minFilter=LinearFilter,Wu.magFilter=LinearFilter,Wu.format=RGBFormat,ju(Object.assign(Wu,{videoSource:zu}))}else Qu(new Error("Video download Error: "+Xu.status))},Xu.onerror=Ku=>Qu(Ku),Xu.open("GET",zu),Xu.responseType="blob",Xu.send()}),Gu=async(zu,Hu)=>{const{video_src:ju,video_poster_src:Qu,points:Xu}=zu;Bu.videoSource=ju,Bu.rectPoints=Xu.map(Ku=>Ku.map(({x:Wu,y:qu,z:Yu})=>new Vector3(Wu,qu,Yu))),Bu.imageTexture=Vu(Qu),Hu&&(Bu.videoElement=Hu),Bu.videoTexture=await Uu(Bu.videoSource,Bu.videoElement),Bu.enabled=!!zu.enable,Bu.enabled&&Ou()};return _u.on("modeChange",()=>Ru(!0)),_u.on("wantsTapGesture",zu=>{if(!Bu.enabled)return;const[Hu]=zu.intersectObjects(_u.scene.children,!0);if(!!Hu&&/^video/.test(Hu.object.name))return Bu.videoTexture&&Ru(!Bu.videoTexture.image.muted),!1}),_u.on("panoArrived",()=>{if(!Bu.enabled||Lu())return;const zu=_u.camera.position;Bu.rectPoints.find(ju=>{const Qu=ju.reduce((Xu,Ku)=>new Vector3(Xu.x+Ku.x/ju.length,Xu.y+Ku.y/ju.length,Xu.z+Ku.z/ju.length),new Vector3);return ju.map(Xu=>new Vector3((Xu.x+Qu.x)/2,(Xu.y+Qu.y)/2,(Xu.z+Qu.z)/2)).filter(Xu=>{Xu=Xu.clone().sub(zu).normalize();const Ku=new Raycaster(zu,Xu),[Wu]=Ku.intersectObjects(_u.scene.children,!0);return!!Wu&&/^video/.test(Wu.object.name)}).length>=2})||Ru(!0)}),_u.on("renderFrame",()=>{Bu.videoMeshes.forEach(zu=>{zu&&(zu.needsRender=!0)})}),_u.on("load",zu=>{zu.modelTVVideoData&&Gu(zu.modelTVVideoData)}),{enable:Ou,disable:Fu,load:Gu}};function createTransMatrix(_u){const $u=new Matrix4;return $u.fromArray(_u),Bu=>{const Ru=new Vector3(...Bu);return Ru.applyMatrix4($u),Ru.toArray()}}function ModelVideo(){const _u=useController(),$u=useFiveInstance(),Bu=react$1.exports.useRef(),Ru=react$1.exports.useRef();return react$1.exports.useEffect(()=>{const Lu=async Ou=>{var Qu,Xu;Bu.current||(Bu.current=ModelTVVideoPlugin($u,{}));const{start:Fu,end:Nu}=Ou,{videoSrc:Vu,videoPosterSrc:Uu,vertexs:Gu,matrixWorld:zu}=Ou.data,Hu=(()=>{if(Gu.length<4)throw new Error("ModelVideo: \u9876\u70B9\u6570\u636E\u96C6\u5408\u4E0D\u591F\uFF0C\u65E0\u6CD5\u7EC4\u6210\u77E9\u5F62 ....");if(Gu.length===4)return Gu;const Ku=new Box3;return Gu.forEach(Wu=>Ku.expandByPoint(new Vector3(Wu.x,Wu.y,Wu.z))),[new Vector3(Ku.min.x,Ku.max.y,Ku.max.z),new Vector3(Ku.min.x,Ku.min.y,Ku.max.z),new Vector3(Ku.max.x,Ku.min.y,Ku.max.z),new Vector3(Ku.max.x,Ku.max.y,Ku.max.z)]})(),ju=(()=>{if(zu){const Ku=createTransMatrix(zu);return[Hu.map(Wu=>{const qu=Ku([Wu.x,Wu.y,Wu.z]);return{x:qu[0],y:qu[1],z:qu[2]}})]}return[Hu]})();Bu.current.disable(),await Bu.current.load({video_src:Vu,video_poster_src:Uu,points:ju},(Xu=(Qu=_u.configs)==null?void 0:Qu.videos)==null?void 0:Xu.modelTVVideo),Bu.current.enable(),Ru.current=setTimeout(()=>{var Ku;return(Ku=Bu.current)==null?void 0:Ku.disable()},Nu-Fu)};return _u.on(VreoKeyframeEnum.ModelVideo,Lu),()=>{_u.off(VreoKeyframeEnum.ModelVideo,Lu),Ru.current&&clearTimeout(Ru.current)}},[_u]),jsx(Fragment,{})}var line={},Line;Object.defineProperty(line,"__esModule",{value:!0});var t$1=tslib.exports;function e(_u){if(_u&&_u.__esModule)return _u;var $u=Object.create(null);return _u&&Object.keys(_u).forEach(function(Bu){if(Bu!=="default"){var Ru=Object.getOwnPropertyDescriptor(_u,Bu);Object.defineProperty($u,Bu,Ru.get?Ru:{enumerable:!0,get:function(){return _u[Bu]}})}}),$u.default=_u,Object.freeze($u)}var n=e(require$$1),i=function(_u){function $u(){var Bu=_u.call(this)||this;return Bu.type="LineSegmentsGeometry",Bu.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),Bu.setAttribute("position",new n.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),Bu.setAttribute("uv",new n.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2)),Bu}return t$1.__extends($u,_u),$u.prototype.applyMatrix4=function(Bu){var Ru=this.attributes.instanceStart,Lu=this.attributes.instanceEnd;return Ru!==void 0&&(Ru.applyMatrix4(Bu),Lu.applyMatrix4(Bu),Ru.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},$u.prototype.setPositions=function(Bu){var Ru;Ru=Bu instanceof Float32Array?Bu:Array.isArray(Bu)?new Float32Array(Bu):new Float32Array;var Lu=new n.InstancedInterleavedBuffer(Ru,6,1);return this.setAttribute("instanceStart",new n.InterleavedBufferAttribute(Lu,3,0)),this.setAttribute("instanceEnd",new n.InterleavedBufferAttribute(Lu,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this},$u.prototype.setColors=function(Bu){var Ru;Ru=Bu instanceof Float32Array?Bu:Array.isArray(Bu)?new Float32Array(Bu):new Float32Array;var Lu=new n.InstancedInterleavedBuffer(Ru,6,1);return this.setAttribute("instanceColorStart",new n.InterleavedBufferAttribute(Lu,3,0)),this.setAttribute("instanceColorEnd",new n.InterleavedBufferAttribute(Lu,3,3)),this},$u.prototype.fromWireframeGeometry=function(Bu){return this.setPositions(Bu.attributes.position.array),this},$u.prototype.fromEdgesGeometry=function(Bu){return this.setPositions(Bu.attributes.position.array),this},$u.prototype.fromMesh=function(Bu){return this.fromWireframeGeometry(new n.WireframeGeometry(Bu.geometry)),this},$u.prototype.fromLineSegments=function(Bu){var Ru=Bu.geometry;if(Ru instanceof n.Geometry){var Lu=new n.BufferGeometry().fromGeometry(Ru);this.setPositions(Lu.attributes.position.array)}else Ru instanceof n.BufferGeometry&&this.setPositions(Ru.attributes.position.array);return this},$u.prototype.computeBoundingBox=function(){this.boundingBox===null&&(this.boundingBox=new n.Box3);var Bu=this.attributes.instanceStart,Ru=this.attributes.instanceEnd;if(Bu!==void 0&&Ru!==void 0){var Lu=new n.Box3;this.boundingBox.setFromBufferAttribute(Bu),Lu.setFromBufferAttribute(Ru),this.boundingBox.union(Lu)}},$u.prototype.computeBoundingSphere=function(){this.boundingSphere===null&&(this.boundingSphere=new n.Sphere),this.boundingBox===null&&this.computeBoundingBox();var Bu=this.attributes.instanceStart,Ru=this.attributes.instanceEnd;if(Bu!==void 0&&Ru!==void 0){var Lu=this.boundingSphere.center;this.boundingBox.getCenter(Lu);for(var Ou=0,Fu=new n.Vector3,Nu=0,Vu=Bu.count;Nu<Vu;Nu++)Fu.fromBufferAttribute(Bu,Nu),Ou=Math.max(Ou,Lu.distanceToSquared(Fu)),Fu.fromBufferAttribute(Ru,Nu),Ou=Math.max(Ou,Lu.distanceToSquared(Fu));this.boundingSphere.radius=Math.sqrt(Ou),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}},$u.prototype.toJSON=function(){},$u}(n.InstancedBufferGeometry);Object.assign(i.prototype,{isLineSegmentsGeometry:!0});var r$1={uniforms:n.UniformsUtils.merge([n.UniformsLib.common,n.UniformsLib.fog,{linewidth:{value:1},resolution:{value:new n.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1},opacity:{value:1}}]),vertexShader:`
3695
+ overridden reactive render was not properly disposed.`)}this[mobxIsUnmounted]=!0}),_u}function getDisplayName(_u){return _u.displayName||_u.name||_u.constructor&&(_u.constructor.displayName||_u.constructor.name)||"<component>"}function createReactiveRender(_u){var $u=this;setHiddenProp(this,skipRenderKey,!1),setHiddenProp(this,isForcingUpdateKey,!1);var Bu=getDisplayName(this),Ru=_u.bind(this),Lu=!1,Ou=function(){var Vu=new Reaction(Bu+".render()",function(){if(!Lu&&(Lu=!0,$u[mobxIsUnmounted]!==!0)){var Uu=!0;try{setHiddenProp($u,isForcingUpdateKey,!0),$u[skipRenderKey]||react$1.exports.Component.prototype.forceUpdate.call($u),Uu=!1}finally{setHiddenProp($u,isForcingUpdateKey,!1),Uu&&(Vu.dispose(),$u.render[mobxAdminProperty]=null)}}});return Vu.reactComponent=$u,Vu};function Fu(){var Nu;Lu=!1;var Vu=(Nu=Fu[mobxAdminProperty])!=null?Nu:Fu[mobxAdminProperty]=Ou(),Uu=void 0,Gu=void 0;if(Vu.track(function(){try{Gu=allowStateChanges(!1,Ru)}catch(zu){Uu=zu}}),Uu)throw Uu;return Gu}return Fu}function observerSCU(_u,$u){return this.state!==$u?!0:!shallowEqual(this.props,_u)}function makeObservableProp(_u,$u){var Bu=newSymbol("reactProp_"+$u+"_valueHolder"),Ru=newSymbol("reactProp_"+$u+"_atomHolder");function Lu(){return this[Ru]||setHiddenProp(this,Ru,createAtom("reactive "+$u)),this[Ru]}Object.defineProperty(_u,$u,{configurable:!0,enumerable:!0,get:function(){var Fu=!1;return allowStateReadsStart&&allowStateReadsEnd&&(Fu=allowStateReadsStart(!0)),Lu.call(this).reportObserved(),allowStateReadsStart&&allowStateReadsEnd&&allowStateReadsEnd(Fu),this[Bu]},set:function(Fu){!this[isForcingUpdateKey]&&!shallowEqual(this[Bu],Fu)?(setHiddenProp(this,Bu,Fu),setHiddenProp(this,skipRenderKey,!0),Lu.call(this).reportChanged(),setHiddenProp(this,skipRenderKey,!1)):setHiddenProp(this,Bu,Fu)}})}function observer(_u){return _u.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(react$1.exports.Component,_u)||Object.prototype.isPrototypeOf.call(react$1.exports.PureComponent,_u)?makeClassComponentObserver(_u):observer$1(_u)}if(!react$1.exports.Component)throw new Error("mobx-react requires React to be available");if(!observable)throw new Error("mobx-react requires mobx to be available");const _requestAnimationFrame=window.requestAnimationFrame||(_u=>setTimeout(_u,16)),_cancelAnimationFrame=window.cancelAnimationFrame||clearTimeout;function nextFrame(_u,$u=0){$u<=0?_requestAnimationFrame(_u):_requestAnimationFrame(()=>nextFrame(_u,$u-1))}function requestAnimationFrameInterval(_u,$u=60){let Bu=-1,Ru=0,Lu=-1;const Ou=1e3/$u;function Fu(Nu){Lu===-1&&(Lu=Nu),Bu=_requestAnimationFrame(Fu),!(Nu-Ru<Ou)&&(Ru=Nu,_u&&_u(Nu-Lu))}return Bu=_requestAnimationFrame(Fu),function(){_cancelAnimationFrame(Bu)}}function setElementDataset(_u,$u){_u&&Object.keys($u).forEach(Bu=>{const Ru=$u[Bu].toString();_u instanceof Element?_u.setAttribute(`data-${Bu}`,Ru):_u instanceof Document?_u.documentElement.setAttribute(`data-${Bu}`,Ru):_u instanceof HTMLElement?_u.dataset[Bu]=Ru:_u.setAttribute(`data-${Bu}`,Ru)})}function getFileExpandedName(_u){if(!_u)return"";const $u=_u.lastIndexOf(".");return _u.substring($u+1).toLowerCase()}function getMediaType(_u){const $u=getFileExpandedName(_u);return getMediaTypeByExpandedName($u)}function getMediaTypeByExpandedName(_u){return _u?/jpg|jpeg|png$/.test(_u)?"image":/mp3|wav$/.test(_u)?"audio":/avi|wmv|mpeg|mp4|m4v|mov|asf|flv|f4v|rmvb|rm|3gp|vob$/.test(_u)?"video":"unknown":"unknown"}class Controller extends Subscribe{constructor({five:Bu,container:Ru,configs:Lu}){super();xm(this,"five");xm(this,"configs");xm(this,"videoAgentScene");xm(this,"vreoUnit");xm(this,"stopInterval");xm(this,"playing",!1);xm(this,"ended",!1);xm(this,"loading",!1);xm(this,"containerSize",{width:0,height:0});xm(this,"appSize");xm(this,"container");xm(this,"waveAppearance",null);xm(this,"appearance",{waveStyle:"wave"});xm(this,"avatar",{});xm(this,"visible",!1);xm(this,"popUp",null);xm(this,"drawerConfig",null);this.configs=Lu,this.container=Ru,this.five=Bu,this.appSize=Lu.appSize,this.appearance={...this.appearance,...Lu.appearance},makeObservable(this,{visible:observable,setVisible:action,playing:observable,setPlaying:action,loading:observable,videoAgentScene:observable.ref,setLoading:action,popUp:observable.ref,openPopUp:action,drawerConfig:observable.ref,openDrawer:action,ended:observable,waveAppearance:observable,avatar:observable,containerSize:observable,setContainerSize:action,appearance:observable,setAppearance:action,configs:observable.ref,setEnded:action,setAvatar:action}),reaction(()=>[this.appearance.waveStyle,this.loading],([Ou,Fu])=>{if(Fu===null){this.waveAppearance=null;return}if(Ou==="wave")switch(Fu){case!0:this.waveAppearance="double";break;case!1:this.waveAppearance="solid";break}else if(Ou==="solid")switch(Fu){case!0:this.waveAppearance="swap";break;case!1:this.waveAppearance="expand";break}},{fireImmediately:!0}),this.appSize?setElementDataset(this.container,{size:this.appSize}):reaction(()=>this.containerSize,Ou=>{if(!(Ou!=null&&Ou.width))return;const Fu=Ou.width,Nu=Ou.height,Vu=(()=>Fu<=500?"S":Fu<=1024?"M":Fu<=2048?"L":"XL")(),Uu=(()=>Nu>Fu?"portrait":"landscape")();setElementDataset(this.container,{size:Vu}),setElementDataset(this.container,{orientation:Uu})},{fireImmediately:!0}),reaction(()=>this.ended,Ou=>{Ou&&this.emit("paused",!0)}),reaction(()=>this.playing,Ou=>{this.ended||this.emit(Ou?"playing":"paused")})}get agentType(){var Ru,Lu;const Bu=getMediaType((Ru=this.videoAgentScene)==null?void 0:Ru.videoAgentMesh.videoUrl);return(Lu=this.avatar)!=null&&Lu.force?"avatar":Bu==="video"?"video":"none"}openPopUp(Bu){if(!Bu){this.popUp=null;return}this.popUp=Bu}setLoading(Bu){this.loading=Bu}setAvatar(Bu){this.avatar=Bu}setContainerSize(Bu,Ru){this.containerSize={width:Bu,height:Ru}}setVisible(Bu){this.visible=Bu}setPlaying(Bu){this.playing=Bu}setEnded(Bu){this.ended=Bu}setAppearance(Bu){this.appearance={...this.appearance,...Bu}}openDrawer(Bu){var Ru;if(!Bu){this.drawerConfig={content:"",height:(Ru=this.drawerConfig)==null?void 0:Ru.height};return}this.drawerConfig=Bu}get ready(){return!!this.videoAgentScene}get currentTime(){var Bu;return((Bu=this.videoAgentScene)==null?void 0:Bu.videoAgentMesh.currentTime)||0}get currentKeyframes(){return this.vreoUnit?this.vreoUnit.keyframes.filter(Ru=>{if(Ru.parsed)return!1;const Lu=this.currentTime-Ru.start;return Lu<=100&&Lu>=0}):[]}get mediaInstance(){var Bu;return(Bu=this.videoAgentScene)==null?void 0:Bu.videoAgentMesh.mediaInstance}requestAnimationFrameLoop(Bu){var Lu,Ou,Fu,Nu;if((Lu=this.mediaInstance)!=null&&Lu.ended){this.setEnded(!0),this.setPlaying(!1),this.mediaInstance.pause();return}if(!this.playing){(Ou=this.mediaInstance)!=null&&Ou.paused||(Fu=this.mediaInstance)==null||Fu.pause();return}((Nu=this.mediaInstance)==null?void 0:Nu.paused)&&this.playing&&this.mediaInstance.play(),this.currentKeyframes.forEach(Vu=>{Vu.parsed||(Vu.parsed=!0,this.emit(Vu.type,Vu),Bu&&Bu(Vu.type,Vu))})}run(Bu){this.stopInterval||(this.stopInterval=requestAnimationFrameInterval(()=>this.requestAnimationFrameLoop(Bu)))}dispose(){this.setPlaying(!1),this.currentKeyframes&&this.currentKeyframes.forEach(Bu=>Bu.parsed=!1),this.vreoUnit=void 0,this.mediaInstance&&(this.mediaInstance.currentTime=0),this.stopInterval&&(this.stopInterval(),this.stopInterval=void 0)}}const ControllerContext=react$1.exports.createContext(null);function useController(){const _u=React.useContext(ControllerContext);if(!_u)throw new Error('\u6CA1\u6709\u627E\u5230 "ControllerContext"');return _u}function useFiveInstance(){const _u=useController();if(!_u.five)throw new Error('\u6CA1\u6709\u627E\u5230 "five" \u5B9E\u4F8B');return _u.five}function useFiveProject2d(){const _u=useFiveInstance();return $u=>_u.project2d($u,!1)}var CameraMovementEffect=(_u=>(_u.Move="Move",_u.Rotate="Rotate",_u))(CameraMovementEffect||{}),Rotation=(_u=>(_u.Clockwise="Clockwise",_u.Anticlockwise="Anticlockwise",_u.Loop="Loop",_u))(Rotation||{}),Easing$1={Linear:{None:function(_u){return _u}},Quadratic:{In:function(_u){return _u*_u},Out:function(_u){return _u*(2-_u)},InOut:function(_u){return(_u*=2)<1?.5*_u*_u:-.5*(--_u*(_u-2)-1)}},Cubic:{In:function(_u){return _u*_u*_u},Out:function(_u){return--_u*_u*_u+1},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u:.5*((_u-=2)*_u*_u+2)}},Quartic:{In:function(_u){return _u*_u*_u*_u},Out:function(_u){return 1- --_u*_u*_u*_u},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u*_u:-.5*((_u-=2)*_u*_u*_u-2)}},Quintic:{In:function(_u){return _u*_u*_u*_u*_u},Out:function(_u){return--_u*_u*_u*_u*_u+1},InOut:function(_u){return(_u*=2)<1?.5*_u*_u*_u*_u*_u:.5*((_u-=2)*_u*_u*_u*_u+2)}},Sinusoidal:{In:function(_u){return 1-Math.cos(_u*Math.PI/2)},Out:function(_u){return Math.sin(_u*Math.PI/2)},InOut:function(_u){return .5*(1-Math.cos(Math.PI*_u))}},Exponential:{In:function(_u){return _u===0?0:Math.pow(1024,_u-1)},Out:function(_u){return _u===1?1:1-Math.pow(2,-10*_u)},InOut:function(_u){return _u===0?0:_u===1?1:(_u*=2)<1?.5*Math.pow(1024,_u-1):.5*(-Math.pow(2,-10*(_u-1))+2)}},Circular:{In:function(_u){return 1-Math.sqrt(1-_u*_u)},Out:function(_u){return Math.sqrt(1- --_u*_u)},InOut:function(_u){return(_u*=2)<1?-.5*(Math.sqrt(1-_u*_u)-1):.5*(Math.sqrt(1-(_u-=2)*_u)+1)}},Elastic:{In:function(_u){return _u===0?0:_u===1?1:-Math.pow(2,10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI)},Out:function(_u){return _u===0?0:_u===1?1:Math.pow(2,-10*_u)*Math.sin((_u-.1)*5*Math.PI)+1},InOut:function(_u){return _u===0?0:_u===1?1:(_u*=2,_u<1?-.5*Math.pow(2,10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI):.5*Math.pow(2,-10*(_u-1))*Math.sin((_u-1.1)*5*Math.PI)+1)}},Back:{In:function(_u){var $u=1.70158;return _u*_u*(($u+1)*_u-$u)},Out:function(_u){var $u=1.70158;return--_u*_u*(($u+1)*_u+$u)+1},InOut:function(_u){var $u=2.5949095;return(_u*=2)<1?.5*(_u*_u*(($u+1)*_u-$u)):.5*((_u-=2)*_u*(($u+1)*_u+$u)+2)}},Bounce:{In:function(_u){return 1-Easing$1.Bounce.Out(1-_u)},Out:function(_u){return _u<1/2.75?7.5625*_u*_u:_u<2/2.75?7.5625*(_u-=1.5/2.75)*_u+.75:_u<2.5/2.75?7.5625*(_u-=2.25/2.75)*_u+.9375:7.5625*(_u-=2.625/2.75)*_u+.984375},InOut:function(_u){return _u<.5?Easing$1.Bounce.In(_u*2)*.5:Easing$1.Bounce.Out(_u*2-1)*.5+.5}}},now;typeof self=="undefined"&&typeof process!="undefined"&&process.hrtime?now=function(){var _u=process.hrtime();return _u[0]*1e3+_u[1]/1e6}:typeof self!="undefined"&&self.performance!==void 0&&self.performance.now!==void 0?now=self.performance.now.bind(self.performance):Date.now!==void 0?now=Date.now:now=function(){return new Date().getTime()};var now$1=now,Group=function(){function _u(){this._tweens={},this._tweensAddedDuringUpdate={}}return _u.prototype.getAll=function(){var $u=this;return Object.keys(this._tweens).map(function(Bu){return $u._tweens[Bu]})},_u.prototype.removeAll=function(){this._tweens={}},_u.prototype.add=function($u){this._tweens[$u.getId()]=$u,this._tweensAddedDuringUpdate[$u.getId()]=$u},_u.prototype.remove=function($u){delete this._tweens[$u.getId()],delete this._tweensAddedDuringUpdate[$u.getId()]},_u.prototype.update=function($u,Bu){$u===void 0&&($u=now$1()),Bu===void 0&&(Bu=!1);var Ru=Object.keys(this._tweens);if(Ru.length===0)return!1;for(;Ru.length>0;){this._tweensAddedDuringUpdate={};for(var Lu=0;Lu<Ru.length;Lu++){var Ou=this._tweens[Ru[Lu]],Fu=!Bu;Ou&&Ou.update($u,Fu)===!1&&!Bu&&delete this._tweens[Ru[Lu]]}Ru=Object.keys(this._tweensAddedDuringUpdate)}return!0},_u}(),Interpolation={Linear:function(_u,$u){var Bu=_u.length-1,Ru=Bu*$u,Lu=Math.floor(Ru),Ou=Interpolation.Utils.Linear;return $u<0?Ou(_u[0],_u[1],Ru):$u>1?Ou(_u[Bu],_u[Bu-1],Bu-Ru):Ou(_u[Lu],_u[Lu+1>Bu?Bu:Lu+1],Ru-Lu)},Bezier:function(_u,$u){for(var Bu=0,Ru=_u.length-1,Lu=Math.pow,Ou=Interpolation.Utils.Bernstein,Fu=0;Fu<=Ru;Fu++)Bu+=Lu(1-$u,Ru-Fu)*Lu($u,Fu)*_u[Fu]*Ou(Ru,Fu);return Bu},CatmullRom:function(_u,$u){var Bu=_u.length-1,Ru=Bu*$u,Lu=Math.floor(Ru),Ou=Interpolation.Utils.CatmullRom;return _u[0]===_u[Bu]?($u<0&&(Lu=Math.floor(Ru=Bu*(1+$u))),Ou(_u[(Lu-1+Bu)%Bu],_u[Lu],_u[(Lu+1)%Bu],_u[(Lu+2)%Bu],Ru-Lu)):$u<0?_u[0]-(Ou(_u[0],_u[0],_u[1],_u[1],-Ru)-_u[0]):$u>1?_u[Bu]-(Ou(_u[Bu],_u[Bu],_u[Bu-1],_u[Bu-1],Ru-Bu)-_u[Bu]):Ou(_u[Lu?Lu-1:0],_u[Lu],_u[Bu<Lu+1?Bu:Lu+1],_u[Bu<Lu+2?Bu:Lu+2],Ru-Lu)},Utils:{Linear:function(_u,$u,Bu){return($u-_u)*Bu+_u},Bernstein:function(_u,$u){var Bu=Interpolation.Utils.Factorial;return Bu(_u)/Bu($u)/Bu(_u-$u)},Factorial:function(){var _u=[1];return function($u){var Bu=1;if(_u[$u])return _u[$u];for(var Ru=$u;Ru>1;Ru--)Bu*=Ru;return _u[$u]=Bu,Bu}}(),CatmullRom:function(_u,$u,Bu,Ru,Lu){var Ou=(Bu-_u)*.5,Fu=(Ru-$u)*.5,Nu=Lu*Lu,Vu=Lu*Nu;return(2*$u-2*Bu+Ou+Fu)*Vu+(-3*$u+3*Bu-2*Ou-Fu)*Nu+Ou*Lu+$u}}},Sequence=function(){function _u(){}return _u.nextId=function(){return _u._nextId++},_u._nextId=0,_u}(),mainGroup=new Group,Tween=function(){function _u($u,Bu){Bu===void 0&&(Bu=mainGroup),this._object=$u,this._group=Bu,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=Easing$1.Linear.None,this._interpolationFunction=Interpolation.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=Sequence.nextId(),this._isChainStopped=!1,this._goToEnd=!1}return _u.prototype.getId=function(){return this._id},_u.prototype.isPlaying=function(){return this._isPlaying},_u.prototype.isPaused=function(){return this._isPaused},_u.prototype.to=function($u,Bu){return this._valuesEnd=Object.create($u),Bu!==void 0&&(this._duration=Bu),this},_u.prototype.duration=function($u){return this._duration=$u,this},_u.prototype.start=function($u){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(var Bu in this._valuesStartRepeat)this._swapEndStartRepeatValues(Bu),this._valuesStart[Bu]=this._valuesStartRepeat[Bu]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=$u!==void 0?typeof $u=="string"?now$1()+parseFloat($u):$u:now$1(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},_u.prototype._setupProperties=function($u,Bu,Ru,Lu){for(var Ou in Ru){var Fu=$u[Ou],Nu=Array.isArray(Fu),Vu=Nu?"array":typeof Fu,Uu=!Nu&&Array.isArray(Ru[Ou]);if(!(Vu==="undefined"||Vu==="function")){if(Uu){var Gu=Ru[Ou];if(Gu.length===0)continue;Gu=Gu.map(this._handleRelativeValue.bind(this,Fu)),Ru[Ou]=[Fu].concat(Gu)}if((Vu==="object"||Nu)&&Fu&&!Uu){Bu[Ou]=Nu?[]:{};for(var zu in Fu)Bu[Ou][zu]=Fu[zu];Lu[Ou]=Nu?[]:{},this._setupProperties(Fu,Bu[Ou],Ru[Ou],Lu[Ou])}else typeof Bu[Ou]=="undefined"&&(Bu[Ou]=Fu),Nu||(Bu[Ou]*=1),Uu?Lu[Ou]=Ru[Ou].slice().reverse():Lu[Ou]=Bu[Ou]||0}}},_u.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},_u.prototype.end=function(){return this._goToEnd=!0,this.update(1/0),this},_u.prototype.pause=function($u){return $u===void 0&&($u=now$1()),this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStart=$u,this._group&&this._group.remove(this),this)},_u.prototype.resume=function($u){return $u===void 0&&($u=now$1()),!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=$u-this._pauseStart,this._pauseStart=0,this._group&&this._group.add(this),this)},_u.prototype.stopChainedTweens=function(){for(var $u=0,Bu=this._chainedTweens.length;$u<Bu;$u++)this._chainedTweens[$u].stop();return this},_u.prototype.group=function($u){return this._group=$u,this},_u.prototype.delay=function($u){return this._delayTime=$u,this},_u.prototype.repeat=function($u){return this._initialRepeat=$u,this._repeat=$u,this},_u.prototype.repeatDelay=function($u){return this._repeatDelayTime=$u,this},_u.prototype.yoyo=function($u){return this._yoyo=$u,this},_u.prototype.easing=function($u){return this._easingFunction=$u,this},_u.prototype.interpolation=function($u){return this._interpolationFunction=$u,this},_u.prototype.chain=function(){for(var $u=[],Bu=0;Bu<arguments.length;Bu++)$u[Bu]=arguments[Bu];return this._chainedTweens=$u,this},_u.prototype.onStart=function($u){return this._onStartCallback=$u,this},_u.prototype.onUpdate=function($u){return this._onUpdateCallback=$u,this},_u.prototype.onRepeat=function($u){return this._onRepeatCallback=$u,this},_u.prototype.onComplete=function($u){return this._onCompleteCallback=$u,this},_u.prototype.onStop=function($u){return this._onStopCallback=$u,this},_u.prototype.update=function($u,Bu){if($u===void 0&&($u=now$1()),Bu===void 0&&(Bu=!0),this._isPaused)return!0;var Ru,Lu,Ou=this._startTime+this._duration;if(!this._goToEnd&&!this._isPlaying){if($u>Ou)return!1;Bu&&this.start($u)}if(this._goToEnd=!1,$u<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),Lu=($u-this._startTime)/this._duration,Lu=this._duration===0||Lu>1?1:Lu;var Fu=this._easingFunction(Lu);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,Fu),this._onUpdateCallback&&this._onUpdateCallback(this._object,Lu),Lu===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(Ru in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[Ru]=="string"&&(this._valuesStartRepeat[Ru]=this._valuesStartRepeat[Ru]+parseFloat(this._valuesEnd[Ru])),this._yoyo&&this._swapEndStartRepeatValues(Ru),this._valuesStart[Ru]=this._valuesStartRepeat[Ru];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=$u+this._repeatDelayTime:this._startTime=$u+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var Nu=0,Vu=this._chainedTweens.length;Nu<Vu;Nu++)this._chainedTweens[Nu].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},_u.prototype._updateProperties=function($u,Bu,Ru,Lu){for(var Ou in Ru)if(Bu[Ou]!==void 0){var Fu=Bu[Ou]||0,Nu=Ru[Ou],Vu=Array.isArray($u[Ou]),Uu=Array.isArray(Nu),Gu=!Vu&&Uu;Gu?$u[Ou]=this._interpolationFunction(Nu,Lu):typeof Nu=="object"&&Nu?this._updateProperties($u[Ou],Fu,Nu,Lu):(Nu=this._handleRelativeValue(Fu,Nu),typeof Nu=="number"&&($u[Ou]=Fu+(Nu-Fu)*Lu))}},_u.prototype._handleRelativeValue=function($u,Bu){return typeof Bu!="string"?Bu:Bu.charAt(0)==="+"||Bu.charAt(0)==="-"?$u+parseFloat(Bu):parseFloat(Bu)},_u.prototype._swapEndStartRepeatValues=function($u){var Bu=this._valuesStartRepeat[$u],Ru=this._valuesEnd[$u];typeof Ru=="string"?this._valuesStartRepeat[$u]=this._valuesStartRepeat[$u]+parseFloat(Ru):this._valuesStartRepeat[$u]=this._valuesEnd[$u],this._valuesEnd[$u]=Bu},_u}(),VERSION="18.6.4",nextId=Sequence.nextId,TWEEN=mainGroup,getAll=TWEEN.getAll.bind(TWEEN),removeAll=TWEEN.removeAll.bind(TWEEN),add=TWEEN.add.bind(TWEEN),remove=TWEEN.remove.bind(TWEEN),update=TWEEN.update.bind(TWEEN),exports={Easing:Easing$1,Group,Interpolation,now:now$1,Sequence,nextId,Tween,VERSION,getAll,removeAll,add,remove,update};const Easing=Easing$1;function tween(_u,$u,Bu,Ru=Easing.Linear.None){const Lu=new Tween(_u).to($u,Bu).easing(Ru);nextFrame(()=>Lu.start(0));const Ou=requestAnimationFrameInterval(Nu=>{Lu.update(Nu)===!1&&Ou()}),Fu=[];return Lu.onDestroy=Nu=>(Fu.push(Nu),Lu),Lu.destroy=function(){this.stop(),Object.assign(Lu,{_onStartCallback:null,_onUpdateCallback:null,_onCompleteCallback:null,_onStopCallbackL:null});let Nu;for(;Nu=Fu.shift();)Nu();Ou()},Lu}function tweenProgress$1(_u,$u){return tween({progress:0},{progress:1},_u,$u)}const PI$1=Math.PI,PI_2$1=PI$1*2;function formatLatitude(_u){return _u%PI_2$1}function formatLongitude(_u){return _u%PI_2$1}const getLongitudeParams=(_u,$u,Bu)=>{if(_u=formatLongitude(_u),$u=formatLongitude($u),Bu===Rotation.Anticlockwise&&_u>$u)$u+=PI_2$1;else if(Bu===Rotation.Clockwise&&$u>_u)_u+=PI_2$1;else{if(Bu!==Rotation.Anticlockwise&&Bu!==Rotation.Clockwise&&$u-_u>PI$1)return getLongitudeParams(_u,$u,Rotation.Clockwise);if(Bu!==Rotation.Anticlockwise&&Bu!==Rotation.Clockwise&&_u-$u>PI$1)return getLongitudeParams(_u,$u,Rotation.Anticlockwise)}return{from:_u,to:$u}};function progressNumber(_u,$u,Bu){return _u+($u-_u)*Bu}const CameraMovementPlugin=_u=>{const $u=(Lu,Ou,Fu={preload:!0})=>new Promise(async(Nu,Vu)=>{if(Fu.asyncStartCallback&&Fu.asyncStartCallback(),_u.panoIndex===void 0)return Vu(!1);if(Lu.mode&&Lu.mode!==_u.currentMode&&await new Promise(Gu=>{!Lu.mode||(_u.once("modeChange",zu=>{_u.once("initAnimationEnded",()=>{zu===Lu.mode&&Gu(!0)})}),_u.changeMode(Lu.mode,{fov:Lu.fov||void 0,latitude:Lu.latitude||void 0,longitude:Lu.longitude||void 0,panoIndex:Lu.panoIndex||void 0}))}),Lu.mode===Five.Mode.Floorplan||(Fu.preload&&Lu.panoIndex!==void 0&&Lu.panoIndex!==_u.panoIndex&&await _u.preloadPano(Lu.panoIndex),Fu.asyncEndCallback&&Fu.asyncEndCallback(),Lu.panoIndex===void 0&&Lu.fov===void 0&&Lu.latitude===void 0&&Lu.longitude===void 0))return Nu(!0);const Uu=Lu.panoIndex!==void 0?Lu.panoIndex:_u.panoIndex;if(Uu!==void 0){const Gu=Object.assign(Lu,{duration:Ou,moveEndCallback:()=>Nu(!0),moveCancelCallback:()=>{Nu(!0)}});await _u.moveToPano(Uu,Gu)}else Vu(!1)}),Bu=Lu=>{const Ou=_u.state,Fu=formatLatitude(Ou.latitude),Nu=formatLatitude(Lu.latitude),{from:Vu,to:Uu}=getLongitudeParams(Ou.longitude,Lu.longitude,Lu.rotation||Rotation.Loop),Gu=Ou.fov,zu=Lu.fov;return{from:{latitude:Fu,longitude:Vu,fov:Gu},to:{latitude:Nu,longitude:Uu,fov:zu}}};return{move:$u,rotate:async(Lu,Ou,Fu={})=>{Fu.asyncStartCallback&&Fu.asyncStartCallback(),Lu.mode&&_u.currentMode!==Lu.mode&&await _u.changeMode(Lu.mode),Lu.mode===Five.Mode.Panorama&&_u.currentMode===Five.Mode.Panorama&&Lu.panoIndex!==void 0&&Lu.panoIndex!==_u.panoIndex&&(Fu.preload&&await _u.preloadPano(Lu.panoIndex),await new Promise((Uu,Gu)=>{_u.moveToPano(Lu.panoIndex,{moveEndCallback:()=>Uu(!0),moveCancelCallback:()=>Gu(!1),effect:"fade"})})),Fu.asyncEndCallback&&Fu.asyncEndCallback();const{from:Nu,to:Vu}=Bu(Lu);return await new Promise((Uu,Gu)=>{const zu=({progress:Ku})=>{const Wu={};Wu.longitude=progressNumber(Nu.longitude,Vu.longitude,Ku)%PI_2$1,Wu.latitude=progressNumber(Nu.latitude,Vu.latitude,Ku),Wu.fov=progressNumber(Nu.fov,Vu.fov,Ku),_u.setState(Wu,!0)},Hu=()=>{Uu(!0)},ju=()=>{Uu(!1)};let Qu=Ou;Lu.rotation===Rotation.Loop&&(Qu=Lu.rotateSpeed?Math.ceil(Math.abs(Vu.longitude-Nu.longitude)/Lu.rotateSpeed*1e3):Ou);const Xu=tweenProgress$1(Qu,Easing.Linear.None).onUpdate(zu).onComplete(Hu).onDestroy(ju);Lu.rotation===Rotation.Loop&&Xu.repeat(1/0).yoyo(!0),setTimeout(()=>{Xu.destroy(),Uu(!0)},Ou)})}}};var VreoKeyframeEnum=(_u=>(_u.CameraMovement="CameraMovement",_u.PanoTag="PanoTag",_u.PanoTextLabel="PanoTextLabel",_u.Prompter="Prompter",_u.UpdateVRPanorama="UpdateVRPanorama",_u.ModelVideo="ModelVideo",_u.PanoEffect="PanoEffect",_u.InfoPanel="InfoPanel",_u.VideoEffect="VideoEffect",_u.BgMusic="BgMusic",_u.Exit="Exit",_u.Custom="Custom",_u))(VreoKeyframeEnum||{}),InfoPanelTypeEnum=(_u=>(_u.Image="Image",_u.Video="Video",_u))(InfoPanelTypeEnum||{}),InfoPanelStyleEnum=(_u=>(_u.Drawer="Drawer",_u.PopUp="PopUp",_u))(InfoPanelStyleEnum||{});function CameraMovement(){const _u=useController(),$u=useFiveInstance(),Bu=react$1.exports.useRef();return react$1.exports.useEffect(()=>{const Ru=async Lu=>{Bu.current||(Bu.current=CameraMovementPlugin($u));const{start:Ou,end:Fu,data:Nu}=Lu,Vu=Nu,Uu=Vu.effect;Uu===CameraMovementEffect.Rotate?await Bu.current.rotate(Nu,Fu-Ou):Uu===CameraMovementEffect.Move?await Bu.current.move(Nu,Fu-Ou):Vu.panoIndex!==void 0&&Vu.panoIndex!==$u.panoIndex?await Bu.current.move(Nu,Fu-Ou):await Bu.current.rotate(Nu,Fu-Ou)};return _u.on(VreoKeyframeEnum.CameraMovement,Ru),()=>{_u.off(VreoKeyframeEnum.CameraMovement,Ru)}},[_u]),jsx(Fragment,{})}const resizeObserverCache=new Map;function addResizeListener(_u,$u,Bu=!0){if(!_u)return()=>{};if(Bu&&$u(_u.clientWidth,_u.clientHeight),typeof ResizeObserver!="undefined"&&ResizeObserver){const Ru=new ResizeObserver(()=>$u(_u.clientWidth,_u.clientHeight));return Ru.observe(_u),resizeObserverCache.set(_u,resizeObserverCache.get(_u)||0+1),()=>{_u&&Ru.unobserve(_u),resizeObserverCache.get(_u)===1&&resizeObserverCache.delete(_u)}}else{const Ru=document.createElement("iframe");return Ru.style.cssText="position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;opacity:0;visibility:hidden;margin:0;border:0;padding:0;z-index:-1;",Ru.classList.add("resize-sensor-iframe"),_u.appendChild(Ru),Ru.contentWindow?(Ru.contentWindow.addEventListener("resize",()=>{$u(Ru.clientWidth,Ru.clientHeight)}),resizeObserverCache.set(_u,resizeObserverCache.get(_u)||0+1),()=>{_u.removeChild(Ru),resizeObserverCache.get(_u)===1&&resizeObserverCache.delete(_u)}):()=>{}}}function hasResizeListener(_u){return _u?resizeObserverCache.get(_u)||0>0:!1}function ResizeObserver$1(){const _u=React.useRef(null),$u=useController();return React.useEffect(()=>{if(!_u.current)return;const Bu=$u.container.parentElement;if(hasResizeListener(Bu))return;const Ru=addResizeListener(Bu,(Lu,Ou)=>{$u.setContainerSize(Lu,Ou)});return()=>{Ru()}},[]),jsx("div",{className:"resizeObserver-element",ref:_u})}function InfoPanelImg({url:_u,children:$u}){return jsx("div",{className:"vreo-infoPanel-container",children:jsx("div",{className:"vreo-infoPanel vreo-infoPanel--img",children:jsx("div",{className:"ratio-4-5 vreo-infoPanel-wrapper",children:jsxs("div",{className:"vreo-infoPanel-inner",children:[$u,jsx("img",{className:"vreo-infoPanelImg",src:_u})]})})})})}function InfoPanelVideo({url:_u,children:$u}){return jsx("div",{className:"vreo-infoPanel-container",children:jsx("div",{className:"vreo-infoPanel vreo-infoPanel--video",children:jsx("div",{className:"ratio-4-5 vreo-infoPanel-wrapper",children:jsxs("div",{className:"vreo-infoPanel-inner",children:[$u,jsx("div",{className:"vreo-infoPanelVideo",children:jsx("video",{playsInline:!0,autoPlay:!0,className:"vreo-infoPanelVideo",src:_u})})]})})})})}const Title=_u=>!_u.title&&!_u.subTitle?null:jsxs(Fragment,{children:[jsx("div",{className:"vreo-infoPanel-title-shadow"}),jsxs("div",{className:"vreo-infoPanel-title",children:[jsx("div",{className:"vreo-infoPanel-t1",children:_u.title}),jsx("div",{className:"vreo-infoPanel-t2",children:_u.subTitle})]})]});function InfoPanel(){const _u=react$1.exports.useRef(),$u=useController();return react$1.exports.useEffect(()=>{var Ru;if(((Ru=$u.configs)==null?void 0:Ru.keyframeMap.InfoPanel)===!1)return;const Bu=Lu=>{const{start:Ou,end:Fu,data:Nu}=Lu,Vu=Nu,{title:Uu,subTitle:Gu,style:zu}=Vu;do{if(zu===InfoPanelStyleEnum.PopUp){Vu.type===InfoPanelTypeEnum.Image?$u.openPopUp(jsx(InfoPanelImg,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})})):Vu.type===InfoPanelTypeEnum.Video&&$u.openPopUp(jsx(InfoPanelVideo,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}));break}Vu.type===InfoPanelTypeEnum.Image?$u.openDrawer({content:jsx(InfoPanelImg,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}),height:"60vh"}):Vu.type===InfoPanelTypeEnum.Video&&$u.openDrawer({content:jsx(InfoPanelVideo,{url:Vu.url,children:jsx(Title,{title:Uu,subTitle:Gu})}),height:"60vh"})}while(!1);_u.current=setTimeout(()=>{$u.openDrawer(!1),$u.openPopUp(!1)},Fu-Ou)};return $u.on(VreoKeyframeEnum.InfoPanel,Bu),()=>{$u.off(VreoKeyframeEnum.InfoPanel,Bu),_u.current&&clearTimeout(_u.current)}},[$u]),jsx(Fragment,{})}const ModelTVVideoPlugin=(_u,{videoElement:$u})=>{const Bu={videoMeshes:[],videoTextureEnabled:!1,videoSource:"",rectPoints:[],enabled:!1,videoElement:$u},Ru=zu=>{Bu.videoTexture&&(Bu.videoTexture.image.muted=zu,Bu.videoTexture.image.play())},Lu=()=>Bu.videoTexture?Bu.videoTexture.image.muted:!0,Ou=()=>{if(Bu.enabled||!Bu.videoTexture)return;Bu.enabled=!0,Bu.videoMeshes=Nu(),Bu.videoMeshes.forEach(Hu=>_u.scene.add(Hu));const zu=()=>{if(!Bu.videoTexture)return;const Hu=()=>{var ju;!Bu.videoTexture||((ju=Bu.videoTexture)==null||ju.image.removeEventListener("timeupdate",Hu),Bu.videoTextureEnabled=!0,Bu.videoMeshes.forEach(Qu=>{Qu.material.map!==Bu.videoTexture&&(Qu.material.map=Bu.videoTexture)}),_u.needsRender=!0)};Bu.videoTexture.image.addEventListener("timeupdate",Hu),Bu.videoTexture&&Bu.videoMeshes.length&&Bu.videoTexture.image.play()};if(_u.model.loaded)zu();else return _u.once("modelLoaded",()=>zu())},Fu=()=>{!Bu.enabled||(Bu.enabled=!1,Bu.videoMeshes.forEach(zu=>{zu.geometry.dispose(),zu.material.dispose(),_u.scene.remove(zu),Bu.videoTexture&&Bu.videoTexture.image.pause()}),Bu.videoMeshes=[],_u.needsRender=!0)},Nu=()=>Bu.rectPoints.map((zu,Hu)=>{const ju=new BufferGeometry,Qu=128,Xu=[];Xu.push(zu[0].x,zu[0].y,zu[0].z);for(let Zu=1;Zu<Qu;Zu++)Xu.push(zu[0].x+(zu[1].x-zu[0].x)*Zu/Qu,zu[0].y+(zu[1].y-zu[0].y)*Zu/Qu,zu[0].z+(zu[1].z-zu[0].z)*Zu/Qu);Xu.push(zu[1].x,zu[1].y,zu[1].z),Xu.push(zu[2].x,zu[2].y,zu[2].z);for(let Zu=1;Zu<Qu;Zu++)Xu.push(zu[2].x+(zu[3].x-zu[2].x)*Zu/Qu,zu[2].y+(zu[3].y-zu[2].y)*Zu/Qu,zu[2].z+(zu[3].z-zu[2].z)*Zu/Qu);Xu.push(zu[3].x,zu[3].y,zu[3].z);const Ku=[];Ku.push(0,1);for(let Zu=1;Zu<Qu;Zu++)Ku.push(0,1-Zu/Qu);Ku.push(0,0),Ku.push(1,0);for(let Zu=1;Zu<Qu;Zu++)Ku.push(1,Zu/Qu);Ku.push(1,1);const Wu=[];for(let Zu=0;Zu<Qu;Zu++)Wu.push(Zu,Zu+1,Qu*2-Zu,Zu,Qu*2-Zu,Qu*2+1-Zu);ju.setAttribute("position",new BufferAttribute(new Float32Array(Xu),3)),ju.setAttribute("uv",new BufferAttribute(new Float32Array(Ku),2)),ju.setIndex(new BufferAttribute(new Uint32Array(Wu),1));const qu=new MeshBasicMaterial({map:Bu.videoTextureEnabled?Bu.videoTexture:Bu.imageTexture,side:DoubleSide}),Yu=new Mesh(ju,qu);return Yu.renderOrder=1,Yu.name=`video-${Hu}-${performance.now()}`,Yu}),Vu=zu=>{const Hu=new TextureLoader().load(zu);return Hu.minFilter=LinearFilter,Hu.magFilter=LinearFilter,Hu.format=RGBFormat,Hu},Uu=(zu,Hu)=>new Promise((ju,Qu)=>{const Xu=new XMLHttpRequest;Xu.onreadystatechange=()=>{if(Xu.readyState==4)if(Xu.status==200){const Ku=window.URL||window.webkitURL;Hu=Hu||document.createElement("video"),Hu.crossOrigin="anonymous",Hu.autoplay=!0,Hu.muted=!0,Hu.loop=!0,Hu.playsInline=!0,Hu.src=Ku.createObjectURL(Xu.response);const Wu=new VideoTexture(Hu);Wu.minFilter=LinearFilter,Wu.magFilter=LinearFilter,Wu.format=RGBFormat,ju(Object.assign(Wu,{videoSource:zu}))}else Qu(new Error("Video download Error: "+Xu.status))},Xu.onerror=Ku=>Qu(Ku),Xu.open("GET",zu),Xu.responseType="blob",Xu.send()}),Gu=async(zu,Hu)=>{const{video_src:ju,video_poster_src:Qu,points:Xu}=zu;Bu.videoSource=ju,Bu.rectPoints=Xu.map(Ku=>Ku.map(({x:Wu,y:qu,z:Yu})=>new Vector3(Wu,qu,Yu))),Bu.imageTexture=Vu(Qu),Hu&&(Bu.videoElement=Hu),Bu.videoTexture=await Uu(Bu.videoSource,Bu.videoElement),Bu.enabled=!!zu.enable,Bu.enabled&&Ou()};return _u.on("modeChange",()=>Ru(!0)),_u.on("wantsTapGesture",zu=>{if(!Bu.enabled)return;const[Hu]=zu.intersectObjects(_u.scene.children,!0);if(!!Hu&&/^video/.test(Hu.object.name))return Bu.videoTexture&&Ru(!Bu.videoTexture.image.muted),!1}),_u.on("panoArrived",()=>{if(!Bu.enabled||Lu())return;const zu=_u.camera.position;Bu.rectPoints.find(ju=>{const Qu=ju.reduce((Xu,Ku)=>new Vector3(Xu.x+Ku.x/ju.length,Xu.y+Ku.y/ju.length,Xu.z+Ku.z/ju.length),new Vector3);return ju.map(Xu=>new Vector3((Xu.x+Qu.x)/2,(Xu.y+Qu.y)/2,(Xu.z+Qu.z)/2)).filter(Xu=>{Xu=Xu.clone().sub(zu).normalize();const Ku=new Raycaster(zu,Xu),[Wu]=Ku.intersectObjects(_u.scene.children,!0);return!!Wu&&/^video/.test(Wu.object.name)}).length>=2})||Ru(!0)}),_u.on("renderFrame",()=>{Bu.videoMeshes.forEach(zu=>{zu&&(zu.needsRender=!0)})}),_u.on("load",zu=>{zu.modelTVVideoData&&Gu(zu.modelTVVideoData)}),{enable:Ou,disable:Fu,load:Gu}};function createTransMatrix(_u){const $u=new Matrix4;return $u.fromArray(_u),Bu=>{const Ru=new Vector3(...Bu);return Ru.applyMatrix4($u),Ru.toArray()}}function ModelVideo(){const _u=useController(),$u=useFiveInstance(),Bu=react$1.exports.useRef(),Ru=react$1.exports.useRef();return react$1.exports.useEffect(()=>{const Lu=async Ou=>{var Qu,Xu;Bu.current||(Bu.current=ModelTVVideoPlugin($u,{}));const{start:Fu,end:Nu}=Ou,{videoSrc:Vu,videoPosterSrc:Uu,vertexs:Gu,matrixWorld:zu}=Ou.data,Hu=(()=>{if(Gu.length<4)throw new Error("ModelVideo: \u9876\u70B9\u6570\u636E\u96C6\u5408\u4E0D\u591F\uFF0C\u65E0\u6CD5\u7EC4\u6210\u77E9\u5F62 ....");if(Gu.length===4)return Gu;const Ku=new Box3;return Gu.forEach(Wu=>Ku.expandByPoint(new Vector3(Wu.x,Wu.y,Wu.z))),[new Vector3(Ku.min.x,Ku.max.y,Ku.max.z),new Vector3(Ku.min.x,Ku.min.y,Ku.max.z),new Vector3(Ku.max.x,Ku.min.y,Ku.max.z),new Vector3(Ku.max.x,Ku.max.y,Ku.max.z)]})(),ju=(()=>{if(zu){const Ku=createTransMatrix(zu);return[Hu.map(Wu=>{const qu=Ku([Wu.x,Wu.y,Wu.z]);return{x:qu[0],y:qu[1],z:qu[2]}})]}return[Hu]})();Bu.current.disable(),await Bu.current.load({video_src:Vu,video_poster_src:Uu,points:ju},(Xu=(Qu=_u.configs)==null?void 0:Qu.videos)==null?void 0:Xu.modelTVVideo),Bu.current.enable(),Ru.current=setTimeout(()=>{var Ku;return(Ku=Bu.current)==null?void 0:Ku.disable()},Nu-Fu)};return _u.on(VreoKeyframeEnum.ModelVideo,Lu),()=>{_u.off(VreoKeyframeEnum.ModelVideo,Lu),Ru.current&&clearTimeout(Ru.current)}},[_u]),jsx(Fragment,{})}var line={},Line;Object.defineProperty(line,"__esModule",{value:!0});var t$1=tslib.exports;function e(_u){if(_u&&_u.__esModule)return _u;var $u=Object.create(null);return _u&&Object.keys(_u).forEach(function(Bu){if(Bu!=="default"){var Ru=Object.getOwnPropertyDescriptor(_u,Bu);Object.defineProperty($u,Bu,Ru.get?Ru:{enumerable:!0,get:function(){return _u[Bu]}})}}),$u.default=_u,Object.freeze($u)}var n=e(require$$1),i=function(_u){function $u(){var Bu=_u.call(this)||this;return Bu.type="LineSegmentsGeometry",Bu.setIndex([0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5]),Bu.setAttribute("position",new n.Float32BufferAttribute([-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],3)),Bu.setAttribute("uv",new n.Float32BufferAttribute([-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],2)),Bu}return t$1.__extends($u,_u),$u.prototype.applyMatrix4=function(Bu){var Ru=this.attributes.instanceStart,Lu=this.attributes.instanceEnd;return Ru!==void 0&&(Ru.applyMatrix4(Bu),Lu.applyMatrix4(Bu),Ru.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this},$u.prototype.setPositions=function(Bu){var Ru;Ru=Bu instanceof Float32Array?Bu:Array.isArray(Bu)?new Float32Array(Bu):new Float32Array;var Lu=new n.InstancedInterleavedBuffer(Ru,6,1);return this.setAttribute("instanceStart",new n.InterleavedBufferAttribute(Lu,3,0)),this.setAttribute("instanceEnd",new n.InterleavedBufferAttribute(Lu,3,3)),this.computeBoundingBox(),this.computeBoundingSphere(),this},$u.prototype.setColors=function(Bu){var Ru;Ru=Bu instanceof Float32Array?Bu:Array.isArray(Bu)?new Float32Array(Bu):new Float32Array;var Lu=new n.InstancedInterleavedBuffer(Ru,6,1);return this.setAttribute("instanceColorStart",new n.InterleavedBufferAttribute(Lu,3,0)),this.setAttribute("instanceColorEnd",new n.InterleavedBufferAttribute(Lu,3,3)),this},$u.prototype.fromWireframeGeometry=function(Bu){return this.setPositions(Bu.attributes.position.array),this},$u.prototype.fromEdgesGeometry=function(Bu){return this.setPositions(Bu.attributes.position.array),this},$u.prototype.fromMesh=function(Bu){return this.fromWireframeGeometry(new n.WireframeGeometry(Bu.geometry)),this},$u.prototype.fromLineSegments=function(Bu){var Ru=Bu.geometry;if(Ru instanceof n.Geometry){var Lu=new n.BufferGeometry().fromGeometry(Ru);this.setPositions(Lu.attributes.position.array)}else Ru instanceof n.BufferGeometry&&this.setPositions(Ru.attributes.position.array);return this},$u.prototype.computeBoundingBox=function(){this.boundingBox===null&&(this.boundingBox=new n.Box3);var Bu=this.attributes.instanceStart,Ru=this.attributes.instanceEnd;if(Bu!==void 0&&Ru!==void 0){var Lu=new n.Box3;this.boundingBox.setFromBufferAttribute(Bu),Lu.setFromBufferAttribute(Ru),this.boundingBox.union(Lu)}},$u.prototype.computeBoundingSphere=function(){this.boundingSphere===null&&(this.boundingSphere=new n.Sphere),this.boundingBox===null&&this.computeBoundingBox();var Bu=this.attributes.instanceStart,Ru=this.attributes.instanceEnd;if(Bu!==void 0&&Ru!==void 0){var Lu=this.boundingSphere.center;this.boundingBox.getCenter(Lu);for(var Ou=0,Fu=new n.Vector3,Nu=0,Vu=Bu.count;Nu<Vu;Nu++)Fu.fromBufferAttribute(Bu,Nu),Ou=Math.max(Ou,Lu.distanceToSquared(Fu)),Fu.fromBufferAttribute(Ru,Nu),Ou=Math.max(Ou,Lu.distanceToSquared(Fu));this.boundingSphere.radius=Math.sqrt(Ou),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}},$u.prototype.toJSON=function(){},$u}(n.InstancedBufferGeometry);Object.assign(i.prototype,{isLineSegmentsGeometry:!0});var r$1={uniforms:n.UniformsUtils.merge([n.UniformsLib.common,n.UniformsLib.fog,{linewidth:{value:1},resolution:{value:new n.Vector2(1,1)},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1},opacity:{value:1}}]),vertexShader:`
3696
3696
  #include <common>
3697
3697
  #include <color_pars_vertex>
3698
3698
  #include <fog_pars_vertex>
@@ -3974,7 +3974,7 @@ void main(void) {
3974
3974
 
3975
3975
  gl_FragColor = vec4(color.rgb, amask * float(enable));
3976
3976
  }
3977
- `,cacheInstance={};class VideoAgentMesh extends Mesh{constructor(Bu,Ru,Lu,Ou,Fu={preload:!0}){var Qu,Xu,Ku;if(!Fu.videoInstance)if(cacheInstance.videoInstance)Fu.videoInstance=cacheInstance.videoInstance;else{const Wu=document.createElement("video");Wu.style.opacity="0",Wu.style.pointerEvents="none",Wu.style.display="none",document.body.append(Wu),Fu.videoInstance=Wu,cacheInstance.videoInstance=Wu,Wu.playsInline=!0,Wu.controls=!1}const Nu=new PlaneGeometry(Bu,Ru,Lu,Ou),Vu=new VideoTexture(Fu.videoInstance),Uu=new ShaderMaterial({uniforms:{map:{value:Vu},enable:{value:0}},vertexShader,fragmentShader:fragmentShaderTpl(),transparent:!0});super(Nu,Uu);xm(this,"options");xm(this,"videoUrl");xm(this,"freeze");xm(this,"paused");xm(this,"audioInstance");xm(this,"audioLikeInstance");xm(this,"$removeEventListener");if(this.options=Fu,this.freeze=!1,this.paused=!0,Fu.audioInstance)this.audioInstance=Fu.audioInstance;else if(cacheInstance.audioInstance)this.audioInstance=cacheInstance.audioInstance;else{const Wu=document.createElement("audio");Wu.crossOrigin="",Wu.muted=!1,Wu.autoplay=!1,Wu.style.display="none",document.body.appendChild(Wu),this.audioInstance=Wu,cacheInstance.audioInstance=Wu}this.audioLikeInstance=new AudioLike,makeObservable(this,{paused:observable});const Gu=Wu=>runInAction(()=>this.paused=Wu),zu=()=>Gu(!0),Hu=()=>Gu(!1),ju=()=>console.log("vreo: video \u64AD\u653E\u7ED3\u675F");this.audioInstance.addEventListener("pause",zu),this.audioInstance.addEventListener("play",Hu),(Qu=this.options.videoInstance)==null||Qu.addEventListener("pause",zu),(Xu=this.options.videoInstance)==null||Xu.addEventListener("play",Hu),this.audioLikeInstance.addEventListener("pause",zu),this.audioLikeInstance.addEventListener("play",Hu),(Ku=this.options.videoInstance)==null||Ku.addEventListener("ended",ju),this.$removeEventListener=()=>{var Wu,qu,Yu;this.audioInstance.removeEventListener("pause",zu),this.audioInstance.removeEventListener("play",Hu),(Wu=this.options.videoInstance)==null||Wu.removeEventListener("pause",zu),(qu=this.options.videoInstance)==null||qu.removeEventListener("play",Hu),this.audioLikeInstance.removeEventListener("pause",zu),this.audioLikeInstance.removeEventListener("play",Hu),(Yu=this.options.videoInstance)==null||Yu.removeEventListener("ended",ju)}}get mediaInstance(){return this.videoUrl?getMediaType(this.videoUrl)==="audio"?this.audioInstance:this.material.uniforms.map.value.image:this.audioLikeInstance}async update(Bu){if(this.videoUrl===Bu)return;this.videoUrl=Bu,this.freeze=!0,await this.mediaInstance.pause();const Ru=this.material.uniforms;this.mediaInstance.muted=!0,this.mediaInstance.src=this.options.preload||this.options.preload===void 0||getMediaType(this.videoUrl)==="video"?await URL.createObjectURL(await Preloader.blob(this.videoUrl)):this.videoUrl,this.mediaInstance.setAttribute("data-src",this.videoUrl);const Lu=()=>{this.mediaInstance.currentTime!==0&&(this.freeze=!1,this.mediaInstance.muted=!1,Ru.enable.value=getMediaType(this.videoUrl)?1:0,this.mediaInstance.removeEventListener("timeupdate",Lu,!1))};this.mediaInstance.addEventListener("timeupdate",Lu,!1)}async play(Bu="",Ru=0,Lu){return Bu=Bu||"",Lu&&!Bu?(this.currentTime&&(this.mediaInstance.currentTime=Ru),this.mediaInstance.duration=Lu,this.videoUrl="",this.mediaInstance.play(),!0):Bu?Bu===this.videoUrl?(this.mediaInstance.currentTime=Ru,await this.mediaInstance.play(),!0):(await this.update(Bu),this.mediaInstance.pause(),await new Promise(Ou=>setTimeout(async()=>{this.mediaInstance.currentTime=Ru,await this.mediaInstance.play(),Ou(!0)},20))):(this.videoUrl?await this.mediaInstance.play():console.warn("\u8B66\u544A\uFF1A\u89C6\u9891\u8D44\u6E90\u672A\u521D\u59CB\u5316\u3002"),!0)}get currentTime(){return this.mediaInstance.currentTime*1e3}dispose(){this.$removeEventListener(),cacheInstance.audioInstance&&(document.body.removeChild(cacheInstance.audioInstance),cacheInstance.audioInstance=void 0),cacheInstance.videoInstance&&(document.body.removeChild(cacheInstance.videoInstance),cacheInstance.videoInstance=void 0)}}class VideoAgentScene{constructor($u,Bu){xm(this,"videoAgentMesh");xm(this,"scene",new Scene);xm(this,"camera",new OrthographicCamera(-240,240,135,-135));xm(this,"renderer",new WebGLRenderer({alpha:!0}));xm(this,"disposers",[]);xm(this,"run",()=>{!(this.videoAgentMesh.paused||this.videoAgentMesh.freeze)&&this.videoAgentMesh.currentTime>1e3&&this.renderer.render(this.scene,this.camera),requestAnimationFrame(this.run)});xm(this,"dispose",()=>{var $u;($u=this.videoAgentMesh)==null||$u.dispose(),this.disposers.forEach(Bu=>Bu==null?void 0:Bu())});if(this.videoAgentMesh=new VideoAgentMesh(480,270,1,1,Bu),$u){this.camera.position.set(0,0,10),this.camera.lookAt(0,0,0);const Ru=this.renderer.domElement;Ru.classList.add("VideoAgent-canvas");const Lu=addResizeListener($u,(Ou,Fu)=>{this.renderer.setSize(Ou*window.devicePixelRatio,Fu*window.devicePixelRatio),Ru.style.width=`${Ou}px`,Ru.style.height=`${Fu}px`});this.disposers.push(Lu),$u.append(Ru),this.scene.add(this.videoAgentMesh),this.run()}}}function VideoAgent(_u){var Ou;const $u=react$1.exports.useRef(null),Bu=useController(),Ru=react$1.exports.useMemo(()=>{var Fu;return((Fu=Bu.avatar)==null?void 0:Fu.url)&&Bu.avatar.force===!0},[Bu.avatar]),Lu=react$1.exports.useMemo(()=>{var Fu;return Ru?!1:((Fu=Bu.videoAgentScene)==null?void 0:Fu.videoAgentMesh.mediaInstance)instanceof HTMLVideoElement},[Bu.videoAgentScene]);return react$1.exports.useEffect(()=>{if(!$u.current)throw new Error("React \u6E32\u67D3\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5 ...");if(Bu.videoAgentScene){console.warn('VideoAgentScene" \u91CD\u590D\u521D\u59CB\u5316\uFF0C\u5DF2\u88AB\u8FC7\u6EE4');return}const Fu=new VideoAgentScene($u.current,_u.options);return Bu.videoAgentScene=Fu,()=>{var Nu;Bu.dispose(),(Nu=Bu.videoAgentScene)==null||Nu.dispose()}},[]),jsxs(Fragment,{children:[jsx("div",{className:"Avatar",style:{display:Ru?"block":"none"},children:jsx("div",{className:"Avatar-wrapper ratio-1-1",children:jsx("img",{className:"Avatar-img",src:(Ou=Bu.avatar)==null?void 0:Ou.url,onClick:()=>{var Fu;return(Fu=_u.onClick)==null?void 0:Fu.call(_u)}})})}),jsx("div",{className:classNames("VideoAgent",{hide:!Lu}),children:jsx("div",{className:"VideoAgent-container",children:jsx("div",{className:"VideoAgent-wrapper ratio-16-9",children:jsx("div",{className:"VideoAgent-inner",ref:$u,children:jsx("div",{className:"VideoAgent-play",onClick:()=>{var Fu;return(Fu=_u.onClick)==null?void 0:Fu.call(_u)}})})})})})]})}function BgMusic(){const _u=useController(),$u=react$1.exports.useRef(null),Bu=react$1.exports.useCallback(()=>{$u.current&&(clearTimeout($u.current),$u.current=null)},[]);return react$1.exports.useEffect(()=>{const Ru=new Audio;Ru.setAttribute("id","vreo-singleton-bgmusic"),Ru.style.display="none",Ru.setAttribute("playsinline","true"),Ru.loop=!0,document.body.append(Ru);const Lu=Ou=>{const{start:Fu,end:Nu}=Ou,{url:Vu}=Ou.data;Ru.src=Vu;const Uu=()=>{Ru.play()};Ru.addEventListener("canplaythrough",Uu),Bu();const Gu=()=>{Ru.pause(),Ru.currentTime=0,Ru.src="",Bu(),Ru.removeEventListener("canplaythrough",Uu)},zu=Nu-Fu||5e3;$u.current=setTimeout(()=>{Gu()},zu),_u.once("paused",()=>{Gu()})};return _u.on(VreoKeyframeEnum.BgMusic,Lu),()=>{_u.off(VreoKeyframeEnum.BgMusic,Lu),document.body.removeChild(Ru),Bu()}}),jsx(Fragment,{})}const prefix="https://vr-public.realsee-cdn.cn/release/static/image/release/",WAVES={single:{width:766,height:60,frames:20,hevc:"vapor/static/wave-single.140d197f4838c130b69e87dfd0705479.mov",vp9:"vapor/static/wave-single.eda65de390a830193fff40d1f1255555.webm",png:"vapor/static/wave-single.f51aade2a6e1c59211698a1a24e6135f.png"},double:{width:766,height:60,frames:16,hevc:"vapor/static/wave-double.3e6d73050ee6958cc3060b107ebe5f39.mov",vp9:"/vapor/static/wave-double.77dfe8548ebcb3f3d336785d4fe9c7b2.webm",png:"/vapor/static/wave-double.ab4fe7d8a70395109ca4f759af7bd53f.png"},solid:{width:1126,height:90,frames:48,hevc:"vapor/static/wave-solid.cf68912a93275d07aa6b5097ea11fdda.mov",vp9:"vapor/static/wave-solid.64438b63cbb346906d066bb7b8dc3e20.webm",png:"vapor/static/wave-solid.6969d7f3f2f44f7ac1ade30e65660cb1.png"},swap:{width:2250,height:180,frames:41,hevc:"vapor/static/wave-swap.b38f22e2cf84ee21e9be35f7f56c9cfc.mov",vp9:"vapor/static/wave-swap.c02e4b94cf05aecf6e7a0023bc7bb90f.webm",png:"vapor/static/wave-swap.772ba526a7210dcc01567062c6319545.png"},expand:{width:2250,height:180,frames:45,hevc:"vapor/static/wave-expand.9529956c5954740cd4c9d07d51e32822.mov",vp9:"vapor/static/wave-expand.a0d2a0074001cd3d4fea56818c6d3c38.webm",png:"vapor/static/wave-expand.62fcf27b445533e6eb1b17bab5eafa0d.png"}},userAgent=typeof navigator!="undefined"?navigator.userAgent:"",isAppleDevice=/(iPhone|iPad|iPod)/i.test(userAgent),isSafari=/safari/i.test(userAgent)&&!/chrome/i.test(userAgent)&&/version/i.test(userAgent),isMicroMessenger=/microMessenger/i.test(userAgent),canPlayHevc=isAppleDevice||isSafari,canPlayVp9=typeof MediaSource!="undefined"&&MediaSource.isTypeSupported("video/webm; codecs=vp9");function Wave(_u){const $u=React.useMemo(()=>{var Ou;const Lu=(Ou=_u==null?void 0:_u.appearance)!=null?Ou:"solid";return WAVES[Lu]},[_u==null?void 0:_u.appearance]),Bu=React.useMemo(()=>$u.height/$u.width,[$u]);let Ru=null;return isMicroMessenger?Ru=jsx(KeyframeWaveContent,{wave:$u}):canPlayHevc?Ru=jsx(VideoWaveContent,{format:"hevc",wave:$u}):canPlayVp9?Ru=jsx(VideoWaveContent,{format:"vp9",wave:$u}):Ru=jsx(KeyframeWaveContent,{wave:$u}),jsx("div",{className:"vreo-wave",children:jsx("div",{style:{position:"relative",width:"100%",paddingTop:`${Bu*100}%`},children:jsx("div",{style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},children:Ru})})})}const VideoWaveContent=({wave:_u,format:$u})=>{const Bu=react$1.exports.useRef(null),[Ru,Lu]=react$1.exports.useState(!1),[Ou,Fu]=react$1.exports.useState(!1),Nu=prefix+_u[$u];react$1.exports.useEffect(()=>{Lu(!1)},[Nu]);const Vu=react$1.exports.useCallback(()=>{Bu.current&&Bu.current.play(),Lu(!0)},[]),Uu=react$1.exports.useCallback(()=>{Fu(!0)},[]);return Ou?jsx(KeyframeWaveContent,{wave:_u}):jsx("video",{style:{opacity:Ru?1:0},preload:"auto",ref:Bu,width:"100%",height:"100%",playsInline:!0,autoPlay:!0,onCanPlay:Vu,onError:Uu,muted:!0,loop:!0,src:Nu})},KeyframeWaveContent=({wave:_u})=>{const $u=prefix+_u.png;return jsx("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${$u})`,backgroundSize:"100%",animationName:"vreo-wave-keyframes",animationTimingFunction:`steps(${_u.frames-1})`,animationDuration:`${_u.frames/25}s`,animationIterationCount:"infinite"}})},AppView=observer(({controller:_u})=>{var $u,Bu;return jsx("div",{className:classNames("vreo-panel",{"vreo-panel--hidden":!_u.visible}),children:jsxs("div",{className:"vreo-panel-inner",children:[_u.waveAppearance&&jsx(Wave,{appearance:_u.waveAppearance}),jsx(VideoAgent,{onClick:()=>{_u.playing?_u.setPlaying(!1):_u.setPlaying(!0)},options:(($u=_u.configs)==null?void 0:$u.videoAgentMeshOptions)||{}}),jsx(Prompter,{}),(Bu=_u.configs)==null?void 0:Bu.customPanelChildren]})})});function App(){const _u=useController();return jsxs(Fragment,{children:[jsxs(Fragment,{children:[jsx(ResizeObserver$1,{}),jsx(CameraMovement,{}),jsx(ModelVideo,{}),jsx(UpdateVRPanorama,{}),jsx(VideoEffect,{}),jsx(PanoTag,{}),jsx(PanoTextLabel,{}),jsx(InfoPanel,{}),jsx(PanoEffect,{}),jsx(BgMusic,{})]}),jsx(AppView,{controller:_u})]})}const DrawerView=observer(({controller:_u})=>{var Ru;const $u="400px",Bu=(()=>{var Ou;const Lu=(Ou=_u.drawerConfig)==null?void 0:Ou.height;return Lu?typeof Lu=="number"?Lu+"px":Lu:"max-content"})();return jsx("div",{className:classNames("vreo-drawer",{"vreo-drawer-visible":_u.drawerConfig&&_u.drawerConfig.content}),onClick:()=>_u.openDrawer(!1),children:jsx("div",{className:"vreo-drawer-inner",style:{height:Bu,maxHeight:$u},children:((Ru=_u.drawerConfig)==null?void 0:Ru.content)||""})})});function Drawer(){const _u=useController();return jsx(DrawerView,{controller:_u})}const PopUpView=observer(({controller:_u})=>jsx("div",{className:classNames("vreo-PopUp",{"vreo-PopUp-visible":_u.popUp}),onClick:()=>_u.openPopUp(!1),children:jsx("div",{className:"vreo-PopUp-inner",children:_u.popUp||""})}));function PopUp(){const _u=useController();return jsx(PopUpView,{controller:_u})}class Player extends Subscribe{constructor(Bu,Ru={}){var Lu;super();xm(this,"$five");xm(this,"controller");xm(this,"configs");if(this.$five=Bu,Ru.container||(Ru.container=Ru.containter),!Ru.container){const Ou=document.getElementById("vreo-app")||document.createElement("div");reactDom.exports.unmountComponentAtNode(Ou),Ou.setAttribute("id","vreo-app"),Ru.container=Ou;const Fu=(Lu=Bu.getElement())==null?void 0:Lu.parentNode;Fu?Fu.append(Ou):document.body.append(Ou)}Ru.container.classList.contains("vreo-app")||Ru.container.classList.add("vreo-app"),this.configs=Object.freeze(Object.assign({keyframeMap:{}},Ru)),this.controller=new Controller({five:Bu,container:Ru.container,configs:this.configs}),reactDom.exports.render(jsxs(ControllerContext.Provider,{value:this.controller,children:[jsx(App,{}),jsx(Drawer,{}),jsx(PopUp,{}),this.configs.customKeyframes&&this.configs.customKeyframes.map((Ou,Fu)=>jsx(Ou,{subscribe:{on:(Nu,Vu)=>this.on(Nu,Vu),once:(Nu,Vu)=>this.once(Nu,Vu),off:(Nu,Vu)=>this.off(Nu,Vu)},five:Bu},Fu))]}),Ru.container),reaction(()=>this.controller.ended,Ou=>{Ou&&this.emit("paused",!0)}),reaction(()=>this.controller.playing,Ou=>{this.controller.ended||this.emit(Ou?"playing":"paused")})}async load(Bu,Ru=0,Lu=!1,Ou=!1){var Fu,Nu,Vu,Uu;if(this.controller.setLoading(!0),Ou&&(Bu=JSON.parse(JSON.stringify(Bu))),this.controller.visible||(this.controller.setVisible(!0),await new Promise(Gu=>{setTimeout(()=>Gu(!0),500)})),this.controller.stopInterval&&(this.controller.stopInterval(),this.controller.stopInterval=void 0),this.controller.vreoUnit=Bu,(Fu=this.controller.mediaInstance)==null||Fu.pause(),this.$five.imageOptions.size&&((Nu=this.configs.imageOptions)==null?void 0:Nu.size)&&this.$five.imageOptions.size>this.configs.imageOptions.size&&(this.$five.imageOptions.size=this.configs.imageOptions.size),Lu||Lu===void 0&&this.configs.autoPreload){const Gu=Bu.keyframes.filter(Hu=>!(Hu.type!==VreoKeyframeEnum.CameraMovement||Hu.data.panoIndex===void 0)).reduce((Hu,ju)=>{const Qu=ju.data.panoIndex;return Hu[Qu]||(Hu[Qu]=!0),Hu},{}),zu=Object.keys(Gu);for(let Hu=0;Hu<zu.length;Hu++)await this.$five.preloadPano(Number(zu[Hu]))}return this.emit("loaded",Bu),this.controller.emit("loaded",Bu),(Vu=this.controller.videoAgentScene)!=null&&Vu.videoAgentMesh.mediaInstance&&(this.controller.videoAgentScene.videoAgentMesh.mediaInstance.currentTime=Ru/1e3),this.controller.setAvatar(Bu.video.avatar),await((Uu=this.controller.videoAgentScene)==null?void 0:Uu.videoAgentMesh.play(Bu.video.url,Ru/1e3,Bu.video.duration)),this.controller.setEnded(!1),this.play(),this.controller.run((Gu,zu)=>this.emit(Gu,zu)),this.controller.setLoading(!1),!0}get paused(){return!this.controller.playing}play(Bu){return this.controller.playing||(Bu&&this.controller.mediaInstance&&(this.controller.mediaInstance.currentTime=Bu/1e3),Object.assign(window,{$vreoController:this.controller}),this.controller.setPlaying(!0)),!0}setAppearance(Bu){this.controller.setAppearance(Bu)}pause(){this.controller.setPlaying(!1)}show(){this.controller.setVisible(!0)}hide(){this.controller.setVisible(!1)}getCurrentTime(){return this.controller.currentTime}dispose(){this.pause(),this.controller.dispose(),this.configs.container&&reactDom.exports.unmountComponentAtNode(this.configs.container)}}console.log(`
3977
+ `,cacheInstance={};class VideoAgentMesh extends Mesh{constructor(Bu,Ru,Lu,Ou,Fu={preload:!0}){var Qu,Xu,Ku;if(!Fu.videoInstance)if(cacheInstance.videoInstance)Fu.videoInstance=cacheInstance.videoInstance;else{const Wu=document.createElement("video");Wu.style.opacity="0",Wu.style.pointerEvents="none",Wu.style.display="none",document.body.append(Wu),Fu.videoInstance=Wu,cacheInstance.videoInstance=Wu,Wu.playsInline=!0,Wu.controls=!1}const Nu=new PlaneGeometry(Bu,Ru,Lu,Ou),Vu=new VideoTexture(Fu.videoInstance),Uu=new ShaderMaterial({uniforms:{map:{value:Vu},enable:{value:0}},vertexShader,fragmentShader:fragmentShaderTpl(),transparent:!0});super(Nu,Uu);xm(this,"options");xm(this,"videoUrl");xm(this,"freeze");xm(this,"paused");xm(this,"audioInstance");xm(this,"audioLikeInstance");xm(this,"$removeEventListener");if(this.options=Fu,this.freeze=!1,this.paused=!0,Fu.audioInstance)this.audioInstance=Fu.audioInstance;else if(cacheInstance.audioInstance)this.audioInstance=cacheInstance.audioInstance;else{const Wu=document.createElement("audio");Wu.crossOrigin="",Wu.muted=!1,Wu.autoplay=!1,Wu.style.display="none",document.body.appendChild(Wu),this.audioInstance=Wu,cacheInstance.audioInstance=Wu}this.audioLikeInstance=new AudioLike,makeObservable(this,{paused:observable});const Gu=Wu=>runInAction(()=>this.paused=Wu),zu=()=>Gu(!0),Hu=()=>Gu(!1),ju=()=>console.log("vreo: video \u64AD\u653E\u7ED3\u675F");this.audioInstance.addEventListener("pause",zu),this.audioInstance.addEventListener("play",Hu),(Qu=this.options.videoInstance)==null||Qu.addEventListener("pause",zu),(Xu=this.options.videoInstance)==null||Xu.addEventListener("play",Hu),this.audioLikeInstance.addEventListener("pause",zu),this.audioLikeInstance.addEventListener("play",Hu),(Ku=this.options.videoInstance)==null||Ku.addEventListener("ended",ju),this.$removeEventListener=()=>{var Wu,qu,Yu;this.audioInstance.removeEventListener("pause",zu),this.audioInstance.removeEventListener("play",Hu),(Wu=this.options.videoInstance)==null||Wu.removeEventListener("pause",zu),(qu=this.options.videoInstance)==null||qu.removeEventListener("play",Hu),this.audioLikeInstance.removeEventListener("pause",zu),this.audioLikeInstance.removeEventListener("play",Hu),(Yu=this.options.videoInstance)==null||Yu.removeEventListener("ended",ju)}}get mediaInstance(){return this.videoUrl?getMediaType(this.videoUrl)==="audio"?this.audioInstance:this.material.uniforms.map.value.image:this.audioLikeInstance}async update(Bu){if(this.videoUrl===Bu)return;this.videoUrl=Bu,this.freeze=!0,await this.mediaInstance.pause();const Ru=this.material.uniforms;this.mediaInstance.muted=!0,this.mediaInstance.src=this.options.preload||this.options.preload===void 0||getMediaType(this.videoUrl)==="video"?await URL.createObjectURL(await Preloader.blob(this.videoUrl)):this.videoUrl,this.mediaInstance.setAttribute("data-src",this.videoUrl);const Lu=()=>{this.mediaInstance.currentTime!==0&&(this.freeze=!1,this.mediaInstance.muted=!1,Ru.enable.value=getMediaType(this.videoUrl)?1:0,this.mediaInstance.removeEventListener("timeupdate",Lu,!1))};this.mediaInstance.addEventListener("timeupdate",Lu,!1)}async play(Bu="",Ru=0,Lu){return Bu=Bu||"",Lu&&!Bu?(this.currentTime&&(this.mediaInstance.currentTime=Ru),this.mediaInstance.duration=Lu,this.videoUrl="",this.mediaInstance.play(),!0):Bu?Bu===this.videoUrl?(this.mediaInstance.currentTime=Ru,await this.mediaInstance.play(),!0):(await this.update(Bu),this.mediaInstance.pause(),await new Promise(Ou=>setTimeout(async()=>{this.mediaInstance.currentTime=Ru,await this.mediaInstance.play(),Ou(!0)},20))):(this.videoUrl?await this.mediaInstance.play():console.warn("\u8B66\u544A\uFF1A\u89C6\u9891\u8D44\u6E90\u672A\u521D\u59CB\u5316\u3002"),!0)}get currentTime(){return this.mediaInstance.currentTime*1e3}dispose(){this.$removeEventListener(),cacheInstance.audioInstance&&(document.body.removeChild(cacheInstance.audioInstance),cacheInstance.audioInstance=void 0),cacheInstance.videoInstance&&(document.body.removeChild(cacheInstance.videoInstance),cacheInstance.videoInstance=void 0)}}class VideoAgentScene{constructor($u,Bu){xm(this,"videoAgentMesh");xm(this,"scene",new Scene);xm(this,"camera",new OrthographicCamera(-240,240,135,-135));xm(this,"renderer",new WebGLRenderer({alpha:!0}));xm(this,"disposers",[]);xm(this,"run",()=>{!(this.videoAgentMesh.paused||this.videoAgentMesh.freeze)&&this.videoAgentMesh.currentTime>1e3&&this.renderer.render(this.scene,this.camera),requestAnimationFrame(this.run)});xm(this,"dispose",()=>{var $u;($u=this.videoAgentMesh)==null||$u.dispose(),this.disposers.forEach(Bu=>Bu==null?void 0:Bu())});if(this.videoAgentMesh=new VideoAgentMesh(480,270,1,1,Bu),$u){this.camera.position.set(0,0,10),this.camera.lookAt(0,0,0);const Ru=this.renderer.domElement;Ru.classList.add("VideoAgent-canvas");const Lu=addResizeListener($u,(Ou,Fu)=>{this.renderer.setSize(Ou*window.devicePixelRatio,Fu*window.devicePixelRatio),Ru.style.width=`${Ou}px`,Ru.style.height=`${Fu}px`});this.disposers.push(Lu),$u.append(Ru),this.scene.add(this.videoAgentMesh),this.run()}}}function VideoAgent(_u){var Ou;const $u=react$1.exports.useRef(null),Bu=useController(),Ru=react$1.exports.useMemo(()=>{var Fu;return((Fu=Bu.avatar)==null?void 0:Fu.url)&&Bu.avatar.force===!0},[Bu.avatar]),Lu=react$1.exports.useMemo(()=>{var Fu;return Ru?!1:((Fu=Bu.videoAgentScene)==null?void 0:Fu.videoAgentMesh.mediaInstance)instanceof HTMLVideoElement},[Bu.videoAgentScene,Ru]);return react$1.exports.useEffect(()=>{if(!$u.current)throw new Error("React \u6E32\u67D3\u5F02\u5E38\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5 ...");if(Bu.videoAgentScene){console.warn('VideoAgentScene" \u91CD\u590D\u521D\u59CB\u5316\uFF0C\u5DF2\u88AB\u8FC7\u6EE4');return}const Fu=new VideoAgentScene($u.current,_u.options);return Bu.videoAgentScene=Fu,()=>{var Nu;Bu.dispose(),(Nu=Bu.videoAgentScene)==null||Nu.dispose()}},[]),jsxs(Fragment,{children:[jsx("div",{className:"Avatar",style:{display:Ru?"block":"none"},children:jsx("div",{className:"Avatar-wrapper ratio-1-1",children:jsx("img",{className:"Avatar-img",src:(Ou=Bu.avatar)==null?void 0:Ou.url,onClick:()=>{var Fu;return(Fu=_u.onClick)==null?void 0:Fu.call(_u)}})})}),jsx("div",{className:classNames("VideoAgent",{hide:!Lu}),children:jsx("div",{className:"VideoAgent-container",children:jsx("div",{className:"VideoAgent-wrapper ratio-16-9",children:jsx("div",{className:"VideoAgent-inner",ref:$u,children:jsx("div",{className:"VideoAgent-play",onClick:()=>{var Fu;return(Fu=_u.onClick)==null?void 0:Fu.call(_u)}})})})})})]})}function BgMusic(){const _u=useController(),$u=react$1.exports.useRef(null),Bu=react$1.exports.useCallback(()=>{$u.current&&(clearTimeout($u.current),$u.current=null)},[]);return react$1.exports.useEffect(()=>{const Ru=new Audio;Ru.setAttribute("id","vreo-singleton-bgmusic"),Ru.style.display="none",Ru.setAttribute("playsinline","true"),Ru.loop=!0,document.body.append(Ru);const Lu=Ou=>{const{start:Fu,end:Nu}=Ou,{url:Vu}=Ou.data;Ru.src=Vu;const Uu=()=>{Ru.play()};Ru.addEventListener("canplaythrough",Uu),Bu();const Gu=()=>{Ru.pause(),Ru.currentTime=0,Ru.src="",Bu(),Ru.removeEventListener("canplaythrough",Uu)},zu=Nu-Fu||5e3;$u.current=setTimeout(()=>{Gu()},zu),_u.once("paused",()=>{Gu()})};return _u.on(VreoKeyframeEnum.BgMusic,Lu),()=>{_u.off(VreoKeyframeEnum.BgMusic,Lu),document.body.removeChild(Ru),Bu()}}),jsx(Fragment,{})}const prefix="https://vr-public.realsee-cdn.cn/release/static/image/release/",WAVES={single:{width:766,height:60,frames:20,hevc:"vapor/static/wave-single.140d197f4838c130b69e87dfd0705479.mov",vp9:"vapor/static/wave-single.eda65de390a830193fff40d1f1255555.webm",png:"vapor/static/wave-single.f51aade2a6e1c59211698a1a24e6135f.png"},double:{width:766,height:60,frames:16,hevc:"vapor/static/wave-double.3e6d73050ee6958cc3060b107ebe5f39.mov",vp9:"/vapor/static/wave-double.77dfe8548ebcb3f3d336785d4fe9c7b2.webm",png:"/vapor/static/wave-double.ab4fe7d8a70395109ca4f759af7bd53f.png"},solid:{width:1126,height:90,frames:48,hevc:"vapor/static/wave-solid.cf68912a93275d07aa6b5097ea11fdda.mov",vp9:"vapor/static/wave-solid.64438b63cbb346906d066bb7b8dc3e20.webm",png:"vapor/static/wave-solid.6969d7f3f2f44f7ac1ade30e65660cb1.png"},swap:{width:2250,height:180,frames:41,hevc:"vapor/static/wave-swap.b38f22e2cf84ee21e9be35f7f56c9cfc.mov",vp9:"vapor/static/wave-swap.c02e4b94cf05aecf6e7a0023bc7bb90f.webm",png:"vapor/static/wave-swap.772ba526a7210dcc01567062c6319545.png"},expand:{width:2250,height:180,frames:45,hevc:"vapor/static/wave-expand.9529956c5954740cd4c9d07d51e32822.mov",vp9:"vapor/static/wave-expand.a0d2a0074001cd3d4fea56818c6d3c38.webm",png:"vapor/static/wave-expand.62fcf27b445533e6eb1b17bab5eafa0d.png"}},userAgent=typeof navigator!="undefined"?navigator.userAgent:"",isAppleDevice=/(iPhone|iPad|iPod)/i.test(userAgent),isSafari=/safari/i.test(userAgent)&&!/chrome/i.test(userAgent)&&/version/i.test(userAgent),isMicroMessenger=/microMessenger/i.test(userAgent),canPlayHevc=isAppleDevice||isSafari,canPlayVp9=typeof MediaSource!="undefined"&&MediaSource.isTypeSupported("video/webm; codecs=vp9");function Wave(_u){const $u=React.useMemo(()=>{var Ou;const Lu=(Ou=_u==null?void 0:_u.appearance)!=null?Ou:"solid";return WAVES[Lu]},[_u==null?void 0:_u.appearance]),Bu=React.useMemo(()=>$u.height/$u.width,[$u]);let Ru=null;return isMicroMessenger?Ru=jsx(KeyframeWaveContent,{wave:$u}):canPlayHevc?Ru=jsx(VideoWaveContent,{format:"hevc",wave:$u}):canPlayVp9?Ru=jsx(VideoWaveContent,{format:"vp9",wave:$u}):Ru=jsx(KeyframeWaveContent,{wave:$u}),jsx("div",{className:"vreo-wave",children:jsx("div",{style:{position:"relative",width:"100%",paddingTop:`${Bu*100}%`},children:jsx("div",{style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},children:Ru})})})}const VideoWaveContent=({wave:_u,format:$u})=>{const Bu=react$1.exports.useRef(null),[Ru,Lu]=react$1.exports.useState(!1),[Ou,Fu]=react$1.exports.useState(!1),Nu=prefix+_u[$u];react$1.exports.useEffect(()=>{Lu(!1)},[Nu]);const Vu=react$1.exports.useCallback(()=>{Bu.current&&Bu.current.play(),Lu(!0)},[]),Uu=react$1.exports.useCallback(()=>{Fu(!0)},[]);return Ou?jsx(KeyframeWaveContent,{wave:_u}):jsx("video",{style:{opacity:Ru?1:0},preload:"auto",ref:Bu,width:"100%",height:"100%",playsInline:!0,autoPlay:!0,onCanPlay:Vu,onError:Uu,muted:!0,loop:!0,src:Nu})},KeyframeWaveContent=({wave:_u})=>{const $u=prefix+_u.png;return jsx("div",{style:{width:"100%",height:"100%",backgroundImage:`url(${$u})`,backgroundSize:"100%",animationName:"vreo-wave-keyframes",animationTimingFunction:`steps(${_u.frames-1})`,animationDuration:`${_u.frames/25}s`,animationIterationCount:"infinite"}})},AppView=observer(({controller:_u})=>{var $u,Bu;return jsx("div",{className:classNames("vreo-panel",{"vreo-panel--hidden":!_u.visible}),children:jsxs("div",{className:"vreo-panel-inner",children:[_u.waveAppearance&&jsx(Wave,{appearance:_u.waveAppearance}),jsx(VideoAgent,{onClick:()=>{_u.playing?_u.setPlaying(!1):_u.setPlaying(!0)},options:(($u=_u.configs)==null?void 0:$u.videoAgentMeshOptions)||{}}),jsx(Prompter,{}),(Bu=_u.configs)==null?void 0:Bu.customPanelChildren]})})});function App(){const _u=useController();return jsxs(Fragment,{children:[jsxs(Fragment,{children:[jsx(ResizeObserver$1,{}),jsx(CameraMovement,{}),jsx(ModelVideo,{}),jsx(UpdateVRPanorama,{}),jsx(VideoEffect,{}),jsx(PanoTag,{}),jsx(PanoTextLabel,{}),jsx(InfoPanel,{}),jsx(PanoEffect,{}),jsx(BgMusic,{})]}),jsx(AppView,{controller:_u})]})}const DrawerView=observer(({controller:_u})=>{var Ru;const $u="400px",Bu=(()=>{var Ou;const Lu=(Ou=_u.drawerConfig)==null?void 0:Ou.height;return Lu?typeof Lu=="number"?Lu+"px":Lu:"max-content"})();return jsx("div",{className:classNames("vreo-drawer",{"vreo-drawer-visible":_u.drawerConfig&&_u.drawerConfig.content}),onClick:()=>_u.openDrawer(!1),children:jsx("div",{className:"vreo-drawer-inner",style:{height:Bu,maxHeight:$u},children:((Ru=_u.drawerConfig)==null?void 0:Ru.content)||""})})});function Drawer(){const _u=useController();return jsx(DrawerView,{controller:_u})}const PopUpView=observer(({controller:_u})=>jsx("div",{className:classNames("vreo-PopUp",{"vreo-PopUp-visible":_u.popUp}),onClick:()=>_u.openPopUp(!1),children:jsx("div",{className:"vreo-PopUp-inner",children:_u.popUp||""})}));function PopUp(){const _u=useController();return jsx(PopUpView,{controller:_u})}class Player extends Subscribe{constructor(Bu,Ru={}){var Lu;super();xm(this,"$five");xm(this,"controller");xm(this,"configs");if(this.$five=Bu,Ru.container||(Ru.container=Ru.containter),!Ru.container){const Ou=document.getElementById("vreo-app")||document.createElement("div");reactDom.exports.unmountComponentAtNode(Ou),Ou.setAttribute("id","vreo-app"),Ru.container=Ou;const Fu=(Lu=Bu.getElement())==null?void 0:Lu.parentNode;Fu?Fu.append(Ou):document.body.append(Ou)}Ru.container.classList.contains("vreo-app")||Ru.container.classList.add("vreo-app"),this.configs=Object.freeze(Object.assign({keyframeMap:{}},Ru)),this.controller=new Controller({five:Bu,container:Ru.container,configs:this.configs}),reactDom.exports.render(jsxs(ControllerContext.Provider,{value:this.controller,children:[jsx(App,{}),jsx(Drawer,{}),jsx(PopUp,{}),this.configs.customKeyframes&&this.configs.customKeyframes.map((Ou,Fu)=>jsx(Ou,{subscribe:{on:(Nu,Vu)=>this.on(Nu,Vu),once:(Nu,Vu)=>this.once(Nu,Vu),off:(Nu,Vu)=>this.off(Nu,Vu)},five:Bu},Fu))]}),Ru.container),reaction(()=>this.controller.ended,Ou=>{Ou&&this.emit("paused",!0)}),reaction(()=>this.controller.playing,Ou=>{this.controller.ended||this.emit(Ou?"playing":"paused")})}async load(Bu,Ru=0,Lu=!1,Ou=!1){var Fu,Nu,Vu,Uu;if(this.controller.setLoading(!0),Ou&&(Bu=JSON.parse(JSON.stringify(Bu))),this.controller.visible||(this.controller.setVisible(!0),await new Promise(Gu=>{setTimeout(()=>Gu(!0),500)})),this.controller.stopInterval&&(this.controller.stopInterval(),this.controller.stopInterval=void 0),this.controller.vreoUnit=Bu,(Fu=this.controller.mediaInstance)==null||Fu.pause(),this.$five.imageOptions.size&&((Nu=this.configs.imageOptions)==null?void 0:Nu.size)&&this.$five.imageOptions.size>this.configs.imageOptions.size&&(this.$five.imageOptions.size=this.configs.imageOptions.size),Lu||Lu===void 0&&this.configs.autoPreload){const Gu=Bu.keyframes.filter(Hu=>!(Hu.type!==VreoKeyframeEnum.CameraMovement||Hu.data.panoIndex===void 0)).reduce((Hu,ju)=>{const Qu=ju.data.panoIndex;return Hu[Qu]||(Hu[Qu]=!0),Hu},{}),zu=Object.keys(Gu);for(let Hu=0;Hu<zu.length;Hu++)await this.$five.preloadPano(Number(zu[Hu]))}return this.emit("loaded",Bu),this.controller.emit("loaded",Bu),(Vu=this.controller.videoAgentScene)!=null&&Vu.videoAgentMesh.mediaInstance&&(this.controller.videoAgentScene.videoAgentMesh.mediaInstance.currentTime=Ru/1e3),this.controller.setAvatar(Bu.video.avatar),await((Uu=this.controller.videoAgentScene)==null?void 0:Uu.videoAgentMesh.play(Bu.video.url,Ru/1e3,Bu.video.duration)),this.controller.setEnded(!1),this.play(),this.controller.run((Gu,zu)=>this.emit(Gu,zu)),this.controller.setLoading(!1),!0}get paused(){return!this.controller.playing}play(Bu){return this.controller.playing||(Bu&&this.controller.mediaInstance&&(this.controller.mediaInstance.currentTime=Bu/1e3),Object.assign(window,{$vreoController:this.controller}),this.controller.setPlaying(!0)),!0}setAppearance(Bu){this.controller.setAppearance(Bu)}pause(){this.controller.setPlaying(!1)}show(){this.controller.setVisible(!0)}hide(){this.controller.setVisible(!1)}getCurrentTime(){return this.controller.currentTime}dispose(){this.pause(),this.controller.dispose(),this.configs.container&&reactDom.exports.unmountComponentAtNode(this.configs.container)}}console.log(`
3978
3978
 
3979
3979
  \u250F\u2501\u2501\u2501\u2513\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u250F\u2513\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
3980
3980
  \u2503\u250F\u2501\u2513\u2503\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2503\u2503\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501
@@ -1 +1 @@
1
- import{c,R as l,j as e,r,a as o,p as d,e as i}from"./default.d3519aaf.js";import{w as p}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as u}from"./index.46a22509.js";import{V as m,A as v}from"./AppReact.e28c26ea.js";const f={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},x=c(f);function g(){const[t,n]=r.exports.useState(!1),a=t?o(x,{initialWork:d(p),ref:s=>Object.assign(window,{$five:s==null?void 0:s.five}),children:[e(u,{}),e(m,{children:e(v,{})})]}):e(i,{});return o(i,{children:[e("button",{style:{position:"absolute",zIndex:1e6,top:"36px",left:"36px"},onClick:()=>n(!t),children:t?"\u9500\u6BC1":"\u521B\u5EFA"}),a]})}l.render(e(r.exports.StrictMode,{children:e(g,{})}),document.getElementById("root"));
1
+ import{c,R as l,j as e,r,a as o,p as d,e as i}from"./default.1c2d6361.js";import{w as p}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as u}from"./index.faf3d8b7.js";import{V as m,A as v}from"./AppReact.9cb4b8b4.js";const f={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},x=c(f);function g(){const[t,n]=r.exports.useState(!1),a=t?o(x,{initialWork:d(p),ref:s=>Object.assign(window,{$five:s==null?void 0:s.five}),children:[e(u,{}),e(m,{children:e(v,{})})]}):e(i,{});return o(i,{children:[e("button",{style:{position:"absolute",zIndex:1e6,top:"36px",left:"36px"},onClick:()=>n(!t),children:t?"\u9500\u6BC1":"\u521B\u5EFA"}),a]})}l.render(e(r.exports.StrictMode,{children:e(g,{})}),document.getElementById("root"));
@@ -1,4 +1,4 @@
1
- import{r as o,j as r,F as m,u as p,P as _,V as f,a as c,c as b,p as y,f as h}from"./default.d3519aaf.js";function x(){const[e,l]=o.exports.useState({width:0,height:0}),t=o.exports.useRef(null);return o.exports.useEffect(()=>{if(!t.current)return;l({width:window.innerWidth,height:window.innerHeight});const n=({width:d,height:a})=>l({width:d,height:a}),u=new ResizeObserver(d=>{const a=d[0],i=a.target.clientWidth,s=a.target.clientHeight;n({width:i,height:s})});return u.observe(t.current),()=>{t.current&&u.unobserve(t.current),u.disconnect()}},[]),r("div",{className:"ResponsiveFiveCanvas",ref:t,style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,opacity:e.width===0||e.height===0?0:1},children:r(m,{width:e.width,height:e.height})})}const g={_signature:"RxzX9G4X3qL+vRMST3YBSHkxz1pNHsPHF222xo6fTygjT7QZRjy8aaD/YuCaZ6B/0tHGjpOTXwp7Xj0ginPOb+xUI4D+2QTbL5vNtWuamnaW0Ko1KMFmF9MWNY+80AAubmR9+SXp6hhNsmrQGdF83ZJiRz0q+c44DgrGD9bm3h0=",allow_hosts:["*"],animation_file_url:"",animation_picture_url:"",basic_code:"EpGyBg4xy3b1q3nK",business_id:"0",certificate:`-----BEGIN CERTIFICATE-----
1
+ import{r as o,j as r,F as m,u as p,P as _,V as f,a as c,c as b,p as y,f as h}from"./default.1c2d6361.js";function x(){const[e,l]=o.exports.useState({width:0,height:0}),t=o.exports.useRef(null);return o.exports.useEffect(()=>{if(!t.current)return;l({width:window.innerWidth,height:window.innerHeight});const n=({width:d,height:a})=>l({width:d,height:a}),u=new ResizeObserver(d=>{const a=d[0],i=a.target.clientWidth,s=a.target.clientHeight;n({width:i,height:s})});return u.observe(t.current),()=>{t.current&&u.unobserve(t.current),u.disconnect()}},[]),r("div",{className:"ResponsiveFiveCanvas",ref:t,style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,opacity:e.width===0||e.height===0?0:1},children:r(m,{width:e.width,height:e.height})})}const g={_signature:"RxzX9G4X3qL+vRMST3YBSHkxz1pNHsPHF222xo6fTygjT7QZRjy8aaD/YuCaZ6B/0tHGjpOTXwp7Xj0ginPOb+xUI4D+2QTbL5vNtWuamnaW0Ko1KMFmF9MWNY+80AAubmR9+SXp6hhNsmrQGdF83ZJiRz0q+c44DgrGD9bm3h0=",allow_hosts:["*"],animation_file_url:"",animation_picture_url:"",basic_code:"EpGyBg4xy3b1q3nK",business_id:"0",certificate:`-----BEGIN CERTIFICATE-----
2
2
  MIIEMzCCAhsCCQDYAS/7ATZRmTANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMC
3
3
  Q04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0JlaWppbmcxFDASBgNVBAoM
4
4
  C2xpYW5qaWEuY29tMRAwDgYDVQQLDAdSZWFsc2VlMREwDwYDVQQDDAhIYXJkd2Fy
@@ -1 +1 @@
1
- import{r as o,j as r,F as c}from"./default.d3519aaf.js";const d=(t,i=1e3/60)=>{let e=null;const n=t;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},i)}};function a(){const[t,i]=o.exports.useState({width:document.body.clientWidth,height:document.body.clientHeight});return o.exports.useEffect(()=>{const e=d(()=>i({width:document.body.clientWidth,height:document.body.clientHeight}));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),r(c,{width:t.width,height:t.height})}export{a as R};
1
+ import{r as o,j as r,F as c}from"./default.1c2d6361.js";const d=(t,i=1e3/60)=>{let e=null;const n=t;return(...s)=>{e&&clearTimeout(e),e=setTimeout(()=>{n==null||n(...s),e&&clearTimeout(e),e=null},i)}};function a(){const[t,i]=o.exports.useState({width:document.body.clientWidth,height:document.body.clientHeight});return o.exports.useEffect(()=>{const e=d(()=>i({width:document.body.clientWidth,height:document.body.clientHeight}));return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),r(c,{width:t.width,height:t.height})}export{a as R};
@@ -0,0 +1 @@
1
+ import{r,u as c,P as C,j as a,c as p,R as f,a as l,p as y}from"./default.1c2d6361.js";import{w as m}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as x}from"./index.faf3d8b7.js";const b={categoryId:"091996ef-978f-4a61-509f-951e70d7b15d",categoryText:"",configure:[],frontRequestId:"091996ef-978f-4a61-509f-951e70d7b15d",index:0,keyframes:[{data:{text:"\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",type:"Text"},end:2548,start:1045,type:"Prompter",uuid:"154eaf8a-a703-40f5-0221-9763393e0ca7"},{data:{text:"\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",type:"Text"},end:4151,start:2648,type:"Prompter",uuid:"41ab9e6b-fd03-4d64-738d-c60d9a1c6fbb"},{data:{text:"\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",type:"Text"},end:5754,start:4251,type:"Prompter",uuid:"2c1a4394-80a6-41ea-c70a-e81a95d4d7ff"},{data:{text:"\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",type:"Text"},end:7357,start:5854,type:"Prompter",uuid:"03a285c8-1fa6-49b2-a646-716080c2f50b"}],video:{duration:7806,end:7806,start:0,type:"Video",url:"https://vrlab-public.ljcdn.com/vrframework/release/audio_merged/GuoGLvA3/aitalk_text/merged.mp4",uuid:"7ee858c5-894f-4ced-c7fa-f4ae3bb76fc3"}};function v(){const e=r.exports.useRef(),o=c(),[u,s]=r.exports.useState("notReady");return r.exports.useEffect(()=>{if(e.current)return;const t=new C(o);e.current=t,s("ready"),t.on("paused",()=>s("paused")),t.on("playing",()=>s("playing")),Object.assign(window,{$player:t})},[]),a("div",{className:"btns",children:a("button",{onClick:async()=>{var t,n,d,i;u==="ready"&&((t=e.current)==null||t.show(),await((n=e.current)==null?void 0:n.load(b))),u!=="playing"?(d=e.current)==null||d.play():(i=e.current)==null||i.pause()},disabled:u==="notReady",children:u!=="playing"?"\u64AD\u653E":"\u6682\u505C"})})}const g={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},w=p(g);f.render(a(r.exports.StrictMode,{children:l(w,{initialWork:y(m),ref:e=>Object.assign(window,{$five:e==null?void 0:e.five}),children:[a(x,{}),a(v,{})]})}),document.getElementById("root"));
@@ -1,4 +1,4 @@
1
- import{r as f,a as u,j as c,C as E,V as A,R as S,t as z,b as l,d as B,c as q,p as M}from"./default.d3519aaf.js";import{R}from"./index.46a22509.js";import{V as N,A as Q}from"./AppReact.e28c26ea.js";const P={_signature:"FHtoUKA5slbYyf1sQkPtEhQEkWqu4eYAr/DQVCXi8WCP6U6MZ1LNaHFogorFDzsV7EXsFweVOzf7CL5AY/ckfyaBXdFzPWEpdG6/ycsZcdO8tOVHb+vtn90BZHtNRkoxxv/J2yjqZOdy0cb9Zyj0Ux54JeBNVennWFhf69cd6+w=",allow_hosts:["*"],base_url:"https://vrlab-public.ljcdn.com/release/auto3dhd/c6756c0c2ee42b76c8a958ef5ee7abc4/",certificate:`-----BEGIN CERTIFICATE-----
1
+ import{r as f,a as u,j as c,C as E,V as A,R as S,t as z,b as l,d as B,c as q,p as M}from"./default.1c2d6361.js";import{R}from"./index.faf3d8b7.js";import{V as N,A as Q}from"./AppReact.9cb4b8b4.js";const P={_signature:"FHtoUKA5slbYyf1sQkPtEhQEkWqu4eYAr/DQVCXi8WCP6U6MZ1LNaHFogorFDzsV7EXsFweVOzf7CL5AY/ckfyaBXdFzPWEpdG6/ycsZcdO8tOVHb+vtn90BZHtNRkoxxv/J2yjqZOdy0cb9Zyj0Ux54JeBNVennWFhf69cd6+w=",allow_hosts:["*"],base_url:"https://vrlab-public.ljcdn.com/release/auto3dhd/c6756c0c2ee42b76c8a958ef5ee7abc4/",certificate:`-----BEGIN CERTIFICATE-----
2
2
  MIIEMzCCAhsCCQDYAS/7ATZRmTANBgkqhkiG9w0BAQsFADCBkzELMAkGA1UEBhMC
3
3
  Q04xEDAOBgNVBAgMB0JlaWppbmcxEDAOBgNVBAcMB0JlaWppbmcxFDASBgNVBAoM
4
4
  C2xpYW5qaWEuY29tMRAwDgYDVQQLDAdSZWFsc2VlMREwDwYDVQQDDAhIYXJkd2Fy
@@ -5,8 +5,8 @@
5
5
  <link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>@realsee/vreo - Player -- DEBUG --</title>
8
- <script type="module" crossorigin src="./assets/examples.abe8af2e.js"></script>
9
- <link rel="modulepreload" href="./assets/default.d3519aaf.js">
8
+ <script type="module" crossorigin src="./assets/examples.b66fa73b.js"></script>
9
+ <link rel="modulepreload" href="./assets/default.1c2d6361.js">
10
10
  <link rel="stylesheet" href="./assets/default.17872c62.css">
11
11
  <link rel="stylesheet" href="./assets/examples.dac4a6fe.css">
12
12
  </head>
@@ -5,11 +5,11 @@
5
5
  <link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>@realsee/vreo - Player -- DEBUG --</title>
8
- <script type="module" crossorigin src="./assets/dynamic.8128cfc1.js"></script>
9
- <link rel="modulepreload" href="./assets/default.d3519aaf.js">
8
+ <script type="module" crossorigin src="./assets/dynamic.2875538a.js"></script>
9
+ <link rel="modulepreload" href="./assets/default.1c2d6361.js">
10
10
  <link rel="modulepreload" href="./assets/znRoyv06SZQeqA7m.0057e8ae.js">
11
- <link rel="modulepreload" href="./assets/index.46a22509.js">
12
- <link rel="modulepreload" href="./assets/AppReact.e28c26ea.js">
11
+ <link rel="modulepreload" href="./assets/index.faf3d8b7.js">
12
+ <link rel="modulepreload" href="./assets/AppReact.9cb4b8b4.js">
13
13
  <link rel="stylesheet" href="./assets/default.17872c62.css">
14
14
  <link rel="stylesheet" href="./assets/index.9331038f.css">
15
15
  </head>
@@ -5,10 +5,10 @@
5
5
  <link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>@realsee/vreo - Player -- DEBUG --</title>
8
- <script type="module" crossorigin src="./assets/react.3cefbcef.js"></script>
9
- <link rel="modulepreload" href="./assets/default.d3519aaf.js">
10
- <link rel="modulepreload" href="./assets/index.46a22509.js">
11
- <link rel="modulepreload" href="./assets/AppReact.e28c26ea.js">
8
+ <script type="module" crossorigin src="./assets/react.40ad4b7f.js"></script>
9
+ <link rel="modulepreload" href="./assets/default.1c2d6361.js">
10
+ <link rel="modulepreload" href="./assets/index.faf3d8b7.js">
11
+ <link rel="modulepreload" href="./assets/AppReact.9cb4b8b4.js">
12
12
  <link rel="stylesheet" href="./assets/default.17872c62.css">
13
13
  <link rel="stylesheet" href="./assets/index.9331038f.css">
14
14
  <link rel="stylesheet" href="./assets/react.2ee8565f.css">
@@ -5,10 +5,10 @@
5
5
  <link href="//realsee.com/favicon.ico" type="image/x-icon" rel="icon" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>@realsee/vreo - Player -- DEBUG --</title>
8
- <script type="module" crossorigin src="./assets/main.12cb9ce9.js"></script>
9
- <link rel="modulepreload" href="./assets/default.d3519aaf.js">
8
+ <script type="module" crossorigin src="./assets/main.bc830a33.js"></script>
9
+ <link rel="modulepreload" href="./assets/default.1c2d6361.js">
10
10
  <link rel="modulepreload" href="./assets/znRoyv06SZQeqA7m.0057e8ae.js">
11
- <link rel="modulepreload" href="./assets/index.46a22509.js">
11
+ <link rel="modulepreload" href="./assets/index.faf3d8b7.js">
12
12
  <link rel="stylesheet" href="./assets/default.17872c62.css">
13
13
  <link rel="stylesheet" href="./assets/index.9331038f.css">
14
14
  </head>
@@ -72,6 +72,7 @@ var Controller = /*#__PURE__*/function (_Subscribe) {
72
72
  playing: _mobx.observable,
73
73
  setPlaying: _mobx.action,
74
74
  loading: _mobx.observable,
75
+ videoAgentScene: _mobx.observable.ref,
75
76
  setLoading: _mobx.action,
76
77
  popUp: _mobx.observable.ref,
77
78
  openPopUp: _mobx.action,
@@ -24,7 +24,7 @@ function VideoAgent(props) {
24
24
  var _controller$videoAgen;
25
25
  if (showAvatar) return false;
26
26
  return ((_controller$videoAgen = controller.videoAgentScene) === null || _controller$videoAgen === void 0 ? void 0 : _controller$videoAgen.videoAgentMesh.mediaInstance) instanceof HTMLVideoElement;
27
- }, [controller.videoAgentScene]);
27
+ }, [controller.videoAgentScene, showAvatar]);
28
28
  React.useEffect(function () {
29
29
  if (!ref.current) throw new Error('React 渲染异常,请稍后重试 ...');
30
30
  if (controller.videoAgentScene) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realsee/vreo",
3
- "version": "1.0.0-alpha.14",
3
+ "version": "1.0.0-alpha.16",
4
4
  "description": "Vreo (VR Video 缩写) 是基于如视三维渲染引擎 Five 和 用户界面构建库 React 实现的如视 3D 空间剧本播放器。",
5
5
  "keywords": [
6
6
  "realsee",
@@ -110,6 +110,7 @@ export class Controller extends Subscribe<VreoKeyframeEvent> {
110
110
  playing: observable,
111
111
  setPlaying: action,
112
112
  loading: observable,
113
+ videoAgentScene: observable.ref,
113
114
  setLoading: action,
114
115
  popUp: observable.ref,
115
116
  openPopUp: action,
@@ -15,7 +15,7 @@ export function VideoAgent(props: { onClick?: () => void; options?: VideoAgentMe
15
15
  const showVideoAgent = React.useMemo(() => {
16
16
  if (showAvatar) return false
17
17
  return controller.videoAgentScene?.videoAgentMesh.mediaInstance instanceof HTMLVideoElement
18
- }, [controller.videoAgentScene])
18
+ }, [controller.videoAgentScene, showAvatar])
19
19
 
20
20
  React.useEffect(() => {
21
21
  if (!ref.current) throw new Error('React 渲染异常,请稍后重试 ...')
@@ -1 +0,0 @@
1
- import{r as d,u as p,P as n,j as u,c as l,R as b,a as i,p as F}from"./default.d3519aaf.js";import{w as m}from"./znRoyv06SZQeqA7m.0057e8ae.js";import{R as C}from"./index.46a22509.js";const y={categoryId:"b35b2980-9394-42a4-8ccb-0d2d4c8634fa",categoryText:"b4aff456-9a94-46c8-6e15-13cfa540aed8",frontRequestId:"ffc05d41-e588-48dc-adb7-d20d350ea1b4",index:0,video:{duration:80525,start:0,end:106278,url:"//test-vr-public.realsee-cdn.com/vrframework/test/audio_merged/psHKdM20/aitalk_text/merged.mp4"},keyframes:[{uuid:"daf3e3a8-7b48-4df3-eec5-bdc2a1a1c1ba",type:"Prompter",start:0,end:3e3,parsed:!1,data:{text:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u6167\u5BB6\u5EAD\u8BBE\u8BA1\u5E08"}},{uuid:"daf3e3a8-7b48-4df3-eec5-bdc2a1a1c123",type:"BgMusic",start:2e3,end:46e3,parsed:!1,data:{url:"//vrlab-static.ljcdn.com/release/web/see_you_again.cacdbda9.mp3"}},{uuid:"cbd4326c-3cb1-411e-348a-55a6fa42d6d0",type:"PanoEffect",start:3578,end:25939,parsed:!1,data:{twoVertexs:[{x:-3.216338116298317,y:1.221307932920801,z:-3.991326093673706},{x:-3.178751302976147,y:.09148991767376025,z:-3.991326093673706}],effect:"Distance"}},{uuid:"f8c115dc-eaba-41c3-bf17-913cff2ae90b",type:"PanoTag",start:5529,end:6939,parsed:!1,data:{text:"\u53EF\u7231\u7684\u5C0F\u732B\u732B",vertex:{x:-4.772462449445111,y:1.0707936469281911,z:-3.672135203740606},type:"Image",imgUrl:"//vrlab-public.ljcdn.com/release/seesay/tools/cat_run___92807913661bbb40d0bb9a801b582a07.gif"}},{uuid:"e3a3d9fe-9ae7-43e0-f0e2-bedd35aa2d19",type:"Prompter",start:3600,end:8700,parsed:!1,data:{text:"\u7F8E\u7684\u667A\u6167\u5BB6\u5EAD\u5168\u573A\u666F\u89E3\u51B3\u65B9\u6848\uFF0C\u6D1E\u6089\u751F\u6D3B\u672C\u8D28\uFF0C\u7528\u79D1\u6280\u670D\u52A1\u751F\u6D3B\u672C\u6E90"}},{uuid:"8c2a55a1-ebf7-443a-0eaa-7d2dd6b9efd6",type:"Prompter",start:9300,end:12e3,parsed:!1,data:{text:"\u5448\u73B0\u9AD8\u79D1\u6280\u548C\u6781\u81F4\u8BBE\u8BA1\u4E3A\u751F\u6D3B\u5E26\u6765\u7684\u4FBF\u5229"}},{uuid:"ceb7327a-d0e3-4bad-4faa-0a1e4f83205c",type:"Prompter",start:12600,end:15600,parsed:!1,data:{text:"\u4EE5\u53CA\u751F\u6D3B\u54C1\u8D28\u7684\u5927\u5E45\u63D0\u5347\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u611F\u53D7\u4E00\u4E0B"}},{uuid:"6f7b3c65-bd87-4b24-91eb-e3182568308b",type:"Prompter",start:16200,end:19e3,parsed:!1,data:{text:"\u901A\u8FC7\u5C0F\u7F8E\u97F3\u7BB1\u53EF\u4EE5\u5B9E\u73B0\u5168\u5C4B\u667A\u80FD\u5BB6\u7535\u7684\u4E92\u8054\u4E92\u901A"}},{uuid:"d326d9e5-56fc-4f69-7b62-72a412745cb7",type:"Prompter",start:19600,end:21700,parsed:!1,data:{text:"\u56DE\u5230\u5BB6\u53EA\u8981\u8BF4\uFF1A\u201C\u5C0F\u7F8E\u5C0F\u7F8E\uFF0C\u89C2\u5F71\u6A21\u5F0F\u201D"}},{uuid:"19cc80e6-e03e-4457-deac-f6cfd17fc06f",type:"Prompter",start:22300,end:24900,parsed:!1,data:{text:"\u5168\u5C4B\u667A\u6167\u4E92\u8054\uFF0C\u4E3A\u60A8\u6253\u9020\u8212\u9002\u89C2\u5F71\u73AF\u5883"}},{uuid:"c05c2d60-23d9-4abc-d7e2-b7623bd80956",type:"Prompter",start:25500,end:28e3,parsed:!1,data:{text:"\u5168\u5C4B\u7A7A\u95F4\u5300\u6E29\uFF0C\u7F14\u9020\u8212\u9002\u4F53\u611F\u4EAB\u53D7"}},{uuid:"50144979-4e3c-4b78-6a71-9515ecd280a1",type:"Prompter",start:33600,end:37e3,parsed:!1,data:{text:"\u7279\u9009\u5BB6\u7535\u5339\u914D\u73B0\u4EE3\u7B80\u7EA6\u98CE\u683C\uFF0C\u5BB6\u5C45\u5BB6\u7535\u5916\u89C2\u9020\u578B\u9AD8\u5EA6\u878D\u5408"}},{uuid:"b1c378c1-50c1-44a1-aa7b-bc2001def7b3",type:"Prompter",start:41600,end:45600,parsed:!1,data:{text:"\u6E29\u6696\u5165\u7720\u96F6\u7B49\u5F85\u3002\u6574\u5C4B\u6DF1\u6D77\u7EA7\u9759\u97F3\uFF0C\u8212\u4EAB\u4E00\u591C\u597D\u7720"}},{uuid:"df7925cd-330e-4cf4-e035-87b0324e4d63",type:"Prompter",start:46200,end:49e3,parsed:!1,data:{text:"\u8D77\u5E8A\u573A\u666F\uFF0C\u81EA\u52A8\u6253\u5F00\u7A97\u5E18\u5F00\u542F\u6E05\u65B0\u97F3\u4E50"}},{uuid:"0cdda1c1-81f2-4694-ee42-a6bfc6df5b8f",type:"Prompter",start:49600,end:51600,parsed:!1,data:{text:"\u7A7A\u8C03\u8C03\u81F3\u8212\u9002\u7684\u6E29\u5EA6\uFF0C\u8D77\u5E8A\u96F6\u62D6\u5EF6"}},{uuid:"9daadd10-eb97-4a22-a0d1-d977ead082bd",type:"Prompter",start:56200,end:61e3,parsed:!1,data:{text:"\u4E00\u4F53\u5316\u7F8E\u5B66\u8170\u7EBF\u5904\u7406\u53CA\u7CBE\u5DE7\u5168\u7A7A\u95F4\u5BB6\u7535\u5D4C\u5165\uFF0C\u4FDD\u8BC1\u4E86\u6574\u5C4B\u88C5\u4FEE\u98CE\u683C\u7684\u7EDF\u4E00"}},{uuid:"d03322d9-f6e1-422d-673d-fe1fc888278e",type:"Prompter",start:61700,end:64e3,parsed:!1,data:{text:"\u7F8E\u7684\u8D85\u8584\u51B0\u7BB1\u3001\u91C7\u7528\u94C2\u91D1\u51C0\u5473\u4FDD\u9C9C\u6280\u672F"}},{uuid:"f81853fd-dae9-463f-41b0-35c1de6ee702",type:"Prompter",start:64777,end:69e3,parsed:!1,data:{text:"\u6297\u83CC\u7387\u8FBE99.9%\uFF0C\u6709\u6548\u5438\u9644\u5206\u89E3\u5F02\u5473\u5206\u5B50\uFF0C\u4FDD\u6301\u98DF\u6750\u65B0\u9C9C"}},{uuid:"48a1b5ed-f647-4d31-ff40-1a0f81c274b0",type:"Prompter",start:69700,end:73e3,parsed:!1,data:{text:"\u7F8E\u7684\u65B0\u9759\u5438\u62BD\u6CB9\u70DF\u673A\uFF0C\u98CE\u91CF\u6863\u4F4D\u968F\u70DF\u91CF\u81EA\u52A8\u8C03\u8282"}},{uuid:"7b43e6ee-9791-48b1-26f9-8caf33687a8c",type:"Prompter",start:73600,end:76e3,parsed:!1,data:{text:"\u9694\u7A7A\u6325\u624B\u5373\u53EF\u63A7\u5236\uFF0C\u65E0\u89E6\u63A7\u4E0D\u810F\u624B"}},{uuid:"6672b87c-797f-4b14-104d-7c0d3a9e1879",type:"Prompter",start:28700,end:33e3,parsed:!1,data:{text:"\u7535\u5F71\u770B\u56F0\u4E86\uFF0C\u8D70\u8FDB\u667A\u6167\u5367\u5BA4\uFF0C\u79C1\u4EAB\u606C\u9759\u7761\u610F"}},{uuid:"78f73012-2e53-4269-813e-e046d43180d9",type:"Prompter",start:52300,end:55600,parsed:!1,data:{text:"\u8D77\u5E8A\u540E\u6765\u5230\u7F8E\u7684\u667A\u6167\u53A8\u623F\uFF0C\u8F7B\u677E\u70F9\u996A\u5065\u5EB7\u65E9\u9910"}},{uuid:"a40dba5c-b4b4-410e-c89a-3733ded1decd",type:"CameraMovement",start:0,end:1783,parsed:!1,data:{effect:"Move",panoIndex:9,fov:110,mode:"Panorama",latitude:.003545632869,longitude:1.596554310922}},{uuid:"022d2eef-a2cd-4f48-acc5-243f9636c87e",type:"CameraMovement",start:2e3,end:7e3,parsed:!1,data:{effect:"Rotate",panoIndex:9,fov:110,mode:"Panorama",latitude:-.005783443945,longitude:.001986790616,rotateSpeed:.3,rotation:"Anticlockwise"}},{uuid:"98840a8c-95d8-4b33-8ff8-b972ccdb2fa5",type:"CameraMovement",start:14e3,end:16e3,parsed:!1,data:{effect:"Move",panoIndex:4,fov:110,mode:"Panorama",latitude:.01279953686,longitude:1.481968212275}},{uuid:"d878d2e6-9033-43b3-2160-80ee65a9eaa4",type:"CameraMovement",start:7400,end:13e3,parsed:!1,data:{effect:"Rotate",panoIndex:9,fov:110,mode:"Panorama",latitude:.003545632869,longitude:1.596554310922,rotateSpeed:.3,rotation:"Clockwise"}},{uuid:"76dd30ba-bd32-4387-67d8-8f62dfb5a7c7",type:"CameraMovement",start:17e3,end:22e3,parsed:!1,data:{effect:"Rotate",panoIndex:4,fov:90,mode:"Panorama",latitude:-.001081319126,longitude:2.883934666873,rotateSpeed:.5,rotation:"Clockwise"}},{uuid:"7db5e6d9-dba4-4742-fcff-38548300d222",type:"CameraMovement",start:32e3,end:34e3,parsed:!1,data:{effect:"Move",panoIndex:20,fov:90,mode:"Panorama",latitude:-.0028996846174637837,longitude:4.1821793934248355}},{uuid:"eeb70285-768c-4c6c-55f0-2de9fbe9a0a0",type:"CameraMovement",start:29e3,end:31e3,parsed:!1,data:{effect:"Move",panoIndex:19,fov:110,mode:"Panorama",latitude:-.0010813191259999994,longitude:4.7734504595473375}},{uuid:"a035ce2a-c732-4e06-2b6b-bc7f9fb88797",type:"CameraMovement",start:35e3,end:37e3,parsed:!1,data:{effect:"Move",panoIndex:14,fov:120,mode:"Panorama",latitude:.132597652022,longitude:4.870161936629}},{uuid:"17544c49-b40c-4a18-6068-d4e2e74d019f",type:"CameraMovement",start:52e3,end:53e3,parsed:!1,data:{effect:"Move",panoIndex:19,fov:110,mode:"Panorama",latitude:.0009172796201269253,longitude:6.215670431783156}},{uuid:"5f337390-322a-4656-0460-afe45982f989",type:"CameraMovement",start:54e3,end:55e3,parsed:!1,data:{effect:"Move",panoIndex:16,fov:110,mode:"Panorama",latitude:.0009172796201269253,longitude:6.215670431783156}},{uuid:"08db63c4-8288-41f1-dfbc-4a087eb0e486",type:"CameraMovement",start:56e3,end:57e3,parsed:!1,data:{effect:"Move",panoIndex:5,fov:110,mode:"Panorama",latitude:.011827472568909628,longitude:6.272039762018533}},{uuid:"76bfd9cf-aa4e-4179-fa7c-1be191683228",type:"CameraMovement",start:58800,end:61e3,parsed:!1,data:{effect:"Move",panoIndex:7,fov:80,mode:"Panorama",latitude:.013645838060373412,longitude:6.277908413120661}},{uuid:"eb7b3d3e-5f13-423d-8270-c4bfa4201d0b",type:"PanoTextLabel",start:71200,end:73200,parsed:!1,data:{text:"\u6863\u4F4D\u968F\u70DF\u91CF\u81EA\u52A8\u8C03\u8282",vertex:{x:-2.1652547611365116,y:1.612348936240625,z:-8.787925732476422},fontSize:14}},{uuid:"ec1b66fe-0b48-430a-c6d1-b5970885cd34",type:"UpdateVRPanorama",start:37469,end:46195,parsed:!1,data:{panoIndex:14,images:{up:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap9___36a831948bf8a1705122a8b75aecacc4.jpg",down:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap10___56dd2628134f33cd5102d0e882e2431d.jpg",right:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap7___4f08084162a33243bd069cc04b4717eb.jpg",left:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap8___a0d19f17435aa1f31658346acf202b2e.jpg",front:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap11___429e0df4244b7190e36fcc6e9fbf8414.jpg",back:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap12___05a12cbae902743fcaa505902acf7094.jpg"}}},{uuid:"1a92470f-8eb5-40aa-ddd7-c33bd0bd841a",type:"PanoTextLabel",start:22800,end:24800,parsed:!1,data:{text:"\u706F\u5149\u5DF2\u8C03\u8282",vertex:{x:-4.230046948477636,y:1.5154534444653844,z:-3.5916669368743896},fontSize:14}},{uuid:"b1ca0927-75c0-41fb-d7a7-77aaea13d435",type:"PanoTextLabel",start:25500,end:27500,parsed:!1,data:{text:"\u7A7A\u8C03\u6E29\u5EA6\u5DF2\u8C03\u8282",vertex:{x:-4.230046948477636,y:1.5154534444653844,z:-3.5916669368743896},fontSize:14}},{uuid:"ebf79b47-e7c9-48c8-923d-f1483fce8d67",type:"UpdateVRPanorama",start:46196,end:52e3,parsed:!1,data:{panoIndex:20,images:{up:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap15___6ab62d0f9e672597cbe58647d85d120a.jpg",down:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap16___5fc5a8d2ff8cb3111d63f25cfb9b27ff.jpg",right:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap13___3907c2c4417563b3b8c130fe9bcf4973.jpg",left:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap14___059ed372d61a26c51cdd6348f07baae8.jpg",front:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap17___61e6afb979b83d7888fa673af26625c2.jpg",back:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap18___143ce681e3e1c0b52f4d7ada97887bc6.jpg"}}},{uuid:"5ae5b05d-5172-4c72-2fe3-26c822e119d8",type:"UpdateVRPanorama",start:22331,end:28900,parsed:!1,data:{panoIndex:4,images:{up:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap3___4b407c2f34857065428a15394704578d.jpg",down:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap4___86e5d953a476094225c98e93d152fe7a.jpg",right:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap1___5d3c3f22e4988f354ba83edbcbe11f6b.jpg",left:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap2___8acdd1a2fc0460d3e67516ac32af311a.jpg",front:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap5___aa3a713cfe6d156815ce143c357b07b9.jpg",back:"http://vrlab-public.ljcdn.com/release/seesay/tools/CubeMap6___998755605fdc1afc940e91fa4cabc36b.jpg"}}},{uuid:"2f99ad34-0d5e-4ed9-f286-195ce90e6b7f",type:"CameraMovement",start:46200,end:47500,parsed:!1,data:{effect:"Move",panoIndex:20,fov:120,mode:"Panorama",latitude:.003753258008,longitude:4.033658317237}},{uuid:"f2904b1e-8590-4c1f-e676-e1f33133a9e3",type:"ModelVideo",start:22334.342321,end:28701,parsed:!1,data:{videoSrc:"http://vrlab-public.ljcdn.com/release/seesay/tools/202111221236___22e90ccb4cd839e38406dbbfdda92579.mp4",videoPosterSrc:"http://vrlab-public.ljcdn.com/release/seesay/tools/202111224.38.24___279089c2c3bf1bc42242f88c9e208813.png",vertexs:[{x:-4.000341101858312,y:1.4611518808707942,z:-3.6759935617232737},{x:-4.000492478074704,y:.736729814259069,z:-3.677603254910159},{x:-5.276990668782288,y:.7373509227063392,z:-3.6805491317687413},{x:-5.269476230459038,y:1.458844022600584,z:-3.6841883988044657}]}},{uuid:"75fe9b26-1c5e-4cd4-7893-196f3b457b48",type:"CameraMovement",start:71500,end:72500,parsed:!1,data:{effect:"Move",panoIndex:24,fov:85,mode:"Panorama",latitude:0,longitude:0}},{uuid:"22b0b5a3-58fb-4e1e-8eb8-5cd960a4777f",type:"CameraMovement",start:69600,end:70600,parsed:!1,data:{effect:"Move",panoIndex:24,fov:110,mode:"Panorama",latitude:-.0018581203405278045,longitude:.003942653601488821}},{uuid:"a75de2c9-7b1b-43d5-5fe4-132525ef8d35",type:"VideoEffect",start:73e3,end:76e3,parsed:!1,data:{videoSrc:"http://vrlab-public.ljcdn.com/release/seesay/tools/6afb013618c9ced1c1d4e0d193cad1ac___8079c0fbf8986560d02b145dcc8e8797.mov",panoIndex:24,direction:{x:0,y:0,z:-1},fov:85}},{uuid:"ff0ec7f3-06da-43ca-d0f1-f47c8d5a5745",type:"VideoEffect",start:62e3,end:67e3,parsed:!1,data:{videoSrc:"http://vrlab-public.ljcdn.com/release/seesay/tools/fridge6snew___7feaf5b4b3ff7622ee5c398e66d0b3dc.mp4",panoIndex:7,direction:{x:0,y:0,z:-1},fov:80}},{uuid:"95a47712-705b-4ecb-2665-8a5a0160e022",type:"Prompter",start:37800,end:41e3,parsed:!1,data:{text:"\u89E6\u53D1\u7761\u7720\u573A\u666F\uFF0C\u81EA\u52A8\u8C03\u51FA\u52A9\u7720\u706F\u5149\uFF0C\u5E76\u6253\u5F00\u7A7A\u8C03"}},{uuid:"637e0312-552b-498b-c5a4-6b902cc872fc",type:"Prompter",start:76700,end:80525,parsed:!1,data:{text:"\u5E0C\u671B\u60A8\u559C\u6B22\u8FD9\u5957\u7F8E\u7684\u667A\u6167\u5BB6\u5EAD\u89E3\u51B3\u65B9\u6848\uFF0C\u518D\u89C1"}}]};function E(){const e=d.exports.useRef(),f=p(),[t,s]=d.exports.useState("notReady");return d.exports.useEffect(()=>{if(e.current)return;const a=new n(f);e.current=a,s("ready"),a.on("paused",()=>s("paused")),a.on("playing",()=>s("playing")),Object.assign(window,{$player:a})},[]),u("div",{className:"btns",children:u("button",{onClick:async()=>{var a,r,c,o;t==="ready"&&((a=e.current)==null||a.show(),await((r=e.current)==null?void 0:r.load(y))),t!=="playing"?(c=e.current)==null||c.play():(o=e.current)==null||o.pause()},disabled:t==="notReady",children:t!=="playing"?"\u64AD\u653E":"\u6682\u505C"})})}const v={imageOptions:{size:1024},textureOptions:{size:64},onlyRenderIfNeeds:!0,antialias:!1,model:{},plugins:[]},B=l(v);b.render(u(d.exports.StrictMode,{children:i(B,{initialWork:F(m),ref:e=>Object.assign(window,{$five:e==null?void 0:e.five}),children:[u(C,{}),u(E,{})]})}),document.getElementById("root"));