index-6f92ab74.js 38 KB

12345
  1. import{r as q,w as ie,c as Ne,d as ue,y as pe,ay as Ve,ar as Te,f as De,a as s,V as fe,h as Ue,ae as je,F as _,m as J,ab as Fe,n as Qe,t as K,a4 as ze,z as Ce,aE as he,aF as Ge,ac as _e,I as Ie,aG as Ye,k as Je,x as Z,a8 as Ke,A as j,C as ae,U as Xe,M as ye,e as ge,a6 as X,am as He,L as Ze,a1 as $e,aH as et,aI as tt,E as se,an as ot,D as nt}from"./index-95adcbf8.js";import{M as rt}from"./index-fd62510e.js";import{i as at,b as st,c as it}from"./api-157ab143.js";import{h as ct}from"./html2canvas.esm-9945d45c.js";import{g as G,s as I,a as lt,b as ut}from"./api-d2decc29.js";import{T as pt}from"./index-75a39f90.js";import{N as we}from"./index-2b3e96f0.js";import"./index-fea02c4f.js";import"./index-6b775f18.js";const ft=(e,t)=>{const n=q(e());return ie(e,o=>{o!==n.value&&(n.value=o)}),ie(n,o=>{o!==e()&&t(o)}),n};function B(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function de(e){var t=B(e).Element;return e instanceof t||e instanceof Element}function M(e){var t=B(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Re(e){if(typeof ShadowRoot>"u")return!1;var t=B(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Q=Math.round;function ce(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dt(){return!/^((?!chrome|android).)*safari/i.test(ce())}function ee(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,i=1;t&&M(e)&&(r=e.offsetWidth>0&&Q(o.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Q(o.height)/e.offsetHeight||1);var u=de(e)?B(e):window,l=u.visualViewport,c=!dt()&&n,v=(o.left+(c&&l?l.offsetLeft:0))/r,a=(o.top+(c&&l?l.offsetTop:0))/i,m=o.width/r,S=o.height/i;return{width:m,height:S,top:a,right:v+m,bottom:a+S,left:v,x:v,y:a}}function Me(e){var t=B(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function vt(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mt(e){return e===B(e)||!M(e)?Me(e):vt(e)}function L(e){return e?(e.nodeName||"").toLowerCase():null}function ne(e){return((de(e)?e.ownerDocument:e.document)||window.document).documentElement}function ht(e){return ee(ne(e)).left+Me(e).scrollLeft}function W(e){return B(e).getComputedStyle(e)}function ve(e){var t=W(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function yt(e){var t=e.getBoundingClientRect(),n=Q(t.width)/e.offsetWidth||1,o=Q(t.height)/e.offsetHeight||1;return n!==1||o!==1}function gt(e,t,n){n===void 0&&(n=!1);var o=M(t),r=M(t)&&yt(t),i=ne(t),u=ee(e,r,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&((L(t)!=="body"||ve(i))&&(l=mt(t)),M(t)?(c=ee(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ht(i))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function wt(e){var t=ee(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function me(e){return L(e)==="html"?e:e.assignedSlot||e.parentNode||(Re(e)?e.host:null)||ne(e)}function Be(e){return["html","body","#document"].indexOf(L(e))>=0?e.ownerDocument.body:M(e)&&ve(e)?e:Be(me(e))}function $(e,t){var n;t===void 0&&(t=[]);var o=Be(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=B(o),u=r?[i].concat(i.visualViewport||[],ve(o)?o:[]):o,l=t.concat(u);return r?l:l.concat($(me(u)))}function bt(e){return["table","td","th"].indexOf(L(e))>=0}function be(e){return!M(e)||W(e).position==="fixed"?null:e.offsetParent}function St(e){var t=/firefox/i.test(ce()),n=/Trident/i.test(ce());if(n&&M(e)){var o=W(e);if(o.position==="fixed")return null}var r=me(e);for(Re(r)&&(r=r.host);M(r)&&["html","body"].indexOf(L(r))<0;){var i=W(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Pe(e){for(var t=B(e),n=be(e);n&&bt(n)&&W(n).position==="static";)n=be(n);return n&&(L(n)==="html"||L(n)==="body"&&W(n).position==="static")?t:n||St(e)||t}var F="top",te="bottom",Y="right",D="left",qe="auto",xt=[F,te,Y,D],Le="start",oe="end",kt=[].concat(xt,[qe]).reduce(function(e,t){return e.concat([t,t+"-"+Le,t+"-"+oe])},[]),Ot="beforeRead",Et="read",At="afterRead",Ct="beforeMain",It="main",Rt="afterMain",Mt="beforeWrite",Bt="write",Pt="afterWrite",le=[Ot,Et,At,Ct,It,Rt,Mt,Bt,Pt];function qt(e){var t=new Map,n=new Set,o=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var u=[].concat(i.requires||[],i.requiresIfExists||[]);u.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&r(c)}}),o.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),o}function Lt(e){var t=qt(e);return le.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function Wt(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function N(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return[].concat(n).reduce(function(r,i){return r.replace(/%s/,i)},e)}var V='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Nt='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Se=["name","enabled","phase","fn","effect","requires","options"];function Vt(e){e.forEach(function(t){[].concat(Object.keys(t),Se).filter(function(n,o,r){return r.indexOf(n)===o}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(N(V,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(N(V,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":le.indexOf(t.phase)<0&&console.error(N(V,t.name,'"phase"',"either "+le.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(N(V,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(N(V,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(N(V,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(N(V,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+Se.map(function(o){return'"'+o+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(o){e.find(function(r){return r.name===o})==null&&console.error(N(Nt,String(t.name),o,o))})})})}function Tt(e,t){var n=new Set;return e.filter(function(o){var r=t(o);if(!n.has(r))return n.add(r),!0})}function re(e){return e.split("-")[0]}function Dt(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}function We(e){return e.split("-")[1]}function Ut(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jt(e){var t=e.reference,n=e.element,o=e.placement,r=o?re(o):null,i=o?We(o):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(r){case F:c={x:u,y:t.y-n.height};break;case te:c={x:u,y:t.y+t.height};break;case Y:c={x:t.x+t.width,y:l};break;case D:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var v=r?Ut(r):null;if(v!=null){var a=v==="y"?"height":"width";switch(i){case Le:c[v]=c[v]-(t[a]/2-n[a]/2);break;case oe:c[v]=c[v]+(t[a]/2-n[a]/2);break}}return c}var xe="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ft="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",ke={placement:"bottom",modifiers:[],strategy:"absolute"};function Oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Qt(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?ke:r;return function(l,c,v){v===void 0&&(v=i);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ke,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},m=[],S=!1,b={state:a,setOptions:function(O){var h=typeof O=="function"?O(a.options):O;k(),a.options=Object.assign({},i,a.options,h),a.scrollParents={reference:de(l)?$(l):l.contextElement?$(l.contextElement):[],popper:$(c)};var p=Lt(Dt([].concat(o,a.options.modifiers)));a.orderedModifiers=p.filter(function(E){return E.enabled});{var f=Tt([].concat(p,a.options.modifiers),function(E){var U=E.name;return U});if(Vt(f),re(a.options.placement)===qe){var y=a.orderedModifiers.find(function(E){var U=E.name;return U==="flip"});y||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var w=W(c),A=w.marginTop,d=w.marginRight,C=w.marginBottom,P=w.marginLeft;[A,d,C,P].some(function(E){return parseFloat(E)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return R(),b.update()},forceUpdate:function(){if(!S){var O=a.elements,h=O.reference,p=O.popper;if(!Oe(h,p)){console.error(xe);return}a.rects={reference:gt(h,Pe(p),a.options.strategy==="fixed"),popper:wt(p)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(E){return a.modifiersData[E.name]=Object.assign({},E.data)});for(var f=0,y=0;y<a.orderedModifiers.length;y++){if(f+=1,f>100){console.error(Ft);break}if(a.reset===!0){a.reset=!1,y=-1;continue}var w=a.orderedModifiers[y],A=w.fn,d=w.options,C=d===void 0?{}:d,P=w.name;typeof A=="function"&&(a=A({state:a,options:C,name:P,instance:b})||a)}}},update:Wt(function(){return new Promise(function(x){b.forceUpdate(),x(a)})}),destroy:function(){k(),S=!0}};if(!Oe(l,c))return console.error(xe),b;b.setOptions(v).then(function(x){!S&&v.onFirstUpdate&&v.onFirstUpdate(x)});function R(){a.orderedModifiers.forEach(function(x){var O=x.name,h=x.options,p=h===void 0?{}:h,f=x.effect;if(typeof f=="function"){var y=f({state:a,name:O,instance:b,options:p}),w=function(){};m.push(y||w)}})}function k(){m.forEach(function(x){return x()}),m=[]}return b}}var H={passive:!0};function zt(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,i=r===void 0?!0:r,u=o.resize,l=u===void 0?!0:u,c=B(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&v.forEach(function(a){a.addEventListener("scroll",n.update,H)}),l&&c.addEventListener("resize",n.update,H),function(){i&&v.forEach(function(a){a.removeEventListener("scroll",n.update,H)}),l&&c.removeEventListener("resize",n.update,H)}}var Gt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zt,data:{}};function _t(e){var t=e.state,n=e.name;t.modifiersData[n]=jt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Yt={name:"popperOffsets",enabled:!0,phase:"read",fn:_t,data:{}},Jt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kt(e){var t=e.x,n=e.y,o=window,r=o.devicePixelRatio||1;return{x:Q(t*r)/r||0,y:Q(n*r)/r||0}}function Ee(e){var t,n=e.popper,o=e.popperRect,r=e.placement,i=e.variation,u=e.offsets,l=e.position,c=e.gpuAcceleration,v=e.adaptive,a=e.roundOffsets,m=e.isFixed,S=u.x,b=S===void 0?0:S,R=u.y,k=R===void 0?0:R,x=typeof a=="function"?a({x:b,y:k}):{x:b,y:k};b=x.x,k=x.y;var O=u.hasOwnProperty("x"),h=u.hasOwnProperty("y"),p=D,f=F,y=window;if(v){var w=Pe(n),A="clientHeight",d="clientWidth";if(w===B(n)&&(w=ne(n),W(w).position!=="static"&&l==="absolute"&&(A="scrollHeight",d="scrollWidth")),w=w,r===F||(r===D||r===Y)&&i===oe){f=te;var C=m&&w===y&&y.visualViewport?y.visualViewport.height:w[A];k-=C-o.height,k*=c?1:-1}if(r===D||(r===F||r===te)&&i===oe){p=Y;var P=m&&w===y&&y.visualViewport?y.visualViewport.width:w[d];b-=P-o.width,b*=c?1:-1}}var E=Object.assign({position:l},v&&Jt),U=a===!0?Kt({x:b,y:k}):{x:b,y:k};if(b=U.x,k=U.y,c){var z;return Object.assign({},E,(z={},z[f]=h?"0":"",z[p]=O?"0":"",z.transform=(y.devicePixelRatio||1)<=1?"translate("+b+"px, "+k+"px)":"translate3d("+b+"px, "+k+"px, 0)",z))}return Object.assign({},E,(t={},t[f]=h?k+"px":"",t[p]=O?b+"px":"",t.transform="",t))}function Xt(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,i=n.adaptive,u=i===void 0?!0:i,l=n.roundOffsets,c=l===void 0?!0:l;{var v=W(t.elements.popper).transitionProperty||"";u&&["transform","top","right","bottom","left"].some(function(m){return v.indexOf(m)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
  2. `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
  3. `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var a={placement:re(t.placement),variation:We(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ht={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xt,data:{}};function Zt(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!M(i)||!L(i)||(Object.assign(i.style,o),Object.keys(r).forEach(function(u){var l=r[u];l===!1?i.removeAttribute(u):i.setAttribute(u,l===!0?"":l)}))})}function $t(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],i=t.attributes[o]||{},u=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),l=u.reduce(function(c,v){return c[v]="",c},{});!M(r)||!L(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(c){r.removeAttribute(c)}))})}}var eo={name:"applyStyles",enabled:!0,phase:"write",fn:Zt,effect:$t,requires:["computeStyles"]},to=[Gt,Yt,Ht,eo],oo=Qt({defaultModifiers:to});function no(e,t,n){var o=re(e),r=[D,F].indexOf(o)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=i[0],l=i[1];return u=u||0,l=(l||0)*r,[D,Y].indexOf(o)>=0?{x:l,y:u}:{x:u,y:l}}function ro(e){var t=e.state,n=e.options,o=e.name,r=n.offset,i=r===void 0?[0,0]:r,u=kt.reduce(function(a,m){return a[m]=no(m,t.rects,i),a},{}),l=u[t.placement],c=l.x,v=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=v),t.modifiersData[o]=u}var ao={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ro};const[so,T]=Ne("popover"),io=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],co={show:Boolean,theme:J("light"),overlay:Boolean,actions:Fe(),actionsDirection:J("vertical"),trigger:J("click"),duration:Qe,showArrow:K,placement:J("bottom"),iconPrefix:String,overlayClass:ze,overlayStyle:Object,closeOnClickAction:K,closeOnClickOverlay:K,closeOnClickOutside:K,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var lo=ue({name:so,props:co,emits:["select","touchstart","update:show"],setup(e,{emit:t,slots:n,attrs:o}){let r;const i=q(),u=q(),l=q(),c=ft(()=>e.show,h=>t("update:show",h)),v=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},_e({},ao,{options:{offset:e.offset}})]}),a=()=>u.value&&l.value?oo(u.value,l.value.popupRef.value,v()):null,m=()=>{Ce(()=>{c.value&&(r?r.setOptions(v()):(r=a(),he&&(window.addEventListener("animationend",m),window.addEventListener("transitionend",m))))})},S=h=>{c.value=h},b=()=>{e.trigger==="click"&&(c.value=!c.value)},R=(h,p)=>{h.disabled||(t("select",h,p),e.closeOnClickAction&&(c.value=!1))},k=()=>{c.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(c.value=!1)},x=(h,p)=>n.action?n.action({action:h,index:p}):[h.icon&&s(Ie,{name:h.icon,classPrefix:e.iconPrefix,class:T("action-icon")},null),s("div",{class:[T("action-text"),{[Ye]:e.actionsDirection==="vertical"}]},[h.text])],O=(h,p)=>{const{icon:f,color:y,disabled:w,className:A}=h;return s("div",{role:"menuitem",class:[T("action",{disabled:w,"with-icon":f}),{[Ge]:e.actionsDirection==="horizontal"},A],style:{color:y},tabindex:w?void 0:0,"aria-disabled":w||void 0,onClick:()=>R(h,p)},[x(h,p)])};return pe(()=>{m(),Ve(()=>{var h;i.value=(h=l.value)==null?void 0:h.popupRef.value})}),Te(()=>{r&&(he&&(window.removeEventListener("animationend",m),window.removeEventListener("transitionend",m)),r.destroy(),r=null)}),ie(()=>[c.value,e.offset,e.placement],m),De([u,i],k,{eventName:"touchstart"}),()=>{var h;return s(_,null,[s("span",{ref:u,class:T("wrapper"),onClick:b},[(h=n.reference)==null?void 0:h.call(n)]),s(fe,Ue({ref:l,show:c.value,class:T([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":S},o,je(e,io)),{default:()=>[e.showArrow&&s("div",{class:T("arrow")},null),s("div",{role:"menu",class:T("content",e.actionsDirection)},[n.default?n.default():e.actions.map(O)])]})])}}});const Ae=Je(lo),uo="_back_1y3kp_1",po="_musicCFixed_1y3kp_16",fo="_musicName_1y3kp_21",vo="_popoverMusic_1y3kp_27",mo="_container_1y3kp_36",ho="_content_1y3kp_42",yo="_opacityBg_1y3kp_47",go="_leftContent_1y3kp_52",wo="_leftBg_1y3kp_57",bo="_leftBg2_1y3kp_68",So="_types_1y3kp_78",xo="_type_1y3kp_78",ko="_typeActive_1y3kp_98",Oo="_typeImg_1y3kp_98",Eo="_scaleBtn_1y3kp_1",Ao="_typeIcon_1y3kp_112",Co="_center_1y3kp_123",Io="_centerSearch_1y3kp_130",Ro="_musicContent_1y3kp_141",Mo="_searchNotice_1y3kp_152",Bo="_searchNoticeShow_1y3kp_161",Po="_musicItem_1y3kp_164",qo="_disableNotic_1y3kp_177",Lo="_musicActive_1y3kp_181",Wo="_musicAvtor_1y3kp_191",No="_musicInfo_1y3kp_205",Vo="_noticeBar_1y3kp_213",To="_musicDes_1y3kp_217",Do="_musicFavitor_1y3kp_222",Uo="_musicAuthor_1y3kp_234",jo="_musicIcon_1y3kp_242",Fo="_right_1y3kp_246",Qo="_staff_1y3kp_262",zo="_rightBox_1y3kp_265",Go="_rightBtns_1y3kp_271",_o="_rightBtnsRight_1y3kp_297",Yo="_loadingWrap_1y3kp_323",Jo="_empty_1y3kp_328",Ko="_displayIcon_1y3kp_1",g={back:uo,musicCFixed:po,musicName:fo,popoverMusic:vo,container:mo,content:ho,opacityBg:yo,leftContent:go,leftBg:wo,leftBg2:bo,types:So,type:xo,typeActive:ko,typeImg:Oo,scaleBtn:Eo,typeIcon:Ao,center:Co,centerSearch:Io,musicContent:Ro,searchNotice:Mo,searchNoticeShow:Bo,musicItem:Po,disableNotic:qo,musicActive:Lo,musicAvtor:Wo,musicInfo:No,noticeBar:Vo,musicDes:To,musicFavitor:Do,musicAuthor:Uo,musicIcon:jo,right:Fo,"right-musicName":"_right-musicName_1y3kp_254",staff:Qo,rightBox:zo,rightBtns:Go,rightBtnsRight:_o,loadingWrap:Yo,empty:Jo,displayIcon:Ko},Xo=""+new URL("icon_down-27184904.svg",import.meta.url).href,Ho=""+new URL("icon_jianpuActive-17580202.svg",import.meta.url).href,Zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAA8CAMAAAAt4rT4AAAC61BMVEUAAAA+vP9Dyf8nn/9Fyv9Cwf9Eyf8mnv8oof9Fy/9FzP8mnv9Cxv8mnv9Dyf9Eyv8nn/8pov9Izf8roP9Eyv9Gzf8ooP8on/8oov9Gy/8nnv8pn/8qo/9Bx/9Fzf9GzP9Cx/////8mn/8oof9Dyf8rpv8yr/4pov0qpP88vv49wP4sqP83t/8wrP40s/47vf86vP4sp/05uv4tqf81tP82tf8+wv84uP5Eyv8uqv8xrv82tv0vq/8lnf8zsf08v/89v/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tiV/jV6PWb2e7pxbffw9Hl8N3X8c/drHmOZy8iDLgsPEZrzurDJQVSknaZW8TvaJeH/dBEu1iOSsIqVuBc5lYJKonOj/ABMBTrXuhC1L+60Gj1O91MwpDXL3ZfZV2KeqbMCYdLdC1DFBqK8CWjpfSdMAw2XNXI+lkatM4ClYQuCIqsX3SJVWiL+tEJKumiUrvee2aCD3GTMjjIhW2sLDR6rf55p4nqIAiS0MRQSYI0dnZCG8NAs9D1uqXiizZc6EAl0bIKc7OespNFiPbZYjlIUxyuQCVRpXAQUS59WWjcE04Y0412u91DtRvUFIAQhPEEzxeg5hVJGpSjNDVlGJw4oV+BStIsW4TGFBp8B1UqzEQFKsmKPSPNWYlylYN31OUkjXBcNAhxCXguVpA0+tRv4JNDamgnaWZSBNRBSbSIko+bFSRN8EGQZVsGdZWk/SlJ8+BGTJK6qGoDwC4c47NJwJJiGmeLbnEZptwTkJM62QyDCh05CbfmdRGSezIGNMVoUM49lSEn6Wj5nqGYZDnU+og7vNqldDVKoXHxKrBWP8M7egdVHC2UrMFgCvmqxvig9MZFSs3oatplbgWlFrICfEpnC2bZ81ZAraUIMu0yBBTCUMy3cIkqt4upuNllw4UmSAO7gN65rqpcFJVTalswi7wuAVC0z1ZsGejIghLsKZT56YkI8t2AcR8uAyXDLRXG4VJVkkjmbuV2bdb1tlWLG1fshH7jIvZkpwy6FZRauBWbRulOCGD87nj/k3Wy8HxJA0kTHLINF6crBYTIPSWAUE1myxF/ERasJBg1tYvt9y3tSV63MFxTE1thKd5/y48xaBd0kUKOrdBHS1FJHy18k1ITSbyca51JQEl+wastGS3dMtLTk7F3rkpzVluFsRXe+mOMf11rnoZKh2qbAAAAAElFTkSuQmCC",$o={icon_start:Zo},en=ue({name:"coai-guide",emits:["close"],setup(e,{emit:t}){const n=Z({box:{},show:!1,steps:[{ele:"",eleRect:{},img:G("coai-1.png"),handStyle:{top:"0.91rem"},imgStyle:{top:"1.5rem",width:"6.55rem",height:"2.76rem"},btnsStyle:{top:"4.7rem",left:"2.0rem",transform:"scale(1.2)"},boxStyle:{borderRadius:"40px",transform:"scale(1)"}},{ele:"",img:G("coai-2.png"),handStyle:{top:"-1.39rem",left:"0.15rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:G("coai-3.png"),handStyle:{top:"-1.39rem",left:"0.17rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem"},btnsStyle:{top:"-1.3rem",left:"1.3rem"}},{ele:"",img:G("coai-4.png"),handStyle:{top:"-1.39rem",left:"1.4rem",transform:"rotate(180deg)"},imgStyle:{top:"-4rem",left:"-3.7rem",width:"6.00rem",height:"2.53rem"},boxStyle:{borderRadius:"40px",transform:"scale(1.1)"},btnsStyle:{top:"-1.1rem",left:"-3.8rem","justify-content":"center",padding:0}}],step:0}),o=q(!1),r=q({});(async()=>{var a;try{const m=await lt({guideTag:"guideInfo"});m.data?r.value=JSON.parse((a=m.data)==null?void 0:a.guideValue)||null:r.value={},r.value&&r.value.coaiGuide?o.value=!1:o.value=!0}catch(m){console.log(m)}})();const u=()=>{console.log(`coai-${n.step}`);const a=document.getElementById(`coai-${n.step}`);if(a){const m=a.getBoundingClientRect();n.box={left:m.x+"px",top:m.y+"px",width:m.width+"px",height:m.height+"px"}}else c()};pe(()=>{u(),window.addEventListener("resize",l)});const l=()=>{u()};Ke(()=>{window.removeEventListener("resize",l)});const c=()=>{if(n.step>=3){v();return}n.step=n.step+1,u()},v=async()=>{r.value?r.value.coaiGuide=!0:r.value={coaiGuide:!0};try{const a=await ut({guideTag:"guideInfo",guideValue:JSON.stringify(r.value)})}catch(a){console.log(a)}o.value=!1};return()=>s(fe,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",I.guidePopup],show:o.value,"onUpdate:show":a=>o.value=a},{default:()=>[s("div",{class:I.content,onClick:()=>c()},[n.step!=n.steps.length-1&&s("div",{class:I.backBtn,onClick:a=>{a.stopPropagation(),v()}},[j("跳过")]),s("div",{class:I.box,style:{...n.box,...n.steps[n.step].boxStyle},id:`modeType-${n.step}`},[n.steps.map((a,m)=>{var S,b;return s("div",{onClick:R=>R.stopPropagation(),class:I.item,style:{display:m===n.step?"":"none",left:`${(S=a.eleRect)==null?void 0:S.left}px`,top:`${(b=a.eleRect)==null?void 0:b.top}px`}},[s("img",{class:I.img,style:a.imgStyle,src:a.img},null),s("img",{class:I.iconHead,style:a.handStyle,src:G("indexDot.png")},null),s("div",{class:I.btns,style:a.btnsStyle},[n.step+1==n.steps.length?s(_,null,[s(ae,{class:[I.btn],round:!0,type:"primary",onClick:()=>v()},{default:()=>[j("完成")]}),s(ae,{class:[I.btn,I.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,u()}},{default:()=>[j("再看一遍")]})]):s(ae,{class:I.btn,round:!0,type:"primary",onClick:()=>c()},{default:()=>[j("下一步 ("),n.step+1,j("/"),n.steps.length,j(")")]})])])})])])]})}}),pn=ue({name:"co-ai",setup(){var O,h;const e=Xe(),t=Z({page:1,rows:999,subjectId:((O=ye.user.data)==null?void 0:O.subjectId)||"",musicTagIds:e.query.musicTagId?[e.query.musicTagId]:[]}),n=Z({page:1,rows:20,status:1,keyword:"",musicSheetCategoriesId:e.query.id}),o=Z({musicSheetCategoriesName:e.query.name,typeIndex:0,musicIndex:0,showMusicImg:"first",popoverShow:!1,popoverMusicShow:!1,types:[],musics:[],loading:!0,finshed:!1,searchNoticeShow:!1,searchNotice:{left:"",top:"",width:"",height:""},showVip:!1,vipMember:(h=ye.user.data)==null?void 0:h.vipMember}),r=q(),i=q(!1),u=ge(()=>[{value:"staff",text:"五线谱"},{value:"first",text:"首调"},{value:"fixed",text:"固定调"}].map((p,f)=>({...p,color:o.showMusicImg===p.value?"var(--van-primary-color)":"",className:o.showMusicImg===p.value?"fontBlod":""}))),l=ge(()=>o.types.map(p=>({...p,color:n.musicSheetCategoriesId==p.value?"var(--van-primary-color)":"",className:n.musicSheetCategoriesId==p.value?"fontBlod":""}))),c=()=>{X({api:"goBack"})},v=()=>{var y;if(!o.vipMember){o.showVip=!0;return}let p="staff";o.showMusicImg==="first"?p="firstTone":o.showMusicImg==="fixed"?p="fixedTone":o.showMusicImg==="staff"&&(p="staff");let f=`${location.origin}/instrument?id=${(y=o.musics[o.musicIndex])==null?void 0:y.id}&musicRenderType=${p}&showGuide=true`;X({api:"openAccompanyWebView",content:{url:f,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0,c_orientation:0}})},a=async()=>{tt({message:"正在保存",duration:0});try{ct(r.value,{backgroundColor:"#fff",allowTaint:!0,useCORS:!0}).then(async p=>{var f=p.toDataURL("image/png",1);setTimeout(()=>{se("已保存到相册")},500);const y=await ot({api:"savePicture",content:{base64:f}})}).catch(()=>{setTimeout(()=>{se("保存失败")},500)})}catch(p){setTimeout(()=>{se("保存失败")},500)}},m=async()=>{var p;try{const f=await st({...t});if(f.code===200&&Array.isArray((p=f==null?void 0:f.data)==null?void 0:p.rows)){const y=[];f.data.rows.forEach(w=>{y.push({value:w.id,text:w.name})}),o.types=y}}catch(f){console.log("🚀 ~ error:",f)}},S=async()=>{var p;o.loading=!0;try{const f=await it({...n});f.code===200&&Array.isArray((p=f==null?void 0:f.data)==null?void 0:p.rows)&&(o.musics=[...o.musics,...f.data.rows],o.finshed=!f.data.next),i.value=!0}catch(f){console.log("🚀 ~ error:",f)}o.loading=!1},b=()=>{n.page=1,o.musics=[],S()},R=q(),k=()=>{o.loading||o.finshed||(n.page=n.page+1,S())},x=()=>{const p=document.querySelector(".searchNotice .van-field__control");if(p){const f=p.getBoundingClientRect();o.searchNotice.left=f.x+"px",o.searchNotice.top=f.y+"px",o.searchNotice.width=f.width+"px",o.searchNotice.height=f.height+"px"}};return pe(async()=>{X({api:"setStatusBarVisibility",content:{isVisibility:0}}),await m(),S();const p=new IntersectionObserver(y=>{y[0].intersectionRatio>0&&k()});Ce(()=>{p.observe(R.value)});const f=async()=>{const y=await nt.get("/edu-app/user/getUserInfo",{initRequest:!0,requestType:"form",hideLoading:!0});(y==null?void 0:y.code)===200&&(o.vipMember=y.data.vipMember)};He("webViewOnResume",()=>{console.log("页面显示"),f(),o.typeIndex=0,o.musicIndex=0,b()}),x()}),()=>{var p,f,y,w,A;return s("div",{class:g.container},[s("div",{class:g.back,onClick:c},[s("img",{src:at},null)]),s("div",{class:g.musicCFixed},[s(Ae,{show:o.popoverMusicShow,"onUpdate:show":d=>o.popoverMusicShow=d,class:g.popoverMusic,actions:l.value,placement:"bottom",showArrow:!1,onSelect:d=>{d.value!=n.musicSheetCategoriesId&&(o.musics=[],n.musicSheetCategoriesId=d.value,o.musicSheetCategoriesName=d.text,o.popoverMusicShow=!1,S())}},{reference:()=>s("span",{class:g.musicName},[o.musicSheetCategoriesName,s(Ie,{name:"arrow-down"},null)])})]),s("div",{class:g.content},[s("div",{class:[g.leftContent]},[s("div",{class:g.leftBg2},null),s("div",{class:g.center},[s("div",{class:g.centerSearch},[s("div",{id:"coai-0"},[s(rt,{class:["searchNotice",o.searchNoticeShow?g.searchNoticeShow:""],shape:"round",background:"transparent",clearable:!1,placeholder:"请输入关键字",modelValue:n.keyword,onFocus:()=>o.searchNoticeShow=!1,onBlur:d=>{n.keyword=(d==null?void 0:d.trim())||"",requestAnimationFrame(()=>{requestAnimationFrame(()=>{n.keyword&&(o.searchNoticeShow=!0)})})},onSearch:d=>{n.keyword=d,b()}},null)])]),s("div",{class:g.musicContent},[o.musics.map((d,C)=>s("div",{class:[g.musicItem,o.musicIndex===C?g.musicActive:g.disableNotic],onClick:()=>o.musicIndex=C},[s("img",{class:g.musicAvtor,src:d.titleImg,onLoad:P=>{P.target.setAttribute("loaded","true")}},null),s("div",{class:g.musicInfo},[s("div",{class:g.musicName},[s(we,{text:d.musicSheetName,class:g.noticeBar,background:"none"},null)]),s("div",{class:g.musicDes},[s("div",{class:g.musicFavitor},[d.usedNum]),s("div",{class:[g.musicAuthor,"van-ellipsis"]},[d.composer||"佚名"])])])])),!o.finshed&&s("div",{ref:R,class:g.loadingWrap},[s(Ze,{color:"#259CFE"},null)]),!o.loading&&o.musics.length===0&&s("div",{class:g.empty},[s($e,{description:"暂无曲谱"},null)])])])]),s("div",{class:[g.opacityBg,g.right]},[s("div",{class:g.rightBox},[s("div",{ref:r},[s("div",{class:g["right-musicName"]},[(p=o.musics[o.musicIndex])==null?void 0:p.musicSheetName]),o.showMusicImg==="first"?s(_,null,[(y=(f=o.musics[o.musicIndex])==null?void 0:f.musicSvg)==null?void 0:y.split(",").map((d,C)=>s("img",{class:g.staff,src:d+"?v="+Date.now(),key:d,crossorigin:"anonymous"},null))]):o.showMusicImg==="fixed"?s(_,null,[s(et,{name:"van-fade"},{default:()=>{var d,C;return[(C=(d=o.musics[o.musicIndex])==null?void 0:d.musicJianSvg)==null?void 0:C.split(",").map((P,E)=>s("img",{class:g.staff,src:P+"?v="+Date.now(),key:P,crossorigin:"anonymous"},null))]}})]):s(_,null,[(A=(w=o.musics[o.musicIndex])==null?void 0:w.musicImg)==null?void 0:A.split(",").map((d,C)=>s("img",{class:g.staff,src:d+"?v="+Date.now(),key:d,crossorigin:"anonymous"},null))])])]),s("div",{class:g.rightBtns},[s(Ae,{show:o.popoverShow,"onUpdate:show":d=>o.popoverShow=d,class:g.popover,actions:u.value,placement:"top-start",onSelect:d=>{o.showMusicImg=d.value,o.popoverShow=!1}},{reference:()=>s("img",{id:"coai-1",src:Ho},null)}),s("img",{id:"coai-2",src:Xo,onClick:a},null),s("div",{class:g.rightBtnsRight,id:"coai-3"},[s("img",{src:$o.icon_start,onClick:()=>v()},null)])])])]),o.searchNotice.width&&o.searchNoticeShow&&s("div",{class:g.searchNotice,style:{...o.searchNotice}},[s(we,{text:n.keyword,color:"#333",background:"none"},null)]),i.value&&s(en,null,null),s(fe,{class:"popup-custom van-scale",transition:"van-scale",closeOnClickOverlay:!1,show:o.showVip,"onUpdate:show":d=>o.showVip=d},{default:()=>[s(pt,{onClose:d=>{d&&X({api:"openWebView",content:{url:`${location.origin}${location.pathname}#/member-center`,orientation:1}}),o.showVip=!1}},null)]})])}}});export{pn as default};