@besovideo/webrtc-player 0.2.8 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/main.browser.css +1 -1
  2. package/dist/main.browser.js +10 -10
  3. package/dist/main.es.css +1 -1
  4. package/dist/main.es.js +10 -10
  5. package/dist/types/app.d.ts +2 -4
  6. package/dist/types/components/bvWebrtc/index.d.ts +2 -0
  7. package/dist/types/components/puPlayer.d.ts +1 -1
  8. package/dist/types/components/types.d.ts +2 -0
  9. package/dist/types/core/customElement.d.ts +4 -0
  10. package/dist/types/core/dom.d.ts +22 -0
  11. package/dist/types/core/events.d.ts +21 -8
  12. package/dist/types/core/field.d.ts +4 -0
  13. package/dist/types/core/index.d.ts +20 -3
  14. package/dist/types/core/jsx.d.ts +8 -0
  15. package/dist/types/core/style.d.ts +10 -0
  16. package/dist/types/core/types.d.ts +7 -1
  17. package/dist/types/index.d.ts +1 -1
  18. package/dist/types/instances/bvWebrtc.d.ts +8 -2
  19. package/dist/types/instances/common.d.ts +7 -1
  20. package/dist/types/main.d.ts +1 -1
  21. package/dist/types/plugins/controller/button.d.ts +13 -0
  22. package/dist/types/plugins/controller/event.d.ts +13 -0
  23. package/dist/types/plugins/controller/index.d.ts +22 -0
  24. package/dist/types/plugins/decorators.d.ts +2 -0
  25. package/dist/types/plugins/mixins/visible.d.ts +13 -0
  26. package/dist/types/plugins/modal.d.ts +33 -0
  27. package/dist/types/plugins/player/event.d.ts +18 -0
  28. package/dist/types/plugins/player/index.d.ts +25 -7
  29. package/dist/types/plugins/player/infoList.d.ts +14 -0
  30. package/dist/types/plugins/player/panel.d.ts +15 -0
  31. package/dist/types/plugins/player/reducers/types.d.ts +36 -0
  32. package/dist/types/plugins/types.d.ts +16 -23
  33. package/dist/types/plugins/video.d.ts +12 -2
  34. package/dist/types/templates/button.d.ts +8 -0
  35. package/dist/types/templates/icons.d.ts +18 -0
  36. package/dist/types/templates/type.d.ts +0 -0
  37. package/dist/types/utils/dev.d.ts +4 -0
  38. package/dist/types/utils/lang.d.ts +11 -0
  39. package/dist/types/utils/logger.d.ts +2 -0
  40. package/dist/types/utils/util.d.ts +2 -2
  41. package/dist/types/z_test/puPlayer.d.ts +1 -1
  42. package/dist/types/z_unuse/index.d.ts +5 -0
  43. package/package.json +68 -58
  44. package/dist/types/core/classes.d.ts +0 -2
