var M=Object.defineProperty,S=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable;var L=(e,t,o)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,d=(e,t)=>{for(var o in t||(t={}))N.call(t,o)&&L(e,o,t[o]);if(y)for(var o of y(t))z.call(t,o)&&L(e,o,t[o]);return e},A=(e,t)=>S(e,q(t));import{d as P,r as H,c as U,o as X,a as B,e as K,T as f,s as W,b as l,F as J,I as Y,f as I,B as G,R as Q,g as Z,h as ee,n as te,i as v,j as oe}from"./vendor.f8cdf923.js";const re=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const n of r)if(n.type==="childList")for(const u of n.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function o(r){const n={};return r.integrity&&(n.integrity=r.integrity),r.referrerpolicy&&(n.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?n.credentials="include":r.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function i(r){if(r.ep)return;r.ep=!0;const n=o(r);fetch(r.href,n)}};re();var ie=(e,t)=>{const o=e.__vccOpts||e;for(const[i,r]of t)o[i]=r;return o};const se=P({name:"App"});function ne(e,t,o,i,r,n){const u=H("router-view");return X(),U(u)}var ue=ie(se,[["render",ne]]);const ae="modulepreload",x={},ce="./",s=function(t,o){return!o||o.length===0?t():Promise.all(o.map(i=>{if(i=`${ce}${i}`,i in x)return;x[i]=!0;const r=i.endsWith(".css"),n=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${n}`))return;const u=document.createElement("link");if(u.rel=r?"stylesheet":ae,r||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),r)return new Promise((p,m)=>{u.addEventListener("load",p),u.addEventListener("error",m)})})).then(()=>t())},le="_error_u56io_1",de="_info_u56io_10";var w={error:le,info:de};const a=B({user:{status:"init",data:{}},musicCertStatus:!1,openLiveStatus:!1}),me=e=>{a.user.status="login",a.user.data=e},F=()=>{a.user.status="logout",a.user.data=null},R=()=>{a.user.status="error",a.user.data=null};B({loadingCount:0});const C=()=>{const e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")==-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/),android:e.indexOf("COLEXIUAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("COLEXIUAPPI")>-1,isApp:e.indexOf("COLEXIUAPPI")>-1||e.indexOf("COLEXIUAPPA")>-1||e.indexOf("Adr")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")==-1,weixin:e.indexOf("MicroMessenger")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}},b=()=>""+new Date().getTime()+Math.floor(Math.random()*1e6),Oe=()=>{sessionStorage.removeItem("Authorization")},pe=e=>{sessionStorage.setItem("Authorization",e)},De=(e,t=0)=>t?["\u661F\u671F\u5929","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][e]:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][e],ye=(e,t)=>e==="year"?`${t}\u5E74`:e==="month"?`${t}\u6708`:e==="day"?`${t}\u65E5`:t,fe=window.postMessage;window.postMessage=e=>{fe(e,"*")};const _=()=>{},c={},h=C();h.isApp&&window.addEventListener("message",e=>{var t,o,i;try{console.log(e,"message",e.data);const r=e.data?typeof e.data=="object"?e.data:JSON.parse(e.data):{},n=((t=r.content)==null?void 0:t.uuid)||r.uuid;console.log(n,r.content,"uuid");try{r.content&&(r.content=JSON.parse(r.content))}catch{}if(((o=r==null?void 0:r.content)==null?void 0:o.uuid)&&console.log("data",r),!n){const m=Object.keys(c).filter(E=>E.indexOf(r.api)===0);console.log(m,"keys"),console.log(r,"data");for(const E of m){const D=c[E]||_;typeof D=="function"&&D(r)}return}const u=((i=r.content)==null?void 0:i.uuid)||r.uuid||r.api+r.uuid,p=c[u]||_;console.log(r,"data"),typeof p=="function"&&p(r)}catch(r){console.error("\u901A\u4FE1\u6D88\u606F\u89E3\u6790\u9519\u8BEF",r)}});var k,$;const _e=window.COLEXIU||(($=(k=window.webkit)==null?void 0:k.messageHandlers)==null?void 0:$.COLEXIU),T=(e,t)=>{if(h.isApp){const o=b();c[o]=t||_,e.content=e.content?A(d({},e.content),{uuid:o}):{uuid:o},_e.postMessage(JSON.stringify(e)),console.log("send:",JSON.stringify(e))}},Le=(e,t)=>{if(h.isApp){const o=e+b();c[o]=t||_}},Pe=(e,t)=>{if(h.isApp){const o=e;if(Array.isArray(c[o])){const i=c[o].indexOf(t);c[o].splice(i,1)}}},O=K({timeout:2e4,timeoutMessage:"\u8BF7\u6C42\u8D85\u65F6"});let j=!1;O.interceptors.request.use((e,t)=>{t.hideLoading||f.loading({message:"\u52A0\u8F7D\u4E2D...",forbidClick:!0,loadingType:"spinner",duration:0}),j=t.initRequest||!1;const o=sessionStorage.getItem("Authorization")||"",i={};return o&&!["/api-auth/usernameLogin","/api-auth/smsLogin","/api-auth/code/sendSms"].includes(e)&&(i.Authorization=o),{url:e,options:A(d({},t),{params:W(t.params),headers:d(d({},t.headers),i)})}},{global:!1});O.interceptors.response.use(async e=>{if(f.clear(),e.status>299||e.status<200){const o="\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u72B6\u6001\u7801"+e.status;throw f(o),new Error(o)}const t=await e.clone().json();if(t.code!==200&&t.errCode!==0){const o=t.msg||"\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5";j&&(t.code===403||t.code===401?F():R()),t.code===403||t.code===401||f(o);const i=C();throw t.code===403&&(i.isApp?T({api:"login"}):F()),new Error(o)}return e},{global:!1});var he=P({name:"Auth",data(){return{loading:!1}},computed:{isNeedView(){return a.user.status==="login"||this.$route.path==="/login"}},mounted(){this.setAuth()},methods:{async setAuth(){const{query:e}=this.$route,t=e.userInfo||e.Authorization;if(t&&pe(t),!this.loading){if(a.user.status==="init"||a.user.status==="error"){this.loading=!0;try{let o=await O.get("/api-teacher/teacher/queryUserInfo",{requestType:"form",initRequest:!0});me(o.data)}catch(o){const i=o.message;console.log(i),i.indexOf("430")===-1&&i.indexOf("authentication")===-1?R():F()}this.loading=!1}if(a.user.status==="logout")if(C().isApp)T({api:"login"});else try{let o=this.$route,i=d({returnUrl:this.$route.path},this.$route.query);o.meta.isRegister&&(i.isRegister=o.meta.isRegister),this.$router.replace({path:"/login",query:i})}catch{}}}},render(){return l(J,null,[a.user.status==="error"?l("div",{class:w.error},[l("div",{class:w.info},[l(Y,{name:"clear",size:"36",color:"#ee0a24"},null),l("span",null,[I("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5")])]),l(G,{type:"primary",round:!0,onClick:this.setAuth},{default:()=>[I("\u91CD\u65B0\u52A0\u8F7D")]})]):this.isNeedView?l(Q,null,null):null])}});const ge=[{path:"/orderDetail",name:"orderDetail",component:()=>s(()=>import("./index.b4787473.js"),["assets/index.b4787473.js","assets/index.2dd802ff.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.e07367fb.css","assets/index.c3ad47f3.css","assets/index.4da210b7.css","assets/index.ed0ac76f.css","assets/index.12b0b096.js","assets/index.ffae849d.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.a7c0c7b3.js","assets/index.1136e070.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.4a6e1440.js","assets/index.dc6d0ec1.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u8BA2\u5355\u8BE6\u60C5"}},{path:"/tradeDetail",name:"tradeDetail",component:()=>s(()=>import("./trade-detail.0e133d42.js"),["assets/trade-detail.0e133d42.js","assets/trade-detail.bdd6c940.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/index.4a6e1440.js","assets/index.dc6d0ec1.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/music.58da0cac.js","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u4EA4\u6613\u8BE6\u60C5"}}],Ee=[{path:"/registerProtocol",name:"registerProtocol",component:()=>s(()=>import("./register.30df4c6a.js"),["assets/register.30df4c6a.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css"]),meta:{title:"\u6CE8\u518C\u534F\u8BAE"}},{path:"/privacyProtocol",name:"privacyProtocol",component:()=>s(()=>import("./privacy.532530d1.js"),["assets/privacy.532530d1.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css"]),meta:{title:"\u9177\u4E50\u79C0\u9690\u79C1\u653F\u7B56"}}];var Ae=[{path:"/",component:he,children:[...ge,{path:"/login",name:"login",component:()=>s(()=>import("./login.321bc64e.js"),["assets/login.321bc64e.js","assets/login.392ab8af.css","assets/index.935001ee.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/validate.ba62cd4c.js"]),meta:{isRegister:!1}},{path:"/home",name:"home",component:()=>s(()=>import("./index.e9d01064.js"),["assets/index.e9d01064.js","assets/index.66617849.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css"])},{path:"/teacherCert",name:"teacherCert",component:()=>s(()=>import("./index.58611d01.js"),["assets/index.58611d01.js","assets/index.184c1243.css","assets/index.725eb6f5.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.c1ee5538.css","assets/index.ed0ac76f.css","assets/index.6073691f.css","assets/index.f6ecd2b5.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.abae64ed.js","assets/index.81acfb05.css","assets/index.a7c0c7b3.js","assets/index.1136e070.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css","assets/index.4a6e1440.js","assets/index.dc6d0ec1.css","assets/index.12b0b096.js","assets/index.ffae849d.css","assets/icon_checkbox_default.2fe5d57e.js","assets/validate.ba62cd4c.js","assets/index.d82d47c9.js","assets/index.4315b8bd.css"]),meta:{title:"\u8001\u5E08\u8BA4\u8BC1"}},{path:"/music-upload",component:()=>s(()=>import("./index.f8298216.js"),["assets/index.f8298216.js","assets/index.dff2fccb.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.725eb6f5.css","assets/index.c1ee5538.css","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.f6ecd2b5.css","assets/index.ed0ac76f.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/music.58da0cac.js"]),meta:{title:"\u4E0A\u4F20\u66F2\u8C31"}},{path:"/music-list",component:()=>s(()=>import("./switch.9317992e.js"),["assets/switch.9317992e.js","assets/switch.7ac36fff.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.85a0c0a7.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css"]),meta:{title:"\u66F2\u8C31\u5217\u8868"}},{path:"/openLive",name:"openLive",component:()=>s(()=>import("./index.4ec6a39b.js"),["assets/index.4ec6a39b.js","assets/index.72d9a668.css","assets/index.09cb4b8c.css","assets/index.e07367fb.css","assets/index.4da210b7.css","assets/index.725eb6f5.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.4a6e1440.js","assets/index.dc6d0ec1.css","assets/icon_teacher.2c3a434a.js","assets/index.bb7d2dda.js","assets/index.9b8bd839.css"]),meta:{title:"\u5F00\u901A\u76F4\u64AD"}},{path:"/liveDetail",name:"liveDetail",component:()=>s(()=>import("./live-detail.e012ac35.js"),["assets/live-detail.e012ac35.js","assets/live-detail.e145559e.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/index.7b9b1b65.js","assets/index.155bb36b.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.ed2361bf.js","assets/index.3f72abd0.css","assets/index.81d47544.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.b8d3d738.js","assets/index.0b7fa5cb.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css"]),meta:{title:"\u76F4\u64AD\u8BFE\u8BE6\u60C5"}},{path:"/musicCert",name:"musicCert",component:()=>s(()=>import("./index.d997155a.js"),["assets/index.d997155a.js","assets/index.afbc962b.css","assets/index.e07367fb.css","assets/index.725eb6f5.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css"]),meta:{title:"\u97F3\u4E50\u4EBA\u8BA4\u8BC1"}},{path:"/videoCreate",name:"videoCreate",component:()=>s(()=>import("./create.c195f038.js"),["assets/create.c195f038.js","assets/create.90c3f81f.css","assets/index.4f250b7f.css","assets/index.ed0ac76f.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.e07367fb.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.f6ecd2b5.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/index.a7c0c7b3.js","assets/index.1136e070.css","assets/index.d82d47c9.js","assets/index.4315b8bd.css","assets/toolsValidate.add49407.js","assets/index.abae64ed.js","assets/index.81acfb05.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.81d47544.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.ed2361bf.js","assets/index.3f72abd0.css","assets/index.8effea27.js","assets/index.4f982772.css"]),meta:{title:"\u521B\u5EFA\u89C6\u9891\u8BFE"}},{path:"/videoDetail",name:"videoDetail",component:()=>s(()=>import("./video-detail.02dc959c.js"),["assets/video-detail.02dc959c.js","assets/video-detail.b0b04a2d.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.09cb4b8c.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/index.8effea27.js","assets/index.4f982772.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.ed2361bf.js","assets/index.3f72abd0.css","assets/index.81d47544.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.b8d3d738.js","assets/index.0b7fa5cb.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css"]),meta:{title:"\u89C6\u9891\u8BFE\u8BE6\u60C5"}},{path:"/videoClassDetail",name:"videoClassDetail",component:()=>s(()=>import("./video-class-detail.03798daf.js"),["assets/video-class-detail.03798daf.js","assets/video-class-detail.d5f4020c.css","assets/index.09cb4b8c.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.c3ad47f3.css","assets/index.935001ee.css","assets/index.8effea27.js","assets/index.4f982772.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.ed2361bf.js","assets/index.3f72abd0.css","assets/index.4a6e1440.js","assets/index.dc6d0ec1.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u89C6\u9891\u8BFE\u8BE6\u60C5"}},{path:"/liveCreate",name:"liveCreate",component:()=>s(()=>import("./create.93bc6ea0.js"),["assets/create.93bc6ea0.js","assets/create.db793191.css","assets/index.4f250b7f.css","assets/index.9bdb045e.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.725eb6f5.css","assets/index.ed0ac76f.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.c1ee5538.css","assets/index.f6ecd2b5.css","assets/index.935001ee.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/index.a7c0c7b3.js","assets/index.1136e070.css","assets/index.abae64ed.js","assets/index.81acfb05.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css","assets/toolsValidate.add49407.js","assets/index.d82d47c9.js","assets/index.4315b8bd.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.7b9b1b65.js","assets/index.155bb36b.css","assets/index.ed2361bf.js","assets/index.3f72abd0.css","assets/index.81d47544.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u521B\u5EFA\u76F4\u64AD\u8BFE"}},{path:"/practiceSetting",name:"practiceSetting",component:()=>s(()=>import("./practice-setting.dea7d195.js"),["assets/practice-setting.dea7d195.js","assets/practice-setting.36b8f1bc.css","assets/index.c1ee5538.css","assets/index.725eb6f5.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.9bdb045e.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/index.16a831eb.js","assets/index.eae913ee.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css","assets/index.abae64ed.js","assets/index.81acfb05.css","assets/index.a7c0c7b3.js","assets/index.1136e070.css","assets/index.bb7d2dda.js","assets/index.9b8bd839.css","assets/toolsValidate.add49407.js"]),meta:{title:"\u966A\u7EC3\u8BFE\u8BBE\u7F6E"}}]},...Ee,{path:"/:pathMatch(.*)*",component:()=>s(()=>import("./index.1d06dc84.js"),["assets/index.1d06dc84.js","assets/index.5361fbba.css","assets/index.e07367fb.css","assets/vendor.f8cdf923.js","assets/vendor.177057eb.css"]),meta:{title:"404 Not Fund",platform:"TEACHER"}}];const V=Z({history:ee(),routes:Ae});V.beforeEach((e,t,o)=>{document.title=e.meta.title||"\u9177\u4E50\u79C0",o()});var ve={moneyFormat(e){return te(e).format("0,0.00")},dateFormat(e,t="YYYY-MM-DD HH:mm:ss"){return v(e).format(t)}};const g=oe(ue);v.locale("zh-ch");g.config.globalProperties.$dayjs=v;g.config.globalProperties.$filters=ve;g.use(V);g.mount("#app");export{Oe as a,pe as b,me as c,C as d,Pe as e,ye as f,De as g,Le as l,T as p,O as r,a as s};