rg-callkit-vue3
Version:
An Open-source Voice & Video Calling UI Component Based on Tencent Cloud Service.
2 lines • 156 kB
JavaScript
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode(".singleInvite-message[data-v-763f93b1]{display:flex;flex-direction:column;padding:0 16px;justify-content:center}.singleInvite-message .singleInvite-nick[data-v-763f93b1]{line-height:40px;text-align:center;font-size:20px;color:#333;letter-spacing:0;font-weight:500}.singleInvite-message .singleInvite-tips[data-v-763f93b1]{height:20px;font-size:14px;color:#97989c;letter-spacing:0;font-weight:400;text-align:center}.singleInvite-avatar[data-v-763f93b1]{width:100px;height:100px;border-radius:12px;margin:0 auto}.singleInvite-message[data-v-31053437]{color:#fff;display:flex;flex-direction:column;padding:0 16px;justify-content:center}.singleInvite-message .singleInvite-nick[data-v-31053437]{font-size:20px;letter-spacing:0;margin:0 auto;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.singleInvite-message .singleInvite-tips[data-v-31053437]{font-size:14px;letter-spacing:0;text-align:center;font-weight:400}.singleInvite-avatar[data-v-31053437]{width:100px;height:100px;border-radius:12px}.singleInvite-header-mobile{display:flex;justify-content:flex-end;padding:0 26px}.singleInvite-header-mobile .singleAudio{margin:0 auto}.singleInvite-header-mobile .singleVideo{display:flex}.singleInvite-header-desktop{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:relative;top:30%}.singleInvite-header-desktop .singleInvite-message .singleInvite-nick{font-style:normal;font-weight:600;font-size:40px;width:100%;line-height:56px;display:flex;align-items:center;justify-content:center;color:#fff}.singleInvite-header-desktop .singleInvite-message .singleInvite-nick .microphone-icon-container{width:24px;height:24px;background:rgba(0,0,0,.4);border-radius:12px;line-height:24px;margin-left:8px}.singleInvite-header-desktop .singleInvite-tips{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#fff}.btn-operate-mobile[data-v-5bf037a3]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-5bf037a3]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-5bf037a3]{width:40px;height:40px;animation:rotation-5bf037a3 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-5bf037a3]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-5bf037a3]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-5bf037a3]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-5bf037a3]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-5bf037a3]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-5bf037a3]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-5bf037a3]{width:40px;height:40px;animation:rotation-5bf037a3 2s linear infinite}@keyframes rotation-5bf037a3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-5bf037a3]{width:100%;height:100%}.btn-operate-desktop img[data-v-5bf037a3]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-5bf037a3]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-d3595e0b]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d3595e0b]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d3595e0b]{width:40px;height:40px;animation:rotation-d3595e0b 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d3595e0b]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d3595e0b]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d3595e0b]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d3595e0b]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d3595e0b]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d3595e0b]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d3595e0b]{width:40px;height:40px;animation:rotation-d3595e0b 2s linear infinite}@keyframes rotation-d3595e0b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d3595e0b]{width:100%;height:100%}.btn-operate-desktop img[data-v-d3595e0b]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d3595e0b]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-d28bf8d1]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d28bf8d1]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d28bf8d1]{width:40px;height:40px;animation:rotation-d28bf8d1 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d28bf8d1]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d28bf8d1]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d28bf8d1]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d28bf8d1]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d28bf8d1]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d28bf8d1]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d28bf8d1]{width:40px;height:40px;animation:rotation-d28bf8d1 2s linear infinite}@keyframes rotation-d28bf8d1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d28bf8d1]{width:100%;height:100%}.btn-operate-desktop img[data-v-d28bf8d1]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d28bf8d1]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-desktop .call-operate[data-v-96c9cbf4]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop img[data-v-96c9cbf4]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-96c9cbf4]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-96c9cbf4]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-96c9cbf4]{width:28px;height:26px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate img[data-v-96c9cbf4]{width:100%;height:100%;background:none}.btn-operate-mobile span[data-v-96c9cbf4]{margin-top:10px}.btn-operate-item[data-v-07a98f5a]{display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.btn-operate-item .invite-calling-header-left[data-v-07a98f5a]{position:absolute;right:-15vw}.btn-operate-item .invite-calling-header-left img[data-v-07a98f5a]{width:32px;height:32px}.btn-operate-mobile[data-v-d14af11d]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-d14af11d]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-d14af11d]{width:40px;height:40px;animation:rotation-d14af11d 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-d14af11d]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-d14af11d]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-d14af11d]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-d14af11d]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-d14af11d]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-d14af11d]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-d14af11d]{width:40px;height:40px;animation:rotation-d14af11d 2s linear infinite}@keyframes rotation-d14af11d{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-d14af11d]{width:100%;height:100%}.btn-operate-desktop img[data-v-d14af11d]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-d14af11d]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-c20ae8b3]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-c20ae8b3]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-c20ae8b3]{width:40px;height:40px;animation:rotation-c20ae8b3 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-c20ae8b3]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-c20ae8b3]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-c20ae8b3]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-c20ae8b3]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-c20ae8b3]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-c20ae8b3]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-c20ae8b3]{width:40px;height:40px;animation:rotation-c20ae8b3 2s linear infinite}@keyframes rotation-c20ae8b3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-c20ae8b3]{width:100%;height:100%}.btn-operate-desktop img[data-v-c20ae8b3]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-c20ae8b3]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.btn-operate-mobile[data-v-9e11a5bd]{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}.btn-operate-mobile .call-operate[data-v-9e11a5bd]{width:50px;height:50px;border-radius:8vh;margin:0 5vw;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.btn-operate-mobile .call-operate .invite-calling-item-loading[data-v-9e11a5bd]{width:40px;height:40px;animation:rotation-9e11a5bd 2s linear infinite}.btn-operate-mobile .call-operate .invite-calling-item-loading img[data-v-9e11a5bd]{width:100%;height:100%}.btn-operate-mobile .call-operate img[data-v-9e11a5bd]{width:100%;height:100%;background:none}.btn-operate-mobile .call-operate .switchAudioCall[data-v-9e11a5bd]{width:6vw;height:3vh}.btn-operate-mobile .call-switch .call-operate[data-v-9e11a5bd]{width:4vh;height:3vh}.btn-operate-mobile span[data-v-9e11a5bd]{margin-top:10px}.btn-operate-desktop .call-operate[data-v-9e11a5bd]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.btn-operate-desktop .invite-calling-item-loading[data-v-9e11a5bd]{width:40px;height:40px;animation:rotation-9e11a5bd 2s linear infinite}@keyframes rotation-9e11a5bd{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-operate-desktop .invite-calling-item-loading img[data-v-9e11a5bd]{width:100%;height:100%}.btn-operate-desktop img[data-v-9e11a5bd]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.btn-operate-desktop span[data-v-9e11a5bd]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.text[data-v-da96c01e]{margin-bottom:20px}.control-wrapper-desktop[data-v-3e20fe82]{transform:translate(-50%);position:absolute;bottom:0;padding-bottom:40px;left:50%;width:100%;color:#fff;border-radius:inherit;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%);display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;user-select:none}.control-wrapper-desktop .panel-button-area[data-v-3e20fe82]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;margin:30px 0;min-width:40%}.control-wrapper-desktop .panel-button-area .btn-operate-desktop .call-operate[data-v-3e20fe82]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.control-wrapper-desktop .panel-button-area .btn-operate-desktop img[data-v-3e20fe82]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.control-wrapper-desktop .panel-button-area .btn-operate-desktop span[data-v-3e20fe82]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.control-wrapper-mobile[data-v-3e20fe82]{position:absolute;bottom:20px;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.control-wrapper-mobile .btn-operate[data-v-3e20fe82]{display:flex;justify-content:center;align-items:center;position:relative;font-size:16px;letter-spacing:0;font-weight:400}.control-wrapper-mobile .btn-operate .mobile-reject[data-v-3e20fe82],.control-wrapper-mobile .btn-operate .mobile-accept[data-v-3e20fe82]{margin:0 40px 40px}.control-wrapper-mobile .btn-operate .mobile-switchAudioCall[data-v-3e20fe82]{font-size:14px}.black[data-v-3e20fe82]{color:#000}.white[data-v-3e20fe82]{color:#fff}.streamBox[data-v-ea64a17c]{width:100%;height:100%}.streamBox-mobile[data-v-ea64a17c]{position:relative}.streamBox-mobile .remoteList[data-v-ea64a17c]{position:fixed;top:60px;right:40px;z-index:999;width:140px;height:200px}.streamBox-mobile .remoteList .remoteListBox[data-v-ea64a17c]{width:140px;height:200px}.streamBox-mobile .localVideo[data-v-ea64a17c]{width:100vw;height:100vh}.streamBox-mobile .localVideo .remoteList[data-v-ea64a17c]{top:0;right:0}.streamBox-mobile .localVideo .remoteListBox[data-v-ea64a17c]{width:100vw;height:100vh}.streamBox-deskTop[data-v-ea64a17c]{position:relative;width:100%;height:100%}.streamBox-deskTop .switchScreen[data-v-ea64a17c]{cursor:pointer;position:absolute;top:20px;left:260px;z-index:999}.streamBox-deskTop .switchScreen .screenImg[data-v-ea64a17c]{width:16px}.streamBox-deskTop .remoteList-desk[data-v-ea64a17c]{position:absolute;top:20px;left:20px;width:260px;height:180px;z-index:999;background-color:#000}.streamBox-deskTop .remoteList-desk .remoteListBox[data-v-ea64a17c],.streamBox-deskTop .localVideo[data-v-ea64a17c]{width:100%;height:100%}.streamBox-deskTop .localVideo .remoteList[data-v-ea64a17c]{top:0;right:0}.streamBox-deskTop .localVideo .remoteListBox[data-v-ea64a17c]{width:100%;height:100%}.streamBox-deskTop .tag[data-v-ea64a17c]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.streamBox-deskTop .tag .microphone-icon-container[data-v-ea64a17c]{margin-left:0;margin-right:2px;width:20px;background-color:transparent}.float-control-panel[data-v-b8fb8f6e]{width:168px;height:56px;background:white;z-index:13;display:flex;flex-wrap:nowrap;justify-content:center;border-radius:40px;box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.float-control-item-icon[data-v-b8fb8f6e]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:56px;height:56px;position:relative}.float-control-item-icon-container[data-v-b8fb8f6e]{border-radius:40px;width:40px;height:40px;margin:.5rem;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center}.float-control-item-icon-container[data-v-b8fb8f6e]:hover{background:rgba(218,218,218,.3)}.minimize[data-v-7f0167b6]{margin-left:10px}.videoStyle{background:#00183c}.singleCall-mobile{width:100vw;height:100vh;display:flex;flex-direction:column;z-index:0}.singleCall-mobile .inviteHeader{width:100%;position:fixed;top:107px;z-index:99}.singleCall-mobile .live-pusher{width:100%;height:100%}.singleCall-desktop{width:100%;height:100%;text-align:center;z-index:0;background:#00183c;position:relative}.singleCall-desktop .toggleSize{position:absolute;right:12px;top:12px;z-index:13;cursor:pointer;display:flex;flex-direction:row;justify-content:flex-start}.singleCall-desktop .inviteHeader{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);z-index:99}.avatar[data-v-bab70197]{width:120px;height:120px;border-radius:12px;display:block;margin:40px auto 15px}.tips[data-v-bab70197]{width:126px;height:auto;font-family:PingFangSC-Regular;font-weight:400;font-size:14px;color:#333;letter-spacing:0;margin:16px auto 40px;text-align:center}.nick[data-v-bab70197]{font-size:20px;letter-spacing:0;margin:0 auto;font-weight:600;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.list-tips[data-v-bab70197]{width:112px;height:auto;font-family:PingFangSC-Regular;font-weight:400;font-size:14px;color:#333;letter-spacing:0;margin:0 auto 24px;text-align:center}.list[data-v-bab70197]{position:absolute;left:14vw;margin-top:0 auto;display:flex;width:272px;justify-content:center;flex-wrap:wrap}.list-item[data-v-bab70197]{flex:.25;text-align:center;width:64px;margin:2px}.list-item .list-avatar[data-v-bab70197]{border-radius:10%;width:64px;height:64px}.list-item .list-name[data-v-bab70197]{font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#666;letter-spacing:0;line-height:18px}.groupInvite-header-desktop[data-v-7e67e4cf]{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;top:32%;left:40%}.groupInvite-header-desktop .singleInvite-message .singleInvite-nick[data-v-7e67e4cf]{font-style:normal;font-weight:600;font-size:40px;width:100%;line-height:56px;display:flex;align-items:center;justify-content:center;color:#fff}.groupInvite-header-desktop .singleInvite-tips[data-v-7e67e4cf]{font-style:normal;font-weight:400;font-size:14px;line-height:20px;color:#fff}.control-wrapper-desktop[data-v-f3ff4c3f]{transform:translate(-50%);position:absolute;bottom:0;padding-bottom:40px;left:50%;width:100%;color:#fff;border-radius:inherit;background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.4) 100%);display:flex;flex-direction:column;flex-wrap:wrap;align-items:center;user-select:none}.control-wrapper-desktop .panel-button-area[data-v-f3ff4c3f]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-evenly;margin:30px 0;min-width:40%}.control-wrapper-desktop .panel-button-area .btn-operate-desktop .call-operate[data-v-f3ff4c3f]{display:flex;flex-direction:column;width:40px;height:40px;margin:0 40px;cursor:pointer}.control-wrapper-desktop .panel-button-area .btn-operate-desktop img[data-v-f3ff4c3f]{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative}.control-wrapper-desktop .panel-button-area .btn-operate-desktop span[data-v-f3ff4c3f]{display:block;margin-top:5px;white-space:nowrap;font-weight:400;font-size:14px;line-height:20px;text-align:center}.control-wrapper-mobile[data-v-f3ff4c3f]{position:absolute;bottom:20px;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}.control-wrapper-mobile .btn-operate[data-v-f3ff4c3f]{display:flex;justify-content:center;align-items:center;position:relative;font-size:16px;letter-spacing:0;font-weight:400}.control-wrapper-mobile .btn-operate .mobile-reject[data-v-f3ff4c3f],.control-wrapper-mobile .btn-operate .mobile-accept[data-v-f3ff4c3f]{margin:0 40px 40px}.control-wrapper-mobile .btn-operate .mobile-switchAudioCall[data-v-f3ff4c3f]{font-size:14px}.black[data-v-f3ff4c3f]{color:#000}.white[data-v-f3ff4c3f]{color:#fff}.swipe{width:100%;height:100%;position:absolute;flex-wrap:wrap;display:flex;align-items:flex-start;align-content:flex-start}.swipe .swiper-sliders-container{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;width:100%;overflow-x:hidden}.swipe .swiper-sliders-container.swiper-sliders-container-column{flex-direction:column}.swipe .swiper-sliders-container.swiper-sliders-container-row{flex-direction:row}.swipe .swipe-dots-container{position:absolute;width:100%;display:flex;justify-content:center;top:400px}.swipe .swipe-dots-container .swipe-dots{width:8px;height:8px;background:#000;opacity:.15;border-radius:20px;margin:5px}.swipe .swipe-dots-container .swipe-current-dots{width:8px;height:8px;background:#000;opacity:1;border-radius:20px;margin:5px}.swiper-item[data-v-61c01897]{position:absolute;display:flex;flex-direction:row;flex-wrap:wrap}.slide-left-enter-active[data-v-61c01897]{transition:all .3s}.slide-left-leave-active[data-v-61c01897]{transform:all .3s}.slide-left-enter-from[data-v-61c01897]{transform:translate(100%)}.slide-left-leave-to[data-v-61c01897]{opacity:0;transform:translate(0)}.slide-right-enter-active[data-v-61c01897],.slide-right-leave-active[data-v-61c01897]{transition:all .3s}.slide-right-enter-from[data-v-61c01897]{opacity:0;transform:translate(-100%)}.slide-right-leave-to[data-v-61c01897]{opacity:0;transform:translate(100%)}#localVideo[data-v-96348cbc]{width:100%;height:100%}.invite-calling-list[data-v-96348cbc]{display:flex;flex-wrap:wrap;width:100%;justify-content:flex-start}.invite-calling-item[data-v-96348cbc]{height:187px;background-color:#000}.invite-calling-item image[data-v-96348cbc]{width:100%;height:100%}.invite-calling-item-message[data-v-96348cbc]{position:absolute;top:0;left:0;float:left;width:100%;height:100%;z-index:2}.invite-calling-item-message .tag[data-v-96348cbc]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.invite-calling-item-message .tag .microphone-icon-container[data-v-96348cbc]{margin-top:4px;margin-right:2px;width:16px;background-color:transparent}.invite-calling-item-loading[data-v-96348cbc]{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);width:40px;height:40px;animation:rotation-96348cbc 2s linear infinite}@keyframes rotation-96348cbc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.invite-calling-item-loading img[data-v-96348cbc]{width:100%;height:100%}.invite-calling-item-id[data-v-96348cbc]{position:absolute;left:2%;bottom:2%;font-family:PingFangSC-Regular;font-weight:400;font-size:12px;color:#fff}.avatar[data-v-96348cbc]{background-color:#000;width:100%;height:100%}.calling-wrapper[data-v-ecba3372]{position:relative;width:100%;height:100%;border-radius:inherit;background:rgba(0,24,60,.7);backdrop-filter:blur(34px);display:flex;flex-direction:column;justify-content:center;overflow:hidden;z-index:-1}.calling-wrapper[data-v-ecba3372]:hover{z-index:inherit;transition:all .5s ease-in-out}#local-dialing[data-v-ecba3372],#localVideo[data-v-ecba3372]{background:rgba(32,32,32,.45);background-repeat:no-repeat;background-size:auto;background-position-x:center;background-position-y:calc(50% + 10px)}.panel-button-area[data-v-ecba3372]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;margin:30px 0}.panel-dialing-info[data-v-ecba3372]{text-align:center}.control-wrapper[data-v-ecba3372]:hover{z-index:13}.control-item[data-v-ecba3372]{display:flex;flex-direction:column;width:100px;margin:0 20px}.invite-calling-item-loading[data-v-ecba3372]{position:absolute;left:calc(50% - 20px);top:calc(50% - 40px);width:40px;height:40px;animation:rotation-ecba3372 2s linear infinite}@keyframes rotation-ecba3372{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.invite-calling-item-loading img[data-v-ecba3372]{width:100%;height:100%}.tag[data-v-ecba3372]{color:#fff;z-index:inherit;background:rgba(0,0,0,.6);padding:2px 10px;border-top-right-radius:inherit;border-bottom-left-radius:inherit;font-size:14px;position:absolute;left:0;bottom:0;z-index:11;display:flex;align-items:center}.tag .microphone-icon-container[data-v-ecba3372]{margin-left:0;margin-right:2px;width:20px;background-color:transparent}.switch-large-small[data-v-ecba3372]{position:absolute;right:12px;top:12px;width:16px;height:16px;z-index:inherit;cursor:pointer}.small-h5[data-v-ecba3372]{position:absolute;width:94px;height:160px;min-height:100px;max-height:60%;top:30px;right:10px;z-index:2;overflow:hidden;background:#000;border-radius:4px}.small[data-v-ecba3372]{position:absolute;width:260px;height:170px;min-height:100px;max-height:60%;top:30px;left:30px;z-index:2;overflow:hidden;resize:both;background:#000;border-radius:4px}.large[data-v-ecba3372]{min-height:100px;width:100%;height:100%;z-index:1;border-radius:inherit;overflow:hidden}.large .switch-large-small[data-v-ecba3372]{display:none}.group-calling-container[data-v-ecba3372]{width:100%;height:100%;display:flex;flex-wrap:wrap;justify-content:center}.group-user-view[data-v-ecba3372]{width:33.333%;height:33.333%;position:relative;background:rgba(32,32,32,.45);backdrop-filter:blur(34px);color:#fff;overflow:hidden}.user-view-text-container[data-v-ecba3372]{position:absolute;left:0;top:0;width:100%;height:100%;z-index:11;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:translateY(-20px)}.user-view-user-id[data-v-ecba3372]{font-family:PingFang SC;font-style:normal;font-weight:600;font-size:24px;line-height:34px}.user-view-info[data-v-ecba3372]{font-family:PingFang SC;font-style:normal;font-weight:400;font-size:12px;line-height:17px}.page-turn[data-v-ecba3372]{width:40px;height:86px;border-radius:4.21px;background:rgba(0,0,0,.2);position:absolute;top:50%;transform:translateY(-50%);z-index:11;display:flex;justify-content:center;align-items:center;cursor:pointer}.turn-icon-container[data-v-ecba3372]{width:14px;height:23px}.right[data-v-ecba3372]{right:0}.microphone-icon-container[data-v-ecba3372]{width:24px;height:24px;background:rgba(0,0,0,.4);border-radius:12px;display:flex;justify-content:center;align-items:center;margin-left:8px}.group-user-view-1[data-v-ecba3372]{width:100%;height:100%}.group-calling-container-1[data-v-ecba3372]{height:100%}.group-user-view-2[data-v-ecba3372]{width:50%;height:100%}.group-calling-container-2[data-v-ecba3372]{height:50%}.group-user-view-3[data-v-ecba3372],.group-user-view-4[data-v-ecba3372]{width:50%;height:50%}.group-calling-container-3[data-v-ecba3372],.group-calling-container-4[data-v-ecba3372]{height:100%}.group-user-view-5[data-v-ecba3372],.group-user-view-6[data-v-ecba3372]{width:33.333%;height:50%}.group-calling-container-5[data-v-ecba3372],.group-calling-container-6[data-v-ecba3372]{height:66%}.user-view-user-id-1[data-v-ecba3372]{font-size:24px}.user-view-user-id-2[data-v-ecba3372],.user-view-user-id-3[data-v-ecba3372],.user-view-user-id-4[data-v-ecba3372]{font-size:22px}.user-view-user-id-5[data-v-ecba3372],.user-view-user-id-6[data-v-ecba3372],.user-view-user-id-7[data-v-ecba3372],.user-view-user-id-8[data-v-ecba3372],.user-view-user-id-9[data-v-ecba3372]{font-size:18px}.float-control-panel[data-v-ecba3372]{width:168px;height:56px;background:white;z-index:13;position:fixed;top:20px;right:20px;display:flex;flex-wrap:nowrap;justify-content:center;border-radius:40px;box-shadow:#00000029 0 3px 6px,#0000003b 0 3px 6px}.function-buttons[data-v-ecba3372]{position:absolute;right:12px;top:12px;z-index:13;cursor:pointer;display:flex;flex-direction:row;justify-content:flex-start}.minimize[data-v-ecba3372]{margin-left:10px}.float-control-item-icon[data-v-ecba3372]{display:flex;flex-direction:row;justify-content:center;align-items:center;width:56px;height:56px;position:relative}.float-control-item-icon-container[data-v-ecba3372]{border-radius:40px;width:40px;height:40px;margin:.5rem;cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center}.float-control-item-icon-container[data-v-ecba3372]:hover{background:rgba(218,218,218,.3)}.streamBox[data-v-522c44be]{width:100%;height:100%}.group-deskTop[data-v-bb1549c9]{background:#00183c;z-index:0}.toast-container[data-v-d9be0202]{position:fixed;display:flex;align-items:center;z-index:1002;justify-content:space-between;left:50%;transform:translate(-50%);padding:15px 15px 15px 20px;background-color:#000;color:#fff;box-sizing:border-box;border-radius:4px;border-width:1px;border-style:solid}.toast-container .toast-content[data-v-d9be0202]{margin-right:16px}.toast-container .toast-close-icon[data-v-d9be0202]{width:16px;line-height:16px;cursor:pointer}.toast-container .toast-close-icon[data-v-d9be0202]:before{font-style:normal;content:url(data:image/svg+xml;base64,PHN2ZyB0PSIxNjg4OTk4OTI4NDQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2MDkiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCI+PHBhdGggZD0iTTUxMiA0NjYuNzUyTDg2LjY1NiA0MS4zNDRhMzIgMzIgMCAwIDAtNDUuMzEyIDQ1LjMxMkw0NjYuNzUyIDUxMiA0MS4zNDQgOTM3LjM0NGEzMiAzMiAwIDAgMCA0NS4zMTIgNDUuMzEyTDUxMiA1NTcuMjQ4bDQyNS4zNDQgNDI1LjQwOGEzMiAzMiAwIDAgMCA0NS4zMTItNDUuMzEyTDU1Ny4yNDggNTEybDQyNS40MDgtNDI1LjM0NGEzMiAzMiAwIDAgMC00NS4zMTItNDUuMzEyTDUxMiA0NjYuNzUyeiIgZmlsbD0iIzcwNzA3MCIgcC1pZD0iMTYxMCI+PC9wYXRoPjwvc3ZnPg==)}.info[data-v-d9be0202]{border-color:#ebeef5;color:#909399;background-color:#edf2fc}.success[data-v-d9be0202]{color:#67c23a;background-color:#f0f9eb;border-color:#e1f3d8}.waring[data-v-d9be0202]{color:#e6a23c;background-color:#fdf6ec;border-color:#faecd8}.error[data-v-d9be0202]{color:#f56c6c;background-color:#fef0f0;border-color:#fde2e2}.slide-up-enter-active[data-v-d9be0202],.slide-up-leave-active[data-v-d9be0202]{transition:all .5s ease-out}.slide-up-enter-from[data-v-d9be0202]{opacity:0;transform:translate(-50%,20px)}.slide-up-leave-to[data-v-d9be0202]{opacity:0;transform:translate(-50%,-20px)}.fade-enter-from[data-v-d9be0202],.fade-leave-to[data-v-d9be0202]{opacity:0;transform:translate(-50%,-100%)}.TUICallKit-mobile{width:100vw;height:100vh;overflow:hidden;background-color:#fff}.TUICallKit-mobile .singCall{width:100vw;height:100vh}.transition-animation{transform:translateY(-100%);animation:slideInDown 1s ease forwards}@keyframes slideInDown{0%{transform:translateY(-100%)}to{transform:translateY(0)}}.TUICallKit-desktop{margin:0 auto;position:relative;border-radius:inherit;width:100%;height:100%;color:#fff;display:flex;flex-direction:column;justify-content:center;overflow:hidden;z-index:12;border-radius:16px}.TUICallKit-desktop .singCall{width:100%;height:100%}.miniMized{width:168px!important;height:56px!important;overflow:visible!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
(function(j,C){typeof exports=="object"&&typeof module<"u"?C(exports,require("tuicall-engine-webrtc"),require("vue")):typeof define=="function"&&define.amd?define(["exports","tuicall-engine-webrtc","vue"],C):(j=typeof globalThis<"u"?globalThis:j||self,C(j["tuicall-uikit-vue"]={},j.TUICALL_ENGINE_WEBRTC,j.Vue))})(this,function(j,C,e){"use strict";const q=typeof wx<"u"&&typeof wx.getSystemInfoSync=="function"&&Boolean(wx.getSystemInfoSync().fontSizeSetting),Me=typeof uni<"u"&&typeof uni>"u",Ie=q||Me,Ae=typeof uni<"u",de=function(){return(typeof uni<"u"||typeof window<"u")&&!Ie}(),xe=function(){return q?wx:Ae?uni:window}(),Z=de&&window&&window.navigator&&window.navigator.userAgent||"",we=/Android/i.test(Z),Be=/(?:Windows Phone)/.test(Z),Ve=/(?:SymbianOS)/.test(Z),be=/iPad/i.test(Z)||/iPhone/i.test(Z)||/iPod/i.test(Z),Ne=we||Be||Ve||be,Re=de&&!Ne;class F{constructor(){this.global=xe,this.isPC=!1,this.isH5=!1,this.isWeChat=!1,this.isApp=!1,this.isUniPlatform=!1,this.isOfficial=!1,this.initEnv()}static getInstance(){return F.instance||(F.instance=new F),F.instance}initEnv(){this.isPC=Re,this.isH5=Ne,this.isWeChat=q,this.isApp=Me&&!q,this.isUniPlatform=Ae}initOfficial(t){this.isOfficial=t===1400187352||t===1400188366}}var L=(l=>(l[l.UNKNOWN=0]="UNKNOWN",l[l.AUDIO=1]="AUDIO",l[l.VIDEO=2]="VIDEO",l))(L||{}),m=(l=>(l.IDLE="idle",l.CALLING="calling",l.CONNECTED="connected",l))(m||{}),c=(l=>(l.CALL="call",l.CUSTOM="custom",l))(c||{}),O=(l=>(l.UNKNOWN="unknown",l.INVITER="inviter",l.INVITEE="invitee",l.CALLEE="callee",l.CALLER="caller",l))(O||{}),ne=(l=>(l.CONTAIN="contain",l.COVER="cover",l.FILL="fill",l))(ne||{}),ie=(l=>(l.RESOLUTION_480P="480p",l.RESOLUTION_720P="720p",l.RESOLUTION_1080P="1080p",l))(ie||{});const k={IDLE:"idle",BE_INVITED:"be-invited",DIALING_C2C:"dialing-c2c",DIALING_GROUP:"dialing-group",CALLING_C2C_AUDIO:"calling-c2c-audio",CALLING_C2C_VIDEO:"calling-c2c-video",CALLING_GROUP_AUDIO:"calling-group-audio",CALLING_GROUP_VIDEO:"calling-group-video"},$={CALL_STATUS:"callStatus",CALL_ROLE:"callRole",CALL_MEDIA_TYPE:"callMediaType",LOCAL_USER_INFO:"localUserInfo",REMOTE_USER_INFO_LIST:"remoteUserInfoList",CALLER_USER_INFO:"callerUserInfo",IS_GROUP:"isGroup",CALL_DURATION:"callDuration",CALL_TIPS:"callTips",TOAST_INFO:"toastInfo",IS_MINIMIZED:"isMinimized",LANGUAGE:"language",IS_CLICKABLE:"isClickable",DISPLAY_MODE:"displayMode",VIDEO_RESOLUTION:"videoResolution"},a={PREFIX:"【CallService】",AUDIO:"audio",VIDEO:"video",LOCAL_VIDEO:"localVideo",ERROR:"error",TIMEOUT:"timeout",RAF:"raf",INTERVAL:"interval",DEFAULT:"default",BOOLEAN:"boolean",STRING:"string",NUMBER:"number",OBJECT:"object",ARRAY:"array",FUNCTION:"function",...$};class Ye{constructor(){this.defaultStore={callStatus:m.IDLE,callRole:O.UNKNOWN,callMediaType:L.UNKNOWN,localUserInfo:{userId:""},remoteUserInfoList:[],callerUserInfo:{userId:""},isGroup:!1,callDuration:"00:00:00",callTips:"",toastInfo:{text:""},isMinimized:!1,language:"zh-cn",isClickable:!1,displayMode:ne.COVER,videoResolution:ie.RESOLUTION_480P},this.store=Object.assign({},this.defaultStore)}update(t,o){switch(t){default:this.store[t]=o}}getData(t){return t?this.store[t]:this.store}reset(t=[]){t.length===0&&(t=Object.keys(this.store));const o=t.reduce((n,i)=>({...n,[i]:this.defaultStore[i]}),{});this.store={...this.defaultStore,...this.store,...o}}}class W{constructor(){this.timerId=-1,this.storeMap={[c.CALL]:new Ye},this.task={}}static getInstance(){return W.instance||(W.instance=new W),W.instance}watch(t,o){this.task[t]||(this.task[t]={});const n=this.task[t];Object.keys(o).forEach(i=>{const I=o[i];n[i]||(n[i]=new Map),n[i].set(I,1),this.notify(t,i)})}unwatch(t,o){if(!this.task[t])return;const n=this.task[t];Object.keys(o).forEach(i=>{n[i].delete(o[i])})}update(t,o,n){var i;(i=this.storeMap[t])==null||i.update(o,n),this.notify(t,o)}getData(t,o){var n;return(n=this.storeMap[t])==null?void 0:n.getData(o)}notify(t,o){if(!this.task[t])return;const n=this.task[t];if(n[o]){const i=n[o],I=this.getData(t,o);for(const[s]of i.entries())s.call(this,I)}}reset(t,o=[],n=!1){if(t in this.storeMap){const i=this.storeMap[t];o.length===0&&(o=Object.keys(i==null?void 0:i.store)),i.reset(o),n&&o.forEach(I=>{this.notify(t,I)})}}updateStore(t,o){let n=o||c.CALL;Object.keys(t).forEach(i=>{this.update(n,i,t[i])})}}const Qe={hangup:"Hang up",reject:"Decline","other side reject call":"other side reject call","reject call":"Reject Call",accept:"Accept",cancel:"Cancel Call","other side line busy":"other side line busy","in busy":"in busy","call timeout":"call timeout","no response from the other side":"no response from the other side","end call":"end call",timeout:"timeout","kick out":"kick out","caller calling message":"Waiting for the callee to accept the invitation...","callee calling video message":"You are invited to a video call...","callee calling audio message":"You are invited to a audio call...","no microphone access":"no microphone access","no camera access":"no camera access",speaker:"speaker","Invited group call":"Invited you to a group call","Those involved":"Those involved in the call are",call:"call","video-call":"video call","audio-call":"audio call",search:"search","search-result":"search result","no-user":"user not found","member-not-added":"member not added","input-phone-userID":"phone number or userID","not-login":"not logged in","login-status-expire":"login status is invalid, please refresh the page and try again","experience-multi-call":"experience multi-person calls, please download the full-featured demo: ","not-support-multi-call":"multi-person call interface is not open",userID:"userID","already-enter":"entered the call",waiting:"Calling...","camera-opened":"Camera on","camera-closed":"Camera off","microphone-opened":"Mic on","microphone-closed":"Mic off",camera:"Camera",microphone:"Microphone","image-resolution":"Resolution","default-image-resolution":"Default","invited-person":"Invite","video-to-audio":"Switch to audio",me:"(me)","start-voice-call":"Audio call from ","start-video-call":"Video call from ","be-rejected":"Call declined, ","be-no-response":"No response, ","be-line-busy":"Line busy, ","be-canceled":"The call is canceled, ","voice-call-end":"Voice call ended","video-call-end":"Video call ended","method-call-failed":"Failed to sync the operation","failed-to-obtain-permission":"Failed to obtain permissions","environment-detection-failed":"Failed to check the environment","call-failed":"call method failed","microphone-unavailable":"No mic found","ban-device":"Device access denied","not-supported-webrtc":"Your current environment does not support WebRTC","is-already-calling":"TUICallKit is already on a call","need-init":"Before initiating a call with TUICallKit, ensure that the TUICallKitServer.init() method has executed successfully. ","can't call yourself":"Can't call yourself","Use-phone-and-computer":"Use your mobile phone and computer to experience video calls","Wechat scan right QR code":"Wechat scan right QR code",try:"try","Scan the QR code above":"Scan the QR code above","Make video calls yourself":"Make video calls yourself","accept-error":"Accept failed","accept-device-error":"Accept failed, unable to auth calling device","call-error":"Start call failed"},Pe={hangup:"挂断",reject:"拒绝","other side reject call":"对方已拒绝","reject call":"拒绝通话",accept:"接受",cancel:"取消通话","other side line busy":"对方忙线","in busy":"正在忙","call timeout":"呼叫超时","end call":"结束通话",timeout:"超时","kick out":"被踢","caller calling message":"正在等待对方接受邀请…","callee calling video message":"邀请您进行视频通话…","callee calling audio message":"邀请您进行语音通话…","no microphone access":"没有麦克风权限","no camera access":"没有摄像头权限",speaker:"扬声器","Invited group call":"邀请你参加多人通话","Those involved":"参与通话的有:",call:"通话","video-call":"视频通话","audio-call":"音频通话",search:"搜索","search-result":"搜索结果","Wechat scan right QR code":"微信扫右二维码","Use-phone-and-computer":"用手机与电脑互打体验视频通话",try:"试试","Scan the QR code above":"扫描上方二维码","Make video calls yourself":"自己玩转视频通话","no-user":"未搜索到用户","member-not-added":"未添加成员","not-login":"未登录","login-status-expire":"登录状态已失效,请刷新网页重试","experience-multi-call":"体验多人通话请下载全功能demo:","not-support-multi-call":"多人通话接口未开放","input-phone-userID":"请输入手机号/用户ID",userID:"用户ID","already-enter":"已经进入当前通话",waiting:"等待接听...","camera-opened":"摄像头已开","camera-closed":"摄像头已关","microphone-opened":"麦克风已开","microphone-closed":"麦克风已关",camera:"摄像头",microphone:"麦克风","image-resolution":"分辨率","default-image-resolution":"默认分辨率","invited-person":"添加成员","video-to-audio":"切到语音通话",me:"(我)","start-voice-call":"发起的语音通话","start-video-call":"发起的视频通话","be-rejected":"对方已拒绝,","be-no-response":"对方无应答,","be-line-busy":"对方忙线中,","be-canceled":"对方已取消","voice-call-end":"语音通话结束","video-call-end":"视频通话结束","method-call-failed":"同步操作失败","failed-to-obtain-permission":"权限获取失败","environment-detection-failed":"环境检测失败","call-failed":"调用失败","microphone-unavailable":"没有可用的麦克风设备","ban-device":"用户禁止使用设备","not-supported-webrtc":"当前环境不支持 WebRTC","is-already-calling":"TUICallKit 已在通话状态","need-init":"TUICallKit 发起通话前需保证 TUICallKitServer.init() 方法执行成功","can't call yourself":"不能呼叫自己","accept-error":"接通失败","accept-device-error":"接通失败,通话设备获取失败","call-error":"发起通话失败"},U={OTHER_SIDE:"other side",CANCEL:"cancel",OTHER_SIDE_REJECT_CALL:"other side reject call",REJECT_CALL:"reject call",OTHER_SIDE_LINE_BUSY:"other side line busy",IN_BUSY:"in busy",CALL_TIMEOUT:"call timeout",END_CALL:"end call",TIMEOUT:"timeout",KICK_OUT:"kick out",CALLER_CALLING_MSG:"caller calling message",CALLEE_CALLING_VIDEO_MSG:"callee calling video message",CALLEE_CALLING_AUDIO_MSG:"callee calling audio message",NO_MICROPHONE_DEVICE_PERMISSION:"no microphone access",NO_CAMERA_DEVICE_PERMISSION:"no camera access"},ge={en:Qe,"zh-cn":Pe};function f(l){var n;const t=r.getData(c.CALL,a.LANGUAGE);for(const i in ge)if(i===t){const I=ge[i];for(const s in I)if(s===l)return I[s]}const o=(n=l.en)==null?void 0:n.key;return console.error(`${a.PREFIX}translation is not found: ${l}.`),o}function B(){return function(l,t,o){const n=o.value,i=new Set;return o.value=async function(...I){if(i.has(this)){console.warn(`${a.PREFIX}previous ${t}() is ongoing, please avoid repeated calls`);return}try{i.add(this);const s=await n.apply(this,I);return i.delete(this),s}catch(s){throw i.delete(this),s}},o}}const Ge=function(l){if(typeof l!==a.OBJECT||l===null)return!1;const t=Object.getPrototypeOf(l);if(t===null)return!0;let o=t;for(;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o};function Ze(l){const t=Math.floor(l/3600),o=Math.floor(l%3600/60),n=Math.floor(l%60);let i=t>9?`${t}`:`0${t}`;return i+=o>9?`:${o}`:`:0${o}`,i+=n>9?`:${n}`:`:0${n}`,i}function Fe(l){const t=l.split(":");return parseInt(t[0])*3600+parseInt(t[1])*60+parseInt(t[2])}function se(l){return(l==null?void 0:l.message.indexOf("is ongoing, please avoid repeated calls"))!==-1}function We(l){const{message:t}=l;return t.indexOf("NotAllowedError: Permission denied")!==-1}function ce(l,t){let o={userId:l,nick:"",avatar:"",isAudioAvailable:!1,isVideoAvailable:!1,isEnter:!1,domId:t||l};return t?o:{...o,isEnter:!1}}const He=function(l){return typeof l===a.FUNCTION};let ee=class{static generateTaskID(){return this.currentTaskID++}static run(t=a.TIMEOUT,o,n){t===a.INTERVAL?n={delay:2e3,count:0,backgroundTask:!0,...n}:n={delay:2e3,count:0,backgroundTask:!0,...n},Ge(o)&&(n={...n,...o}),He(t)&&(o=t,t=a.TIMEOUT);const i={taskID:this.generateTaskID(),loopCount:0,intervalID:null,timeoutID:null,taskName:t,callback:o,...n};return this.taskMap.set(i.taskID,i),t===a.INTERNAL?this.interval(i):this.timeout(i),i.taskID}static interval(t){const o=()=>{t.callback(),t.loopCount+=1,this.isBreakLoop(t)};return t.intervalID=setInterval(o,t.delay)}static timeout(t){const o=()=>{if(t.callback(),t.loopCount+=1,!this.isBreakLoop(t))return t.timeoutID=setTimeout(o,t.delay)};return t.timeoutID=setTimeout(o,t.delay)}static hasTask(t){return this.taskMap.has(t)}static clearTask(t){if(!this.taskMap.has(t))return!0;const{intervalID:o,timeoutID:n,onVisibilitychange:i}=this.taskMap.get(t);return o&&clearInterval(o),n&&clearTimeout(n),i&&document.removeEventListener("visibilitychange",i),this.taskMap.delete(t),!0}static isBreakLoop(t){return this.taskMap.has(t.taskID)?t.count!==0&&t.loopCount>=t.count?(this.clearTask(t.taskID),!0):!1:!0}};ee.taskMap=new Map,ee.currentTaskID=1;var Je=Object.defineProperty,Ke=Object.getOwnPropertyDescriptor,V=(l,t,o,n)=>{for(var i=n>1?void 0:n?Ke(t,o):t,I=l.length-1,s;I>=0;I--)(s=l[I])&&(i=(n?s(t,o,i):s(i))||i);return n&&i&&Je(t,o,i),i};const ve="2.4.8";let Xe="../static/phone_dialing.mp3",qe="../static/phone_ringing.mp3";const v=class{constructor(){this._tim=null,this._TUICore=null,this._timerId=-1,this._callingBell=null,console.log(`${a.PREFIX}version: ${ve}`),this._watchTUIStore()}static getInstance(){return v.instance||(v.instance=new v),v.instance}async init(l={}){try{let{sdkAppID:t,tim:o,userID:n,userSig:i,SDKAppID:I}=l;this._TUICore&&(t=this._TUICore.SDKAppID,o=this._TUICore.tim),this._tim=o,console.warn(`${a.PREFIX}init params: ${JSON.stringify(l)}`),this._tuiCallEngine||(this._tuiCallEngine=C.TUICallEngine.createInstance({tim:o,SDKAppID:t||I})),this._addListenTuiCallEngineEvent(),r.update(c.CALL,a.LOCAL_USER_INFO,{userId:n}),await this._tuiCallEngine.login({userID:n,userSig:i,assetsPath:""})}catch(t){throw console.error(`${a.PREFIX}init failed, error: ${JSON.stringify(t)}.`),t}}async destroyed(){try{const l=r.getData(c.CALL,a.CALL_STATUS);if(l!==m.IDLE)throw new Error(`please destroyed when status is idle, now status: ${l}`);this._removeListenTuiCallEngineEvent(),this._tuiCallEngine&&await this._tuiCallEngine.destroyInstance()}catch(l){throw console.error(`${a.PREFIX}destroyed failed, error: ${JSON.stringify(l)}.`),l}}async call(l){try{const{type:t,userID:o}=l;if(r.getData(c.CALL,a.CALL_STATUS)!==m.IDLE)return;this._updateCallStoreBeforeCall(t,[{userId:o}]),this._executeExternalBeforeCalling();const n=await this._tuiCallEngine.call(l);(n==null?void 0:n.code)===0?(t===L.VIDEO&&await this.openCamera(a.LOCAL_VIDEO),await this._updateCallStoreAfterCall([o])):this._resetCallStore()}catch(t){if(se(t))return;throw this._noDevicePermissionToast(t,L.AUDIO),console.error(`${a.PREFIX}call failed, error: ${JSON.stringify(t)}.`),this._resetCallStore(),t}}async groupCall(l){try{const{userIDList:t,type:o,groupID:n}=l;if(r.getData(c.CALL,a.CALL_STATUS)!==m.IDLE)return;const i=t.map(s=>({userId:s}));this._updateCallStoreBeforeCall(o,i,n),this._executeExternalBeforeCalling();const I=await this._tuiCallEngine.groupCall(l);(I==null?void 0:I.code)===0?(o===L.VIDEO&&await this.openCamera(a.LOCAL_VIDEO),await this._updateCallStoreAfterCall(t)):this._resetCallStore()}catch(t){if(se(t))return;throw this._noDevicePermissionToast(t,L.AUDIO),console.error(`${a.PREFIX}groupCall failed, error: ${JSON.stringify(t)}.`),this._resetCallStore(),t}}async inviteUser(l){const{userIDList:t=[]}=l;try{if(this._tuiCallEngine&&await this._tuiCallEngine.inviteUser(l)){const n=await this._getRemoteUserProfile(t)}}catch(o){throw console.error(`${a.PREFIX}inviteUser failed, error: ${JSON.stringify(o)}.`),o}}async joinInGroupCall(l){try{await this._tuiCallEngine.joinInGroupCall(l),r.update(c.CALL,a.CALL_STATUS,m.CONNECTED)}catch(t){throw console.error(`${a.PREFIX}joinInGroupCall failed, error: ${JSON.stringify(t)}.`),t}}setLogLevel(l){var t;(t=this==null?void 0:this._tuiCallEngine)==null||t.setLogLevel(l)}setLanguage(l){r.update(c.CALL,a.LANGUAGE,l)}async setSelfInfo(l){const{nickName:t,avatar:o}=l;try{await this._tuiCallEngine.setSelfInfo({nickName:t,avatar:o})}catch(n){console.error(`${a.PREFIX}setSelfInfo failed, error: ${JSON.stringify(n)}.`)}}async enableAIVoice(l){try{await this._tuiCallEngine.enableAIVoice(l),console.log(`${a.PREFIX}enableAIVoice: ${l}.`)}catch(t){throw console.error(`${a.PREFIX}enableAIVoice failed, error: ${JSON.stringify(t)}.`),t}}async accept(){try{r.update(c.CALL,a.CALL_STATUS,m.CONNECTED),await this._tuiCallEngine.accept()&&(r.getData(c.CALL,a.CALL_MEDIA_TYPE)===L.VIDEO&&await this.openCamera(a.LOCAL_VIDEO),r.update(c.CALL,a.IS_CLICKABLE,!0),this._setLocalUserInfoAudioVideoAvailable(!0,a.AUDIO),this._startTimer()),await this._tuiCallEngine.setVideoQuality(r.getData(c.CALL,a.VIDEO_RESOLUTION))}catch(l){if(se(l))return;this._noDevicePermissionToast(l,L.AUDIO),this._resetCallStore()}}async hangup(){try{await this._tuiCallEngine.hangup()}catch{}this._resetCallStore()}async reject(){try{await this._tuiCallEngine.reject()}catch{}this._resetCallStore()}async openCamera(l){try{await this._tuiCallEngine.openCamera(l),this._setLocalUserInfoAudioVideoAvailable(!0,a.VIDEO)}catch(t){this._noDevicePermissionToast(t,L.VIDEO),console.error(`${a.PREFIX}openCamera error: ${JSON.stringify(t)}.`)}}async closeCamera(){try{await this._tuiCallEngine.closeCamera(),this._setLocalUserInfoAudioVideoAvailable(!1,a.VIDEO)}catch(l){console.error(`${a.PREFIX}openCamera error: ${JSON.stringify(l)}.`)}}async openMicrophone(){try{await this._tuiCallEngine.openMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!0,a.AUDIO)}catch(l){console.error(`${a.PREFIX}openMicrophone failed, error: ${JSON.stringify(l)}.`)}}async closeMicrophone(){try{await this._tuiCallEngine.closeMicrophone(),this._setLocalUserInfoAudioVideoAvailable(!1,a.AUDIO)}catch(l){console.error(`${a.PREFIX}closeMicrophone failed, error: ${JSON.stringify(l)}.`)}}async switchCallMediaType(){try{const l=r.getData(c.CALL,a.CALL_MEDIA_TYPE);if(l===L.AUDIO){console.warn(`${a.PREFIX}switchCallMediaType failed, ${l} not support.`);return}await this._tuiCallEngine.switchCallMediaType(L.AUDIO),r.update(c.CALL,a.CALL_MEDIA_TYPE,L.AUDIO)}catch(l){console.error(`${a.PREFIX}switchCallMediaType failed, error: ${JSON.stringify(l)}.`)}}getTim(){return this._tim?this._tim:this._tuiCallEngine?this._tuiCallEngine.tim:(console.warn(`${a.PREFIX}getTim warning: _tuiCallEngine Instance is not available.`),null)}_addListenTuiCallEngineEvent(){if(!this._tuiCallEngine){console.warn(`${a.PREFIX}add engine event listener failed, engine is empty.`);return}this._tuiCallEngine.on(C.TUICallEvent.ERRO