@@ -1 +1 @@
1
- .bvplayer-core-player{position:relative;height:100%;width:100%;background-color:#000}.bvplayer-core-player .bvplayer-core-spinner{z-index:1}.bvplayer-core-player .bvplayer-core-mask{z-index:2}.bvplayer-core-video{position:absolute;display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-core-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-core-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB2aWV3Qm94PSIwIDAgMjQgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgICAgICAgPHJlY3QgeD0iMCIgeT0iNy42NDE2IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNC43MTY4IiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMHMiIGR1cj0iMC42cyINCiAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD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0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-core-spinner>span svg{height:100%}.bvplayer-core-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}html,body{margin:0}*,*:after,*:before{box-sizing:border-box}#root{height:400px;width:600px}
1
+ .bvplayer-common-flex-space{display:inline-block;flex:1}.bvplayer-icon{display:inline-block;height:22px;width:100%;vertical-align:middle}.bvplayer-icon svg{height:100%;width:100%}.bvplayer-modal{position:absolute;top:0;left:0;padding:12px 16px;font-size:14px;border:1px solid #2b303b;border-radius:3px;background:rgba(22,27,29,.8);color:#e8e8fd;box-shadow:0 0 20px -6px #000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow:hidden;visibility:hidden;opacity:0;transform:scale(0);will-change:transform,opacity;transition:all .3s cubic-bezier(.785,.135,.15,.86)}.bvplayer-modal.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:scale(1)}.bvplayer-modal--center{top:50%;left:50%;margin:auto;transform:translate(-50%,-50%) scale(0)}.bvplayer-modal--center.bvplayer-common-is-visible{transform:translate(-50%,-50%)}.bvplayer-modal_title-bar{display:flex;justify-content:space-between;margin-bottom:8px;font-size:16px}.bvplayer-modal_title-bar_close{cursor:pointer}.bvplayer-modal_body{padding:8px;overflow:hidden;overflow-y:auto}.bvplayer-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-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SIxNiIgeT0iNy4zNTg0IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNS4yODMyIiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMC4zcyIgZHVyPSIwLjZzIg0KICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImhlaWdodCIgYXR0cmlidXRlVHlwZT0iWE1MIiB2YWx1ZXM9IjEwOyAyMDsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-spinner>span svg{height:100%}.bvplayer-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}.bvplayer-controller{position:absolute;bottom:0;left:0;right:0;width:100%;height:98px;color:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;opacity:0;transform:translateY(100%);will-change:visibility,opacity,transform;transition:all .3s cubic-bezier(.455,.03,.515,.955)}.bvplayer-controller.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:translateY(0)}.bvplayer-controller_mask{position:absolute;bottom:0;height:100%;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom}.bvplayer-controller_inner{position:absolute;bottom:0;left:0;right:0;width:100%;height:41px;padding:0 20px;display:flex;align-items:stretch;justify-content:space-between}.bvplayer-controller_inner_bar{display:block}.bvplayer-controller_inner_left{cursor:default}.bvplayer-controller_inner_right{cursor:default}.bvplayer-controller_button{cursor:pointer;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:100%;border:none;outline:none;padding:0;background:none;color:inherit}.bvplayer-controller_button:not(:last-child){margin-right:8px}.bvplayer-controller_button>*{transition:all .2s ease-in-out;opacity:.8}.bvplayer-controller_button:hover>*{opacity:1}.bvplayer-video{display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-player{position:relative;height:100%;width:100%;background-color:#000;overflow:hidden}.bvplayer-player_info-modal{width:60%;height:70%}.bvplayer-player_info-modal_section{margin-bottom:16px}.bvplayer-player_info-modal_section_title{display:inline-block;font-weight:bold;font-size:12px;margin-bottom:8px}.bvplayer-player_info-modal_list{color:#e8e8fdd9;font-size:12px}.bvplayer-player_info-modal_list_item:not(:last-child){margin-bottom:8px}.bvplayer-player_info-modal_list_item_label{display:inline-block;width:90px;margin-right:14px;text-indent:-99em;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.bvplayer-player_info-modal_list_item_value{margin-right:8px;white-space:normal;word-break:break-all}
@@ -1,26 +1,26 @@
1
- var bv_webrtc_player=(()=>{var fe=Object.defineProperty,Qe=Object.defineProperties;var Ze=Object.getOwnPropertyDescriptors;var he=Object.getOwnPropertySymbols;var Ye=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable;var be=(t,e,r)=>e in t?fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,S=(t,e)=>{for(var r in e||(e={}))Ye.call(e,r)&&be(t,r,e[r]);if(he)for(var r of he(e))et.call(e,r)&&be(t,r,e[r]);return t},V=(t,e)=>Qe(t,Ze(e));var tt=(t,e)=>{for(var r in e)fe(t,r,{get:e[r],enumerable:!0})};var l=(t,e,r)=>new Promise((o,i)=>{var s=y=>{try{f(r.next(y))}catch(I){i(I)}},c=y=>{try{f(r.throw(y))}catch(I){i(I)}},f=y=>y.done?o(y.value):Promise.resolve(y.value).then(s,c);f((r=r.apply(t,e)).next())});var Us={};tt(Us,{Conference:()=>Xe,Intercom:()=>Ke,PuPlayer:()=>ze,RemoteSdpFetcher:()=>G,clearAllDialog:()=>$s});var nt="C:\\ProgramData",rt="C:\\Users\\Administrator\\AppData\\Roaming",ot="False",it="C:\\ProgramData\\chocolatey",st="132633801270330519",at="\\\\.\\pipe\\crashpad_7796_AWQEYAIORKYSWPWD",lt="truecolor",ct="C:\\Program Files\\Common Files",dt="C:\\Program Files (x86)\\Common Files",pt="C:\\Program Files\\Common Files",ut="DESKTOP-0PI1EL3",mt="C:\\Windows\\system32\\cmd.exe",gt="C:\\Windows\\System32\\Drivers\\DriverData",ft="C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\gbash",ht="Internet Explorer",bt="Default",yt="d:\\software\\Microsoft VS Code Insiders\\resources\\app\\extensions\\git\\dist\\askpass.sh",vt="C:\\ProgramData\\scoop\\apps\\git\\current",It="C:\\Users\\Administrator\\go",Pt="C:\\Users\\Administrator\\scoop\\apps\\go\\current",Ct="C:\\Users\\Administrator",xt="C:",Et="\\Users\\Administrator",wt="C:\\dev\\bvwebclient\\packages\\components\\player-core",Ft="D:\\software\\IntelliJ IDEA 2021.1.1\\bin;",_t="zh_CN.UTF-8",Rt="C:\\Users\\Administrator\\AppData\\Local",St="\\\\DESKTOP-0PI1EL3",Ot="",Tt="1",kt="CONOUT$",Dt="CONOUT$",Lt="",Mt="MINGW64",Wt="haha",At="D:\\software\\node\\node.exe",Vt="production",Bt="",Nt="",Ht="",jt="",$t='{"remain":[],"cooked":["run","build"],"original":["run","build"]}',Ut="true",Gt="low",qt="legacy",zt="",Jt="true",Kt="",Xt="",Qt="C:\\Users\\Administrator\\AppData\\Roaming\\npm-cache",Zt="10",Yt="60000",en="10000",tn="Infinity",nn="10",rn="",on="",sn="",an="true",ln="true",cn="Infinity",dn="true",pn="",un="",mn="notepad.exe",gn="",fn="2",hn="10",bn="60000",yn="10000",vn="",In="true",Pn="true",Cn="git",xn="true",En="",wn="C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmrc",Fn="C:\\Users\\Administrator\\AppData\\Roaming\\npm\\etc\\npmignore",_n="",Rn="",Sn="",On="npm",Tn="",kn="",Dn="",Ln="",Mn="",Wn="Shirtiny",An="",Vn="ISC",Bn="C:\\Users\\Administrator\\.npm-init.js",Nn="1.0.0",Hn="",jn="",$n="",Un="",Gn="",qn="notice",zn="10",Jn="",Kn="50",Xn="%s",Qn="https://registry.npmjs.org/",Zn="D:\\software\\node\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js",Yn="",er="14.16.1",tr="",nr="",rr="",or="",ir="true",sr="",ar="true",lr="",cr="",dr="",pr="",ur="C:\\Users\\Administrator\\AppData\\Roaming\\npm",mr="",gr="",fr="true",hr="",br="",yr="true",vr="https://registry.npmjs.org/",Ir="true",Pr="true",Cr="",xr="",Er="",wr="",Fr="^",_r="",Rr="",Sr="warn-only",Or="",Tr="",kr="20",Dr="",Lr="900",Mr="",Wr="C:\\Windows\\system32\\cmd.exe",Ar="true",Vr="",Br="",Nr="500",Hr="oauth",jr="true",$r="latest",Ur="v",Gr="",qr="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",zr="0000",Jr="",Kr="true",Xr="true",Qr="",Zr="",Yr="C:\\Users\\Administrator\\.npmrc",eo="npm/6.14.12 node/v14.16.1 win32 x64",to="",no="",ro="browser",oo="D:\\software\\node\\node_modules\\npm\\bin\\npm-cli.js",io="build",so="npm run clean && dotenv -c production node .node/builder.js",ao="D:\\software\\node\\node.exe",lo="^2.1.8",co="@besovideo/webrtc-player desc",po="^10.2.6",uo="^4.1.1",mo="^4.0.0",go="0.12.5",fo="^1.4.8",ho="^7.28.0",bo="^8.3.0",yo="^3.4.0",vo="^27.2.2",Io="^8.2.0",Po="^8.3.5",Co="^6.7.0",xo="^2.3.0",Eo="^0.3.3",wo="^27.0.5",Fo="10.0.0",_o="^4.3.3",Ro="^4.27.0",So="^4.27.0",Oo="26.0.23",To="15.6.1",ko="./dist/main.es.css",Do="./dist/main.es.js",Lo="dist",Mo="ts-jest",Wo="bvwebclient",Ao="besovideo",Vo="./dist/main.es.js",Bo="./dist/main.es.js",No="@besovideo/webrtc-player",Ho="README.md",jo="npm run clean && dotenv -c production node .node/builder.js",$o="shx rm -rf dist",Uo="eslint --max-warnings 0 . --ext .ts",Go="dotenv -c development node .node/server.js",qo="jest",zo="ts-node",Jo="./dist/types/main.d.ts",Ko="0.2.8",Xo="4",Qo="C:\\Users\\Administrator\\OneDrive",Zo="C:\\Users\\Administrator\\OneDrive",Yo="undefined",ei="Windows_NT",ti="D:\\software\\node\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\dev\\bvwebclient\\packages\\components\\player-core\\node_modules\\.bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\mingw64\\bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\usr\\bin;C:\\Users\\Administrator\\bin;C:\\Users\\Administrator\\scoop\\apps\\go\\current\\bin;C:\\ProgramData\\scoop\\shims;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;D:\\software\\node;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\Administrator\\go\\bin;C:\\Users\\Administrator\\scoop\\shims;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Bandizip;C:\\Users\\Administrator\\AppData\\Roaming\\npm;D:\\software\\Microsoft VS Code Insiders\\bin;D:\\software\\IntelliJ IDEA 2021.1.1\\bin;C:\\Users\\Administrator\\.dotnet\\tools;C:\\ProgramData\\scoop\\apps\\git\\current\\gbash;C:\\Users\\Administrator\\scoop\\apps\\python\\current\\Scripts;D:\\software\\hyper\\resources\\bin",ni="D:\\software\\node\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;C:\\dev\\bvwebclient\\packages\\components\\player-core\\node_modules\\.bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\mingw64\\bin;C:\\ProgramData\\scoop\\apps\\git\\2.31.1.windows.1\\usr\\bin;C:\\Users\\Administrator\\bin;C:\\Users\\Administrator\\scoop\\apps\\go\\current\\bin;C:\\ProgramData\\scoop\\shims;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Windows\\System32\\OpenSSH;D:\\software\\node;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet;C:\\Program Files\\TortoiseGit\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Users\\Administrator\\go\\bin;C:\\Users\\Administrator\\scoop\\shims;C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\Bandizip;C:\\Users\\Administrator\\AppData\\Roaming\\npm;D:\\software\\Microsoft VS Code Insiders\\bin;D:\\software\\IntelliJ IDEA 2021.1.1\\bin;C:\\Users\\Administrator\\.dotnet\\tools;C:\\ProgramData\\scoop\\apps\\git\\current\\gbash;C:\\Users\\Administrator\\scoop\\apps\\python\\current\\Scripts;D:\\software\\hyper\\resources\\bin",ri=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",oi="ssh",ii=" [master \u21911 +4 ~47 -0 !]",si="AMD64",ai="Intel64 Family 6 Model 158 Stepping 11, GenuineIntel",li="6",ci="9e0b",di="C:\\ProgramData",pi="C:\\Program Files",ui="C:\\Program Files (x86)",mi="C:\\Program Files",gi="$P$G",fi="C:\\Users\\Administrator\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",hi="C:\\Users\\Public",bi="C:/dev/bvwebclient/packages/components/player-core",yi="Console",vi="3",Ii="bvplayer-core-",Pi="@besovideo/webrtc-player",Ci="0.2.8",xi="bvplayerCore",Ei="C:",wi="C:\\Windows",Fi="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",_i="xterm-256color",Ri="vscode",Si="1.61.0-insider",Oi="C:\\Users\\ADMINI~1\\AppData\\Local\\Temp",Ti="DESKTOP-0PI1EL3",ki="DESKTOP-0PI1EL3",Di="Administrator",Li="C:\\Users\\Administrator",Mi="d:\\software\\Microsoft VS Code Insiders\\resources\\app\\extensions\\git\\dist\\askpass-main.js",Wi="D:\\software\\Microsoft VS Code Insiders\\Code - Insiders.exe",Ai="\\\\.\\pipe\\vscode-git-eee3851946-sock",Vi="C:\\Windows",Bi="1",Ni="D:/software/node/node.exe",p={ALLUSERSPROFILE:nt,APPDATA:rt,AZ_ENABLED:ot,ChocolateyInstall:it,ChocolateyLastPathUpdate:st,CHROME_CRASHPAD_PIPE_NAME:at,COLORTERM:lt,COMMONPROGRAMFILES:ct,"CommonProgramFiles(x86)":dt,CommonProgramW6432:pt,COMPUTERNAME:ut,COMSPEC:mt,DriverData:gt,EXEPATH:ft,FPS_BROWSER_APP_PROFILE_STRING:ht,FPS_BROWSER_USER_PROFILE_STRING:bt,GIT_ASKPASS:yt,GIT_INSTALL_ROOT:vt,GOPATH:It,GOROOT:Pt,HOME:Ct,HOMEDRIVE:xt,HOMEPATH:Et,INIT_CWD:wt,"IntelliJ IDEA":Ft,LANG:_t,LOCALAPPDATA:Rt,LOGONSERVER:St,MAKEFLAGS:Ot,MAKELEVEL:Tt,MAKE_TERMERR:kt,MAKE_TERMOUT:Dt,MFLAGS:Lt,MSYSTEM:Mt,MY_ENV:Wt,NODE:At,NODE_ENV:Vt,npm_config_access:Bt,npm_config_allow_same_version:Nt,npm_config_also:Ht,npm_config_always_auth:jt,npm_config_argv:$t,npm_config_audit:Ut,npm_config_audit_level:Gt,npm_config_auth_type:qt,npm_config_before:zt,npm_config_bin_links:Jt,npm_config_browser:Kt,npm_config_ca:Xt,npm_config_cache:Qt,npm_config_cache_lock_retries:Zt,npm_config_cache_lock_stale:Yt,npm_config_cache_lock_wait:en,npm_config_cache_max:tn,npm_config_cache_min:nn,npm_config_cafile:rn,npm_config_cert:on,npm_config_cidr:sn,npm_config_color:an,npm_config_commit_hooks:ln,npm_config_depth:cn,npm_config_description:dn,npm_config_dev:pn,npm_config_dry_run:un,npm_config_editor:mn,npm_config_engine_strict:gn,npm_config_fetch_retries:fn,npm_config_fetch_retry_factor:hn,npm_config_fetch_retry_maxtimeout:bn,npm_config_fetch_retry_mintimeout:yn,npm_config_force:vn,npm_config_format_package_lock:In,npm_config_fund:Pn,npm_config_git:Cn,npm_config_git_tag_version:xn,npm_config_global:En,npm_config_globalconfig:wn,npm_config_globalignorefile:Fn,npm_config_global_style:_n,npm_config_group:Rn,npm_config_ham_it_up:Sn,npm_config_heading:On,npm_config_https_proxy:Tn,npm_config_if_present:kn,npm_config_ignore_prepublish:Dn,npm_config_ignore_scripts:Ln,npm_config_init_author_email:Mn,npm_config_init_author_name:Wn,npm_config_init_author_url:An,npm_config_init_license:Vn,npm_config_init_module:Bn,npm_config_init_version:Nn,npm_config_json:Hn,npm_config_key:jn,npm_config_legacy_bundling:$n,npm_config_link:Un,npm_config_local_address:Gn,npm_config_loglevel:qn,npm_config_logs_max:zn,npm_config_long:Jn,npm_config_maxsockets:Kn,npm_config_message:Xn,npm_config_metrics_registry:Qn,npm_config_node_gyp:Zn,npm_config_node_options:Yn,npm_config_node_version:er,npm_config_noproxy:tr,npm_config_offline:nr,npm_config_onload_script:rr,npm_config_only:or,npm_config_optional:ir,npm_config_otp:sr,npm_config_package_lock:ar,npm_config_package_lock_only:lr,npm_config_parseable:cr,npm_config_prefer_offline:dr,npm_config_prefer_online:pr,npm_config_prefix:ur,npm_config_preid:mr,npm_config_production:gr,npm_config_progress:fr,npm_config_proxy:hr,npm_config_read_only:br,npm_config_rebuild_bundle:yr,npm_config_registry:vr,npm_config_rollback:Ir,npm_config_save:Pr,npm_config_save_bundle:Cr,npm_config_save_dev:xr,npm_config_save_exact:Er,npm_config_save_optional:wr,npm_config_save_prefix:Fr,npm_config_save_prod:_r,npm_config_scope:Rr,npm_config_scripts_prepend_node_path:Sr,npm_config_script_shell:Or,npm_config_searchexclude:Tr,npm_config_searchlimit:kr,npm_config_searchopts:Dr,npm_config_searchstaleness:Lr,npm_config_send_metrics:Mr,npm_config_shell:Wr,npm_config_shrinkwrap:Ar,npm_config_sign_git_commit:Vr,npm_config_sign_git_tag:Br,npm_config_sso_poll_frequency:Nr,npm_config_sso_type:Hr,npm_config_strict_ssl:jr,npm_config_tag:$r,npm_config_tag_version_prefix:Ur,npm_config_timing:Gr,npm_config_tmp:qr,npm_config_umask:zr,npm_config_unicode:Jr,npm_config_unsafe_perm:Kr,npm_config_update_notifier:Xr,npm_config_usage:Qr,npm_config_user:Zr,npm_config_userconfig:Yr,npm_config_user_agent:eo,npm_config_version:to,npm_config_versions:no,npm_config_viewer:ro,npm_execpath:oo,npm_lifecycle_event:io,npm_lifecycle_script:so,npm_node_execpath:ao,npm_package_dependencies__shirtiny_logger:lo,npm_package_description:co,npm_package_devDependencies_autoprefixer:po,npm_package_devDependencies_chalk:uo,npm_package_devDependencies_dotenv_cli:mo,npm_package_devDependencies_esbuild:go,npm_package_devDependencies_esbuild_sass_plugin:fo,npm_package_devDependencies_eslint:ho,npm_package_devDependencies_eslint_config_prettier:bo,npm_package_devDependencies_eslint_plugin_prettier:yo,npm_package_devDependencies_jest:vo,npm_package_devDependencies_open:Io,npm_package_devDependencies_postcss:Po,npm_package_devDependencies_postcss_preset_env:Co,npm_package_devDependencies_prettier:xo,npm_package_devDependencies_shx:Eo,npm_package_devDependencies_ts_jest:wo,npm_package_devDependencies_ts_node:Fo,npm_package_devDependencies_typescript:_o,npm_package_devDependencies__typescript_eslint_eslint_plugin:Ro,npm_package_devDependencies__typescript_eslint_parser:So,npm_package_devDependencies__types_jest:Oo,npm_package_devDependencies__types_node:To,npm_package_exports___dist_main_es_css:ko,npm_package_exports___import:Do,npm_package_files_0:Lo,npm_package_jest_preset:Mo,npm_package_keywords_0:Wo,npm_package_keywords_1:Ao,npm_package_main:Vo,npm_package_module:Bo,npm_package_name:No,npm_package_readmeFilename:Ho,npm_package_scripts_build:jo,npm_package_scripts_clean:$o,npm_package_scripts_lint:Uo,npm_package_scripts_start:Go,npm_package_scripts_test:qo,npm_package_scripts_ts_node:zo,npm_package_types:Jo,npm_package_version:Ko,NUMBER_OF_PROCESSORS:Xo,OneDrive:Qo,OneDriveConsumer:Zo,ORIGINAL_XDG_CURRENT_DESKTOP:Yo,OS:ei,Path:ti,PATH:ni,PATHEXT:ri,PLINK_PROTOCOL:oi,POSH_GIT_STATUS:ii,PROCESSOR_ARCHITECTURE:si,PROCESSOR_IDENTIFIER:ai,PROCESSOR_LEVEL:li,PROCESSOR_REVISION:ci,ProgramData:di,PROGRAMFILES:pi,"ProgramFiles(x86)":ui,ProgramW6432:mi,PROMPT:gi,PSModulePath:fi,PUBLIC:hi,PWD:bi,SESSIONNAME:yi,SHLVL:vi,SH_CSS_CLASS_PREFIX:Ii,SH_LIB_NAME:Pi,SH_LIB_VERSION:Ci,SH_STORAGE_FIELD_PREFIX:xi,SYSTEMDRIVE:Ei,SYSTEMROOT:wi,TEMP:Fi,TERM:_i,TERM_PROGRAM:Ri,TERM_PROGRAM_VERSION:Si,TMP:Oi,USERDOMAIN:Ti,USERDOMAIN_ROAMINGPROFILE:ki,USERNAME:Di,USERPROFILE:Li,VSCODE_GIT_ASKPASS_MAIN:Mi,VSCODE_GIT_ASKPASS_NODE:Wi,VSCODE_GIT_IPC_HANDLE:Ai,WINDIR:Vi,ZES_ENABLE_SYSMAN:Bi,_:Ni};var oe=t=>{let e;return t?e=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):e=Date.now(),Math.floor(e/1e3)},ye=t=>{let e=typeof t=="number"?t:oe(t),r=oe();return e-r},Hi=t=>ye(t)>0,ji={getUTCSecond:oe,pastNow:ye,compare:Hi},ie=ji;var $i=Object.defineProperty,Ui=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,zi=Object.prototype.propertyIsEnumerable,Ie=(t,e,r)=>e in t?$i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,H=(t,e)=>{for(var r in e||(e={}))qi.call(e,r)&&Ie(t,r,e[r]);if(ve)for(var r of ve(e))zi.call(e,r)&&Ie(t,r,e[r]);return t},Ji=(t,e)=>Ui(t,Gi(e)),w;(function(t){t.red="#e72528",t.blue="#2a79af",t.weakBlue="#6eb6f4",t.geekblue="#85a5ff",t.gold="#ffd666",t.orange="#ffa940",t.cyan="#13c2c2",t.green="#52c41a",t.volcano="#fa541c",t.lime="#389e0d",t.pink="#eb2f96",t.purple="#722ed1",t.darkPurple="#292F4C",t.gray="#8c8c8c"})(w||(w={}));var Pe=class{constructor(){this.colors=w,this.shapes={slider:new Ce}}},Ce=class{constructor(){}title(t=""){return j`
1
+ var bvPlayerCore=(()=>{var je=Object.defineProperty,Jt=Object.defineProperties;var Gt=Object.getOwnPropertyDescriptors;var et=Object.getOwnPropertySymbols;var Xt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var tt=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,k=(t,e)=>{for(var n in e||(e={}))Xt.call(e,n)&&tt(t,n,e[n]);if(et)for(var n of et(e))qt.call(e,n)&&tt(t,n,e[n]);return t},z=(t,e)=>Jt(t,Gt(e));var Qt=(t,e)=>{for(var n in e)je(t,n,{get:e[n],enumerable:!0})};var u=(t,e,n)=>new Promise((o,i)=>{var s=l=>{try{g(n.next(l))}catch(f){i(f)}},c=l=>{try{g(n.throw(l))}catch(f){i(f)}},g=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,c);g((n=n.apply(t,e)).next())});var Yo={};Qt(Yo,{Conference:()=>Kt,Intercom:()=>Ut,PuPlayer:()=>$t,RemoteSdpFetcher:()=>ne,clearAllDialog:()=>Zo});var Zt="production",Yt="@besovideo/webrtc-player",jt="0.3.2",d={NODE_ENV:Zt,SH_LIB_NAME:Yt,SH_LIB_VERSION:jt};var en=Object.defineProperty,tn=Object.defineProperties,nn=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,on=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,ot=(t,e,n)=>e in t?en(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,X=(t,e)=>{for(var n in e||(e={}))on.call(e,n)&&ot(t,n,e[n]);if(nt)for(var n of nt(e))rn.call(e,n)&&ot(t,n,e[n]);return t},sn=(t,e)=>tn(t,nn(e)),T;(function(t){t.red="#e72528",t.blue="#2a79af",t.weakBlue="#6eb6f4",t.geekblue="#85a5ff",t.gold="#ffd666",t.orange="#ffa940",t.cyan="#13c2c2",t.green="#52c41a",t.volcano="#fa541c",t.lime="#389e0d",t.pink="#eb2f96",t.purple="#722ed1",t.darkPurple="#292F4C",t.gray="#8c8c8c"})(T||(T={}));var rt=class{constructor(){this.colors=T,this.shapes={slider:new it}}},it=class{constructor(){}title(t=""){return q`
2
2
  color: ${t};
3
3
  border-left: 3px solid ${t};
4
4
  padding: 2px;
5
5
  font-weight: 600;
6
- `}message(t=""){return j`
6
+ `}message(t=""){return q`
7
7
  color: ${t};
8
- `}message_button(t="#eee",e=w.darkPurple,r="#fff"){return j`
8
+ `}message_button(t="#eee",e=T.darkPurple,n="#fff"){return q`
9
9
  background-color: ${e};
10
10
  color: ${t};
11
11
  padding: 2px 5px;
12
12
  border-radius: 3px;
13
- text-shadow: 0 0 2px ${r};
14
- `}},j=(t,...e)=>{if(e.length===0)return t[0];let r="";return e.forEach((o,i)=>{r+=t[i]+o}),r+=t[t.length-1],r},B;(function(t){t[t.title=1]="title",t[t.message=2]="message",t[t.message_button=3]="message_button"})(B||(B={}));var q=({color:t},e=new Ce,r)=>{switch(r){case 1:return e.title(t);case 2:return e.message(t);case 3:return e.message_button();default:return""}},Ki=class{constructor(t){let e={log:window.console.log,enable:!0};this._option=Ji(H({},e),{enable:typeof(t==null?void 0:t.enable)=="boolean"?t.enable:e.enable,log:(t==null?void 0:t.log)||e.log})}log(...t){let{enable:e,log:r}=this._option;e&&r&&r(...t)}set baseOption(t){this._option=t}get baseOption(){return this._option}setEnable(t){this._option.enable=!!t}},xe=class{constructor(t){let e={enable:!0,log:window.console.log,level:39,shape:new Pe().shapes.slider};this.enable=t&&typeof t.enable=="boolean"?t.enable:e.enable,this.log=t&&t.log||e.log,this.level=t&&typeof t.level=="number"?t.level:e.level,this.shape=t&&t.shape?t.shape:e.shape}},Xi=class extends Ki{constructor(t){super(t||new xe);this.loggerOption=H(H({},new xe),t)}setLoggerOption(t){let e=H(H({},this.loggerOption),t);this.loggerOption=e,super.baseOption={enable:e.enable,log:e.log}}getLoggerOption(){return this.loggerOption}setLevel(t){typeof t=="number"&&(this.loggerOption.level=t)}formatLog(t,e,r,o,i,...s){!this.loggerOption.level&&this.loggerOption.level!==0||this.loggerOption.level<t||super.log(`%c${e}%c${r}`,o,i,...s)}},Ee;(function(t){t[t.log=0]="log",t[t.version=0]="version",t[t.error=0]="error",t[t.key=0]="key",t[t.warn=1]="warn",t[t.interval=1]="interval",t[t.service=2]="service",t[t.api=3]="api",t[t.http=3]="http",t[t.debug=3]="debug"})(Ee||(Ee={}));var M={debug:{name:"debug",title:" Debug :",color:w.lime,level:3},http:{name:"http",title:" Http :",color:w.weakBlue,level:3},api:{name:"api",title:" Api :",color:w.cyan,level:3},service:{name:"service",title:" Service :",color:w.purple,level:2},interval:{name:"interval",title:" Interval :",color:w.pink,level:1},warn:{name:"warn",title:" WARN :",color:w.orange,level:1},error:{name:"error",title:" ERR :",color:w.red,level:0},key:{name:"key",title:" Key :",color:w.darkPurple,level:0}},se=class extends Xi{constructor(){super(...arguments);this.error=(t,...e)=>{this.formatLogWrapper(M.error,`${t.stack}
15
- `,...e)},this.key=(t,...e)=>{let r=M.key;this.formatLog(r.level,r.title,t.toUpperCase(),q({color:r.color},this.getLoggerOption().shape,B.title),q({},this.getLoggerOption().shape,B.message_button),...e)},this.version=(t="",e,...r)=>{this.formatLog(0,t.toUpperCase(),e,j`
13
+ text-shadow: 0 0 2px ${n};
14
+ `}},q=(t,...e)=>{if(e.length===0)return t[0];let n="";return e.forEach((o,i)=>{n+=t[i]+o}),n+=t[t.length-1],n},U;(function(t){t[t.title=1]="title",t[t.message=2]="message",t[t.message_button=3]="message_button"})(U||(U={}));var re=({color:t},e=new it,n)=>{switch(n){case 1:return e.title(t);case 2:return e.message(t);case 3:return e.message_button();default:return""}},an=class{constructor(t){let e={log:window.console.log,enable:!0};this._option=sn(X({},e),{enable:typeof(t==null?void 0:t.enable)=="boolean"?t.enable:e.enable,log:(t==null?void 0:t.log)||e.log})}log(...t){let{enable:e,log:n}=this._option;e&&n&&n(...t)}set baseOption(t){this._option=t}get baseOption(){return this._option}setEnable(t){this._option.enable=!!t}},st=class{constructor(t){let e={enable:!0,log:window.console.log,level:39,shape:new rt().shapes.slider};this.enable=t&&typeof t.enable=="boolean"?t.enable:e.enable,this.log=t&&t.log||e.log,this.level=t&&typeof t.level=="number"?t.level:e.level,this.shape=t&&t.shape?t.shape:e.shape}},ln=class extends an{constructor(t){super(t||new st);this.loggerOption=X(X({},new st),t)}setLoggerOption(t){let e=X(X({},this.loggerOption),t);this.loggerOption=e,super.baseOption={enable:e.enable,log:e.log}}getLoggerOption(){return this.loggerOption}setLevel(t){typeof t=="number"&&(this.loggerOption.level=t)}formatLog(t,e,n,o,i,...s){!this.loggerOption.level&&this.loggerOption.level!==0||this.loggerOption.level<t||super.log(`%c${e}%c${n}`,o,i,...s)}},at;(function(t){t[t.log=0]="log",t[t.version=0]="version",t[t.error=0]="error",t[t.key=0]="key",t[t.warn=1]="warn",t[t.interval=1]="interval",t[t.service=2]="service",t[t.api=3]="api",t[t.http=3]="http",t[t.debug=3]="debug"})(at||(at={}));var A={debug:{name:"debug",title:" Debug :",color:T.lime,level:3},http:{name:"http",title:" Http :",color:T.weakBlue,level:3},api:{name:"api",title:" Api :",color:T.cyan,level:3},service:{name:"service",title:" Service :",color:T.purple,level:2},interval:{name:"interval",title:" Interval :",color:T.pink,level:1},warn:{name:"warn",title:" WARN :",color:T.orange,level:1},error:{name:"error",title:" ERR :",color:T.red,level:0},key:{name:"key",title:" Key :",color:T.darkPurple,level:0}},ye=class extends ln{constructor(){super(...arguments);this.error=(t,...e)=>{this.formatShapeLog(A.error,`${t instanceof Error?t.stack:t}
15
+ `,...e)},this.key=(t,...e)=>{let n=A.key;this.formatLog(n.level,n.title,t.toUpperCase(),re({color:n.color},this.getLoggerOption().shape,U.title),re({},this.getLoggerOption().shape,U.message_button),...e)},this.version=(t="",e,...n)=>{this.formatLog(0,t.toUpperCase(),e,q`
16
16
  background: linear-gradient(to right, #009fff, #ec2f4b);
17
17
  color: white;
18
18
  padding: 2px 5px;
19
19
  border-top-left-radius: 3px;
20
20
  border-bottom-left-radius: 3px;
21
- `,j`
22
- background-color: ${w.darkPurple};
21
+ `,q`
22
+ background-color: ${T.darkPurple};
23
23
  color: white;
24
24
  padding: 2px 5px;
25
- `,...r)}}formatLogWrapper(t,e,...r){!t||this.formatLog(t.level,t.title,e,q({color:t.color},this.getLoggerOption().shape,B.title),q({color:t.color},this.getLoggerOption().shape,B.message),...r)}debug(t,...e){this.formatLogWrapper(M.debug,t,...e)}http(t,...e){this.formatLogWrapper(M.http,t,...e)}api(t,...e){this.formatLogWrapper(M.api,t,...e)}service(t,...e){this.formatLogWrapper(M.service,t,...e)}interval(t,...e){this.formatLogWrapper(M.interval,t,...e)}warn(t,...e){this.formatLogWrapper(M.warn,t,...e)}},ae=new Pe,Qi=new se,Zi=Qi,O=Zi;var we=class extends se{constructor(){super(...arguments);this.test=(e,...r)=>{let o=4;this.formatLog(o," Test ",e,ae.shapes.slider.title("#3f6600"),ae.shapes.slider.message("#999"),...r)}}},le=new we;le.debug("player-core env:",p);le.version(p.SH_LIB_NAME,p.SH_LIB_VERSION||"");var a=le;var Fe=(t,e,r)=>{let o={value:e,expire:r},i=JSON.stringify(o);return localStorage.setItem(t,i),o},Yi=(t,e,r)=>{let i=ie.getUTCSecond()+r;return Fe(t,e,i)},es=(t,e=!1)=>{let r=localStorage.getItem(t);if(!r)return null;try{let o=JSON.parse(r);return e?o:o.expire?ie.compare(o.expire)?o.value:null:o.value}catch(o){a.error(o,r,"Storage\u8BFB\u53D6\u6570\u636E\u65F6\uFF0C JSON\u89E3\u6790\u51FA\u9519")}},ts=t=>localStorage.removeItem(t),ns={set:Fe,setTimeout:Yi,get:es,remove:ts},k=ns;var z;(function(r){r.GET="GET",r.POST="POST"})(z||(z={}));var _e=(t,e)=>l(void 0,null,function*(){let r=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>{r.abort()}),e.timeout){let c=setTimeout(()=>{r.abort()},e.timeout);r.signal.addEventListener("abort",()=>{clearTimeout(c)})}let o=e.bodyData,i=o&&(typeof o=="object"?JSON.stringify(o):o),s={credentials:"same-origin",method:e.method,headers:new Headers(S({},e.headers)),signal:r.signal};i&&(s.body=i),a.http("\u53D1\u9001\u8BF7\u6C42\uFF1A",t,V(S({},s),{body:o}));try{let c=yield fetch(t,s);if(a.http("\u8BF7\u6C42\u54CD\u5E94\uFF1A",t,c,yield c.clone().text()),c.ok||c.status>=200&&c.status<300){let f=c.headers.get("content-type")||"";if(/application\/json/i.test(f))return yield c.json()}else throw new Error(`${c.status} ${c.statusText}`)}catch(c){if(c.name==="AbortError"){a.http("\u8BF7\u6C42\u53D6\u6D88\uFF1A",s);return}throw c}}),rs=(t,e,r)=>l(void 0,null,function*(){let o=e?e.toString():"";return yield _e(t+o,{method:z.GET,headers:r==null?void 0:r.headers})}),os=(t,e,r)=>l(void 0,null,function*(){return yield _e(t,{method:z.POST,headers:S({"Content-Type":"application/json;charset=UTF-8"},r==null?void 0:r.headers),bodyData:e})}),is={get:rs,post:os},J=is;function Re(t){return t!==t}function ss(t,e=[]){let r=-1,o=t.length;for(e||(e=Array(o));++r<o;)e[r]=t[r];return e}function as(t,e,r){let o=r-1,i=t.length;for(;++o<i;)if(t[o]===e)return o;return-1}function ls(t,e,r,o=!1){let i=t.length,s=r+(o?1:-1);for(;o?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function cs(t,e,r){return e===e?as(t,e,r):ls(t,Re,r)}function ds(t,e){let r=-1,o=e.length,i=t;for(t===e&&(e=ss(e));++r<o;){let s=0,c=e[r],f=c;for(;(s=cs(i,f,s))>-1;)i!==t&&[].splice.call(i,s,1),[].splice.call(t,s,1)}return t}var ps=(t,e)=>!t||!t.length||!e||!e.length?t:ds(t,e),us={pullAll:ps,baseIsNaN:Re},Se=us;var Oe={BVCSP_V1:{path:"/bvcsp/v1",prefix:""}},ce=t=>{let e=Oe[t];return e.prefix+e.path},ms=(t,e)=>{let r=Oe[t];return r.prefix=e||"",ce(t)},$={setApiPrefix:ms,getApiURL:ce,bvscpV1:()=>ce("BVCSP_V1")},U=t=>{$.setApiPrefix("BVCSP_V1",t)};var gs=t=>{if(!t)return null;if(t.nodeType===Node.DOCUMENT_NODE)return t.documentElement;if(t.nodeType===Node.ELEMENT_NODE){let e=t;return e.hasChildNodes()&&e.childNodes.forEach(r=>{let o=r;o.className&&new RegExp(".*bvplayer-core-player.*").test(o.className)&&e.removeChild(o)}),t}return null},fs=(t,e,r)=>{if(!t)return;let o=document.createDocumentFragment();o.appendChild(t);let i=gs(e);!i||(i.appendChild(o),r==null||r())},Te=fs;var ke=(...t)=>{let e=[];for(let r=0;r<t.length;r++){let o=t[r];if(!o)continue;let i=typeof o;if(i==="string"||i==="number")e.push(o);else if(Array.isArray(o)){if(o.length){let s=ke(...o);s&&e.push(s)}}else if(i==="object")if(o.toString==={}.toString)for(let s in o)({}).hasOwnProperty.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}return e.join(" ")},K=ke;var hs={render:Te,cls:K},De=p.SH_CSS_CLASS_PREFIX,Le=p.SH_STORAGE_FIELD_PREFIX,P=hs;var W=`${Le}DialogIds`,bs=(t,e)=>l(void 0,null,function*(){var c;let r={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield J.post(`${$.bvscpV1()}/dialog/device/webrtc`,o,{headers:r});if(a.api("\u8BBE\u5907\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:i}),!i||i.code!==0||!((c=i.data)==null?void 0:c.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i.msg}`);let{data:s}=i;if(s.dialogid){let f=k.get(W)||[];f.push(s.dialogid),k.set(W,f)}return{dialogId:s.dialogid,sdp:s.sdp}}),ys=(t,e)=>l(void 0,null,function*(){var f;let r={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield J.post(`${$.bvscpV1()}/dialog/conference/webrtc`,o,{headers:r});if(a.api("\u4F1A\u8BAE\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:i}),!i||i.code!==0||!((f=i.data)==null?void 0:f.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i==null?void 0:i.msg}`);let{data:s}=i,c=k.get(W)||[];return c.push(s.dialogid),k.set(W,c),{dialogId:s.dialogid,sdp:s.sdp}}),vs=(t,e)=>l(void 0,null,function*(){if(!t)return;let r={Authorization:e||""};return a.api("\u5173\u95EDdialog\uFF1A",t),yield J.post(`${$.bvscpV1()}/dialog/close/${t}`,{},{headers:r})}),Me=(t,e)=>l(void 0,null,function*(){let r=k.get(W)||[];Se.pullAll(r,t),k.set(W,r,0);let i=(yield Promise.allSettled(t.map(s=>vs(s,e)))).filter(s=>s.status==="rejected");i&&i.length>0&&a.error(new Error(`"\u5173\u95ED\u5B58\u50A8\u7684dialog\u65F6\u5931\u8D25\uFF1A", ${i}`))}),Is=t=>l(void 0,null,function*(){let e=k.get(W);!e||e.length<1||(k.remove(W),yield Me(e,t))}),Ps={getDeviceWebrtc:bs,getConferenceWebrtc:ys,closeDialogs:Me,closeAllStorageDialog:Is},F=Ps;var D=class{constructor(e,r){let o=document.createElement(e);o.className=De+r.trim(),this.el=o}unmount(){var e,r,o,i;return a.debug("unmount",this.el,(e=this.el)==null?void 0:e.parentNode),(o=(r=this.el)==null?void 0:r.parentNode)==null||o.removeChild(this.el),(i=this.el)==null?void 0:i.parentNode}destroy(){this.beforeDestroy(),this.unmount(),a.debug("destroy",this.el),this.el=null}getEl(){return this.el}};var We=class extends D{constructor(e){super("div",P.cls("mask"));this._visible=!!(e==null?void 0:e.visible),this._text=e==null?void 0:e.text,this._textEl=document.createElement("span"),this._textEl.className=K("text")}set visible(e){this._visible=e,this.el.style.display=this._visible?"grid":"none"}set text(e){this._text=e,this._textEl.textContent=e}beforeDestroy(){}init(){a.debug("mask visible: ",this._visible);let e=this.el;e.style.display=this._visible?"block":"none";let r=document.createDocumentFragment();return this._textEl.textContent=this._text||"",r.appendChild(this._textEl),e.appendChild(r),e}},Ae=We;var Ve=class extends D{constructor(e){super("div",P.cls("spinner"));this._spin=!!(e==null?void 0:e.spin)}set spin(e){this._spin=e,this.el.style.display=this._spin?"block":"none"}beforeDestroy(){}init(){a.debug("spinner spin: ",this._spin);let e=this.el;e.style.display=this._spin?"block":"none";let r=document.createDocumentFragment(),o=document.createElement("span");return o.style.backgroundColor="#FFF",r.appendChild(o),e.appendChild(r),e}},Be=Ve;var Ne={contain:"contain",fill:"fill"},He=class extends D{constructor(e){super("video",P.cls("video"));this._url=e==null?void 0:e.url,this._srcObject=(e==null?void 0:e.srcObject)||null,this._fit=(e==null?void 0:e.fit)||Ne.contain,this._autoPlay=!!(e==null?void 0:e.autoPlay),this._muted=!!(e==null?void 0:e.muted)}set url(e){typeof this._url!="undefined"&&(this.el.src=this._url),this._url=e}set srcObject(e){this._srcObject=e||null,this.el.srcObject=this._srcObject}set muted(e){if(e===this._muted)return;let r=this.el;this._muted=e,r.muted=e}set autoPlay(e){if(!e!==this._autoPlay)return;this._autoPlay=e,this.muted=e;let r=this.el;r.autoplay=this._autoPlay}set fit(e){this._fit=Ne[e],this.el.style.objectFit=this._fit}getVideoFit(){return this._fit}init(){a.debug("\u6E32\u67D3VideoPlugin\u89C6\u9891\u5BF9\u8C61",this,this.el);let e=this.el;return typeof this._url!="undefined"&&(e.src=this._url),e.srcObject=this._srcObject,e.autoplay=this._autoPlay,e.muted=this._muted,e.style.objectFit=this._fit,e.playsInline=!0,e}play(){return l(this,null,function*(){let e=this.el;try{a.debug("video \u5C1D\u8BD5\u64AD\u653E"),yield e.play()}catch(r){a.error(r,"video \u64AD\u653E \u5931\u8D25")}})}beforeDestroy(){}},je=He;var Cs=(t,e)=>{O.debug(`webrtc my ICE candidate:
26
- ${e.candidate?e.candidate.candidate:"(null)"}`)},xs=(t,e,r)=>{O.debug("webrtc ICE state change event: ",e),O.debug(`webrtc my ICE state: ${t==null?void 0:t.iceConnectionState}`),t&&t.iceConnectionState==="disconnected"&&r&&r()},Es=(t,e)=>{O.debug("webrtc Connection state change, \u5F53\u524D\u8FDE\u63A5\u72B6\u6001: ",t,t.connectionState)},ws=(t,e,r)=>{O.debug("webrtc \u5F53\u524D\u7684 stream: ",e.streams[0]);let o=e.streams[0];r(o)},Fs=(t,e)=>l(void 0,null,function*(){let{offerParam:r,productRemoteSdp:o,customerRTCPeerConnection:i,onConnected:s,onConnectedFailed:c,onIceDisconnected:f,onPcEventAdded:y,onLocalDescriptionReady:I}=t,x=!!i&&i instanceof RTCPeerConnection,b={},d=x?i:new RTCPeerConnection(b);if(d.addEventListener("icecandidate",g=>Cs(d,g)),d.addEventListener("iceconnectionstatechange",g=>xs(d,g,f)),d.addEventListener("connectionstatechange",g=>Es(d,g)),d.addEventListener("track",g=>ws(d,g,e)),y&&(yield y(d)),x)return{pc:d};try{let g=yield d.createOffer(r);O.debug("\u521B\u5EFAoffer\uFF0C\u53C2\u6570\uFF1A",r,"\uFF0C \u7ED3\u679C\uFF1A",g),yield d.setLocalDescription(g),I&&I(d);let R=yield o(new RTCSessionDescription(g));O.debug("webrtc recv open answer",R);let T=new RTCSessionDescription({type:"answer",sdp:R});yield d.setRemoteDescription(T),O.debug("getTransceivers",d.getTransceivers()),s&&s(d)}catch(g){throw c&&c(d),O.error(new Error(`webrtc Failed to create session description: ${g.toString()}`)),d.close(),g}return{pc:d}}),_s=t=>{if(!t)return;let{pc:e}=t;e.close()},Rs={connect:Fs,disconnect:_s},de=Rs;var _;(function(o){o.DIRECT="direct",o.PLUGIN="plugin",o.REJECT="reject"})(_||(_={}));var X;(function(s){s.MP4="mp4",s.FLAC="flac",s.OGG="Ogg",s.WEBM="webm",s.AUTO="auto"})(X||(X={}));var pe;(function(e){e.WEBRTC="webrtc"})(pe||(pe={}));var $e;(function(r){r[r.DIRECT_SUPORT_TYPES=0]="DIRECT_SUPORT_TYPES",r[r.PLUGIN_SUPORT_TYPES=1]="PLUGIN_SUPORT_TYPES"})($e||($e={}));var Ue=class extends D{constructor(e){super("div",P.cls("player"));this._video=new je,this._spinner=new Be({spin:!1}),this._mask=new Ae({visible:!1}),this._videoOption=e==null?void 0:e.video,this._pluginOption=e==null?void 0:e.pluginOption,this._playerConfig=e==null?void 0:e.playerConfig,this._mode=this._restrictPlayerMode(e==null?void 0:e.video,e==null?void 0:e.pluginOption)}justifyVideoType(e,r){return(e==null?void 0:e.url)&&!e.type?X.AUTO:(e==null?void 0:e.type)||Object.keys(r||{})[0]}_restrictPlayerMode(e,r){let o=this.justifyVideoType(e,r);if(!o&&!(e==null?void 0:e.url))return _.REJECT;if(!o)return _.DIRECT;let i=Object.values(X),s=Object.values(pe);return i.includes(o)?_.DIRECT:s.includes(o)?_.PLUGIN:_.DIRECT}init(){var s;a.debug("\u6E32\u67D3PlayerPlugin",this.el),this.prepare();let e=document.createDocumentFragment(),r=this._video.init(),o=this._spinner.init(),i=this._mask.init();return e.appendChild(r),e.appendChild(o),e.appendChild(i),(s=this.el)==null||s.appendChild(e),this.el}get video(){return this._video}get spinner(){return this._spinner}get mask(){return this._mask}play(e){return l(this,null,function*(){this.mute(!0),yield this._video.play(),this.mute(e)})}mute(e){var r;this._video.muted=!!e,a.debug("player mute: ",(r=this._video.getEl())==null?void 0:r.muted)}setProductRemoteSdp(e){!this._pluginOption||!this._pluginOption.webrtc||(this._pluginOption.webrtc.productRemoteSdp=e)}prepareWebrtc(){return l(this,null,function*(){var r;if(this._mode!==_.PLUGIN)return;a.debug("PuPlayer Plugin prepareWebrtc");let e=(r=this._pluginOption)==null?void 0:r.webrtc;!e||(this._video.autoPlay=!0,this._spinner.spin=!0,this._webrtcConnect=yield de.connect(e,o=>{var s;if(!o)return;(s=this.video.getEl())==null||s.addEventListener("canplay",()=>{console.log("Video canplay"),this.video.play()}),this._video.srcObject=o;let i=o.getTracks()[0];i.onended=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u5DF2\u7ECF\u7EC8\u6B62",c)},i.onmute=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u6682\u65F6\u65E0\u6CD5\u63D0\u4F9B\u5A92\u4F53",c),this.onMuted()},i.onunmute=c=>{console.log("\u6D41\u89C6\u9891\u8F68\u9053\u63D0\u4F9B\u5A92\u4F53",c),this.onUnMuted()}}))})}close(){this.closeWebrtc()}beforeDestroy(){this.close()}onMuted(){}onUnMuted(){}loadPlayerConfig(){var e,r,o;this.video.autoPlay=!!((e=this._playerConfig)==null?void 0:e.autoPlay),(r=this.video.getEl())==null||r.addEventListener("canplay",()=>{console.log("Video canplay"),this._spinner.spin=!1,this._mask.visible=!1}),(o=this.video.getEl())==null||o.addEventListener("waiting",()=>{console.log("Video is waiting for more data."),this._spinner.spin=!0})}prepare(){if(a.debug("PlayerPlugin mode: ",this._mode),this.loadPlayerConfig(),this._mode===_.REJECT){a.error(new Error("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u7C7B\u578B"),this._mode,this._videoOption);return}if(this._mode===_.DIRECT){this.prepareDirect();return}if(this._mode===_.PLUGIN){switch(this.justifyVideoType(this._videoOption,this._pluginOption)){case"webrtc":break;default:break}return}}prepareDirect(){var e;this._video.url=((e=this._videoOption)==null?void 0:e.url)||"",setTimeout(()=>{this.play()},300)}closeWebrtc(){de.disconnect(this._webrtcConnect),this._webrtcConnect=null,this._video.srcObject=null}},Q=Ue;var N=document.documentElement,Z="requestFullscreen",Y="exitFullscreen",ee="fullscreenElement",te="onfullscreenchange";if("webkitRequestFullScreen"in N)Z="webkitRequestFullScreen",Y="webkitExitFullscreen",ee="webkitFullscreenElement",te="onwebkitfullscreenchange";else if("msRequestFullscreen"in N)Z="msRequestFullscreen",Y="msExitFullscreen",ee="msFullscreenElement",te="MSFullscreenChange";else if("mozRequestFullScreen"in N)Z="mozRequestFullScreen",Y="mozCancelFullScreen",ee="mozFullScreenElement",te="onmozfullscreenchange";else if(!("requestFullscreen"in N))throw"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Fullscreen API !";function Ss(t=N,e){return t[Z](e)}function Os(){return document[Y]()}function Ge(t){return t===document[ee]}function Ts(t=N,e){return Ge(t)?Os():Ss(t,e)}function ks(t,e){let r=()=>{t.onfullscreenchange=null},o=i=>{i.target!==null&&e(Ge(i.target))};return t[te]=o,{cancel:r}}var Ds={toggle:Ts,watch:ks},qe=Ds;var Ls=(t,e,r)=>o=>l(void 0,null,function*(){if(o.type==="offer"){a.debug("\u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C \u8BBE\u5907\u914D\u7F6E\u4FE1\u606F\uFF1A",t,"token: ",e),a.debug("\u672C\u5730sdp",o);try{let{id:i,index:s}=t||{},c=yield F.getDeviceWebrtc({id:i,index:s,sdp:o.sdp},e);return r&&r(c.dialogId),c.sdp}catch(i){throw a.error(i,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`PUPlayer open \u5931\u8D25 , ${i.message}`)}}}),Ms=t=>{let{container:e,token:r,puOption:o,defaultMediaOption:i={audio:!0,video:!0},testUrl:s,videoFit:c="fill",muted:f,apiPrefix:y,onConnected:I,onConnectedFailed:x,onDisConnected:b,fullScreenOnDblclick:d=!0}=t||{},g,R=r,T=o,v=e,h=typeof f=="boolean"?f:!i.audio;U(y);let L=()=>l(void 0,null,function*(){if(!!g&&(a.debug("PuPlayer close",g),u.mask.visible=!0,u.mask.text="Video Closed",u.close(),g))try{yield F.closeDialogs([g],R)}catch(m){throw a.error(m,"PuPlayer close \u5931\u8D25"),new Error(`PuPlayer close \u5931\u8D25 , ${m.message}`)}}),u=new Q({video:{url:s},pluginOption:{webrtc:{offerParam:{offerToReceiveAudio:i.audio,offerToReceiveVideo:i.video},productRemoteSdp:m=>l(void 0,null,function*(){return Ls(T,R,A=>{g=A})(m)}),onIceDisconnected:()=>{u.mask.visible=!0,u.mask.text="lost connection",u.close(),b&&b()},onConnected:()=>{I&&I()},onConnectedFailed:()=>{x&&x()}}},playerConfig:{autoPlay:!0}});u.mute(h),u.video.fit=c;let C=u.init();d&&(C==null||C.addEventListener("dblclick",()=>{a.debug("\u53CC\u51FBplayer\uFF1A",C),qe.toggle(C)}));let re={instance:{getVideoElement:()=>u.video.getEl(),getPlayerElement:()=>u.getEl(),open:(m=!1)=>l(void 0,null,function*(){a.debug("PuPlayer open"),yield L(),u.mask.visible=!1,u.mask.text="connecting",u.mute(!!m);try{yield u.prepareWebrtc()}catch(E){throw u.mask.visible=!0,u.mask.text="connect failed",E}if(typeof m=="boolean"&&m){let E=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",h),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),u.mute(h),document.removeEventListener("click",E),document.removeEventListener("touchend",E)};document.addEventListener("click",E),document.addEventListener("touchend",E)}}),play:()=>l(void 0,null,function*(){yield u.play(h)}),mute:(m=!1)=>{h=m,u.mute(m)},hidden:m=>l(void 0,null,function*(){let E=C,A=u.video.getEl();E.style.display="none",document.body.appendChild(E),A.muted=!0;try{typeof m!="undefined"&&(h=m),yield u.play(h)}catch(Gs){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",A.paused)}),display:m=>l(void 0,null,function*(){let E=C,A=u.video.getEl();P.render(E,v,()=>l(void 0,null,function*(){E.style.display="block",typeof m!="undefined"&&(h=m),yield u.play(h)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",A.paused)}),moveTo:m=>{a.debug("\u79FB\u52A8\u81F3\uFF1A",m),v=m,P.render(C,v,()=>l(void 0,null,function*(){}))},getCurrentContainer:()=>v,setPuOption:m=>{T=m},setVideoFit:m=>{a.debug("PuPlayer setVideoFit",m),u.video.fit=m},setToken:m=>{a.debug("PuPlayer setToken",m),R=m},setApiPrefix:U,close:L,render:u.init,destroy:()=>l(void 0,null,function*(){a.debug("PuPlayer destroy"),yield L(),u.destroy()})},element:C};return v&&(P.render(C,v),re.element=null),re},ze=Ms;var ue=class{constructor(e,r){this._plugin=e,this._el=this._plugin.init(),this._currentContainer=r}moveTo(e,r){a.debug("\u79FB\u52A8\u81F3\uFF1A",e),this._currentContainer=e,P.render(this._el,this._currentContainer,r)}getCurrentContainer(){return this._currentContainer}render(){return this._plugin.init()}destroy(){a.debug("destroy",this._plugin),this._plugin.destroy()}};var G=class{constructor(e,r,o,i){this.token="";this.fetchSdpFunc=e,this.token=r||"",this.param=o,this.prefix=i}fetch(e){return l(this,null,function*(){a.debug("RemoteSdpFetcher fetch \u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C param\uFF1A",this.param,"token: ",this.token);let r=yield this.fetchSdpFunc(e,this.param,this.token,this.prefix),{sdp:o,dialogId:i}=r||{};return this.dialogId=i,a.debug(`RemoteSdpFetcher fetch \u83B7\u5F97\u7684remoteSdp ${o}, dialogId: ${i}`),o})}close(){return l(this,null,function*(){a.debug(`remoteSdpFetcher close\uFF0C \u68C0\u67E5dialogId: ${this.dialogId}`),this.dialogId&&(yield F.closeDialogs([this.dialogId]))})}},me=class extends ue{constructor(e,r,o,i,s){super(e,s);this._muted=!1;this._videoFit="contain";this.setRemoteSdpFetcher(i),this.setVideoFit(r),this.setMuted(o)}get player(){return this._plugin}getPlayerElement(){return this.player.getEl()}getVideoElement(){return console.log(this._plugin),console.log(this.player),this.player.video.getEl()}setRemoteSdpFetcher(e){this._remoteSdpFetcher=e,this._plugin.setProductRemoteSdp(r=>l(this,null,function*(){var o;return(o=this._remoteSdpFetcher)==null?void 0:o.fetch(r)}))}getRemoteSdpFetcher(){return this._remoteSdpFetcher}setVideoFit(e){a.debug("BvWebrtcInstance setVideoFit",e),this._videoFit=e,this.player.video.fit=e}getVideoFit(){return this._videoFit}setMuted(e=!1){this._muted=e,this.player.mute(e)}getMuted(){return this._muted}mute(e=!1){return this.setMuted(e)}open(e=!1){return l(this,null,function*(){a.debug("PuPlayer open"),yield this.close(),this.player.mask.visible=!1,this.player.mask.text="connecting",this.player.mute(!!e);try{yield this.player.prepareWebrtc()}catch(r){throw this.player.mask.visible=!0,this.player.mask.text="connect failed",r}if(e){let r=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",this._muted),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),this.player.mute(this._muted),document.removeEventListener("click",r),document.removeEventListener("touchend",r)};document.addEventListener("click",r),document.addEventListener("touchend",r)}})}play(){return l(this,null,function*(){yield this.player.play(this._muted)})}hidden(e){return l(this,null,function*(){let r=this._el,o=this.player.video.getEl();r.style.display="none",document.body.appendChild(r),o.muted=!0;try{typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)}catch(i){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}display(e){return l(this,null,function*(){let r=this._el,o=this.player.video.getEl();P.render(r,this._currentContainer,()=>l(this,null,function*(){r.style.display="block",typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}close(){return l(this,null,function*(){if(a.debug("BvWebrtcInstance close",`_dialogId: ${this._dialogId}`),this.player.mask.visible=!0,this.player.mask.text="Video Closed",this.player.close(),a.debug("BvWebrtcInstance close\uFF0C player closed\uFF0C\u68C0\u67E5 remoteSdpFetcher: ",this._remoteSdpFetcher),this._remoteSdpFetcher)try{yield this._remoteSdpFetcher.close()}catch(e){throw a.error(e,"BvWebrtcInstance close \u5931\u8D25"),new Error(`BvWebrtcInstance close \u5931\u8D25 , ${e.message}`)}})}destroy(){a.debug("PuPlayer destroy"),this.close(),this.player.destroy()}};var Ws=t=>{let{container:e,sdpFetcher:r,offerParam:o,videoFit:i,muted:s,autoPlay:c,onConnected:f,onConnectedFailed:y,onDisConnected:I,onPcEventAdded:x}=t,b=new Q({pluginOption:{webrtc:{offerParam:o,productRemoteSdp:()=>l(void 0,null,function*(){return""}),onIceDisconnected:()=>{b.mask.visible=!0,b.mask.text="lost connection",b.close(),I&&I()},onPcEventAdded:x,onConnected:()=>{b.mask.visible=!1,b.mask.text="connected",f&&f()},onConnectedFailed:()=>{y&&y()}}},playerConfig:{autoPlay:c}}),d=new me(b,i,s,r,e),g={open:()=>l(void 0,null,function*(){a.debug("BvWebrtc open"),yield d.open()}),setOption:v=>{a.debug("BvWebrtc setOption");let h=d.getRemoteSdpFetcher();h&&(h.param=v)},setToken:v=>{a.debug("BvWebrtc setToken",v);let h=d.getRemoteSdpFetcher();h&&(h.token=v)},setApiPrefix:v=>{a.debug("BvWebrtc setApiPrefix",v);let h=d.getRemoteSdpFetcher();h&&(h.prefix=v)},getRemoteSdpFetcher:()=>d.getRemoteSdpFetcher(),close:()=>l(void 0,null,function*(){a.debug("BvWebrtc close"),yield d.close()}),render:()=>(a.debug("BvWebrtc render"),d.render()),destroy:()=>{a.debug("BvWebrtc destroy"),d.destroy()}},R=d.render(),T={instance:g,element:R};return e&&(P.render(R,e),T.element=null),T},Je=Ws;var As=()=>l(void 0,null,function*(){a.debug("\u8BF7\u6C42\u9EA6\u514B\u98CE...");let t=yield navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),e=t.getAudioTracks();return a.debug("\u9EA6\u514B\u98CE \u97F3\u9891\u8F68\u9053\uFF1A",e),t}),Vs=t=>{let{container:e,token:r,getRemoteSdpParam:o,apiPrefix:i,getRemoteSdpResult:s,onConnected:c,onConnectedFailed:f,onDisConnected:y,onGetUserMediaFailed:I}=t||{},x=(v,h,L,u)=>l(void 0,null,function*(){if(a.debug("audioPlayer productRemoteSdp",{param:{localDescription:v,param:h,token:L,prefix:u}}),v.type==="offer"&&(U(u),a.debug("\u672C\u5730sdp",v),!!s))try{let{sdp:C,dialogId:ge}=yield s(v.sdp,L,h);return{sdp:C,dialogId:ge}}catch(C){throw a.error(C,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`productRemoteSdp \u5931\u8D25 , ${C.message}`)}}),b=new G(x,r,o,i),{instance:d,element:g}=Je({container:e,sdpFetcher:b,offerParam:{offerToReceiveAudio:!0},videoFit:"contain",muted:!1,autoPlay:!0,onConnected:c,onConnectedFailed:f,onDisConnected:y,onPcEventAdded:v=>l(void 0,null,function*(){try{let h=yield As();h.getTracks().forEach(L=>v.addTrack(L,h))}catch(h){I&&I()}})});return{instance:S({},d),element:g}},ne=Vs;var Bs=(t,e,r)=>l(void 0,null,function*(){let{id:o,index:i}=r||{};return yield F.getDeviceWebrtc({id:o,index:i,sdp:t},e)}),Ns=t=>{let{container:e,token:r,puOption:o,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:f,onGetUserMediaFailed:y}=t||{},{instance:I,element:x}=ne({container:e,token:r,getRemoteSdpParam:o,getRemoteSdpResult:Bs,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:f,onGetUserMediaFailed:y}),b=V(S({},I),{setPuOption:g=>b.setOption&&b.setOption(g)});return delete b.setOption,{instance:b,element:x}},Ke=Ns;var Hs=(t,e,r)=>l(void 0,null,function*(){let{id:o,index:i}=r||{};return yield F.getConferenceWebrtc({id:o,index:i,sdp:t},e)}),js=t=>{let{container:e,token:r,confOption:o,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:f,onGetUserMediaFailed:y}=t||{},{instance:I,element:x}=ne({container:e,token:r,getRemoteSdpParam:o,getRemoteSdpResult:Hs,apiPrefix:i,onConnected:s,onConnectedFailed:c,onDisConnected:f,onGetUserMediaFailed:y}),b=V(S({},I),{setConfOption:g=>b.setOption&&b.setOption(g)});return delete b.setOption,{instance:b,element:x}},Xe=js;var $s=F.closeAllStorageDialog;return Us;})();
25
+ `,...n)}}formatShapeLog({level:t,title:e,color:n},o,...i){this.formatLog(t,e,o,re({color:n},this.getLoggerOption().shape,U.title),re({color:n},this.getLoggerOption().shape,U.message),...i)}debug(t,...e){this.formatShapeLog(A.debug,t,...e)}http(t,...e){this.formatShapeLog(A.http,t,...e)}api(t,...e){this.formatShapeLog(A.api,t,...e)}service(t,...e){this.formatShapeLog(A.service,t,...e)}interval(t,...e){this.formatShapeLog(A.interval,t,...e)}warn(t,...e){this.formatShapeLog(A.warn,t,...e)}},nr=new rt,cn=new ye,dn=cn,D=dn;var lt=class extends ye{constructor(){super(...arguments);this.test=(e,...n)=>{let o=4;this.formatShapeLog({level:o,title:" Test ",color:"#3f6600"},e,...n)};this.libWarn=(e,...n)=>{this.warn("bvplayer-core ",e,...n),console.warn(new Error().stack)};this.libError=(e,...n)=>{this.error(new Error(`bvplayer-core ${e}`),...n)}}},be=new lt;be.debug("player-core env:",d);be.version(d.SH_LIB_NAME,d.SH_LIB_VERSION||"");var a=be;var un=Array.isArray,pn=t=>t!==t,ct=t=>typeof t=="number",dt=t=>typeof t=="string",mn=t=>ct(t)||dt(t),gn=t=>typeof t=="function",fn=t=>typeof t=="undefined",hn=t=>t?!1:!!(t!=null?t:!0),vn={isArr:un,baseIsNaN:pn,isString:dt,isNumber:ct,isText:mn,isFn:gn,isUndefined:fn,isNullOrUndefined:hn},F=vn;function yn(t,e=[]){let n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}function bn(t,e,n){let o=n-1,i=t.length;for(;++o<i;)if(t[o]===e)return o;return-1}function In(t,e,n,o=!1){let i=t.length,s=n+(o?1:-1);for(;o?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Cn(t,e,n){return e===e?bn(t,e,n):In(t,F.baseIsNaN,n)}function Pn(t,e){let n=-1,o=e.length,i=t;for(t===e&&(e=yn(e));++n<o;){let s=0,c=e[n],g=c;for(;(s=Cn(i,g,s))>-1;)i!==t&&[].splice.call(i,s,1),[].splice.call(t,s,1)}return t}var wn=t=>t?F.isArr(t)?t:[t]:[],En=(t,e)=>!t||!t.length||!e||!e.length?t:Pn(t,e),_n=(t,e="")=>{let n=document.createElement("canvas");n.width=t.videoWidth,n.height=t.videoHeight,n.getContext("2d").drawImage(t,0,0,n.width,n.height),n.toBlob(o=>{if(!o){a.libError("util screenshot canvas\u7684\u8F93\u51FA\u4E3A\u7A7A\u503C");return}let i=URL.createObjectURL(o),s=document.createElement("a");s.href=i,s.download=`${e}.png`,s.style.display="none",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)})},xn={pullAll:En,toArray:wn,screenshot:_n},K=xn;function Sn(t){return t!=null&&t!==!0&&t!==!1}function ut(t,e=[]){return t.forEach(n=>{F.isArr(n)?ut(n,e):Sn(n)&&e.push(F.isText(n)?Rn(n):n)}),e}function Tn(t={},e){if(!e)return;Object.keys(t).forEach(o=>{if(o==="children")return;let i=t[o];F.isNullOrUndefined(i)||(o.startsWith("on")?e.addEventListener(o.substring(2).toLowerCase(),i):e instanceof Element?e.setAttribute(o==="className"?"class":o,i):e[o]=i)})}function Rn(t){return{type:"",props:{nodeValue:String(t)+""}}}function kn(t,e){return t===""?document.createTextNode(""):e?document.createElementNS(e,t):document.createElement(t)}function Q(t,e,n){let o=e?e(t):t;if(!o)return null;if(F.isArr(o)){let c=document.createDocumentFragment();return o.forEach(g=>{let l=Q(g,e);l&&c.appendChild(l)}),c}let{props:i,type:s}=o;if(!i)return o instanceof Node||o instanceof Text?(a.libWarn("jsx grow","\u63D0\u793A",o,"\u5E76\u4E0D\u662F\u6709\u6548\u7684jsx element \u5DF2\u7ECF\u539F\u6837\u8F93\u51FA\uFF0C\u4E0D\u5F71\u54CDui \u4F46\u5C3D\u91CF\u5C11\u6DF7\u7528jsx\u548Cdom"),o):(a.libWarn("jsx grow","\u672A\u89E3\u6790",o,"\u56E0\u4E3A\u5B83\u4E0D\u662F\u6709\u6548\u7684jsx element\uFF0C\u5E76\u4E14\u4E5F\u4E0D\u662FRenderTarget\u7C7B\u578B"),null);if(F.isString(s)){let c=kn(s,i.xmlns||n);return Tn(i,c),(i.children||[]).forEach(l=>{let f=Q(l,e,i.xmlns);!f||c.appendChild(f)}),c}if(F.isFn(s)){let c=s(i);return Q(c,e)}return null}function Fn(t,e,...n){return e=e||{},n=ut(K.toArray(e.children||n)),e.children=n,{type:t,props:e}}var Mn=t=>t.children,Ln={h:Fn,Fragment:Mn},r=Ln;var Ie=t=>{let e;return t?e=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()):e=Date.now(),Math.floor(e/1e3)},pt=t=>{let e=typeof t=="number"?t:Ie(t),n=Ie();return e-n},Nn=t=>pt(t)>0,On={getUTCSecond:Ie,pastNow:pt,compare:Nn},Ce=On;var mt=(t,e,n)=>{let o={value:e,expire:n},i=JSON.stringify(o);return localStorage.setItem(t,i),o},Dn=(t,e,n)=>{let i=Ce.getUTCSecond()+n;return mt(t,e,i)},Vn=(t,e=!1)=>{let n=localStorage.getItem(t);if(!n)return null;try{let o=JSON.parse(n);return e?o:o.expire?Ce.compare(o.expire)?o.value:null:o.value}catch(o){a.error(o,n,"Storage\u8BFB\u53D6\u6570\u636E\u65F6\uFF0C JSON\u89E3\u6790\u51FA\u9519")}},Bn=t=>localStorage.removeItem(t),An={set:mt,setTimeout:Dn,get:Vn,remove:Bn},V=An;var ie;(function(n){n.GET="GET",n.POST="POST"})(ie||(ie={}));var gt=(t,e)=>u(void 0,null,function*(){let n=new AbortController;if(e.signal&&e.signal.addEventListener("abort",()=>{n.abort()}),e.timeout){let c=setTimeout(()=>{n.abort()},e.timeout);n.signal.addEventListener("abort",()=>{clearTimeout(c)})}let o=e.bodyData,i=o&&(typeof o=="object"?JSON.stringify(o):o),s={credentials:"same-origin",method:e.method,headers:new Headers(k({},e.headers)),signal:n.signal};i&&(s.body=i),a.http("\u53D1\u9001\u8BF7\u6C42\uFF1A",t,z(k({},s),{body:o}));try{let c=yield fetch(t,s);if(a.http("\u8BF7\u6C42\u54CD\u5E94\uFF1A",t,c,yield c.clone().text()),c.ok||c.status>=200&&c.status<300){let g=c.headers.get("content-type")||"";if(/application\/json/i.test(g))return yield c.json()}else throw new Error(`${c.status} ${c.statusText}`)}catch(c){if(c.name==="AbortError"){a.http("\u8BF7\u6C42\u53D6\u6D88\uFF1A",s);return}throw c}}),Wn=(t,e,n)=>u(void 0,null,function*(){let o=e?e.toString():"";return yield gt(t+o,{method:ie.GET,headers:n==null?void 0:n.headers})}),Hn=(t,e,n)=>u(void 0,null,function*(){return yield gt(t,{method:ie.POST,headers:k({"Content-Type":"application/json;charset=UTF-8"},n==null?void 0:n.headers),bodyData:e})}),$n={get:Wn,post:Hn},se=$n;var ft={BVCSP_V1:{path:"/bvcsp/v1",prefix:""}},Pe=t=>{let e=ft[t];return e.prefix+e.path},zn=(t,e)=>{let n=ft[t];return n.prefix=e||"",Pe(t)},Z={setApiPrefix:zn,getApiURL:Pe,bvscpV1:()=>Pe("BVCSP_V1")},Y=t=>{Z.setApiPrefix("BVCSP_V1",t)};var Un=t=>{if(!t)return null;if(t.nodeType===Node.DOCUMENT_NODE)return t.documentElement;if(t.nodeType===Node.ELEMENT_NODE){let e=t;return e.hasChildNodes()&&e.childNodes.forEach(n=>{let o=n;o.className&&new RegExp(".*bvplayer-core-player.*").test(o.className)&&e.removeChild(o)}),t}return null},Kn=(t,e,n)=>{if(!t)return;let o=document.createDocumentFragment();o.appendChild(t);let i=Un(e);!i||(i.appendChild(o),n==null||n())},ht=Kn;var ae=(...t)=>{let e=[];for(let n=0;n<t.length;n++){let o=t[n];if(!o)continue;let i=typeof o;if(F.isText(o))e.push(o);else if(Array.isArray(o)){if(o.length){let s=ae(...o);s&&e.push(s)}}else if(i==="object")if(o.toString==={}.toString)for(let s in o)({}).hasOwnProperty.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}return e.join(" ")},vt=t=>t?t.replace(/\s*(;|\{|\})+\s*[\n\r]*/g,"$1"):"",Jn=(t,...e)=>{if(!e.length)return vt(t[0]);let n="";return e.forEach((o,i)=>{n+=t[i]+o}),n+=t[t.length-1],vt(n)},we="bvplayer-",Gn="common-",yt=t=>new RegExp(we).test(t),Xn=(...t)=>ae(t).split(" ").map(e=>yt(e)?e:we+e).join(" "),qn=(...t)=>ae(t).split(" ").map(e=>yt(e)?e:we+Gn+e).join(" ");var Qn={cls:ae,css:Jn,prefixCls:Xn,commonCls:qn},j=Qn;function Zn(t){return document.createRange().createContextualFragment(t)}function Yn(t,e){let n=document.createElement(t);return e&&(n.className=e),n}function Ee(){return document.createDocumentFragment()}function jn(t,e){let n=document.createElement(t);return e&&(n.className=e),n}function eo(t,...e){if(!t)return;let n=Ee();n.append(...e.filter(o=>o)),t.appendChild(n)}function to(t){if(!!t)if(t instanceof Element){t.innerHTML="";return}else for(;t.firstChild;)t.removeChild(t.firstChild)}function no(t,...e){if(!e.length||!(t==null?void 0:t.parentNode))return;let n=e.filter(o=>o);if(t instanceof Element)t.replaceWith(...n);else{let o=Ee();o.append(...n),t.parentNode.replaceChild(o,t)}}function oo(t){var e;if(!!t)if(t instanceof Element){t.remove();return}else(e=t.parentNode)==null||e.removeChild(t)}function ro(t){if(!t||!t.props)return t;let{props:e}=t;return e.withCommonNamespace&&(e.className=j.commonCls(e.className),delete e.withCommonNamespace),e.withNamespace&&(e.className=j.prefixCls(e.className),delete e.withNamespace),t}function io(t){return t?Q(t,ro):null}var so={parseHtml:Zn,create:Yn,createFragment:Ee,createHtmlElement:jn,createByJsx:io,append:eo,empty:to,replace:no,removeSelf:oo},bt=so;var ao="bvplayerCore",lo=t=>ao+t,co={createPrefixStorageField:lo},It=co;var uo={render:ht,style:j,dom:bt,field:It},p=uo;var W=p.field.createPrefixStorageField("DialogIds"),po=(t,e)=>u(void 0,null,function*(){var c;let n={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield se.post(`${Z.bvscpV1()}/dialog/device/webrtc`,o,{headers:n});if(a.api("\u8BBE\u5907\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:i}),!i||i.code!==0||!((c=i.data)==null?void 0:c.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i.msg}`);let{data:s}=i;if(s.dialogid){let g=V.get(W)||[];g.push(s.dialogid),V.set(W,g)}return{dialogId:s.dialogid,sdp:s.sdp}}),mo=(t,e)=>u(void 0,null,function*(){var g;let n={Authorization:e||""},o={id:t.id,index:t.index,sdp:t.sdp},i=yield se.post(`${Z.bvscpV1()}/dialog/conference/webrtc`,o,{headers:n});if(a.api("\u4F1A\u8BAE\u97F3\u89C6\u9891\u6D41 webrtc\u65B9\u5F0F\u6253\u5F00dialog: ",{params:o,resData:i}),!i||i.code!==0||!((g=i.data)==null?void 0:g.dialogid))throw new Error(`\u6253\u5F00\u4F20\u8F93\u901A\u9053\u5931\u8D25\uFF0C ${i==null?void 0:i.msg}`);let{data:s}=i,c=V.get(W)||[];return c.push(s.dialogid),V.set(W,c),{dialogId:s.dialogid,sdp:s.sdp}}),go=(t,e)=>u(void 0,null,function*(){if(!t)return;let n={Authorization:e||""};return a.api("\u5173\u95EDdialog\uFF1A",t),yield se.post(`${Z.bvscpV1()}/dialog/close/${t}`,{},{headers:n})}),Ct=(t,e)=>u(void 0,null,function*(){let n=V.get(W)||[];K.pullAll(n,t),V.set(W,n,0);let i=(yield Promise.allSettled(t.map(s=>go(s,e)))).filter(s=>s.status==="rejected");i&&i.length>0&&a.error(new Error(`"\u5173\u95ED\u5B58\u50A8\u7684dialog\u65F6\u5931\u8D25\uFF1A", ${i}`))}),fo=t=>u(void 0,null,function*(){let e=V.get(W);!e||e.length<1||(V.remove(W),yield Ct(e,t))}),ho={getDeviceWebrtc:po,getConferenceWebrtc:mo,closeDialogs:Ct,closeAllStorageDialog:fo},M=ho;var Pt=class{constructor(){this._map=new Map}findExecutor(e,n){let o=this._map.get(e);return{index:o?o.findIndex(s=>Object.is(n,s)):-1,que:o}}publish(e,n){let o=this._map.get(e)||[],i=o.length;for(let s=0;s<i;s++){let c=o[s];c&&c(n)}}subscribe(e,n){let{index:o,que:i=[]}=this.findExecutor(e,n);return o>=0?i[o]=n:i.push(n),this._map.set(e,i),{unSubscribe:()=>{this.unSubscribe(e,n)}}}unSubscribe(e,n){let{index:o,que:i=[]}=this.findExecutor(e,n);o<0||(i.splice(o,1),this._map.set(e,i))}},ee=class{constructor(){this._notifier=new Pt}addEventListener(e,n){this._notifier.subscribe(e,n)}removeEventListener(e,n){this._notifier.unSubscribe(e,n)}dispatch(e,n){this._notifier.publish(e,n)}};var E=class extends ee{constructor(e,n,o){super();this.name="";let i=n.trim().toLowerCase(),s=o?o.trim():i,c=p.dom.create(e,p.style.prefixCls(s));this.name=i,this.el=c}empty(){p.dom.empty(this.el)}unmount(){var e;a.debug("unmount",this.el,(e=this.el)==null?void 0:e.parentNode),p.dom.removeSelf(this.el)}destroy(){if(this.beforeDestroy(),this.empty(),this.unmount(),this.el=null,this.dispatch("destroy"),!!this){for(let e in this)this[e]=void 0;a.debug("destroy complete",this)}}getEl(){return this.el}};var wt=class extends E{constructor(e){super("div","mask",p.style.cls("mask"));this._visible=!!(e==null?void 0:e.visible),this._text=e==null?void 0:e.text,this._textEl=p.dom.create("span",p.style.cls("text"))}set visible(e){this._visible=e,this.el.style.display=this._visible?"grid":"none"}set text(e){this._text=e,this._textEl.textContent=e}beforeDestroy(){}init(){a.debug("mask visible: ",this._visible);let e=this.el;return e.style.display=this._visible?"block":"none",this._textEl.textContent=this._text||"",p.dom.append(e,this._textEl),e}},Et=wt;var _t=class extends E{constructor(e){super("div","spinner",p.style.cls("spinner"));this._spin=!!(e==null?void 0:e.spin)}set spin(e){this._spin=e,this.el.style.display=this._spin?"block":"none"}beforeDestroy(){}init(){a.debug("spinner spin: ",this._spin);let e=this.el;e.style.display=this._spin?"block":"none";let n=p.dom.create("span");return n.style.backgroundColor="#FFF",p.dom.append(e,n),e}},xt=_t;var St={contain:"contain",fill:"fill"},Tt=class extends E{constructor(e){super("video","video",p.style.cls("video"));this._url=e==null?void 0:e.url,this._srcObject=(e==null?void 0:e.srcObject)||null,this._fit=(e==null?void 0:e.fit)||St.contain,this._autoPlay=!!(e==null?void 0:e.autoPlay),this._muted=!!(e==null?void 0:e.muted)}set url(e){typeof this._url!="undefined"&&(this.el.src=this._url),this._url=e}set srcObject(e){this._srcObject=e||null,this.el.srcObject=this._srcObject}set muted(e){let n=this.el;this._muted=e,n.muted=e}set paused(e){let n=this.el;e?n.pause():n.play()}get paused(){var e;return!!((e=this.el)==null?void 0:e.paused)}set autoPlay(e){if(!e!==this._autoPlay)return;this._autoPlay=e,this.muted=e;let n=this.el;n.autoplay=this._autoPlay}set fit(e){this._fit=St[e],this.el.style.objectFit=this._fit}getVideoFit(){return this._fit}init(){a.debug("\u6E32\u67D3VideoPlugin\u89C6\u9891\u5BF9\u8C61dom\u7684children",this,this.el);let e=this.el;return e.addEventListener("play",()=>this.dispatch("play",{target:this})),e.addEventListener("pause",()=>this.dispatch("pause",{target:this})),e.addEventListener("loadedmetadata",n=>{a.debug("video loadedmetadata",n),this.dispatch("loadedmetadata",{target:this})}),typeof this._url!="undefined"&&(e.src=this._url),e.srcObject=this._srcObject,e.autoplay=this._autoPlay,e.muted=this._muted,e.style.objectFit=this._fit,e.playsInline=!0,e}play(){return u(this,null,function*(){let e=this.el;try{a.debug("video \u5C1D\u8BD5\u64AD\u653E"),yield e.play()}catch(n){a.error(n,"video \u64AD\u653E \u5931\u8D25")}})}beforeDestroy(){}},Rt=Tt;function te(t){return class extends t{constructor(...e){super(...e);this._visible=!1}get visible(){return this._visible}set visible(e){let n=!!e;if(this._visible===n)return;this._visible=n;let o=p.style.commonCls("is-visible");this._visible?(this.show&&this.show(),this.el.setAttribute("aria-hidden","false"),this.el.classList.add(o)):(this.hide&&this.hide(),this.el.setAttribute("aria-hidden","true"),this.el.classList.remove(o))}}}function _e({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}function xe({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M11.49 3.17c-.38-1.56-2.6-1.56-2.98 0a1.532 1.532 0 0 1-2.286.948c-1.372-.836-2.942.734-2.106 2.106.54.886.061 2.042-.947 2.287-1.561.379-1.561 2.6 0 2.978a1.532 1.532 0 0 1 .947 2.287c-.836 1.372.734 2.942 2.106 2.106a1.532 1.532 0 0 1 2.287.947c.379 1.561 2.6 1.561 2.978 0a1.533 1.533 0 0 1 2.287-.947c1.372.836 2.942-.734 2.106-2.106a1.533 1.533 0 0 1 .947-2.287c1.561-.379 1.561-2.6 0-2.978a1.532 1.532 0 0 1-.947-2.287c.836-1.372-.734-2.942-2.106-2.106a1.532 1.532 0 0 1-2.287-.947zM10 13a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","clip-rule":"evenodd"}))}function Se({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9z"}),r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 13a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"}))}function Te({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M4 5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-1.586a1 1 0 0 1-.707-.293l-1.121-1.121A2 2 0 0 0 11.172 3H8.828a2 2 0 0 0-1.414.586L6.293 4.707A1 1 0 0 1 5.586 5H4zm6 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z","clip-rule":"evenodd"}))}function Re({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0-5 5M4 16v4m0 0h4m-4 0 5-5m11 5-5-5m5 5v-4m0 4h-4"}))}function ke({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M3 4a1 1 0 0 1 1-1h4a1 1 0 0 1 0 2H6.414l2.293 2.293a1 1 0 0 1-1.414 1.414L5 6.414V8a1 1 0 0 1-2 0V4zm9 1a1 1 0 1 1 0-2h4a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V6.414l-2.293 2.293a1 1 0 1 1-1.414-1.414L13.586 5H12zm-9 7a1 1 0 1 1 2 0v1.586l2.293-2.293a1 1 0 0 1 1.414 1.414L6.414 15H8a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1v-4zm13-1a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-4a1 1 0 1 1 0-2h1.586l-2.293-2.293a1 1 0 0 1 1.414-1.414L15 13.586V12a1 1 0 0 1 1-1z","clip-rule":"evenodd"}))}function Fe({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function Me({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM9 9a1 1 0 0 0 0 2v3a1 1 0 0 0 1 1h1a1 1 0 1 0 0-2v-3a1 1 0 0 0-1-1H9z","clip-rule":"evenodd"}))}function Le({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m10 14 2-2m0 0 2-2m-2 2-2-2m2 2 2 2m7-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function Ne({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM8.707 7.293a1 1 0 0 0-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 1 0 1.414 1.414L10 11.414l1.293 1.293a1 1 0 0 0 1.414-1.414L11.414 10l1.293-1.293a1 1 0 0 0-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"}))}function Oe({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18 18 6M6 6l12 12"}))}function De({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 0 1 1.414 0L10 8.586l4.293-4.293a1 1 0 1 1 1.414 1.414L11.414 10l4.293 4.293a1 1 0 0 1-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 0 1-1.414-1.414L8.586 10 4.293 5.707a1 1 0 0 1 0-1.414z","clip-rule":"evenodd"}))}function Ve({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15.536 8.464a5 5 0 0 1 0 7.072m2.828-9.9a9 9 0 0 1 0 12.728M5.586 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z"}))}function Be({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M9.383 3.076A1 1 0 0 1 10 4v12a1 1 0 0 1-1.707.707L4.586 13H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.586l3.707-3.707a1 1 0 0 1 1.09-.217zm5.274-.147a1 1 0 0 1 1.414 0A9.972 9.972 0 0 1 19 10a9.972 9.972 0 0 1-2.929 7.071 1 1 0 0 1-1.414-1.414A7.971 7.971 0 0 0 17 10a7.97 7.97 0 0 0-2.343-5.657 1 1 0 0 1 0-1.414zm-2.829 2.828a1 1 0 0 1 1.415 0A5.983 5.983 0 0 1 15 10a5.984 5.984 0 0 1-1.757 4.243 1 1 0 0 1-1.415-1.415A3.984 3.984 0 0 0 13 10a3.983 3.983 0 0 0-1.172-2.828 1 1 0 0 1 0-1.415z","clip-rule":"evenodd"}))}function Ae({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.586 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z","clip-rule":"evenodd"}),r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m17 14 2-2m0 0 2-2m-2 2-2-2m2 2 2 2"}))}function We({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M9.383 3.076A1 1 0 0 1 10 4v12a1 1 0 0 1-1.707.707L4.586 13H2a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h2.586l3.707-3.707a1 1 0 0 1 1.09-.217zm2.91 4.217a1 1 0 0 1 1.414 0L15 8.586l1.293-1.293a1 1 0 1 1 1.414 1.414L16.414 10l1.293 1.293a1 1 0 0 1-1.414 1.414L15 11.414l-1.293 1.293a1 1 0 0 1-1.414-1.414L13.586 10l-1.293-1.293a1 1 0 0 1 0-1.414z","clip-rule":"evenodd"}))}function He({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14.752 11.168-3.197-2.132A1 1 0 0 0 10 9.87v4.263a1 1 0 0 0 1.555.832l3.197-2.132a1 1 0 0 0 0-1.664z"}),r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function $e({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zM9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664l-3-2z","clip-rule":"evenodd"}))}function ze({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},r.h("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 9v6m4-6v6m7-3a9 9 0 1 1-18 0 9 9 0 0 1 18 0z"}))}function Ue({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},r.h("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0zM7 8a1 1 0 0 1 2 0v4a1 1 0 1 1-2 0V8zm5-1a1 1 0 0 0-1 1v4a1 1 0 1 0 2 0V8a1 1 0 0 0-1-1z","clip-rule":"evenodd"}))}function Ke({className:t}){return r.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 33",fill:"currentColor"},r.h("path",{d:"M6.667 28H1.334c-.8 0-1.333-.533-1.333-1.333v-5.333c0-.8.533-1.333 1.333-1.333s1.333.533 1.333 1.333v4h4c.8 0 1.333.533 1.333 1.333S7.467 28 6.667 28zm24 0h-5.333c-.8 0-1.333-.533-1.333-1.333s.533-1.333 1.333-1.333h4v-4c0-.8.533-1.333 1.333-1.333S32 20.534 32 21.334v5.333c0 .8-.533 1.333-1.333 1.333zm0-16c-.8 0-1.333-.533-1.333-1.333v-4h-4c-.8 0-1.333-.533-1.333-1.333s.533-1.333 1.333-1.333h5.333c.8 0 1.333.533 1.333 1.333v5.333c0 .8-.533 1.333-1.333 1.333zM1.333 12C.533 12 0 11.467 0 10.667V5.334c0-.8.533-1.333 1.333-1.333h5.333c.8 0 1.333.533 1.333 1.333s-.533 1.333-1.333 1.333h-4v4c0 .8-.533 1.333-1.333 1.333z"}))}var L=({children:t,className:e})=>{let n=p.style.cls(["icon",e]);return r.h("span",{className:n,withNamespace:!0},t)},vo=({filled:t})=>r.h(L,null,t?r.h(xe,null):r.h(_e,null)),yo=({filled:t})=>r.h(L,null,t?r.h(Te,null):r.h(Se,null)),bo=({filled:t})=>r.h(L,null,t?r.h(Me,null):r.h(Fe,null)),Io=({filled:t})=>r.h(L,null,t?r.h(ke,null):r.h(Re,null)),Co=({filled:t,circle:e})=>e?r.h(L,null,t?r.h(Ne,null):r.h(Le,null)):r.h(L,null,t?r.h(De,null):r.h(Oe,null)),Po=({filled:t,off:e})=>e?r.h(L,null,t?r.h(We,null):r.h(Ae,null)):r.h(L,null,t?r.h(Be,null):r.h(Ve,null)),wo=({filled:t,off:e})=>e?r.h(L,null,t?r.h(Ue,null):r.h(ze,null)):r.h(L,null,t?r.h($e,null):r.h(He,null)),Eo=()=>r.h(L,null,r.h(Ke,null)),_o={Cog:vo,Camera:yo,Info:bo,ArrowsExpand:Io,X:Co,Volume:Po,Play:wo,Full:Eo};var _=_o;var H="modal",kt=class extends E{constructor(e){super("div",H,p.style.cls([H,e.className,{[`${H}--center`]:e.center}]));this.container=e.container,this.title=e.title,this._content=e.content||p.dom.create("div","test"),this._center=!!e.center}set content(e){let n=p.dom.createByJsx(e);a.debug("modal update content",n,this._content),p.dom.replace(this._content,n),this._content=n}show(){var e;(e=this.el)==null||e.classList.toggle(p.style.prefixCls(`${H}--center`),!!this._center),p.dom.append(this.container,this.el)}hide(){}clear(){!this.el||(this.el.innerHTML="")}beforeDestroy(){}init(){this.clear(),a.debug("\u6E32\u67D3ModalPlugin \u5F39\u7A97\u5BF9\u8C61",this,this.el);let e=this.el,n=p.dom.createByJsx(r.h(r.Fragment,null,r.h("div",{className:`${H}_title-bar`,onClick:()=>this.dispatch("hide"),withNamespace:!0},r.h("span",{className:`${H}_title-bar_title`,withNamespace:!0},this.title),r.h("span",{className:`${H}_title-bar_close`,withNamespace:!0},r.h(_.X,null))),r.h("div",{className:`${H}_body`,withNamespace:!0},this._content)));return p.dom.append(e,n),e}},xo=te(kt),Je=class extends xo{},Ft=Je;var So="controller_button",Mt=class extends E{constructor(e,n){super("button",So);this._Children=e,this.title=n}set Children(e){!this.el||(this._Children=e,this.empty(),p.dom.append(this.el,p.dom.createByJsx(e)))}beforeDestroy(){}init(){let e=this.el;return e.addEventListener("click",()=>this.dispatch("click")),e.title=this.title||"",p.dom.append(e,p.dom.createByJsx(this._Children)),e}},J=Mt;var Lt="controller",Nt=class extends E{constructor(e){super("div",Lt,p.style.cls(Lt));this._controls=(e==null?void 0:e.controls)||[],this.PlayButton=new J(r.h(_.Play,null)),this.VolumeButton=new J(r.h(_.Volume,{off:!0}),"volume"),this.InformationButton=new J(r.h(_.Info,null),"information"),this.ScreenshotButton=new J(r.h(_.Camera,null),"screenshot"),this.FullscreenButton=new J(r.h(_.ArrowsExpand,null),"fullscreen"),this.PlayButton.addEventListener("click",()=>{this.dispatch("play")}),this.VolumeButton.addEventListener("click",()=>{this.dispatch("volume")}),this.InformationButton.addEventListener("click",()=>this.dispatch("information")),this.ScreenshotButton.addEventListener("click",()=>this.dispatch("screenshot")),this.FullscreenButton.addEventListener("click",()=>this.dispatch("fullscreen"))}beforeDestroy(){}init(){a.debug("\u6E32\u67D3ControllerPlugin \u64AD\u653E\u63A7\u5236\u5668\u5BF9\u8C61",this,this.el,this._controls);let e=this.el,n=p.style.cls([`${this.name}_inner_bar`,`${this.name}_inner_left`]),o=p.style.cls([`${this.name}_inner_bar`,`${this.name}_inner_right`]),i=p.dom.createByJsx(r.h(r.Fragment,null,r.h("div",{className:`${this.name}_mask`,withNamespace:!0}),r.h("div",{className:`${this.name}_inner`,withNamespace:!0},r.h("div",{className:n,withNamespace:!0},this.PlayButton.init(),this.VolumeButton.init()),r.h("div",{className:"flex-space",withCommonNamespace:!0}),r.h("div",{className:o,withNamespace:!0},this.InformationButton.init(),this.ScreenshotButton.init(),this.FullscreenButton.init()))));return p.dom.append(e,i),e}},To=te(Nt),Ge=class extends To{},Ot=Ge;var Dt=class{constructor(){this._els=[];this.disableAutoHide=!1;this._controller=new Ot}init(){let e=this._controller.init();return this._els.push(e),this._els}get els(){return this._els}get controller(){return this._controller}show(){this._controller.visible=!0}hide(){window.clearTimeout(this._autoHideTimeout),this._controller.visible=!1}showThenHide(){this.show(),window.clearTimeout(this._autoHideTimeout),this._autoHideTimeout=window.setTimeout(()=>{this.disableAutoHide||this.hide()},3e3)}},Vt=Dt;var le=class{constructor(e){this.pc=e}getReceiversMap(){let e=new Map([["audio",[]],["video",[]]]),n=this.pc.getReceivers();return(n==null?void 0:n.length)&&n.forEach(o=>{let{kind:i}=o.track,s=e.get(i)||[];s.push(o),e.set(i,s)}),e}getStatsInfos(){return u(this,null,function*(){let e=this.getReceiversMap();a.debug("receivers map : ",e);let n=yield Promise.all(e.get("audio").map(i=>u(this,null,function*(){let s={},c=yield i.getStats(),g=[];return c.forEach(l=>{g.push(l),l.type==="codec"&&(s.mimeType=l.mimeType,s.clockRate=l.clockRate,s.channels=l.channels),l.type==="track"&&(s.totalSamplesReceived=l.totalSamplesReceived,s.totalSamplesDuration=l.totalSamplesDuration)}),a.debug("audio stats report: ",g),s}))),o=yield Promise.all(e.get("video").map(i=>u(this,null,function*(){let s={},c=yield i.getStats(),g=[];return c.forEach(l=>{g.push(l),l.type==="codec"&&(s.mimeType=l.mimeType,s.clockRate=l.clockRate),l.type==="inbound-rtp"&&(s.frameWidth=l.frameWidth,s.frameHeight=l.frameHeight,s.framesPerSecond=l.framesPerSecond,s.framesReceived=l.framesReceived,s.framesDecoded=l.framesDecoded,s.totalInterFrameDelay=l.totalInterFrameDelay,s.keyFramesDecoded=l.keyFramesDecoded,s.packetsLost=l.packetsLost,s.lastPacketReceivedTimestamp=l.lastPacketReceivedTimestamp,s.bytesReceived=l.bytesReceived,s.totalDecodeTime=l.totalDecodeTime)}),a.debug("video stats report: ",g),s})));return{audios:n,videos:o}})}};var Ro=(t,e)=>{D.debug(`webrtc my ICE candidate:
26
+ ${e.candidate?e.candidate.candidate:"(null)"}`)},ko=(t,e,n)=>{D.debug("webrtc ICE state change event: ",e),D.debug(`webrtc my ICE state: ${t==null?void 0:t.iceConnectionState}`),t&&t.iceConnectionState==="disconnected"&&n&&n()},Fo=(t,e)=>{D.debug("webrtc Connection state change, \u5F53\u524D\u8FDE\u63A5\u72B6\u6001: ",t,t.connectionState)},Mo=(t,e,n)=>{D.debug("webrtc \u5F53\u524D\u7684 stream: ",e.streams[0]);let o=e.streams[0];n(o)},Lo=(t,e)=>u(void 0,null,function*(){let{offerParam:n,productRemoteSdp:o,customerRTCPeerConnection:i,onConnected:s,onConnectedFailed:c,onIceDisconnected:g,onPcEventAdded:l,onLocalDescriptionReady:f}=t,b=!!i&&i instanceof RTCPeerConnection,I={},y=b?i:new RTCPeerConnection(I);if(y.addEventListener("icecandidate",h=>Ro(y,h)),y.addEventListener("iceconnectionstatechange",h=>ko(y,h,g)),y.addEventListener("connectionstatechange",h=>Fo(y,h)),y.addEventListener("track",h=>Mo(y,h,e)),l&&(yield l(y)),b)return new le(y);try{let h=yield y.createOffer(n);D.debug("\u521B\u5EFAoffer\uFF0C\u53C2\u6570\uFF1A",n,"\uFF0C \u7ED3\u679C\uFF1A",h),yield y.setLocalDescription(h),f&&f(y);let C=yield o(new RTCSessionDescription(h));D.debug("webrtc recv open answer",C);let R=new RTCSessionDescription({type:"answer",sdp:C});yield y.setRemoteDescription(R),D.debug("getTransceivers",y.getTransceivers()),s&&s(y)}catch(h){throw c&&c(y),D.error(new Error(`webrtc Failed to create session description: ${h.toString()}`)),y.close(),h}return new le(y)}),No=t=>{if(!t)return;let{pc:e}=t;e.close()},Oo={connect:Lo,disconnect:No},Xe=Oo;var G=document.documentElement,ce="requestFullscreen",de="exitFullscreen",ue="fullscreenElement",pe="onfullscreenchange";if("webkitRequestFullScreen"in G)ce="webkitRequestFullScreen",de="webkitExitFullscreen",ue="webkitFullscreenElement",pe="onwebkitfullscreenchange";else if("msRequestFullscreen"in G)ce="msRequestFullscreen",de="msExitFullscreen",ue="msFullscreenElement",pe="MSFullscreenChange";else if("mozRequestFullScreen"in G)ce="mozRequestFullScreen",de="mozCancelFullScreen",ue="mozFullScreenElement",pe="onmozfullscreenchange";else if(!("requestFullscreen"in G))throw"\u5F53\u524D\u6D4F\u89C8\u5668\u4E0D\u652F\u6301Fullscreen API !";function Do(t=G,e){return t[ce](e)}function Vo(){return document[de]()}function Bt(t){return t===document[ue]}function Bo(t=G,e){return Bt(t)?Vo():Do(t,e)}function Ao(t,e){let n=()=>{t.onfullscreenchange=null},o=i=>{i.target!==null&&e(Bt(i.target))};return t[pe]=o,{cancel:n}}var Wo={toggle:Bo,watch:Ao},me=Wo;var Ho=({label:t,value:e,suffix:n})=>r.h("div",{className:"player_info-modal_list_item",withNamespace:!0},r.h("span",{className:"player_info-modal_list_item_label",withNamespace:!0},t),r.h("span",{className:"player_info-modal_list_item_value",withNamespace:!0},e),r.h("span",{className:"player_info-modal_list_item_suffix",withNamespace:!0},n)),At=({list:t,factory:e})=>(t==null?void 0:t.length)?e?r.h(r.Fragment,null,t.map(n=>r.h(At,{list:Object.keys(n).map(o=>e[o]?e[o](n[o],n):!1).filter(o=>o!==!1)}))):r.h("div",{className:"player_info-modal_list",withNamespace:!0},t.map(n=>r.h(Ho,k({},n)))):null,qe=At;var N;(function(o){o.DIRECT="direct",o.PLUGIN="plugin",o.REJECT="reject"})(N||(N={}));var ge;(function(s){s.MP4="MP4",s.FLAC="FLAC",s.OGG="OGG",s.WEBM="WEBM",s.AUTO="AUTO"})(ge||(ge={}));var Qe;(function(e){e.WEBRTC="WEBRTC"})(Qe||(Qe={}));var Wt="player",Ht=class extends E{constructor(e){super("div",Wt);this._lastTotalReceivedBytes=0;this._video=new Rt,this._spinner=new xt({spin:!1}),this._mask=new Et({visible:!1}),this._panel=new Vt,this._infoModal=new Ft({container:this.el,title:"Info",center:!0,className:`${Wt}_info-modal`}),this._videoOption=e==null?void 0:e.video,this._pluginOption=e==null?void 0:e.pluginOption,this._playerConfig=e==null?void 0:e.playerConfig,this._mode=this._restrictPlayerMode(e==null?void 0:e.video,e==null?void 0:e.pluginOption),a.debug("PlayerMode",this._mode)}justifyVideoType(e,n){if((e==null?void 0:e.url)&&!e.type)return ge.AUTO;let o="".toUpperCase.call((e==null?void 0:e.type)||Object.keys(n||{})[0]||"");return a.debug("justifyVideoType ",e,o),o}_restrictPlayerMode(e,n){let o=this.justifyVideoType(e,n);if(!o&&!(e==null?void 0:e.url))return N.REJECT;if(!o)return N.DIRECT;let i=Object.keys(ge),s=Object.keys(Qe);return i.includes(o)?N.DIRECT:s.includes(o)?N.PLUGIN:N.DIRECT}init(){a.debug("\u6E32\u67D3PlayerPlugin",this.el),this.prepare();let e=this._video.init(),n=this._spinner.init(),o=this._mask.init(),i=this._panel.init(),s=this._infoModal.init();return p.dom.append(this.el,e,n,o,...i,s),this.initEvents(),this.dispatch("init",{name:"initEvent",target:this,mode:this._mode}),this.el}get video(){return this._video}get spinner(){return this._spinner}get mask(){return this._mask}play(e){return u(this,null,function*(){this.mute(!0),yield this._video.play(),this.mute(e)})}mute(e){var n;this._video.muted=!!e,a.debug("player mute: ",(n=this._video.getEl())==null?void 0:n.muted)}setProductRemoteSdp(e){!this._pluginOption||!this._pluginOption.webrtc||(this._pluginOption.webrtc.productRemoteSdp=e)}prepareWebrtc(){return u(this,null,function*(){var n;if(this._mode!==N.PLUGIN)return;a.debug("PuPlayer Plugin prepareWebrtc");let e=(n=this._pluginOption)==null?void 0:n.webrtc;!e||(this._video.autoPlay=!0,this._spinner.spin=!0,this._webrtcConnect=yield Xe.connect(e,o=>{var s;if(!o)return;(s=this.video.getEl())==null||s.addEventListener("canplay",()=>{a.debug("Video canplay"),this.video.play()}),this._video.srcObject=o;let i=o.getTracks()[0];i.onended=c=>{a.debug("\u6D41\u89C6\u9891\u8F68\u9053\u5DF2\u7ECF\u7EC8\u6B62",c)},i.onmute=c=>{a.debug("\u6D41\u89C6\u9891\u8F68\u9053\u6682\u65F6\u65E0\u6CD5\u63D0\u4F9B\u5A92\u4F53",c),this.onMuted()},i.onunmute=c=>{a.debug("\u6D41\u89C6\u9891\u8F68\u9053\u63D0\u4F9B\u5A92\u4F53",c),this.onUnMuted()}}))})}close(){this.closeWebrtc()}beforeDestroy(){this.close()}onMuted(){}onUnMuted(){}loadPlayerConfig(){var e;this.video.autoPlay=!!((e=this._playerConfig)==null?void 0:e.autoPlay)}initEvents(){var o,i,s,c,g;(o=this.video.getEl())==null||o.addEventListener("canplay",()=>{this._spinner.spin=!1,this._mask.visible=!1}),(i=this.video.getEl())==null||i.addEventListener("waiting",()=>{a.debug("Video is waiting for more data."),this._spinner.spin=!0}),(s=this.el)==null||s.addEventListener("mousemove",()=>{this._panel.showThenHide()}),(c=this.el)==null||c.addEventListener("click",()=>{this._panel.showThenHide()});let e=(l=!1)=>{let f=this._panel.controller.PlayButton;l||(this._video.paused=!this._video.paused),console.log("oalyer,",this._video.paused),this._video.paused?f.Children=r.h(_.Play,null):f.Children=r.h(_.Play,{off:!0})};e(!0),this._panel.controller.addEventListener("play",()=>e()),this._video.addEventListener("play",()=>{a.debug("video play"),this._panel.showThenHide();let l=this._panel.controller.PlayButton;l.Children=r.h(_.Play,{off:!0})}),this._video.addEventListener("pause",()=>{a.debug("video pause"),this._panel.showThenHide();let l=this._panel.controller.PlayButton;l.Children=r.h(_.Play,null)}),this._panel.controller.addEventListener("screenshot",()=>{let l=this._video.getEl();if(!l){a.libError("playerPlugin screenshot videoEl\u4E3A\u7A7A\u503C");return}K.screenshot(l,`screenshot_${Date.now()}`)}),this._panel.controller.addEventListener("fullscreen",()=>{if(!this.el){a.libError("playerPlugin fullscreen playerEL\u4E3A\u7A7A\u503C");return}me.toggle(this.el)}),(g=this._infoModal)==null||g.addEventListener("hide",()=>{this._infoModal.visible=!1,window.clearInterval(this._timer)}),this._panel.controller.addEventListener("information",()=>u(this,null,function*(){if(!this._video.getEl()){a.libError("playerPlugin information videoEl\u4E3A\u7A7A\u503C");return}this.refreshInfoModal()}));let n=(l=!1)=>{var I;let f=this._panel.controller.VolumeButton,b=(I=this._video.getEl())==null?void 0:I.muted;l||(this._video.muted=!b),b?f.Children=r.h(_.Volume,null):f.Children=r.h(_.Volume,{off:!0})};n(!0),this._panel.controller.addEventListener("volume",()=>n())}prepare(){if(a.debug("PlayerPlugin mode: ",this._mode),this.loadPlayerConfig(),this._mode===N.REJECT){a.error(new Error("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u7C7B\u578B"),this._mode,this._videoOption);return}if(this._mode===N.DIRECT){this.prepareDirect();return}if(this._mode===N.PLUGIN){switch(this.justifyVideoType(this._videoOption,this._pluginOption)){case"webrtc":break;default:break}return}}prepareDirect(){var e;this._video.url=((e=this._videoOption)==null?void 0:e.url)||"",setTimeout(()=>{this.play()},300)}closeWebrtc(){var e;Xe.disconnect(this._webrtcConnect),this.dispatch("closeWebrtc",{name:"closeWebrtcEvent",target:this,peerConnection:(e=this._webrtcConnect)==null?void 0:e.pc}),this._webrtcConnect=null,this._video.srcObject=null}refreshInfoModal(){return u(this,null,function*(){if(window.clearInterval(this._timer),!this._webrtcConnect)return;let e=3,n=()=>u(this,null,function*(){if(!this._webrtcConnect)return;let o=yield this._webrtcConnect.getStatsInfos();a.debug("player get result: ",o);let i={mimeType:(l="")=>({label:"Mime Type:",value:l}),totalSamplesReceived:(l=0,f)=>{let b={label:"Sample Rate:",value:""};return!l||!f.totalSamplesDuration||(b.value=Number(l/f.totalSamplesDuration).toFixed(3)+"Hz"),b}},s={mimeType:(l="")=>({label:"Mime Type:",value:l}),framesPerSecond:(l,f)=>({label:"Resolution:",value:`${f.frameWidth} x ${f.frameHeight}@${l}`}),bytesReceived:(l,f)=>{let b=l||0,I=(b-this._lastTotalReceivedBytes)*8/(e*1e3);return this._lastTotalReceivedBytes=b,{label:"Data Received:",value:`${Math.round(I)} kbps , lost ${f.packetsLost}`}}},c=r.h(qe,{list:o.audios,factory:i}),g=r.h(qe,{list:o.videos,factory:s});a.debug("audioInfoList",p.dom.createByJsx(c)),!!this._infoModal&&(this._infoModal.content=r.h("div",{style:"padding-left: 24px;"},r.h("section",{className:"player_info-modal_section",withNamespace:!0},r.h("span",{className:"player_info-modal_section_title",withNamespace:!0},"Audio"),c),r.h("section",{className:"player_info-modal_section",withNamespace:!0},r.h("span",{className:"player_info-modal_section_title",withNamespace:!0},"Video"),g)),this._infoModal.visible=!0)});n(),this._timer=window.setInterval(n,e*1e3)})}},fe=Ht;var $o=(t,e,n)=>o=>u(void 0,null,function*(){if(o.type==="offer"){a.debug("\u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C \u8BBE\u5907\u914D\u7F6E\u4FE1\u606F\uFF1A",t,"token: ",e),a.debug("\u672C\u5730sdp",o);try{let{id:i,index:s}=t||{},c=yield M.getDeviceWebrtc({id:i,index:s,sdp:o.sdp},e);return n&&n(c.dialogId),c.sdp}catch(i){throw a.error(i,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`PUPlayer open \u5931\u8D25 , ${i.message}`)}}}),zo=t=>{let{container:e,token:n,puOption:o,defaultMediaOption:i={audio:!0,video:!0},testUrl:s,videoFit:c="fill",muted:g,apiPrefix:l,onConnected:f,onConnectedFailed:b,onDisConnected:I,fullScreenOnDblclick:y=!0}=t||{},h,C=n,R=o,O=e,x=typeof g=="boolean"?g:!i.audio;Y(l);let P=()=>u(void 0,null,function*(){if(!!h&&(a.debug("PuPlayer close",h),m.mask.visible=!0,m.mask.text="Video Closed",m.close(),h))try{yield M.closeDialogs([h],C)}catch(v){throw a.error(v,"PuPlayer close \u5931\u8D25"),new Error(`PuPlayer close \u5931\u8D25 , ${v.message}`)}}),m=new fe({video:{url:s},pluginOption:{webrtc:{offerParam:{offerToReceiveAudio:i.audio,offerToReceiveVideo:i.video},productRemoteSdp:v=>u(void 0,null,function*(){return $o(R,C,$=>{h=$})(v)}),onIceDisconnected:()=>{m.mask.visible=!0,m.mask.text="lost connection",m.close(),I&&I()},onConnected:()=>{f&&f()},onConnectedFailed:()=>{b&&b()}}},playerConfig:{autoPlay:!0}});m.addEventListener("init",v=>{a.debug("\u76D1\u542C\u5230\u4E86 player\u5DF2\u7ECF\u521D\u59CB\u5316",v)}),m.mute(x),m.video.fit=c;let w=m.init();y&&(w==null||w.addEventListener("dblclick",()=>{a.debug("\u53CC\u51FBplayer\uFF1A",w),me.toggle(w)}));let B={instance:{getVideoElement:()=>m.video.getEl(),getPlayerElement:()=>m.getEl(),open:(v=!1)=>u(void 0,null,function*(){a.debug("PuPlayer open"),yield P(),a.debug("PuPlayer close before open"),m.mask.visible=!1,m.mask.text="connecting",m.mute(!!v);try{yield m.prepareWebrtc()}catch(S){throw m.mask.visible=!0,m.mask.text="connect failed",S}if(typeof v=="boolean"&&v){let S=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",x),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),m.mute(x),document.removeEventListener("click",S),document.removeEventListener("touchend",S)};document.addEventListener("click",S),document.addEventListener("touchend",S)}}),play:()=>u(void 0,null,function*(){yield m.play(x)}),mute:(v=!1)=>{x=v,m.mute(v)},hidden:v=>u(void 0,null,function*(){let S=w,$=m.video.getEl();S.style.display="none",document.body.appendChild(S),$.muted=!0;try{typeof v!="undefined"&&(x=v),yield m.play(x)}catch(jo){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",$.paused)}),display:v=>u(void 0,null,function*(){let S=w,$=m.video.getEl();p.render(S,O,()=>u(void 0,null,function*(){S.style.display="block",typeof v!="undefined"&&(x=v),yield m.play(x)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",$.paused)}),moveTo:v=>{a.debug("\u79FB\u52A8\u81F3\uFF1A",v),O=v,p.render(w,O,()=>u(void 0,null,function*(){}))},getCurrentContainer:()=>O,setPuOption:v=>{R=v},setVideoFit:v=>{a.debug("PuPlayer setVideoFit",v),m.video.fit=v},setToken:v=>{a.debug("PuPlayer setToken",v),C=v},setApiPrefix:Y,close:P,render:m.init,destroy:()=>u(void 0,null,function*(){a.debug("PuPlayer destroy"),yield P(),m.destroy()})},element:w};return O&&(p.render(w,O),B.element=null),B},$t=zo;var Ze=class extends ee{constructor(e,n){super();this._plugin=e,this._el=this._plugin.init(),this._currentContainer=n}moveTo(e,n){a.debug("\u79FB\u52A8\u81F3\uFF1A",e),this._currentContainer=e,p.render(this._el,this._currentContainer,n)}getCurrentContainer(){return this._currentContainer}render(){return this._plugin.init()}destroy(){a.debug("destroy",this._plugin),this._plugin.destroy(),this.dispatch("destroy")}};var ne=class{constructor(e,n,o,i){this.token="";this.fetchSdpFunc=e,this.token=n||"",this.param=o,this.prefix=i}fetch(e){return u(this,null,function*(){a.debug("RemoteSdpFetcher fetch \u8BF7\u6C42\u8FDC\u7AEFsdp\uFF0C param\uFF1A",this.param,"token: ",this.token);let n=yield this.fetchSdpFunc(e,this.param,this.token,this.prefix),{sdp:o,dialogId:i}=n||{};return this.dialogId=i,a.debug(`RemoteSdpFetcher fetch \u83B7\u5F97\u7684remoteSdp ${o}, dialogId: ${i}`),o})}close(){return u(this,null,function*(){a.debug(`remoteSdpFetcher close\uFF0C \u68C0\u67E5dialogId: ${this.dialogId}`),this.dialogId&&(yield M.closeDialogs([this.dialogId]))})}},Ye=class extends Ze{constructor(e,n,o,i,s){super(e,s);this._muted=!1;this._videoFit="contain";this.setRemoteSdpFetcher(i),this.setVideoFit(n),this.setMuted(o)}get player(){return this._plugin}getPlayerElement(){return this.player.getEl()}getVideoElement(){return this.player.video.getEl()}setRemoteSdpFetcher(e){this._remoteSdpFetcher=e,this._plugin.setProductRemoteSdp(n=>u(this,null,function*(){var o;return(o=this._remoteSdpFetcher)==null?void 0:o.fetch(n)}))}getRemoteSdpFetcher(){return this._remoteSdpFetcher}setVideoFit(e){a.debug("BvWebrtcInstance setVideoFit",e),this._videoFit=e,this.player.video.fit=e}getVideoFit(){return this._videoFit}setMuted(e=!1){this._muted=e,this.player.mute(e)}getMuted(){return this._muted}mute(e=!1){return this.setMuted(e)}open(e=!1){return u(this,null,function*(){a.debug("BvWebrtc open"),yield this.close(),this.player.mask.visible=!1,this.player.mask.text="connecting",this.player.mute(!!e);try{yield this.player.prepareWebrtc()}catch(n){throw this.player.mask.visible=!0,this.player.mask.text="connect failed",n}if(e){let n=()=>{a.debug("\u76D1\u542C\u5230\u7528\u6237\u6709click tap\u4EA4\u4E92\uFF0C \u6539\u53D8\u9759\u97F3\uFF0C muted\uFF1A",this._muted),a.debug("\u6B64\u90E8\u5206\u67E5\u770B\uFF1Ahttps://developers.google.com/web/updates/2017/09/autoplay-policy-changes"),this.player.mute(this._muted),document.removeEventListener("click",n),document.removeEventListener("touchend",n)};document.addEventListener("click",n),document.addEventListener("touchend",n)}})}play(){return u(this,null,function*(){yield this.player.play(this._muted)})}hidden(e){return u(this,null,function*(){let n=this._el,o=this.player.video.getEl();n.style.display="none",document.body.appendChild(n),o.muted=!0;try{typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)}catch(i){a.debug("player.play() \u64AD\u653E\u672A\u6210\u529F")}a.debug("\u6DFB\u52A0\u5230body\u5E76\u9690\u85CF\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}display(e){return u(this,null,function*(){let n=this._el,o=this.player.video.getEl();p.render(n,this._currentContainer,()=>u(this,null,function*(){n.style.display="block",typeof e!="undefined"&&(this._muted=e),yield this.player.play(this._muted)})),a.debug("\u663E\u793A\u5230\u5F53\u524D\u5BB9\u5668\uFF0C \u8C03\u7528play\u540E\u7684\u6682\u505C\u72B6\u6001\uFF1A",o.paused)})}close(){return u(this,null,function*(){if(a.debug("BvWebrtcInstance close",`_dialogId: ${this._dialogId}`),this.player.mask.visible=!0,this.player.mask.text="Video Closed",this.player.close(),a.debug("BvWebrtcInstance close\uFF0C player closed\uFF0C\u68C0\u67E5 remoteSdpFetcher: ",this._remoteSdpFetcher),this.dispatch("close"),this._remoteSdpFetcher)try{yield this._remoteSdpFetcher.close()}catch(e){throw a.error(e,"BvWebrtcInstance close \u5931\u8D25"),new Error(`BvWebrtcInstance close \u5931\u8D25 , ${e.message}`)}})}destroy(){a.debug("PuPlayer destroy"),this.close(),this.player.destroy()}};var Uo=t=>{let{container:e,sdpFetcher:n,offerParam:o,videoFit:i,muted:s,autoPlay:c,onConnected:g,onClose:l,onDestroy:f,onConnectedFailed:b,onDisConnected:I,onPcEventAdded:y}=t,h=new fe({pluginOption:{webrtc:{offerParam:o,productRemoteSdp:()=>u(void 0,null,function*(){return""}),onIceDisconnected:()=>{h.mask.visible=!0,h.mask.text="lost connection",h.close(),I&&I()},onPcEventAdded:y,onConnected:()=>{h.mask.visible=!1,h.mask.text="connected",g&&g()},onConnectedFailed:()=>{b&&b()}}},playerConfig:{autoPlay:c}}),C=new Ye(h,i,s,n,e);C.addEventListener("close",()=>{l&&l()}),C.addEventListener("destroy",()=>{f&&f()});let R={open:()=>u(void 0,null,function*(){a.debug("BvWebrtc open"),yield C.open()}),setOption:P=>{a.debug("BvWebrtc setOption");let m=C.getRemoteSdpFetcher();m&&(m.param=P)},setToken:P=>{a.debug("BvWebrtc setToken",P);let m=C.getRemoteSdpFetcher();m&&(m.token=P)},setApiPrefix:P=>{a.debug("BvWebrtc setApiPrefix",P);let m=C.getRemoteSdpFetcher();m&&(m.prefix=P)},getRemoteSdpFetcher:()=>C.getRemoteSdpFetcher(),close:()=>u(void 0,null,function*(){a.debug("BvWebrtc close"),yield C.close()}),render:()=>(a.debug("BvWebrtc render"),C.render()),destroy:()=>{a.debug("BvWebrtc destroy"),C.destroy()}},O=C.render(),x={instance:R,element:O};return e&&(p.render(O,e),x.element=null),x},zt=Uo;var Ko=()=>u(void 0,null,function*(){a.debug("\u8BF7\u6C42\u9EA6\u514B\u98CE...");let t=yield navigator.mediaDevices.getUserMedia({audio:!0,video:!1}),e=t.getAudioTracks();return a.debug("\u9EA6\u514B\u98CE \u97F3\u9891\u8F68\u9053\uFF1A",e),t}),Jo=t=>{let{container:e,token:n,getRemoteSdpParam:o,apiPrefix:i,getRemoteSdpResult:s,onConnected:c,onClose:g,onDestroy:l,onConnectedFailed:f,onDisConnected:b,onGetUserMediaFailed:I}=t||{},y=(P,m,w,ve)=>u(void 0,null,function*(){if(a.debug("audioPlayer productRemoteSdp",{param:{localDescription:P,param:m,token:w,prefix:ve}}),P.type==="offer"&&(Y(ve),a.debug("\u672C\u5730sdp",P),!!s))try{let{sdp:B,dialogId:v}=yield s(P.sdp,w,m);return{sdp:B,dialogId:v}}catch(B){throw a.error(B,"\u8BF7\u6C42\u8FDC\u7AEFsdp\u65F6\u51FA\u9519"),new Error(`productRemoteSdp \u5931\u8D25 , ${B.message}`)}}),h=new ne(y,n,o,i),{instance:C,element:R}=zt({container:e,sdpFetcher:h,offerParam:{offerToReceiveAudio:!0},videoFit:"contain",muted:!1,autoPlay:!0,onConnected:c,onClose:g,onDestroy:l,onConnectedFailed:f,onDisConnected:b,onPcEventAdded:P=>u(void 0,null,function*(){try{let m=yield Ko();m.getTracks().forEach(w=>P.addTrack(w,m))}catch(m){I&&I()}})});return{instance:k({},C),element:R}},he=Jo;var Go=(t,e,n)=>u(void 0,null,function*(){let{id:o,index:i}=n||{};return yield M.getDeviceWebrtc({id:o,index:i,sdp:t},e)}),Xo=t=>{let{container:e,token:n,puOption:o,apiPrefix:i,onConnected:s,onClose:c,onDestroy:g,onConnectedFailed:l,onDisConnected:f,onGetUserMediaFailed:b}=t||{},{instance:I,element:y}=he({container:e,token:n,getRemoteSdpParam:o,getRemoteSdpResult:Go,apiPrefix:i,onConnected:s,onClose:c,onDestroy:g,onConnectedFailed:l,onDisConnected:f,onGetUserMediaFailed:b}),h=z(k({},I),{setPuOption:R=>I.setOption&&I.setOption(R)});return delete h.setOption,{instance:h,element:y}},Ut=Xo;var qo=(t,e,n)=>u(void 0,null,function*(){let{id:o,index:i}=n||{};return yield M.getConferenceWebrtc({id:o,index:i,sdp:t},e)}),Qo=t=>{let{container:e,token:n,confOption:o,apiPrefix:i,onConnected:s,onClose:c,onDestroy:g,onConnectedFailed:l,onDisConnected:f,onGetUserMediaFailed:b}=t||{},{instance:I,element:y}=he({container:e,token:n,getRemoteSdpParam:o,getRemoteSdpResult:qo,apiPrefix:i,onConnected:s,onClose:c,onDestroy:g,onConnectedFailed:l,onDisConnected:f,onGetUserMediaFailed:b}),h=z(k({},I),{setConfOption:R=>I.setOption&&I.setOption(R)});return delete h.setOption,{instance:h,element:y}},Kt=Qo;var Zo=M.closeAllStorageDialog;return Yo;})();
package/dist/main.es.css CHANGED
@@ -1 +1 @@
1
- .bvplayer-core-player{position:relative;height:100%;width:100%;background-color:#000}.bvplayer-core-player .bvplayer-core-spinner{z-index:1}.bvplayer-core-player .bvplayer-core-mask{z-index:2}.bvplayer-core-video{position:absolute;display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-core-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-core-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIg0KICAgICB2aWV3Qm94PSIwIDAgMjQgMzAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUwIDUwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCiAgICAgICAgPHJlY3QgeD0iMCIgeT0iNy42NDE2IiB3aWR0aD0iNCIgaGVpZ2h0PSIxNC43MTY4IiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMHMiIGR1cj0iMC42cyINCiAgICAgICAgICAgICAgICAgICByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSI+PC9hbmltY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ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-core-spinner>span svg{height:100%}.bvplayer-core-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}html,body{margin:0}*,*:after,*:before{box-sizing:border-box}#root{height:400px;width:600px}
1
+ .bvplayer-common-flex-space{display:inline-block;flex:1}.bvplayer-icon{display:inline-block;height:22px;width:100%;vertical-align:middle}.bvplayer-icon svg{height:100%;width:100%}.bvplayer-modal{position:absolute;top:0;left:0;padding:12px 16px;font-size:14px;border:1px solid #2b303b;border-radius:3px;background:rgba(22,27,29,.8);color:#e8e8fd;box-shadow:0 0 20px -6px #000000b3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow:hidden;visibility:hidden;opacity:0;transform:scale(0);will-change:transform,opacity;transition:all .3s cubic-bezier(.785,.135,.15,.86)}.bvplayer-modal.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:scale(1)}.bvplayer-modal--center{top:50%;left:50%;margin:auto;transform:translate(-50%,-50%) scale(0)}.bvplayer-modal--center.bvplayer-common-is-visible{transform:translate(-50%,-50%)}.bvplayer-modal_title-bar{display:flex;justify-content:space-between;margin-bottom:8px;font-size:16px}.bvplayer-modal_title-bar_close{cursor:pointer}.bvplayer-modal_body{padding:8px;overflow:hidden;overflow-y:auto}.bvplayer-spinner{position:absolute;top:0;left:0;height:100%;width:100%}.bvplayer-spinner>span{display:inline-block;position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px;height:36px;width:36px;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url(data:image/svg+xml;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0aD0iNCIgaGVpZ2h0PSIxNS4yODMyIiBvcGFjaXR5PSIwLjIiPg0KICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9Im9wYWNpdHkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIwLjI7IDE7IC4yIiBiZWdpbj0iMC4zcyIgZHVyPSIwLjZzIg0KICAgICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9ImhlaWdodCIgYXR0cmlidXRlVHlwZT0iWE1MIiB2YWx1ZXM9IjEwOyAyMDsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InkiIGF0dHJpYnV0ZVR5cGU9IlhNTCIgdmFsdWVzPSIxMDsgNTsgMTAiIGJlZ2luPSIwLjNzIiBkdXI9IjAuNnMiDQogICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIj48L2FuaW1hdGU+DQogICAgICAgIDwvcmVjdD4NCiAgICAgIDwvc3ZnPg==)}.bvplayer-spinner>span svg{height:100%}.bvplayer-mask{height:100%;width:100%;position:absolute;top:0;left:0;display:grid;align-content:center;justify-content:center;place-content:center;background-color:#000;color:#fff;font-size:14px}.bvplayer-controller{position:absolute;bottom:0;left:0;right:0;width:100%;height:98px;color:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;opacity:0;transform:translateY(100%);will-change:visibility,opacity,transform;transition:all .3s cubic-bezier(.455,.03,.515,.955)}.bvplayer-controller.bvplayer-common-is-visible{visibility:visible;opacity:1;transform:translateY(0)}.bvplayer-controller_mask{position:absolute;bottom:0;height:100%;width:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADGCAYAAAAT+OqFAAAAdklEQVQoz42QQQ7AIAgEF/T/D+kbq/RWAlnQyyazA4aoAB4FsBSA/bFjuF1EOL7VbrIrBuusmrt4ZZORfb6ehbWdnRHEIiITaEUKa5EJqUakRSaEYBJSCY2dEstQY7AuxahwXFrvZmWl2rh4JZ07z9dLtesfNj5q0FU3A5ObbwAAAABJRU5ErkJggg==) repeat-x bottom}.bvplayer-controller_inner{position:absolute;bottom:0;left:0;right:0;width:100%;height:41px;padding:0 20px;display:flex;align-items:stretch;justify-content:space-between}.bvplayer-controller_inner_bar{display:block}.bvplayer-controller_inner_left{cursor:default}.bvplayer-controller_inner_right{cursor:default}.bvplayer-controller_button{cursor:pointer;display:inline-block;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:100%;border:none;outline:none;padding:0;background:none;color:inherit}.bvplayer-controller_button:not(:last-child){margin-right:8px}.bvplayer-controller_button>*{transition:all .2s ease-in-out;opacity:.8}.bvplayer-controller_button:hover>*{opacity:1}.bvplayer-video{display:block;pointer-events:none;box-sizing:border-box;width:100%;height:100%}.bvplayer-player{position:relative;height:100%;width:100%;background-color:#000;overflow:hidden}.bvplayer-player_info-modal{width:60%;height:70%}.bvplayer-player_info-modal_section{margin-bottom:16px}.bvplayer-player_info-modal_section_title{display:inline-block;font-weight:bold;font-size:12px;margin-bottom:8px}.bvplayer-player_info-modal_list{color:#e8e8fdd9;font-size:12px}.bvplayer-player_info-modal_list_item:not(:last-child){margin-bottom:8px}.bvplayer-player_info-modal_list_item_label{display:inline-block;width:90px;margin-right:14px;text-indent:-99em;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}.bvplayer-player_info-modal_list_item_value{margin-right:8px;white-space:normal;word-break:break-all}