1234567891011121314151617181920212223242526 |
- import{c as Gn,a9 as kn,ai as Vn,t as At,aj as Xn,m as Yn,ak as Un,d as Le,a as _,h as Wn,ae as Qn,V as Kn,I as ke,H as zn,L as Zn,z as ht,k as Jn,al as Je,x as Ft,ag as qn,A as ae,e as vt,F as Pe,a1 as $n,am as er,an as tr,w as nr,y as sn,C as ln,r as rr,Z as Ke,a4 as or,ao as ir,R as ar,ap as Gt,aq as pn}from"./index-29f55498.js";import{I as Ve}from"./index-7fd2512c.js";import{G as sr,a as lr}from"./index-0f57322f.js";import{T as qt}from"./index-460d9c9b.js";import{C as ur}from"./index-8abd9667.js";const[cr,we]=Gn("action-sheet"),fr=kn({},Vn,{title:String,round:At,actions:Xn(),closeIcon:Yn("cross"),closeable:At,cancelText:String,description:String,closeOnPopstate:At,closeOnClickAction:Boolean,safeAreaInsetBottom:At}),dr=[...Un,"round","closeOnPopstate","safeAreaInsetBottom"];var pr=Le({name:cr,props:fr,emits:["select","cancel","update:show"],setup(s,{slots:a,emit:t}){const n=g=>t("update:show",g),o=()=>{n(!1),t("cancel")},r=()=>{if(s.title)return _("div",{class:we("header")},[s.title,s.closeable&&_(ke,{name:s.closeIcon,class:[we("close"),zn],onClick:o},null)])},u=()=>{if(a.cancel||s.cancelText)return[_("div",{class:we("gap")},null),_("button",{type:"button",class:we("cancel"),onClick:o},[a.cancel?a.cancel():s.cancelText])]},d=(g,e)=>g.loading?_(Zn,{class:we("loading-icon")},null):a.action?a.action({action:g,index:e}):[_("span",{class:we("name")},[g.name]),g.subname&&_("div",{class:we("subname")},[g.subname])],c=(g,e)=>{const{color:i,loading:l,callback:f,disabled:h,className:v}=g,m=()=>{h||l||(f&&f(g),s.closeOnClickAction&&n(!1),ht(()=>t("select",g,e)))};return _("button",{type:"button",style:{color:i},class:[we("item",{loading:l,disabled:h}),v],onClick:m},[d(g,e)])},p=()=>{if(s.description||a.description){const g=a.description?a.description():s.description;return _("div",{class:we("description")},[g])}};return()=>_(Kn,Wn({class:we(),position:"bottom","onUpdate:show":n},Qn(s,dr)),{default:()=>{var g;return[r(),p(),_("div",{class:we("content")},[s.actions.map(c),(g=a.default)==null?void 0:g.call(a)]),u()]}})}});const Hi=Jn(pr),ji="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABiCAMAAADjquTNAAAC91BMVEUAAABUsv8qlul+zv8tme6X5f8tpv9t0/8rlukql+kql+krl+mAzv8tmu150/8rl+iA0f94xv9+0/990f990v9/0v+B1P8rlukqlugrl+krl+krlugrlul6yP8slugrl+lywf8rl+l/1f8rluoqmOorlukrmOksmOksl+ktmel70f9v1P95yf9Tsf1dtv95z/9tvv92w/+AzP9vwP9wwP96yv9tvv80n+xo0P5HrPQ+pfJmuv911f9ht/9yv/9ht/+B1P9luv9tvf9Vsf5etv9Zs/9kzPxZwfhOt/Qqluj///8tqf8wrf8spf46u/87vf8qpP85uf8+wP42tf80sv8vq/81tP80s/8yr/8zsf8ysP88vv84uP8sp/82tv8xrv83t/8pov8/wv8noP4/w/8uqv88v/9AxP8qoP5Bxf8+wf8oof8vqv89wP88vf84uf8rpv8sov9Dxv8yqf8zpP5Lyf9Irv5WzP8upP9JyP81r/82pf5Hxv9Awv8/v/8+uf8up/9Xtf5Cqv46t/85sv8wov9Jwv9FxP47qP43p/5Pyf9GyP9CxP9Tuf82rP8/qf9SxP5g0f9SzP88tf89sP86q/9Nr/4xnOvK7f9Zzv9Oy/9Qxv9Bxv9txP9Dwv9DuP9FtP8yrf9Lrv5FrP5j0f9zy/8+s/9Mu/5Isv5Qsf5Dr/5tzv9Vyf9Syf9Kxf9fv/9Dvf9Esf85r//6/P7H6P5guP5Pwf1cz/95zf9Ex/9MxP9Fwf9Cv/9qvv9Hvv9Fu/9ctv8+rf80p/9y0/930f9lxP9awf9Nv/9mu/8+u/9Ntf8wp/8rpf9Zxv5Iuv5Vwf09p/Q8qfFn0f9fxf9Avf9Ctf87pv9oyP5lv/5cuv5It/43ovD1+/9izP9bzP9kyf9zxf9vwf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/ghXFhZG8QE48nhPIixQWV/iB/gIAs5wnecfVoQAAAABJRU5ErkJggg==";var $t={},hr={get exports(){return $t},set exports(s){$t=s}};(function(s){var a=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function o(c,p,g){this.fn=c,this.context=p,this.once=g||!1}function r(c,p,g,e,i){if(typeof g!="function")throw new TypeError("The listener must be a function");var l=new o(g,e||c,i),f=t?t+p:p;return c._events[f]?c._events[f].fn?c._events[f]=[c._events[f],l]:c._events[f].push(l):(c._events[f]=l,c._eventsCount++),c}function u(c,p){--c._eventsCount===0?c._events=new n:delete c._events[p]}function d(){this._events=new n,this._eventsCount=0}d.prototype.eventNames=function(){var p=[],g,e;if(this._eventsCount===0)return p;for(e in g=this._events)a.call(g,e)&&p.push(t?e.slice(1):e);return Object.getOwnPropertySymbols?p.concat(Object.getOwnPropertySymbols(g)):p},d.prototype.listeners=function(p){var g=t?t+p:p,e=this._events[g];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,l=e.length,f=new Array(l);i<l;i++)f[i]=e[i].fn;return f},d.prototype.listenerCount=function(p){var g=t?t+p:p,e=this._events[g];return e?e.fn?1:e.length:0},d.prototype.emit=function(p,g,e,i,l,f){var h=t?t+p:p;if(!this._events[h])return!1;var v=this._events[h],m=arguments.length,A,w;if(v.fn){switch(v.once&&this.removeListener(p,v.fn,void 0,!0),m){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,g),!0;case 3:return v.fn.call(v.context,g,e),!0;case 4:return v.fn.call(v.context,g,e,i),!0;case 5:return v.fn.call(v.context,g,e,i,l),!0;case 6:return v.fn.call(v.context,g,e,i,l,f),!0}for(w=1,A=new Array(m-1);w<m;w++)A[w-1]=arguments[w];v.fn.apply(v.context,A)}else{var S=v.length,C;for(w=0;w<S;w++)switch(v[w].once&&this.removeListener(p,v[w].fn,void 0,!0),m){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,g);break;case 3:v[w].fn.call(v[w].context,g,e);break;case 4:v[w].fn.call(v[w].context,g,e,i);break;default:if(!A)for(C=1,A=new Array(m-1);C<m;C++)A[C-1]=arguments[C];v[w].fn.apply(v[w].context,A)}}return!0},d.prototype.on=function(p,g,e){return r(this,p,g,e,!1)},d.prototype.once=function(p,g,e){return r(this,p,g,e,!0)},d.prototype.removeListener=function(p,g,e,i){var l=t?t+p:p;if(!this._events[l])return this;if(!g)return u(this,l),this;var f=this._events[l];if(f.fn)f.fn===g&&(!i||f.once)&&(!e||f.context===e)&&u(this,l);else{for(var h=0,v=[],m=f.length;h<m;h++)(f[h].fn!==g||i&&!f[h].once||e&&f[h].context!==e)&&v.push(f[h]);v.length?this._events[l]=v.length===1?v[0]:v:u(this,l)}return this},d.prototype.removeAllListeners=function(p){var g;return p?(g=t?t+p:p,this._events[g]&&u(this,g)):(this._events=new n,this._eventsCount=0),this},d.prototype.off=d.prototype.removeListener,d.prototype.addListener=d.prototype.on,d.prefixed=t,d.EventEmitter=d,s.exports=d})(hr);const vr=$t,hn=new vr,Tn={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},Re={RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"},et={RADIO:"单选题",CHECKBOX:"多选题",LINK:"连线题",SORT:"排序题",PLAY:"演奏题"},ye={IMAGE:"IMAGE",TXT:"TXT",AUDIO:"AUDIO"},gr="_unitSubjectTitle_1x5pg_1",mr="_unitScore_1x5pg_7",yr="_unitDetail_1x5pg_14",Ar="_unitTitleImg_1x5pg_23",_r="_unitTitleRate_1x5pg_26",wr="_icon_1x5pg_37",br="_rate_1x5pg_41",Ne={unitSubjectTitle:gr,unitScore:mr,unitDetail:yr,unitTitleImg:Ar,unitTitleRate:_r,icon:wr,rate:br},xr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",Sr="_unitAudio_1g6zx_1",Tr="_nativeAudio_1g6zx_5",Ir="_htmlAudio_1g6zx_9",Er="_htmlTimes_1g6zx_23",Or="_iconAudio_1g6zx_31",Cr="_audioStatus_1g6zx_35",tt={unitAudio:Sr,nativeAudio:Tr,htmlAudio:Ir,htmlTimes:Er,iconAudio:Or,audioStatus:Cr};var In={};/*!
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */(function(s){(function(){var a=function(){this.init()};a.prototype={init:function(){var e=this||t;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window<"u"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var i=this||t;if(e=parseFloat(e),i.ctx||g(),typeof e<"u"&&e>=0&&e<=1){if(i._volume=e,i._muted)return i;i.usingWebAudio&&i.masterGain.gain.setValueAtTime(e,t.ctx.currentTime);for(var l=0;l<i._howls.length;l++)if(!i._howls[l]._webAudio)for(var f=i._howls[l]._getSoundIds(),h=0;h<f.length;h++){var v=i._howls[l]._soundById(f[h]);v&&v._node&&(v._node.volume=v._volume*e)}return i}return i._volume},mute:function(e){var i=this||t;i.ctx||g(),i._muted=e,i.usingWebAudio&&i.masterGain.gain.setValueAtTime(e?0:i._volume,t.ctx.currentTime);for(var l=0;l<i._howls.length;l++)if(!i._howls[l]._webAudio)for(var f=i._howls[l]._getSoundIds(),h=0;h<f.length;h++){var v=i._howls[l]._soundById(f[h]);v&&v._node&&(v._node.muted=e?!0:v._muted)}return i},stop:function(){for(var e=this||t,i=0;i<e._howls.length;i++)e._howls[i].stop();return e},unload:function(){for(var e=this||t,i=e._howls.length-1;i>=0;i--)e._howls[i].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,g()),e},codecs:function(e){return(this||t)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||t;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var i=new Audio;typeof i.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch(l){e.noAudio=!0}else e.noAudio=!0;try{var i=new Audio;i.muted&&(e.noAudio=!0)}catch(l){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||t,i=null;try{i=typeof Audio<"u"?new Audio:null}catch(S){return e}if(!i||typeof i.canPlayType!="function")return e;var l=i.canPlayType("audio/mpeg;").replace(/^no$/,""),f=e._navigator?e._navigator.userAgent:"",h=f.match(/OPR\/([0-6].)/g),v=h&&parseInt(h[0].split("/")[1],10)<33,m=f.indexOf("Safari")!==-1&&f.indexOf("Chrome")===-1,A=f.match(/Version\/(.*?) /),w=m&&A&&parseInt(A[1],10)<15;return e._codecs={mp3:!!(!v&&(l||i.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!l,opus:!!i.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(i.canPlayType('audio/wav; codecs="1"')||i.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!i.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!i.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(i.canPlayType("audio/x-m4b;")||i.canPlayType("audio/m4b;")||i.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(i.canPlayType("audio/x-mp4;")||i.canPlayType("audio/mp4;")||i.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!w&&i.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!w&&i.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!i.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(i.canPlayType("audio/x-flac;")||i.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||t;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var i=function(l){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var f=new Audio;f._unlocked=!0,e._releaseHtml5Audio(f)}catch(S){e.noAudio=!0;break}for(var h=0;h<e._howls.length;h++)if(!e._howls[h]._webAudio)for(var v=e._howls[h]._getSoundIds(),m=0;m<v.length;m++){var A=e._howls[h]._soundById(v[m]);A&&A._node&&!A._node._unlocked&&(A._node._unlocked=!0,A._node.load())}e._autoResume();var w=e.ctx.createBufferSource();w.buffer=e._scratchBuffer,w.connect(e.ctx.destination),typeof w.start>"u"?w.noteOn(0):w.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),w.onended=function(){w.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",i,!0),document.removeEventListener("touchend",i,!0),document.removeEventListener("click",i,!0),document.removeEventListener("keydown",i,!0);for(var S=0;S<e._howls.length;S++)e._howls[S]._emit("unlock")}};return document.addEventListener("touchstart",i,!0),document.addEventListener("touchend",i,!0),document.addEventListener("click",i,!0),document.addEventListener("keydown",i,!0),e}},_obtainHtml5Audio:function(){var e=this||t;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var i=new Audio().play();return i&&typeof Promise<"u"&&(i instanceof Promise||typeof i.then=="function")&&i.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var i=this||t;return e._unlocked&&i._html5AudioPool.push(e),i},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||typeof e.ctx.suspend>"u"||!t.usingWebAudio)){for(var i=0;i<e._howls.length;i++)if(e._howls[i]._webAudio){for(var l=0;l<e._howls[i]._sounds.length;l++)if(!e._howls[i]._sounds[l]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var f=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(f,f)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||typeof e.ctx.resume>"u"||!t.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var i=0;i<e._howls.length;i++)e._howls[i]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):e.state==="suspending"&&(e._resumeAfterSuspend=!0),e}};var t=new a,n=function(e){var i=this;if(!e.src||e.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}i.init(e)};n.prototype={init:function(e){var i=this;return t.ctx||g(),i._autoplay=e.autoplay||!1,i._format=typeof e.format!="string"?e.format:[e.format],i._html5=e.html5||!1,i._muted=e.mute||!1,i._loop=e.loop||!1,i._pool=e.pool||5,i._preload=typeof e.preload=="boolean"||e.preload==="metadata"?e.preload:!0,i._rate=e.rate||1,i._sprite=e.sprite||{},i._src=typeof e.src!="string"?e.src:[e.src],i._volume=e.volume!==void 0?e.volume:1,i._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},i._duration=0,i._state="unloaded",i._sounds=[],i._endTimers={},i._queue=[],i._playLock=!1,i._onend=e.onend?[{fn:e.onend}]:[],i._onfade=e.onfade?[{fn:e.onfade}]:[],i._onload=e.onload?[{fn:e.onload}]:[],i._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],i._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],i._onpause=e.onpause?[{fn:e.onpause}]:[],i._onplay=e.onplay?[{fn:e.onplay}]:[],i._onstop=e.onstop?[{fn:e.onstop}]:[],i._onmute=e.onmute?[{fn:e.onmute}]:[],i._onvolume=e.onvolume?[{fn:e.onvolume}]:[],i._onrate=e.onrate?[{fn:e.onrate}]:[],i._onseek=e.onseek?[{fn:e.onseek}]:[],i._onunlock=e.onunlock?[{fn:e.onunlock}]:[],i._onresume=[],i._webAudio=t.usingWebAudio&&!i._html5,typeof t.ctx<"u"&&t.ctx&&t.autoUnlock&&t._unlockAudio(),t._howls.push(i),i._autoplay&&i._queue.push({event:"play",action:function(){i.play()}}),i._preload&&i._preload!=="none"&&i.load(),i},load:function(){var e=this,i=null;if(t.noAudio){e._emit("loaderror",null,"No audio support.");return}typeof e._src=="string"&&(e._src=[e._src]);for(var l=0;l<e._src.length;l++){var f,h;if(e._format&&e._format[l])f=e._format[l];else{if(h=e._src[l],typeof h!="string"){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}f=/^data:audio\/([^;,]+);/i.exec(h),f||(f=/\.([^.]+)$/.exec(h.split("?",1)[0])),f&&(f=f[1].toLowerCase())}if(f||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),f&&t.codecs(f)){i=e._src[l];break}}if(!i){e._emit("loaderror",null,"No codec support for selected audio sources.");return}return e._src=i,e._state="loading",window.location.protocol==="https:"&&i.slice(0,5)==="http:"&&(e._html5=!0,e._webAudio=!1),new o(e),e._webAudio&&u(e),e},play:function(e,i){var l=this,f=null;if(typeof e=="number")f=e,e=null;else{if(typeof e=="string"&&l._state==="loaded"&&!l._sprite[e])return null;if(typeof e>"u"&&(e="__default",!l._playLock)){for(var h=0,v=0;v<l._sounds.length;v++)l._sounds[v]._paused&&!l._sounds[v]._ended&&(h++,f=l._sounds[v]._id);h===1?e=null:f=null}}var m=f?l._soundById(f):l._inactiveSound();if(!m)return null;if(f&&!e&&(e=m._sprite||"__default"),l._state!=="loaded"){m._sprite=e,m._ended=!1;var A=m._id;return l._queue.push({event:"play",action:function(){l.play(A)}}),A}if(f&&!m._paused)return i||l._loadQueue("play"),m._id;l._webAudio&&t._autoResume();var w=Math.max(0,m._seek>0?m._seek:l._sprite[e][0]/1e3),S=Math.max(0,(l._sprite[e][0]+l._sprite[e][1])/1e3-w),C=S*1e3/Math.abs(m._rate),B=l._sprite[e][0]/1e3,k=(l._sprite[e][0]+l._sprite[e][1])/1e3;m._sprite=e,m._ended=!1;var P=function(){m._paused=!1,m._seek=w,m._start=B,m._stop=k,m._loop=!!(m._loop||l._sprite[e][2])};if(w>=k){l._ended(m);return}var I=m._node;if(l._webAudio){var D=function(){l._playLock=!1,P(),l._refreshBuffer(m);var U=m._muted||l._muted?0:m._volume;I.gain.setValueAtTime(U,t.ctx.currentTime),m._playStart=t.ctx.currentTime,typeof I.bufferSource.start>"u"?m._loop?I.bufferSource.noteGrainOn(0,w,86400):I.bufferSource.noteGrainOn(0,w,S):m._loop?I.bufferSource.start(0,w,86400):I.bufferSource.start(0,w,S),C!==1/0&&(l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),C)),i||setTimeout(function(){l._emit("play",m._id),l._loadQueue()},0)};t.state==="running"&&t.ctx.state!=="interrupted"?D():(l._playLock=!0,l.once("resume",D),l._clearTimer(m._id))}else{var N=function(){I.currentTime=w,I.muted=m._muted||l._muted||t._muted||I.muted,I.volume=m._volume*t.volume(),I.playbackRate=m._rate;try{var U=I.play();if(U&&typeof Promise<"u"&&(U instanceof Promise||typeof U.then=="function")?(l._playLock=!0,P(),U.then(function(){l._playLock=!1,I._unlocked=!0,i?l._loadQueue():l._emit("play",m._id)}).catch(function(){l._playLock=!1,l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),m._ended=!0,m._paused=!0})):i||(l._playLock=!1,P(),l._emit("play",m._id)),I.playbackRate=m._rate,I.paused){l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||m._loop?l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),C):(l._endTimers[m._id]=function(){l._ended(m),I.removeEventListener("ended",l._endTimers[m._id],!1)},I.addEventListener("ended",l._endTimers[m._id],!1))}catch(V){l._emit("playerror",m._id,V)}};I.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(I.src=l._src,I.load());var Q=window&&window.ejecta||!I.readyState&&t._navigator.isCocoonJS;if(I.readyState>=3||Q)N();else{l._playLock=!0,l._state="loading";var z=function(){l._state="loaded",N(),I.removeEventListener(t._canPlayEvent,z,!1)};I.addEventListener(t._canPlayEvent,z,!1),l._clearTimer(m._id)}}return m._id},pause:function(e){var i=this;if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"pause",action:function(){i.pause(e)}}),i;for(var l=i._getSoundIds(e),f=0;f<l.length;f++){i._clearTimer(l[f]);var h=i._soundById(l[f]);if(h&&!h._paused&&(h._seek=i.seek(l[f]),h._rateSeek=0,h._paused=!0,i._stopFade(l[f]),h._node))if(i._webAudio){if(!h._node.bufferSource)continue;typeof h._node.bufferSource.stop>"u"?h._node.bufferSource.noteOff(0):h._node.bufferSource.stop(0),i._cleanBuffer(h._node)}else(!isNaN(h._node.duration)||h._node.duration===1/0)&&h._node.pause();arguments[1]||i._emit("pause",h?h._id:null)}return i},stop:function(e,i){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"stop",action:function(){l.stop(e)}}),l;for(var f=l._getSoundIds(e),h=0;h<f.length;h++){l._clearTimer(f[h]);var v=l._soundById(f[h]);v&&(v._seek=v._start||0,v._rateSeek=0,v._paused=!0,v._ended=!0,l._stopFade(f[h]),v._node&&(l._webAudio?v._node.bufferSource&&(typeof v._node.bufferSource.stop>"u"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),l._cleanBuffer(v._node)):(!isNaN(v._node.duration)||v._node.duration===1/0)&&(v._node.currentTime=v._start||0,v._node.pause(),v._node.duration===1/0&&l._clearSound(v._node))),i||l._emit("stop",v._id))}return l},mute:function(e,i){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"mute",action:function(){l.mute(e,i)}}),l;if(typeof i>"u")if(typeof e=="boolean")l._muted=e;else return l._muted;for(var f=l._getSoundIds(i),h=0;h<f.length;h++){var v=l._soundById(f[h]);v&&(v._muted=e,v._interval&&l._stopFade(v._id),l._webAudio&&v._node?v._node.gain.setValueAtTime(e?0:v._volume,t.ctx.currentTime):v._node&&(v._node.muted=t._muted?!0:e),l._emit("mute",v._id))}return l},volume:function(){var e=this,i=arguments,l,f;if(i.length===0)return e._volume;if(i.length===1||i.length===2&&typeof i[1]>"u"){var h=e._getSoundIds(),v=h.indexOf(i[0]);v>=0?f=parseInt(i[0],10):l=parseFloat(i[0])}else i.length>=2&&(l=parseFloat(i[0]),f=parseInt(i[1],10));var m;if(typeof l<"u"&&l>=0&&l<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,i)}}),e;typeof f>"u"&&(e._volume=l),f=e._getSoundIds(f);for(var A=0;A<f.length;A++)m=e._soundById(f[A]),m&&(m._volume=l,i[2]||e._stopFade(f[A]),e._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(l,t.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=l*t.volume()),e._emit("volume",m._id))}else return m=f?e._soundById(f):e._sounds[0],m?m._volume:0;return e},fade:function(e,i,l,f){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"fade",action:function(){h.fade(e,i,l,f)}}),h;e=Math.min(Math.max(0,parseFloat(e)),1),i=Math.min(Math.max(0,parseFloat(i)),1),l=parseFloat(l),h.volume(e,f);for(var v=h._getSoundIds(f),m=0;m<v.length;m++){var A=h._soundById(v[m]);if(A){if(f||h._stopFade(v[m]),h._webAudio&&!A._muted){var w=t.ctx.currentTime,S=w+l/1e3;A._volume=e,A._node.gain.setValueAtTime(e,w),A._node.gain.linearRampToValueAtTime(i,S)}h._startFadeInterval(A,e,i,l,v[m],typeof f>"u")}}return h},_startFadeInterval:function(e,i,l,f,h,v){var m=this,A=i,w=l-i,S=Math.abs(w/.01),C=Math.max(4,S>0?f/S:f),B=Date.now();e._fadeTo=l,e._interval=setInterval(function(){var k=(Date.now()-B)/f;B=Date.now(),A+=w*k,A=Math.round(A*100)/100,w<0?A=Math.max(l,A):A=Math.min(l,A),m._webAudio?e._volume=A:m.volume(A,e._id,!0),v&&(m._volume=A),(l<i&&A<=l||l>i&&A>=l)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,m.volume(l,e._id),m._emit("fade",e._id))},C)},_stopFade:function(e){var i=this,l=i._soundById(e);return l&&l._interval&&(i._webAudio&&l._node.gain.cancelScheduledValues(t.ctx.currentTime),clearInterval(l._interval),l._interval=null,i.volume(l._fadeTo,e),l._fadeTo=null,i._emit("fade",e)),i},loop:function(){var e=this,i=arguments,l,f,h;if(i.length===0)return e._loop;if(i.length===1)if(typeof i[0]=="boolean")l=i[0],e._loop=l;else return h=e._soundById(parseInt(i[0],10)),h?h._loop:!1;else i.length===2&&(l=i[0],f=parseInt(i[1],10));for(var v=e._getSoundIds(f),m=0;m<v.length;m++)h=e._soundById(v[m]),h&&(h._loop=l,e._webAudio&&h._node&&h._node.bufferSource&&(h._node.bufferSource.loop=l,l&&(h._node.bufferSource.loopStart=h._start||0,h._node.bufferSource.loopEnd=h._stop,e.playing(v[m])&&(e.pause(v[m],!0),e.play(v[m],!0)))));return e},rate:function(){var e=this,i=arguments,l,f;if(i.length===0)f=e._sounds[0]._id;else if(i.length===1){var h=e._getSoundIds(),v=h.indexOf(i[0]);v>=0?f=parseInt(i[0],10):l=parseFloat(i[0])}else i.length===2&&(l=parseFloat(i[0]),f=parseInt(i[1],10));var m;if(typeof l=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,i)}}),e;typeof f>"u"&&(e._rate=l),f=e._getSoundIds(f);for(var A=0;A<f.length;A++)if(m=e._soundById(f[A]),m){e.playing(f[A])&&(m._rateSeek=e.seek(f[A]),m._playStart=e._webAudio?t.ctx.currentTime:m._playStart),m._rate=l,e._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(l,t.ctx.currentTime):m._node&&(m._node.playbackRate=l);var w=e.seek(f[A]),S=(e._sprite[m._sprite][0]+e._sprite[m._sprite][1])/1e3-w,C=S*1e3/Math.abs(m._rate);(e._endTimers[f[A]]||!m._paused)&&(e._clearTimer(f[A]),e._endTimers[f[A]]=setTimeout(e._ended.bind(e,m),C)),e._emit("rate",m._id)}}else return m=e._soundById(f),m?m._rate:e._rate;return e},seek:function(){var e=this,i=arguments,l,f;if(i.length===0)e._sounds.length&&(f=e._sounds[0]._id);else if(i.length===1){var h=e._getSoundIds(),v=h.indexOf(i[0]);v>=0?f=parseInt(i[0],10):e._sounds.length&&(f=e._sounds[0]._id,l=parseFloat(i[0]))}else i.length===2&&(l=parseFloat(i[0]),f=parseInt(i[1],10));if(typeof f>"u")return 0;if(typeof l=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,i)}}),e;var m=e._soundById(f);if(m)if(typeof l=="number"&&l>=0){var A=e.playing(f);A&&e.pause(f,!0),m._seek=l,m._ended=!1,e._clearTimer(f),!e._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=l);var w=function(){A&&e.play(f,!0),e._emit("seek",f)};if(A&&!e._webAudio){var S=function(){e._playLock?setTimeout(S,0):w()};setTimeout(S,0)}else w()}else if(e._webAudio){var C=e.playing(f)?t.ctx.currentTime-m._playStart:0,B=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(B+C*Math.abs(m._rate))}else return m._node.currentTime;return e},playing:function(e){var i=this;if(typeof e=="number"){var l=i._soundById(e);return l?!l._paused:!1}for(var f=0;f<i._sounds.length;f++)if(!i._sounds[f]._paused)return!0;return!1},duration:function(e){var i=this,l=i._duration,f=i._soundById(e);return f&&(l=i._sprite[f._sprite][1]/1e3),l},state:function(){return this._state},unload:function(){for(var e=this,i=e._sounds,l=0;l<i.length;l++)i[l]._paused||e.stop(i[l]._id),e._webAudio||(e._clearSound(i[l]._node),i[l]._node.removeEventListener("error",i[l]._errorFn,!1),i[l]._node.removeEventListener(t._canPlayEvent,i[l]._loadFn,!1),i[l]._node.removeEventListener("ended",i[l]._endFn,!1),t._releaseHtml5Audio(i[l]._node)),delete i[l]._node,e._clearTimer(i[l]._id);var f=t._howls.indexOf(e);f>=0&&t._howls.splice(f,1);var h=!0;for(l=0;l<t._howls.length;l++)if(t._howls[l]._src===e._src||e._src.indexOf(t._howls[l]._src)>=0){h=!1;break}return r&&h&&delete r[e._src],t.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,i,l,f){var h=this,v=h["_on"+e];return typeof i=="function"&&v.push(f?{id:l,fn:i,once:f}:{id:l,fn:i}),h},off:function(e,i,l){var f=this,h=f["_on"+e],v=0;if(typeof i=="number"&&(l=i,i=null),i||l)for(v=0;v<h.length;v++){var m=l===h[v].id;if(i===h[v].fn&&m||!i&&m){h.splice(v,1);break}}else if(e)f["_on"+e]=[];else{var A=Object.keys(f);for(v=0;v<A.length;v++)A[v].indexOf("_on")===0&&Array.isArray(f[A[v]])&&(f[A[v]]=[])}return f},once:function(e,i,l){var f=this;return f.on(e,i,l,1),f},_emit:function(e,i,l){for(var f=this,h=f["_on"+e],v=h.length-1;v>=0;v--)(!h[v].id||h[v].id===i||e==="load")&&(setTimeout(function(m){m.call(this,i,l)}.bind(f,h[v].fn),0),h[v].once&&f.off(e,h[v].fn,h[v].id));return f._loadQueue(e),f},_loadQueue:function(e){var i=this;if(i._queue.length>0){var l=i._queue[0];l.event===e&&(i._queue.shift(),i._loadQueue()),e||l.action()}return i},_ended:function(e){var i=this,l=e._sprite;if(!i._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(i._ended.bind(i,e),100),i;var f=!!(e._loop||i._sprite[l][2]);if(i._emit("end",e._id),!i._webAudio&&f&&i.stop(e._id,!0).play(e._id),i._webAudio&&f){i._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=t.ctx.currentTime;var h=(e._stop-e._start)*1e3/Math.abs(e._rate);i._endTimers[e._id]=setTimeout(i._ended.bind(i,e),h)}return i._webAudio&&!f&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,i._clearTimer(e._id),i._cleanBuffer(e._node),t._autoSuspend()),!i._webAudio&&!f&&i.stop(e._id,!0),i},_clearTimer:function(e){var i=this;if(i._endTimers[e]){if(typeof i._endTimers[e]!="function")clearTimeout(i._endTimers[e]);else{var l=i._soundById(e);l&&l._node&&l._node.removeEventListener("ended",i._endTimers[e],!1)}delete i._endTimers[e]}return i},_soundById:function(e){for(var i=this,l=0;l<i._sounds.length;l++)if(e===i._sounds[l]._id)return i._sounds[l];return null},_inactiveSound:function(){var e=this;e._drain();for(var i=0;i<e._sounds.length;i++)if(e._sounds[i]._ended)return e._sounds[i].reset();return new o(e)},_drain:function(){var e=this,i=e._pool,l=0,f=0;if(!(e._sounds.length<i)){for(f=0;f<e._sounds.length;f++)e._sounds[f]._ended&&l++;for(f=e._sounds.length-1;f>=0;f--){if(l<=i)return;e._sounds[f]._ended&&(e._webAudio&&e._sounds[f]._node&&e._sounds[f]._node.disconnect(0),e._sounds.splice(f,1),l--)}}},_getSoundIds:function(e){var i=this;if(typeof e>"u"){for(var l=[],f=0;f<i._sounds.length;f++)l.push(i._sounds[f]._id);return l}else return[e]},_refreshBuffer:function(e){var i=this;return e._node.bufferSource=t.ctx.createBufferSource(),e._node.bufferSource.buffer=r[i._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,t.ctx.currentTime),i},_cleanBuffer:function(e){var i=this,l=t._navigator&&t._navigator.vendor.indexOf("Apple")>=0;if(t._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),l))try{e.bufferSource.buffer=t._scratchBuffer}catch(f){}return e.bufferSource=null,i},_clearSound:function(e){var i=/MSIE |Trident\//.test(t._navigator&&t._navigator.userAgent);i||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var o=function(e){this._parent=e,this.init()};o.prototype={init:function(){var e=this,i=e._parent;return e._muted=i._muted,e._loop=i._loop,e._volume=i._volume,e._rate=i._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,i._sounds.push(e),e.create(),e},create:function(){var e=this,i=e._parent,l=t._muted||e._muted||e._parent._muted?0:e._volume;return i._webAudio?(e._node=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),e._node.gain.setValueAtTime(l,t.ctx.currentTime),e._node.paused=!0,e._node.connect(t.masterGain)):t.noAudio||(e._node=t._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(t._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=i._src,e._node.preload=i._preload===!0?"auto":i._preload,e._node.volume=l*t.volume(),e._node.load()),e},reset:function(){var e=this,i=e._parent;return e._muted=i._muted,e._loop=i._loop,e._volume=i._volume,e._rate=i._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++t._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,i=e._parent;i._duration=Math.ceil(e._node.duration*10)/10,Object.keys(i._sprite).length===0&&(i._sprite={__default:[0,i._duration*1e3]}),i._state!=="loaded"&&(i._state="loaded",i._emit("load"),i._loadQueue()),e._node.removeEventListener(t._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,i=e._parent;i._duration===1/0&&(i._duration=Math.ceil(e._node.duration*10)/10,i._sprite.__default[1]===1/0&&(i._sprite.__default[1]=i._duration*1e3),i._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var r={},u=function(e){var i=e._src;if(r[i]){e._duration=r[i].duration,p(e);return}if(/^data:[^;]+;base64,/.test(i)){for(var l=atob(i.split(",")[1]),f=new Uint8Array(l.length),h=0;h<l.length;++h)f[h]=l.charCodeAt(h);c(f.buffer,e)}else{var v=new XMLHttpRequest;v.open(e._xhr.method,i,!0),v.withCredentials=e._xhr.withCredentials,v.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(m){v.setRequestHeader(m,e._xhr.headers[m])}),v.onload=function(){var m=(v.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){e._emit("loaderror",null,"Failed loading audio file with status: "+v.status+".");return}c(v.response,e)},v.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete r[i],e.load())},d(v)}},d=function(e){try{e.send()}catch(i){e.onerror()}},c=function(e,i){var l=function(){i._emit("loaderror",null,"Decoding audio data failed.")},f=function(h){h&&i._sounds.length>0?(r[i._src]=h,p(i,h)):l()};typeof Promise<"u"&&t.ctx.decodeAudioData.length===1?t.ctx.decodeAudioData(e).then(f).catch(l):t.ctx.decodeAudioData(e,f,l)},p=function(e,i){i&&!e._duration&&(e._duration=i.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},g=function(){if(t.usingWebAudio){try{typeof AudioContext<"u"?t.ctx=new AudioContext:typeof webkitAudioContext<"u"?t.ctx=new webkitAudioContext:t.usingWebAudio=!1}catch(h){t.usingWebAudio=!1}t.ctx||(t.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(t._navigator&&t._navigator.platform),i=t._navigator&&t._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),l=i?parseInt(i[1],10):null;if(e&&l&&l<9){var f=/safari/.test(t._navigator&&t._navigator.userAgent.toLowerCase());t._navigator&&!f&&(t.usingWebAudio=!1)}t.usingWebAudio&&(t.masterGain=typeof t.ctx.createGain>"u"?t.ctx.createGainNode():t.ctx.createGain(),t.masterGain.gain.setValueAtTime(t._muted?0:t._volume,t.ctx.currentTime),t.masterGain.connect(t.ctx.destination)),t._setup()}};s.Howler=t,s.Howl=n,typeof Je<"u"?(Je.HowlerGlobal=a,Je.Howler=t,Je.Howl=n,Je.Sound=o):typeof window<"u"&&(window.HowlerGlobal=a,window.Howler=t,window.Howl=n,window.Sound=o)})();/*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var o=n._howls.length-1;o>=0;o--)n._howls[o].stereo(t);return n},HowlerGlobal.prototype.pos=function(t,n,o){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(n=typeof n!="number"?r._pos[1]:n,o=typeof o!="number"?r._pos[2]:o,typeof t=="number")r._pos=[t,n,o],typeof r.ctx.listener.positionX<"u"?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]);else return r._pos;return r},HowlerGlobal.prototype.orientation=function(t,n,o,r,u,d){var c=this;if(!c.ctx||!c.ctx.listener)return c;var p=c._orientation;if(n=typeof n!="number"?p[1]:n,o=typeof o!="number"?p[2]:o,r=typeof r!="number"?p[3]:r,u=typeof u!="number"?p[4]:u,d=typeof d!="number"?p[5]:d,typeof t=="number")c._orientation=[t,n,o,r,u,d],typeof c.ctx.listener.forwardX<"u"?(c.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),c.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),c.ctx.listener.forwardZ.setTargetAtTime(o,Howler.ctx.currentTime,.1),c.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),c.ctx.listener.upY.setTargetAtTime(u,Howler.ctx.currentTime,.1),c.ctx.listener.upZ.setTargetAtTime(d,Howler.ctx.currentTime,.1)):c.ctx.listener.setOrientation(t,n,o,r,u,d);else return p;return c},Howl.prototype.init=function(t){return function(n){var o=this;return o._orientation=n.orientation||[1,0,0],o._stereo=n.stereo||null,o._pos=n.pos||null,o._pannerAttr={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:360,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:360,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:0,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:"inverse",maxDistance:typeof n.maxDistance<"u"?n.maxDistance:1e4,panningModel:typeof n.panningModel<"u"?n.panningModel:"HRTF",refDistance:typeof n.refDistance<"u"?n.refDistance:1,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:1},o._onstereo=n.onstereo?[{fn:n.onstereo}]:[],o._onpos=n.onpos?[{fn:n.onpos}]:[],o._onorientation=n.onorientation?[{fn:n.onorientation}]:[],t.call(this,n)}}(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var o=this;if(!o._webAudio)return o;if(o._state!=="loaded")return o._queue.push({event:"stereo",action:function(){o.stereo(t,n)}}),o;var r=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof n>"u")if(typeof t=="number")o._stereo=t,o._pos=[t,0,0];else return o._stereo;for(var u=o._getSoundIds(n),d=0;d<u.length;d++){var c=o._soundById(u[d]);if(c)if(typeof t=="number")c._stereo=t,c._pos=[t,0,0],c._node&&(c._pannerAttr.panningModel="equalpower",(!c._panner||!c._panner.pan)&&a(c,r),r==="spatial"?typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):c._panner.setPosition(t,0,0):c._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),o._emit("stereo",c._id);else return c._stereo}return o},Howl.prototype.pos=function(t,n,o,r){var u=this;if(!u._webAudio)return u;if(u._state!=="loaded")return u._queue.push({event:"pos",action:function(){u.pos(t,n,o,r)}}),u;if(n=typeof n!="number"?0:n,o=typeof o!="number"?-.5:o,typeof r>"u")if(typeof t=="number")u._pos=[t,n,o];else return u._pos;for(var d=u._getSoundIds(r),c=0;c<d.length;c++){var p=u._soundById(d[c]);if(p)if(typeof t=="number")p._pos=[t,n,o],p._node&&((!p._panner||p._panner.pan)&&a(p,"spatial"),typeof p._panner.positionX<"u"?(p._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),p._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),p._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):p._panner.setPosition(t,n,o)),u._emit("pos",p._id);else return p._pos}return u},Howl.prototype.orientation=function(t,n,o,r){var u=this;if(!u._webAudio)return u;if(u._state!=="loaded")return u._queue.push({event:"orientation",action:function(){u.orientation(t,n,o,r)}}),u;if(n=typeof n!="number"?u._orientation[1]:n,o=typeof o!="number"?u._orientation[2]:o,typeof r>"u")if(typeof t=="number")u._orientation=[t,n,o];else return u._orientation;for(var d=u._getSoundIds(r),c=0;c<d.length;c++){var p=u._soundById(d[c]);if(p)if(typeof t=="number")p._orientation=[t,n,o],p._node&&(p._panner||(p._pos||(p._pos=u._pos||[0,0,-.5]),a(p,"spatial")),typeof p._panner.orientationX<"u"?(p._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),p._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),p._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):p._panner.setOrientation(t,n,o)),u._emit("orientation",p._id);else return p._orientation}return u},Howl.prototype.pannerAttr=function(){var t=this,n=arguments,o,r,u;if(!t._webAudio)return t;if(n.length===0)return t._pannerAttr;if(n.length===1)if(typeof n[0]=="object")o=n[0],typeof r>"u"&&(o.pannerAttr||(o.pannerAttr={coneInnerAngle:o.coneInnerAngle,coneOuterAngle:o.coneOuterAngle,coneOuterGain:o.coneOuterGain,distanceModel:o.distanceModel,maxDistance:o.maxDistance,refDistance:o.refDistance,rolloffFactor:o.rolloffFactor,panningModel:o.panningModel}),t._pannerAttr={coneInnerAngle:typeof o.pannerAttr.coneInnerAngle<"u"?o.pannerAttr.coneInnerAngle:t._coneInnerAngle,coneOuterAngle:typeof o.pannerAttr.coneOuterAngle<"u"?o.pannerAttr.coneOuterAngle:t._coneOuterAngle,coneOuterGain:typeof o.pannerAttr.coneOuterGain<"u"?o.pannerAttr.coneOuterGain:t._coneOuterGain,distanceModel:typeof o.pannerAttr.distanceModel<"u"?o.pannerAttr.distanceModel:t._distanceModel,maxDistance:typeof o.pannerAttr.maxDistance<"u"?o.pannerAttr.maxDistance:t._maxDistance,refDistance:typeof o.pannerAttr.refDistance<"u"?o.pannerAttr.refDistance:t._refDistance,rolloffFactor:typeof o.pannerAttr.rolloffFactor<"u"?o.pannerAttr.rolloffFactor:t._rolloffFactor,panningModel:typeof o.pannerAttr.panningModel<"u"?o.pannerAttr.panningModel:t._panningModel});else return u=t._soundById(parseInt(n[0],10)),u?u._pannerAttr:t._pannerAttr;else n.length===2&&(o=n[0],r=parseInt(n[1],10));for(var d=t._getSoundIds(r),c=0;c<d.length;c++)if(u=t._soundById(d[c]),u){var p=u._pannerAttr;p={coneInnerAngle:typeof o.coneInnerAngle<"u"?o.coneInnerAngle:p.coneInnerAngle,coneOuterAngle:typeof o.coneOuterAngle<"u"?o.coneOuterAngle:p.coneOuterAngle,coneOuterGain:typeof o.coneOuterGain<"u"?o.coneOuterGain:p.coneOuterGain,distanceModel:typeof o.distanceModel<"u"?o.distanceModel:p.distanceModel,maxDistance:typeof o.maxDistance<"u"?o.maxDistance:p.maxDistance,refDistance:typeof o.refDistance<"u"?o.refDistance:p.refDistance,rolloffFactor:typeof o.rolloffFactor<"u"?o.rolloffFactor:p.rolloffFactor,panningModel:typeof o.panningModel<"u"?o.panningModel:p.panningModel};var g=u._panner;g?(g.coneInnerAngle=p.coneInnerAngle,g.coneOuterAngle=p.coneOuterAngle,g.coneOuterGain=p.coneOuterGain,g.distanceModel=p.distanceModel,g.maxDistance=p.maxDistance,g.refDistance=p.refDistance,g.rolloffFactor=p.rolloffFactor,g.panningModel=p.panningModel):(u._pos||(u._pos=t._pos||[0,0,-.5]),a(u,"spatial"))}return t},Sound.prototype.init=function(t){return function(){var n=this,o=n._parent;n._orientation=o._orientation,n._stereo=o._stereo,n._pos=o._pos,n._pannerAttr=o._pannerAttr,t.call(this),n._stereo?o.stereo(n._stereo):n._pos&&o.pos(n._pos[0],n._pos[1],n._pos[2],n._id)}}(Sound.prototype.init),Sound.prototype.reset=function(t){return function(){var n=this,o=n._parent;return n._orientation=o._orientation,n._stereo=o._stereo,n._pos=o._pos,n._pannerAttr=o._pannerAttr,n._stereo?o.stereo(n._stereo):n._pos?o.pos(n._pos[0],n._pos[1],n._pos[2],n._id):n._panner&&(n._panner.disconnect(0),n._panner=void 0,o._refreshBuffer(n)),t.call(this)}}(Sound.prototype.reset);var a=function(t,n){n=n||"spatial",n==="spatial"?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,typeof t._panner.positionX<"u"?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),typeof t._panner.orientationX<"u"?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}})()})(In);const Dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABLNJREFUWEfNmF1oHFUUx///u2laJDsbsLbQnVhFiiKlRUkFpcEHsWq11Wa2kdYHWz8Q1IpS9UHRREWlVlGsCuJH64MVm5mUtlYtfVFpFTSILSIqiB+ZDdbWkp0ETDa798id7MTddDc7iW3JPOzDzr33/O45/3PuuUPMsIdT5ZnfMzivQWQlgKspshiCC6CYDNfRMgjiNyG/B/B5gfz4WHvyr6nYiA10fk+wvKjlUQA3EGiIY0SAAoBPEoov/NFuHYozpy7Qwr0DFxZH1TaI3Di2IPMCHCDloJC9BfCXcwtNA+bN3w1DzQ2QiyjSKsJrCVwHSOPYNO5PzNKbfl/d/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aOvIktC0YlCaS4priF974FYD2XOXAvuirjYmQINO9nlWHNDuN0n0fgh6ZaLnfz5NBRFLbzoEcQ9ADPHZZvmPmydaIwXSks3+7oELMiBG+qkTkqrlSvwKrsudE+BBlpwg6jRmsubTT3duJ/wQ5K7UdkvYC+QAAAABJRU5ErkJggg==",En=Le({name:"unit-audio",props:{src:{type:String,default:""}},setup(s){const a=Ft({audioStatus:"stopped",duration:0}),t=new In.Howl({src:s.src+"?t="+ +new Date,format:["mp3"]});return t.on("load",n=>{console.log(t.duration()),a.duration=Math.ceil(t.duration())}),t.on("end",n=>{a.audioStatus="stopped"}),hn.on("unitAudioStop",()=>{t.stop(),a.audioStatus="stopped"}),qn(()=>{t.off("load")}),()=>_("div",{class:tt.unitAudio},[_("div",{class:tt.htmlAudio,onClick:n=>{n.stopPropagation(),a.audioStatus==="stopped"?(hn.emit("unitAudioStop"),t.play(),a.audioStatus="paused"):a.audioStatus==="paused"&&(t.pause(),a.audioStatus="stopped")}},[_("div",{class:tt.htmlTimes},[_(ke,{class:tt.iconAudio,name:Dr},null),_("span",null,[a.duration,ae('"')])]),_(ke,{name:a.audioStatus==="stopped"?Lr:Pr,class:tt.audioStatus},null)])])}}),Nt=Le({name:"answer-title",props:{index:{type:Number,default:1},name:{type:String,default:""},score:{type:Number,default:0},answerType:{type:String,default:""},extra:{type:Object,default:()=>({})},showRate:{type:Boolean,default:!1}},setup(s){const a=vt(()=>s.answerType===Re.CHECKBOX?et.CHECKBOX:s.answerType===Re.LINK?et.LINK:s.answerType===Re.SORT?et.SORT:s.answerType===Re.PLAY?et.PLAY:et.RADIO),t=vt(()=>s.extra.mediaUrls?s.extra.mediaUrls.split(","):"");return()=>_(Pe,null,[_("div",{class:Ne.unitSubjectTitle},[s.index,ae("、"),s.name,ae(" "),_("span",{class:Ne.unitScore},[ae("("),s.score||0,ae("分)")]),_(qt,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[a.value]})]),s.showRate&&_("div",{class:Ne.unitTitleRate},[_(ke,{name:xr,class:Ne.icon},null),ae("正确率:"),_("span",{class:Ne.rate},[s.extra.rightRate||0,ae("%")])]),s.extra.questionDetail||t.value?_("div",{class:Ne.unitDetail},[_("div",{innerHTML:s.extra.questionDetail},null),t.value&&t.value.map(n=>n&&_(Pe,null,[n.substr(-3)==="mp3"?_(En,{src:n,class:Ne.valueAudio},null):_(Ve,{class:[Ne.unitTitleImg,"answerTitleImg"],src:n},null)]))]):""])}}),Mr="_answerAnalysis_1w1fm_1",Rr="_analysisResult_1w1fm_8",Br="_aImg_1w1fm_16",Fr="_success_1w1fm_20",Nr="_error_1w1fm_23",Hr="_analysisTitle_1w1fm_26",jr="_analysisMessage_1w1fm_30",be={answerAnalysis:Mr,analysisResult:Rr,aImg:Br,success:Fr,error:Nr,analysisTitle:Hr,analysisMessage:jr},Gr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApFJREFUWEfNmMtrU0EUh7+TW21R3OnWJ/gAV4JV2lKsSF24DmhNzG0XNhUFd+JfUNwJim1dtKmtKGTtQhErpS1o0ZXgA8HHVneipGByZO4lMUlz7ySawszyzpk53/2dmTNnRmixaTq9B7zTqPaBHALdibAtmEb5AfIV9C0iS1B8LHNzn1pxIc0YazLp0bU1ieploAdoalyACCuI3KbwMy/5fNHmzzqxXhg5hRZvoRy0TRbbL7xDvCtyb/ppnF0kkPp+F7+5CXqxBUVszApylw6uSi5XaGTcEEiTwzvoLD0Cjto8/GP/KmuJM5Kf+VY/fh1QANNVWvzvENlITQgLif56qBqgMEy6uIHK1GOu0iH91eGrBUr5k6Cjtp9rb79MyXwuW56zAhTsplLxSRsXcLPcSsIbLO++ACjMM1vebPi6iUIM1tOvwyZPhUBp/yyqD+LziMDACdi9C5ZX4P2HeAUO7IfeHvj8BRaeg5ocGdNEzslc7mEIlMosAb2xA04OwHAmNCkWYWIKXrxsPOR4N2RHwfPC/plZeLZgC+GyzM/2iQ4N7S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HmJSEBj+fOaw7+wT01EZk1KMoFI1q2vF13T9zjYl5xDjQqTSblrXji+y8SxjvQ6B4ZUqBr2NdcZEs4wuXQmipqGTPsMlr7Bpbu7oSqoQvYeaHtXkumBGmCmuJ6YJ0SxmoFI7lGKxYDxjyqHGpbtV1XQNBX72Mpl2+AmL3ICogSxiTqAQlmWgRmvH1rGxEYxnO2JSIKuEmD9hKJzdw4xyFdv2p38BAmNk5m5CBBI7NQo92TMFptGGV222D3jE2yT4IdHZAj3LaifPZ9sKX39slmfdI+aICCGx3jDZxg2rtJLco+OGLILxJ1n/m4fcHANC1L97jGwPN3yiz3Nj8uxpYvdAljCiqMuhQeVC7S5mToZF+LG/w7/6gUVUgZrEfwAAAABJRU5ErkJggg==",Ht=Le({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"回答正确"},errorFlagText:{type:String,default:"回答错误"}},setup(s){return()=>_("div",{class:be.answerAnalysis},[s.topic?_(Pe,null,[s.userResult?_("div",{class:[be.analysisResult,be.success]},[_(ke,{name:kr,class:be.aImg},null),s.rightFlagText]):_("div",{class:[be.analysisResult,be.error]},[_(ke,{name:Gr,class:be.aImg},null),s.errorFlagText])]):"",s.answerAnalysis&&_(Pe,null,[_("div",{class:[be.analysisResult,be.analysisTitle]},[_(ke,{name:Vr,class:be.aImg},null),ae("答案解析")]),_("div",{class:be.analysisMessage},[s.answerAnalysis])])])}}),Xr="_unitSubject_94r0n_1",Yr="_unitAnswers_94r0n_11",Ur="_unitAnswer_94r0n_11",Wr="_option_94r0n_23",Qr="_value_94r0n_26",Kr="_valueAudio_94r0n_35",zr="_active_94r0n_38",Zr="_answerContent_94r0n_42",Jr="_answerChoice_94r0n_46",xe={unitSubject:Xr,unitAnswers:Yr,unitAnswer:Ur,option:Wr,value:Qr,valueAudio:Kr,active:zr,answerContent:Zr,answerChoice:Jr},Gi=Le({name:"choice-question",props:{value:{type:Array,default:()=>[]},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:a,slots:t}){const n=r=>{if(s.readOnly)return;const u=s.value||[],d={answerId:r.examinationQuestionAnswerId,answer:r.questionAnswer,answerExtra:r.questionExtra};if(s.type==="checkbox"){const c=u.findIndex(p=>p.answerId===r.examinationQuestionAnswerId);c>=0?(u.splice(c,1),a("update:value",[...u])):a("update:value",[...u,d])}else a("update:value",[d])},o=vt(()=>{const r=s.data.answers||[],u=s.value||[];return r.forEach(d=>{const c=u.findIndex(p=>p.answerId===d.examinationQuestionAnswerId);d.checked=c!==-1}),r});return()=>_(Pe,null,[_("div",{class:xe.unitSubject},[t.title&&t.title(),_(Nt,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:s.type==="radio"?Re.RADIO:Re.CHECKBOX,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),_("div",{class:xe.unitAnswers},[o.value.map((r,u)=>_("div",{class:[xe.unitAnswer,r.checked&&xe.active],onClick:()=>n(r)},[_("div",{class:xe.answerContent},[_("span",{class:xe.option},[Tn[u+1],ae(".")]),r.questionAnswerTypeCode===ye.IMAGE&&_("div",{class:xe.value},[_(Ve,{src:r.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),r.questionAnswerTypeCode===ye.TXT&&_("div",{class:xe.value},[r.questionAnswer]),r.questionAnswerTypeCode===ye.AUDIO&&_("div",{class:xe.value},[_(En,{src:r.questionAnswer,class:xe.valueAudio},null)])]),s.showRate&&_("div",{class:xe.answerChoice},[r.selectRate||0,ae("%人选择")])]))])]),s.showAnalysis&&_(Ht,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),qr="_anserList_nlm1h_1",$r="_status_nlm1h_5",eo="_aList_nlm1h_28",to="_answered_nlm1h_46",no="_yes_nlm1h_50",ro="_no_nlm1h_54",Me={anserList:qr,status:$r,aList:eo,answered:to,yes:no,no:ro};function oo(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!$n(s)}const ki=Le({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"已答",color:"#1CACF1"},{text:"未答",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(s,{emit:a}){const t=n=>{let o=!1;return s.answerResult.forEach(r=>{r.questionId===n&&(o=r.rightFlag)}),o};return()=>{let n;return _("div",{class:Me.anserList},[s.statusList.length>0&&_("div",{class:Me.status},[s.statusList.map(o=>_("span",null,[_("i",{style:{backgroundColor:o.color}},null),o.text]))]),_("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[_(sr,{class:Me.aList,columnNum:6,border:!1},oo(n=s.value.map((o,r)=>_(lr,{onClick:()=>a("select",r)},{default:()=>[_("span",{class:[s.lookType==="ANSWER"&&o.userAnswer&&o.userAnswer.length>0&&Me.answered,s.lookType==="RESULT"&&(t(o.id)?Me.yes:Me.no),s.lookType==="CLICK"&&r===s.index&&Me.answered,s.lookType==="PRACTICE"&&o.showAnalysis?o.analysis.userResult?Me.yes:Me.no:""]},[r+1])]})))?n:{default:()=>[n]})])])}}});var en={},io={get exports(){return en},set exports(s){en=s}};/**!
- * Sortable 1.10.2
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */function Tt(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tt=function(a){return typeof a}:Tt=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Tt(s)}function ao(s,a,t){return a in s?Object.defineProperty(s,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):s[a]=t,s}function _e(){return _e=Object.assign||function(s){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(s[n]=t[n])}return s},_e.apply(this,arguments)}function Xe(s){for(var a=1;a<arguments.length;a++){var t=arguments[a]!=null?arguments[a]:{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),n.forEach(function(o){ao(s,o,t[o])})}return s}function so(s,a){if(s==null)return{};var t={},n=Object.keys(s),o,r;for(r=0;r<n.length;r++)o=n[r],!(a.indexOf(o)>=0)&&(t[o]=s[o]);return t}function lo(s,a){if(s==null)return{};var t=so(s,a),n,o;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);for(o=0;o<r.length;o++)n=r[o],!(a.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(s,n)&&(t[n]=s[n])}return t}function uo(s){return co(s)||fo(s)||po()}function co(s){if(Array.isArray(s)){for(var a=0,t=new Array(s.length);a<s.length;a++)t[a]=s[a];return t}}function fo(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}function po(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var ho="1.10.2";function Be(s){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(s)}var Fe=Be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),gt=Be(/Edge/i),vn=Be(/firefox/i),tn=Be(/safari/i)&&!Be(/chrome/i)&&!Be(/android/i),On=Be(/iP(ad|od|hone)/i),vo=Be(/chrome/i)&&Be(/android/i),Cn={capture:!1,passive:!1};function G(s,a,t){s.addEventListener(a,t,!Fe&&Cn)}function j(s,a,t){s.removeEventListener(a,t,!Fe&&Cn)}function Dt(s,a){if(a){if(a[0]===">"&&(a=a.substring(1)),s)try{if(s.matches)return s.matches(a);if(s.msMatchesSelector)return s.msMatchesSelector(a);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(a)}catch(t){return!1}return!1}}function go(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function Ee(s,a,t,n){if(s){t=t||document;do{if(a!=null&&(a[0]===">"?s.parentNode===t&&Dt(s,a):Dt(s,a))||n&&s===t)return s;if(s===t)break}while(s=go(s))}return null}var gn=/\s+/g;function J(s,a,t){if(s&&a)if(s.classList)s.classList[t?"add":"remove"](a);else{var n=(" "+s.className+" ").replace(gn," ").replace(" "+a+" "," ");s.className=(n+(t?" "+a:"")).replace(gn," ")}}function E(s,a,t){var n=s&&s.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(t=s.currentStyle),a===void 0?t:t[a];!(a in n)&&a.indexOf("webkit")===-1&&(a="-webkit-"+a),n[a]=t+(typeof t=="string"?"":"px")}}function Qe(s,a){var t="";if(typeof s=="string")t=s;else do{var n=E(s,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!a&&(s=s.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(t)}function Dn(s,a,t){if(s){var n=s.getElementsByTagName(a),o=0,r=n.length;if(t)for(;o<r;o++)t(n[o],o);return n}return[]}function De(){var s=document.scrollingElement;return s||document.documentElement}function ee(s,a,t,n,o){if(!(!s.getBoundingClientRect&&s!==window)){var r,u,d,c,p,g,e;if(s!==window&&s!==De()?(r=s.getBoundingClientRect(),u=r.top,d=r.left,c=r.bottom,p=r.right,g=r.height,e=r.width):(u=0,d=0,c=window.innerHeight,p=window.innerWidth,g=window.innerHeight,e=window.innerWidth),(a||t)&&s!==window&&(o=o||s.parentNode,!Fe))do if(o&&o.getBoundingClientRect&&(E(o,"transform")!=="none"||t&&E(o,"position")!=="static")){var i=o.getBoundingClientRect();u-=i.top+parseInt(E(o,"border-top-width")),d-=i.left+parseInt(E(o,"border-left-width")),c=u+r.height,p=d+r.width;break}while(o=o.parentNode);if(n&&s!==window){var l=Qe(o||s),f=l&&l.a,h=l&&l.d;l&&(u/=h,d/=f,e/=f,g/=h,c=u+g,p=d+e)}return{top:u,left:d,bottom:c,right:p,width:e,height:g}}}function mn(s,a,t){for(var n=Ge(s,!0),o=ee(s)[a];n;){var r=ee(n)[t],u=void 0;if(t==="top"||t==="left"?u=o>=r:u=o<=r,!u)return n;if(n===De())break;n=Ge(n,!1)}return!1}function Pt(s,a,t){for(var n=0,o=0,r=s.children;o<r.length;){if(r[o].style.display!=="none"&&r[o]!==L.ghost&&r[o]!==L.dragged&&Ee(r[o],t.draggable,s,!1)){if(n===a)return r[o];n++}o++}return null}function un(s,a){for(var t=s.lastElementChild;t&&(t===L.ghost||E(t,"display")==="none"||a&&!Dt(t,a));)t=t.previousElementSibling;return t||null}function $(s,a){var t=0;if(!s||!s.parentNode)return-1;for(;s=s.previousElementSibling;)s.nodeName.toUpperCase()!=="TEMPLATE"&&s!==L.clone&&(!a||Dt(s,a))&&t++;return t}function yn(s){var a=0,t=0,n=De();if(s)do{var o=Qe(s),r=o.a,u=o.d;a+=s.scrollLeft*r,t+=s.scrollTop*u}while(s!==n&&(s=s.parentNode));return[a,t]}function mo(s,a){for(var t in s)if(s.hasOwnProperty(t)){for(var n in a)if(a.hasOwnProperty(n)&&a[n]===s[t][n])return Number(t)}return-1}function Ge(s,a){if(!s||!s.getBoundingClientRect)return De();var t=s,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var o=E(t);if(t.clientWidth<t.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return De();if(n||a)return t;n=!0}}while(t=t.parentNode);return De()}function yo(s,a){if(s&&a)for(var t in a)a.hasOwnProperty(t)&&(s[t]=a[t]);return s}function kt(s,a){return Math.round(s.top)===Math.round(a.top)&&Math.round(s.left)===Math.round(a.left)&&Math.round(s.height)===Math.round(a.height)&&Math.round(s.width)===Math.round(a.width)}var ct;function Pn(s,a){return function(){if(!ct){var t=arguments,n=this;t.length===1?s.call(n,t[0]):s.apply(n,t),ct=setTimeout(function(){ct=void 0},a)}}}function Ao(){clearTimeout(ct),ct=void 0}function Ln(s,a,t){s.scrollLeft+=a,s.scrollTop+=t}function cn(s){var a=window.Polymer,t=window.jQuery||window.Zepto;return a&&a.dom?a.dom(s).cloneNode(!0):t?t(s).clone(!0)[0]:s.cloneNode(!0)}function An(s,a){E(s,"position","absolute"),E(s,"top",a.top),E(s,"left",a.left),E(s,"width",a.width),E(s,"height",a.height)}function Vt(s){E(s,"position",""),E(s,"top",""),E(s,"left",""),E(s,"width",""),E(s,"height","")}var ce="Sortable"+new Date().getTime();function _o(){var s=[],a;return{captureAnimationState:function(){if(s=[],!!this.options.animation){var n=[].slice.call(this.el.children);n.forEach(function(o){if(!(E(o,"display")==="none"||o===L.ghost)){s.push({target:o,rect:ee(o)});var r=Xe({},s[s.length-1].rect);if(o.thisAnimationDuration){var u=Qe(o,!0);u&&(r.top-=u.f,r.left-=u.e)}o.fromRect=r}})}},addAnimationState:function(n){s.push(n)},removeAnimationState:function(n){s.splice(mo(s,{target:n}),1)},animateAll:function(n){var o=this;if(!this.options.animation){clearTimeout(a),typeof n=="function"&&n();return}var r=!1,u=0;s.forEach(function(d){var c=0,p=d.target,g=p.fromRect,e=ee(p),i=p.prevFromRect,l=p.prevToRect,f=d.rect,h=Qe(p,!0);h&&(e.top-=h.f,e.left-=h.e),p.toRect=e,p.thisAnimationDuration&&kt(i,e)&&!kt(g,e)&&(f.top-e.top)/(f.left-e.left)===(g.top-e.top)/(g.left-e.left)&&(c=bo(f,i,l,o.options)),kt(e,g)||(p.prevFromRect=g,p.prevToRect=e,c||(c=o.options.animation),o.animate(p,f,e,c)),c&&(r=!0,u=Math.max(u,c),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},c),p.thisAnimationDuration=c)}),clearTimeout(a),r?a=setTimeout(function(){typeof n=="function"&&n()},u):typeof n=="function"&&n(),s=[]},animate:function(n,o,r,u){if(u){E(n,"transition",""),E(n,"transform","");var d=Qe(this.el),c=d&&d.a,p=d&&d.d,g=(o.left-r.left)/(c||1),e=(o.top-r.top)/(p||1);n.animatingX=!!g,n.animatingY=!!e,E(n,"transform","translate3d("+g+"px,"+e+"px,0)"),wo(n),E(n,"transition","transform "+u+"ms"+(this.options.easing?" "+this.options.easing:"")),E(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){E(n,"transition",""),E(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},u)}}}}function wo(s){return s.offsetWidth}function bo(s,a,t,n){return Math.sqrt(Math.pow(a.top-s.top,2)+Math.pow(a.left-s.left,2))/Math.sqrt(Math.pow(a.top-t.top,2)+Math.pow(a.left-t.left,2))*n.animation}var nt=[],Xt={initializeByDefault:!0},mt={mount:function(a){for(var t in Xt)Xt.hasOwnProperty(t)&&!(t in a)&&(a[t]=Xt[t]);nt.push(a)},pluginEvent:function(a,t,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=a+"Global";nt.forEach(function(u){t[u.pluginName]&&(t[u.pluginName][r]&&t[u.pluginName][r](Xe({sortable:t},n)),t.options[u.pluginName]&&t[u.pluginName][a]&&t[u.pluginName][a](Xe({sortable:t},n)))})},initializePlugins:function(a,t,n,o){nt.forEach(function(d){var c=d.pluginName;if(!(!a.options[c]&&!d.initializeByDefault)){var p=new d(a,t,a.options);p.sortable=a,p.options=a.options,a[c]=p,_e(n,p.defaults)}});for(var r in a.options)if(a.options.hasOwnProperty(r)){var u=this.modifyOption(a,r,a.options[r]);typeof u<"u"&&(a.options[r]=u)}},getEventProperties:function(a,t){var n={};return nt.forEach(function(o){typeof o.eventProperties=="function"&&_e(n,o.eventProperties.call(t[o.pluginName],a))}),n},modifyOption:function(a,t,n){var o;return nt.forEach(function(r){a[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[t]=="function"&&(o=r.optionListeners[t].call(a[r.pluginName],n))}),o}};function at(s){var a=s.sortable,t=s.rootEl,n=s.name,o=s.targetEl,r=s.cloneEl,u=s.toEl,d=s.fromEl,c=s.oldIndex,p=s.newIndex,g=s.oldDraggableIndex,e=s.newDraggableIndex,i=s.originalEvent,l=s.putSortable,f=s.extraEventProperties;if(a=a||t&&t[ce],!!a){var h,v=a.options,m="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!Fe&&!gt?h=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(n,!0,!0)),h.to=u||t,h.from=d||t,h.item=o||t,h.clone=r,h.oldIndex=c,h.newIndex=p,h.oldDraggableIndex=g,h.newDraggableIndex=e,h.originalEvent=i,h.pullMode=l?l.lastPutMode:void 0;var A=Xe({},f,mt.getEventProperties(n,a));for(var w in A)h[w]=A[w];t&&t.dispatchEvent(h),v[m]&&v[m].call(a,h)}}var de=function(a,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.evt,r=lo(n,["evt"]);mt.pluginEvent.bind(L)(a,t,Xe({dragEl:T,parentEl:ne,ghostEl:R,rootEl:Z,nextEl:We,lastDownEl:It,cloneEl:q,cloneHidden:je,dragStarted:st,putSortable:ie,activeSortable:L.active,originalEvent:o,oldIndex:$e,oldDraggableIndex:ft,newIndex:me,newDraggableIndex:He,hideGhostForTarget:Fn,unhideGhostForTarget:Nn,cloneNowHidden:function(){je=!0},cloneNowShown:function(){je=!1},dispatchSortableEvent:function(d){fe({sortable:t,name:d,originalEvent:o})}},r))};function fe(s){at(Xe({putSortable:ie,cloneEl:q,targetEl:T,rootEl:Z,oldIndex:$e,oldDraggableIndex:ft,newIndex:me,newDraggableIndex:He},s))}var T,ne,R,Z,We,It,q,je,$e,me,ft,He,_t,ie,qe=!1,Lt=!1,Mt=[],Ye,Se,Yt,Ut,_n,wn,st,ze,dt,pt=!1,wt=!1,Et,le,Wt=[],nn=!1,Rt=[],jt=typeof document<"u",bt=On,bn=gt||Fe?"cssFloat":"float",xo=jt&&!vo&&!On&&"draggable"in document.createElement("div"),Mn=function(){if(jt){if(Fe)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),Rn=function(a,t){var n=E(a),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=Pt(a,0,t),u=Pt(a,1,t),d=r&&E(r),c=u&&E(u),p=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+ee(r).width,g=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+ee(u).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&d.float&&d.float!=="none"){var e=d.float==="left"?"left":"right";return u&&(c.clear==="both"||c.clear===e)?"vertical":"horizontal"}return r&&(d.display==="block"||d.display==="flex"||d.display==="table"||d.display==="grid"||p>=o&&n[bn]==="none"||u&&n[bn]==="none"&&p+g>o)?"vertical":"horizontal"},So=function(a,t,n){var o=n?a.left:a.top,r=n?a.right:a.bottom,u=n?a.width:a.height,d=n?t.left:t.top,c=n?t.right:t.bottom,p=n?t.width:t.height;return o===d||r===c||o+u/2===d+p/2},To=function(a,t){var n;return Mt.some(function(o){if(!un(o)){var r=ee(o),u=o[ce].options.emptyInsertThreshold,d=a>=r.left-u&&a<=r.right+u,c=t>=r.top-u&&t<=r.bottom+u;if(u&&d&&c)return n=o}}),n},Bn=function(a){function t(r,u){return function(d,c,p,g){var e=d.options.group.name&&c.options.group.name&&d.options.group.name===c.options.group.name;if(r==null&&(u||e))return!0;if(r==null||r===!1)return!1;if(u&&r==="clone")return r;if(typeof r=="function")return t(r(d,c,p,g),u)(d,c,p,g);var i=(u?d:c).options.group.name;return r===!0||typeof r=="string"&&r===i||r.join&&r.indexOf(i)>-1}}var n={},o=a.group;(!o||Tt(o)!="object")&&(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,a.group=n},Fn=function(){!Mn&&R&&E(R,"display","none")},Nn=function(){!Mn&&R&&E(R,"display","")};jt&&document.addEventListener("click",function(s){if(Lt)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),Lt=!1,!1},!0);var Ue=function(a){if(T){a=a.touches?a.touches[0]:a;var t=To(a.clientX,a.clientY);if(t){var n={};for(var o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ce]._onDragOver(n)}}},Io=function(a){T&&T.parentNode[ce]._isOutsideThisEl(a.target)};function L(s,a){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=a=_e({},a),s[ce]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rn(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(u,d){u.setData("Text",d.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:L.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};mt.initializePlugins(this,s,t);for(var n in t)!(n in a)&&(a[n]=t[n]);Bn(a);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=a.forceFallback?!1:xo,this.nativeDraggable&&(this.options.touchStartThreshold=1),a.supportPointer?G(s,"pointerdown",this._onTapStart):(G(s,"mousedown",this._onTapStart),G(s,"touchstart",this._onTapStart)),this.nativeDraggable&&(G(s,"dragover",this),G(s,"dragenter",this)),Mt.push(this.el),a.store&&a.store.get&&this.sort(a.store.get(this)||[]),_e(this,_o())}L.prototype={constructor:L,_isOutsideThisEl:function(a){!this.el.contains(a)&&a!==this.el&&(ze=null)},_getDirection:function(a,t){return typeof this.options.direction=="function"?this.options.direction.call(this,a,t,T):this.options.direction},_onTapStart:function(a){if(a.cancelable){var t=this,n=this.el,o=this.options,r=o.preventOnFilter,u=a.type,d=a.touches&&a.touches[0]||a.pointerType&&a.pointerType==="touch"&&a,c=(d||a).target,p=a.target.shadowRoot&&(a.path&&a.path[0]||a.composedPath&&a.composedPath()[0])||c,g=o.filter;if(Mo(n),!T&&!(/mousedown|pointerdown/.test(u)&&a.button!==0||o.disabled)&&!p.isContentEditable&&(c=Ee(c,o.draggable,n,!1),!(c&&c.animated)&&It!==c)){if($e=$(c),ft=$(c,o.draggable),typeof g=="function"){if(g.call(this,a,c,this)){fe({sortable:t,rootEl:p,name:"filter",targetEl:c,toEl:n,fromEl:n}),de("filter",t,{evt:a}),r&&a.cancelable&&a.preventDefault();return}}else if(g&&(g=g.split(",").some(function(e){if(e=Ee(p,e.trim(),n,!1),e)return fe({sortable:t,rootEl:e,name:"filter",targetEl:c,fromEl:n,toEl:n}),de("filter",t,{evt:a}),!0}),g)){r&&a.cancelable&&a.preventDefault();return}o.handle&&!Ee(p,o.handle,n,!1)||this._prepareDragStart(a,d,c)}}},_prepareDragStart:function(a,t,n){var o=this,r=o.el,u=o.options,d=r.ownerDocument,c;if(n&&!T&&n.parentNode===r){var p=ee(n);if(Z=r,T=n,ne=T.parentNode,We=T.nextSibling,It=n,_t=u.group,L.dragged=T,Ye={target:T,clientX:(t||a).clientX,clientY:(t||a).clientY},_n=Ye.clientX-p.left,wn=Ye.clientY-p.top,this._lastX=(t||a).clientX,this._lastY=(t||a).clientY,T.style["will-change"]="all",c=function(){if(de("delayEnded",o,{evt:a}),L.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!vn&&o.nativeDraggable&&(T.draggable=!0),o._triggerDragStart(a,t),fe({sortable:o,name:"choose",originalEvent:a}),J(T,u.chosenClass,!0)},u.ignore.split(",").forEach(function(g){Dn(T,g.trim(),Kt)}),G(d,"dragover",Ue),G(d,"mousemove",Ue),G(d,"touchmove",Ue),G(d,"mouseup",o._onDrop),G(d,"touchend",o._onDrop),G(d,"touchcancel",o._onDrop),vn&&this.nativeDraggable&&(this.options.touchStartThreshold=4,T.draggable=!0),de("delayStart",this,{evt:a}),u.delay&&(!u.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(gt||Fe))){if(L.eventCanceled){this._onDrop();return}G(d,"mouseup",o._disableDelayedDrag),G(d,"touchend",o._disableDelayedDrag),G(d,"touchcancel",o._disableDelayedDrag),G(d,"mousemove",o._delayedDragTouchMoveHandler),G(d,"touchmove",o._delayedDragTouchMoveHandler),u.supportPointer&&G(d,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,u.delay)}else c()}},_delayedDragTouchMoveHandler:function(a){var t=a.touches?a.touches[0]:a;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){T&&Kt(T),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var a=this.el.ownerDocument;j(a,"mouseup",this._disableDelayedDrag),j(a,"touchend",this._disableDelayedDrag),j(a,"touchcancel",this._disableDelayedDrag),j(a,"mousemove",this._delayedDragTouchMoveHandler),j(a,"touchmove",this._delayedDragTouchMoveHandler),j(a,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(a,t){t=t||a.pointerType=="touch"&&a,!this.nativeDraggable||t?this.options.supportPointer?G(document,"pointermove",this._onTouchMove):t?G(document,"touchmove",this._onTouchMove):G(document,"mousemove",this._onTouchMove):(G(T,"dragend",this),G(Z,"dragstart",this._onDragStart));try{document.selection?Ot(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(a,t){if(qe=!1,Z&&T){de("dragStarted",this,{evt:t}),this.nativeDraggable&&G(document,"dragover",Io);var n=this.options;!a&&J(T,n.dragClass,!1),J(T,n.ghostClass,!0),L.active=this,a&&this._appendGhost(),fe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Se){this._lastX=Se.clientX,this._lastY=Se.clientY,Fn();for(var a=document.elementFromPoint(Se.clientX,Se.clientY),t=a;a&&a.shadowRoot&&(a=a.shadowRoot.elementFromPoint(Se.clientX,Se.clientY),a!==t);)t=a;if(T.parentNode[ce]._isOutsideThisEl(a),t)do{if(t[ce]){var n=void 0;if(n=t[ce]._onDragOver({clientX:Se.clientX,clientY:Se.clientY,target:a,rootEl:t}),n&&!this.options.dragoverBubble)break}a=t}while(t=t.parentNode);Nn()}},_onTouchMove:function(a){if(Ye){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,r=a.touches?a.touches[0]:a,u=R&&Qe(R,!0),d=R&&u&&u.a,c=R&&u&&u.d,p=bt&&le&&yn(le),g=(r.clientX-Ye.clientX+o.x)/(d||1)+(p?p[0]-Wt[0]:0)/(d||1),e=(r.clientY-Ye.clientY+o.y)/(c||1)+(p?p[1]-Wt[1]:0)/(c||1);if(!L.active&&!qe){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(a,!0)}if(R){u?(u.e+=g-(Yt||0),u.f+=e-(Ut||0)):u={a:1,b:0,c:0,d:1,e:g,f:e};var i="matrix(".concat(u.a,",").concat(u.b,",").concat(u.c,",").concat(u.d,",").concat(u.e,",").concat(u.f,")");E(R,"webkitTransform",i),E(R,"mozTransform",i),E(R,"msTransform",i),E(R,"transform",i),Yt=g,Ut=e,Se=r}a.cancelable&&a.preventDefault()}},_appendGhost:function(){if(!R){var a=this.options.fallbackOnBody?document.body:Z,t=ee(T,!0,bt,!0,a),n=this.options;if(bt){for(le=a;E(le,"position")==="static"&&E(le,"transform")==="none"&&le!==document;)le=le.parentNode;le!==document.body&&le!==document.documentElement?(le===document&&(le=De()),t.top+=le.scrollTop,t.left+=le.scrollLeft):le=De(),Wt=yn(le)}R=T.cloneNode(!0),J(R,n.ghostClass,!1),J(R,n.fallbackClass,!0),J(R,n.dragClass,!0),E(R,"transition",""),E(R,"transform",""),E(R,"box-sizing","border-box"),E(R,"margin",0),E(R,"top",t.top),E(R,"left",t.left),E(R,"width",t.width),E(R,"height",t.height),E(R,"opacity","0.8"),E(R,"position",bt?"absolute":"fixed"),E(R,"zIndex","100000"),E(R,"pointerEvents","none"),L.ghost=R,a.appendChild(R),E(R,"transform-origin",_n/parseInt(R.style.width)*100+"% "+wn/parseInt(R.style.height)*100+"%")}},_onDragStart:function(a,t){var n=this,o=a.dataTransfer,r=n.options;if(de("dragStart",this,{evt:a}),L.eventCanceled){this._onDrop();return}de("setupClone",this),L.eventCanceled||(q=cn(T),q.draggable=!1,q.style["will-change"]="",this._hideClone(),J(q,this.options.chosenClass,!1),L.clone=q),n.cloneId=Ot(function(){de("clone",n),!L.eventCanceled&&(n.options.removeCloneOnHide||Z.insertBefore(q,T),n._hideClone(),fe({sortable:n,name:"clone"}))}),!t&&J(T,r.dragClass,!0),t?(Lt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(j(document,"mouseup",n._onDrop),j(document,"touchend",n._onDrop),j(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,T)),G(document,"drop",n),E(T,"transform","translateZ(0)")),qe=!0,n._dragStartId=Ot(n._dragStarted.bind(n,t,a)),G(document,"selectstart",n),st=!0,tn&&E(document.body,"user-select","none")},_onDragOver:function(a){var t=this.el,n=a.target,o,r,u,d=this.options,c=d.group,p=L.active,g=_t===c,e=d.sort,i=ie||p,l,f=this,h=!1;if(nn)return;function v(K,he){de(K,f,Xe({evt:a,isOwner:g,axis:l?"vertical":"horizontal",revert:u,dragRect:o,targetRect:r,canSort:e,fromSortable:i,target:n,completed:A,onMove:function(oe,x){return Qt(Z,t,T,o,oe,ee(oe),a,x)},changed:w},he))}function m(){v("dragOverAnimationCapture"),f.captureAnimationState(),f!==i&&i.captureAnimationState()}function A(K){return v("dragOverCompleted",{insertion:K}),K&&(g?p._hideClone():p._showClone(f),f!==i&&(J(T,ie?ie.options.ghostClass:p.options.ghostClass,!1),J(T,d.ghostClass,!0)),ie!==f&&f!==L.active?ie=f:f===L.active&&ie&&(ie=null),i===f&&(f._ignoreWhileAnimating=n),f.animateAll(function(){v("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==i&&(i.animateAll(),i._ignoreWhileAnimating=null)),(n===T&&!T.animated||n===t&&!n.animated)&&(ze=null),!d.dragoverBubble&&!a.rootEl&&n!==document&&(T.parentNode[ce]._isOutsideThisEl(a.target),!K&&Ue(a)),!d.dragoverBubble&&a.stopPropagation&&a.stopPropagation(),h=!0}function w(){me=$(T),He=$(T,d.draggable),fe({sortable:f,name:"change",toEl:t,newIndex:me,newDraggableIndex:He,originalEvent:a})}if(a.preventDefault!==void 0&&a.cancelable&&a.preventDefault(),n=Ee(n,d.draggable,t,!0),v("dragOver"),L.eventCanceled)return h;if(T.contains(a.target)||n.animated&&n.animatingX&&n.animatingY||f._ignoreWhileAnimating===n)return A(!1);if(Lt=!1,p&&!d.disabled&&(g?e||(u=!Z.contains(T)):ie===this||(this.lastPutMode=_t.checkPull(this,p,T,a))&&c.checkPut(this,p,T,a))){if(l=this._getDirection(a,n)==="vertical",o=ee(T),v("dragOverValid"),L.eventCanceled)return h;if(u)return ne=Z,m(),this._hideClone(),v("revert"),L.eventCanceled||(We?Z.insertBefore(T,We):Z.appendChild(T)),A(!0);var S=un(t,d.draggable);if(!S||Co(a,l,this)&&!S.animated){if(S===T)return A(!1);if(S&&t===a.target&&(n=S),n&&(r=ee(n)),Qt(Z,t,T,o,n,r,a,!!n)!==!1)return m(),t.appendChild(T),ne=t,w(),A(!0)}else if(n.parentNode===t){r=ee(n);var C=0,B,k=T.parentNode!==t,P=!So(T.animated&&T.toRect||o,n.animated&&n.toRect||r,l),I=l?"top":"left",D=mn(n,"top","top")||mn(T,"top","top"),N=D?D.scrollTop:void 0;ze!==n&&(B=r[I],pt=!1,wt=!P&&d.invertSwap||k),C=Do(a,n,r,l,P?1:d.swapThreshold,d.invertedSwapThreshold==null?d.swapThreshold:d.invertedSwapThreshold,wt,ze===n);var Q;if(C!==0){var z=$(T);do z-=C,Q=ne.children[z];while(Q&&(E(Q,"display")==="none"||Q===R))}if(C===0||Q===n)return A(!1);ze=n,dt=C;var U=n.nextElementSibling,V=!1;V=C===1;var X=Qt(Z,t,T,o,n,r,a,V);if(X!==!1)return(X===1||X===-1)&&(V=X===1),nn=!0,setTimeout(Oo,30),m(),V&&!U?t.appendChild(T):n.parentNode.insertBefore(T,V?U:n),D&&Ln(D,0,N-D.scrollTop),ne=T.parentNode,B!==void 0&&!wt&&(Et=Math.abs(B-ee(n)[I])),w(),A(!0)}if(t.contains(T))return A(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){j(document,"mousemove",this._onTouchMove),j(document,"touchmove",this._onTouchMove),j(document,"pointermove",this._onTouchMove),j(document,"dragover",Ue),j(document,"mousemove",Ue),j(document,"touchmove",Ue)},_offUpEvents:function(){var a=this.el.ownerDocument;j(a,"mouseup",this._onDrop),j(a,"touchend",this._onDrop),j(a,"pointerup",this._onDrop),j(a,"touchcancel",this._onDrop),j(document,"selectstart",this)},_onDrop:function(a){var t=this.el,n=this.options;if(me=$(T),He=$(T,n.draggable),de("drop",this,{evt:a}),ne=T&&T.parentNode,me=$(T),He=$(T,n.draggable),L.eventCanceled){this._nulling();return}qe=!1,wt=!1,pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),rn(this.cloneId),rn(this._dragStartId),this.nativeDraggable&&(j(document,"drop",this),j(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),tn&&E(document.body,"user-select",""),E(T,"transform",""),a&&(st&&(a.cancelable&&a.preventDefault(),!n.dropBubble&&a.stopPropagation()),R&&R.parentNode&&R.parentNode.removeChild(R),(Z===ne||ie&&ie.lastPutMode!=="clone")&&q&&q.parentNode&&q.parentNode.removeChild(q),T&&(this.nativeDraggable&&j(T,"dragend",this),Kt(T),T.style["will-change"]="",st&&!qe&&J(T,ie?ie.options.ghostClass:this.options.ghostClass,!1),J(T,this.options.chosenClass,!1),fe({sortable:this,name:"unchoose",toEl:ne,newIndex:null,newDraggableIndex:null,originalEvent:a}),Z!==ne?(me>=0&&(fe({rootEl:ne,name:"add",toEl:ne,fromEl:Z,originalEvent:a}),fe({sortable:this,name:"remove",toEl:ne,originalEvent:a}),fe({rootEl:ne,name:"sort",toEl:ne,fromEl:Z,originalEvent:a}),fe({sortable:this,name:"sort",toEl:ne,originalEvent:a})),ie&&ie.save()):me!==$e&&me>=0&&(fe({sortable:this,name:"update",toEl:ne,originalEvent:a}),fe({sortable:this,name:"sort",toEl:ne,originalEvent:a})),L.active&&((me==null||me===-1)&&(me=$e,He=ft),fe({sortable:this,name:"end",toEl:ne,originalEvent:a}),this.save()))),this._nulling()},_nulling:function(){de("nulling",this),Z=T=ne=R=We=q=It=je=Ye=Se=st=me=He=$e=ft=ze=dt=ie=_t=L.dragged=L.ghost=L.clone=L.active=null,Rt.forEach(function(a){a.checked=!0}),Rt.length=Yt=Ut=0},handleEvent:function(a){switch(a.type){case"drop":case"dragend":this._onDrop(a);break;case"dragenter":case"dragover":T&&(this._onDragOver(a),Eo(a));break;case"selectstart":a.preventDefault();break}},toArray:function(){for(var a=[],t,n=this.el.children,o=0,r=n.length,u=this.options;o<r;o++)t=n[o],Ee(t,u.draggable,this.el,!1)&&a.push(t.getAttribute(u.dataIdAttr)||Lo(t));return a},sort:function(a){var t={},n=this.el;this.toArray().forEach(function(o,r){var u=n.children[r];Ee(u,this.options.draggable,n,!1)&&(t[o]=u)},this),a.forEach(function(o){t[o]&&(n.removeChild(t[o]),n.appendChild(t[o]))})},save:function(){var a=this.options.store;a&&a.set&&a.set(this)},closest:function(a,t){return Ee(a,t||this.options.draggable,this.el,!1)},option:function(a,t){var n=this.options;if(t===void 0)return n[a];var o=mt.modifyOption(this,a,t);typeof o<"u"?n[a]=o:n[a]=t,a==="group"&&Bn(n)},destroy:function(){de("destroy",this);var a=this.el;a[ce]=null,j(a,"mousedown",this._onTapStart),j(a,"touchstart",this._onTapStart),j(a,"pointerdown",this._onTapStart),this.nativeDraggable&&(j(a,"dragover",this),j(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Mt.splice(Mt.indexOf(this.el),1),this.el=a=null},_hideClone:function(){if(!je){if(de("hideClone",this),L.eventCanceled)return;E(q,"display","none"),this.options.removeCloneOnHide&&q.parentNode&&q.parentNode.removeChild(q),je=!0}},_showClone:function(a){if(a.lastPutMode!=="clone"){this._hideClone();return}if(je){if(de("showClone",this),L.eventCanceled)return;Z.contains(T)&&!this.options.group.revertClone?Z.insertBefore(q,T):We?Z.insertBefore(q,We):Z.appendChild(q),this.options.group.revertClone&&this.animate(T,q),E(q,"display",""),je=!1}}};function Eo(s){s.dataTransfer&&(s.dataTransfer.dropEffect="move"),s.cancelable&&s.preventDefault()}function Qt(s,a,t,n,o,r,u,d){var c,p=s[ce],g=p.options.onMove,e;return window.CustomEvent&&!Fe&&!gt?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=a,c.from=s,c.dragged=t,c.draggedRect=n,c.related=o||a,c.relatedRect=r||ee(a),c.willInsertAfter=d,c.originalEvent=u,s.dispatchEvent(c),g&&(e=g.call(p,c,u)),e}function Kt(s){s.draggable=!1}function Oo(){nn=!1}function Co(s,a,t){var n=ee(un(t.el,t.options.draggable)),o=10;return a?s.clientX>n.right+o||s.clientX<=n.right&&s.clientY>n.bottom&&s.clientX>=n.left:s.clientX>n.right&&s.clientY>n.top||s.clientX<=n.right&&s.clientY>n.bottom+o}function Do(s,a,t,n,o,r,u,d){var c=n?s.clientY:s.clientX,p=n?t.height:t.width,g=n?t.top:t.left,e=n?t.bottom:t.right,i=!1;if(!u){if(d&&Et<p*o){if(!pt&&(dt===1?c>g+p*r/2:c<e-p*r/2)&&(pt=!0),pt)i=!0;else if(dt===1?c<g+Et:c>e-Et)return-dt}else if(c>g+p*(1-o)/2&&c<e-p*(1-o)/2)return Po(a)}return i=i||u,i&&(c<g+p*r/2||c>e-p*r/2)?c>g+p/2?1:-1:0}function Po(s){return $(T)<$(s)?1:-1}function Lo(s){for(var a=s.tagName+s.className+s.src+s.href+s.textContent,t=a.length,n=0;t--;)n+=a.charCodeAt(t);return n.toString(36)}function Mo(s){Rt.length=0;for(var a=s.getElementsByTagName("input"),t=a.length;t--;){var n=a[t];n.checked&&Rt.push(n)}}function Ot(s){return setTimeout(s,0)}function rn(s){return clearTimeout(s)}jt&&G(document,"touchmove",function(s){(L.active||qe)&&s.cancelable&&s.preventDefault()});L.utils={on:G,off:j,css:E,find:Dn,is:function(a,t){return!!Ee(a,t,a,!1)},extend:yo,throttle:Pn,closest:Ee,toggleClass:J,clone:cn,index:$,nextTick:Ot,cancelNextTick:rn,detectDirection:Rn,getChild:Pt};L.get=function(s){return s[ce]};L.mount=function(){for(var s=arguments.length,a=new Array(s),t=0;t<s;t++)a[t]=arguments[t];a[0].constructor===Array&&(a=a[0]),a.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(L.utils=Xe({},L.utils,n.utils)),mt.mount(n)})};L.create=function(s,a){return new L(s,a)};L.version=ho;var re=[],lt,on,an=!1,zt,Zt,Bt,ut;function Ro(){function s(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this))}return s.prototype={dragStarted:function(t){var n=t.originalEvent;this.sortable.nativeDraggable?G(document,"dragover",this._handleAutoScroll):this.options.supportPointer?G(document,"pointermove",this._handleFallbackAutoScroll):n.touches?G(document,"touchmove",this._handleFallbackAutoScroll):G(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var n=t.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?j(document,"dragover",this._handleAutoScroll):(j(document,"pointermove",this._handleFallbackAutoScroll),j(document,"touchmove",this._handleFallbackAutoScroll),j(document,"mousemove",this._handleFallbackAutoScroll)),xn(),Ct(),Ao()},nulling:function(){Bt=on=lt=an=ut=zt=Zt=null,re.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,n){var o=this,r=(t.touches?t.touches[0]:t).clientX,u=(t.touches?t.touches[0]:t).clientY,d=document.elementFromPoint(r,u);if(Bt=t,n||gt||Fe||tn){Jt(t,this.options,d,n);var c=Ge(d,!0);an&&(!ut||r!==zt||u!==Zt)&&(ut&&xn(),ut=setInterval(function(){var p=Ge(document.elementFromPoint(r,u),!0);p!==c&&(c=p,Ct()),Jt(t,o.options,p,n)},10),zt=r,Zt=u)}else{if(!this.options.bubbleScroll||Ge(d,!0)===De()){Ct();return}Jt(t,this.options,Ge(d,!1),!1)}}},_e(s,{pluginName:"scroll",initializeByDefault:!0})}function Ct(){re.forEach(function(s){clearInterval(s.pid)}),re=[]}function xn(){clearInterval(ut)}var Jt=Pn(function(s,a,t,n){if(a.scroll){var o=(s.touches?s.touches[0]:s).clientX,r=(s.touches?s.touches[0]:s).clientY,u=a.scrollSensitivity,d=a.scrollSpeed,c=De(),p=!1,g;on!==t&&(on=t,Ct(),lt=a.scroll,g=a.scrollFn,lt===!0&&(lt=Ge(t,!0)));var e=0,i=lt;do{var l=i,f=ee(l),h=f.top,v=f.bottom,m=f.left,A=f.right,w=f.width,S=f.height,C=void 0,B=void 0,k=l.scrollWidth,P=l.scrollHeight,I=E(l),D=l.scrollLeft,N=l.scrollTop;l===c?(C=w<k&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),B=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(C=w<k&&(I.overflowX==="auto"||I.overflowX==="scroll"),B=S<P&&(I.overflowY==="auto"||I.overflowY==="scroll"));var Q=C&&(Math.abs(A-o)<=u&&D+w<k)-(Math.abs(m-o)<=u&&!!D),z=B&&(Math.abs(v-r)<=u&&N+S<P)-(Math.abs(h-r)<=u&&!!N);if(!re[e])for(var U=0;U<=e;U++)re[U]||(re[U]={});(re[e].vx!=Q||re[e].vy!=z||re[e].el!==l)&&(re[e].el=l,re[e].vx=Q,re[e].vy=z,clearInterval(re[e].pid),(Q!=0||z!=0)&&(p=!0,re[e].pid=setInterval(function(){n&&this.layer===0&&L.active._onTouchMove(Bt);var V=re[this.layer].vy?re[this.layer].vy*d:0,X=re[this.layer].vx?re[this.layer].vx*d:0;typeof g=="function"&&g.call(L.dragged.parentNode[ce],X,V,s,Bt,re[this.layer].el)!=="continue"||Ln(re[this.layer].el,X,V)}.bind({layer:e}),24))),e++}while(a.bubbleScroll&&i!==c&&(i=Ge(i,!1)));an=p}},30),Hn=function(a){var t=a.originalEvent,n=a.putSortable,o=a.dragEl,r=a.activeSortable,u=a.dispatchSortableEvent,d=a.hideGhostForTarget,c=a.unhideGhostForTarget;if(t){var p=n||r;d();var g=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,e=document.elementFromPoint(g.clientX,g.clientY);c(),p&&!p.el.contains(e)&&(u("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function fn(){}fn.prototype={startIndex:null,dragStart:function(a){var t=a.oldDraggableIndex;this.startIndex=t},onSpill:function(a){var t=a.dragEl,n=a.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Pt(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(t,o):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Hn};_e(fn,{pluginName:"revertOnSpill"});function dn(){}dn.prototype={onSpill:function(a){var t=a.dragEl,n=a.putSortable,o=n||this.sortable;o.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),o.animateAll()},drop:Hn};_e(dn,{pluginName:"removeOnSpill"});var Ae;function Bo(){function s(){this.defaults={swapClass:"sortable-swap-highlight"}}return s.prototype={dragStart:function(t){var n=t.dragEl;Ae=n},dragOverValid:function(t){var n=t.completed,o=t.target,r=t.onMove,u=t.activeSortable,d=t.changed,c=t.cancel;if(u.options.swap){var p=this.sortable.el,g=this.options;if(o&&o!==p){var e=Ae;r(o)!==!1?(J(o,g.swapClass,!0),Ae=o):Ae=null,e&&e!==Ae&&J(e,g.swapClass,!1)}d(),n(!0),c()}},drop:function(t){var n=t.activeSortable,o=t.putSortable,r=t.dragEl,u=o||this.sortable,d=this.options;Ae&&J(Ae,d.swapClass,!1),Ae&&(d.swap||o&&o.options.swap)&&r!==Ae&&(u.captureAnimationState(),u!==n&&n.captureAnimationState(),Fo(r,Ae),u.animateAll(),u!==n&&n.animateAll())},nulling:function(){Ae=null}},_e(s,{pluginName:"swap",eventProperties:function(){return{swapItem:Ae}}})}function Fo(s,a){var t=s.parentNode,n=a.parentNode,o,r;!t||!n||t.isEqualNode(a)||n.isEqualNode(s)||(o=$(s),r=$(a),t.isEqualNode(n)&&o<r&&r++,t.insertBefore(a,t.children[o]),n.insertBefore(s,n.children[r]))}var M=[],ge=[],rt,Te,ot=!1,ve=!1,Ze=!1,W,it,xt;function No(){function s(a){for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this));a.options.supportPointer?G(document,"pointerup",this._deselectMultiDrag):(G(document,"mouseup",this._deselectMultiDrag),G(document,"touchend",this._deselectMultiDrag)),G(document,"keydown",this._checkKeyDown),G(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,r){var u="";M.length&&Te===a?M.forEach(function(d,c){u+=(c?", ":"")+d.textContent}):u=r.textContent,o.setData("Text",u)}}}return s.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var n=t.dragEl;W=n},delayEnded:function(){this.isMultiDrag=~M.indexOf(W)},setupClone:function(t){var n=t.sortable,o=t.cancel;if(this.isMultiDrag){for(var r=0;r<M.length;r++)ge.push(cn(M[r])),ge[r].sortableIndex=M[r].sortableIndex,ge[r].draggable=!1,ge[r].style["will-change"]="",J(ge[r],this.options.selectedClass,!1),M[r]===W&&J(ge[r],this.options.chosenClass,!1);n._hideClone(),o()}},clone:function(t){var n=t.sortable,o=t.rootEl,r=t.dispatchSortableEvent,u=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||M.length&&Te===n&&(Sn(!0,o),r("clone"),u()))},showClone:function(t){var n=t.cloneNowShown,o=t.rootEl,r=t.cancel;this.isMultiDrag&&(Sn(!1,o),ge.forEach(function(u){E(u,"display","")}),n(),xt=!1,r())},hideClone:function(t){var n=this;t.sortable;var o=t.cloneNowHidden,r=t.cancel;this.isMultiDrag&&(ge.forEach(function(u){E(u,"display","none"),n.options.removeCloneOnHide&&u.parentNode&&u.parentNode.removeChild(u)}),o(),xt=!0,r())},dragStartGlobal:function(t){t.sortable,!this.isMultiDrag&&Te&&Te.multiDrag._deselectMultiDrag(),M.forEach(function(n){n.sortableIndex=$(n)}),M=M.sort(function(n,o){return n.sortableIndex-o.sortableIndex}),Ze=!0},dragStarted:function(t){var n=this,o=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){M.forEach(function(u){u!==W&&E(u,"position","absolute")});var r=ee(W,!1,!0,!0);M.forEach(function(u){u!==W&&An(u,r)}),ve=!0,ot=!0}o.animateAll(function(){ve=!1,ot=!1,n.options.animation&&M.forEach(function(u){Vt(u)}),n.options.sort&&St()})}},dragOver:function(t){var n=t.target,o=t.completed,r=t.cancel;ve&&~M.indexOf(n)&&(o(!1),r())},revert:function(t){var n=t.fromSortable,o=t.rootEl,r=t.sortable,u=t.dragRect;M.length>1&&(M.forEach(function(d){r.addAnimationState({target:d,rect:ve?ee(d):u}),Vt(d),d.fromRect=u,n.removeAnimationState(d)}),ve=!1,Ho(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(t){var n=t.sortable,o=t.isOwner,r=t.insertion,u=t.activeSortable,d=t.parentEl,c=t.putSortable,p=this.options;if(r){if(o&&u._hideClone(),ot=!1,p.animation&&M.length>1&&(ve||!o&&!u.options.sort&&!c)){var g=ee(W,!1,!0,!0);M.forEach(function(i){i!==W&&(An(i,g),d.appendChild(i))}),ve=!0}if(!o)if(ve||St(),M.length>1){var e=xt;u._showClone(n),u.options.animation&&!xt&&e&&ge.forEach(function(i){u.addAnimationState({target:i,rect:it}),i.fromRect=it,i.thisAnimationDuration=null})}else u._showClone(n)}},dragOverAnimationCapture:function(t){var n=t.dragRect,o=t.isOwner,r=t.activeSortable;if(M.forEach(function(d){d.thisAnimationDuration=null}),r.options.animation&&!o&&r.multiDrag.isMultiDrag){it=_e({},n);var u=Qe(W,!0);it.top-=u.f,it.left-=u.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,St())},drop:function(t){var n=t.originalEvent,o=t.rootEl,r=t.parentEl,u=t.sortable,d=t.dispatchSortableEvent,c=t.oldIndex,p=t.putSortable,g=p||this.sortable;if(n){var e=this.options,i=r.children;if(!Ze)if(e.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),J(W,e.selectedClass,!~M.indexOf(W)),~M.indexOf(W))M.splice(M.indexOf(W),1),rt=null,at({sortable:u,rootEl:o,name:"deselect",targetEl:W,originalEvt:n});else{if(M.push(W),at({sortable:u,rootEl:o,name:"select",targetEl:W,originalEvt:n}),n.shiftKey&&rt&&u.el.contains(rt)){var l=$(rt),f=$(W);if(~l&&~f&&l!==f){var h,v;for(f>l?(v=l,h=f):(v=f,h=l+1);v<h;v++)~M.indexOf(i[v])||(J(i[v],e.selectedClass,!0),M.push(i[v]),at({sortable:u,rootEl:o,name:"select",targetEl:i[v],originalEvt:n}))}}else rt=W;Te=g}if(Ze&&this.isMultiDrag){if((r[ce].options.sort||r!==o)&&M.length>1){var m=ee(W),A=$(W,":not(."+this.options.selectedClass+")");if(!ot&&e.animation&&(W.thisAnimationDuration=null),g.captureAnimationState(),!ot&&(e.animation&&(W.fromRect=m,M.forEach(function(S){if(S.thisAnimationDuration=null,S!==W){var C=ve?ee(S):m;S.fromRect=C,g.addAnimationState({target:S,rect:C})}})),St(),M.forEach(function(S){i[A]?r.insertBefore(S,i[A]):r.appendChild(S),A++}),c===$(W))){var w=!1;M.forEach(function(S){if(S.sortableIndex!==$(S)){w=!0;return}}),w&&d("update")}M.forEach(function(S){Vt(S)}),g.animateAll()}Te=g}(o===r||p&&p.lastPutMode!=="clone")&&ge.forEach(function(S){S.parentNode&&S.parentNode.removeChild(S)})}},nullingGlobal:function(){this.isMultiDrag=Ze=!1,ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),j(document,"pointerup",this._deselectMultiDrag),j(document,"mouseup",this._deselectMultiDrag),j(document,"touchend",this._deselectMultiDrag),j(document,"keydown",this._checkKeyDown),j(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(typeof Ze<"u"&&Ze)&&Te===this.sortable&&!(t&&Ee(t.target,this.options.draggable,this.sortable.el,!1))&&!(t&&t.button!==0))for(;M.length;){var n=M[0];J(n,this.options.selectedClass,!1),M.shift(),at({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},_e(s,{pluginName:"multiDrag",utils:{select:function(t){var n=t.parentNode[ce];!n||!n.options.multiDrag||~M.indexOf(t)||(Te&&Te!==n&&(Te.multiDrag._deselectMultiDrag(),Te=n),J(t,n.options.selectedClass,!0),M.push(t))},deselect:function(t){var n=t.parentNode[ce],o=M.indexOf(t);!n||!n.options.multiDrag||!~o||(J(t,n.options.selectedClass,!1),M.splice(o,1))}},eventProperties:function(){var t=this,n=[],o=[];return M.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var u;ve&&r!==W?u=-1:ve?u=$(r,":not(."+t.options.selectedClass+")"):u=$(r),o.push({multiDragElement:r,index:u})}),{items:uo(M),clones:[].concat(ge),oldIndicies:n,newIndicies:o}},optionListeners:{multiDragKey:function(t){return t=t.toLowerCase(),t==="ctrl"?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function Ho(s,a){M.forEach(function(t,n){var o=a.children[t.sortableIndex+(s?Number(n):0)];o?a.insertBefore(t,o):a.appendChild(t)})}function Sn(s,a){ge.forEach(function(t,n){var o=a.children[t.sortableIndex+(s?Number(n):0)];o?a.insertBefore(t,o):a.appendChild(t)})}function St(){M.forEach(function(s){s!==W&&s.parentNode&&s.parentNode.removeChild(s)})}L.mount(new Ro);L.mount(dn,fn);const jo=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:No,Sortable:L,Swap:Bo,default:L},Symbol.toStringTag,{value:"Module"})),Go=er(jo);(function(s,a){(function(n,o){s.exports=o(Go)})(typeof self<"u"?self:Je,function(t){return function(n){var o={};function r(u){if(o[u])return o[u].exports;var d=o[u]={i:u,l:!1,exports:{}};return n[u].call(d.exports,d,d.exports,r),d.l=!0,d.exports}return r.m=n,r.c=o,r.d=function(u,d,c){r.o(u,d)||Object.defineProperty(u,d,{enumerable:!0,get:c})},r.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},r.t=function(u,d){if(d&1&&(u=r(u)),d&8||d&4&&typeof u=="object"&&u&&u.__esModule)return u;var c=Object.create(null);if(r.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:u}),d&2&&typeof u!="string")for(var p in u)r.d(c,p,function(g){return u[g]}.bind(null,p));return c},r.n=function(u){var d=u&&u.__esModule?function(){return u.default}:function(){return u};return r.d(d,"a",d),d},r.o=function(u,d){return Object.prototype.hasOwnProperty.call(u,d)},r.p="",r(r.s="fb15")}({"01f9":function(n,o,r){var u=r("2d00"),d=r("5ca1"),c=r("2aba"),p=r("32e9"),g=r("84f2"),e=r("41a0"),i=r("7f20"),l=r("38fd"),f=r("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),v="@@iterator",m="keys",A="values",w=function(){return this};n.exports=function(S,C,B,k,P,I,D){e(B,C,k);var N=function(b){if(!h&&b in V)return V[b];switch(b){case m:return function(){return new B(this,b)};case A:return function(){return new B(this,b)}}return function(){return new B(this,b)}},Q=C+" Iterator",z=P==A,U=!1,V=S.prototype,X=V[f]||V[v]||P&&V[P],K=X||N(P),he=P?z?N("entries"):K:void 0,se=C=="Array"&&V.entries||X,oe,x,y;if(se&&(y=l(se.call(new S)),y!==Object.prototype&&y.next&&(i(y,Q,!0),!u&&typeof y[f]!="function"&&p(y,f,w))),z&&X&&X.name!==A&&(U=!0,K=function(){return X.call(this)}),(!u||D)&&(h||U||!V[f])&&p(V,f,K),g[C]=K,g[Q]=w,P)if(oe={values:z?K:N(A),keys:I?K:N(m),entries:he},D)for(x in oe)x in V||c(V,x,oe[x]);else d(d.P+d.F*(h||U),C,oe);return oe}},"02f4":function(n,o,r){var u=r("4588"),d=r("be13");n.exports=function(c){return function(p,g){var e=String(d(p)),i=u(g),l=e.length,f,h;return i<0||i>=l?c?"":void 0:(f=e.charCodeAt(i),f<55296||f>56319||i+1===l||(h=e.charCodeAt(i+1))<56320||h>57343?c?e.charAt(i):f:c?e.slice(i,i+2):(f-55296<<10)+(h-56320)+65536)}}},"0390":function(n,o,r){var u=r("02f4")(!0);n.exports=function(d,c,p){return c+(p?u(d,c).length:1)}},"0bfb":function(n,o,r){var u=r("cb7c");n.exports=function(){var d=u(this),c="";return d.global&&(c+="g"),d.ignoreCase&&(c+="i"),d.multiline&&(c+="m"),d.unicode&&(c+="u"),d.sticky&&(c+="y"),c}},"0d58":function(n,o,r){var u=r("ce10"),d=r("e11e");n.exports=Object.keys||function(p){return u(p,d)}},1495:function(n,o,r){var u=r("86cc"),d=r("cb7c"),c=r("0d58");n.exports=r("9e1e")?Object.defineProperties:function(g,e){d(g);for(var i=c(e),l=i.length,f=0,h;l>f;)u.f(g,h=i[f++],e[h]);return g}},"214f":function(n,o,r){r("b0c5");var u=r("2aba"),d=r("32e9"),c=r("79e5"),p=r("be13"),g=r("2b4c"),e=r("520a"),i=g("species"),l=!c(function(){var h=/./;return h.exec=function(){var v=[];return v.groups={a:"7"},v},"".replace(h,"$<a>")!=="7"}),f=function(){var h=/(?:)/,v=h.exec;h.exec=function(){return v.apply(this,arguments)};var m="ab".split(h);return m.length===2&&m[0]==="a"&&m[1]==="b"}();n.exports=function(h,v,m){var A=g(h),w=!c(function(){var I={};return I[A]=function(){return 7},""[h](I)!=7}),S=w?!c(function(){var I=!1,D=/a/;return D.exec=function(){return I=!0,null},h==="split"&&(D.constructor={},D.constructor[i]=function(){return D}),D[A](""),!I}):void 0;if(!w||!S||h==="replace"&&!l||h==="split"&&!f){var C=/./[A],B=m(p,A,""[h],function(D,N,Q,z,U){return N.exec===e?w&&!U?{done:!0,value:C.call(N,Q,z)}:{done:!0,value:D.call(Q,N,z)}:{done:!1}}),k=B[0],P=B[1];u(String.prototype,h,k),d(RegExp.prototype,A,v==2?function(I,D){return P.call(I,this,D)}:function(I){return P.call(I,this)})}}},"230e":function(n,o,r){var u=r("d3f4"),d=r("7726").document,c=u(d)&&u(d.createElement);n.exports=function(p){return c?d.createElement(p):{}}},"23c6":function(n,o,r){var u=r("2d95"),d=r("2b4c")("toStringTag"),c=u(function(){return arguments}())=="Arguments",p=function(g,e){try{return g[e]}catch(i){}};n.exports=function(g){var e,i,l;return g===void 0?"Undefined":g===null?"Null":typeof(i=p(e=Object(g),d))=="string"?i:c?u(e):(l=u(e))=="Object"&&typeof e.callee=="function"?"Arguments":l}},2621:function(n,o){o.f=Object.getOwnPropertySymbols},"2aba":function(n,o,r){var u=r("7726"),d=r("32e9"),c=r("69a8"),p=r("ca5a")("src"),g=r("fa5b"),e="toString",i=(""+g).split(e);r("8378").inspectSource=function(l){return g.call(l)},(n.exports=function(l,f,h,v){var m=typeof h=="function";m&&(c(h,"name")||d(h,"name",f)),l[f]!==h&&(m&&(c(h,p)||d(h,p,l[f]?""+l[f]:i.join(String(f)))),l===u?l[f]=h:v?l[f]?l[f]=h:d(l,f,h):(delete l[f],d(l,f,h)))})(Function.prototype,e,function(){return typeof this=="function"&&this[p]||g.call(this)})},"2aeb":function(n,o,r){var u=r("cb7c"),d=r("1495"),c=r("e11e"),p=r("613b")("IE_PROTO"),g=function(){},e="prototype",i=function(){var l=r("230e")("iframe"),f=c.length,h="<",v=">",m;for(l.style.display="none",r("fab2").appendChild(l),l.src="javascript:",m=l.contentWindow.document,m.open(),m.write(h+"script"+v+"document.F=Object"+h+"/script"+v),m.close(),i=m.F;f--;)delete i[e][c[f]];return i()};n.exports=Object.create||function(f,h){var v;return f!==null?(g[e]=u(f),v=new g,g[e]=null,v[p]=f):v=i(),h===void 0?v:d(v,h)}},"2b4c":function(n,o,r){var u=r("5537")("wks"),d=r("ca5a"),c=r("7726").Symbol,p=typeof c=="function",g=n.exports=function(e){return u[e]||(u[e]=p&&c[e]||(p?c:d)("Symbol."+e))};g.store=u},"2d00":function(n,o){n.exports=!1},"2d95":function(n,o){var r={}.toString;n.exports=function(u){return r.call(u).slice(8,-1)}},"2fdb":function(n,o,r){var u=r("5ca1"),d=r("d2c8"),c="includes";u(u.P+u.F*r("5147")(c),"String",{includes:function(g){return!!~d(this,g,c).indexOf(g,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(n,o,r){var u=r("86cc"),d=r("4630");n.exports=r("9e1e")?function(c,p,g){return u.f(c,p,d(1,g))}:function(c,p,g){return c[p]=g,c}},"38fd":function(n,o,r){var u=r("69a8"),d=r("4bf8"),c=r("613b")("IE_PROTO"),p=Object.prototype;n.exports=Object.getPrototypeOf||function(g){return g=d(g),u(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?p:null}},"41a0":function(n,o,r){var u=r("2aeb"),d=r("4630"),c=r("7f20"),p={};r("32e9")(p,r("2b4c")("iterator"),function(){return this}),n.exports=function(g,e,i){g.prototype=u(p,{next:d(1,i)}),c(g,e+" Iterator")}},"456d":function(n,o,r){var u=r("4bf8"),d=r("0d58");r("5eda")("keys",function(){return function(p){return d(u(p))}})},4588:function(n,o){var r=Math.ceil,u=Math.floor;n.exports=function(d){return isNaN(d=+d)?0:(d>0?u:r)(d)}},4630:function(n,o){n.exports=function(r,u){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:u}}},"4bf8":function(n,o,r){var u=r("be13");n.exports=function(d){return Object(u(d))}},5147:function(n,o,r){var u=r("2b4c")("match");n.exports=function(d){var c=/./;try{"/./"[d](c)}catch(p){try{return c[u]=!1,!"/./"[d](c)}catch(g){}}return!0}},"520a":function(n,o,r){var u=r("0bfb"),d=RegExp.prototype.exec,c=String.prototype.replace,p=d,g="lastIndex",e=function(){var f=/a/,h=/b*/g;return d.call(f,"a"),d.call(h,"a"),f[g]!==0||h[g]!==0}(),i=/()??/.exec("")[1]!==void 0,l=e||i;l&&(p=function(h){var v=this,m,A,w,S;return i&&(A=new RegExp("^"+v.source+"$(?!\\s)",u.call(v))),e&&(m=v[g]),w=d.call(v,h),e&&w&&(v[g]=v.global?w.index+w[0].length:m),i&&w&&w.length>1&&c.call(w[0],A,function(){for(S=1;S<arguments.length-2;S++)arguments[S]===void 0&&(w[S]=void 0)}),w}),n.exports=p},"52a7":function(n,o){o.f={}.propertyIsEnumerable},5537:function(n,o,r){var u=r("8378"),d=r("7726"),c="__core-js_shared__",p=d[c]||(d[c]={});(n.exports=function(g,e){return p[g]||(p[g]=e!==void 0?e:{})})("versions",[]).push({version:u.version,mode:r("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(n,o,r){var u=r("7726"),d=r("8378"),c=r("32e9"),p=r("2aba"),g=r("9b43"),e="prototype",i=function(l,f,h){var v=l&i.F,m=l&i.G,A=l&i.S,w=l&i.P,S=l&i.B,C=m?u:A?u[f]||(u[f]={}):(u[f]||{})[e],B=m?d:d[f]||(d[f]={}),k=B[e]||(B[e]={}),P,I,D,N;m&&(h=f);for(P in h)I=!v&&C&&C[P]!==void 0,D=(I?C:h)[P],N=S&&I?g(D,u):w&&typeof D=="function"?g(Function.call,D):D,C&&p(C,P,D,l&i.U),B[P]!=D&&c(B,P,N),w&&k[P]!=D&&(k[P]=D)};u.core=d,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,n.exports=i},"5eda":function(n,o,r){var u=r("5ca1"),d=r("8378"),c=r("79e5");n.exports=function(p,g){var e=(d.Object||{})[p]||Object[p],i={};i[p]=g(e),u(u.S+u.F*c(function(){e(1)}),"Object",i)}},"5f1b":function(n,o,r){var u=r("23c6"),d=RegExp.prototype.exec;n.exports=function(c,p){var g=c.exec;if(typeof g=="function"){var e=g.call(c,p);if(typeof e!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if(u(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return d.call(c,p)}},"613b":function(n,o,r){var u=r("5537")("keys"),d=r("ca5a");n.exports=function(c){return u[c]||(u[c]=d(c))}},"626a":function(n,o,r){var u=r("2d95");n.exports=Object("z").propertyIsEnumerable(0)?Object:function(d){return u(d)=="String"?d.split(""):Object(d)}},6762:function(n,o,r){var u=r("5ca1"),d=r("c366")(!0);u(u.P,"Array",{includes:function(p){return d(this,p,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},6821:function(n,o,r){var u=r("626a"),d=r("be13");n.exports=function(c){return u(d(c))}},"69a8":function(n,o){var r={}.hasOwnProperty;n.exports=function(u,d){return r.call(u,d)}},"6a99":function(n,o,r){var u=r("d3f4");n.exports=function(d,c){if(!u(d))return d;var p,g;if(c&&typeof(p=d.toString)=="function"&&!u(g=p.call(d))||typeof(p=d.valueOf)=="function"&&!u(g=p.call(d))||!c&&typeof(p=d.toString)=="function"&&!u(g=p.call(d)))return g;throw TypeError("Can't convert object to primitive value")}},7333:function(n,o,r){var u=r("0d58"),d=r("2621"),c=r("52a7"),p=r("4bf8"),g=r("626a"),e=Object.assign;n.exports=!e||r("79e5")(function(){var i={},l={},f=Symbol(),h="abcdefghijklmnopqrst";return i[f]=7,h.split("").forEach(function(v){l[v]=v}),e({},i)[f]!=7||Object.keys(e({},l)).join("")!=h})?function(l,f){for(var h=p(l),v=arguments.length,m=1,A=d.f,w=c.f;v>m;)for(var S=g(arguments[m++]),C=A?u(S).concat(A(S)):u(S),B=C.length,k=0,P;B>k;)w.call(S,P=C[k++])&&(h[P]=S[P]);return h}:e},7726:function(n,o){var r=n.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},"77f1":function(n,o,r){var u=r("4588"),d=Math.max,c=Math.min;n.exports=function(p,g){return p=u(p),p<0?d(p+g,0):c(p,g)}},"79e5":function(n,o){n.exports=function(r){try{return!!r()}catch(u){return!0}}},"7f20":function(n,o,r){var u=r("86cc").f,d=r("69a8"),c=r("2b4c")("toStringTag");n.exports=function(p,g,e){p&&!d(p=e?p:p.prototype,c)&&u(p,c,{configurable:!0,value:g})}},8378:function(n,o){var r=n.exports={version:"2.6.5"};typeof __e=="number"&&(__e=r)},"84f2":function(n,o){n.exports={}},"86cc":function(n,o,r){var u=r("cb7c"),d=r("c69a"),c=r("6a99"),p=Object.defineProperty;o.f=r("9e1e")?Object.defineProperty:function(e,i,l){if(u(e),i=c(i,!0),u(l),d)try{return p(e,i,l)}catch(f){}if("get"in l||"set"in l)throw TypeError("Accessors not supported!");return"value"in l&&(e[i]=l.value),e}},"9b43":function(n,o,r){var u=r("d8e8");n.exports=function(d,c,p){if(u(d),c===void 0)return d;switch(p){case 1:return function(g){return d.call(c,g)};case 2:return function(g,e){return d.call(c,g,e)};case 3:return function(g,e,i){return d.call(c,g,e,i)}}return function(){return d.apply(c,arguments)}}},"9c6c":function(n,o,r){var u=r("2b4c")("unscopables"),d=Array.prototype;d[u]==null&&r("32e9")(d,u,{}),n.exports=function(c){d[u][c]=!0}},"9def":function(n,o,r){var u=r("4588"),d=Math.min;n.exports=function(c){return c>0?d(u(c),9007199254740991):0}},"9e1e":function(n,o,r){n.exports=!r("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(n,o){n.exports=t},a481:function(n,o,r){var u=r("cb7c"),d=r("4bf8"),c=r("9def"),p=r("4588"),g=r("0390"),e=r("5f1b"),i=Math.max,l=Math.min,f=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,v=/\$([$&`']|\d\d?)/g,m=function(A){return A===void 0?A:String(A)};r("214f")("replace",2,function(A,w,S,C){return[function(P,I){var D=A(this),N=P==null?void 0:P[w];return N!==void 0?N.call(P,D,I):S.call(String(D),P,I)},function(k,P){var I=C(S,k,this,P);if(I.done)return I.value;var D=u(k),N=String(this),Q=typeof P=="function";Q||(P=String(P));var z=D.global;if(z){var U=D.unicode;D.lastIndex=0}for(var V=[];;){var X=e(D,N);if(X===null||(V.push(X),!z))break;var K=String(X[0]);K===""&&(D.lastIndex=g(N,c(D.lastIndex),U))}for(var he="",se=0,oe=0;oe<V.length;oe++){X=V[oe];for(var x=String(X[0]),y=i(l(p(X.index),N.length),0),b=[],O=1;O<X.length;O++)b.push(m(X[O]));var F=X.groups;if(Q){var H=[x].concat(b,y,N);F!==void 0&&H.push(F);var Y=String(P.apply(void 0,H))}else Y=B(x,N,y,b,F,P);y>=se&&(he+=N.slice(se,y)+Y,se=y+x.length)}return he+N.slice(se)}];function B(k,P,I,D,N,Q){var z=I+k.length,U=D.length,V=v;return N!==void 0&&(N=d(N),V=h),S.call(Q,V,function(X,K){var he;switch(K.charAt(0)){case"$":return"$";case"&":return k;case"`":return P.slice(0,I);case"'":return P.slice(z);case"<":he=N[K.slice(1,-1)];break;default:var se=+K;if(se===0)return X;if(se>U){var oe=f(se/10);return oe===0?X:oe<=U?D[oe-1]===void 0?K.charAt(1):D[oe-1]+K.charAt(1):X}he=D[se-1]}return he===void 0?"":he})}})},aae3:function(n,o,r){var u=r("d3f4"),d=r("2d95"),c=r("2b4c")("match");n.exports=function(p){var g;return u(p)&&((g=p[c])!==void 0?!!g:d(p)=="RegExp")}},ac6a:function(n,o,r){for(var u=r("cadf"),d=r("0d58"),c=r("2aba"),p=r("7726"),g=r("32e9"),e=r("84f2"),i=r("2b4c"),l=i("iterator"),f=i("toStringTag"),h=e.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=d(v),A=0;A<m.length;A++){var w=m[A],S=v[w],C=p[w],B=C&&C.prototype,k;if(B&&(B[l]||g(B,l,h),B[f]||g(B,f,w),e[w]=h,S))for(k in u)B[k]||c(B,k,u[k],!0)}},b0c5:function(n,o,r){var u=r("520a");r("5ca1")({target:"RegExp",proto:!0,forced:u!==/./.exec},{exec:u})},be13:function(n,o){n.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},c366:function(n,o,r){var u=r("6821"),d=r("9def"),c=r("77f1");n.exports=function(p){return function(g,e,i){var l=u(g),f=d(l.length),h=c(i,f),v;if(p&&e!=e){for(;f>h;)if(v=l[h++],v!=v)return!0}else for(;f>h;h++)if((p||h in l)&&l[h]===e)return p||h||0;return!p&&-1}}},c649:function(n,o,r){(function(u){r.d(o,"c",function(){return l}),r.d(o,"a",function(){return e}),r.d(o,"b",function(){return c}),r.d(o,"d",function(){return i}),r("a481");function d(){return typeof window<"u"?window.console:u.console}var c=d();function p(f){var h=Object.create(null);return function(m){var A=h[m];return A||(h[m]=f(m))}}var g=/-(\w)/g,e=p(function(f){return f.replace(g,function(h,v){return v?v.toUpperCase():""})});function i(f){f.parentElement!==null&&f.parentElement.removeChild(f)}function l(f,h,v){var m=v===0?f.children[0]:f.children[v-1].nextSibling;f.insertBefore(h,m)}}).call(this,r("c8ba"))},c69a:function(n,o,r){n.exports=!r("9e1e")&&!r("79e5")(function(){return Object.defineProperty(r("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(n,o){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(u){typeof window=="object"&&(r=window)}n.exports=r},ca5a:function(n,o){var r=0,u=Math.random();n.exports=function(d){return"Symbol(".concat(d===void 0?"":d,")_",(++r+u).toString(36))}},cadf:function(n,o,r){var u=r("9c6c"),d=r("d53b"),c=r("84f2"),p=r("6821");n.exports=r("01f9")(Array,"Array",function(g,e){this._t=p(g),this._i=0,this._k=e},function(){var g=this._t,e=this._k,i=this._i++;return!g||i>=g.length?(this._t=void 0,d(1)):e=="keys"?d(0,i):e=="values"?d(0,g[i]):d(0,[i,g[i]])},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},cb7c:function(n,o,r){var u=r("d3f4");n.exports=function(d){if(!u(d))throw TypeError(d+" is not an object!");return d}},ce10:function(n,o,r){var u=r("69a8"),d=r("6821"),c=r("c366")(!1),p=r("613b")("IE_PROTO");n.exports=function(g,e){var i=d(g),l=0,f=[],h;for(h in i)h!=p&&u(i,h)&&f.push(h);for(;e.length>l;)u(i,h=e[l++])&&(~c(f,h)||f.push(h));return f}},d2c8:function(n,o,r){var u=r("aae3"),d=r("be13");n.exports=function(c,p,g){if(u(p))throw TypeError("String#"+g+" doesn't accept regex!");return String(d(c))}},d3f4:function(n,o){n.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},d53b:function(n,o){n.exports=function(r,u){return{value:u,done:!!r}}},d8e8:function(n,o){n.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},e11e:function(n,o){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(n,o,r){var u=r("5ca1"),d=r("9def"),c=r("d2c8"),p="startsWith",g=""[p];u(u.P+u.F*r("5147")(p),"String",{startsWith:function(i){var l=c(this,i,p),f=d(Math.min(arguments.length>1?arguments[1]:void 0,l.length)),h=String(i);return g?g.call(l,h,f):l.slice(f,f+h.length)===h}})},f6fd:function(n,o){(function(r){var u="currentScript",d=r.getElementsByTagName("script");u in r||Object.defineProperty(r,u,{get:function(){try{throw new Error}catch(g){var c,p=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(g.stack)||[!1])[1];for(c in d)if(d[c].src==p||d[c].readyState=="interactive")return d[c];return null}}})})(document)},f751:function(n,o,r){var u=r("5ca1");u(u.S+u.F,"Object",{assign:r("7333")})},fa5b:function(n,o,r){n.exports=r("5537")("native-function-to-string",Function.toString)},fab2:function(n,o,r){var u=r("7726").document;n.exports=u&&u.documentElement},fb15:function(n,o,r){if(r.r(o),typeof window<"u"){r("f6fd");var u;(u=window.document.currentScript)&&(u=u.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=u[1])}r("f751"),r("f559"),r("ac6a"),r("cadf"),r("456d");function d(x){if(Array.isArray(x))return x}function c(x,y){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(x)))){var b=[],O=!0,F=!1,H=void 0;try{for(var Y=x[Symbol.iterator](),te;!(O=(te=Y.next()).done)&&(b.push(te.value),!(y&&b.length===y));O=!0);}catch(Oe){F=!0,H=Oe}finally{try{!O&&Y.return!=null&&Y.return()}finally{if(F)throw H}}return b}}function p(x,y){(y==null||y>x.length)&&(y=x.length);for(var b=0,O=new Array(y);b<y;b++)O[b]=x[b];return O}function g(x,y){if(x){if(typeof x=="string")return p(x,y);var b=Object.prototype.toString.call(x).slice(8,-1);if(b==="Object"&&x.constructor&&(b=x.constructor.name),b==="Map"||b==="Set")return Array.from(x);if(b==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return p(x,y)}}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(x,y){return d(x)||c(x,y)||g(x,y)||e()}r("6762"),r("2fdb");function l(x){if(Array.isArray(x))return p(x)}function f(x){if(typeof Symbol<"u"&&Symbol.iterator in Object(x))return Array.from(x)}function h(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(x){return l(x)||f(x)||g(x)||h()}var m=r("a352"),A=r.n(m),w=r("c649");function S(x,y,b){return b===void 0||(x=x||{},x[y]=b),x}function C(x,y){return x.map(function(b){return b.elm}).indexOf(y)}function B(x,y,b,O){if(!x)return[];var F=x.map(function(te){return te.elm}),H=y.length-O,Y=v(y).map(function(te,Oe){return Oe>=H?F.length:F.indexOf(te)});return b?Y.filter(function(te){return te!==-1}):Y}function k(x,y){var b=this;this.$nextTick(function(){return b.$emit(x.toLowerCase(),y)})}function P(x){var y=this;return function(b){y.realList!==null&&y["onDrag"+x](b),k.call(y,x,b)}}function I(x){return["transition-group","TransitionGroup"].includes(x)}function D(x){if(!x||x.length!==1)return!1;var y=i(x,1),b=y[0].componentOptions;return b?I(b.tag):!1}function N(x,y,b){return x[b]||(y[b]?y[b]():void 0)}function Q(x,y,b){var O=0,F=0,H=N(y,b,"header");H&&(O=H.length,x=x?[].concat(v(H),v(x)):v(H));var Y=N(y,b,"footer");return Y&&(F=Y.length,x=x?[].concat(v(x),v(Y)):v(Y)),{children:x,headerOffset:O,footerOffset:F}}function z(x,y){var b=null,O=function(yt,jn){b=S(b,yt,jn)},F=Object.keys(x).filter(function(Oe){return Oe==="id"||Oe.startsWith("data-")}).reduce(function(Oe,yt){return Oe[yt]=x[yt],Oe},{});if(O("attrs",F),!y)return b;var H=y.on,Y=y.props,te=y.attrs;return O("on",H),O("props",Y),Object.assign(b.attrs,te),b}var U=["Start","Add","Remove","Update","End"],V=["Choose","Unchoose","Sort","Filter","Clone"],X=["Move"].concat(U,V).map(function(x){return"on"+x}),K=null,he={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(y){return y}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},se={name:"draggable",inheritAttrs:!1,props:he,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(y){var b=this.$slots.default;this.transitionMode=D(b);var O=Q(b,this.$slots,this.$scopedSlots),F=O.children,H=O.headerOffset,Y=O.footerOffset;this.headerOffset=H,this.footerOffset=Y;var te=z(this.$attrs,this.componentData);return y(this.getTag(),te,F)},created:function(){this.list!==null&&this.value!==null&&w.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&w.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&w.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var y=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var b={};U.forEach(function(H){b["on"+H]=P.call(y,H)}),V.forEach(function(H){b["on"+H]=k.bind(y,H)});var O=Object.keys(this.$attrs).reduce(function(H,Y){return H[Object(w.a)(Y)]=y.$attrs[Y],H},{}),F=Object.assign({},this.options,O,b,{onMove:function(Y,te){return y.onDragMove(Y,te)}});!("draggable"in F)&&(F.draggable=">*"),this._sortable=new A.a(this.rootContainer,F),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(y){this.updateOptions(y)},deep:!0},$attrs:{handler:function(y){this.updateOptions(y)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var y=this._vnode.fnOptions;return y&&y.functional},getTag:function(){return this.tag||this.element},updateOptions:function(y){for(var b in y){var O=Object(w.a)(b);X.indexOf(O)===-1&&this._sortable.option(O,y[b])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var y=this.$slots.default;return this.transitionMode?y[0].child.$slots.default:y},computeIndexes:function(){var y=this;this.$nextTick(function(){y.visibleIndexes=B(y.getChildrenNodes(),y.rootContainer.children,y.transitionMode,y.footerOffset)})},getUnderlyingVm:function(y){var b=C(this.getChildrenNodes()||[],y);if(b===-1)return null;var O=this.realList[b];return{index:b,element:O}},getUnderlyingPotencialDraggableComponent:function(y){var b=y.__vue__;return!b||!b.$options||!I(b.$options._componentTag)?!("realList"in b)&&b.$children.length===1&&"realList"in b.$children[0]?b.$children[0]:b:b.$parent},emitChanges:function(y){var b=this;this.$nextTick(function(){b.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var b=v(this.value);y(b),this.$emit("input",b)},spliceList:function(){var y=arguments,b=function(F){return F.splice.apply(F,v(y))};this.alterList(b)},updatePosition:function(y,b){var O=function(H){return H.splice(b,0,H.splice(y,1)[0])};this.alterList(O)},getRelatedContextFromMoveEvent:function(y){var b=y.to,O=y.related,F=this.getUnderlyingPotencialDraggableComponent(b);if(!F)return{component:F};var H=F.realList,Y={list:H,component:F};if(b!==O&&H&&F.getUnderlyingVm){var te=F.getUnderlyingVm(O);if(te)return Object.assign(te,Y)}return Y},getVmIndex:function(y){var b=this.visibleIndexes,O=b.length;return y>O-1?O:b[y]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(y){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var b=this.getChildrenNodes();b[y].data=null;var O=this.getComponent();O.children=[],O.kept=void 0}},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),K=y.item},onDragAdd:function(y){var b=y.item._underlying_vm_;if(b!==void 0){Object(w.d)(y.item);var O=this.getVmIndex(y.newIndex);this.spliceList(O,0,b),this.computeIndexes();var F={element:b,newIndex:O};this.emitChanges({added:F})}},onDragRemove:function(y){if(Object(w.c)(this.rootContainer,y.item,y.oldIndex),y.pullMode==="clone"){Object(w.d)(y.clone);return}var b=this.context.index;this.spliceList(b,1);var O={element:this.context.element,oldIndex:b};this.resetTransitionData(b),this.emitChanges({removed:O})},onDragUpdate:function(y){Object(w.d)(y.item),Object(w.c)(y.from,y.item,y.oldIndex);var b=this.context.index,O=this.getVmIndex(y.newIndex);this.updatePosition(b,O);var F={element:this.context.element,oldIndex:b,newIndex:O};this.emitChanges({moved:F})},updateProperty:function(y,b){y.hasOwnProperty(b)&&(y[b]+=this.headerOffset)},computeFutureIndex:function(y,b){if(!y.element)return 0;var O=v(b.to.children).filter(function(te){return te.style.display!=="none"}),F=O.indexOf(b.related),H=y.component.getVmIndex(F),Y=O.indexOf(K)!==-1;return Y||!b.willInsertAfter?H:H+1},onDragMove:function(y,b){var O=this.move;if(!O||!this.realList)return!0;var F=this.getRelatedContextFromMoveEvent(y),H=this.context,Y=this.computeFutureIndex(F,y);Object.assign(H,{futureIndex:Y});var te=Object.assign({},y,{relatedContext:F,draggedContext:H});return O(te,b)},onDragEnd:function(){this.computeIndexes(),K=null}}};typeof window<"u"&&"Vue"in window&&window.Vue.component("draggable",se);var oe=se;o.default=oe}}).default})})(io);const ko=tr(en),Vo="_unitSubject_1igih_1",Xo="_unitAnswers_1igih_10",Yo="_unitAnswer_1igih_10",Uo="_option_1igih_22",Wo="_value_1igih_25",Qo="_valueAudio_1igih_34",Ko="_active_1igih_37",zo="_answerContent_1igih_41",Zo="_answerChoice_1igih_45",Jo="_sortReset_1igih_54",qo="_tips_1igih_62",$o="_itemsContainer_1igih_75",ei="_items_1igih_75",ti="_imgs_1igih_81",ue={unitSubject:Vo,unitAnswers:Xo,unitAnswer:Yo,option:Uo,value:Wo,valueAudio:Qo,active:Ko,answerContent:zo,answerChoice:Zo,sortReset:Jo,tips:qo,itemsContainer:$o,items:ei,imgs:ti},Vi=Le({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:a,slots:t}){const n=Ft({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]}),o=()=>{const c=n.list||[],p=[];c.forEach((g,e)=>{p.push({answerId:g.answerId,answer:g.answer,answerExtra:e+1})}),a("update:value",p)},r=c=>{if(c.checked||s.readOnly)return;const p=[];n.options.forEach((g,e)=>{p.push({answerId:g.index,answer:g.leftValue,answerExtra:e+1})}),p.push({answerId:c.examinationQuestionAnswerId,answer:c.questionAnswer,answerExtra:n.list.length+1}),n.list.push({answerId:c.examinationQuestionAnswerId,answer:c.questionAnswer,answerExtra:n.list.length+1}),a("update:value",p),ht(()=>{d()})},u=vt(()=>{const c=s.data.answers||[],p=s.value||[];return c.forEach(g=>{const e=p.findIndex(i=>i.answerId===g.examinationQuestionAnswerId);g.checked=e!==-1}),c}),d=()=>{const c=s.data.answers||[],p=s.data.userAnswer||[];ht(()=>{if(p.length>0){const g=[];p.forEach((e,i)=>{const l=c.find(v=>e.answerId===v.examinationQuestionAnswerId),f=c.find(v=>e.answerExtra==v.questionExtra),h={itemIndex:i,index:e.answerId,leftValue:e.answer,rightValue:e.answerExtra,leftType:l&&l.questionAnswerTypeCode||"TXT",rightType:l&&l.questionExtraTypeCode||"TXT",rightIndex:f?f.examinationQuestionAnswerId:""};g.push(h)}),n.options=g}})};return nr(()=>n.options,()=>{const c=n.options||[],p=[];c.forEach((g,e)=>{p.push({answerId:g.index,answer:g.leftValue,answerExtra:e+1})}),a("update:value",p)}),sn(()=>{d()}),()=>_(Pe,null,[_("div",{class:ue.unitSubject},[t.title&&t.title(),_(Nt,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:Re.SORT,extra:{rightRate:s.data.rightRate,questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls}},null),_("div",{class:[ue.unitAnswers]},[u.value.map((c,p)=>_("div",{class:[ue.unitAnswer,c.checked&&ue.active],onClick:()=>r(c)},[_("div",{class:ue.answerContent},[_("span",{class:ue.option},[Tn[p+1],ae(".")]),c.questionAnswerTypeCode===ye.IMAGE&&_("div",{class:ue.value},[_(Ve,{src:c.questionAnswer},null)]),c.questionAnswerTypeCode===ye.TXT&&_("div",{class:ue.value},[c.questionAnswer])])])),_("div",{class:[ue.sortReset,"van-hairline--top"]},[_("span",{class:ue.tips},[ae("请长按拖拽答案进行排序")]),_(ln,{type:"primary",round:!0,disabled:s.readOnly,onClick:()=>{n.options=[],n.list=[],o(),d()}},{default:()=>[ae("重置")]})]),s.readOnly?n.options.map(c=>_("div",{class:ue.itemsContainer},[c.leftType===ye.TXT&&_(qt,{class:[ue.items],"data-id":c.itemIndex},{default:()=>[c.leftValue]}),c.leftType===ye.IMAGE&&_(Ve,{src:c.leftValue,"data-id":c.itemIndex,class:[ue.imgs,"van-hairline--surround"],fit:"cover"},null)])):_(ko,{modelValue:n.options,"onUpdate:modelValue":c=>n.options=c,itemKey:"itemIndex",componentData:{itemKey:"id",tag:"div",animation:200,group:"description"}},{item:c=>{const p=c.element;return _("div",{class:ue.itemsContainer},[p.leftType===ye.TXT&&_(qt,{class:[ue.items],"data-id":p.itemIndex},{default:()=>[p.leftValue]}),p.leftType===ye.IMAGE&&_(Ve,{src:p.leftValue,"data-id":p.itemIndex,class:[ue.imgs,"van-hairline--surround"],fit:"cover"},null)])}})])]),s.showAnalysis&&_(Ht,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),ni="_unitSubject_1w9f3_1",ri="_unitAnswers_1w9f3_10",oi="_answerItem_1w9f3_15",ii="_img_1w9f3_26",ai="_unitItem_1w9f3_29",si="_active_1w9f3_45",li="_canvasSection_1w9f3_49",ui="_resetBtnGroup_1w9f3_54",Ie={unitSubject:ni,unitAnswers:ri,answerItem:oi,img:ii,unitItem:ai,active:si,canvasSection:li,resetBtnGroup:ui},Xi=Le({name:"keep-look-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:a,slots:t}){const n=rr(),o=Ft({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),r=(l,f)=>{if(s.readOnly)return;o.options.forEach(v=>{!v.leftLocked&&f.index!==v.index&&(v.left=!1)});const h=d(f.index,"left");if(h.status)o.options.forEach(v=>{v.rightLocked||(v.right=!1)}),o.selectItem=[],o.drawLineList.splice(h.selectIndex,1),p(n.value),o.options.forEach(v=>{h.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),h.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(f.left=!f.left,f.left?o.selectItem[0]={index:f.index}:o.selectItem[0]=null,o.selectItem[0]&&o.selectItem[1]){const v=c();o.drawLineList.push(v),o.selectItem=[],p(n.value)}e()},u=(l,f)=>{if(s.readOnly)return;o.options.forEach(v=>{!v.rightLocked&&f.index!==v.index&&(v.right=!1)});const h=d(f.index,"right");if(h.status)o.options.forEach(v=>{v.leftLocked||(v.left=!1)}),o.selectItem=[],o.drawLineList.splice(h.selectIndex,1),p(n.value),o.options.forEach(v=>{h.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),h.selectOption.rightIndex===v.index&&(v.right=!1,v.rightLocked=!1)});else if(f.right=!f.right,f.right?o.selectItem[1]={index:f.index}:o.selectItem[1]=null,o.selectItem[0]&&o.selectItem[1]){const v=c();o.drawLineList.push(v),o.selectItem=[],p(n.value)}e()},d=(l,f="left")=>{const h=o.drawLineList||[];let v=!1,m=0,A={};return h.forEach((w,S)=>{(w.leftIndex===l&&f==="left"||w.rightIndex===l&&f==="right")&&(A=w,v=!0,m=S)}),{status:v,selectIndex:m,selectOption:A}},c=()=>{const l=Ke(n.value),f=o.selectItem[0],h=Ke(document.getElementById(f.index+"-left"));h.index=f.index;const v=o.selectItem[1],m=Ke(document.getElementById(v.index+"-right"));m.index=v.index,console.log(o.selectItem,h,m);const A={x:h.width,y:h.top+h.height/2-l.top},w={x:m.left-l.left,y:m.top+m.height/2-l.top};return o.options.forEach(S=>{S.index===h.index&&(S.leftLocked=!0),S.index===m.index&&(S.rightLocked=!0)}),{startPoint:A,endPoint:w,leftIndex:h.index,rightIndex:m.index}},p=l=>{if(l.getContext){const f=l.getContext("2d");f.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach(h=>{g(f,h.startPoint,h.endPoint)})}},g=(l,f,h)=>{l.beginPath(),l.moveTo(Math.floor(f.x-1)*o.dpr,Math.ceil(f.y)*o.dpr),l.lineTo(Math.ceil(h.x+1)*o.dpr,Math.ceil(h.y)*o.dpr),l.lineWidth=2*o.dpr,l.strokeStyle="#1CACF1",l.stroke()},e=()=>{const l=o.options||[],f=o.drawLineList||[],h=[];f.forEach(v=>{const m=l.find(w=>w.index===v.leftIndex),A=l.find(w=>w.index===v.rightIndex);h.push({answerId:m.index,answer:m.leftValue,answerExtra:A.rightValue})}),a("update:value",h)},i=()=>{const l=s.data.answers||[],f=s.data.userAnswer||[];l.forEach(h=>{const v={index:h.examinationQuestionAnswerId,leftValue:h.questionAnswer,rightValue:h.questionExtra,leftType:h.questionAnswerTypeCode||"TXT",rightType:h.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(v)}),f.forEach(h=>{const v={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach(m=>{m.index===h.answerId&&(m.left=!0,m.leftLocked=!0,v.leftIndex=m.index),m.rightValue===h.answerExtra&&(m.right=!0,m.leftLocked=!0,v.rightIndex=m.index)}),o.drawLineList.push(v)}),ht(()=>{o.drawLineList.forEach(h=>{o.selectItem=[];const v=Ke(document.getElementById(h.leftIndex+"-left"));v.index=h.leftIndex,o.selectItem[0]=v;const m=Ke(document.getElementById(h.rightIndex+"-right"));m.index=h.rightIndex,o.selectItem[1]=m;const A=c();h.endPoint=A.endPoint,h.startPoint=A.startPoint,o.selectItem=[]}),setTimeout(()=>{p(n.value)},100)})};return sn(()=>{i(),ht(()=>{const l=document.getElementById(o.answerDomId),f=Ke(l);o.answerRect=f;const h=window.devicePixelRatio;o.dpr=h})}),()=>_(Pe,null,[_("div",{class:Ie.unitSubject},[t.title&&t.title(),_(Nt,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:Re.LINK,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),_("div",{class:[Ie.unitAnswers],id:o.answerDomId},[_("canvas",{ref:n,class:Ie.canvasSection,width:o.answerRect.width*o.dpr||0,height:o.answerRect.height*o.dpr||0,style:{width:(o.answerRect.width||0)+"px",height:(o.answerRect.height||0)+"px"}},null),o.options.map(l=>_("div",{class:Ie.answerItem},[_("div",{class:[Ie.unitItem,l.left&&Ie.active],id:l.index+"-left",onClick:f=>r(f,l)},[l.leftType===ye.TXT&&l.leftValue,l.leftType===ye.IMAGE&&_(Ve,{src:l.leftValue,class:Ie.img},null)]),_("div",{class:[Ie.unitItem,l.right&&Ie.active],id:l.index+"-right",onClick:f=>u(f,l)},[l.rightType===ye.TXT&&l.rightValue,l.rightType===ye.IMAGE&&_(Ve,{src:l.rightValue,class:Ie.img},null)])]))]),_("div",{class:Ie.resetBtnGroup},[_(ln,{round:!0,type:"primary",disabled:s.readOnly,onClick:()=>{o.drawLineList=[],p(n.value),o.options.forEach(l=>{l.left=!1,l.right=!1,l.leftLocked=!1,l.rightLocked=!1}),o.selectItem=[],e()}},{default:()=>[ae("重置")]})])]),s.showAnalysis&&_(Ht,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),ci="_unitSubject_1j7w8_1",fi="_unitAnswers_1j7w8_10",di="_playSection_1j7w8_14",pi="_img_1j7w8_19",hi="_playTitle_1j7w8_24",vi="_playBtn_1j7w8_29",gi="_unitScoreNum_1j7w8_37",mi="_score_1j7w8_42",yi="_scoreTitle_1j7w8_47",Ai="_scoreTips_1j7w8_53",Ce={unitSubject:ci,unitAnswers:fi,playSection:di,img:pi,playTitle:hi,playBtn:vi,unitScoreNum:gi,score:mi,scoreTitle:yi,scoreTips:Ai},_i=""+new URL("icon-song-c2cb716c.png",import.meta.url).href,Yi=Le({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},unitId:{type:String,default:""},readOnly:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0,score:0})}},emits:["update:value"],setup(s,{emit:a,slots:t}){console.log(s,"props");const n=Ft({list:[],score:0}),o=vt(()=>s.data.questionExtendsInfo?JSON.parse(s.data.questionExtendsInfo):""),r=()=>{const u=o.value;u&&(console.log(s.unitId),or({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${u.musicSheetId}&modelType=evaluation&unitId=${s.unitId}&questionId=${s.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),ir("webViewOnResume",()=>{var d,c;if(ar().android){const p=window.ORCHESTRA||((c=(d=window.webkit)==null?void 0:d.messageHandlers)==null?void 0:c.ORCHESTRA);console.log(p,"-------------");const g=p.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",g);const e=g?JSON.parse(g):{};if(e.questionId===s.data.id){const i=e.score||0;n.score<i&&(n.score=e.score||0),Gt({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}a("update:value",[{answerId:"",answer:n.score,answerExtra:""}]),pn("webViewOnResume",()=>{})}else Gt({api:"getCache",content:{key:"h5-orchestra-unit"}}).then(p=>{const g=p.content;if(g.value){console.log("🚀 ~ listenerMessage ~ content.value",g.value,"---------------");const e=g.value?JSON.parse(g.value):{};if(console.log("🚀 ~ listenerMessage ~ result",e,s.data.questionId),e.questionId===s.data.id){const i=e.score||0;n.score<i&&(n.score=e.score||0)}a("update:value",[{answerId:"",answer:n.score,answerExtra:""}]),Gt({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}pn("webViewOnResume",()=>{})})}))};return sn(()=>{const u=s.value||[];u.length>0&&(n.score=u[0].answer)}),()=>_(Pe,null,[_("div",{class:Ce.unitSubject},[t.title&&t.title(),_(Nt,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:Re.PLAY,extra:{questionDetail:s.data.questionDetail,mediaUrls:"",rightRate:s.data.rightRate}},null),_("div",{class:[Ce.unitAnswers]},[o.value&&_(ur,{class:Ce.playSection,center:!0,titleClass:["van-ellipsis",Ce.playTitle]},{icon:()=>_(Ve,{class:Ce.img,src:_i},null),title:()=>_(Pe,null,[o.value.musicName]),value:()=>_(ln,{round:!0,class:Ce.playBtn,type:"primary",onClick:r,disabled:s.readOnly},{default:()=>[ae("点击评测"),_(ke,{name:"play"},null)]})}),(!s.readOnly||s.showScore)&&_("div",{class:["van-hairline--top",Ce.unitScoreNum]},[_("div",{class:Ce.score},[n.score]),_("div",{class:Ce.scoreTitle},[ae("评测分数")]),!s.showScore&&_("div",{class:Ce.scoreTips},[ae("多次评测取完整评测的最高分数")])])])]),s.showAnalysis&&_(Ht,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])}}),wi="_finishResult_rigls_1",bi="_finishContainer_rigls_5",xi="_finishTitle_rigls_12",Si="_scoreResult_rigls_37",Ti="_finishFail_rigls_46",Ii="_finishPass_rigls_50",Ei="_finishGood_rigls_54",Oi="_finishCountdown_rigls_58",Ci="_finishClose_rigls_62",Di="_finishBtnGroup_rigls_72",Pi="_finishLeft_rigls_82",Li="_finishRight_rigls_83",pe={finishResult:wi,finishContainer:bi,finishTitle:xi,scoreResult:Si,finishFail:Ti,finishPass:Ii,finishGood:Ei,finishCountdown:Oi,finishClose:Ci,finishBtnGroup:Di,finishLeft:Pi,finishRight:Li},Ui=Le({name:"result-mode",props:{showConfirmButton:{type:Boolean,default:!0},confirmButtonText:{type:String,default:"确认"},showCancelButton:{type:Boolean,default:!1},cancelButtonText:{type:String,default:"取消"},status:{type:String,default:"DEFAULT"},title:{type:String,default:"确认退出吗?"},contentHtml:{type:Boolean,default:!1},content:{type:String,default:""},textAlign:{type:String,default:"flex-start"},closeable:{type:Boolean,default:!0}},emits:["close","conform"],setup(s,{slots:a,emit:t}){return()=>_("div",{class:[pe.finishResult,s.status==="FAIL"&&pe.finishFail,s.status==="PASS"&&pe.finishPass,s.status==="GOOD"&&pe.finishGood,s.status==="COUNTDOWN"&&pe.finishCountdown]},[_("div",{class:pe.finishContainer},[s.closeable&&_("i",{class:pe.finishClose,onClick:()=>t("close",!0)},null),_("div",{class:pe.finishContent},[_("div",{class:pe.finishTitle},[_("span",null,[s.title])]),a.content?a.content():_(Pe,null,[s.contentHtml?_("div",{class:pe.scoreResult,style:{justifyContent:s.textAlign},innerHTML:s.content},null):_("div",{class:pe.scoreResult},[s.content])])]),_("div",{class:pe.finishBtnGroup},[s.showCancelButton&&_("div",{class:pe.finishLeft,onClick:()=>t("close")},[s.cancelButtonText]),s.showConfirmButton&&_("div",{class:pe.finishRight,onClick:()=>t("conform")},[s.confirmButtonText])])])])}});export{Hi as A,Gi as C,Vi as D,Xi as K,Yi as P,Re as Q,Ui as R,ki as a,Gr as b,hn as e,ji as i};
|