index-legacy.e10ebb8e.js 53 KB

1
  1. !function(){function e(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function t(e){return t="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},t(e)}function n(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t,n,i,r,a,o){try{var l=e[a](o),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(i,r)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var a=e.apply(t,n);function l(e){o(a,i,r,l,s,"next",e)}function s(e){o(a,i,r,l,s,"throw",e)}l(void 0)}))}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,r,a=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(a.push(i.value),!t||a.length!==t);o=!0);}catch(s){l=!0,r=s}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return a}(e,t)||c(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 c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d=document.createElement("style");d.innerHTML='._popup_17c4a_1{background:transparent;width:3.25333rem;border-radius:.24rem}._wrap_17c4a_6{background:#fff;text-align:center;border-radius:0 0 .24rem .24rem}._image_17c4a_11{width:100%;display:block;margin-bottom:-.10667rem}._title_17c4a_16{font-size:.21333rem;font-weight:500;color:#1a1a1a;line-height:.32rem;padding:.26667rem 0 .08rem}._andTitle_17c4a_23{font-size:13Px}._sub_17c4a_26{font-size:.16rem;font-weight:400;color:gray;margin-bottom:.21333rem}._andSub_17c4a_32{font-size:12Px}._btnWrap_17c4a_35{display:flex;align-items:center;justify-content:space-evenly;padding-bottom:.21333rem}._btn_17c4a_35{width:1.44rem;height:.45333rem;background-color:transparent;border:none;background-size:100% 100%;background-repeat:no-repeat}._cancelBtn_17c4a_49{background-image:url(/orchestra-music-score/assets/no-confirm-btn.5ed39ffd.svg)}._confirmBtn_17c4a_52{background-image:url(/orchestra-music-score/assets/confirm-btn.a36604ec.svg)}._tryoutBtn_17c4a_55{background-image:url(/orchestra-music-score/assets/tryout-btn.891d6395.svg)}._discounts_17c4a_58{position:relative}._discounts_17c4a_58:after{width:.66667rem;height:.21333rem;line-height:.21333rem;background:linear-gradient(180deg,#ffb635 0%,#ff4e18 100%);border-radius:.10667rem .10667rem .10667rem 0;content:"\\4e13\\5c5e\\4f18\\60e0";font-size:.13333rem;color:#fff;top:-.16rem;position:absolute;left:.16rem}._membershipBtn_17c4a_74{background-image:url(/orchestra-music-score/assets/membership-btn.6c4804e5.svg)}._demandBtn_17c4a_77{background-image:url(/orchestra-music-score/assets/demand-btn.56c792ce.svg)}._demandBtnFree_17c4a_80{background-image:url(/orchestra-music-score/assets/demand-btn-free.c8a03b7c.svg)}._earphoneBtn_17c4a_83{background-image:url(/orchestra-music-score/assets/earphone-btn.21b7f499.svg)}._closeBtn_17c4a_86{position:absolute;right:-30Px;top:20Px}._item_6tre7_1{display:flex;align-items:center;margin:0 .18667rem;padding:.18667rem .26667rem .18667rem .21333rem;border-radius:.10667rem}._item_6tre7_1.active{background-color:#edfffc}._item_6tre7_1.active>p{color:#2dc7aa}._item_6tre7_1.active:after{content:"\\5f53\\524d";font-size:.18667rem;color:#2dc7aa;display:inline-block;padding-left:.08rem}._item_6tre7_1 ._tag_6tre7_23{height:.24rem;line-height:.24rem;border-radius:.08rem;text-align:center;display:block;margin-right:.10667rem;--van-tag-plain-background-color: transparent}._item_6tre7_1 ._tag_6tre7_23:after{border-radius:.10667rem}._item_6tre7_1 ._tag_6tre7_23:before{display:none}._item_6tre7_1 ._tag_6tre7_23.VIP{--van-tag-default-color: #cd863e;--van-gray-3: #cd863e}._item_6tre7_1 ._tag_6tre7_23.CHARGE{--van-tag-default-color: #3591ce;--van-gray-3: #3591ce}._item_6tre7_1 ._tag_6tre7_23.FREE{--van-tag-default-color: #01b84f;--van-gray-3: #01b84f}._item_6tre7_1>p{color:#333;font-size:.18667rem;margin:0;line-height:.26667rem;white-space:pre;overflow:hidden;flex:1;text-overflow:ellipsis}._tabs_6tre7_60{height:100vh;display:flex;flex-direction:column;--van-tab-text-color: #999999;--van-tab-active-text-color: #333;--van-tabs-bottom-bar-color: #2dc7aa;--van-tabs-bottom-bar-width: .34667rem;--van-tabs-bottom-bar-height: .05333rem}._tabs_6tre7_60 .van-tabs__line{width:var(--van-tabs-bottom-bar-width);height:var(--van-tabs-bottom-bar-height);background-color:var(--van-tabs-bottom-bar-color);border-radius:var(--van-tabs-bottom-bar-height)}._tabs_6tre7_60 .van-tab>span{color:var(--van-tab-active-text-color)!important}._tabs_6tre7_60 .van-tabs__wrap{height:.88rem!important;position:relative}._tabs_6tre7_60 .van-tabs__wrap:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid #e8e8e8;transform:scale(.5);border-bottom-width:.02667rem}._tabs_6tre7_60 .van-tabs__wrap .van-tabs__line{bottom:.5rem!important}._tabs_6tre7_60 .van-tabs__content{height:calc(100vh - .88rem)}._tabs_6tre7_60 .van-tab__pane{height:100%}._list_6tre7_105{padding:.21333rem 0}._tab_6tre7_60{box-sizing:border-box;overflow:hidden;height:100%;overflow-y:auto}._container_hiwv0_1 img{width:100%;margin:auto;display:block}._changeIndex_hiwv0_6{font-size:.16rem;position:absolute;left:.64rem;bottom:.53333rem;z-index:10;width:.4rem;height:.4rem;border-radius:100%;background-color:#01c1b5;line-height:.4rem;text-align:center;color:#fff;box-shadow:0 0 .26667rem rgba(0,0,0,.05)}.transverse ._changeIndex_hiwv0_6{bottom:.26667rem;left:.02667rem}.flute ._changeIndex_hiwv0_6{left:.32rem!important}.piccolo ._changeIndex_hiwv0_6{left:1.5vw;bottom:.53333rem}.clarinet ._changeIndex_hiwv0_6{left:0!important}.horn ._changeIndex_hiwv0_6{left:1vw;top:1vh}.up-bass-horn ._changeIndex_hiwv0_6{left:1vw}.tuba ._changeIndex_hiwv0_6{right:inherit;left:1vw;bottom:.53333rem}.saxophone ._changeIndex_hiwv0_6{left:1vw}.trombone ._changeIndex_hiwv0_6{left:.32rem!important}@keyframes _activeopacity_hiwv0_1{0%{transforopacitym:0}to{opacity:1}}@keyframes _leftrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(-10deg)}to{transform:rotate(-10deg)}}@keyframes _rightrotates_hiwv0_1{0%{transform:rotate(0)}50%{transform:rotate(5deg)}to{transform:rotate(5deg)}}.small-drum img[data-index=active]{animation:_activeopacity_hiwv0_1 .2s;animation-delay:.3s;transform-origin:0 0}.small-drum img[data-index=left]{animation:_leftrotates_hiwv0_1 .5s;transform-origin:0 0}.small-drum img[data-index=right]{animation:_rightrotates_hiwv0_1 .5s;transform-origin:0 0}.piccolo{margin-top:0}.piano .right101 #b101,.piano .right102 #b102,.piano .right103 #b103,.piano .right103 #b103,.piano .right104 #b104,.piano .right105 #b105,.piano .right106 #b106,.piano .right107 #b107,.piano .right108 #b108,.piano .right109 #b109,.piano .right110 #b110,.piano .right111 #b111,.piano .right112 #b112,.piano .right113 #b113,.piano .right114 #b114,.piano .right115 #b115,.piano .right116 #b116,.piano .right117 #b117,.piano .right118 #b118,.piano .right119 #b119,.piano .right120 #b120,.piano .right121 #b121,.piano .right122 #b122,.piano .right123 #b123,.piano .right124 #b124,.piano .right125 #b125,.piano .right126 #b126,.piano .right127 #b127,.piano .right128 #b128,.piano .right129 #b129,.piano .right130 #b130,.piano .right131 #b131,.piano .right132 #b132,.piano .right133 #b133,.piano .right134 #b134,.piano .right135 #b135,.piano .right136 #b136,.piano .right137 #b137,.piano .right138 #b138,.piano .right139 #b139,.piano .right140 #b140,.piano .right141 #b141,.piano .right142 #b142,.piano .right143 #b143,.piano .right144 #b144,.piano .right145 #b145,.piano .right146 #b146,.piano .right147 #b147,.piano .right148 #b148,.piano .right149 #b149,.piano .right150 #b150,.piano .right151 #b151,.piano .right152 #b152{fill:#9fb9f9;stroke:#3f6ee0}.piano .right1 #h1>path:first-child,.piano .right2 #h2>path:first-child,.piano .right3 #h3>path:first-child,.piano .right3 #h3>path:first-child,.piano .right4 #h4>path:first-child,.piano .right5 #h5>path:first-child,.piano .right6 #h6>path:first-child,.piano .right7 #h7>path:first-child,.piano .right8 #h8>path:first-child,.piano .right9 #h9>path:first-child,.piano .right10 #h10>path:first-child,.piano .right11 #h11>path:first-child,.piano .right12 #h12>path:first-child,.piano .right13 #h13>path:first-child,.piano .right14 #h14>path:first-child,.piano .right15 #h15>path:first-child,.piano .right16 #h16>path:first-child,.piano .right17 #h17>path:first-child,.piano .right18 #h18>path:first-child,.piano .right19 #h19>path:first-child,.piano .right20 #h20>path:first-child,.piano .right21 #h21>path:first-child,.piano .right22 #h22>path:first-child,.piano .right23 #h23>path:first-child,.piano .right24 #h24>path:first-child,.piano .right25 #h25>path:first-child,.piano .right26 #h26>path:first-child,.piano .right27 #h27>path:first-child,.piano .right28 #h28>path:first-child,.piano .right29 #h29>path:first-child,.piano .right30 #h30>path:first-child,.piano .right31 #h31>path:first-child,.piano .right32 #h32>path:first-child,.piano .right33 #h33>path:first-child,.piano .right34 #h34>path:first-child,.piano .right35 #h35>path:first-child,.piano .right36 #h36>path:first-child{fill:url(#linearGradient-2)}.piano .left101 #b101,.piano .left102 #b102,.piano .left103 #b103,.piano .left103 #b103,.piano .left104 #b104,.piano .left105 #b105,.piano .left106 #b106,.piano .left107 #b107,.piano .left108 #b108,.piano .left109 #b109,.piano .left110 #b110,.piano .left111 #b111,.piano .left112 #b112,.piano .left113 #b113,.piano .left114 #b114,.piano .left115 #b115,.piano .left116 #b116,.piano .left117 #b117,.piano .left118 #b118,.piano .left119 #b119,.piano .left120 #b120,.piano .left121 #b121,.piano .left122 #b122,.piano .left123 #b123,.piano .left124 #b124,.piano .left125 #b125,.piano .left126 #b126,.piano .left127 #b127,.piano .left128 #b128,.piano .left129 #b129,.piano .left130 #b130,.piano .left131 #b131,.piano .left132 #b132,.piano .left133 #b133,.piano .left134 #b134,.piano .left135 #b135,.piano .left136 #b136,.piano .left137 #b137,.piano .left138 #b138,.piano .left139 #b139,.piano .left140 #b140,.piano .left141 #b141,.piano .left142 #b142,.piano .left143 #b143,.piano .left144 #b144,.piano .left145 #b145,.piano .left146 #b146,.piano .left147 #b147,.piano .left148 #b148,.piano .left149 #b149,.piano .left150 #b150,.piano .left151 #b151,.piano .left152 #b152{fill:#ffc046;stroke:#ff6f38}.piano .left1 #h1>path:first-child,.piano .left2 #h2>path:first-child,.piano .left3 #h3>path:first-child,.piano .left3 #h3>path:first-child,.piano .left4 #h4>path:first-child,.piano .left5 #h5>path:first-child,.piano .left6 #h6>path:first-child,.piano .left7 #h7>path:first-child,.piano .left8 #h8>path:first-child,.piano .left9 #h9>path:first-child,.piano .left10 #h10>path:first-child,.piano .left11 #h11>path:first-child,.piano .left12 #h12>path:first-child,.piano .left13 #h13>path:first-child,.piano .left14 #h14>path:first-child,.piano .left15 #h15>path:first-child,.piano .left16 #h16>path:first-child,.piano .left17 #h17>path:first-child,.piano .left18 #h18>path:first-child,.piano .left19 #h19>path:first-child,.piano .left20 #h20>path:first-child,.piano .left21 #h21>path:first-child,.piano .left22 #h22>path:first-child,.piano .left23 #h23>path:first-child,.piano .left24 #h24>path:first-child,.piano .left25 #h25>path:first-child,.piano .left26 #h26>path:first-child,.piano .left27 #h27>path:first-child,.piano .left28 #h28>path:first-child,.piano .left29 #h29>path:first-child,.piano .left30 #h30>path:first-child,.piano .left31 #h31>path:first-child,.piano .left32 #h32>path:first-child,.piano .left33 #h33>path:first-child,.piano .left34 #h34>path:first-child,.piano .left35 #h35>path:first-child,.piano .left36 #h36>path:first-child{fill:url(#linearGradient-3)}.evaluating ._fingering_shnq0_1{box-shadow:0 -.26667rem .26667rem #e2f6f1;background:#E2F6F1}.evaluating ._fingering_shnq0_1.vertical{box-shadow:none!important}.eyeProtection .fingering{box-shadow:0 -.26667rem .26667rem var(--eye-background-color);background:var(--eye-background-color)}.eyeProtection .fingering.vertical{box-shadow:none!important}._fingering_shnq0_1{position:fixed;bottom:0;left:0;right:0;padding:.13333rem;box-sizing:border-box;z-index:999;padding-top:0;box-shadow:0 -.26667rem .26667rem #fff;background:#fff}._fingering_shnq0_1.vertical{box-shadow:none!important}._fingering_shnq0_1.vertical{top:.93333rem;left:0;right:initial}._fingering_shnq0_1.vertical:before{display:none}._fingering_shnq0_1.transverse>div{max-width:60%;margin:auto}._fingering_shnq0_1 .substituteFinger{background:url(/orchestra-music-score/assets/substituteFinger.5d97109d.svg) no-repeat center;background-size:contain;left:0;color:transparent}._wrap_1ojzw_1{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:1000}._wrap_1ojzw_1 .van-cell-group{background-color:rgba(255,255,255,.8)}._wrap_1ojzw_1 .van-cell{padding:10Px 16Px;line-height:14Px;background-color:transparent}._wrapBottom_1ojzw_16{background-color:rgba(255,255,255,.8)}._tipsContainer_16bs2_1{background:transparent;width:100vw;height:100vh}._backBtn_16bs2_6{position:absolute;left:.64rem;top:.32rem;padding:.10667rem .26667rem;border-radius:.53333rem;border:.02667rem solid #ffffff;font-size:.16rem;color:#fff;text-align:center}._backBtn_16bs2_6:active{opacity:.8}._content_16bs2_20{position:relative;width:100%;height:100%}._parent_16bs2_25{position:absolute;padding:.10667rem;background:#f8f9ed;border-radius:.53333rem;animation:_myscale_16bs2_1 1.5s infinite}._parent_16bs2_25 img{width:100%;height:100%}._item_16bs2_36{position:absolute;width:3.41333rem;z-index:10}._item_16bs2_36 ._img_16bs2_41{position:absolute;width:100%}._item_16bs2_36 ._iconHead_16bs2_45{position:absolute;left:.8rem;width:.4rem;height:.56rem}._item_16bs2_36 ._btns_16bs2_51{position:absolute;display:flex;width:100%;padding:0 .32rem}._item_16bs2_36 ._btns_16bs2_51 ._btn_16bs2_51{width:1.36rem;height:.42667rem;line-height:.42667rem;padding:0}@keyframes _myscale_16bs2_1{0%{transform:scale(.9)}50%{transform:scale(1)}to{transform:scale(.9)}}\n',document.head.appendChild(d),System.register(["./index-legacy.9ab3c9cd.js","./native-message-legacy.bfe4d914.js","./index-legacy.e034d8b7.js","./index-legacy.3566c67e.js","./index-legacy.9c5abf28.js","./index-legacy.93d62935.js","./index-legacy.a5bc390d.js","./index-legacy.72f6f7bb.js"],(function(i){"use strict";var o,c,u,d,p,f,m,h,g,v,b,_,y,w,S,x,k,j,I,P,T,C,O,B,R,D,M,z,F,L,E,A,N,J,W,q,U,H,K,V,G,Y,Z,$,Q,X,ee,te,ne,ie,re,ae,oe,le,se,ce,ue,de,pe,fe,me,he,ge,ve,be,_e,ye,we,Se,xe,ke,je,Ie,Pe,Te,Ce,Oe,Be,Re,De,Me,ze,Fe,Le;return{setters:[function(e){o=e.s,c=e.w,u=e.x,d=e.c,p=e.u,f=e.r,m=e.y,h=e.z,g=e.A,v=e.E,b=e.F,_=e.H,y=e.I,w=e.J,S=e.K,x=e.k,k=e.L,j=e.Q,I=e.R,P=e.U,T=e.P,C=e.V,O=e.W,B=e.X,R=e.Y,D=e.Z,M=e._,z=e.$,F=e.a0,L=e.a1,E=e.a2,A=e.a3,N=e.a4,J=e.T,W=e.e,q=e.a5,U=e.a6,H=e.a7,K=e.a8,V=e.b,G=e.a9,Y=e.aa,Z=e.M,$=e.ab,Q=e.ac,X=e.p,ee=e.g,te=e.ad,ne=e.ae,ie=e.af,re=e.ag,ae=e.ah,oe=e.t},function(e){le=e.d,se=e.c,ce=e.T,ue=e.i,de=e.N,pe=e.w,fe=e.k,me=e.M,he=e.o,ge=e.n,ve=e.j,be=e.F,_e=e.I,ye=e.U,we=e.D,Se=e.t,xe=e.v,ke=e.h,je=e.x,Ie=e.Z,Pe=e.u},function(e){Te=e.t,Ce=e.c,Oe=e.I,Be=e.w,Re=e.B},function(e){De=e.E,Me=e.s},function(e){ze=e.L},function(e){Fe=e.T},function(e){Le=e.S},function(){}],execute:function(){var Ee=Object.freeze(Object.defineProperty({__proto__:null,get getImage(){return Kt}},Symbol.toStringTag,{value:"Module"})),Ae=s(Ce("tag"),2),Ne=Ae[0],Je=Ae[1],We=le({name:Ne,props:{size:String,mark:Boolean,show:Te,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}},emits:["close"],setup:function(e,t){var n=t.slots,i=t.emit,r=function(e){e.stopPropagation(),i("close",e)},a=function(){var t=e.type,i=e.mark,a=e.plain,o=e.round,l=e.size,s=e.closeable,c={mark:i,plain:a,round:o};l&&(c[l]=l);var u=s&&se(Oe,{name:"cross",class:Je("close"),onClick:r},null);return se("span",{style:e.plain?{color:e.textColor||e.color,borderColor:e.color}:{color:e.textColor,background:e.color},class:Je([c,t])},[null==n.default?void 0:n.default(),u])};return function(){return se(ce,{name:e.closeable?"van-fade":void 0},{default:function(){return[e.show?a():null]}})}}}),qe=Be(We),Ue=function(e,t){var n=ue(!1);return t&&(console.log("曲谱为midi,使用app播放"),n.value=!0,o.midiPlayIniting=!0,de({api:"cloudDestroy"}),de({api:"cloudDetail",content:{midi:t,denominator:u(d.osmd).denominator,numerator:u(d.osmd).numerator,originalSpeed:o.activeDetail.originalSpeed,interval:50,duration:1e3*e}},(function(){o.midiPlayIniting=!1,n.value=!1,t&&c("music")})),d.durationNum=e),{initial:n}},He=function(){var e=ue(!0),t=ue(!1),n=ue(!1);try{var i=p().setting||{};"EVALUATING"===i.mode&&(n.value=!0,e.value=!1,t.value=!0),i.difficulty&&(fe.eva.difficulty=i.difficulty),o.setting=i}catch(r){console.error("设置活动配置失败,请检查传入配置是否正确"),console.error(r)}return{showFingering:e,frozenMode:t,compulsionEvaluating:n}},Ke=function(){var e=l(regeneratorRuntime.mark((function e(){var t,n,i,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=ue(.1),n=me(),e.prev=2,e.next=5,f.get("/sysParamConfig/queryByParamNameList",{prefix:n,params:{paramNames:"music_sheet_free_rate"}});case 5:r=e.sent,t.value=parseFloat((null===(i=r.data)||void 0===i?void 0:i[0].paramValue)||"10")/100,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(2);case 11:return e.abrupt("return",t);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(){return e.apply(this,arguments)}}(),Ve=le({name:"ButtonsPlayer",setup:function(){var e=s(m(),1)[0],t=function(){o.activeTick>-1||(w(0),S(new Event("ended")))},n=Math.floor(2*Math.PI*16),i=function(e){var t;"setPlayState"===(null==e||null===(t=e.data)||void 0===t?void 0:t.api)&&(console.log("父页面的切换事件",e.data,d.playState),"play"==d.playState&&h())};return he((function(){window.addEventListener("message",i)})),ge((function(){window.removeEventListener("message",i)})),function(){var i=d.currentTimeNum/d.durationNum*n;return se(_e,{to:"body"},{default:function(){var n;return[se("div",{class:g.player,id:"globalPlayer"},[se(ce,{name:"start",duration:300},{default:function(){var t;return[e.value&&!(null!==(t=v.value)&&void 0!==t&&t.connentLoading)&&b.value&&se(Re,{style:{backgroundImage:"url(".concat(_,")")},class:[g.button,g.start],onClick:function(){var e,t;b.value=!1,null===(e=v.value)||void 0===e||null===(t=e.togglePlay)||void 0===t||t.call(e)}},{default:function(){return[ve("开始")]}})]}}),!d.evaluatingStatus&&se(be,null,[("pause"===d.playState||"suspend"===d.playState)&&d.currentTimeNum>0&&!o.sectionStatus&&se(Re,{class:[g.button,g.fullbtn],onClick:t},{default:function(){return[se(y,{key:"reset",name:"reset"},null)]}}),se(Re,{class:[g.button,g.fullbtn],style:{marginLeft:"14px"},disabled:(null===(n=o.activeDetail)||void 0===n?void 0:n.isAppPlay)&&o.midiPlayIniting,onClick:function(){h()}},{default:function(){return[se("div",{class:g.schedule},[se("div",{class:g.schedule},["play"===d.playState?se(y,{key:"pause",name:"pause"},null):se(y,{key:"play",name:"play"},null),d.currentTimeNum>0&&!o.sectionStatus&&se("svg",{class:g.ring,width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/200/svg"},[se("circle",{cx:"20",cy:"20",r:"16",fill:"none",stroke:"#D9F5EF","stroke-width":"2","stroke-linecap":"round"},null),se("circle",{class:g.fillring,cx:"20",cy:"20",r:"16",fill:"none",stroke:"#FFC459","stroke-width":"2","stroke-linecap":"round","stroke-dasharray":i+",10000"},null)])])])]}})])])]}})}}}),Ge={popup:"_popup_17c4a_1",wrap:"_wrap_17c4a_6",image:"_image_17c4a_11",title:"_title_17c4a_16",andTitle:"_andTitle_17c4a_23",sub:"_sub_17c4a_26",andSub:"_andSub_17c4a_32",btnWrap:"_btnWrap_17c4a_35",btn:"_btn_17c4a_35",cancelBtn:"_cancelBtn_17c4a_49",confirmBtn:"_confirmBtn_17c4a_52",tryoutBtn:"_tryoutBtn_17c4a_55",discounts:"_discounts_17c4a_58",membershipBtn:"_membershipBtn_17c4a_74",demandBtn:"_demandBtn_17c4a_77",demandBtnFree:"_demandBtnFree_17c4a_80",earphoneBtn:"_earphoneBtn_17c4a_83",closeBtn:"_closeBtn_17c4a_86"},Ye=le({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return se("div",null,[se("img",{class:Ge.image,src:"/orchestra-music-score/assets/microphone.7e50c915.svg"},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:Ge.title},[ve("开启权限")]),se("div",{class:Ge.sub},[ve("请开启麦克风访问权限")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.cancelBtn)},null),se(Re,{class:x(Ge.btn,Ge.confirmBtn)},null)])])])}}}),Ze=le({name:"ColexiuMicrophone",setup:function(e,t){t.expose;return function(){return se("div",null,[se("img",{class:Ge.image,src:"/orchestra-music-score/assets/camera.ad45a2ea.svg"},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:Ge.title},[ve("开启权限")]),se("div",{class:Ge.sub},[ve("请开启相机访问权限")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.cancelBtn)},null),se(Re,{class:x(Ge.btn,Ge.confirmBtn)},null)])])])}}}),$e=p(),Qe=le({name:"ColexiuMember",setup:function(){var e=k(),t=function(){delete $e.Authorization,de({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter?"+ye.stringify(r({},$e)),orientation:1}})},n=function(){j.show=!1,w(0),I(0)};return function(){return se("div",null,[se("img",{class:Ge.image,src:"/orchestra-music-score/assets/membership.78b7ec9a.png"},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:Ge.title},[ve("请开通会员")]),se("div",{class:Ge.sub},[ve("开通会员后可完整使用该曲目")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.tryoutBtn),onClick:n},null),se(Re,{class:x([Ge.btn,Ge.membershipBtn,a({},Ge.discounts,1==$e.discounts)]),onClick:t},null)])])])}}}),Xe="/orchestra-music-score/assets/demand.14944949.svg";ue(!1);var et=p(),tt=le({name:"ColexiuDemand",setup:function(){var e=k(),t=function(){var t=l(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete et.Authorization,de({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+ye.stringify(r({orderType:"MUSIC"},et)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){j.show=!1,w(0),I(0)};return function(){var e;return se("div",{style:{position:"relative"}},[se("img",{class:Ge.image,src:Xe},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:Ge.title},[ve("该曲目为点播曲目")]),se("div",{class:Ge.sub},[ve("点播价格 "),se("span",{style:{color:"#FF4E19"}},[ve("¥"),null===(e=o.activeDetail)||void 0===e?void 0:e.musicPrice]),ve(",点播后可永久使用")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.tryoutBtn),onClick:n},null),se(Re,{class:x(Ge.btn,Ge.demandBtn),onClick:t},null)])])])}}}),nt=le({name:"ColexiuEarphone",setup:function(){return function(){return se("div",null,[se("img",{class:Ge.image,src:"/orchestra-music-score/assets/earphone.37a59b5d.svg"},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:Ge.title},[ve("请佩戴耳机")]),se("div",{class:Ge.sub},[ve("佩戴耳机可以保证测评准确率哦~")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.earphoneBtn),onClick:function(){j.show=!1}},null)])])])}}});ue(!1);var it=p(),rt=le({name:"memberAndDemand",setup:function(){var e=k(),t=function(){var t=l(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:delete it.Authorization,de({api:"openWebView",content:{url:location.origin+"/"+e+"/#/orderDetail?"+ye.stringify(r({orderType:"MUSIC"},it)),orientation:1}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),n=function(){delete it.Authorization,de({api:"openWebView",content:{url:location.origin+"/"+e+"/#/memberCenter",orientation:1}})},i=function(){j.show=!1,w(0),I(0)};return function(){var e;return se("div",{style:{position:"relative"}},[se("img",{class:Ge.closeBtn,src:P,onClick:i},null),se("img",{class:Ge.image,src:Xe},null),se("div",{class:Ge.wrap},[se("div",{class:Ge.des},[se("div",{class:[Ge.title,Ge.andTitle]},[ve("该曲目为会员曲目,可以单曲购买哦")]),se("div",{class:[Ge.sub,Ge.andSub]},[ve("开通酷乐秀会员海量曲目尽情练习"),se("br",null,null),ve("单曲点播仅需 "),se("span",{style:{color:"#FF4E19"}},[ve("¥"),null===(e=o.activeDetail)||void 0===e?void 0:e.musicPrice]),ve(",点播后可永久使用")])]),se("div",{class:Ge.btnWrap},[se(Re,{class:x(Ge.btn,Ge.membershipBtn),onClick:n},null),se(Re,{class:x(Ge.btn,Ge.demandBtn),onClick:t},null)])])])}}}),at=le({name:"ColexiuPermission",setup:function(e,t){return(0,t.expose)({toggle:function(){j.show=!j.show}}),function(){return se(T,{class:Ge.popup,show:j.show,"onUpdate:show":function(e){return j.show=e},teleport:"body",onClosed:function(){w(0)}},{default:function(){return["microphone"===j.active?se(Ye,null,null):"camera"===j.active?se(Ze,null,null):"member"===j.active?se(Qe,null,null):"demand"===j.active?se(tt,null,null):"earphone"===j.active?se(nt,null,null):"memberAndDemand"===j.active?se(rt,null,null):null]}})}}}),ot="_item_6tre7_1",lt="_tag_6tre7_23",st="_tabs_6tre7_60",ct="_list_6tre7_105",ut="_tab_6tre7_60",dt={VIP:"会员",CHARGE:"点播",FREE:"免费"},pt=le({name:"SwitchTag",props:{type:String},setup:function(e){return function(){return se(qe,{plain:!0,class:[lt,e.type,"van-hairline--surround"]},{default:function(){return[dt[e.type]]}})}}}),ft=le({name:"MusicList-MusicScore-Item",props:{item:{type:Object}},setup:function(e){var t=p(),n=sessionStorage.getItem("behaviorId")||""+(new Date).valueOf();return function(){var i,a,o;return se("div",{class:[ot,{active:(null===(i=e.item)||void 0===i?void 0:i.id)==t.id}],onClick:function(){return C(),de({api:"cloudDestroy"}),de({api:"cloudLoading",content:{show:!0,type:"fullscreen"}}),void(location.href=location.origin+location.pathname+"?"+ye.stringify(r(r({},t),{},{behaviorId:n,id:null===(i=e.item)||void 0===i?void 0:i.id,_t:(new Date).valueOf()})));var i}},[se("div",{style:{display:"flex"}},[((null===(a=e.item)||void 0===a?void 0:a.paymentType)||"").split(",").map((function(e){return se(pt,{key:e,type:e},null)}))]),se("p",null,[null===(o=e.item)||void 0===o?void 0:o.musicSheetName])])}}});var mt=le({name:"MusicList-MusicScore-List",props:{list:{type:Array,default:function(){return[]}},url:{type:String,default:""},moreSearch:{type:Object,default:function(){return{}}}},emits:["refresh"],setup:function(e,t){t.emit;var i=ue(!1),a=ue(!1),o=ue(1),s=ue([]),c=ue(),u=function(){var t=l(regeneratorRuntime.mark((function t(){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.url){t.next=2;break}return t.abrupt("return");case 2:return i.value=!0,t.prev=3,t.next=6,f(e.url,{params:r({page:o.value},e.moreSearch)});case 6:l=t.sent,s.value=[].concat(n(s.value),n(l.data.rows)),a.value=l.data.totalPage<o.value,t.next=13;break;case 11:t.prev=11,t.t0=t.catch(3);case 13:i.value=!1;case 14:case"end":return t.stop()}}),t,null,[[3,11]])})));return function(){return t.apply(this,arguments)}}();he(u);var d=function(){i.value||a.value||(o.value=o.value+1,u())};return function(){var e,t;return s.value.length||i.value?se("div",{class:ut},[se(ze,{ref:c,class:ct,loading:i.value,finished:a.value,onLoad:d},(t=e=s.value.map((function(e){return se(ft,{item:e,key:e.id},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!we(t)?e:{default:function(){return[e]}}))]):se(De,{description:"暂无曲目"},{default:function(){return[se("span",null,null)]}})}}}),ht=p(),gt=le({name:"MusicList-MusicScore",setup:function(){return function(){return se(mt,{url:"/music/sheet/queryRelatedList",moreSearch:{albumId:ht.albumId,musicSheetId:ht.id}},null)}}}),vt=le({name:"MusicList-MusicScore",setup:function(){return function(){return se(mt,{url:"/music/sheet/favorite"},null)}}}),bt=le({name:"MusicList-Practice",setup:function(){return function(){return se(mt,{url:"/music/sheet/practice"},null)}}}),_t=le({name:"MusicListContent",setup:function(){return function(){return se(O,{class:st},{default:function(){return[se(B,{title:"其他曲谱"},{default:function(){return[se(gt,null,null)]}}),se(B,{title:"最近练习"},{default:function(){return[se(bt,null,null)]}}),se(B,{class:ut,title:"我的收藏"},{default:function(){return[se(vt,null,null)]}})]}})}}}),yt=ue(!1),wt=ue(!1),St=function(){yt.value=!1},xt=function(){wt.value=!1},kt=le({name:"MusicList",setup:function(e){return function(){return se(T,{show:yt.value,onClickOverlay:St,onClosed:xt,position:"right",teleport:"body",style:{height:"100vh",width:"55vw",borderRadius:"5px 0 0 5px",overflow:"hidden"}},{default:function(){return[wt.value&&se(_t,e,null)]}})}}}),jt="_container_hiwv0_1",It="_changeIndex_hiwv0_6",Pt=le({name:"fingering",props:{type:{type:String,default:""},fixedKey:{type:Number,default:0},fingeringInfo:{type:Object},loaded:{type:Function,default:function(){}},viewInfo:{type:Object}},setup:function(e,i){var r=i.expose,a=Se(e),l=ue(null);ue(null);var s=ue(0),c=ue(0);return r({container:l,containerWidth:s}),function(){var i,r,s,u,d,p,f,m,h,g,v,b,_,y,w;if(null===(i=a.viewInfo.value)||void 0===i||!i.activeType)return null;var S,k,j,I,P=(S=null===(r=e.fingeringInfo)||void 0===r?void 0:r.name,k=a.fixedKey.value,"piccolo"===S&&o.times[0]?ue(k+12*(1-o.times[0].octaveOffset)):ue(k)).value,T=function(e,n){var i=e[n]||e[0]||[];return"number"==typeof i[0]||"string"==typeof i[0]?[i]:"object"===t(i[0])?i:[[]]}(null===(s=a.viewInfo.value)||void 0===s||null===(u=s.activeType)||void 0===u?void 0:u.relationship,P||0),C=[];o.activeNote&&(null===(j=o.activeNote)||void 0===j||j.halfTone1.forEach((function(e){var t,i,r,o=(null===(t=a.viewInfo.value)||void 0===t||null===(i=t.activeType)||void 0===i||null===(r=i.relationship)||void 0===r?void 0:r[e])||[];o=o.map((function(e){return"right"+e})),C.push.apply(C,n(o))})),null===(I=o.activeNote)||void 0===I||I.halfTone2.forEach((function(e){var t,i,r,o=(null===(t=a.viewInfo.value)||void 0===t||null===(i=t.activeType)||void 0===i||null===(r=i.relationship)||void 0===r?void 0:r[e])||[];o=o.map((function(e){return"left"+e})),C.push.apply(C,n(o))})));var O=T[c.value]||[];return se("div",{ref:l,class:x(null===(d=e.fingeringInfo)||void 0===d?void 0:d.name,jt),style:{width:"vertical"===(null===(p=e.fingeringInfo)||void 0===p?void 0:p.direction)?null===(f=e.fingeringInfo)||void 0===f?void 0:f.width:"",height:"transverse"===(null===(m=e.fingeringInfo)||void 0===m?void 0:m.direction)?(null===(h=e.fingeringInfo)||void 0===h?void 0:h.height)||"":"100%",display:"flex",paddingLeft:"vertical"===(null===(g=e.fingeringInfo)||void 0===g?void 0:g.direction)?null===(v=e.fingeringInfo)||void 0===v?void 0:v.paddingLeft:"",paddingRight:"vertical"===(null===(b=e.fingeringInfo)||void 0===b?void 0:b.direction)?null===(_=e.fingeringInfo)||void 0===_?void 0:_.paddingRight:""}},[O.includes(0)?se("span",{style:{position:"absolute",top:".5vh",right:".5vw",color:"rgb(1, 193, 181)",fontWeight:"bold"}},[ve("转调")]):null,se("div",{style:{width:"100%",height:"100%"},class:C,innerHTML:null===(y=a.viewInfo.value)||void 0===y||null===(w=y.activeType)||void 0===w?void 0:w.json.full2},null),T.length>1?se("div",{role:"button",onClick:function(){var e=c.value===T.length-1?0:c.value+1;c.value=e},class:["substituteFinger",It]},[ve("替指")]):null])}}}),Tt="_fingering_shnq0_1",Ct=["piano"],Ot=ue(0),Bt=ue("hidden"),Rt=function(){var e=l(regeneratorRuntime.mark((function e(t){var n,i,r,a,l,s,c,u,p,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t)){e.next=21;break}return e.next=4,z(n.name);case 4:if(!(i=e.sent)){e.next=19;break}return r=F(n.name,o.fixedKey),a=L(i,n.name,r.value),e.next=10,E(a.value);case 10:return l=e.sent,s=l.width,c=l.height,u=document.getElementById("colexiu-detail-music-sheet").clientHeight||0,p=d.evaluatingStatus?0:s,f=u/c,Ot.value=u?f*p:p,s&&(Bt.value="show"),e.abrupt("return",xe({width:s,height:c,scale:f,usedFixedKey:r.value,fullsrc:a.value,activeType:i,detail:n}));case 19:e.next=22;break;case 21:Bt.value="hidden";case 22:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Dt=le({name:"ColexiuFingering",props:{code:{type:String,default:-1}},setup:function(e){var t=Se(e).code,n=ue(null),i=ue(-1);return pe([t],function(){var e=l(regeneratorRuntime.mark((function e(r,a){var o,l,c,u,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=s(r,1),l=o[0],c=s(a,1),u=c[0],i.value=M(t.value),l===u){e.next=8;break}return e.next=6,Rt(R[i.value]);case 6:(d=e.sent)&&(n.value=d);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),{immediate:!0,deep:!0}),function(){if(i.value<0||!n.value)return null;var e=R[i.value];return se("div",{class:[Tt,e.name,e.direction,"fingering"],style:{left:"vertical"===e.direction?o.notchHeight/2+"px":""}},[Ct.includes(null==e?void 0:e.name)?se(Pt,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:o.fixedKey},null):se(D,{viewInfo:n.value,type:null==e?void 0:e.name,fingeringInfo:e,fixedKey:o.fixedKey},null)])}}}),Mt="_wrap_1ojzw_1",zt=le({name:"productJson",setup:function(e,t){var n=t.expose,i=p();n({autoProduct:function(e){if("json"!==i.modeType){var t,n,r,l;if(console.log(Qt.rended,"渲染是否结束"),!Qt.svg)Qt.svg=(null===(t=document.getElementById("osmdSvgPage1"))||void 0===t?void 0:t.outerHTML)||"";if(Qt.svg)if("staff"===fe.sett.type)null!==(n=o.activeDetail)&&void 0!==n&&n.musicSvg||a(!1);else(!fe.sett.keySignature||null!==(r=o.activeDetail)&&void 0!==r&&r.musicFirstSvg)&&(fe.sett.keySignature||null!==(l=o.activeDetail)&&void 0!==l&&l.musicJianSvg)||a(!1)}}});var r=function(){var e=l(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({},!0);case 2:J("清除成功"),setTimeout((function(){history.go(0)}),500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){var e=l(regeneratorRuntime.mark((function e(){var t,n,i,r,a,l,u,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=!(p.length>0&&void 0!==p[0])||p[0],Qt.json){e.next=4;break}return r&&J("没有生成json数据,联系开发人员"),e.abrupt("return");case 4:if(Qt.svg){e.next=7;break}return r&&J("没有生成svg数据,联系开发人员"),e.abrupt("return");case 7:return a=null,r&&(a=J.loading({message:"上传数据中 1/2",duration:0})),l={svg:"",json:""},e.next=12,c("".concat(null===(t=o.activeDetail)||void 0===t?void 0:t.id,".json"),Qt.json);case 12:return l.json=e.sent,a&&(a.message="上传数据中 2/2"),e.next=16,c("".concat(null===(n=o.activeDetail)||void 0===n?void 0:n.id,".svg"),Qt.svg);case 16:return l.svg=e.sent,u={id:null===(i=o.activeDetail)||void 0===i?void 0:i.id,musicSvg:o.activeDetail.musicSvg,musicJianSvg:o.activeDetail.musicJianSvg,musicFirstSvg:o.activeDetail.musicFirstSvg},"staff"===fe.sett.type?u.musicSvg=JSON.stringify(l):fe.sett.keySignature?u.musicFirstSvg=JSON.stringify(l):u.musicJianSvg=JSON.stringify(l),a&&(a.message="保存数据中"),e.next=22,s(u);case 22:200==(null==(d=e.sent)?void 0:d.code)?a&&(a.message="保存成功"):a&&(a.message="保存失败"),setTimeout((function(){a&&a.close()}),300);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=function(){var e=l(regeneratorRuntime.mark((function e(t){var n,i,r=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.length>1&&void 0!==r[1]&&r[1]&&(t={id:null===(n=o.activeDetail)||void 0===n?void 0:n.id,musicJSON:"",musicSvg:"",musicJianSvg:"",musicFirstSvg:""}),e.next=4,f.post("/musicSheet/updateRenderFile",{requestType:"json",data:t});case 4:return 200===(i=e.sent).code&&(o.activeDetail.musicJSON=t.musicJSON,o.activeDetail.musicSvg=t.musicSvg,o.activeDetail.musicJianSvg=t.musicJianSvg,o.activeDetail.musicFirstSvg=t.musicFirstSvg),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var e=l(regeneratorRuntime.mark((function e(t,n){var i,r,a,o,l,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="https://".concat(i="daya",".ks3-cn-beijing.ksyuncs.com/"),a=Date.now()+"_"+t,o={filename:t,bucketName:i,postData:{filename:t,acl:"public-read",key:a}},e.next=6,f.post("/open/getUploadSign",{requestType:"json",data:o});case 6:for(u in l=e.sent,s=new FormData,c={policy:l.data.policy,signature:l.data.signature,key:a,KSSAccessKeyId:l.data.kssAccessKeyId,acl:"public-read",name:t})s.append(u,c[u]);return s.append("file",new Blob([n])),e.next=13,W.post(r,{data:s});case 13:return e.abrupt("return",r+a);case 14:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){return se(be,null,["json"===i.modeType&&se("div",{class:Mt},[se(A,null,{default:function(){return[se(N,{center:!0,title:"五线谱"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicSvg?se(Oe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),se(N,{center:!0,title:"首调"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicJianSvg?se(Oe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),se(N,{center:!0,title:"固定调"},{"right-icon":function(){var e;return null!==(e=o.activeDetail)&&void 0!==e&&e.musicFirstSvg?se(Oe,{name:"checked",color:"rgba(103,201,176,1)"},null):""}}),se(N,{title:"清除缓存数据",clickable:!0,onClick:r},null),se(N,{title:"保存缓存数据",clickable:!0,onClick:a},null)]}})])])}}}),Ft="_tipsContainer_16bs2_1",Lt="_backBtn_16bs2_6",Et="_content_16bs2_20",At="_parent_16bs2_25",Nt="_item_16bs2_36",Jt="_img_16bs2_41",Wt="_iconHead_16bs2_45",qt="_btns_16bs2_51",Ut="_btn_16bs2_51",Ht={"../images/icon-hand2.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/icon-hand2.d851ec92.png"},Symbol.toStringTag,{value:"Module"})),"../images/icon-header.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/icon-header.3b4d207c.png"},Symbol.toStringTag,{value:"Module"})),"../images/index.ts":Ee,"../images/m1.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/m1.290ace12.png"},Symbol.toStringTag,{value:"Module"})),"../images/m2.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/m2.42d4af93.png"},Symbol.toStringTag,{value:"Module"})),"../images/m3.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/m3.e1fd1696.png"},Symbol.toStringTag,{value:"Module"})),"../images/m4.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/m4.c9acb58f.png"},Symbol.toStringTag,{value:"Module"})),"../images/m5.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/m5.365472c1.png"},Symbol.toStringTag,{value:"Module"})),"../images/step0.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/step0.687e2fe1.png"},Symbol.toStringTag,{value:"Module"})),"../images/step1.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/step1.3309e3f2.png"},Symbol.toStringTag,{value:"Module"})),"../images/step2.png":Object.freeze(Object.defineProperty({__proto__:null,default:"/orchestra-music-score/assets/step2.aff09e55.png"},Symbol.toStringTag,{value:"Module"}))},Kt=function(e){var t;return(null===(t=Ht["../images/".concat(e)])||void 0===t?void 0:t.default)||""},Vt=le({name:"tips-tip1",emits:["hanldeStop"],setup:function(t,n){var i=n.emit,r=[{img:Kt("step0.png"),btnsStyle:{top:"-2.13333rem"},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.4rem"}},{img:Kt("step1.png"),btnsStyle:{top:"-2.2rem"},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.4rem"}},{img:Kt("step2.png"),btnsStyle:{top:"-0.7rem",left:"-2.5rem","justify-content":"space-evenly",padding:0},handStyle:{top:"-0.42667rem"},imgStyle:{top:"-2.7rem",left:"-2.3rem"}}],a=ue(),o=xe({show:!1,step:0,rect:{}});he((function(){l()}));var l=function(){!function(){var t,n=e(document.querySelectorAll(".".concat(At)));try{for(n.s();!(t=n.n()).done;)t.value.remove()}catch(i){n.e(i)}finally{n.f()}}();var t=document.querySelector("[data-step='step".concat(o.step,"']")),n=null==t?void 0:t.getBoundingClientRect(),i=null==t?void 0:t.cloneNode(!0);if(t&&n){var r,l=document.createElement("div");l.classList.add(At),l.style.left=(null==n?void 0:n.left)-10+"px",l.style.top=(null==n?void 0:n.top)-10+"px",l.style.width=(null==n?void 0:n.width)+20+"px",l.style.height=(null==n?void 0:n.height)+20+"px",o.rect=n||{},l.appendChild(i),null===(r=a.value)||void 0===r||r.append(l),console.log("🚀 ~ eleRect",a.value,n,"[data-step='step".concat(o.step,"']"))}},s=function(e){void 0!==e?o.step=e:o.step+=1,l()},c=function(){i("hanldeStop")};return function(){var e,t,n=r[o.step];return se("div",{class:Et,ref:a},[se("div",{class:Lt,onClick:function(){return c()}},[ve("跳过引导")]),se("div",{class:Nt,style:{left:"".concat(null===(e=o.rect)||void 0===e?void 0:e.left,"px"),top:"".concat(null===(t=o.rect)||void 0===t?void 0:t.top,"px")}},[se("img",{class:Jt,style:n.imgStyle,src:n.img},null),se("img",{class:Wt,style:n.handStyle,src:Kt("icon-header.png")},null),se("div",{class:qt,style:n.btnsStyle},[o.step+1==r.length?se(be,null,[se(Re,{class:Ut,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){return s(0)}},{default:function(){return[ve("再看一遍")]}}),se(Re,{class:Ut,round:!0,type:"primary",onClick:function(){return c()}},{default:function(){return[ve("完成")]}})]):se(Re,{class:Ut,round:!0,type:"primary",onClick:function(){return s()}},{default:function(){return[ve("下一步 ("),o.step+1,ve("/"),r.length,ve(")")]}})])])])}}}),Gt=le({name:"tips-tip1",emits:["hanldeStop"],setup:function(t,n){var i=n.emit,a=[{img:Kt("m1.png"),btnsStyle:{top:"2.6rem"},handStyle:{top:"0.8rem",left:"0.22rem"},imgStyle:{top:"0.8rem",left:"-0.1rem"}},{img:Kt("m2.png"),btnsStyle:{top:"2.6rem"},handStyle:{top:"0.8rem",left:"0.22rem"},imgStyle:{width:"2.66667rem",top:"0.9rem",left:"-0.1rem"}},{img:Kt("m3.png"),btnsStyle:{top:"2.8rem"},handStyle:{top:"0.8rem",left:"0.22rem"},imgStyle:{width:"2.45333rem",top:"0.8rem",left:"-0.1rem"}},{img:Kt("m4.png"),btnsStyle:{top:"2.8rem",left:"-1.3rem"},handStyle:{top:"0.8rem",left:"0.22rem"},imgStyle:{width:"2.45333rem",top:"0.8rem",left:"-1.6rem"}},{img:Kt("m5.png"),btnsStyle:{top:"2.6rem",left:"-1.9rem",width:"2.93333rem","justify-content":"space-evenly",padding:0},handStyle:{top:"0.8rem",left:"0.22rem"},imgStyle:{top:"0.7rem",left:"-1.9rem",width:"2.93333rem"}}],o=ue(),l=xe({show:!1,step:0,rect:{}});he((function(){s()}));var s=function(){!function(){var t,n=e(document.querySelectorAll(".".concat(At)));try{for(n.s();!(t=n.n()).done;)t.value.remove()}catch(i){n.e(i)}finally{n.f()}}();var t=document.querySelector("[data-step='m".concat(l.step+1,"']")),n=null==t?void 0:t.getBoundingClientRect(),i=null==t?void 0:t.cloneNode(!0);if(t&&n&&o.value){var a,s=document.createElement("div");s.classList.add(At),s.style.left=n.left-10+"px",s.style.top="0px",s.style.borderRadius="0.1rem",l.rect=r(r({},n),{},{left:n.left-n.width/2,top:n.top+2})||{},s.appendChild(i),null===(a=o.value)||void 0===a||a.append(s),console.log("🚀 ~ eleRect",o.value,n,"[data-step='step".concat(l.step,"']"))}},c=function(e){void 0!==e?l.step=e:l.step+=1,s()},u=function(){i("hanldeStop")};return function(){var e,t=a[l.step];return se("div",{class:Et,ref:o},[se("div",{class:Lt,onClick:function(){return u()}},[ve("跳过引导")]),se("div",{class:Nt,style:{width:"2.18667rem",left:"".concat(null===(e=l.rect)||void 0===e?void 0:e.left,"px"),top:"0px"}},[se("img",{class:Jt,style:t.imgStyle,src:t.img},null),se("img",{class:Wt,style:t.handStyle,src:Kt("icon-hand2.png")},null),se("div",{class:qt,style:t.btnsStyle},[l.step+1==a.length?se(be,null,[se(Re,{class:Ut,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){return c(0)}},{default:function(){return[ve("再看一遍")]}}),se(Re,{class:Ut,round:!0,type:"primary",onClick:function(){return u()}},{default:function(){return[ve("完成")]}})]):se(Re,{class:Ut,round:!0,type:"primary",onClick:function(){return c()}},{default:function(){return[ve("下一步 ("),l.step+1,ve("/"),a.length,ve(")")]}})])])])}}}),Yt=le({name:"tips-step",setup:function(e,t){var n=ue(!1),i=xe({tip1:!1,tip2:!1});pe((function(){return o.initRendered}),(function(){var e=localStorage.getItem("isFirstTip");o.initRendered&&"init"===q.value&&!e&&console.log("首次渲染结束")})),pe(q,(function(){console.log(q.value);var e=localStorage.getItem("isFirstModel");"practice"!==q.value||e||console.log("模式更改")}));var r=function(e){localStorage.setItem(e,"ok")};return function(){return se(T,{teleport:"body",closeOnClickOverlay:!1,class:Ft,show:n.value,"onUpdate:show":function(e){return n.value=e}},{default:function(){return[i.tip1&&se(Vt,{onHanldeStop:function(){n.value=!1,r("isFirstTip")}},null),i.tip2&&se(Gt,{onHanldeStop:function(){n.value=!1,r("isFirstModel")}},null)]}})}}}),Zt=p(),$t=ke(),Qt=i("musicJSON",xe({json:"",svg:"",rended:!1})),Xt=i("MusicSheetRef",ue());i("default",le({name:"Colexiu",setup:function(){Pe(),o.midiPlayIniting=!0;var e=ue(!0),t=ue(!1),n=ue(!1),i=ue(""),a=ue("init"),c=ue(""),p=ue({}),f=ue({}),m=s(U(Zt.id),2),h=m[0],g=m[1],v=new X(650,884);pe(h,l(regeneratorRuntime.mark((function r(){var l,u,d,m,v,b,_,y,w,S;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("success"!==h.value||!g.value.xmlFileUrl){r.next=16;break}return P(g.value),f.value=R[M(g.value.code||"")]||{},l=He(),u=l.showFingering,d=l.frozenMode,m=l.compulsionEvaluating,r.next=6,ae(u.value?g.value.code:void 0);case 6:v=r.sent,b=s(v,3),_=b[0],y=b[1],w=b[2],a.value=_.value,c.value=y.value,p.value=w.value,o.frozenMode=d.value,n.value=m.value;case 16:if("success"!==h.value||!g.value.xmlFileUrl){r.next=27;break}return r.next=19,oe(g.value.xmlFileUrl,g.value);case 19:if((S=r.sent).value){r.next=26;break}return e.value=!1,t.value=!0,r.abrupt("return");case 26:i.value=S.value;case 27:case"end":return r.stop()}}),r)}))));var b,_,y,w=(b=function(){"vertical"===f.value.direction&&(J("加载中,请稍后..."),setTimeout((function(){Xt.value.reRender()}),16))},_=300,y=!0,function(){if(!y)return!1;y=!1,setTimeout((function(){b(),y=!0}),_)});he((function(){window.appName="colexiu",H.on("settingFingeringChange",w),de({api:"setEventTracking",content:{type:"klx_xiaokuAI"}})})),ge((function(){var e,t,n;(H.off("settingFingeringChange",w),"function"==typeof(null===(e=d)||void 0===e||null===(t=e.audiosInstance)||void 0===t?void 0:t.destroy))&&(null===(n=d.audiosInstance)||void 0===n||n.destroy())})),K(),V(),G();var S=ue(!1),x=ue(),k=function(){var t=l(regeneratorRuntime.mark((function t(i){var r,a,l,s,c,p,f,m,h,v,b,_,y,w,k,j;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(window.isLoading=!1,console.log("onRerender","渲染结束"),de({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),console.log("cloudLoading",!1),o.initRendered=!0,console.log(Zt),console.time("获取数据"),d.osmd=i,o.isSpecialBookCategory=!0,"native"===o.renderType&&(o.times=ee(i)),S.value="json"===Zt.modeType||!(null!==(r=o.activeDetail)&&void 0!==r&&r.musicSvg)||!(null!==(a=o.activeDetail)&&void 0!==a&&a.musicJianSvg)||!(null!==(l=o.activeDetail)&&void 0!==l&&l.musicFirstSvg),S.value){f=u(i),m=f.numerator,h=f.denominator;try{Qt.json=JSON.stringify({musicId:o.activeDetail.id,musicSheetName:encodeURIComponent(o.activeDetail.musicSheetName),osmd:{product:!0,bpm:(null==i||null===(v=i.Sheet)||void 0===v?void 0:v.userStartTempoInBPM)||(null==i?void 0:i.bpm),numerator:m,denominator:h,scoreSize:fe.sett.scoreSize||"middle"},times:o.times}),Qt.svg=(null===(b=document.getElementById("osmdSvgPage1"))||void 0===b?void 0:b.outerHTML)||"",je((function(){var e,t;Qt.svg=(null===(e=document.getElementById("osmdSvgPage1"))||void 0===e?void 0:e.outerHTML)||"",Qt.rended=!0,null===(t=x.value)||void 0===t||t.autoProduct()}))}catch(I){console.log(I)}}return console.timeEnd("获取数据"),console.log("🚀 ~ detailState.times",o.times),_=(Ie.get("speeds")||{})[Zt.id],y=i.bpm||i.Sheet.userStartTempoInBPM,o.activeSpeed=_||y||100,o.baseSpeed=y||100,o.code=(null===(s=g.value)||void 0===s?void 0:s.code)||"",o.activeDetail.originalSpeed=o.baseSpeed,w=(null===(c=o.times[o.times.length-1||0])||void 0===c?void 0:c.endtime)||0,o.isAppPlay&&Ue(w,g.value.midiUrl),d.durationNum||(d.durationNum=w),t.next=25,Ke();case 25:k=t.sent,o.freeRate=k.value,te(g.value.paymentType||g.value.chargeType,g.value.orderStatus),pe((function(){return fe.sett.camera}),(function(e){de(e?{api:"openCamera"}:{api:"closeCamera"})}),{immediate:!0}),ne(o.activeSpeed),((null===(p=o.setting)||void 0===p?void 0:p.resets)||[]).includes("SPEED")&&o.activeDetail&&ne(null===(j=o.activeDetail)||void 0===j?void 0:j.originalSpeed),ie(),e.value=!1;try{re(o.times)}catch(I){}n.value&&(d.evaluatingStatus=!0,q.value="evaluation");case 35:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=l(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.value=!0,de({api:"cloudLoading",content:{show:!0,type:"fullscreen"}});case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),I=function(){window.isLoading=!1,de({api:"cloudLoading",content:{show:!1,type:"fullscreen"}}),t.value=!0,e.value=!1},P=function(e){de({api:"cloudAccompanyMessage",content:{accompanyUrl:e.audioFileUrl||e.metronomeUrl||e.url||""}})};return function(){var n=e.value||"loading"===h.value,l=t.value||"error"===h.value,s=f.value,c=s.width,u=s.paddingRight,p=s.paddingLeft,m=s.direction,b="init"!==a.value,_=c||"0px",y=u||"0px",w=p||"0px",S="vertical"===m,P="vertical"===m?"20px":"0px",T="show"===a.value&&fe.sett.fingering&&!d.evaluatingStatus,C="vertical"===m&&T,O=r(r({},S&&{margin:"auto",marginRight:0}),{},{width:f.value&&C?"calc(100% - ".concat(_," - ").concat(y," - ").concat(w," - ").concat(P,")"):""});return se("div",{class:[Me.container,fe.sett.eyeProtection&&"eyeProtection",$t.android&&"android"]},[se(Y,{class:Me.buttons},null),se("div",{id:"colexiu-detail-music-sheet",class:[Me.musicSheet,{evaluating:d.evaluatingStatus||"follow"===q.value}],style:{paddingLeft:o.isSpecialShapedScreen?o.notchHeight/2+"px":"auto",paddingBottom:T&&f.value.height?f.value.height:"40px",background:fe.sett.camera?"rgba(".concat(fe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(fe.sett.opacity/100,") !important"):""}},[n&&!l&&se(Le,{class:Me.skeleton,rowWidth:"80%",title:!0,row:3},null),l&&se(De,null,null),i.value&&b&&se(be,null,[se("h3",{style:{fontSize:"24px",fontWeight:"normal",textAlign:"center",padding:"0 10px",marginTop:"36px",marginBottom:"0px",marginLeft:"auto",width:O.width},class:"van-ellipsis"},[g.value.musicSheetName]),se(Z,{ref:Xt,style:O,score:i.value,EngravingRules:"multiple"===Zt.pageType?{PageFormat:v,DYMusicScoreType:fe.sett.type}:{DYMusicScoreType:fe.sett.type},opotions:{drawTitle:!1,drawComposer:!0,drawLyricist:!1,drawMetronomeMarks:!0,drawMeasureNumbers:!0,autoResize:!1},onStartRender:j,onRenderError:I,onRerender:k,onLoaddingEnd:function(){e.value=!1,window.isLoading=!1,de({api:"cloudLoading",content:{show:!1,type:"fullscreen"}})}},null),T&&se(Dt,{style:{background:fe.sett.camera?"rgba(".concat(fe.sett.eyeProtection?"253,244,229":"255,255,255"," ,").concat(fe.sett.opacity/100,")"):"",boxShadow:fe.sett.camera?"none":""},code:g.value.code},null)])]),!n&&!l&&se(Ve,null,null),se(Fe,{score:i.value},null),se(at,null,null),se($,null,null),se(Q,null,null),se(kt,null,null),se(zt,{ref:x},null),se(Yt,null,null)])}}}))}}}))}();