!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(C){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),c=new S(n||[]);return i(a,"_invoke",{value:q(e,r,c)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}r.wrap=f;var h={};function _(){}function m(){}function p(){}var g={};u(g,c,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==n&&o.call(y,c)&&(g=y);var x=p.prototype=_.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(t,r){function n(i,a,c,s){var l=d(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return a=a?a.then(o,o):o()}})}function q(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return B()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===h)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=d(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===h)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var o=d(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function I(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function j(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:j(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(e,t,r,n,o,i,a){try{var c=e[i](a),s=c.value}catch(l){return void r(l)}c.done?t(s):Promise.resolve(s).then(n,o)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)}))}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(u){l=!0,o=u}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);rimg{margin:0 .10667rem;height:.8rem;transition:.3s}._rightBtns_1q9x6_211>img:active{transform:scale(.6)}._rightBtns_1q9x6_211>img:last-child{margin-left:auto;animation:_scaleBtn_1q9x6_1 1s ease-in-out infinite}@keyframes _scaleBtn_1q9x6_1{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes _displayIcon_1q9x6_1{to{opacity:1}}._m-search_1oqt0_1{--van-cell-background-color: transparent}._m-search_1oqt0_1 input::-moz-placeholder{color:var(--k-gray-4)}._m-search_1oqt0_1 input::placeholder{color:var(--k-gray-4)}._m-search_1oqt0_1 .van-field__control{-webkit-user-select:text!important;-moz-user-select:text!important;user-select:text!important;font-size:.34667rem}._m-search_1oqt0_1 .van-search__field{background:transparent!important;padding:0 var(--van-padding-xs) 0 0}._m-search_1oqt0_1 .van-field__right-icon{display:flex;align-items:center;justify-content:center;padding-right:.10667rem}._m-search_1oqt0_1._default_1oqt0_22 .van-search__content{background:#f8f9fc!important}._m-search_1oqt0_1._white_1oqt0_25 .van-search__content{background:#fff!important}._m-search_1oqt0_1._transparent_1oqt0_28 .van-search__content{background:rgba(255,255,255,.16)}._m-search_1oqt0_1._transparent_1oqt0_28 .van-search__content input::-moz-placeholder{color:#fff}._m-search_1oqt0_1._transparent_1oqt0_28 .van-search__content input::placeholder{color:#fff}._m-search_1oqt0_1._transparent_1oqt0_28 .van-search__content input,._m-search_1oqt0_1._transparent_1oqt0_28 .van-search__content .van-field__clear{color:#fff}._m-search_1oqt0_1 ._searchBtn_1oqt0_40{width:1.38667rem;height:.66667rem;padding:0;font-size:.34667rem;font-weight:500;--van-button-mini-height: .74667rem;--van-font-size-xs: .32rem;background:linear-gradient(to right,#5BECFF,#259CFE);border:none}\n",document.head.appendChild(T),{setters:[function(e){i=e.f,a=e.F},function(e){c=e.c,s=e.s,l=e.d,u=e.r,f=e.Z,d=e.a2,h=e.a3,_=e.a4,m=e.w,p=e.k,g=e.a5,v=e.h,y=e.I,x=e.a6,b=e.a7,w=e.z,q=e.a8,k=e.i,I=e.q,L=e.a9,S=e.m,j=e.t,B=e.aa,C=e.ab,E=e.p,F=e.ac,A=e.M,O=e.D,R=e.F,U=e.S,P=e.C,z=e.ad}],execute:function(){var T=o(c("notice-bar"),2),N=T[0],V=T[1],G={text:String,mode:String,color:String,delay:s(1),speed:s(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}},D=l({name:N,props:G,emits:["close","replay"],setup:function(e,t){var r,n=t.emit,o=t.slots,i=0,a=0,c=u(),s=u(),l=f({show:!0,offset:0,duration:0}),I=function(t){"closeable"===e.mode&&(l.show=!1,n("close",t))},L=function(){if(o["right-icon"])return o["right-icon"]();var t="closeable"===e.mode?"cross":"link"===e.mode?"arrow":void 0;return t?v(y,{name:t,class:V("right-icon"),onClick:I},null):void 0},S=function(){l.offset=i,l.duration=0,q((function(){b((function(){l.offset=-a,l.duration=(a+i)/+e.speed,n("replay")}))}))},j=function(){var t=e.delay,n=e.speed,o=e.scrollable,u=k(t)?1e3*+t:0;i=0,a=0,l.offset=0,l.duration=0,clearTimeout(r),r=setTimeout((function(){if(c.value&&s.value&&!1!==o){var e=x(c).width,t=x(s).width;(o||t>e)&&b((function(){i=e,a=t,l.offset=-a,l.duration=a/+n}))}}),u)};return d(j),h(j),_("pageshow",j),w({reset:j}),m((function(){return[e.text,e.scrollable]}),j),function(){var t,r,n=e.color,i=e.wrapable,a=e.background;return p(v("div",{role:"alert",class:V({wrapable:i}),style:{color:n,background:a}},[o["left-icon"]?o["left-icon"]():e.leftIcon?v(y,{class:V("left-icon"),name:e.leftIcon},null):void 0,(t=!1===e.scrollable&&!e.wrapable,r={transform:l.offset?"translateX(".concat(l.offset,"px)"):"",transitionDuration:"".concat(l.duration,"s")},v("div",{ref:c,role:"marquee",class:V("wrap")},[v("div",{ref:s,style:r,class:[V("content"),{"van-ellipsis":t}],onTransitionend:S},[o.default?o.default():e.text])])),L()]),[[g,l.show]])}}}),J=I(D),M=o(c("search"),3),Y=M[0],H=M[1],K=M[2],W=L({},i,{label:String,shape:S("square"),leftIcon:S("search"),clearable:j,actionText:String,background:String,showAction:Boolean}),X=l({name:Y,props:W,emits:["blur","focus","clear","search","cancel","clickInput","clickLeftIcon","clickRightIcon","update:modelValue"],setup:function(e,t){var r=t.emit,n=t.slots,o=t.attrs,c=B(),s=u(),l=function(){n.action||(r("update:modelValue",""),r("cancel"))},f=function(t){13===t.keyCode&&(F(t),r("search",e.modelValue))},d=function(){return e.id||"".concat(c,"-input")},h=function(){if(n.label||e.label)return v("label",{class:H("label"),for:d()},[n.label?n.label():e.label])},_=function(){if(e.showAction){var t=e.actionText||K("cancel");return v("div",{class:H("action"),role:"button",tabindex:0,onClick:l},[n.action?n.action():t])}},m=function(e){return r("blur",e)},p=function(e){return r("focus",e)},g=function(e){return r("clear",e)},y=function(e){return r("clickInput",e)},x=function(e){return r("clickLeftIcon",e)},b=function(e){return r("clickRightIcon",e)},q=Object.keys(i);return w({focus:function(){var e;return null==(e=s.value)?void 0:e.focus()},blur:function(){var e;return null==(e=s.value)?void 0:e.blur()}}),function(){var t,i;return v("div",{class:H({"show-action":e.showAction}),style:{background:e.background}},[null==(t=n.left)?void 0:t.call(n),v("div",{class:H("content",e.shape)},[h(),(i=L({},o,C(e,q),{id:d()}),v(a,E({ref:s,type:"search",class:H("field"),border:!1,onBlur:m,onFocus:p,onClear:g,onKeypress:f,onClickInput:y,onClickLeftIcon:x,onClickRightIcon:b,"onUpdate:modelValue":function(e){return r("update:modelValue",e)}},i),C(n,["left-icon","right-icon"])))]),_()])}}}),Z=I(X),$="_back_1q9x6_1",Q="_container_1q9x6_16",ee="_content_1q9x6_22",te="_opacityBg_1q9x6_27",re="_leftContent_1q9x6_32",ne="_leftBg_1q9x6_37",oe="_leftBg2_1q9x6_48",ie="_types_1q9x6_58",ae="_type_1q9x6_58",ce="_typeActive_1q9x6_78",se="_typeImg_1q9x6_78",le="_typeIcon_1q9x6_92",ue="_center_1q9x6_100",fe="_musicContent_1q9x6_111",de="_musicItem_1q9x6_122",he="_disableNotic_1q9x6_133",_e="_musicActive_1q9x6_137",me="_musicAvtor_1q9x6_143",pe="_musicInfo_1q9x6_152",ge="_musicName_1q9x6_155",ve="_noticeBar_1q9x6_160",ye="_musicDes_1q9x6_164",xe="_musicFavitor_1q9x6_169",be="_musicAuthor_1q9x6_181",we="_right_1q9x6_193",qe="_right-musicName_1q9x6_200",ke="_staff_1q9x6_208",Ie="_rightBtns_1q9x6_211",Le={"m-search":"_m-search_1oqt0_1",default:"_default_1oqt0_22",white:"_white_1oqt0_25",transparent:"_transparent_1oqt0_28",searchBtn:"_searchBtn_1oqt0_40"},Se=""+new URL("icon-search-d43eb2c3.svg",r.meta.url).href,je=l({name:"m-search",props:{modelValue:{type:String,default:""},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},placeholder:{type:String,default:"请输入搜索关键词"},background:{type:String,default:"#fff"},inputBackground:{type:String,default:"default"}},emits:["search"],setup:function(e,t){var r=t.slots,n=t.emit,o=f({search:e.modelValue||""});return m((function(){return e.modelValue}),(function(){o.search=e.modelValue})),function(){return v(Z,{class:[Le["m-search"],Le[e.inputBackground]],shape:e.shape,background:e.background,placeholder:e.placeholder,disabled:e.disabled,autofocus:e.autofocus,autocomplete:"off",modelValue:o.search,"onUpdate:modelValue":function(e){return o.search=e},clearTrigger:"always",onClear:function(){console.log("clear"),o.search="",n("search",o.search)},onSearch:function(){return n("search",o.search)}},{left:function(){return r.left&&r.left()},"left-icon":function(){return v(y,{name:Se,class:Le.leftIcon},null)},"right-icon":function(){return v(A,{disabled:e.disabled,class:Le.searchBtn,round:!0,type:"primary",size:"mini",onClick:function(){return n("search",o.search)}},{default:function(){return[O("搜索")]}})}})}}}),Be=""+new URL("icon_back-b80c2fc2.svg",r.meta.url).href,Ce=""+new URL("icon_down-27184904.svg",r.meta.url).href,Ee=""+new URL("icon_jianpu-80bd16a8.svg",r.meta.url).href,Fe=""+new URL("icon_jianpuActive-17580202.svg",r.meta.url).href,Ae=""+new URL("icon_start-4add1f07.svg",r.meta.url).href,Oe=""+new URL("1-0aed42a1.svg",r.meta.url).href,Re=""+new URL("2-f51bb566.svg",r.meta.url).href,Ue=""+new URL("3-9fe2956a.svg",r.meta.url).href,Pe=""+new URL("1-068d7272.png",r.meta.url).href,ze=""+new URL("2-be3ea30a.png",r.meta.url).href,Te=""+new URL("3-6a1b17fd.png",r.meta.url).href,Ne=""+new URL("4-70426869.png",r.meta.url).href;e("default",l({name:"co-ai",setup:function(){var e=[Oe,Re,Ue],r=[{name:"竖笛-上学歌",auther:"人教版",hot:232,img:Pe},{name:"最伟大的作品",auther:"周杰伦",hot:132,img:ze},{name:"夏天的风",auther:"温岚",hot:112,img:Te},{name:"慢生活",auther:"李萌",hot:112,img:Ne},{name:"竖笛-上学歌",auther:"人教版",hot:232,img:Pe},{name:"最伟大的作品",auther:"周杰伦",hot:132,img:ze},{name:"夏天的风",auther:"温岚",hot:112,img:Te},{name:"慢生活",auther:"李萌",hot:112,img:Ne}],o=f({typeIndex:0,musicIndex:0,isShowJianpu:!1}),i=function(){U({api:"goBack"})},a=function(){var e=n(t().mark((function e(){var r,i,a,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=document.createElement("canvas"),i=r.getContext("2d"),a=o.isShowJianpu?o.musicIndex%2==0?"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687673062603-1.png":"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1675232855321-1.png":o.musicIndex%2==0?"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet/1687673062488-1.png":"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet/1675232854483-2.png",(c=new Image).crossOrigin="anonymous",c.src=a+"?v="+Date.now(),c.onload=n(t().mark((function e(){var n,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.height=c.height,r.width=c.width,null==i||i.drawImage(c,0,0,c.width,c.height),n=r.toDataURL("image/png",1),r=null,setTimeout((function(){P("保存成功")}),500),e.next=8,z({api:"savePicture",content:{base64:n}});case 8:o=e.sent,console.log("🚀 ~ res:",o);case 10:case"end":return e.stop()}}),e)})));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return function(){return v("div",{class:Q},[v("div",{class:$,onClick:i},[v("img",{src:Be},null)]),v("div",{class:ee},[v("div",{class:[re]},[v("div",{class:oe},null),v("div",{class:ne},null),v("div",{class:ie},[new Array(10).fill(1).map((function(t,r){var n=e[r]?e[r]:e[r%3];return v("div",{class:[ae,o.typeIndex===r&&ce],onClick:function(){return o.typeIndex=r}},[v("div",{class:se},[v("img",{class:le,src:n},null)])])}))]),v("div",{class:ue},[v(je,{shape:"round",background:"transparent",placeholder:"请输入曲目名称"},null),v("div",{class:fe},[r.map((function(e,t){return v("div",{class:[de,o.musicIndex===t?_e:he],onClick:function(){return o.musicIndex=t}},[v("img",{class:me,src:e.img},null),v("div",{class:pe},[v("div",{class:ge},[v(J,{text:e.name,color:"#333",class:ve,background:"none"},null)]),v("div",{class:ye},[v("div",{class:xe},[e.hot]),v("div",{class:[be,"van-ellipsis"]},[e.auther])])])])}))])])]),v("div",{class:[te,we]},[v("div",{class:qe},[r[o.musicIndex].name]),o.isShowJianpu?v(R,null,[v("img",{style:{display:o.musicIndex%2==0?"":"none"},class:ke,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1687673062603-1.png"},null),v("img",{style:{display:o.musicIndex%2!=0?"":"none"},class:ke,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet-first/1675232855321-1.png"},null)]):v(R,null,[v("img",{style:{display:o.musicIndex%2==0?"":"none"},class:ke,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet/1687673062488-1.png"},null),v("img",{style:{display:o.musicIndex%2!=0?"":"none"},class:ke,src:"https://cloud-coach.ks3-cn-beijing.ksyuncs.com/music-sheet/1675232854483-2.png"},null)]),v("div",{class:Ie},[v("img",{src:o.isShowJianpu?Fe:Ee,onClick:function(){return o.isShowJianpu=!o.isShowJianpu}},null),v("img",{src:Ce,onClick:a},null),v("img",{src:Ae,onClick:function(){U({api:"openAccompanyWebView",content:{url:"https://dev.kt.colexiu.com/instrument?id=43539&Authorization=bearer 529d1359-20c6-4ea2-b2ba-2694cdeda8a4",orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})}},null)])])])])}}}))}}}))}();