!function(){function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,a)}return i}function t(t){for(var a=1;a=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:n}}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 o,l=!0,u=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return l=e.done,e},e:function(e){u=!0,o=e},f:function(){try{l||null==i.return||i.return()}finally{if(u)throw o}}}}function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(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 r(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);ip>span{color:var(--strong--color);font-weight:700;font-size:.42667rem;display:inline-flex;align-items:center}._rule_p5al5_187>p>span span{font-size:.37333rem;padding-left:.10667rem}._tagMore_p5al5_204 .van-field__control{visibility:hidden;opacity:0}._showField_p5al5_208{padding-top:0!important}._showField_p5al5_208 .van-field__label{display:none}._showField_p5al5_208 .van-field__control{display:flex;flex-wrap:wrap}._button-area_p5al5_218{padding:.26667rem .37333rem}._button-area_p5al5_218 .van-button{background:transparent;padding:0;border:0;height:1.33333rem}._button-area_p5al5_218 .van-button:active:before{opacity:0}._button-area_p5al5_218 .van-button__text{height:100%}._button-area_p5al5_218 img{width:100%;max-height:100%}._radio-group_p5al5_237{display:flex}._radio-group_p5al5_237 ._radio_p5al5_237:first-child .van-radio__label{margin-left:0}._radio_p5al5_237 .van-radio__icon{display:none}._radio_p5al5_237 .van-tag--large{width:2.13333rem;height:.8rem;padding-left:0;padding-right:0;font-size:.42667rem;text-align:center;display:flex;align-items:center;justify-content:center;border-radius:.16rem}._radio_p5al5_237 .van-tag{box-sizing:border-box}._radio_p5al5_237 .van-tag--default{color:#777}._radio_p5al5_237 .van-tag--primary{background-color:var(--tag-bg-color)}._tags_p5al5_267{margin-right:.13333rem;margin-bottom:.13333rem;background:#F2FFFC!important;border-radius:.10667rem;height:.74667rem;font-size:.37333rem;color:#00b2a7!important;padding-top:0!important;padding-bottom:0!important;border:.02667rem solid #9FE2DE!important;-webkit-user-select:none;-moz-user-select:none;user-select:none}._file_p5al5_280{display:flex;width:100%}._file_p5al5_280>div{flex:1}._file_p5al5_280>div>span{display:inline-block;margin-left:.13333rem}._file_p5al5_280 ._delbtn_p5al5_291{padding:0;height:auto;border:none}._upbtn_p5al5_296{border:.02667rem solid #cfcfcf;width:100%;color:#aaa;height:1.28rem;background:#F6F8F9;border-radius:.16rem;border-style:dashed}._upbtn_p5al5_296 i{font-size:.64rem}._upbtn_p5al5_296 .van-button__text{max-width:90%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}._tips_p5al5_314{font-size:.32rem;color:#e0945a;line-height:.48rem;padding:.4rem .29333rem;background:#fff3eb;border-radius:.26667rem;margin:0 .37333rem .32rem}._tips_p5al5_314 ._tipsTitle_p5al5_323{font-size:.37333rem;font-weight:600;color:#e0945a;line-height:.53333rem;padding-bottom:.16rem}._tips_p5al5_314 span{color:#5aa9e0}._imgContainer_p5al5_333{width:2.69333rem!important;height:2.69333rem!important;border-radius:.26667rem;overflow:hidden;margin:0 0 .32rem;margin-top:0!important;position:relative}._listenAudioShow_p5al5_342{overflow:hidden;border-radius:.53333rem!important}._listenAudioShow_p5al5_342 .van-popup__close-icon{color:#6f7f7c;top:.53333rem}._wxPopupDialog_ayv7e_1{overflow:initial}._wxPopupDialog_ayv7e_1:before{position:absolute;content:" ";top:-.61333rem;left:50%;margin-left:-1.33333rem;display:inline-block;background:url(./assets/bell.1b9d3ad0.png) no-repeat top center;background-size:contain;width:2.66667rem;height:1.6rem}._wxPopupDialog_ayv7e_1._dialogError_ayv7e_16:before{background:url(./assets/error-icon.475b88a8.png) no-repeat top center;background-size:contain}._popupContainer_ayv7e_20{background:url(./assets/message-top-bg.d3857c6e.png) no-repeat top center;background-size:contain;border-radius:.53333rem;overflow:hidden;padding-bottom:.53333rem}._popupContainer_ayv7e_20 ._title1_ayv7e_27{padding-top:1.52rem;text-align:center;font-size:.48rem;font-weight:600;color:#000}._popupContainer_ayv7e_20 ._title1_ayv7e_27 span{position:relative;z-index:1}._popupContainer_ayv7e_20 ._title1_ayv7e_27 span:after{content:"";position:absolute;left:0;bottom:.02667rem;z-index:-1;width:100%;height:.21333rem;background:linear-gradient(to right,#2dc7aa,rgba(91,236,255,.2));opacity:.68}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49{position:relative;font-size:.4rem;color:#777;line-height:.56rem;padding-bottom:.42667rem;padding-top:.42667rem}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49 ._container_ayv7e_57{max-height:8rem;overflow-x:hidden;overflow-y:auto;padding:0 .53333rem}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49 ._cTitle_ayv7e_63{font-weight:600;font-size:.4rem;color:#131415;line-height:.61333rem}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49 ._cContent_ayv7e_69{font-size:.37333rem;color:#777;line-height:.64rem;padding-bottom:.37333rem}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49 ._cContent_ayv7e_69._cContentBottom_ayv7e_75{padding-bottom:0}._popupContainer_ayv7e_20 ._popupTips_ayv7e_49 ._cContent_ayv7e_69 span{color:#14bc9c;cursor:pointer;font-weight:500}._popupContainer_ayv7e_20 ._button_ayv7e_83{padding:0 .85333rem;width:calc(100% - 1.86667rem);margin:0 auto;height:1.06667rem;font-weight:600;font-size:.42667rem;color:#fff;line-height:.58667rem}._childContent_1xuwa_15 .van-tag{background:#F6F6F6!important;font-size:.37333rem;color:#777!important;border-color:#f6f6f6!important}._childContent_1xuwa_15 .van-tag--primary{background:#E9FFF8!important;border-color:#2dc7aa!important;color:#14bc9c!important}._btn_1xuwa_68{width:4.37333rem;font-size:.48rem;font-weight:700}._btn_1xuwa_68._btnCancel_1xuwa_73{border-color:#dbdbdb}._select_1xuwa_76{padding:0 .42667rem;height:100%;display:flex;flex-direction:column}._select_1xuwa_76>div{flex:1;overflow:hidden;overflow-y:auto}._select_1xuwa_76>footer{padding:.26667rem 0;display:flex;justify-content:space-between}._title_1xuwa_1{font-size:.48rem;font-weight:700;color:#000;padding-top:.50667rem;text-align:center}._tit_1xuwa_1{color:#333;line-height:.58667rem;font-size:.42667rem;margin:.26667rem 0 .53333rem}._childContent_1xuwa_15{display:flex;flex-wrap:wrap;text-align:center}._childContent_1xuwa_15 ._item_1xuwa_31{display:block;margin-right:.13333rem;margin-bottom:.26667rem;min-width:2.13333rem;height:.85333rem}._childContent_1xuwa_15 ._item_1xuwa_31:nth-child(4n + 0){margin-right:0}._radio-group_1xuwa_41{display:flex;margin-top:.37333rem}._radio-group_1xuwa_41 ._radio_1xuwa_41:first-child .van-radio__label{margin-left:0}._radio_1xuwa_41{box-sizing:border-box}._radio_1xuwa_41 .van-radio__icon,._radio_1xuwa_41 .van-checkbox__icon{display:none}._radio_1xuwa_41 .van-checkbox__label{margin-left:0}._radio_1xuwa_41 .van-tag--large{font-size:.37333rem;text-align:center;display:flex;align-items:center;justify-content:center}._radio_1xuwa_41 .van-tag{box-sizing:border-box}._btn_1xuwa_68{width:4.37333rem}._listenAudio_11s7w_1{background:url(./assets/top_bg.a1b99fc9.png) no-repeat top center;background-size:contain;width:8.4rem;min-height:5.33333rem}._listenAudio_11s7w_1 ._title_11s7w_7{padding-top:.53333rem;padding-bottom:.64rem;font-weight:600;font-size:.48rem;color:#000;text-align:center}._listenAudio_11s7w_1 ._title_11s7w_7 span{display:inline-block;position:relative}._listenAudio_11s7w_1 ._title_11s7w_7 span span{position:relative;z-index:5}._listenAudio_11s7w_1 ._title_11s7w_7 span:after{content:"";display:inline-block;width:100%;height:.21333rem;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAAAQCAYAAAD59vZgAAAAAXNSR0IArs4c6QAABaBJREFUaEPtmk12hDYQhKtbMPYmZ8m1s8k9cp6sYkDqvOpugRgz4yQvSxZ+M/xICPRRVa2x/PrH778BYiJi4B9gsW3+iQZA1ETFYLFPJM5RiPFECOI7z/dD2sTEoPD2omYwNSj39muwqe7X6H0KO/CLq6maNeO1eV2Ntr1PEY4MAvVxCfdzbN5eTZBtxKyxLc9Dg7Cdj0mjvZk17cdh3BblufzOzwrRuaFVcEB9f1yPD6RwqH5dni+lxHi4zbFUoPXjKN5/KyXPL2xuqBWqj6YFVmEmlsfB7Rij91cmvy/ecfX++X3imNAKGrYVOk1xzGBl+mxYN+jE9rNVzoL3D6szDCufKkxmmC7m+xSz97/BZ8yUn/PDlmXBPD+afsC+/vzC/MtHwxcgrwCKhx0PmV1dAbSDl5MuBCjh8knid0LTyNYzQAliTqOUBKLBUIpPMmci4A0YvM8izeHwMcW+dwDxPlRKI0QdoIAptwlpzb4UJvU1QLweh8UJkHlqnHhBsR2QDpD3kQBxcncAislGgHgsYMIA0wFQgKeltFcAESjCFgBtaGVq2OCw1BUmEyd/8rFy35ZgEKCN+xIWLCvY1zTNbQX4fsbxRwCEBZjmRyNAhIkQ+fEPGF+VM0AJwq5AObnxRhMOS9WJt/1QLk7G/tbBCF4HiKrg6tWV7VC5mNCA5UqB+GYHKGcF8rF4f1QSaXzY7xTIJ77544i+XIGmxuvbqGQOxxkgKWxFUN8pEJ9PvVQgKqirmCvGlQJtAQsVyFXGrKYCEdBWBkXi+KcyKFB853Oo2HzsowKdAeJdzK5AHSA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eB7nWg49857nUgX1z8P9eB/gZ6N42U24QufwAAAABJRU5ErkJggg==) no-repeat center;background-size:contain;position:absolute;bottom:-.05333rem;left:0;z-index:-1}._listenAudio_11s7w_1 ._container_11s7w_35 ._img_11s7w_35{position:relative;width:5.33333rem;height:5.33333rem;margin:0 auto;cursor:pointer}._listenAudio_11s7w_1 ._container_11s7w_35 ._img_11s7w_35 ._audioBg_11s7w_42{width:inherit;height:inherit}._listenAudio_11s7w_1 ._container_11s7w_35 ._img_11s7w_35 ._iconImg_11s7w_46{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:1.33333rem;height:1.33333rem}._listenAudio_11s7w_1 ._container_11s7w_35 ._slider_11s7w_54{padding:.45333rem 0 .26667rem;--van-slider-bar-height: .08rem;--van-slider-button-width: .34667rem !important;--van-slider-button-height: .34667rem !important;--van-slider-active-background-color: #2cc4a8 !important}._listenAudio_11s7w_1 ._container_11s7w_35 ._slider_11s7w_54 .van-slider{z-index:9}._listenAudio_11s7w_1 ._container_11s7w_35 ._slider_11s7w_54 .van-loading{width:100%;height:100%}._listenAudio_11s7w_1 ._container_11s7w_35 ._slider_11s7w_54 .van-slider__button{background:#2CC4A8;box-shadow:none}._listenAudio_11s7w_1 ._container_11s7w_35 ._audioInfo_11s7w_72{padding:.64rem .53333rem .53333rem}._listenAudio_11s7w_1 ._container_11s7w_35 ._audioInfo_11s7w_72 ._name_11s7w_75{font-weight:600;font-size:.42667rem;color:#131415;line-height:.58667rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._listenAudio_11s7w_1 ._container_11s7w_35 ._audioInfo_11s7w_72 ._time_11s7w_84{display:flex;align-items:center;justify-content:space-between;font-size:.37333rem;color:#777;line-height:.53333rem}._listenAudio_11s7w_1 ._container_11s7w_35 ._audioInfo_11s7w_72 audio{visibility:hidden;position:absolute;z-index:-2}._listenAudio_11s7w_1 ._container_11s7w_35 ._audioInfo_11s7w_72 .plyr{visibility:hidden;position:absolute;z-index:-2}\n',document.head.appendChild(s),System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.c8c5bc4e.js","./index-legacy.cae55a25.js","./index-legacy.9d25098b.js","./index-legacy.421f1fa7.js","./index-legacy.23131301.js","./index-legacy.7ce7fe04.js","./index-legacy.4be048cf.js","./index-legacy.9d5cae73.js","./index-legacy.16613192.js","./index-legacy.2ed4fbde.js","./toolsValidate-legacy.b90c63da.js","./index-legacy.6ac2a941.js","./index-legacy.39123961.js","./index-legacy.6e10cd37.js","./index-legacy.b257cee5.js","./index-legacy.4107d2fe.js","./plyr.min-legacy.2c76eff7.js","./index-legacy.b20da433.js","./use-id-legacy.ef8b5e97.js"],(function(e){"use strict";var i,r,o,l,s,c,d,p,m,g,f,_,A,h,b,v,y,w,F,x,U,B,S,C,T,I,k,E,R,K,V,M,D,Q,O,N;return{setters:[function(e){i=e.d,r=e.y,o=e.j,l=e.B,s=e.A,c=e.U,d=e.V,p=e.a3,m=e.aS,g=e.F,f=e.n,_=e.T,A=e.$,h=e.S,b=e.bi,v=e.bj,y=e.g,w=e.bk,F=e.f,x=e.Z},function(){},function(e){U=e.F},function(e){B=e.T},function(e){S=e.R,C=e.a},function(){},function(e){T=e.C},function(){},function(){},function(){},function(e){I=e.U,k=e.C},function(e){E=e.v,R=e.a},function(e){K=e.C},function(e){V=e.C},function(e){M=e.c},function(e){D=e.C},function(e){Q=e.S},function(e){O=e.P},function(e){N=e.F},function(){}],execute:function(){var H={CHARGE:"是",FREE:"否"},P={MP3:"MP3",MIDI:"MIDI"},L=function(e){var t,i,a={speed:0,title:"",composer:"",partNames:[]},n=(new DOMParser).parseFromString(e,"text/xml");a.title=(null===(t=n.getElementsByTagName("work-title")[0])||void 0===t?void 0:t.textContent)||"",a.composer=(null===(i=n.getElementsByTagName("creator")[0])||void 0===i?void 0:i.textContent)||"";for(var r=n.getElementsByTagName("measure"),o=0,l=Array.from(n.getElementsByTagName("part-name"));o=3)return void _("最多只能选3个标签");r([e.id])}}},{default:function(){return[o(B,{class:M(Re.item,"van-ellipsis"),plain:!0,type:a.value.includes(e.id)?"primary":"default",round:!0,size:"large"},{default:function(){return[e.name]}})]}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!A(n)?t:{default:function(){return[t]}}))]),o("footer",{class:"van-safe-area-bottom van-hairline--top"},[o(l,{class:[Re.btn,Re.btnCancel],round:!0,onClick:u},{default:function(){return[s("重置")]}}),o(l,{class:Re.btn,type:"primary",round:!0,onClick:function(){return i("confirm",a.value)}},{default:function(){return[s("确认")]}})])])}}}),Ve={listenAudio:"_listenAudio_11s7w_1",title:"_title_11s7w_7",container:"_container_11s7w_35",img:"_img_11s7w_35",audioBg:"_audioBg_11s7w_42",iconImg:"_iconImg_11s7w_46",slider:"_slider_11s7w_54",audioInfo:"_audioInfo_11s7w_72",name:"_name_11s7w_75",time:"_time_11s7w_84"},Me=i({name:"listen-audio",props:{fileInfo:{type:Object}},setup:function(e){var t=c(),i=h({audioPause:!0,duration:.01,currentTime:0}),a=function(){if(t.value){var e,a;if(i.audioPause)null===(e=t.value)||void 0===e||e.play();else null===(a=t.value)||void 0===a||a.pause();i.audioPause=t.value.paused}};return d((function(){var a;null!==(a=e.fileInfo)&&void 0!==a&&a.url&&(t.value=new O("#audioSrc",{controls:["play-large","play","progress","current-time","duration"],fullscreen:{enabled:!1}}),t.value.on("loadedmetadata",(function(){i.duration=t.value.duration})),t.value.on("timeupdate",(function(){i.currentTime=t.value.currentTime||0})),t.value.on("ended",(function(){i.currentTime=0,t.value.currentTime=0,i.audioPause=!0})))})),b((function(){var e;null===(e=t.value)||void 0===e||e.destroy()})),function(){var n,r;return o("div",{class:Ve.listenAudio},[o("h2",{class:Ve.title},[o("span",null,[o("span",null,[s("预览音频")])])]),o("div",{class:Ve.container},[o("div",{class:Ve.img,onClick:a},[o("img",{src:"./assets/audio-bg.95e8d5d2.png",class:Ve.audioBg},null),o("img",{src:i.audioPause?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAA/1BMVEUAAAAAAAD////////AwMD///////////8eHh7////////////c3Nz///9CQkIpKSn///////////+urq7KyspZWVlISEirq6u+vr7////////////9/f34+Pj5+fn29vb////w8PDv7+/////m5ubj4+P////h4eHY2NjW1tb////////////GxsbExMS7u7v///+2trazs7OYmJj///////+FhYV4eHh1dXX////////////////////////////////6+vqIiIhtbW0zMzPT09P39/fv7+/p6enk5OSzs7OlpaWbm5uDg4P////z8/Pe3t7b29uUlJTR0dH///+YENUmAAAAVHRSTlNNAP30ofaW+lPq4NCwYVdTKCEchalhW4Kb8ebj4eHa2M7JxMO7ubezr6ekopmUlJKMjIl5dnNvamRWSjYuJBgRCPF5bVm17N3Uy5aLhG9D5cLAgbNQ7srUAAADUElEQVRo3szUB1LbQABG4c0uktw7Nr133Hu3gRBCEkiZd/+zZEZxwAZbaC2FyTuAvlntzi8+vFP/I5Tq1s2T8KaSINVm+MSsd1O+Q8noxQZz2riIJv2D+uUQdnLrIJJZK1UqpbVM5GBLYhcq9/2Aho2wbeyc5doBMVOgnTvbsbVwY+gRSuYNQB2nY2JBsfSxAox80gOUuLRA7lfjwrF4dV+CdZlYEhqZEozIqnDRasQAaY6WgaJBUOdZ4bLsuYJgVBsaHII8jQmNYqcSDgd6UGcddptCs+YurHc0oLEJRlEsUdEAc+wWSu3BdkssVWsb9lLuoEQIjuJiyeJHEEq4gXpBZEF4qCAJ9t6GHhVWWngqbaEe34J6ClUTHqspVM8ZSgRRD8JzD4pgwglKhbBqwodqFqHUYmi8h0wLX0pL9sYLIRMKwqcKYC6COnAkfOsIOvOhwTrbcf+g+Dbrg7nQIUZL+FjL4HAeFIWi8LUiRF9DoyC7wud2CY5eQSay6TfUlJgvoYTkVPjeKTLxArpExfyHYorLWShpcS7+QedYyRkoj5EVjmVvAkK/rEF+GhoaRIRT13dg/VjVlyIYwymogXT8yDcLACOjfapVSWMKCrMvHApcMenTV11pn/Az1Ieq44F47vONHlSF/hNURjmu6RpTyduPWtuqKD9BIY6FUyvMdPVFRzom9BdKQk4Hgrtr91AakhMoiozpQcifWdfrIIlOoAt2hCYEasXtU9/hYgJtcKYPwfdf7qAzNv5AKcgtA8G9q6nIQcqGutDWh9xPRRu6NlRHBrQhjakISOo2ZLIldCGtqdjCtKETDrQhrak44MSGwkS0Ia2piBC2oU0yHiG4d7rlDJs2pFjzDHHruMnKhiQl75DlcE8lpA1BxTuEw8xW4N2gd/t1/j2G39XawRGAIAxE0RocDxQm/dfiyaOMYzKPhBqAZPf/a30Z2PVmD5Z9QexTZWOCDT42ytVywtYtvUAec55gJQZLPostLIipaMnCMov/qtBgFY0qnViNpopBVnWq8lbV0axgV8hAQZD9WCcZVFVAb5kwsQoezQK+lRB2BpSvphkExYmaKshvuaWyrhMQkAJK1XhXqsajVPWQxD5qb91EvpWa2Fq2jJ0bb+fuFEFWArUAAAAASUVORK5CYII=":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAABoCAMAAAAqwkWTAAAAxlBMVEUAAAAAAADz8/Pe3t7///////////////////+tra3////////////4+Pjc3Nz////FxcW1tbX///9HR0cpKSkbGxv////////Kysq6urqEhIT////////////9/f34+Pjl5eXw8PDv7+/////m5ubj4+P////h4eHY2NjNzc3W1ta+vr7///+YmJj///////94eHh1dXVYWFg+Pj7///////////////////////////////////9zc3NsbGz6+vqrq6v///890h9sAAAAQXRSTlNNAOXD/fSX99CE+ejg2bCjlIthWFNSIR2plW9I6+Ph4c3JxMO7ubezr6+nmox5dnNqZF5XVjYuKSckGREIb23wkGAHI4EAAAMfSURBVGjezNkFcuNAEEDR3mRGYGYMMxhjhsC//6W2SvFmE9uSSZrdf4FXVslST0t+Gep/hMr1lnXnnGoFSp86d1arXg4dKuXScdYUT+dK4UHDRgIvdXaVqjxXs9nqcyV1dabwSjSGYUDTtuMZyQe3W5QfFbvuQ9LTnPb0QKhk2YC+dfPiU9691YBtlQ6ARukYqMtsQQIrZC8VxNKjPaGZpcBOvcgWvaRsUNZsHygXB/2Uly3LP2mI53aGJteg7nuyQ717BdeT3aC+hmRNdqyWBN3fAZpbYGdkjzI2WPNtobID5x3Zq845OOXtoHECbgqyZ4UbSIy3gQYnqIwcUEZxMtgM1TUxVw7KjaHrm6CBRjflwJoaPQiGxifomhxcTXMyDoLKCWJNCaFmjETZH5o7KFdCyVU4c1/IgoyEVAYsP6gPNxJaN9BfD00054XwoMI5erIWusbuSIh1bK7XQTnISKhlILcKzeIkJeSSxGcrkIWqhQ3VFNYyNFLcS+jdo0ZLUBrdCx/qadI/oVKMJ4mgJ2KlH5CFHTTvFF/fxKe312LQbGRjfYemNqkA5lHDe1XWVH0H/RhApbCn36A2KmBOvMDrUVZ6xOsiYLJUtL9BDpfi2wefqZXL96r47EN8u8T5Cw0hu/EHQUWWqsDGn5SF4RfUQBfEtyMWHctSxyw6Et8KmsYXlOBWooLklsQfqARudJALpQWUQ+Wjg/KK3AJKk5ToIEmSXkBxHqKEHoh/QmVwo4RcKHtQHbpRQl2oe1ALVYwSKipaHmRxJlFCcoblQXdcRQtdcedBDqlooRSOB51SiRaqcOpBmudooWe0Bymq0UJVlAdBNlooC8YgY5fO2M1g7PY29oc19ggy9lA19pow9uIz9io3NZwYG7eMDZDGRmJTQ76xY4uxg5ipo6Wxw7Kx47+phYaxFY2ppZOxNZqpxaCxVaep5a2pdbSxBbupTwamPoL8+886v6u1gxoAABCGgf5do4AQoI9uBiagB4cqQ3ojY6Ilj1LB15SwiShvYwZPOOGkIGfcYuY6B4DkJ1UbJJbD3mbIl0kTuwmPCo+ARmIfCrojAAAAAElFTkSuQmCC",class:Ve.iconImg},null)]),o("div",{class:Ve.audioInfo},[o("audio",{crossorigin:"anonymous",id:"audioSrc",src:null===(n=e.fileInfo)||void 0===n?void 0:n.url,controls:"false",preload:"metadata",playsinline:!0},null),o("div",{class:Ve.name},[null===(r=e.fileInfo)||void 0===r?void 0:r.name]),o("div",{class:Ve.slider},[o(Q,{step:.01,class:Ve.timeProgress,modelValue:i.currentTime,"onUpdate:modelValue":[function(e){return i.currentTime=e},function(e){!function(e){t.value.currentTime=e}(e)}],max:i.duration},null)]),o("div",{class:Ve.time},[o("div",null,[v(i.currentTime)]),o("div",null,[v(i.duration)])])])])])}}});function De(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!A(e)}var Qe=e("validator",(function(e){return!(Number(e)<=0)||"收费金额必须大于0"}));e("default",i({name:"MusicUpload",data:function(){return{reason:"",playMode:"MP3",xmlFileUrl:"",xmlFileLoading:!1,midiFileUrl:"",midiLoading:!1,mp3Url:"",bgmp3Url:"",mp3Loading:!1,name:"",composer:"",remark:"",playSpeed:"",musicCover:"",paymentType:"FREE",musicPrice:"",musicalInstrumentIdList:[],selectTagVisible:!1,subJectVisible:!1,instrumentVisible:!1,tags:[],tagsNames:[],formated:{},tagVisibility:!1,listenAudioShow:!1,submitLoading:!1,music_sheet_service_fee:0,music_account_period:0,backgroundMp3s:[],auditStatus:"",messageTipStatus:!1,messageTipTitle:"上传须知",messageTipType:"upload",cbsInstrumentList:[],tagList:[],musicSheetAuthRecordId:null,fileInfo:{url:"",name:""},checked:!1}},watch:{formated:function(){this.mergeXmlData(this.formated)}},computed:{auditDisabled:function(){return"DOING"===this.auditStatus}},mounted:function(){var e=this;return u(regeneratorRuntime.mark((function t(){var i,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return localStorage.getItem("isCatchTip")||(e.messageTipStatus=!0),r.get("/api-teacher/sysConfig/queryByParamNameList",{params:{paramNames:"music_sheet_service_fee,music_account_period"}}).then((function(t){(t.data||[]).forEach((function(t){"music_sheet_service_fee"===t.paramName?e.music_sheet_service_fee=t.paramValue:"music_account_period"===t.paramName&&(e.music_account_period=t.paramValue)}))})),i="STUDENT"===y.platformType?"/api-student":"/api-teacher",r(i+"/MusicTag/tree").then((function(t){e.tagList=t.data||[]})),e.$route.params.id&&e.setDetail(e.$route.params.id),r.post("/api-teacher/musicalInstrument/list").then((function(t){(t.data||[]).forEach((function(t){e.cbsInstrumentList.push({id:t.id,name:t.name,code:t.code,loading:!1})}))})),t.next=9,r.post("/api-teacher/open/appVersion",{data:{platform:"STUDENT"===y.platformType?"ios-student":"ios-teacher",version:y.version}});case 9:a=t.sent,e.checked=!!a.data.check,e.checked&&(e.musicPrice="0",e.paymentType="FREE");case 12:case"end":return t.stop()}}),t)})))()},methods:{setDetail:function(e){var t=this;return u(regeneratorRuntime.mark((function i(){var a,n,o,l;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,r.get("/api-teacher/music/sheet/detail/".concat(e));case 3:for(a=i.sent,n=a.data,t.musicSheetAuthRecordId=n.musicSheetAuthRecordId,t.auditStatus=n.auditStatus,console.log(t.musicSheetAuthRecordId),t.playMode=n.audioType||"MP3",t.xmlFileUrl=n.xmlFileUrl,t.name=n.musicSheetName,t.composer=n.composer,t.playSpeed=n.playSpeed,o=n.musicTagNames.split(","),t.tags=n.musicTag.split(","),t.tags=t.tags.filter((function(e){return""!=e})).map((function(e){return Number(e)})),l=0;l-1&&(n=t)}}catch(u){o.e(u)}finally{o.f()}})),-1===n)return o=!0,"break";var r=t.cbsInstrumentList[n];r&&u.push({url:"",id:r.id,trackName:r.name,track:i,loading:r.loading})};for(s.s();!(e=s.n()).done;){if("break"===c())break}}catch(d){s.e(d)}finally{s.f()}if(l.length<=0||o)return t.messageTipStatus=!0,t.messageTipTitle="解析失败",t.messageTipType="error",void(t.xmlFileUrl="");t.formated=r,t.backgroundMp3s=u},i.readAsText(e)},mergeXmlData:function(e){this.formated=e,this.name||(this.name=e.title),this.composer||(this.composer=e.composer),!this.playSpeed&&e.speed?this.playSpeed=""+e.speed:this.playSpeed="100"},naiveXMLFile:function(){var e=this;this.xmlFileLoading=!0,f({api:"chooseFile",content:{type:"xml",bucket:"cloud-coach"}},(function(t){e.xmlFileUrl=(null==t?void 0:t.fileUrl)||e.xmlFileUrl||"",e.xmlFileLoading=!1,e.xmlFileUrl&&w(e.xmlFileUrl).then((function(t){var i,n=L(t),r=!1,o=n.partNames||[],l=[],u=a(o);try{var s=function(){var t=i.value,n=-1;if(e.cbsInstrumentList.forEach((function(e,i){var r,o=a(e.code?e.code.split(","):"");try{for(o.s();!(r=o.n()).done;){var l=r.value;t.indexOf(l)>-1&&(n=i)}}catch(u){o.e(u)}finally{o.f()}})),-1===n)return r=!0,"break";var o=e.cbsInstrumentList[n];o&&(console.log(o,"currentItem"),l.push({url:"",id:o.id,trackName:o.name,track:t,loading:o.loading}))};for(u.s();!(i=u.n()).done;){if("break"===s())break}}catch(c){u.e(c)}finally{u.f()}if(o.length<=0||r)return e.messageTipStatus=!0,e.messageTipTitle="解析失败",e.messageTipType="error",void(e.xmlFileUrl="");e.formated=n,e.backgroundMp3s=l}))}))},naiveMidFile:function(){var e=this;this.midiLoading=!0,f({api:"chooseFile",content:{type:"midi",bucket:"cloud-coach"}},(function(t){e.midiFileUrl=(null==t?void 0:t.fileUrl)||e.midiFileUrl||"",e.midiLoading=!1}))},naiveMp3File:function(){var e=this;this.mp3Loading=!0,f({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},(function(t){e.mp3Url=(null==t?void 0:t.fileUrl)||e.mp3Url||"",e.mp3Loading=!1}))},naiveBGMp3File:function(e){var t=this;this.backgroundMp3s[e].loading=!0,f({api:"chooseFile",content:{type:"mp3",bucket:"cloud-coach"}},(function(i){var a=(null==i?void 0:i.fileUrl)||t.backgroundMp3s[e].url||"";t.backgroundMp3s[e].url=a,t.backgroundMp3s[e].loading=!1}))},onFormatter:function(e){return E(e)},onFormatter2:function(e){return R(e)},fileName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null==e?void 0:e.split("/").pop()},createSubmitData:function(){var e,t,i;return{musicSheetJson:{playMode:this.playMode,xmlFileUrl:this.xmlFileUrl,name:this.name,composer:this.composer,playSpeed:this.playSpeed,remark:this.remark,musicTagIds:null===(e=this.tags)||void 0===e?void 0:e.join(","),musicCover:this.musicCover,multiTracksSelection:null===(t=this.backgroundMp3s.map((function(e){return e.track})))||void 0===t?void 0:t.join(","),midiFileUrl:this.midiFileUrl,musicSheetAccompanimentList:[{audioFileUrl:this.mp3Url,sortNumber:1,audioPlayType:"PLAY"}],musicPrice:this.musicPrice,paymentType:this.paymentType,musicSheetSoundList:this.backgroundMp3s.map((function(e){return{musicalInstrumentId:e.id,musicalInstrumentName:e.trackName,track:e.track,audioFileUrl:e.url,audioPlayType:"PLAY"}})),musicalInstrumentIds:null===(i=this.backgroundMp3s.map((function(e){return e.id})))||void 0===i?void 0:i.join(","),extConfigJson:'{"repeatedBeats":0,"gradualTimes":{},"isEvxml":0}'}}},onSubmit:function(e){var i=this;return u(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(console.log(e,i.createSubmitData()),i.submitLoading=!0,a.prev=2,!i.$route.params.id){a.next=8;break}return a.next=6,r.post("/api-teacher/musicSheetAuthRecord/update",{data:t(t({},i.createSubmitData()),{},{id:i.musicSheetAuthRecordId})});case 6:a.next=10;break;case 8:return a.next=10,r.post("/api-teacher/musicSheetAuthRecord/save",{data:i.createSubmitData()});case 10:_("上传成功"),setTimeout((function(){f({api:"back"})}),800),a.next=16;break;case 14:a.prev=14,a.t0=a.catch(2);case 16:return a.prev=16,setTimeout((function(){i.submitLoading=!1}),800),a.finish(16);case 19:console.log(e);case 20:case"end":return a.stop()}}),a,null,[[2,14,16,19]])})))()},onFailed:function(e){console.log("failed",e)}},render:function(){var e=this;return o(N,{class:q,onSubmit:this.onSubmit,onFailed:this.onFailed,disabled:this.auditDisabled},{default:function(){return[o(K,{title:" ",hideHeader:!1,background:"transparent",border:!1},null),o("div",{class:Y},[o("img",{src:"./assets/icon-brid.032839a6.png",class:J},null)]),o(T,{class:[X,Z],border:!1},{default:function(){return[o("div",{class:z,onClick:function(){e.messageTipStatus=!0,e.messageTipTitle="上传须知",e.messageTipType="upload"}},[s("上传须知")]),o("img",{class:G,src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lOzrdeUwFfdBiRg7vIyGE0PeqUJfFUhakyCyGx13L5Xk8AfKUQNTHAVhCPPLzmBfw6Impvgyjltx6Ul0HcB0eMJDOXHjMcSxJzjXP+SYNH7kQUlqQElrLQcAipQOGEW5eGu+u09/dcQvwDfSxhkGsZZLwAAAABJRU5ErkJggg=="},null),o("div",{class:W},null),o(U,{required:!0,label:"播放模式",center:!0,inputAlign:"right"},{input:function(){var t;return o(S,{class:fe,modelValue:e.playMode,"onUpdate:modelValue":function(t){return e.playMode=t},disabled:e.auditDisabled},De(t=Object.keys(P).map((function(t){var i=t===e.playMode,a=i?"primary":"default";return o(C,{class:_e,name:t},{default:function(){return[o(B,{size:"large",plain:i,type:a},{default:function(){return[P[t]]}})]}})})))?t:{default:function(){return[t]}})}}),"MP3"===e.playMode&&o(U,{name:"mp3Url",class:te,modelValue:e.mp3Url,rules:[{required:!0,message:"请选择MP3文件"}]},{label:function(){return o("div",{class:ae},[o("span",null,[o("i",null,[s("*")]),s("上传伴奏")]),o("span",{class:ne},[s("仅支持MP3格式文件")])])},input:function(){return F().isApp?o("div",{class:se},[o(l,{icon:ye,class:he,loading:e.mp3Loading,disabled:e.auditDisabled,onClick:function(){if(e.mp3Url)return e.listenAudioShow=!0,void(e.fileInfo={url:e.mp3Url,name:e.fileName(e.mp3Url)});e.naiveMp3File()}},{default:function(){return[e.mp3Url?o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[e.fileName(e.mp3Url)]):o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[s("上传伴奏文件")])]}}),e.mp3Url&&!e.auditDisabled&&o("i",{class:ce,onClick:function(){e.mp3Url=""}},null)]):o(g,null,[o(j,{"onUpdate:modelValue":function(t){e.mp3Url=t},accept:".mp3",disabled:e.auditDisabled},null),o("div",{style:{marginLeft:"8px"},onClick:function(){e.listenAudioShow=!0,e.fileInfo={url:e.mp3Url,name:e.fileName(e.mp3Url)}}},[e.fileName(e.mp3Url)])])}}),"MIDI"===e.playMode&&o(U,{name:"midiFileUrl",class:te,modelValue:e.midiFileUrl,rules:[{required:!0,message:"请选择MIDI文件"}]},{label:function(){return o("div",{class:ae},[o("span",null,[o("i",null,[s("*")]),s("上传MIDI")]),o("span",{class:ne},[s("仅支持MIDI格式文件")])])},input:function(){return F().isApp?o("div",{class:se},[o(l,{icon:ye,class:he,loading:e.mp3Loading,disabled:e.auditDisabled,onClick:function(){e.midiFileUrl||e.naiveMidFile()}},{default:function(){return[e.midiFileUrl?e.fileName(e.midiFileUrl):o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[s("上传MIDI文件")])]}}),e.midiFileUrl&&!e.auditDisabled&&o("i",{class:ce,onClick:function(){e.midiFileUrl=""}},null)]):o(g,null,[o(j,{"onUpdate:modelValue":function(t){return e.midiFileUrl=t},accept:".mid",formatFile:e.readerFile,disabled:e.auditDisabled},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(e.midiFileUrl)])])}}),o(U,{name:"xmlFileUrl",class:te,modelValue:e.xmlFileUrl,rules:[{required:!0,message:"请选择XML文件"}]},{label:function(){return o("div",{class:ae},[o("span",null,[o("i",null,[s("*")]),s("上传XML")]),o("span",{class:ne},[s("仅支持XML格式文件")])])},input:function(){return F().isApp?o("div",{class:se},[o(l,{icon:ye,class:he,loading:e.xmlFileLoading,disabled:e.auditDisabled,onClick:function(){e.xmlFileUrl||e.naiveXMLFile()}},{default:function(){return[e.xmlFileUrl?e.fileName(e.xmlFileUrl):o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[s("上传XML文件")])]}}),e.xmlFileUrl&&!e.auditDisabled&&o("i",{class:ce,onClick:function(){e.xmlFileUrl="",e.backgroundMp3s=[]}},null)]):o(g,null,[o(j,{"onUpdate:modelValue":function(t){return e.xmlFileUrl=t},accept:".xml,.",formatFile:e.readerFile,disabled:e.auditDisabled},null),o("div",{style:{marginLeft:"8px"}},[e.fileName(e.xmlFileUrl)])])}}),e.backgroundMp3s.length>=1&&"MP3"===e.playMode&&o(g,null,[o(U,{class:[te,ee],modelValue:e.xmlFileUrl,border:!1},{label:function(){return o("div",{class:ae},[o("span",{class:re},[o("i",null,[s("*")]),s("上传原音"),o("i",{class:oe,onClick:function(){e.messageTipStatus=!0,e.messageTipTitle="原音文件",e.messageTipType="origin"}},null)]),o("span",{class:ne},[s("仅支持MP3格式文件")])])}}),e.backgroundMp3s.map((function(t,i){return o(U,{name:"url",class:[te,ie],modelValue:t.url,rules:[{required:!0,message:"请选择原音文件文件"}]},{label:function(){return o("div",{class:ae},[o("span",null,[s("所属轨道:"),t.trackName])])},input:function(){return F().isApp?o("div",{class:se},[o(l,{icon:ye,class:he,loading:t.loading,disabled:e.auditDisabled,onClick:function(){if(t.url)return e.listenAudioShow=!0,void(e.fileInfo={url:t.url,name:e.fileName(t.url)});e.naiveBGMp3File(i)}},{default:function(){return[t.url?o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[e.fileName(t.url)]):o("span",{style:"text-decoration-line: underline;color: #14BC9C;"},[s("上传原声文件")])]}}),t.url&&!e.auditDisabled&&o("i",{class:ce,onClick:function(){t.url=""}},null)]):o(g,null,[o(j,{"onUpdate:modelValue":function(e){return t.url=e},accept:".mp3",disabled:e.auditDisabled},null),o("div",{style:{marginLeft:"8px"},onClick:function(){e.listenAudioShow=!0,e.fileInfo={url:t.url,name:e.fileName(t.url)}}},[e.fileName(t.url)])])}})}))])]}}),o(T,{class:[X],border:!1},{default:function(){var t;return[o("div",{class:[W,$]},null),o(U,{label:"曲目名称",required:!0,name:"name",modelValue:e.name,rules:[{required:!0,message:"请输入曲目名称"}],errorMessageAlign:"right",placeholder:"请输入曲目名称",inputAlign:"right",autocomplete:"off",maxlength:20,"onUpdate:modelValue":function(t){return e.name=t}},null),o(U,{label:"音乐人",required:!0,name:"composer",modelValue:e.composer,rules:[{required:!0,message:"请输入音乐人"}],errorMessageAlign:"right",placeholder:"请输入音乐人",inputAlign:"right",autocomplete:"off",maxlength:14,"onUpdate:modelValue":function(t){return e.composer=t}},null),o(U,{label:"曲目描述",clearable:!0,name:"remark",modelValue:e.remark,"onUpdate:modelValue":function(t){return e.remark=t},class:[te,le],placeholder:"请输入曲目描述",type:"textarea",maxlength:200,showWordLimit:!0},null),o(U,{label:"曲目封面",required:!0,class:[te],rules:[{required:!0,message:"请上传曲目封面"}]},{input:function(){return o(k,{cropper:!0,bucket:"cloud-coach",tips:"上传封面",disabled:e.auditDisabled,options:{autoCropWidth:600,autoCropHeight:600},modelValue:e.musicCover,"onUpdate:modelValue":function(t){return e.musicCover=t},class:be},null)}}),o(U,{required:!0,label:"曲目速度",name:"playSpeed",inputAlign:"right",rules:[{required:!0,message:"请输入曲目速度"}],errorMessageAlign:"right",modelValue:e.playSpeed,"onUpdate:modelValue":function(t){return e.playSpeed=t},placeholder:"请输入曲目速度,范围45-270",formatter:e.onFormatter2,onBlur:function(){e.playSpeed&&Number(e.playSpeed)>270&&(e.playSpeed="270"),e.playSpeed&&Number(e.playSpeed)<45&&(e.playSpeed="45")},autocomplete:"off"},null),o(U,{label:"曲目标签",placeholder:"请选择曲目标签",inputAlign:"right",isLink:!0,required:!0,readonly:!0,border:!(e.tags.length>0),name:"tags",modelValue:null===(t=e.tags)||void 0===t?void 0:t.join(","),class:e.tags.length>0?pe:"",rules:[{required:!0,message:"请选择曲目标签"}],errorMessageAlign:"right",disabled:e.auditDisabled,onClick:function(){e.auditDisabled||(e.tagVisibility=!0)}},null),e.tags.length>0&&o(U,{class:me},{input:function(){return e.tags.length>0?e.tags.map((function(t,i){return o(B,{type:"primary",size:"large",class:Ae,closeable:!e.auditDisabled,onClose:function(){e.tags.splice(i,1)}},{default:function(){return[e.tagsNames[t]]}})})):o(x,{style:{width:"100%"},description:"请选择曲目标签",imageSize:0},null)}}),!e.checked&&o(g,null,[o(U,{required:!0,label:"是否收费",center:!0,inputAlign:"right"},{input:function(){var t;return o(S,{class:fe,modelValue:e.paymentType,"onUpdate:modelValue":function(t){e.paymentType=t},disabled:e.auditDisabled},De(t=Object.keys(H).map((function(t){var i=t===String(e.paymentType),a=i?"primary":"default";return o(C,{class:_e,name:t},{default:function(){return[o(B,{size:"large",plain:i,type:a},{default:function(){return[H[t]]}})]}})})))?t:{default:function(){return[t]}})}}),"CHARGE"===e.paymentType&&o(g,null,[o(U,{label:"收费价格",required:!0,border:!1,class:ue,placeholder:" ",formatter:e.onFormatter,autocomplete:"off",modelValue:e.musicPrice,maxlength:8,center:!0,rules:[{required:!0,validator:Qe,message:"请输入收费价格"}],errorMessageAlign:"right","onUpdate:modelValue":function(t){return e.musicPrice=t}},{button:function(){return"元"}}),o("div",{class:de},[o("p",null,[s("扣除手续费后该曲目预计收入为:"),o("span",null,[((parseFloat(e.musicPrice||"0")||0)*(100-e.music_sheet_service_fee)/100).toFixed(2),o("span",null,[s("元/人")])])]),o("p",null,[s("您的乐谱收入在学员购买后"),e.music_account_period,s("天结算到您的账户中")])])])])]}}),o("div",{class:[ge]},[o(l,{type:"primary",block:!0,round:!0,"native-type":"submit",disabled:e.submitLoading||e.auditDisabled},{default:function(){return[o("img",{src:"./assets/btn-bg.5d196006.png"},null)]}})]),o(m,{show:e.tagVisibility,round:!0,closeable:!0,position:"bottom",style:{height:"35%"},teleport:"body","onUpdate:show":function(t){return e.tagVisibility=t}},{default:function(){return[o(Ke,{onConfirm:e.onComfirm,show:e.tagVisibility,onClose:function(){e.tagVisibility=!1},tagList:e.tagList,defaultValue:e.tags},null)]}}),o(m,{show:e.listenAudioShow,round:!0,closeable:!0,teleport:"body",class:ve,"onUpdate:show":function(t){return e.listenAudioShow=t}},{default:function(){return[e.listenAudioShow&&o(Me,{fileInfo:e.fileInfo},null)]}}),o(Ee,{title:e.messageTipTitle,type:e.messageTipType,show:e.messageTipStatus,onConfirm:function(){"upload"===e.messageTipType&&localStorage.setItem("isCatchTip","1"),e.messageTipStatus=!1}},null)]}})}}))}}}))}();