index.5bff9a8c.js 201 KB

123456789101112131415161718192021222324252627282930313233
  1. import{bN as ya,bO as ba,y as un,bP as Aa,bQ as Sa,bR as Ea,bb as xa,bS as wa,bT as Ta,bU as Ia,ba as Oa,bV as Da,bc as Ca,bW as Pa,r as Kn,bX as Ra,R as Go,bY as Na,bZ as Ma,bH as Fa,b_ as La,b$ as Ba,c0 as ja,bJ as Ga,c1 as Ua,b8 as Ha,c2 as Xa,c3 as Ka,by as Va,c4 as $a,bw as Ya,bz as Wa,c5 as _a,c6 as za,c7 as Qa,F as mt,c8 as Ja,c9 as Za,ca as ka,aw as qa,cb as ei,cc as ti,cd as ni,ce as ri,cf as oi,cg as ai,bx as ii,bu as si,bv as li,ch as ui,ci,cj as fi,ck as di,cl as pi,q as Re,c as O,cm as hi,d as It,cn as vi,co as gi,cp as mi,cq as yi,a9 as bi,cr as Ai,cs as Si,ct as Ei,cu as xi,cv as wi,aJ as Ti,cw as Ii,cx as Oi,al as Uo,cy as Di,E as Ci,_ as Hn,aO as Pi,cz as Ri,ab as Ni,aK as Mi,aZ as Fi,cA as Li,$ as Xn,cB as Bi,cC as ji,cD as Gi,b3 as Ho,az as Ui,bt as Hi,cE as Xi,X as Ki,cF as Vi,cG as $i,cH as Yi,cI as Wi,cJ as _i,a as zi,ad as Qi,cK as Ji,cL as Zi,cM as ki,cN as qi,cO as es,cP as ts,cQ as ns,cR as rs,cS as os,cT as as,cU as is,cV as ss,cW as ls,cX as us,cY as cs,cZ as fs,Z as Xo,aV as ds,c_ as ps,c$ as hs,d0 as vs,d1 as gs,d2 as ms,ac as ys,d3 as bs,d4 as As,b5 as Ss,bF as Es,d5 as xs,h as ws,d6 as Ts,d7 as Is,d8 as Os,d9 as Ds,da as Cs,db as Ps,dc as Rs,dd as Ns,de as Ms,df as Fs,dg as Ls,dh as Bs,di as js,ay as Gs,dj as Us,dk as Hs,dl as Xs,ao as nn,a5 as _t,dm as Ko,dn as Ks,B as so,an as Jt,e as Vs,bG as $s,f as Ys,p as Rr,bI as go}from"./index.3b0304e1.js";import{I as Gt}from"./index.710cd200.js";import{G as Ws,a as _s}from"./index.53bfa96a.js";import{T as Zr}from"./index.1e205a49.js";import{C as zs}from"./index.ff3f298b.js";const Qs=()=>{};var Js=Object.freeze(Object.defineProperty({__proto__:null,compile:Qs,EffectScope:ya,ReactiveEffect:ba,computed:un,customRef:Aa,effect:Sa,effectScope:Ea,getCurrentScope:xa,isProxy:wa,isReactive:Ta,isReadonly:Ia,isRef:Oa,markRaw:Da,onScopeDispose:Ca,proxyRefs:Pa,reactive:Kn,readonly:Ra,ref:Go,shallowReactive:Na,shallowReadonly:Ma,shallowRef:Fa,stop:La,toRaw:Ba,toRef:ja,toRefs:Ga,triggerRef:Ua,unref:Ha,camelize:Xa,capitalize:Ka,normalizeClass:Va,normalizeProps:$a,normalizeStyle:Ya,toDisplayString:Wa,toHandlerKey:_a,BaseTransition:za,Comment:Qa,Fragment:mt,KeepAlive:Ja,Static:Za,Suspense:ka,Teleport:qa,Text:ei,callWithAsyncErrorHandling:ti,callWithErrorHandling:ni,cloneVNode:ri,compatUtils:oi,createBlock:ai,createCommentVNode:ii,createElementBlock:si,createElementVNode:li,createHydrationRenderer:ui,createPropsRestProxy:ci,createRenderer:fi,createSlots:di,createStaticVNode:pi,createTextVNode:Re,createVNode:O,defineAsyncComponent:hi,defineComponent:It,defineEmits:vi,defineExpose:gi,defineProps:mi,get devtools(){return yi},getCurrentInstance:bi,getTransitionRawChildren:Ai,guardReactiveProps:Si,h:Ei,handleError:xi,initCustomFormatter:wi,inject:Ti,isMemoSame:Ii,isRuntimeOnly:Oi,isVNode:Uo,mergeDefaults:Di,mergeProps:Ci,nextTick:Hn,onActivated:Pi,onBeforeMount:Ri,onBeforeUnmount:Ni,onBeforeUpdate:Mi,onDeactivated:Fi,onErrorCaptured:Li,onMounted:Xn,onRenderTracked:Bi,onRenderTriggered:ji,onServerPrefetch:Gi,onUnmounted:Ho,onUpdated:Ui,openBlock:Hi,popScopeId:Xi,provide:Ki,pushScopeId:Vi,queuePostFlushCb:$i,registerRuntimeCompiler:Yi,renderList:Wi,renderSlot:_i,resolveComponent:zi,resolveDirective:Qi,resolveDynamicComponent:Ji,resolveFilter:Zi,resolveTransitionHooks:ki,setBlockTracking:qi,setDevtoolsHook:es,setTransitionHooks:ts,ssrContextKey:ns,ssrUtils:rs,toHandlers:os,transformVNodeArgs:as,useAttrs:is,useSSRContext:ss,useSlots:ls,useTransitionState:us,version:cs,warn:fs,watch:Xo,watchEffect:ds,watchPostEffect:ps,watchSyncEffect:hs,withAsyncContext:vs,withCtx:gs,withDefaults:ms,withDirectives:ys,withMemo:bs,withScopeId:As,Transition:Ss,TransitionGroup:Es,VueElement:xs,createApp:ws,createSSRApp:Ts,defineCustomElement:Is,defineSSRCustomElement:Os,hydrate:Ds,initDirectivesForSSR:Cs,render:Ps,useCssModule:Rs,useCssVars:Ns,vModelCheckbox:Ms,vModelDynamic:Fs,vModelRadio:Ls,vModelSelect:Bs,vModelText:js,vShow:Gs,withKeys:Us,withModifiers:Hs},Symbol.toStringTag,{value:"Module"})),Lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAABohJREFUeF7tnd1vVEUUwH+nC/qgIBp8IFGjIjZFeOFBo6AofwGE0C1GIGoEv5DEmECi0CnVBBJjguAHGEgAI10Ikb8ABUUjDzwA0lQ+oyY8QARFExW2x9x7t3W73e7euztTtnvnvjQhc8+c+e0w95wzZ84IDfKoMS1kelvJayvS0oryMOhDwCSECSgTwr/Bo1xDuBb+hasgZxB+Qvv7yEgf+bY+Maa/EYYmN1MJXb/4EbR/Hso8YC5wpyV9rgCHEA4iLQdl3Z4fLclNLGbUAWt3dip5WQK6BHgwsca1vXAOZDcZ3S1rc2drE1HbW6MCWPcuynBKFiPyMsoTwKj0WwaJInyH6qdM1z3Svi9fG7b4bzkdqJpFtyCZZaCrUabGV2sUWgpnQTai+Z1i9v3rqkdngNVkl4K+B3KPK+XtyNVfQd4Wk9tlR95QKdYBq8nOAD4CnnKhsEOZh4HXxORO2uzDGmDdunw8F//oBn0TGG9TyVGUdR3kA6ZMXCsrtl230a8VwGo67gdyoI/aUOrmy5CjQFZMz4V6dakbsHZ1LADdjlqzYesdk533hSsgL0pnz5f1CKwLsJr2d0DW30Szq56xx3lXQdeJ2ftunMbl2tQEWA0tkN0EvF5rx2PsvS2QWyWGxO53YsAF23YXqtkxBqk+dUVyaH5pUps5EeBw5krHF6mDO/DThJB7nk0ykxMCzm5O0bIw0ozfIia3Mu5/h9iACx+07riCm7udro374YsFODTFVPc3sbWQdD4oIgvjmHBVAYdOhOixprNzkyItbR/YySqzqjkjFQEX3N9vm8dDq5fqMMpHmTJxTiW3ujJg07EhDDX6pwIB2SimZ81IDUYEXIiKHRvDgZvRmhZBUGjWSFG4SoAPjcGQ42hBLe3nsJhcsKc47CkLOAqWs/NmaTtG+11WLmg/DHDoCiPBdkqD70Q02s8Q7Izo1FJXejjgro6XUN3WaOqPCX1Elktnz2fFug4BHO7+9rb0NdwG5ZigG7phZ2nrby3erR4K2LQ/F+YP+KcOArpEzN7PB+NDxZLUZI9AmLdg95n+GNzXBuPG2ZVbq7QbN+DnXjj1Q60SRn5POCKduTnDAEcZN5y2Hm94ehHMXWh/IDYkHtoPX++zIWnIPCXDtIEMosElQk2HAe203RtvbYXb7rAu1orAv36H91dYETVUiHSJ6THBvxUBzgY5W/ZzxVZthkl3OxiEBZFXL8Gm2KHdJB2eE5MLM5lCwAW3+EQSCbHbzpgN81+FTCb2K6PSMJ+HAx/DyeCz4+SZGbjPEeCu7EqUD510Ewi9awrcOw0yDZKPkr8Ov5yG3y46GzLCG9KZ2zwwg4O9//nuekul5ANicgskzCyn97LF5OdU0iwz6CvQNlm0O9tGnlOeigMCGaaLmvb5IHWlBzlQrUlE6gLRro7VqG5okhE11jBE1oia7A7g+cbSrFm0kR0B4CDx+MlmGVKDjeObAPBxYGaDKdYs6pwIAJ8HggRqd0+aomlDKV4IAF8CJjujm75oWjHKy6Jd2b9RbnUGOJXRtAJN4R/3gNMZTYsIh4BdLxHpjaYFiMMl4hzKA86WiLRG06IZfN6baU5nFse9o+EW8GFR07Ed9AW3/aRVeuAq+2CPu18/Cvb4cKU7wkG40gfc3fGNAu5+y8gR4WjLKBCuJus3Pe1TjjY9Q8Cut+3TGE0r2bYPqpS4STxJazStpWVGUE7MfepUOqNpQ1OnonXYUfJfKqNp5ZL/XKWvpi+apmXTVwsfu29RZlv/oKYpN22kBOxomfBHCOqfXJWOEPhDMPXxrXYIJlom/DGumilXO8YVLRP+IGJtgGMeRCy4zv4obXLK8Y7SDshVk/WHweNDTnYYvDCLA/fZlzOoDrm2cgYF784X5KgKuMaCHCHgqKKqLykzImSpr6RMYRb7okjlANsoijT4wfNlvUoR2yvr9b9VEVZa9YXpQiCWC9MVmW6+tCK4Ka0Yrce+OKjT4qCDrrRkfHnbquZb1KBqacVycnyB5ph0awVc8uHzJcYr8K5pBhfL80XyK8/mugEPOiP+moeypK0ALnKr/UUlJZitAS6ylf1VO0WQrQMuAu0vi6rXiqhmrPjrzmq0g6uBHRYZGbiwD3kFeNz1D1tBPwW+B/2kKS7sK+uk+Csnk87P2tuH5cSEZ5xemqp8ZfuOuCQjdvaRS6JEZEuXXvurrUB07S/hdb+3D7n2F/6EgWt/OYNIXyNe+/sfZeDDVd1yhKYAAAAASUVORK5CYII=";const mo=new Xs,Vo={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},Et={RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"},yn={RADIO:"\u5355\u9009\u9898",CHECKBOX:"\u591A\u9009\u9898",LINK:"\u8FDE\u7EBF\u9898",SORT:"\u6392\u5E8F\u9898",PLAY:"\u6F14\u594F\u9898"},ke={IMAGE:"IMAGE",TXT:"TXT",AUDIO:"AUDIO"},Zs="_unitSubjectTitle_1x5pg_1",ks="_unitScore_1x5pg_7",qs="_unitDetail_1x5pg_14",el="_unitTitleImg_1x5pg_23",tl="_unitTitleRate_1x5pg_26",nl="_icon_1x5pg_37",rl="_rate_1x5pg_41";var Rt={unitSubjectTitle:Zs,unitScore:ks,unitDetail:qs,unitTitleImg:el,unitTitleRate:tl,icon:nl,rate:rl},ol="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=";const al="_unitAudio_ml4u4_1",il="_nativeAudio_ml4u4_5",sl="_htmlAudio_ml4u4_9",ll="_htmlTimes_ml4u4_22",ul="_iconAudio_ml4u4_31",cl="_audioStatus_ml4u4_35";var bn={unitAudio:al,nativeAudio:il,htmlAudio:sl,htmlTimes:ll,iconAudio:ul,audioStatus:cl},$o={};/*!
  2. * howler.js v2.2.3
  3. * howlerjs.com
  4. *
  5. * (c) 2013-2020, James Simpson of GoldFire Studios
  6. * goldfirestudios.com
  7. *
  8. * MIT License
  9. */(function(i){(function(){var r=function(){this.init()};r.prototype={init:function(){var t=this||e;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator=typeof window!="undefined"&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var s=this||e;if(t=parseFloat(t),s.ctx||h(),typeof t!="undefined"&&t>=0&&t<=1){if(s._volume=t,s._muted)return s;s.usingWebAudio&&s.masterGain.gain.setValueAtTime(t,e.ctx.currentTime);for(var f=0;f<s._howls.length;f++)if(!s._howls[f]._webAudio)for(var p=s._howls[f]._getSoundIds(),v=0;v<p.length;v++){var g=s._howls[f]._soundById(p[v]);g&&g._node&&(g._node.volume=g._volume*t)}return s}return s._volume},mute:function(t){var s=this||e;s.ctx||h(),s._muted=t,s.usingWebAudio&&s.masterGain.gain.setValueAtTime(t?0:s._volume,e.ctx.currentTime);for(var f=0;f<s._howls.length;f++)if(!s._howls[f]._webAudio)for(var p=s._howls[f]._getSoundIds(),v=0;v<p.length;v++){var g=s._howls[f]._soundById(p[v]);g&&g._node&&(g._node.muted=t?!0:g._muted)}return s},stop:function(){for(var t=this||e,s=0;s<t._howls.length;s++)t._howls[s].stop();return t},unload:function(){for(var t=this||e,s=t._howls.length-1;s>=0;s--)t._howls[s].unload();return t.usingWebAudio&&t.ctx&&typeof t.ctx.close!="undefined"&&(t.ctx.close(),t.ctx=null,h()),t},codecs:function(t){return(this||e)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||e;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if(typeof Audio!="undefined")try{var s=new Audio;typeof s.oncanplaythrough=="undefined"&&(t._canPlayEvent="canplay")}catch{t.noAudio=!0}else t.noAudio=!0;try{var s=new Audio;s.muted&&(t.noAudio=!0)}catch{}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||e,s=null;try{s=typeof Audio!="undefined"?new Audio:null}catch{return t}if(!s||typeof s.canPlayType!="function")return t;var f=s.canPlayType("audio/mpeg;").replace(/^no$/,""),p=t._navigator?t._navigator.userAgent:"",v=p.match(/OPR\/([0-6].)/g),g=v&&parseInt(v[0].split("/")[1],10)<33,m=p.indexOf("Safari")!==-1&&p.indexOf("Chrome")===-1,y=p.match(/Version\/(.*?) /),b=m&&y&&parseInt(y[1],10)<15;return t._codecs={mp3:!!(!g&&(f||s.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!f,opus:!!s.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!s.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(s.canPlayType('audio/wav; codecs="1"')||s.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!s.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!s.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(s.canPlayType("audio/x-m4a;")||s.canPlayType("audio/m4a;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(s.canPlayType("audio/x-m4b;")||s.canPlayType("audio/m4b;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(s.canPlayType("audio/x-mp4;")||s.canPlayType("audio/mp4;")||s.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!b&&s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!b&&s.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!s.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(s.canPlayType("audio/x-flac;")||s.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||e;if(!(t._audioUnlocked||!t.ctx)){t._audioUnlocked=!1,t.autoUnlock=!1,!t._mobileUnloaded&&t.ctx.sampleRate!==44100&&(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var s=function(f){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var p=new Audio;p._unlocked=!0,t._releaseHtml5Audio(p)}catch{t.noAudio=!0;break}for(var v=0;v<t._howls.length;v++)if(!t._howls[v]._webAudio)for(var g=t._howls[v]._getSoundIds(),m=0;m<g.length;m++){var y=t._howls[v]._soundById(g[m]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}t._autoResume();var b=t.ctx.createBufferSource();b.buffer=t._scratchBuffer,b.connect(t.ctx.destination),typeof b.start=="undefined"?b.noteOn(0):b.start(0),typeof t.ctx.resume=="function"&&t.ctx.resume(),b.onended=function(){b.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",s,!0),document.removeEventListener("touchend",s,!0),document.removeEventListener("click",s,!0),document.removeEventListener("keydown",s,!0);for(var A=0;A<t._howls.length;A++)t._howls[A]._emit("unlock")}};return document.addEventListener("touchstart",s,!0),document.addEventListener("touchend",s,!0),document.addEventListener("click",s,!0),document.addEventListener("keydown",s,!0),t}},_obtainHtml5Audio:function(){var t=this||e;if(t._html5AudioPool.length)return t._html5AudioPool.pop();var s=new Audio().play();return s&&typeof Promise!="undefined"&&(s instanceof Promise||typeof s.then=="function")&&s.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(t){var s=this||e;return t._unlocked&&s._html5AudioPool.push(t),s},_autoSuspend:function(){var t=this;if(!(!t.autoSuspend||!t.ctx||typeof t.ctx.suspend=="undefined"||!e.usingWebAudio)){for(var s=0;s<t._howls.length;s++)if(t._howls[s]._webAudio){for(var f=0;f<t._howls[s]._sounds.length;f++)if(!t._howls[s]._sounds[f]._paused)return t}return t._suspendTimer&&clearTimeout(t._suspendTimer),t._suspendTimer=setTimeout(function(){if(!!t.autoSuspend){t._suspendTimer=null,t.state="suspending";var p=function(){t.state="suspended",t._resumeAfterSuspend&&(delete t._resumeAfterSuspend,t._autoResume())};t.ctx.suspend().then(p,p)}},3e4),t}},_autoResume:function(){var t=this;if(!(!t.ctx||typeof t.ctx.resume=="undefined"||!e.usingWebAudio))return t.state==="running"&&t.ctx.state!=="interrupted"&&t._suspendTimer?(clearTimeout(t._suspendTimer),t._suspendTimer=null):t.state==="suspended"||t.state==="running"&&t.ctx.state==="interrupted"?(t.ctx.resume().then(function(){t.state="running";for(var s=0;s<t._howls.length;s++)t._howls[s]._emit("resume")}),t._suspendTimer&&(clearTimeout(t._suspendTimer),t._suspendTimer=null)):t.state==="suspending"&&(t._resumeAfterSuspend=!0),t}};var e=new r,o=function(t){var s=this;if(!t.src||t.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}s.init(t)};o.prototype={init:function(t){var s=this;return e.ctx||h(),s._autoplay=t.autoplay||!1,s._format=typeof t.format!="string"?t.format:[t.format],s._html5=t.html5||!1,s._muted=t.mute||!1,s._loop=t.loop||!1,s._pool=t.pool||5,s._preload=typeof t.preload=="boolean"||t.preload==="metadata"?t.preload:!0,s._rate=t.rate||1,s._sprite=t.sprite||{},s._src=typeof t.src!="string"?t.src:[t.src],s._volume=t.volume!==void 0?t.volume:1,s._xhr={method:t.xhr&&t.xhr.method?t.xhr.method:"GET",headers:t.xhr&&t.xhr.headers?t.xhr.headers:null,withCredentials:t.xhr&&t.xhr.withCredentials?t.xhr.withCredentials:!1},s._duration=0,s._state="unloaded",s._sounds=[],s._endTimers={},s._queue=[],s._playLock=!1,s._onend=t.onend?[{fn:t.onend}]:[],s._onfade=t.onfade?[{fn:t.onfade}]:[],s._onload=t.onload?[{fn:t.onload}]:[],s._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],s._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],s._onpause=t.onpause?[{fn:t.onpause}]:[],s._onplay=t.onplay?[{fn:t.onplay}]:[],s._onstop=t.onstop?[{fn:t.onstop}]:[],s._onmute=t.onmute?[{fn:t.onmute}]:[],s._onvolume=t.onvolume?[{fn:t.onvolume}]:[],s._onrate=t.onrate?[{fn:t.onrate}]:[],s._onseek=t.onseek?[{fn:t.onseek}]:[],s._onunlock=t.onunlock?[{fn:t.onunlock}]:[],s._onresume=[],s._webAudio=e.usingWebAudio&&!s._html5,typeof e.ctx!="undefined"&&e.ctx&&e.autoUnlock&&e._unlockAudio(),e._howls.push(s),s._autoplay&&s._queue.push({event:"play",action:function(){s.play()}}),s._preload&&s._preload!=="none"&&s.load(),s},load:function(){var t=this,s=null;if(e.noAudio){t._emit("loaderror",null,"No audio support.");return}typeof t._src=="string"&&(t._src=[t._src]);for(var f=0;f<t._src.length;f++){var p,v;if(t._format&&t._format[f])p=t._format[f];else{if(v=t._src[f],typeof v!="string"){t._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}p=/^data:audio\/([^;,]+);/i.exec(v),p||(p=/\.([^.]+)$/.exec(v.split("?",1)[0])),p&&(p=p[1].toLowerCase())}if(p||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),p&&e.codecs(p)){s=t._src[f];break}}if(!s){t._emit("loaderror",null,"No codec support for selected audio sources.");return}return t._src=s,t._state="loading",window.location.protocol==="https:"&&s.slice(0,5)==="http:"&&(t._html5=!0,t._webAudio=!1),new a(t),t._webAudio&&n(t),t},play:function(t,s){var f=this,p=null;if(typeof t=="number")p=t,t=null;else{if(typeof t=="string"&&f._state==="loaded"&&!f._sprite[t])return null;if(typeof t=="undefined"&&(t="__default",!f._playLock)){for(var v=0,g=0;g<f._sounds.length;g++)f._sounds[g]._paused&&!f._sounds[g]._ended&&(v++,p=f._sounds[g]._id);v===1?t=null:p=null}}var m=p?f._soundById(p):f._inactiveSound();if(!m)return null;if(p&&!t&&(t=m._sprite||"__default"),f._state!=="loaded"){m._sprite=t,m._ended=!1;var y=m._id;return f._queue.push({event:"play",action:function(){f.play(y)}}),y}if(p&&!m._paused)return s||f._loadQueue("play"),m._id;f._webAudio&&e._autoResume();var b=Math.max(0,m._seek>0?m._seek:f._sprite[t][0]/1e3),A=Math.max(0,(f._sprite[t][0]+f._sprite[t][1])/1e3-b),I=A*1e3/Math.abs(m._rate),T=f._sprite[t][0]/1e3,B=(f._sprite[t][0]+f._sprite[t][1])/1e3;m._sprite=t,m._ended=!1;var j=function(){m._paused=!1,m._seek=b,m._start=T,m._stop=B,m._loop=!!(m._loop||f._sprite[t][2])};if(b>=B){f._ended(m);return}var x=m._node;if(f._webAudio){var M=function(){f._playLock=!1,j(),f._refreshBuffer(m);var P=m._muted||f._muted?0:m._volume;x.gain.setValueAtTime(P,e.ctx.currentTime),m._playStart=e.ctx.currentTime,typeof x.bufferSource.start=="undefined"?m._loop?x.bufferSource.noteGrainOn(0,b,86400):x.bufferSource.noteGrainOn(0,b,A):m._loop?x.bufferSource.start(0,b,86400):x.bufferSource.start(0,b,A),I!==1/0&&(f._endTimers[m._id]=setTimeout(f._ended.bind(f,m),I)),s||setTimeout(function(){f._emit("play",m._id),f._loadQueue()},0)};e.state==="running"&&e.ctx.state!=="interrupted"?M():(f._playLock=!0,f.once("resume",M),f._clearTimer(m._id))}else{var L=function(){x.currentTime=b,x.muted=m._muted||f._muted||e._muted||x.muted,x.volume=m._volume*e.volume(),x.playbackRate=m._rate;try{var P=x.play();if(P&&typeof Promise!="undefined"&&(P instanceof Promise||typeof P.then=="function")?(f._playLock=!0,j(),P.then(function(){f._playLock=!1,x._unlocked=!0,s?f._loadQueue():f._emit("play",m._id)}).catch(function(){f._playLock=!1,f._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})):s||(f._playLock=!1,j(),f._emit("play",m._id)),x.playbackRate=m._rate,x.paused){f._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}t!=="__default"||m._loop?f._endTimers[m._id]=setTimeout(f._ended.bind(f,m),I):(f._endTimers[m._id]=function(){f._ended(m),x.removeEventListener("ended",f._endTimers[m._id],!1)},x.addEventListener("ended",f._endTimers[m._id],!1))}catch(K){f._emit("playerror",m._id,K)}};x.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(x.src=f._src,x.load());var V=window&&window.ejecta||!x.readyState&&e._navigator.isCocoonJS;if(x.readyState>=3||V)L();else{f._playLock=!0,f._state="loading";var D=function(){f._state="loaded",L(),x.removeEventListener(e._canPlayEvent,D,!1)};x.addEventListener(e._canPlayEvent,D,!1),f._clearTimer(m._id)}}return m._id},pause:function(t){var s=this;if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"pause",action:function(){s.pause(t)}}),s;for(var f=s._getSoundIds(t),p=0;p<f.length;p++){s._clearTimer(f[p]);var v=s._soundById(f[p]);if(v&&!v._paused&&(v._seek=s.seek(f[p]),v._rateSeek=0,v._paused=!0,s._stopFade(f[p]),v._node))if(s._webAudio){if(!v._node.bufferSource)continue;typeof v._node.bufferSource.stop=="undefined"?v._node.bufferSource.noteOff(0):v._node.bufferSource.stop(0),s._cleanBuffer(v._node)}else(!isNaN(v._node.duration)||v._node.duration===1/0)&&v._node.pause();arguments[1]||s._emit("pause",v?v._id:null)}return s},stop:function(t,s){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"stop",action:function(){f.stop(t)}}),f;for(var p=f._getSoundIds(t),v=0;v<p.length;v++){f._clearTimer(p[v]);var g=f._soundById(p[v]);g&&(g._seek=g._start||0,g._rateSeek=0,g._paused=!0,g._ended=!0,f._stopFade(p[v]),g._node&&(f._webAudio?g._node.bufferSource&&(typeof g._node.bufferSource.stop=="undefined"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),f._cleanBuffer(g._node)):(!isNaN(g._node.duration)||g._node.duration===1/0)&&(g._node.currentTime=g._start||0,g._node.pause(),g._node.duration===1/0&&f._clearSound(g._node))),s||f._emit("stop",g._id))}return f},mute:function(t,s){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"mute",action:function(){f.mute(t,s)}}),f;if(typeof s=="undefined")if(typeof t=="boolean")f._muted=t;else return f._muted;for(var p=f._getSoundIds(s),v=0;v<p.length;v++){var g=f._soundById(p[v]);g&&(g._muted=t,g._interval&&f._stopFade(g._id),f._webAudio&&g._node?g._node.gain.setValueAtTime(t?0:g._volume,e.ctx.currentTime):g._node&&(g._node.muted=e._muted?!0:t),f._emit("mute",g._id))}return f},volume:function(){var t=this,s=arguments,f,p;if(s.length===0)return t._volume;if(s.length===1||s.length===2&&typeof s[1]=="undefined"){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):f=parseFloat(s[0])}else s.length>=2&&(f=parseFloat(s[0]),p=parseInt(s[1],10));var m;if(typeof f!="undefined"&&f>=0&&f<=1){if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"volume",action:function(){t.volume.apply(t,s)}}),t;typeof p=="undefined"&&(t._volume=f),p=t._getSoundIds(p);for(var y=0;y<p.length;y++)m=t._soundById(p[y]),m&&(m._volume=f,s[2]||t._stopFade(p[y]),t._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(f,e.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=f*e.volume()),t._emit("volume",m._id))}else return m=p?t._soundById(p):t._sounds[0],m?m._volume:0;return t},fade:function(t,s,f,p){var v=this;if(v._state!=="loaded"||v._playLock)return v._queue.push({event:"fade",action:function(){v.fade(t,s,f,p)}}),v;t=Math.min(Math.max(0,parseFloat(t)),1),s=Math.min(Math.max(0,parseFloat(s)),1),f=parseFloat(f),v.volume(t,p);for(var g=v._getSoundIds(p),m=0;m<g.length;m++){var y=v._soundById(g[m]);if(y){if(p||v._stopFade(g[m]),v._webAudio&&!y._muted){var b=e.ctx.currentTime,A=b+f/1e3;y._volume=t,y._node.gain.setValueAtTime(t,b),y._node.gain.linearRampToValueAtTime(s,A)}v._startFadeInterval(y,t,s,f,g[m],typeof p=="undefined")}}return v},_startFadeInterval:function(t,s,f,p,v,g){var m=this,y=s,b=f-s,A=Math.abs(b/.01),I=Math.max(4,A>0?p/A:p),T=Date.now();t._fadeTo=f,t._interval=setInterval(function(){var B=(Date.now()-T)/p;T=Date.now(),y+=b*B,y=Math.round(y*100)/100,b<0?y=Math.max(f,y):y=Math.min(f,y),m._webAudio?t._volume=y:m.volume(y,t._id,!0),g&&(m._volume=y),(f<s&&y<=f||f>s&&y>=f)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,m.volume(f,t._id),m._emit("fade",t._id))},I)},_stopFade:function(t){var s=this,f=s._soundById(t);return f&&f._interval&&(s._webAudio&&f._node.gain.cancelScheduledValues(e.ctx.currentTime),clearInterval(f._interval),f._interval=null,s.volume(f._fadeTo,t),f._fadeTo=null,s._emit("fade",t)),s},loop:function(){var t=this,s=arguments,f,p,v;if(s.length===0)return t._loop;if(s.length===1)if(typeof s[0]=="boolean")f=s[0],t._loop=f;else return v=t._soundById(parseInt(s[0],10)),v?v._loop:!1;else s.length===2&&(f=s[0],p=parseInt(s[1],10));for(var g=t._getSoundIds(p),m=0;m<g.length;m++)v=t._soundById(g[m]),v&&(v._loop=f,t._webAudio&&v._node&&v._node.bufferSource&&(v._node.bufferSource.loop=f,f&&(v._node.bufferSource.loopStart=v._start||0,v._node.bufferSource.loopEnd=v._stop,t.playing(g[m])&&(t.pause(g[m],!0),t.play(g[m],!0)))));return t},rate:function(){var t=this,s=arguments,f,p;if(s.length===0)p=t._sounds[0]._id;else if(s.length===1){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):f=parseFloat(s[0])}else s.length===2&&(f=parseFloat(s[0]),p=parseInt(s[1],10));var m;if(typeof f=="number"){if(t._state!=="loaded"||t._playLock)return t._queue.push({event:"rate",action:function(){t.rate.apply(t,s)}}),t;typeof p=="undefined"&&(t._rate=f),p=t._getSoundIds(p);for(var y=0;y<p.length;y++)if(m=t._soundById(p[y]),m){t.playing(p[y])&&(m._rateSeek=t.seek(p[y]),m._playStart=t._webAudio?e.ctx.currentTime:m._playStart),m._rate=f,t._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(f,e.ctx.currentTime):m._node&&(m._node.playbackRate=f);var b=t.seek(p[y]),A=(t._sprite[m._sprite][0]+t._sprite[m._sprite][1])/1e3-b,I=A*1e3/Math.abs(m._rate);(t._endTimers[p[y]]||!m._paused)&&(t._clearTimer(p[y]),t._endTimers[p[y]]=setTimeout(t._ended.bind(t,m),I)),t._emit("rate",m._id)}}else return m=t._soundById(p),m?m._rate:t._rate;return t},seek:function(){var t=this,s=arguments,f,p;if(s.length===0)t._sounds.length&&(p=t._sounds[0]._id);else if(s.length===1){var v=t._getSoundIds(),g=v.indexOf(s[0]);g>=0?p=parseInt(s[0],10):t._sounds.length&&(p=t._sounds[0]._id,f=parseFloat(s[0]))}else s.length===2&&(f=parseFloat(s[0]),p=parseInt(s[1],10));if(typeof p=="undefined")return 0;if(typeof f=="number"&&(t._state!=="loaded"||t._playLock))return t._queue.push({event:"seek",action:function(){t.seek.apply(t,s)}}),t;var m=t._soundById(p);if(m)if(typeof f=="number"&&f>=0){var y=t.playing(p);y&&t.pause(p,!0),m._seek=f,m._ended=!1,t._clearTimer(p),!t._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=f);var b=function(){y&&t.play(p,!0),t._emit("seek",p)};if(y&&!t._webAudio){var A=function(){t._playLock?setTimeout(A,0):b()};setTimeout(A,0)}else b()}else if(t._webAudio){var I=t.playing(p)?e.ctx.currentTime-m._playStart:0,T=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(T+I*Math.abs(m._rate))}else return m._node.currentTime;return t},playing:function(t){var s=this;if(typeof t=="number"){var f=s._soundById(t);return f?!f._paused:!1}for(var p=0;p<s._sounds.length;p++)if(!s._sounds[p]._paused)return!0;return!1},duration:function(t){var s=this,f=s._duration,p=s._soundById(t);return p&&(f=s._sprite[p._sprite][1]/1e3),f},state:function(){return this._state},unload:function(){for(var t=this,s=t._sounds,f=0;f<s.length;f++)s[f]._paused||t.stop(s[f]._id),t._webAudio||(t._clearSound(s[f]._node),s[f]._node.removeEventListener("error",s[f]._errorFn,!1),s[f]._node.removeEventListener(e._canPlayEvent,s[f]._loadFn,!1),s[f]._node.removeEventListener("ended",s[f]._endFn,!1),e._releaseHtml5Audio(s[f]._node)),delete s[f]._node,t._clearTimer(s[f]._id);var p=e._howls.indexOf(t);p>=0&&e._howls.splice(p,1);var v=!0;for(f=0;f<e._howls.length;f++)if(e._howls[f]._src===t._src||t._src.indexOf(e._howls[f]._src)>=0){v=!1;break}return c&&v&&delete c[t._src],e.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,s,f,p){var v=this,g=v["_on"+t];return typeof s=="function"&&g.push(p?{id:f,fn:s,once:p}:{id:f,fn:s}),v},off:function(t,s,f){var p=this,v=p["_on"+t],g=0;if(typeof s=="number"&&(f=s,s=null),s||f)for(g=0;g<v.length;g++){var m=f===v[g].id;if(s===v[g].fn&&m||!s&&m){v.splice(g,1);break}}else if(t)p["_on"+t]=[];else{var y=Object.keys(p);for(g=0;g<y.length;g++)y[g].indexOf("_on")===0&&Array.isArray(p[y[g]])&&(p[y[g]]=[])}return p},once:function(t,s,f){var p=this;return p.on(t,s,f,1),p},_emit:function(t,s,f){for(var p=this,v=p["_on"+t],g=v.length-1;g>=0;g--)(!v[g].id||v[g].id===s||t==="load")&&(setTimeout(function(m){m.call(this,s,f)}.bind(p,v[g].fn),0),v[g].once&&p.off(t,v[g].fn,v[g].id));return p._loadQueue(t),p},_loadQueue:function(t){var s=this;if(s._queue.length>0){var f=s._queue[0];f.event===t&&(s._queue.shift(),s._loadQueue()),t||f.action()}return s},_ended:function(t){var s=this,f=t._sprite;if(!s._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(s._ended.bind(s,t),100),s;var p=!!(t._loop||s._sprite[f][2]);if(s._emit("end",t._id),!s._webAudio&&p&&s.stop(t._id,!0).play(t._id),s._webAudio&&p){s._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=e.ctx.currentTime;var v=(t._stop-t._start)*1e3/Math.abs(t._rate);s._endTimers[t._id]=setTimeout(s._ended.bind(s,t),v)}return s._webAudio&&!p&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,s._clearTimer(t._id),s._cleanBuffer(t._node),e._autoSuspend()),!s._webAudio&&!p&&s.stop(t._id,!0),s},_clearTimer:function(t){var s=this;if(s._endTimers[t]){if(typeof s._endTimers[t]!="function")clearTimeout(s._endTimers[t]);else{var f=s._soundById(t);f&&f._node&&f._node.removeEventListener("ended",s._endTimers[t],!1)}delete s._endTimers[t]}return s},_soundById:function(t){for(var s=this,f=0;f<s._sounds.length;f++)if(t===s._sounds[f]._id)return s._sounds[f];return null},_inactiveSound:function(){var t=this;t._drain();for(var s=0;s<t._sounds.length;s++)if(t._sounds[s]._ended)return t._sounds[s].reset();return new a(t)},_drain:function(){var t=this,s=t._pool,f=0,p=0;if(!(t._sounds.length<s)){for(p=0;p<t._sounds.length;p++)t._sounds[p]._ended&&f++;for(p=t._sounds.length-1;p>=0;p--){if(f<=s)return;t._sounds[p]._ended&&(t._webAudio&&t._sounds[p]._node&&t._sounds[p]._node.disconnect(0),t._sounds.splice(p,1),f--)}}},_getSoundIds:function(t){var s=this;if(typeof t=="undefined"){for(var f=[],p=0;p<s._sounds.length;p++)f.push(s._sounds[p]._id);return f}else return[t]},_refreshBuffer:function(t){var s=this;return t._node.bufferSource=e.ctx.createBufferSource(),t._node.bufferSource.buffer=c[s._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,e.ctx.currentTime),s},_cleanBuffer:function(t){var s=this,f=e._navigator&&e._navigator.vendor.indexOf("Apple")>=0;if(e._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),f))try{t.bufferSource.buffer=e._scratchBuffer}catch{}return t.bufferSource=null,s},_clearSound:function(t){var s=/MSIE |Trident\//.test(e._navigator&&e._navigator.userAgent);s||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var a=function(t){this._parent=t,this.init()};a.prototype={init:function(){var t=this,s=t._parent;return t._muted=s._muted,t._loop=s._loop,t._volume=s._volume,t._rate=s._rate,t._seek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++e._counter,s._sounds.push(t),t.create(),t},create:function(){var t=this,s=t._parent,f=e._muted||t._muted||t._parent._muted?0:t._volume;return s._webAudio?(t._node=typeof e.ctx.createGain=="undefined"?e.ctx.createGainNode():e.ctx.createGain(),t._node.gain.setValueAtTime(f,e.ctx.currentTime),t._node.paused=!0,t._node.connect(e.masterGain)):e.noAudio||(t._node=e._obtainHtml5Audio(),t._errorFn=t._errorListener.bind(t),t._node.addEventListener("error",t._errorFn,!1),t._loadFn=t._loadListener.bind(t),t._node.addEventListener(e._canPlayEvent,t._loadFn,!1),t._endFn=t._endListener.bind(t),t._node.addEventListener("ended",t._endFn,!1),t._node.src=s._src,t._node.preload=s._preload===!0?"auto":s._preload,t._node.volume=f*e.volume(),t._node.load()),t},reset:function(){var t=this,s=t._parent;return t._muted=s._muted,t._loop=s._loop,t._volume=s._volume,t._rate=s._rate,t._seek=0,t._rateSeek=0,t._paused=!0,t._ended=!0,t._sprite="__default",t._id=++e._counter,t},_errorListener:function(){var t=this;t._parent._emit("loaderror",t._id,t._node.error?t._node.error.code:0),t._node.removeEventListener("error",t._errorFn,!1)},_loadListener:function(){var t=this,s=t._parent;s._duration=Math.ceil(t._node.duration*10)/10,Object.keys(s._sprite).length===0&&(s._sprite={__default:[0,s._duration*1e3]}),s._state!=="loaded"&&(s._state="loaded",s._emit("load"),s._loadQueue()),t._node.removeEventListener(e._canPlayEvent,t._loadFn,!1)},_endListener:function(){var t=this,s=t._parent;s._duration===1/0&&(s._duration=Math.ceil(t._node.duration*10)/10,s._sprite.__default[1]===1/0&&(s._sprite.__default[1]=s._duration*1e3),s._ended(t)),t._node.removeEventListener("ended",t._endFn,!1)}};var c={},n=function(t){var s=t._src;if(c[s]){t._duration=c[s].duration,d(t);return}if(/^data:[^;]+;base64,/.test(s)){for(var f=atob(s.split(",")[1]),p=new Uint8Array(f.length),v=0;v<f.length;++v)p[v]=f.charCodeAt(v);u(p.buffer,t)}else{var g=new XMLHttpRequest;g.open(t._xhr.method,s,!0),g.withCredentials=t._xhr.withCredentials,g.responseType="arraybuffer",t._xhr.headers&&Object.keys(t._xhr.headers).forEach(function(m){g.setRequestHeader(m,t._xhr.headers[m])}),g.onload=function(){var m=(g.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){t._emit("loaderror",null,"Failed loading audio file with status: "+g.status+".");return}u(g.response,t)},g.onerror=function(){t._webAudio&&(t._html5=!0,t._webAudio=!1,t._sounds=[],delete c[s],t.load())},l(g)}},l=function(t){try{t.send()}catch{t.onerror()}},u=function(t,s){var f=function(){s._emit("loaderror",null,"Decoding audio data failed.")},p=function(v){v&&s._sounds.length>0?(c[s._src]=v,d(s,v)):f()};typeof Promise!="undefined"&&e.ctx.decodeAudioData.length===1?e.ctx.decodeAudioData(t).then(p).catch(f):e.ctx.decodeAudioData(t,p,f)},d=function(t,s){s&&!t._duration&&(t._duration=s.duration),Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!=="loaded"&&(t._state="loaded",t._emit("load"),t._loadQueue())},h=function(){if(!!e.usingWebAudio){try{typeof AudioContext!="undefined"?e.ctx=new AudioContext:typeof webkitAudioContext!="undefined"?e.ctx=new webkitAudioContext:e.usingWebAudio=!1}catch{e.usingWebAudio=!1}e.ctx||(e.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(e._navigator&&e._navigator.platform),s=e._navigator&&e._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),f=s?parseInt(s[1],10):null;if(t&&f&&f<9){var p=/safari/.test(e._navigator&&e._navigator.userAgent.toLowerCase());e._navigator&&!p&&(e.usingWebAudio=!1)}e.usingWebAudio&&(e.masterGain=typeof e.ctx.createGain=="undefined"?e.ctx.createGainNode():e.ctx.createGain(),e.masterGain.gain.setValueAtTime(e._muted?0:e._volume,e.ctx.currentTime),e.masterGain.connect(e.ctx.destination)),e._setup()}};i.Howler=e,i.Howl=o,typeof nn!="undefined"?(nn.HowlerGlobal=r,nn.Howler=e,nn.Howl=o,nn.Sound=a):typeof window!="undefined"&&(window.HowlerGlobal=r,window.Howler=e,window.Howl=o,window.Sound=a)})();/*!
  10. * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
  11. *
  12. * howler.js v2.2.3
  13. * howlerjs.com
  14. *
  15. * (c) 2013-2020, James Simpson of GoldFire Studios
  16. * goldfirestudios.com
  17. *
  18. * MIT License
  19. */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var o=this;if(!o.ctx||!o.ctx.listener)return o;for(var a=o._howls.length-1;a>=0;a--)o._howls[a].stereo(e);return o},HowlerGlobal.prototype.pos=function(e,o,a){var c=this;if(!c.ctx||!c.ctx.listener)return c;if(o=typeof o!="number"?c._pos[1]:o,a=typeof a!="number"?c._pos[2]:a,typeof e=="number")c._pos=[e,o,a],typeof c.ctx.listener.positionX!="undefined"?(c.ctx.listener.positionX.setTargetAtTime(c._pos[0],Howler.ctx.currentTime,.1),c.ctx.listener.positionY.setTargetAtTime(c._pos[1],Howler.ctx.currentTime,.1),c.ctx.listener.positionZ.setTargetAtTime(c._pos[2],Howler.ctx.currentTime,.1)):c.ctx.listener.setPosition(c._pos[0],c._pos[1],c._pos[2]);else return c._pos;return c},HowlerGlobal.prototype.orientation=function(e,o,a,c,n,l){var u=this;if(!u.ctx||!u.ctx.listener)return u;var d=u._orientation;if(o=typeof o!="number"?d[1]:o,a=typeof a!="number"?d[2]:a,c=typeof c!="number"?d[3]:c,n=typeof n!="number"?d[4]:n,l=typeof l!="number"?d[5]:l,typeof e=="number")u._orientation=[e,o,a,c,n,l],typeof u.ctx.listener.forwardX!="undefined"?(u.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(o,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(a,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(c,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(l,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(e,o,a,c,n,l);else return d;return u},Howl.prototype.init=function(e){return function(o){var a=this;return a._orientation=o.orientation||[1,0,0],a._stereo=o.stereo||null,a._pos=o.pos||null,a._pannerAttr={coneInnerAngle:typeof o.coneInnerAngle!="undefined"?o.coneInnerAngle:360,coneOuterAngle:typeof o.coneOuterAngle!="undefined"?o.coneOuterAngle:360,coneOuterGain:typeof o.coneOuterGain!="undefined"?o.coneOuterGain:0,distanceModel:typeof o.distanceModel!="undefined"?o.distanceModel:"inverse",maxDistance:typeof o.maxDistance!="undefined"?o.maxDistance:1e4,panningModel:typeof o.panningModel!="undefined"?o.panningModel:"HRTF",refDistance:typeof o.refDistance!="undefined"?o.refDistance:1,rolloffFactor:typeof o.rolloffFactor!="undefined"?o.rolloffFactor:1},a._onstereo=o.onstereo?[{fn:o.onstereo}]:[],a._onpos=o.onpos?[{fn:o.onpos}]:[],a._onorientation=o.onorientation?[{fn:o.onorientation}]:[],e.call(this,o)}}(Howl.prototype.init),Howl.prototype.stereo=function(e,o){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"stereo",action:function(){a.stereo(e,o)}}),a;var c=typeof Howler.ctx.createStereoPanner=="undefined"?"spatial":"stereo";if(typeof o=="undefined")if(typeof e=="number")a._stereo=e,a._pos=[e,0,0];else return a._stereo;for(var n=a._getSoundIds(o),l=0;l<n.length;l++){var u=a._soundById(n[l]);if(u)if(typeof e=="number")u._stereo=e,u._pos=[e,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&r(u,c),c==="spatial"?typeof u._panner.positionX!="undefined"?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(e,0,0):u._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),a._emit("stereo",u._id);else return u._stereo}return a},Howl.prototype.pos=function(e,o,a,c){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"pos",action:function(){n.pos(e,o,a,c)}}),n;if(o=typeof o!="number"?0:o,a=typeof a!="number"?-.5:a,typeof c=="undefined")if(typeof e=="number")n._pos=[e,o,a];else return n._pos;for(var l=n._getSoundIds(c),u=0;u<l.length;u++){var d=n._soundById(l[u]);if(d)if(typeof e=="number")d._pos=[e,o,a],d._node&&((!d._panner||d._panner.pan)&&r(d,"spatial"),typeof d._panner.positionX!="undefined"?(d._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),d._panner.positionY.setValueAtTime(o,Howler.ctx.currentTime),d._panner.positionZ.setValueAtTime(a,Howler.ctx.currentTime)):d._panner.setPosition(e,o,a)),n._emit("pos",d._id);else return d._pos}return n},Howl.prototype.orientation=function(e,o,a,c){var n=this;if(!n._webAudio)return n;if(n._state!=="loaded")return n._queue.push({event:"orientation",action:function(){n.orientation(e,o,a,c)}}),n;if(o=typeof o!="number"?n._orientation[1]:o,a=typeof a!="number"?n._orientation[2]:a,typeof c=="undefined")if(typeof e=="number")n._orientation=[e,o,a];else return n._orientation;for(var l=n._getSoundIds(c),u=0;u<l.length;u++){var d=n._soundById(l[u]);if(d)if(typeof e=="number")d._orientation=[e,o,a],d._node&&(d._panner||(d._pos||(d._pos=n._pos||[0,0,-.5]),r(d,"spatial")),typeof d._panner.orientationX!="undefined"?(d._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),d._panner.orientationY.setValueAtTime(o,Howler.ctx.currentTime),d._panner.orientationZ.setValueAtTime(a,Howler.ctx.currentTime)):d._panner.setOrientation(e,o,a)),n._emit("orientation",d._id);else return d._orientation}return n},Howl.prototype.pannerAttr=function(){var e=this,o=arguments,a,c,n;if(!e._webAudio)return e;if(o.length===0)return e._pannerAttr;if(o.length===1)if(typeof o[0]=="object")a=o[0],typeof c=="undefined"&&(a.pannerAttr||(a.pannerAttr={coneInnerAngle:a.coneInnerAngle,coneOuterAngle:a.coneOuterAngle,coneOuterGain:a.coneOuterGain,distanceModel:a.distanceModel,maxDistance:a.maxDistance,refDistance:a.refDistance,rolloffFactor:a.rolloffFactor,panningModel:a.panningModel}),e._pannerAttr={coneInnerAngle:typeof a.pannerAttr.coneInnerAngle!="undefined"?a.pannerAttr.coneInnerAngle:e._coneInnerAngle,coneOuterAngle:typeof a.pannerAttr.coneOuterAngle!="undefined"?a.pannerAttr.coneOuterAngle:e._coneOuterAngle,coneOuterGain:typeof a.pannerAttr.coneOuterGain!="undefined"?a.pannerAttr.coneOuterGain:e._coneOuterGain,distanceModel:typeof a.pannerAttr.distanceModel!="undefined"?a.pannerAttr.distanceModel:e._distanceModel,maxDistance:typeof a.pannerAttr.maxDistance!="undefined"?a.pannerAttr.maxDistance:e._maxDistance,refDistance:typeof a.pannerAttr.refDistance!="undefined"?a.pannerAttr.refDistance:e._refDistance,rolloffFactor:typeof a.pannerAttr.rolloffFactor!="undefined"?a.pannerAttr.rolloffFactor:e._rolloffFactor,panningModel:typeof a.pannerAttr.panningModel!="undefined"?a.pannerAttr.panningModel:e._panningModel});else return n=e._soundById(parseInt(o[0],10)),n?n._pannerAttr:e._pannerAttr;else o.length===2&&(a=o[0],c=parseInt(o[1],10));for(var l=e._getSoundIds(c),u=0;u<l.length;u++)if(n=e._soundById(l[u]),n){var d=n._pannerAttr;d={coneInnerAngle:typeof a.coneInnerAngle!="undefined"?a.coneInnerAngle:d.coneInnerAngle,coneOuterAngle:typeof a.coneOuterAngle!="undefined"?a.coneOuterAngle:d.coneOuterAngle,coneOuterGain:typeof a.coneOuterGain!="undefined"?a.coneOuterGain:d.coneOuterGain,distanceModel:typeof a.distanceModel!="undefined"?a.distanceModel:d.distanceModel,maxDistance:typeof a.maxDistance!="undefined"?a.maxDistance:d.maxDistance,refDistance:typeof a.refDistance!="undefined"?a.refDistance:d.refDistance,rolloffFactor:typeof a.rolloffFactor!="undefined"?a.rolloffFactor:d.rolloffFactor,panningModel:typeof a.panningModel!="undefined"?a.panningModel:d.panningModel};var h=n._panner;h?(h.coneInnerAngle=d.coneInnerAngle,h.coneOuterAngle=d.coneOuterAngle,h.coneOuterGain=d.coneOuterGain,h.distanceModel=d.distanceModel,h.maxDistance=d.maxDistance,h.refDistance=d.refDistance,h.rolloffFactor=d.rolloffFactor,h.panningModel=d.panningModel):(n._pos||(n._pos=e._pos||[0,0,-.5]),r(n,"spatial"))}return e},Sound.prototype.init=function(e){return function(){var o=this,a=o._parent;o._orientation=a._orientation,o._stereo=a._stereo,o._pos=a._pos,o._pannerAttr=a._pannerAttr,e.call(this),o._stereo?a.stereo(o._stereo):o._pos&&a.pos(o._pos[0],o._pos[1],o._pos[2],o._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var o=this,a=o._parent;return o._orientation=a._orientation,o._stereo=a._stereo,o._pos=a._pos,o._pannerAttr=a._pannerAttr,o._stereo?a.stereo(o._stereo):o._pos?a.pos(o._pos[0],o._pos[1],o._pos[2],o._id):o._panner&&(o._panner.disconnect(0),o._panner=void 0,a._refreshBuffer(o)),e.call(this)}}(Sound.prototype.reset);var r=function(e,o){o=o||"spatial",o==="spatial"?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,typeof e._panner.positionX!="undefined"?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),typeof e._panner.orientationX!="undefined"?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()})($o);var fl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA5lJREFUWEfNmEvIVlUUhp83wpoEDbpACRURNQil0CBRGkQXu0gONKqBWUZgKUqXQVF2oaIyirJAUrNBRSkImV1oYtEFSqSkgQZREwMvRJADFWnF+7d2HI/n/Od8X/rzHTijs/dez17rXWvtfcSIPRqUJyLOAm4ArgIuBc4HTst1/gJ+A34CvgA+lrR3EBu9gSJiJvAwMBs4uaeRI8AnwAuSvuozpxMoIi4AXgNuzAUPA58BnwPbgF+AP/Pb6cCFwDTgGuA6YFJ+2wIskfTreGDjAkXEbcDqDImNvgK8Lml/n91GxBnAfcAywLAO6b2S3mub3woUEY8DTwAeswG4f1A9FKOpu1XAPCC8rqSnmqAagRLmSeBv4DFJz/bxSNeYiHgEeBo4CVjRBHUMUIbpndzJ7ZLebzIUERcBczLTzgF2SHqoB9StwLvp+Tvq4TsKKAX8Y2rm0SbPRMSVwPPArJrx3ZImdwH5e3rqmdTU1KrQ60AfZTZtkDS/unhE2M0GeSB39wewGdgK7AZ+kLSvD1BCfZCa2iLppjLvP6CI8I6/zBS+uCrghNkIzAUOAc8BL0k60BegPi6Fviuzb1apU1WgD4Gbm8QWES8CDwJO91skfT0sSM3rKzKTN0uyHsdS2jF1O7DbnVXnVutMasYALohXV2EiwvNdBKemIetvmySndueTdcp2LQfb3VuA7gTesiYKaaWGOIwOp2uHS8HYExFTcs7lNcvbgYWSdnQS/btOiYznrC9AhjHUUkluE8WoU/tnwAI+r2gmYdyb3FR/Bz7NKdcDLgGuyDP7QEXEEuBVYL2khQXo+3T9DEnfVoCcUSvL4PSM57iH2TObgAWSDODdGvDtFL89Na0rfCmJbzLU0wuQ09V95+xadhXPjbkzjU4HvkvPXFJgKpsw1M701BWSvNnWJ/W7xwkj6cwCdBA4xa8ki7eEzF39Wr+S3N3thUXAm8A6SXc3WYqItcBdwD2S1nQA+TTgUnJI0qldQE53d/zLStGbKKDGkLXsfkJC1ijqFqAJEXVj2rfFfiLSvrUwdkB5IyekMLa2jo4MOTGtI9O5lPCjWkSf8j/smIhobq4J1Hr8GNZgj4LYfvxIqNYD2vGGiojxD2gJ5DvYuEfY4wHW+wibUK7MnYf8YcEiov8hv9LDfCcbjWtQDWo0LooVqPpV+mXgjQGv0ouB5f/7Kl2BGp2fDVXhjszvmHo2jcwPq2HTfNB5/wC4HxNDoqwBYAAAAABJRU5ErkJggg==",dl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",pl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAS1JREFUSEvN1rsuRUEUgOH/xzvoeBHxFioPQYIgoXVJXBKFikp0apWCaFDxBITQaBQKBdmykr0TOck5+2z7zORMOZnMN5c1a5Zkbmb2GC6wKIpxYBEYAw7Ux7Yn0nOHRVFcAdMl8gXsAZvq53/hOvAbGO2Y/A1YBU7UoilcB/aa8BaYV2+aoG3AcGJBp8CyGjuvbW3BCog73QJ21bjrrm1QYAU8AUvqWTdx0GDlXJb3+9AJpwLD+QGOgHX1vYJTgpXxAcyq59GRAwznWZ3MCb6oE7nAONIZ9SI1GEFzDKzlCJpI+pH27lM/i2wPP1LbNrCTOrVVyXtFfa3N3C3f4R0wN+jvKSJtJOcHfA1M/Skx9oGNlCVGFFEL5dEfJi+i+gmCpmOGqy5tuvp+xv8CviiKHYL2qIQAAAAASUVORK5CYII=",Yo=It({name:"unit-audio",props:{src:{type:String,default:""}},setup(i){const r=Kn({audioStatus:"stopped",duration:0}),e=new $o.Howl({src:i.src+"?t="+ +new Date,format:["mp3"]});return e.on("load",o=>{console.log(e.duration()),r.duration=Math.ceil(e.duration())}),e.on("end",o=>{r.audioStatus="stopped"}),mo.on("unitAudioStop",()=>{e.stop(),r.audioStatus="stopped"}),Ho(()=>{e.off("load")}),()=>O("div",{class:bn.unitAudio},[O("div",{class:bn.htmlAudio,onClick:o=>{o.stopPropagation(),r.audioStatus==="stopped"?(mo.emit("unitAudioStop"),e.play(),r.audioStatus="paused"):r.audioStatus==="paused"&&(e.pause(),r.audioStatus="stopped")}},[O("div",{class:bn.htmlTimes},[O(_t,{class:bn.iconAudio,name:fl},null),O("span",null,[r.duration,Re('"')])]),O(_t,{name:r.audioStatus==="stopped"?pl:dl,class:bn.audioStatus},null)])])}}),Tr=It({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(i){const r=un(()=>i.answerType===Et.CHECKBOX?yn.CHECKBOX:i.answerType===Et.LINK?yn.LINK:i.answerType===Et.SORT?yn.SORT:i.answerType===Et.PLAY?yn.PLAY:yn.RADIO),e=un(()=>i.extra.mediaUrls?i.extra.mediaUrls.split(","):"");return()=>O(mt,null,[O("div",{class:Rt.unitSubjectTitle},[i.index,Re("\u3001"),i.name,Re(" "),O("span",{class:Rt.unitScore},[Re("\uFF08"),i.score||0,Re("\u5206\uFF09")]),O(Zr,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[r.value]})]),i.showRate&&O("div",{class:Rt.unitTitleRate},[O(_t,{name:ol,class:Rt.icon},null),Re("\u6B63\u786E\u7387\uFF1A"),O("span",{class:Rt.rate},[i.extra.rightRate||0,Re("%")])]),i.extra.questionDetail||e.value?O("div",{class:Rt.unitDetail},[O("div",{innerHTML:i.extra.questionDetail},null),e.value&&e.value.map(o=>o&&O(mt,null,[o.substr(-3)==="mp3"?O(Yo,{src:o,class:Rt.valueAudio},null):O(Gt,{class:[Rt.unitTitleImg,"answerTitleImg"],src:o},null)]))]):""])}});const hl="_answerAnalysis_1mdns_1",vl="_analysisResult_1mdns_1",gl="_aImg_1mdns_9",ml="_success_1mdns_13",yl="_error_1mdns_16",bl="_analysisTitle_1mdns_19",Al="_analysisMessage_1mdns_22";var it={answerAnalysis:hl,analysisResult:vl,aImg:gl,success:ml,error:yl,analysisTitle:bl,analysisMessage:Al},Sl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApFJREFUWEfNmMtrU0EUh7+TW21R3OnWJ/gAV4JV2lKsSF24DmhNzG0XNhUFd+JfUNwJim1dtKmtKGTtQhErpS1o0ZXgA8HHVneipGByZO4lMUlz7ySawszyzpk53/2dmTNnRmixaTq9B7zTqPaBHALdibAtmEb5AfIV9C0iS1B8LHNzn1pxIc0YazLp0bU1ieploAdoalyACCuI3KbwMy/5fNHmzzqxXhg5hRZvoRy0TRbbL7xDvCtyb/ppnF0kkPp+F7+5CXqxBUVszApylw6uSi5XaGTcEEiTwzvoLD0Cjto8/GP/KmuJM5Kf+VY/fh1QANNVWvzvENlITQgLif56qBqgMEy6uIHK1GOu0iH91eGrBUr5k6Cjtp9rb79MyXwuW56zAhTsplLxSRsXcLPcSsIbLO++ACjMM1vebPi6iUIM1tOvwyZPhUBp/yyqD+LziMDACdi9C5ZX4P2HeAUO7IfeHvj8BRaeg5ocGdNEzslc7mEIlMosAb2xA04OwHAmNCkWYWIKXrxsPOR4N2RHwfPC/plZeLZgC+GyzM/2iQ4N7SWx6aN17Yz4oULlFgV1rBvGqmCMvVFoOmcDUqS0TzTtZ1GdsFljQnD92t+/bqRUIxgDPn7DHmIzn8iYaCozD5y3AhmDKIcmfKbVK2ML7Xqn90VT/ivQI00BRUGVSuHwRMIe0lhH8tooZM6T7U0DRUFVT9C6MuXR30XTmQJKZ0tAZahL2VpVzHej1p3J6B0Y50hYcxDIuZA5uKgd2/bOJUbXjg6zC9t+uNZn9FYO1wDIufLDtQItUMmlEraczdWlIj9QybVrUADl0kWxEjqXrtIVKJceG6pLFmeeY2qgXHqwqi/wgmuTt3lwo570/gATF5asuw6doAAAAABJRU5ErkJggg==",El="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA9tJREFUWEfNmFtsFFUYgL9/uttuqVwqFxWRWDBKE9AE0weFNF6wpeGhLUkJxERDTRQTTHwAjBLvD74awXAx3RpRa9pII0bRhgChF5VLUeRSRNSQQEggIUo0tbTnN2e32+3MbjszW0x2Huf85/+/+a9njhDyafhIywZvmGoDS0WkHGUuMHlYzXWEC6p6xoGuSNT5tu0p+T2MCQki3NCqBYN/04DR9Yo+DATaB6ggPTiyNVJCW9sqGfKz56u4Nq7LULNFYIGfsvHWFfoQ54UvGmXfeHJjAj3SrLFSNe8q8iyqvuCBYEVU0J3XxHnx4Frpz7Ynq6GauM6MoV+pakUgQyGFRORIP7Jib6Nc8W7NABqGOaSqEwqRH6OI9PUjlV4oF1AyTGph/hfPZHhD5Mg1kcrR4XMB1ceHtqvynN/X3cx1EXa0NxasS+kcAbLVJGjHTUvgoNQiqkhVqvoSQLbPDFw3Jyda2kEZvHK2JRROdhbaPpUAqm/W1WpMS64Kg+ybVgw15fDPAOw9AwOeFimOs6Z9rXyWBGoyXYouCaI4F5k7psDbNcL0kmSG7D+nbOlUlypButufcZbKyrjOM2p+DTEOQjHNmQpv1Qilk9L1c/FPZf3nbiA7ZqJRZ77UN+k6xWwLZSWg8NxSeHO5MK3Y3e5ajxtajmcqEXheapuGPhZ4MqCNwGJlt8Iby4UpMTdMx1lle7eS4R/rIvhE6uLmGKqLs1mqnAf3zRJ6/lBOXQ7Mwj0z4PVq4ZYiN8zXp5UPvs+GMqxbpFfqmswV0Blec0vKYMOjTuK1UeX9LmX/OX+oe2fCa9VCSaEbZs9JpfnwODAJ1XLVAvWDFnlNPV0BdYuSQCmoHT1Kx9mxocpvg1erhOKoG2b3CWXXUT+YBNC/YwJZt7+zQogUpJWrJl1u+4j3WXg7bH5CiHlgWn9UWnqDwKSBsobMLlfcBRsfE6IeqA8PK3tOpZEemA0vLxOKIm7PfHrM0PaTf5jTEjZk4yS1FVx8J7z0uFDoMbbrqGH3CXhwDmyy6x5oG6L2n8PA2IhJb6Cyv382vJLFA4fOGx66O9ODzT8oX54OCZMq+6CNcawcGW3W5tjO75Rv+sLDJDLINsYwo2PBrGQVTfKUdKoKt3Ur+37JDWZkdNjtYYZrtj5j+9TWTuWAnYg5PiPDNQEU8vgxf3qy+dmxMDikvNepdP6WI8nwNtfxI5cD2tQY2GQ/fxUu/TUxmIwDmlWXV0fY1Pfl1SHfQuXdb5CFyqsfxVTo8upXOgWVV5cNo4s4b65jRkPl1YWVt+XZ2adKlcH4XOk5XZEooa/0/gN75eEGM2i4wwAAAABJRU5ErkJggg==",xl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABllJREFUWEedmHlsFVUUxn+3UAqUVagSFhUQFEUWLYQYIEbkD0wMrQU1kogaARHFqJRVAVkMUuAPJQImGKNgwlqq7CWIkrpgIQRUSqSIRVnCUrpA2TrXnHdn3rsznXkW5p/33syd+777ne9895yrCLlWFOvU6gqySGG41mSiaO/U0lwDjgb51PLpfo/d0+CE3Jfp3XeqtOaUoynWUFDdgU2fZaobwb9XwRtL9uhsxyEP6CrPgn/qgQkCCwPjG2stxH23VCtyP85S+TaGOKDZs3VKs8EsUIpJWqOEhviEFrAYEwGW4mA8Nur+eZxRG7ij0FqzKOMQU2fPVvKIOKBFu/VCINdDeyvMvJhp3vp8XwijHjgbbN3w5i0boSbHAUmYtGZDjBlLB/Vd+fQnDZtzdwYAuXPZjPrYTehLK0XO8hyVr0TAVZUcsTWTLCTxkFmCnjHUMDRnhwHmiTz4PSh8n+40peoSPdTiPXqkdlgbxoxMnNEMLtXA1ZtuJgX1oeH5vgbI1wcSYIJMpDWEVk3g34qQeVwm0TyrFn+nVzkOozxAdpjSG8Gbg+DCZfiyGCqvBhiw0z4s1K5WWqTBhIFwZzN4bxuU1yRsw2YJxWq1aLcu0Zr7w+Isy87qBQ+1M6BW/Ag1LlO2F/kyJ+BFwsykxw3T+0/Cyn2GRTussdDKJIqjKm+3rnQcmsuAuIlZYZF7T/eEB+6CT/ZChbs6m0nPJMOAtWwMM56Eg6fgq/1Q6yQJmaJKfbRLrCCAOInzesLMSIfMTtA9A1o3hQYpJqTHL8D+f+D3M5ajuwyECj7AqFpQ6AKyNRDcFqxnKQqG9YAB94J8j7pKz8MXxSbUPk8LsQI7+9SHAigCQCAtYyy81B+6tAmHceU61NyANunmefU1WPI9nKqMtoKgxaj5Ow0gn6gDW4X3fERveLRTNCs7SmBrCQzuAtk9ISUFzl+GOYVQc93aigKbcjxBRNfzdmgdKtBASndqBeMfA5UkTCLYvcdhw2HI7Aij+xnwW4/AxsOBRVtRsbWl5uzwh0yyQkQqgy5eNisUwM/1gUc6RrNjP9lXZtJ74kBjGRK6twvgpmPSv226mf9MJZytTmhMIqE+2O7PsqlDoGkjM/21mzBru3l55lBIT6sfIBk1txDaNYcxA8w78rv0AizLgSap5l7VNRi33u/uapYAsujr3d5MJNeZKpDVpjaA+U/VH4yMXHMQDp2G+cPMe58Wwc9lMLgzdGhpFnmiHH447he8mrktIWp5MWxjFLedd4uA/i6HY+dhSDcDaPlPUPRXeFXp2UIsZO9vdQElqQ5l4NxhiVDeGleJkJWcC9/D7EJQzdhiNJTM/uX56Ezo0+F2oID40+sb4XptEpN0s1pN32yJOgKYALqvLbwx8PYASdqvOhBen8cl4gGattnyoZBOwu40XukHfeuZ+h708iswZYvJKNtvQitH0dCUb90s8/aYsILeRS/injgI7mldP6ZkG5m/C45d8HtNsnJFTXYBJat77bK1UUN4oS/0vzu5a5eVw9IiOHnJn1mhfZ2Q4JhxKvcbrX3FUtS+Fth/pg+Bzm3MykWscjVMMWWIXK+th0tuhRnaOoW1WRKydwt0pYbmSbPMLUVFBN4KBZDs+it/SZhbi8awNNswN3YdVIhuAtVhcPGBGqlKAJU4UsLahVJEW2zXNVIFdm0D56pBTFAmln1QCja5Xl1nCrY6RpskkzUcVe8U6FW1DqNCW+RAc2dn3PQnoFsG5B+GohMGhHQVM4YYhl5e42ZWRKkR0Z+tVm8V6JG6lrXx1UdVdHb7LHX2g5DTC/44A7+dNYBaN4Gh3eHPczBtW/gBRJ3ay503NoG0QWOLdWpaGUccTVefY0eIzhsj7z/zMAzqAnc0NYDEkQ+fhpW/mtI1WSNgh9JgobRc0yNWbk3YoLM1ppWuk3ERRy8+k3NnjDI7X0cTONKJrUSONjQ5hWNVfrz+G79eL3Q0uaGHDFbXEHYOFFkCh+gnyExsLZq8XeOswwa5Kccxp3uywNFMchxUWKcQBsY+rIrZQtRhVkCDHjPaYdGu00wleBzjbQZj1upsR5MnmgqmrIyJOkgIdeBgf+f18K5mFORKmOyNKLRkH7tCp15vSZaG4Y5Dpta0dyzz/L+Gz7dXJbKoSmOO9JSm4CJs2j+u7pHef31/i4JLMvf4AAAAAElFTkSuQmCC",Ir=It({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"\u56DE\u7B54\u6B63\u786E"},errorFlagText:{type:String,default:"\u56DE\u7B54\u9519\u8BEF"}},setup(i){return()=>O("div",{class:it.answerAnalysis},[i.topic?O(mt,null,[i.userResult?O("div",{class:[it.analysisResult,it.success]},[O(_t,{name:El,class:it.aImg},null),i.rightFlagText]):O("div",{class:[it.analysisResult,it.error]},[O(_t,{name:Sl,class:it.aImg},null),i.errorFlagText])]):"",i.answerAnalysis&&O(mt,null,[O("div",{class:[it.analysisResult,it.analysisTitle]},[O(_t,{name:xl,class:it.aImg},null),Re("\u7B54\u6848\u89E3\u6790")]),O("div",{class:it.analysisMessage},[i.answerAnalysis])])])}});const wl="_unitSubject_1pzvj_1",Tl="_unitAnswers_1pzvj_11",Il="_unitAnswer_1pzvj_11",Ol="_option_1pzvj_23",Dl="_value_1pzvj_26",Cl="_valueAudio_1pzvj_35",Pl="_active_1pzvj_38",Rl="_answerContent_1pzvj_42",Nl="_answerChoice_1pzvj_46";var et={unitSubject:wl,unitAnswers:Tl,unitAnswer:Il,option:Ol,value:Dl,valueAudio:Cl,active:Pl,answerContent:Rl,answerChoice:Nl},Bc=It({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(i,{emit:r}){const e=a=>{if(console.log(a,"onSelect"),i.readOnly)return;const c=i.value||[],n={answerId:a.examinationQuestionAnswerId,answer:a.questionAnswer,answerExtra:a.questionExtra};if(console.log(n,"onSelect"),i.type==="checkbox"){const l=c.findIndex(u=>u.answerId===a.examinationQuestionAnswerId);l>=0?(c.splice(l,1),r("update:value",[...c])):r("update:value",[...c,n])}else r("update:value",[n])},o=un(()=>{const a=i.data.answers||[],c=i.value||[];return a.forEach(n=>{const l=c.findIndex(u=>u.answerId===n.examinationQuestionAnswerId);n.checked=l!==-1}),a});return()=>O(mt,null,[O("div",{class:et.unitSubject},[O(Tr,{index:i.index,name:i.data.name,showRate:i.showRate,score:i.data.totalScore,answerType:i.type==="radio"?Et.RADIO:Et.CHECKBOX,extra:{questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls,rightRate:i.data.rightRate}},null),O("div",{class:et.unitAnswers},[o.value.map((a,c)=>O("div",{class:[et.unitAnswer,a.checked&&et.active],onClick:()=>e(a)},[O("div",{class:et.answerContent},[O("span",{class:et.option},[Vo[c+1],Re(".")]),a.questionAnswerTypeCode===ke.IMAGE&&O("div",{class:et.value},[O(Gt,{src:a.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),a.questionAnswerTypeCode===ke.TXT&&O("div",{class:et.value},[a.questionAnswer]),a.questionAnswerTypeCode===ke.AUDIO&&O("div",{class:et.value},[O(Yo,{src:a.questionAnswer,class:et.valueAudio},null)])]),i.showRate&&O("div",{class:et.answerChoice},[a.selectRate||0,Re("%\u4EBA\u9009\u62E9")])]))])]),i.showAnalysis&&O("div",{class:et.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const Ml="_anserList_1yzxl_1",Fl="_status_1yzxl_5",Ll="_aList_1yzxl_28",Bl="_answered_1yzxl_46",jl="_yes_1yzxl_50",Gl="_no_1yzxl_54";var St={anserList:Ml,status:Fl,aList:Ll,answered:Bl,yes:jl,no:Gl};function Ul(i){return typeof i=="function"||Object.prototype.toString.call(i)==="[object Object]"&&!Uo(i)}var jc=It({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"\u5DF2\u7B54",color:"#FF8057"},{text:"\u672A\u7B54",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(i,{emit:r}){console.log(i.lookType,"lookType");const e=o=>{let a=!1;return i.answerResult.forEach(c=>{c.questionId===o&&(a=c.rightFlag)}),a};return()=>{let o;return O("div",{class:St.anserList},[i.statusList.length>0&&O("div",{class:St.status},[i.statusList.map(a=>O("span",null,[O("i",{style:{backgroundColor:a.color}},null),a.text]))]),O("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[O(Ws,{class:St.aList,columnNum:6,border:!1},Ul(o=i.value.map((a,c)=>O(_s,{onClick:()=>r("select",c)},{default:()=>[O("span",{class:[i.lookType==="ANSWER"&&a.userAnswer&&a.userAnswer.length>0&&St.answered,i.lookType==="RESULT"&&(e(a.id)?St.yes:St.no),i.lookType==="CLICK"&&c===i.index&&St.answered,i.lookType!=="CLICK"&&a.showAnalysis?a.analysis.userResult?St.yes:St.no:""]},[c+1])]})))?o:{default:()=>[o]})])])}}}),Wo={exports:{}},Hl=Ko(Js);/**!
  20. * Sortable 1.14.0
  21. * @author RubaXa <trash@rubaxa.org>
  22. * @author owenm <owen23355@gmail.com>
  23. * @license MIT
  24. */function yo(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function yt(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?yo(Object(e),!0).forEach(function(o){Xl(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):yo(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}function ar(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ar=function(r){return typeof r}:ar=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ar(i)}function Xl(i,r,e){return r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function ot(){return ot=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},ot.apply(this,arguments)}function Kl(i,r){if(i==null)return{};var e={},o=Object.keys(i),a,c;for(c=0;c<o.length;c++)a=o[c],!(r.indexOf(a)>=0)&&(e[a]=i[a]);return e}function Vl(i,r){if(i==null)return{};var e=Kl(i,r),o,a;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(a=0;a<c.length;a++)o=c[a],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,o)||(e[o]=i[o]))}return e}function $l(i){return Yl(i)||Wl(i)||_l(i)||zl()}function Yl(i){if(Array.isArray(i))return kr(i)}function Wl(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function _l(i,r){if(!!i){if(typeof i=="string")return kr(i,r);var e=Object.prototype.toString.call(i).slice(8,-1);if(e==="Object"&&i.constructor&&(e=i.constructor.name),e==="Map"||e==="Set")return Array.from(i);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return kr(i,r)}}function kr(i,r){(r==null||r>i.length)&&(r=i.length);for(var e=0,o=new Array(r);e<r;e++)o[e]=i[e];return o}function zl(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  25. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ql="1.14.0";function xt(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var Ot=xt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Vn=xt(/Edge/i),bo=xt(/firefox/i),Pn=xt(/safari/i)&&!xt(/chrome/i)&&!xt(/android/i),_o=xt(/iP(ad|od|hone)/i),Jl=xt(/chrome/i)&&xt(/android/i),zo={capture:!1,passive:!1};function ne(i,r,e){i.addEventListener(r,e,!Ot&&zo)}function te(i,r,e){i.removeEventListener(r,e,!Ot&&zo)}function vr(i,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),i)try{if(i.matches)return i.matches(r);if(i.msMatchesSelector)return i.msMatchesSelector(r);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(r)}catch{return!1}return!1}}function Zl(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ft(i,r,e,o){if(i){e=e||document;do{if(r!=null&&(r[0]===">"?i.parentNode===e&&vr(i,r):vr(i,r))||o&&i===e)return i;if(i===e)break}while(i=Zl(i))}return null}var Ao=/\s+/g;function ye(i,r,e){if(i&&r)if(i.classList)i.classList[e?"add":"remove"](r);else{var o=(" "+i.className+" ").replace(Ao," ").replace(" "+r+" "," ");i.className=(o+(e?" "+r:"")).replace(Ao," ")}}function U(i,r,e){var o=i&&i.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),r===void 0?e:e[r];!(r in o)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),o[r]=e+(typeof e=="string"?"":"px")}}function zt(i,r){var e="";if(typeof i=="string")e=i;else do{var o=U(i,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!r&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function Qo(i,r,e){if(i){var o=i.getElementsByTagName(r),a=0,c=o.length;if(e)for(;a<c;a++)e(o[a],a);return o}return[]}function vt(){var i=document.scrollingElement;return i||document.documentElement}function ve(i,r,e,o,a){if(!(!i.getBoundingClientRect&&i!==window)){var c,n,l,u,d,h,t;if(i!==window&&i.parentNode&&i!==vt()?(c=i.getBoundingClientRect(),n=c.top,l=c.left,u=c.bottom,d=c.right,h=c.height,t=c.width):(n=0,l=0,u=window.innerHeight,d=window.innerWidth,h=window.innerHeight,t=window.innerWidth),(r||e)&&i!==window&&(a=a||i.parentNode,!Ot))do if(a&&a.getBoundingClientRect&&(U(a,"transform")!=="none"||e&&U(a,"position")!=="static")){var s=a.getBoundingClientRect();n-=s.top+parseInt(U(a,"border-top-width")),l-=s.left+parseInt(U(a,"border-left-width")),u=n+c.height,d=l+c.width;break}while(a=a.parentNode);if(o&&i!==window){var f=zt(a||i),p=f&&f.a,v=f&&f.d;f&&(n/=v,l/=p,t/=p,h/=v,u=n+h,d=l+t)}return{top:n,left:l,bottom:u,right:d,width:t,height:h}}}function So(i,r,e){for(var o=Bt(i,!0),a=ve(i)[r];o;){var c=ve(o)[e],n=void 0;if(e==="top"||e==="left"?n=a>=c:n=a<=c,!n)return o;if(o===vt())break;o=Bt(o,!1)}return!1}function cn(i,r,e,o){for(var a=0,c=0,n=i.children;c<n.length;){if(n[c].style.display!=="none"&&n[c]!==Y.ghost&&(o||n[c]!==Y.dragged)&&ft(n[c],e.draggable,i,!1)){if(a===r)return n[c];a++}c++}return null}function lo(i,r){for(var e=i.lastElementChild;e&&(e===Y.ghost||U(e,"display")==="none"||r&&!vr(e,r));)e=e.previousElementSibling;return e||null}function Ee(i,r){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==Y.clone&&(!r||vr(i,r))&&e++;return e}function Eo(i){var r=0,e=0,o=vt();if(i)do{var a=zt(i),c=a.a,n=a.d;r+=i.scrollLeft*c,e+=i.scrollTop*n}while(i!==o&&(i=i.parentNode));return[r,e]}function kl(i,r){for(var e in i)if(!!i.hasOwnProperty(e)){for(var o in r)if(r.hasOwnProperty(o)&&r[o]===i[e][o])return Number(e)}return-1}function Bt(i,r){if(!i||!i.getBoundingClientRect)return vt();var e=i,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var a=U(e);if(e.clientWidth<e.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return vt();if(o||r)return e;o=!0}}while(e=e.parentNode);return vt()}function ql(i,r){if(i&&r)for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function Nr(i,r){return Math.round(i.top)===Math.round(r.top)&&Math.round(i.left)===Math.round(r.left)&&Math.round(i.height)===Math.round(r.height)&&Math.round(i.width)===Math.round(r.width)}var Rn;function Jo(i,r){return function(){if(!Rn){var e=arguments,o=this;e.length===1?i.call(o,e[0]):i.apply(o,e),Rn=setTimeout(function(){Rn=void 0},r)}}}function eu(){clearTimeout(Rn),Rn=void 0}function Zo(i,r,e){i.scrollLeft+=r,i.scrollTop+=e}function uo(i){var r=window.Polymer,e=window.jQuery||window.Zepto;return r&&r.dom?r.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}function xo(i,r){U(i,"position","absolute"),U(i,"top",r.top),U(i,"left",r.left),U(i,"width",r.width),U(i,"height",r.height)}function Mr(i){U(i,"position",""),U(i,"top",""),U(i,"left",""),U(i,"width",""),U(i,"height","")}var Ue="Sortable"+new Date().getTime();function tu(){var i=[],r;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(U(a,"display")==="none"||a===Y.ghost)){i.push({target:a,rect:ve(a)});var c=yt({},i[i.length-1].rect);if(a.thisAnimationDuration){var n=zt(a,!0);n&&(c.top-=n.f,c.left-=n.e)}a.fromRect=c}})}},addAnimationState:function(o){i.push(o)},removeAnimationState:function(o){i.splice(kl(i,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(r),typeof o=="function"&&o();return}var c=!1,n=0;i.forEach(function(l){var u=0,d=l.target,h=d.fromRect,t=ve(d),s=d.prevFromRect,f=d.prevToRect,p=l.rect,v=zt(d,!0);v&&(t.top-=v.f,t.left-=v.e),d.toRect=t,d.thisAnimationDuration&&Nr(s,t)&&!Nr(h,t)&&(p.top-t.top)/(p.left-t.left)===(h.top-t.top)/(h.left-t.left)&&(u=ru(p,s,f,a.options)),Nr(t,h)||(d.prevFromRect=h,d.prevToRect=t,u||(u=a.options.animation),a.animate(d,p,t,u)),u&&(c=!0,n=Math.max(n,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(r),c?r=setTimeout(function(){typeof o=="function"&&o()},n):typeof o=="function"&&o(),i=[]},animate:function(o,a,c,n){if(n){U(o,"transition",""),U(o,"transform","");var l=zt(this.el),u=l&&l.a,d=l&&l.d,h=(a.left-c.left)/(u||1),t=(a.top-c.top)/(d||1);o.animatingX=!!h,o.animatingY=!!t,U(o,"transform","translate3d("+h+"px,"+t+"px,0)"),this.forRepaintDummy=nu(o),U(o,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),U(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){U(o,"transition",""),U(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},n)}}}}function nu(i){return i.offsetWidth}function ru(i,r,e,o){return Math.sqrt(Math.pow(r.top-i.top,2)+Math.pow(r.left-i.left,2))/Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))*o.animation}var Zt=[],Fr={initializeByDefault:!0},$n={mount:function(r){for(var e in Fr)Fr.hasOwnProperty(e)&&!(e in r)&&(r[e]=Fr[e]);Zt.forEach(function(o){if(o.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),Zt.push(r)},pluginEvent:function(r,e,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var c=r+"Global";Zt.forEach(function(n){!e[n.pluginName]||(e[n.pluginName][c]&&e[n.pluginName][c](yt({sortable:e},o)),e.options[n.pluginName]&&e[n.pluginName][r]&&e[n.pluginName][r](yt({sortable:e},o)))})},initializePlugins:function(r,e,o,a){Zt.forEach(function(l){var u=l.pluginName;if(!(!r.options[u]&&!l.initializeByDefault)){var d=new l(r,e,r.options);d.sortable=r,d.options=r.options,r[u]=d,ot(o,d.defaults)}});for(var c in r.options)if(!!r.options.hasOwnProperty(c)){var n=this.modifyOption(r,c,r.options[c]);typeof n!="undefined"&&(r.options[c]=n)}},getEventProperties:function(r,e){var o={};return Zt.forEach(function(a){typeof a.eventProperties=="function"&&ot(o,a.eventProperties.call(e[a.pluginName],r))}),o},modifyOption:function(r,e,o){var a;return Zt.forEach(function(c){!r[c.pluginName]||c.optionListeners&&typeof c.optionListeners[e]=="function"&&(a=c.optionListeners[e].call(r[c.pluginName],o))}),a}};function xn(i){var r=i.sortable,e=i.rootEl,o=i.name,a=i.targetEl,c=i.cloneEl,n=i.toEl,l=i.fromEl,u=i.oldIndex,d=i.newIndex,h=i.oldDraggableIndex,t=i.newDraggableIndex,s=i.originalEvent,f=i.putSortable,p=i.extraEventProperties;if(r=r||e&&e[Ue],!!r){var v,g=r.options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ot&&!Vn?v=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(o,!0,!0)),v.to=n||e,v.from=l||e,v.item=a||e,v.clone=c,v.oldIndex=u,v.newIndex=d,v.oldDraggableIndex=h,v.newDraggableIndex=t,v.originalEvent=s,v.pullMode=f?f.lastPutMode:void 0;var y=yt(yt({},p),$n.getEventProperties(o,r));for(var b in y)v[b]=y[b];e&&e.dispatchEvent(v),g[m]&&g[m].call(r,v)}}var ou=["evt"],$e=function(r,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,c=Vl(o,ou);$n.pluginEvent.bind(Y)(r,e,yt({dragEl:N,parentEl:be,ghostEl:Z,rootEl:pe,nextEl:Yt,lastDownEl:ir,cloneEl:Se,cloneHidden:Ft,dragStarted:wn,putSortable:Le,activeSortable:Y.active,originalEvent:a,oldIndex:an,oldDraggableIndex:Nn,newIndex:Je,newDraggableIndex:Nt,hideGhostForTarget:ta,unhideGhostForTarget:na,cloneNowHidden:function(){Ft=!0},cloneNowShown:function(){Ft=!1},dispatchSortableEvent:function(l){Xe({sortable:e,name:l,originalEvent:a})}},c))};function Xe(i){xn(yt({putSortable:Le,cloneEl:Se,targetEl:N,rootEl:pe,oldIndex:an,oldDraggableIndex:Nn,newIndex:Je,newDraggableIndex:Nt},i))}var N,be,Z,pe,Yt,ir,Se,Ft,an,Je,Nn,Nt,Qn,Le,rn=!1,gr=!1,mr=[],Xt,st,Lr,Br,wo,To,wn,kt,Mn,Fn=!1,Jn=!1,sr,je,jr=[],qr=!1,yr=[],Or=typeof document!="undefined",Zn=_o,Io=Vn||Ot?"cssFloat":"float",au=Or&&!Jl&&!_o&&"draggable"in document.createElement("div"),ko=function(){if(!!Or){if(Ot)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),qo=function(r,e){var o=U(r),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),c=cn(r,0,e),n=cn(r,1,e),l=c&&U(c),u=n&&U(n),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ve(c).width,h=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+ve(n).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&l.float&&l.float!=="none"){var t=l.float==="left"?"left":"right";return n&&(u.clear==="both"||u.clear===t)?"vertical":"horizontal"}return c&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=a&&o[Io]==="none"||n&&o[Io]==="none"&&d+h>a)?"vertical":"horizontal"},iu=function(r,e,o){var a=o?r.left:r.top,c=o?r.right:r.bottom,n=o?r.width:r.height,l=o?e.left:e.top,u=o?e.right:e.bottom,d=o?e.width:e.height;return a===l||c===u||a+n/2===l+d/2},su=function(r,e){var o;return mr.some(function(a){var c=a[Ue].options.emptyInsertThreshold;if(!(!c||lo(a))){var n=ve(a),l=r>=n.left-c&&r<=n.right+c,u=e>=n.top-c&&e<=n.bottom+c;if(l&&u)return o=a}}),o},ea=function(r){function e(c,n){return function(l,u,d,h){var t=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(c==null&&(n||t))return!0;if(c==null||c===!1)return!1;if(n&&c==="clone")return c;if(typeof c=="function")return e(c(l,u,d,h),n)(l,u,d,h);var s=(n?l:u).options.group.name;return c===!0||typeof c=="string"&&c===s||c.join&&c.indexOf(s)>-1}}var o={},a=r.group;(!a||ar(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=e(a.pull,!0),o.checkPut=e(a.put),o.revertClone=a.revertClone,r.group=o},ta=function(){!ko&&Z&&U(Z,"display","none")},na=function(){!ko&&Z&&U(Z,"display","")};Or&&document.addEventListener("click",function(i){if(gr)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),gr=!1,!1},!0);var Kt=function(r){if(N){r=r.touches?r.touches[0]:r;var e=su(r.clientX,r.clientY);if(e){var o={};for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[Ue]._onDragOver(o)}}},lu=function(r){N&&N.parentNode[Ue]._isOutsideThisEl(r.target)};function Y(i,r){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=r=ot({},r),i[Ue]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qo(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(n,l){n.setData("Text",l.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:Y.supportPointer!==!1&&"PointerEvent"in window&&!Pn,emptyInsertThreshold:5};$n.initializePlugins(this,i,e);for(var o in e)!(o in r)&&(r[o]=e[o]);ea(r);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=r.forceFallback?!1:au,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ne(i,"pointerdown",this._onTapStart):(ne(i,"mousedown",this._onTapStart),ne(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(ne(i,"dragover",this),ne(i,"dragenter",this)),mr.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),ot(this,tu())}Y.prototype={constructor:Y,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(kt=null)},_getDirection:function(r,e){return typeof this.options.direction=="function"?this.options.direction.call(this,r,e,N):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var e=this,o=this.el,a=this.options,c=a.preventOnFilter,n=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,u=(l||r).target,d=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||u,h=a.filter;if(gu(o),!N&&!(/mousedown|pointerdown/.test(n)&&r.button!==0||a.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Pn&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ft(u,a.draggable,o,!1),!(u&&u.animated)&&ir!==u)){if(an=Ee(u),Nn=Ee(u,a.draggable),typeof h=="function"){if(h.call(this,r,u,this)){Xe({sortable:e,rootEl:d,name:"filter",targetEl:u,toEl:o,fromEl:o}),$e("filter",e,{evt:r}),c&&r.cancelable&&r.preventDefault();return}}else if(h&&(h=h.split(",").some(function(t){if(t=ft(d,t.trim(),o,!1),t)return Xe({sortable:e,rootEl:t,name:"filter",targetEl:u,fromEl:o,toEl:o}),$e("filter",e,{evt:r}),!0}),h)){c&&r.cancelable&&r.preventDefault();return}a.handle&&!ft(d,a.handle,o,!1)||this._prepareDragStart(r,l,u)}}},_prepareDragStart:function(r,e,o){var a=this,c=a.el,n=a.options,l=c.ownerDocument,u;if(o&&!N&&o.parentNode===c){var d=ve(o);if(pe=c,N=o,be=N.parentNode,Yt=N.nextSibling,ir=o,Qn=n.group,Y.dragged=N,Xt={target:N,clientX:(e||r).clientX,clientY:(e||r).clientY},wo=Xt.clientX-d.left,To=Xt.clientY-d.top,this._lastX=(e||r).clientX,this._lastY=(e||r).clientY,N.style["will-change"]="all",u=function(){if($e("delayEnded",a,{evt:r}),Y.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!bo&&a.nativeDraggable&&(N.draggable=!0),a._triggerDragStart(r,e),Xe({sortable:a,name:"choose",originalEvent:r}),ye(N,n.chosenClass,!0)},n.ignore.split(",").forEach(function(h){Qo(N,h.trim(),Gr)}),ne(l,"dragover",Kt),ne(l,"mousemove",Kt),ne(l,"touchmove",Kt),ne(l,"mouseup",a._onDrop),ne(l,"touchend",a._onDrop),ne(l,"touchcancel",a._onDrop),bo&&this.nativeDraggable&&(this.options.touchStartThreshold=4,N.draggable=!0),$e("delayStart",this,{evt:r}),n.delay&&(!n.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Vn||Ot))){if(Y.eventCanceled){this._onDrop();return}ne(l,"mouseup",a._disableDelayedDrag),ne(l,"touchend",a._disableDelayedDrag),ne(l,"touchcancel",a._disableDelayedDrag),ne(l,"mousemove",a._delayedDragTouchMoveHandler),ne(l,"touchmove",a._delayedDragTouchMoveHandler),n.supportPointer&&ne(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,n.delay)}else u()}},_delayedDragTouchMoveHandler:function(r){var e=r.touches?r.touches[0]:r;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){N&&Gr(N),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;te(r,"mouseup",this._disableDelayedDrag),te(r,"touchend",this._disableDelayedDrag),te(r,"touchcancel",this._disableDelayedDrag),te(r,"mousemove",this._delayedDragTouchMoveHandler),te(r,"touchmove",this._delayedDragTouchMoveHandler),te(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,e){e=e||r.pointerType=="touch"&&r,!this.nativeDraggable||e?this.options.supportPointer?ne(document,"pointermove",this._onTouchMove):e?ne(document,"touchmove",this._onTouchMove):ne(document,"mousemove",this._onTouchMove):(ne(N,"dragend",this),ne(pe,"dragstart",this._onDragStart));try{document.selection?lr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,e){if(rn=!1,pe&&N){$e("dragStarted",this,{evt:e}),this.nativeDraggable&&ne(document,"dragover",lu);var o=this.options;!r&&ye(N,o.dragClass,!1),ye(N,o.ghostClass,!0),Y.active=this,r&&this._appendGhost(),Xe({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(st){this._lastX=st.clientX,this._lastY=st.clientY,ta();for(var r=document.elementFromPoint(st.clientX,st.clientY),e=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(st.clientX,st.clientY),r!==e);)e=r;if(N.parentNode[Ue]._isOutsideThisEl(r),e)do{if(e[Ue]){var o=void 0;if(o=e[Ue]._onDragOver({clientX:st.clientX,clientY:st.clientY,target:r,rootEl:e}),o&&!this.options.dragoverBubble)break}r=e}while(e=e.parentNode);na()}},_onTouchMove:function(r){if(Xt){var e=this.options,o=e.fallbackTolerance,a=e.fallbackOffset,c=r.touches?r.touches[0]:r,n=Z&&zt(Z,!0),l=Z&&n&&n.a,u=Z&&n&&n.d,d=Zn&&je&&Eo(je),h=(c.clientX-Xt.clientX+a.x)/(l||1)+(d?d[0]-jr[0]:0)/(l||1),t=(c.clientY-Xt.clientY+a.y)/(u||1)+(d?d[1]-jr[1]:0)/(u||1);if(!Y.active&&!rn){if(o&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<o)return;this._onDragStart(r,!0)}if(Z){n?(n.e+=h-(Lr||0),n.f+=t-(Br||0)):n={a:1,b:0,c:0,d:1,e:h,f:t};var s="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");U(Z,"webkitTransform",s),U(Z,"mozTransform",s),U(Z,"msTransform",s),U(Z,"transform",s),Lr=h,Br=t,st=c}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!Z){var r=this.options.fallbackOnBody?document.body:pe,e=ve(N,!0,Zn,!0,r),o=this.options;if(Zn){for(je=r;U(je,"position")==="static"&&U(je,"transform")==="none"&&je!==document;)je=je.parentNode;je!==document.body&&je!==document.documentElement?(je===document&&(je=vt()),e.top+=je.scrollTop,e.left+=je.scrollLeft):je=vt(),jr=Eo(je)}Z=N.cloneNode(!0),ye(Z,o.ghostClass,!1),ye(Z,o.fallbackClass,!0),ye(Z,o.dragClass,!0),U(Z,"transition",""),U(Z,"transform",""),U(Z,"box-sizing","border-box"),U(Z,"margin",0),U(Z,"top",e.top),U(Z,"left",e.left),U(Z,"width",e.width),U(Z,"height",e.height),U(Z,"opacity","0.8"),U(Z,"position",Zn?"absolute":"fixed"),U(Z,"zIndex","100000"),U(Z,"pointerEvents","none"),Y.ghost=Z,r.appendChild(Z),U(Z,"transform-origin",wo/parseInt(Z.style.width)*100+"% "+To/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(r,e){var o=this,a=r.dataTransfer,c=o.options;if($e("dragStart",this,{evt:r}),Y.eventCanceled){this._onDrop();return}$e("setupClone",this),Y.eventCanceled||(Se=uo(N),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),ye(Se,this.options.chosenClass,!1),Y.clone=Se),o.cloneId=lr(function(){$e("clone",o),!Y.eventCanceled&&(o.options.removeCloneOnHide||pe.insertBefore(Se,N),o._hideClone(),Xe({sortable:o,name:"clone"}))}),!e&&ye(N,c.dragClass,!0),e?(gr=!0,o._loopId=setInterval(o._emulateDragOver,50)):(te(document,"mouseup",o._onDrop),te(document,"touchend",o._onDrop),te(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",c.setData&&c.setData.call(o,a,N)),ne(document,"drop",o),U(N,"transform","translateZ(0)")),rn=!0,o._dragStartId=lr(o._dragStarted.bind(o,e,r)),ne(document,"selectstart",o),wn=!0,Pn&&U(document.body,"user-select","none")},_onDragOver:function(r){var e=this.el,o=r.target,a,c,n,l=this.options,u=l.group,d=Y.active,h=Qn===u,t=l.sort,s=Le||d,f,p=this,v=!1;if(qr)return;function g(ee,le){$e(ee,p,yt({evt:r,isOwner:h,axis:f?"vertical":"horizontal",revert:n,dragRect:a,targetRect:c,canSort:t,fromSortable:s,target:o,completed:y,onMove:function(ce,fe){return kn(pe,e,N,a,ce,ve(ce),r,fe)},changed:b},le))}function m(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==s&&s.captureAnimationState()}function y(ee){return g("dragOverCompleted",{insertion:ee}),ee&&(h?d._hideClone():d._showClone(p),p!==s&&(ye(N,Le?Le.options.ghostClass:d.options.ghostClass,!1),ye(N,l.ghostClass,!0)),Le!==p&&p!==Y.active?Le=p:p===Y.active&&Le&&(Le=null),s===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(o===N&&!N.animated||o===e&&!o.animated)&&(kt=null),!l.dragoverBubble&&!r.rootEl&&o!==document&&(N.parentNode[Ue]._isOutsideThisEl(r.target),!ee&&Kt(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),v=!0}function b(){Je=Ee(N),Nt=Ee(N,l.draggable),Xe({sortable:p,name:"change",toEl:e,newIndex:Je,newDraggableIndex:Nt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),o=ft(o,l.draggable,e,!0),g("dragOver"),Y.eventCanceled)return v;if(N.contains(r.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return y(!1);if(gr=!1,d&&!l.disabled&&(h?t||(n=be!==pe):Le===this||(this.lastPutMode=Qn.checkPull(this,d,N,r))&&u.checkPut(this,d,N,r))){if(f=this._getDirection(r,o)==="vertical",a=ve(N),g("dragOverValid"),Y.eventCanceled)return v;if(n)return be=pe,m(),this._hideClone(),g("revert"),Y.eventCanceled||(Yt?pe.insertBefore(N,Yt):pe.appendChild(N)),y(!0);var A=lo(e,l.draggable);if(!A||du(r,f,this)&&!A.animated){if(A===N)return y(!1);if(A&&e===r.target&&(o=A),o&&(c=ve(o)),kn(pe,e,N,a,o,c,r,!!o)!==!1)return m(),e.appendChild(N),be=e,b(),y(!0)}else if(A&&fu(r,f,this)){var I=cn(e,0,l,!0);if(I===N)return y(!1);if(o=I,c=ve(o),kn(pe,e,N,a,o,c,r,!1)!==!1)return m(),e.insertBefore(N,I),be=e,b(),y(!0)}else if(o.parentNode===e){c=ve(o);var T=0,B,j=N.parentNode!==e,x=!iu(N.animated&&N.toRect||a,o.animated&&o.toRect||c,f),M=f?"top":"left",L=So(o,"top","top")||So(N,"top","top"),V=L?L.scrollTop:void 0;kt!==o&&(B=c[M],Fn=!1,Jn=!x&&l.invertSwap||j),T=pu(r,o,c,f,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Jn,kt===o);var D;if(T!==0){var P=Ee(N);do P-=T,D=be.children[P];while(D&&(U(D,"display")==="none"||D===Z))}if(T===0||D===o)return y(!1);kt=o,Mn=T;var K=o.nextElementSibling,F=!1;F=T===1;var X=kn(pe,e,N,a,o,c,r,F);if(X!==!1)return(X===1||X===-1)&&(F=X===1),qr=!0,setTimeout(cu,30),m(),F&&!K?e.appendChild(N):o.parentNode.insertBefore(N,F?K:o),L&&Zo(L,0,V-L.scrollTop),be=N.parentNode,B!==void 0&&!Jn&&(sr=Math.abs(B-ve(o)[M])),b(),y(!0)}if(e.contains(N))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){te(document,"mousemove",this._onTouchMove),te(document,"touchmove",this._onTouchMove),te(document,"pointermove",this._onTouchMove),te(document,"dragover",Kt),te(document,"mousemove",Kt),te(document,"touchmove",Kt)},_offUpEvents:function(){var r=this.el.ownerDocument;te(r,"mouseup",this._onDrop),te(r,"touchend",this._onDrop),te(r,"pointerup",this._onDrop),te(r,"touchcancel",this._onDrop),te(document,"selectstart",this)},_onDrop:function(r){var e=this.el,o=this.options;if(Je=Ee(N),Nt=Ee(N,o.draggable),$e("drop",this,{evt:r}),be=N&&N.parentNode,Je=Ee(N),Nt=Ee(N,o.draggable),Y.eventCanceled){this._nulling();return}rn=!1,Jn=!1,Fn=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),eo(this.cloneId),eo(this._dragStartId),this.nativeDraggable&&(te(document,"drop",this),te(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pn&&U(document.body,"user-select",""),U(N,"transform",""),r&&(wn&&(r.cancelable&&r.preventDefault(),!o.dropBubble&&r.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),(pe===be||Le&&Le.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),N&&(this.nativeDraggable&&te(N,"dragend",this),Gr(N),N.style["will-change"]="",wn&&!rn&&ye(N,Le?Le.options.ghostClass:this.options.ghostClass,!1),ye(N,this.options.chosenClass,!1),Xe({sortable:this,name:"unchoose",toEl:be,newIndex:null,newDraggableIndex:null,originalEvent:r}),pe!==be?(Je>=0&&(Xe({rootEl:be,name:"add",toEl:be,fromEl:pe,originalEvent:r}),Xe({sortable:this,name:"remove",toEl:be,originalEvent:r}),Xe({rootEl:be,name:"sort",toEl:be,fromEl:pe,originalEvent:r}),Xe({sortable:this,name:"sort",toEl:be,originalEvent:r})),Le&&Le.save()):Je!==an&&Je>=0&&(Xe({sortable:this,name:"update",toEl:be,originalEvent:r}),Xe({sortable:this,name:"sort",toEl:be,originalEvent:r})),Y.active&&((Je==null||Je===-1)&&(Je=an,Nt=Nn),Xe({sortable:this,name:"end",toEl:be,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){$e("nulling",this),pe=N=be=Z=Yt=Se=ir=Ft=Xt=st=wn=Je=Nt=an=Nn=kt=Mn=Le=Qn=Y.dragged=Y.ghost=Y.clone=Y.active=null,yr.forEach(function(r){r.checked=!0}),yr.length=Lr=Br=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":N&&(this._onDragOver(r),uu(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],e,o=this.el.children,a=0,c=o.length,n=this.options;a<c;a++)e=o[a],ft(e,n.draggable,this.el,!1)&&r.push(e.getAttribute(n.dataIdAttr)||vu(e));return r},sort:function(r,e){var o={},a=this.el;this.toArray().forEach(function(c,n){var l=a.children[n];ft(l,this.options.draggable,a,!1)&&(o[c]=l)},this),e&&this.captureAnimationState(),r.forEach(function(c){o[c]&&(a.removeChild(o[c]),a.appendChild(o[c]))}),e&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,e){return ft(r,e||this.options.draggable,this.el,!1)},option:function(r,e){var o=this.options;if(e===void 0)return o[r];var a=$n.modifyOption(this,r,e);typeof a!="undefined"?o[r]=a:o[r]=e,r==="group"&&ea(o)},destroy:function(){$e("destroy",this);var r=this.el;r[Ue]=null,te(r,"mousedown",this._onTapStart),te(r,"touchstart",this._onTapStart),te(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(te(r,"dragover",this),te(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),mr.splice(mr.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Ft){if($e("hideClone",this),Y.eventCanceled)return;U(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),Ft=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Ft){if($e("showClone",this),Y.eventCanceled)return;N.parentNode==pe&&!this.options.group.revertClone?pe.insertBefore(Se,N):Yt?pe.insertBefore(Se,Yt):pe.appendChild(Se),this.options.group.revertClone&&this.animate(N,Se),U(Se,"display",""),Ft=!1}}};function uu(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function kn(i,r,e,o,a,c,n,l){var u,d=i[Ue],h=d.options.onMove,t;return window.CustomEvent&&!Ot&&!Vn?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=r,u.from=i,u.dragged=e,u.draggedRect=o,u.related=a||r,u.relatedRect=c||ve(r),u.willInsertAfter=l,u.originalEvent=n,i.dispatchEvent(u),h&&(t=h.call(d,u,n)),t}function Gr(i){i.draggable=!1}function cu(){qr=!1}function fu(i,r,e){var o=ve(cn(e.el,0,e.options,!0)),a=10;return r?i.clientX<o.left-a||i.clientY<o.top&&i.clientX<o.right:i.clientY<o.top-a||i.clientY<o.bottom&&i.clientX<o.left}function du(i,r,e){var o=ve(lo(e.el,e.options.draggable)),a=10;return r?i.clientX>o.right+a||i.clientX<=o.right&&i.clientY>o.bottom&&i.clientX>=o.left:i.clientX>o.right&&i.clientY>o.top||i.clientX<=o.right&&i.clientY>o.bottom+a}function pu(i,r,e,o,a,c,n,l){var u=o?i.clientY:i.clientX,d=o?e.height:e.width,h=o?e.top:e.left,t=o?e.bottom:e.right,s=!1;if(!n){if(l&&sr<d*a){if(!Fn&&(Mn===1?u>h+d*c/2:u<t-d*c/2)&&(Fn=!0),Fn)s=!0;else if(Mn===1?u<h+sr:u>t-sr)return-Mn}else if(u>h+d*(1-a)/2&&u<t-d*(1-a)/2)return hu(r)}return s=s||n,s&&(u<h+d*c/2||u>t-d*c/2)?u>h+d/2?1:-1:0}function hu(i){return Ee(N)<Ee(i)?1:-1}function vu(i){for(var r=i.tagName+i.className+i.src+i.href+i.textContent,e=r.length,o=0;e--;)o+=r.charCodeAt(e);return o.toString(36)}function gu(i){yr.length=0;for(var r=i.getElementsByTagName("input"),e=r.length;e--;){var o=r[e];o.checked&&yr.push(o)}}function lr(i){return setTimeout(i,0)}function eo(i){return clearTimeout(i)}Or&&ne(document,"touchmove",function(i){(Y.active||rn)&&i.cancelable&&i.preventDefault()});Y.utils={on:ne,off:te,css:U,find:Qo,is:function(r,e){return!!ft(r,e,r,!1)},extend:ql,throttle:Jo,closest:ft,toggleClass:ye,clone:uo,index:Ee,nextTick:lr,cancelNextTick:eo,detectDirection:qo,getChild:cn};Y.get=function(i){return i[Ue]};Y.mount=function(){for(var i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];r[0].constructor===Array&&(r=r[0]),r.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Y.utils=yt(yt({},Y.utils),o.utils)),$n.mount(o)})};Y.create=function(i,r){return new Y(i,r)};Y.version=Ql;var Te=[],Tn,to,no=!1,Ur,Hr,br,In;function mu(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return i.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?ne(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ne(document,"pointermove",this._handleFallbackAutoScroll):o.touches?ne(document,"touchmove",this._handleFallbackAutoScroll):ne(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?te(document,"dragover",this._handleAutoScroll):(te(document,"pointermove",this._handleFallbackAutoScroll),te(document,"touchmove",this._handleFallbackAutoScroll),te(document,"mousemove",this._handleFallbackAutoScroll)),Oo(),ur(),eu()},nulling:function(){br=to=Tn=no=In=Ur=Hr=null,Te.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var a=this,c=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(c,n);if(br=e,o||this.options.forceAutoScrollFallback||Vn||Ot||Pn){Xr(e,this.options,l,o);var u=Bt(l,!0);no&&(!In||c!==Ur||n!==Hr)&&(In&&Oo(),In=setInterval(function(){var d=Bt(document.elementFromPoint(c,n),!0);d!==u&&(u=d,ur()),Xr(e,a.options,d,o)},10),Ur=c,Hr=n)}else{if(!this.options.bubbleScroll||Bt(l,!0)===vt()){ur();return}Xr(e,this.options,Bt(l,!1),!1)}}},ot(i,{pluginName:"scroll",initializeByDefault:!0})}function ur(){Te.forEach(function(i){clearInterval(i.pid)}),Te=[]}function Oo(){clearInterval(In)}var Xr=Jo(function(i,r,e,o){if(!!r.scroll){var a=(i.touches?i.touches[0]:i).clientX,c=(i.touches?i.touches[0]:i).clientY,n=r.scrollSensitivity,l=r.scrollSpeed,u=vt(),d=!1,h;to!==e&&(to=e,ur(),Tn=r.scroll,h=r.scrollFn,Tn===!0&&(Tn=Bt(e,!0)));var t=0,s=Tn;do{var f=s,p=ve(f),v=p.top,g=p.bottom,m=p.left,y=p.right,b=p.width,A=p.height,I=void 0,T=void 0,B=f.scrollWidth,j=f.scrollHeight,x=U(f),M=f.scrollLeft,L=f.scrollTop;f===u?(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"));var V=I&&(Math.abs(y-a)<=n&&M+b<B)-(Math.abs(m-a)<=n&&!!M),D=T&&(Math.abs(g-c)<=n&&L+A<j)-(Math.abs(v-c)<=n&&!!L);if(!Te[t])for(var P=0;P<=t;P++)Te[P]||(Te[P]={});(Te[t].vx!=V||Te[t].vy!=D||Te[t].el!==f)&&(Te[t].el=f,Te[t].vx=V,Te[t].vy=D,clearInterval(Te[t].pid),(V!=0||D!=0)&&(d=!0,Te[t].pid=setInterval(function(){o&&this.layer===0&&Y.active._onTouchMove(br);var K=Te[this.layer].vy?Te[this.layer].vy*l:0,F=Te[this.layer].vx?Te[this.layer].vx*l:0;typeof h=="function"&&h.call(Y.dragged.parentNode[Ue],F,K,i,br,Te[this.layer].el)!=="continue"||Zo(Te[this.layer].el,F,K)}.bind({layer:t}),24))),t++}while(r.bubbleScroll&&s!==u&&(s=Bt(s,!1)));no=d}},30),ra=function(r){var e=r.originalEvent,o=r.putSortable,a=r.dragEl,c=r.activeSortable,n=r.dispatchSortableEvent,l=r.hideGhostForTarget,u=r.unhideGhostForTarget;if(!!e){var d=o||c;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,t=document.elementFromPoint(h.clientX,h.clientY);u(),d&&!d.el.contains(t)&&(n("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function co(){}co.prototype={startIndex:null,dragStart:function(r){var e=r.oldDraggableIndex;this.startIndex=e},onSpill:function(r){var e=r.dragEl,o=r.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=cn(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:ra};ot(co,{pluginName:"revertOnSpill"});function fo(){}fo.prototype={onSpill:function(r){var e=r.dragEl,o=r.putSortable,a=o||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:ra};ot(fo,{pluginName:"removeOnSpill"});var tt;function yu(){function i(){this.defaults={swapClass:"sortable-swap-highlight"}}return i.prototype={dragStart:function(e){var o=e.dragEl;tt=o},dragOverValid:function(e){var o=e.completed,a=e.target,c=e.onMove,n=e.activeSortable,l=e.changed,u=e.cancel;if(!!n.options.swap){var d=this.sortable.el,h=this.options;if(a&&a!==d){var t=tt;c(a)!==!1?(ye(a,h.swapClass,!0),tt=a):tt=null,t&&t!==tt&&ye(t,h.swapClass,!1)}l(),o(!0),u()}},drop:function(e){var o=e.activeSortable,a=e.putSortable,c=e.dragEl,n=a||this.sortable,l=this.options;tt&&ye(tt,l.swapClass,!1),tt&&(l.swap||a&&a.options.swap)&&c!==tt&&(n.captureAnimationState(),n!==o&&o.captureAnimationState(),bu(c,tt),n.animateAll(),n!==o&&o.animateAll())},nulling:function(){tt=null}},ot(i,{pluginName:"swap",eventProperties:function(){return{swapItem:tt}}})}function bu(i,r){var e=i.parentNode,o=r.parentNode,a,c;!e||!o||e.isEqualNode(r)||o.isEqualNode(i)||(a=Ee(i),c=Ee(r),e.isEqualNode(o)&&a<c&&c++,e.insertBefore(r,e.children[a]),o.insertBefore(i,o.children[c]))}var J=[],ze=[],An,lt,Sn=!1,Ye=!1,qt=!1,ue,En,qn;function Au(){function i(r){for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));r.options.supportPointer?ne(document,"pointerup",this._deselectMultiDrag):(ne(document,"mouseup",this._deselectMultiDrag),ne(document,"touchend",this._deselectMultiDrag)),ne(document,"keydown",this._checkKeyDown),ne(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(a,c){var n="";J.length&&lt===r?J.forEach(function(l,u){n+=(u?", ":"")+l.textContent}):n=c.textContent,a.setData("Text",n)}}}return i.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var o=e.dragEl;ue=o},delayEnded:function(){this.isMultiDrag=~J.indexOf(ue)},setupClone:function(e){var o=e.sortable,a=e.cancel;if(!!this.isMultiDrag){for(var c=0;c<J.length;c++)ze.push(uo(J[c])),ze[c].sortableIndex=J[c].sortableIndex,ze[c].draggable=!1,ze[c].style["will-change"]="",ye(ze[c],this.options.selectedClass,!1),J[c]===ue&&ye(ze[c],this.options.chosenClass,!1);o._hideClone(),a()}},clone:function(e){var o=e.sortable,a=e.rootEl,c=e.dispatchSortableEvent,n=e.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||J.length&&lt===o&&(Do(!0,a),c("clone"),n())},showClone:function(e){var o=e.cloneNowShown,a=e.rootEl,c=e.cancel;!this.isMultiDrag||(Do(!1,a),ze.forEach(function(n){U(n,"display","")}),o(),qn=!1,c())},hideClone:function(e){var o=this;e.sortable;var a=e.cloneNowHidden,c=e.cancel;!this.isMultiDrag||(ze.forEach(function(n){U(n,"display","none"),o.options.removeCloneOnHide&&n.parentNode&&n.parentNode.removeChild(n)}),a(),qn=!0,c())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&lt&&lt.multiDrag._deselectMultiDrag(),J.forEach(function(o){o.sortableIndex=Ee(o)}),J=J.sort(function(o,a){return o.sortableIndex-a.sortableIndex}),qt=!0},dragStarted:function(e){var o=this,a=e.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(a.captureAnimationState(),this.options.animation)){J.forEach(function(n){n!==ue&&U(n,"position","absolute")});var c=ve(ue,!1,!0,!0);J.forEach(function(n){n!==ue&&xo(n,c)}),Ye=!0,Sn=!0}a.animateAll(function(){Ye=!1,Sn=!1,o.options.animation&&J.forEach(function(n){Mr(n)}),o.options.sort&&er()})}},dragOver:function(e){var o=e.target,a=e.completed,c=e.cancel;Ye&&~J.indexOf(o)&&(a(!1),c())},revert:function(e){var o=e.fromSortable,a=e.rootEl,c=e.sortable,n=e.dragRect;J.length>1&&(J.forEach(function(l){c.addAnimationState({target:l,rect:Ye?ve(l):n}),Mr(l),l.fromRect=n,o.removeAnimationState(l)}),Ye=!1,Su(!this.options.removeCloneOnHide,a))},dragOverCompleted:function(e){var o=e.sortable,a=e.isOwner,c=e.insertion,n=e.activeSortable,l=e.parentEl,u=e.putSortable,d=this.options;if(c){if(a&&n._hideClone(),Sn=!1,d.animation&&J.length>1&&(Ye||!a&&!n.options.sort&&!u)){var h=ve(ue,!1,!0,!0);J.forEach(function(s){s!==ue&&(xo(s,h),l.appendChild(s))}),Ye=!0}if(!a)if(Ye||er(),J.length>1){var t=qn;n._showClone(o),n.options.animation&&!qn&&t&&ze.forEach(function(s){n.addAnimationState({target:s,rect:En}),s.fromRect=En,s.thisAnimationDuration=null})}else n._showClone(o)}},dragOverAnimationCapture:function(e){var o=e.dragRect,a=e.isOwner,c=e.activeSortable;if(J.forEach(function(l){l.thisAnimationDuration=null}),c.options.animation&&!a&&c.multiDrag.isMultiDrag){En=ot({},o);var n=zt(ue,!0);En.top-=n.f,En.left-=n.e}},dragOverAnimationComplete:function(){Ye&&(Ye=!1,er())},drop:function(e){var o=e.originalEvent,a=e.rootEl,c=e.parentEl,n=e.sortable,l=e.dispatchSortableEvent,u=e.oldIndex,d=e.putSortable,h=d||this.sortable;if(!!o){var t=this.options,s=c.children;if(!qt)if(t.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ye(ue,t.selectedClass,!~J.indexOf(ue)),~J.indexOf(ue))J.splice(J.indexOf(ue),1),An=null,xn({sortable:n,rootEl:a,name:"deselect",targetEl:ue,originalEvt:o});else{if(J.push(ue),xn({sortable:n,rootEl:a,name:"select",targetEl:ue,originalEvt:o}),o.shiftKey&&An&&n.el.contains(An)){var f=Ee(An),p=Ee(ue);if(~f&&~p&&f!==p){var v,g;for(p>f?(g=f,v=p):(g=p,v=f+1);g<v;g++)~J.indexOf(s[g])||(ye(s[g],t.selectedClass,!0),J.push(s[g]),xn({sortable:n,rootEl:a,name:"select",targetEl:s[g],originalEvt:o}))}}else An=ue;lt=h}if(qt&&this.isMultiDrag){if(Ye=!1,(c[Ue].options.sort||c!==a)&&J.length>1){var m=ve(ue),y=Ee(ue,":not(."+this.options.selectedClass+")");if(!Sn&&t.animation&&(ue.thisAnimationDuration=null),h.captureAnimationState(),!Sn&&(t.animation&&(ue.fromRect=m,J.forEach(function(A){if(A.thisAnimationDuration=null,A!==ue){var I=Ye?ve(A):m;A.fromRect=I,h.addAnimationState({target:A,rect:I})}})),er(),J.forEach(function(A){s[y]?c.insertBefore(A,s[y]):c.appendChild(A),y++}),u===Ee(ue))){var b=!1;J.forEach(function(A){if(A.sortableIndex!==Ee(A)){b=!0;return}}),b&&l("update")}J.forEach(function(A){Mr(A)}),h.animateAll()}lt=h}(a===c||d&&d.lastPutMode!=="clone")&&ze.forEach(function(A){A.parentNode&&A.parentNode.removeChild(A)})}},nullingGlobal:function(){this.isMultiDrag=qt=!1,ze.length=0},destroyGlobal:function(){this._deselectMultiDrag(),te(document,"pointerup",this._deselectMultiDrag),te(document,"mouseup",this._deselectMultiDrag),te(document,"touchend",this._deselectMultiDrag),te(document,"keydown",this._checkKeyDown),te(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof qt!="undefined"&&qt)&&lt===this.sortable&&!(e&&ft(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;J.length;){var o=J[0];ye(o,this.options.selectedClass,!1),J.shift(),xn({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},ot(i,{pluginName:"multiDrag",utils:{select:function(e){var o=e.parentNode[Ue];!o||!o.options.multiDrag||~J.indexOf(e)||(lt&&lt!==o&&(lt.multiDrag._deselectMultiDrag(),lt=o),ye(e,o.options.selectedClass,!0),J.push(e))},deselect:function(e){var o=e.parentNode[Ue],a=J.indexOf(e);!o||!o.options.multiDrag||!~a||(ye(e,o.options.selectedClass,!1),J.splice(a,1))}},eventProperties:function(){var e=this,o=[],a=[];return J.forEach(function(c){o.push({multiDragElement:c,index:c.sortableIndex});var n;Ye&&c!==ue?n=-1:Ye?n=Ee(c,":not(."+e.options.selectedClass+")"):n=Ee(c),a.push({multiDragElement:c,index:n})}),{items:$l(J),clones:[].concat(ze),oldIndicies:o,newIndicies:a}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Su(i,r){J.forEach(function(e,o){var a=r.children[e.sortableIndex+(i?Number(o):0)];a?r.insertBefore(e,a):r.appendChild(e)})}function Do(i,r){ze.forEach(function(e,o){var a=r.children[e.sortableIndex+(i?Number(o):0)];a?r.insertBefore(e,a):r.appendChild(e)})}function er(){J.forEach(function(i){i!==ue&&i.parentNode&&i.parentNode.removeChild(i)})}Y.mount(new mu);Y.mount(fo,co);var Eu=Object.freeze(Object.defineProperty({__proto__:null,default:Y,MultiDrag:Au,Sortable:Y,Swap:yu},Symbol.toStringTag,{value:"Module"})),xu=Ko(Eu);(function(i,r){(function(o,a){i.exports=a(Hl,xu)})(typeof self!="undefined"?self:nn,function(e,o){return function(a){var c={};function n(l){if(c[l])return c[l].exports;var u=c[l]={i:l,l:!1,exports:{}};return a[l].call(u.exports,u,u.exports,n),u.l=!0,u.exports}return n.m=a,n.c=c,n.d=function(l,u,d){n.o(l,u)||Object.defineProperty(l,u,{enumerable:!0,get:d})},n.r=function(l){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},n.t=function(l,u){if(u&1&&(l=n(l)),u&8||u&4&&typeof l=="object"&&l&&l.__esModule)return l;var d=Object.create(null);if(n.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:l}),u&2&&typeof l!="string")for(var h in l)n.d(d,h,function(t){return l[t]}.bind(null,h));return d},n.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return n.d(u,"a",u),u},n.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},n.p="",n(n.s="fb15")}({"00ee":function(a,c,n){var l=n("b622"),u=l("toStringTag"),d={};d[u]="z",a.exports=String(d)==="[object z]"},"0366":function(a,c,n){var l=n("1c0b");a.exports=function(u,d,h){if(l(u),d===void 0)return u;switch(h){case 0:return function(){return u.call(d)};case 1:return function(t){return u.call(d,t)};case 2:return function(t,s){return u.call(d,t,s)};case 3:return function(t,s,f){return u.call(d,t,s,f)}}return function(){return u.apply(d,arguments)}}},"057f":function(a,c,n){var l=n("fc6a"),u=n("241c").f,d={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],t=function(s){try{return u(s)}catch{return h.slice()}};a.exports.f=function(f){return h&&d.call(f)=="[object Window]"?t(f):u(l(f))}},"06cf":function(a,c,n){var l=n("83ab"),u=n("d1e7"),d=n("5c6c"),h=n("fc6a"),t=n("c04e"),s=n("5135"),f=n("0cfb"),p=Object.getOwnPropertyDescriptor;c.f=l?p:function(g,m){if(g=h(g),m=t(m,!0),f)try{return p(g,m)}catch{}if(s(g,m))return d(!u.f.call(g,m),g[m])}},"0cfb":function(a,c,n){var l=n("83ab"),u=n("d039"),d=n("cc12");a.exports=!l&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,c,n){var l=n("23e7"),u=n("d58f").left,d=n("a640"),h=n("ae40"),t=d("reduce"),s=h("reduce",{1:0});l({target:"Array",proto:!0,forced:!t||!s},{reduce:function(p){return u(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,c,n){var l=n("c6b6"),u=n("9263");a.exports=function(d,h){var t=d.exec;if(typeof t=="function"){var s=t.call(d,h);if(typeof s!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return s}if(l(d)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(d,h)}},"159b":function(a,c,n){var l=n("da84"),u=n("fdbc"),d=n("17c2"),h=n("9112");for(var t in u){var s=l[t],f=s&&s.prototype;if(f&&f.forEach!==d)try{h(f,"forEach",d)}catch{f.forEach=d}}},"17c2":function(a,c,n){var l=n("b727").forEach,u=n("a640"),d=n("ae40"),h=u("forEach"),t=d("forEach");a.exports=!h||!t?function(f){return l(this,f,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,c,n){var l=n("d066");a.exports=l("document","documentElement")},"1c0b":function(a,c){a.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},"1c7e":function(a,c,n){var l=n("b622"),u=l("iterator"),d=!1;try{var h=0,t={next:function(){return{done:!!h++}},return:function(){d=!0}};t[u]=function(){return this},Array.from(t,function(){throw 2})}catch{}a.exports=function(s,f){if(!f&&!d)return!1;var p=!1;try{var v={};v[u]=function(){return{next:function(){return{done:p=!0}}}},s(v)}catch{}return p}},"1d80":function(a,c){a.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},"1dde":function(a,c,n){var l=n("d039"),u=n("b622"),d=n("2d00"),h=u("species");a.exports=function(t){return d>=51||!l(function(){var s=[],f=s.constructor={};return f[h]=function(){return{foo:1}},s[t](Boolean).foo!==1})}},"23cb":function(a,c,n){var l=n("a691"),u=Math.max,d=Math.min;a.exports=function(h,t){var s=l(h);return s<0?u(s+t,0):d(s,t)}},"23e7":function(a,c,n){var l=n("da84"),u=n("06cf").f,d=n("9112"),h=n("6eeb"),t=n("ce4e"),s=n("e893"),f=n("94ca");a.exports=function(p,v){var g=p.target,m=p.global,y=p.stat,b,A,I,T,B,j;if(m?A=l:y?A=l[g]||t(g,{}):A=(l[g]||{}).prototype,A)for(I in v){if(B=v[I],p.noTargetGet?(j=u(A,I),T=j&&j.value):T=A[I],b=f(m?I:g+(y?".":"#")+I,p.forced),!b&&T!==void 0){if(typeof B==typeof T)continue;s(B,T)}(p.sham||T&&T.sham)&&d(B,"sham",!0),h(A,I,B,p)}}},"241c":function(a,c,n){var l=n("ca84"),u=n("7839"),d=u.concat("length","prototype");c.f=Object.getOwnPropertyNames||function(t){return l(t,d)}},"25f0":function(a,c,n){var l=n("6eeb"),u=n("825a"),d=n("d039"),h=n("ad6d"),t="toString",s=RegExp.prototype,f=s[t],p=d(function(){return f.call({source:"a",flags:"b"})!="/a/b"}),v=f.name!=t;(p||v)&&l(RegExp.prototype,t,function(){var m=u(this),y=String(m.source),b=m.flags,A=String(b===void 0&&m instanceof RegExp&&!("flags"in s)?h.call(m):b);return"/"+y+"/"+A},{unsafe:!0})},"2ca0":function(a,c,n){var l=n("23e7"),u=n("06cf").f,d=n("50c4"),h=n("5a34"),t=n("1d80"),s=n("ab13"),f=n("c430"),p="".startsWith,v=Math.min,g=s("startsWith"),m=!f&&!g&&!!function(){var y=u(String.prototype,"startsWith");return y&&!y.writable}();l({target:"String",proto:!0,forced:!m&&!g},{startsWith:function(b){var A=String(t(this));h(b);var I=d(v(arguments.length>1?arguments[1]:void 0,A.length)),T=String(b);return p?p.call(A,T,I):A.slice(I,I+T.length)===T}})},"2d00":function(a,c,n){var l=n("da84"),u=n("342f"),d=l.process,h=d&&d.versions,t=h&&h.v8,s,f;t?(s=t.split("."),f=s[0]+s[1]):u&&(s=u.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=u.match(/Chrome\/(\d+)/),s&&(f=s[1]))),a.exports=f&&+f},"342f":function(a,c,n){var l=n("d066");a.exports=l("navigator","userAgent")||""},"35a1":function(a,c,n){var l=n("f5df"),u=n("3f8c"),d=n("b622"),h=d("iterator");a.exports=function(t){if(t!=null)return t[h]||t["@@iterator"]||u[l(t)]}},"37e8":function(a,c,n){var l=n("83ab"),u=n("9bf2"),d=n("825a"),h=n("df75");a.exports=l?Object.defineProperties:function(s,f){d(s);for(var p=h(f),v=p.length,g=0,m;v>g;)u.f(s,m=p[g++],f[m]);return s}},"3bbe":function(a,c,n){var l=n("861d");a.exports=function(u){if(!l(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(a,c,n){var l=n("6547").charAt,u=n("69f3"),d=n("7dd0"),h="String Iterator",t=u.set,s=u.getterFor(h);d(String,"String",function(f){t(this,{type:h,string:String(f),index:0})},function(){var p=s(this),v=p.string,g=p.index,m;return g>=v.length?{value:void 0,done:!0}:(m=l(v,g),p.index+=m.length,{value:m,done:!1})})},"3f8c":function(a,c){a.exports={}},4160:function(a,c,n){var l=n("23e7"),u=n("17c2");l({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(a,c,n){var l=n("da84");a.exports=l},"44ad":function(a,c,n){var l=n("d039"),u=n("c6b6"),d="".split;a.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(h){return u(h)=="String"?d.call(h,""):Object(h)}:Object},"44d2":function(a,c,n){var l=n("b622"),u=n("7c73"),d=n("9bf2"),h=l("unscopables"),t=Array.prototype;t[h]==null&&d.f(t,h,{configurable:!0,value:u(null)}),a.exports=function(s){t[h][s]=!0}},"44e7":function(a,c,n){var l=n("861d"),u=n("c6b6"),d=n("b622"),h=d("match");a.exports=function(t){var s;return l(t)&&((s=t[h])!==void 0?!!s:u(t)=="RegExp")}},4930:function(a,c,n){var l=n("d039");a.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},"4d64":function(a,c,n){var l=n("fc6a"),u=n("50c4"),d=n("23cb"),h=function(t){return function(s,f,p){var v=l(s),g=u(v.length),m=d(p,g),y;if(t&&f!=f){for(;g>m;)if(y=v[m++],y!=y)return!0}else for(;g>m;m++)if((t||m in v)&&v[m]===f)return t||m||0;return!t&&-1}};a.exports={includes:h(!0),indexOf:h(!1)}},"4de4":function(a,c,n){var l=n("23e7"),u=n("b727").filter,d=n("1dde"),h=n("ae40"),t=d("filter"),s=h("filter");l({target:"Array",proto:!0,forced:!t||!s},{filter:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,c,n){var l=n("0366"),u=n("7b0b"),d=n("9bdd"),h=n("e95a"),t=n("50c4"),s=n("8418"),f=n("35a1");a.exports=function(v){var g=u(v),m=typeof this=="function"?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,A=b!==void 0,I=f(g),T=0,B,j,x,M,L,V;if(A&&(b=l(b,y>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&h(I)))for(M=I.call(g),L=M.next,j=new m;!(x=L.call(M)).done;T++)V=A?d(M,b,[x.value,T],!0):x.value,s(j,T,V);else for(B=t(g.length),j=new m(B);B>T;T++)V=A?b(g[T],T):g[T],s(j,T,V);return j.length=T,j}},"4fad":function(a,c,n){var l=n("23e7"),u=n("6f53").entries;l({target:"Object",stat:!0},{entries:function(h){return u(h)}})},"50c4":function(a,c,n){var l=n("a691"),u=Math.min;a.exports=function(d){return d>0?u(l(d),9007199254740991):0}},5135:function(a,c){var n={}.hasOwnProperty;a.exports=function(l,u){return n.call(l,u)}},5319:function(a,c,n){var l=n("d784"),u=n("825a"),d=n("7b0b"),h=n("50c4"),t=n("a691"),s=n("1d80"),f=n("8aa5"),p=n("14c3"),v=Math.max,g=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,b=/\$([$&'`]|\d\d?)/g,A=function(I){return I===void 0?I:String(I)};l("replace",2,function(I,T,B,j){var x=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=j.REPLACE_KEEPS_$0,L=x?"$":"$0";return[function(P,K){var F=s(this),X=P==null?void 0:P[I];return X!==void 0?X.call(P,F,K):T.call(String(F),P,K)},function(D,P){if(!x&&M||typeof P=="string"&&P.indexOf(L)===-1){var K=B(T,D,this,P);if(K.done)return K.value}var F=u(D),X=String(this),ee=typeof P=="function";ee||(P=String(P));var le=F.global;if(le){var Ce=F.unicode;F.lastIndex=0}for(var ce=[];;){var fe=p(F,X);if(fe===null||(ce.push(fe),!le))break;var Oe=String(fe[0]);Oe===""&&(F.lastIndex=f(X,h(F.lastIndex),Ce))}for(var Pe="",we=0,de=0;de<ce.length;de++){fe=ce[de];for(var ge=String(fe[0]),_e=v(g(t(fe.index),X.length),0),He=[],At=1;At<fe.length;At++)He.push(A(fe[At]));var Ut=fe.groups;if(ee){var Ct=[ge].concat(He,_e,X);Ut!==void 0&&Ct.push(Ut);var Ne=String(P.apply(void 0,Ct))}else Ne=V(ge,X,_e,He,Ut,P);_e>=we&&(Pe+=X.slice(we,_e)+Ne,we=_e+ge.length)}return Pe+X.slice(we)}];function V(D,P,K,F,X,ee){var le=K+D.length,Ce=F.length,ce=b;return X!==void 0&&(X=d(X),ce=y),T.call(ee,ce,function(fe,Oe){var Pe;switch(Oe.charAt(0)){case"$":return"$";case"&":return D;case"`":return P.slice(0,K);case"'":return P.slice(le);case"<":Pe=X[Oe.slice(1,-1)];break;default:var we=+Oe;if(we===0)return fe;if(we>Ce){var de=m(we/10);return de===0?fe:de<=Ce?F[de-1]===void 0?Oe.charAt(1):F[de-1]+Oe.charAt(1):fe}Pe=F[we-1]}return Pe===void 0?"":Pe})}})},5692:function(a,c,n){var l=n("c430"),u=n("c6cd");(a.exports=function(d,h){return u[d]||(u[d]=h!==void 0?h:{})})("versions",[]).push({version:"3.6.5",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,c,n){var l=n("d066"),u=n("241c"),d=n("7418"),h=n("825a");a.exports=l("Reflect","ownKeys")||function(s){var f=u.f(h(s)),p=d.f;return p?f.concat(p(s)):f}},"5a34":function(a,c,n){var l=n("44e7");a.exports=function(u){if(l(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(a,c){a.exports=function(n,l){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:l}}},"5db7":function(a,c,n){var l=n("23e7"),u=n("a2bf"),d=n("7b0b"),h=n("50c4"),t=n("1c0b"),s=n("65f0");l({target:"Array",proto:!0},{flatMap:function(p){var v=d(this),g=h(v.length),m;return t(p),m=s(v,0),m.length=u(m,v,v,g,0,1,p,arguments.length>1?arguments[1]:void 0),m}})},6547:function(a,c,n){var l=n("a691"),u=n("1d80"),d=function(h){return function(t,s){var f=String(u(t)),p=l(s),v=f.length,g,m;return p<0||p>=v?h?"":void 0:(g=f.charCodeAt(p),g<55296||g>56319||p+1===v||(m=f.charCodeAt(p+1))<56320||m>57343?h?f.charAt(p):g:h?f.slice(p,p+2):(g-55296<<10)+(m-56320)+65536)}};a.exports={codeAt:d(!1),charAt:d(!0)}},"65f0":function(a,c,n){var l=n("861d"),u=n("e8b5"),d=n("b622"),h=d("species");a.exports=function(t,s){var f;return u(t)&&(f=t.constructor,typeof f=="function"&&(f===Array||u(f.prototype))?f=void 0:l(f)&&(f=f[h],f===null&&(f=void 0))),new(f===void 0?Array:f)(s===0?0:s)}},"69f3":function(a,c,n){var l=n("7f9a"),u=n("da84"),d=n("861d"),h=n("9112"),t=n("5135"),s=n("f772"),f=n("d012"),p=u.WeakMap,v,g,m,y=function(x){return m(x)?g(x):v(x,{})},b=function(x){return function(M){var L;if(!d(M)||(L=g(M)).type!==x)throw TypeError("Incompatible receiver, "+x+" required");return L}};if(l){var A=new p,I=A.get,T=A.has,B=A.set;v=function(x,M){return B.call(A,x,M),M},g=function(x){return I.call(A,x)||{}},m=function(x){return T.call(A,x)}}else{var j=s("state");f[j]=!0,v=function(x,M){return h(x,j,M),M},g=function(x){return t(x,j)?x[j]:{}},m=function(x){return t(x,j)}}a.exports={set:v,get:g,has:m,enforce:y,getterFor:b}},"6eeb":function(a,c,n){var l=n("da84"),u=n("9112"),d=n("5135"),h=n("ce4e"),t=n("8925"),s=n("69f3"),f=s.get,p=s.enforce,v=String(String).split("String");(a.exports=function(g,m,y,b){var A=b?!!b.unsafe:!1,I=b?!!b.enumerable:!1,T=b?!!b.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!d(y,"name")&&u(y,"name",m),p(y).source=v.join(typeof m=="string"?m:"")),g===l){I?g[m]=y:h(m,y);return}else A?!T&&g[m]&&(I=!0):delete g[m];I?g[m]=y:u(g,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||t(this)})},"6f53":function(a,c,n){var l=n("83ab"),u=n("df75"),d=n("fc6a"),h=n("d1e7").f,t=function(s){return function(f){for(var p=d(f),v=u(p),g=v.length,m=0,y=[],b;g>m;)b=v[m++],(!l||h.call(p,b))&&y.push(s?[b,p[b]]:p[b]);return y}};a.exports={entries:t(!0),values:t(!1)}},"73d9":function(a,c,n){var l=n("44d2");l("flatMap")},7418:function(a,c){c.f=Object.getOwnPropertySymbols},"746f":function(a,c,n){var l=n("428f"),u=n("5135"),d=n("e538"),h=n("9bf2").f;a.exports=function(t){var s=l.Symbol||(l.Symbol={});u(s,t)||h(s,t,{value:d.f(t)})}},7839:function(a,c){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,c,n){var l=n("1d80");a.exports=function(u){return Object(l(u))}},"7c73":function(a,c,n){var l=n("825a"),u=n("37e8"),d=n("7839"),h=n("d012"),t=n("1be4"),s=n("cc12"),f=n("f772"),p=">",v="<",g="prototype",m="script",y=f("IE_PROTO"),b=function(){},A=function(x){return v+m+p+x+v+"/"+m+p},I=function(x){x.write(A("")),x.close();var M=x.parentWindow.Object;return x=null,M},T=function(){var x=s("iframe"),M="java"+m+":",L;return x.style.display="none",t.appendChild(x),x.src=String(M),L=x.contentWindow.document,L.open(),L.write(A("document.F=Object")),L.close(),L.F},B,j=function(){try{B=document.domain&&new ActiveXObject("htmlfile")}catch{}j=B?I(B):T();for(var x=d.length;x--;)delete j[g][d[x]];return j()};h[y]=!0,a.exports=Object.create||function(M,L){var V;return M!==null?(b[g]=l(M),V=new b,b[g]=null,V[y]=M):V=j(),L===void 0?V:u(V,L)}},"7dd0":function(a,c,n){var l=n("23e7"),u=n("9ed3"),d=n("e163"),h=n("d2bb"),t=n("d44e"),s=n("9112"),f=n("6eeb"),p=n("b622"),v=n("c430"),g=n("3f8c"),m=n("ae93"),y=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,A=p("iterator"),I="keys",T="values",B="entries",j=function(){return this};a.exports=function(x,M,L,V,D,P,K){u(L,M,V);var F=function(de){if(de===D&&ce)return ce;if(!b&&de in le)return le[de];switch(de){case I:return function(){return new L(this,de)};case T:return function(){return new L(this,de)};case B:return function(){return new L(this,de)}}return function(){return new L(this)}},X=M+" Iterator",ee=!1,le=x.prototype,Ce=le[A]||le["@@iterator"]||D&&le[D],ce=!b&&Ce||F(D),fe=M=="Array"&&le.entries||Ce,Oe,Pe,we;if(fe&&(Oe=d(fe.call(new x)),y!==Object.prototype&&Oe.next&&(!v&&d(Oe)!==y&&(h?h(Oe,y):typeof Oe[A]!="function"&&s(Oe,A,j)),t(Oe,X,!0,!0),v&&(g[X]=j))),D==T&&Ce&&Ce.name!==T&&(ee=!0,ce=function(){return Ce.call(this)}),(!v||K)&&le[A]!==ce&&s(le,A,ce),g[M]=ce,D)if(Pe={values:F(T),keys:P?ce:F(I),entries:F(B)},K)for(we in Pe)(b||ee||!(we in le))&&f(le,we,Pe[we]);else l({target:M,proto:!0,forced:b||ee},Pe);return Pe}},"7f9a":function(a,c,n){var l=n("da84"),u=n("8925"),d=l.WeakMap;a.exports=typeof d=="function"&&/native code/.test(u(d))},"825a":function(a,c,n){var l=n("861d");a.exports=function(u){if(!l(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(a,c,n){var l=n("d039");a.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,c,n){var l=n("c04e"),u=n("9bf2"),d=n("5c6c");a.exports=function(h,t,s){var f=l(t);f in h?u.f(h,f,d(0,s)):h[f]=s}},"861d":function(a,c){a.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},8875:function(a,c,n){var l,u,d;(function(h,t){u=[],l=t,d=typeof l=="function"?l.apply(c,u):l,d!==void 0&&(a.exports=d)})(typeof self!="undefined"?self:this,function(){function h(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript||t&&t.get!==h&&document.currentScript)return document.currentScript;try{throw new Error}catch(B){var s=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,f=/@([^@]*):(\d+):(\d+)\s*$/ig,p=s.exec(B.stack)||f.exec(B.stack),v=p&&p[1]||!1,g=p&&p[2]||!1,m=document.location.href.replace(document.location.hash,""),y,b,A,I=document.getElementsByTagName("script");v===m&&(y=document.documentElement.outerHTML,b=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),A=y.replace(b,"$1").trim());for(var T=0;T<I.length;T++)if(I[T].readyState==="interactive"||I[T].src===v||v===m&&I[T].innerHTML&&I[T].innerHTML.trim()===A)return I[T];return null}}return h})},8925:function(a,c,n){var l=n("c6cd"),u=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(d){return u.call(d)}),a.exports=l.inspectSource},"8aa5":function(a,c,n){var l=n("6547").charAt;a.exports=function(u,d,h){return d+(h?l(u,d).length:1)}},"8bbf":function(a,c){a.exports=e},"90e3":function(a,c){var n=0,l=Math.random();a.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++n+l).toString(36)}},9112:function(a,c,n){var l=n("83ab"),u=n("9bf2"),d=n("5c6c");a.exports=l?function(h,t,s){return u.f(h,t,d(1,s))}:function(h,t,s){return h[t]=s,h}},9263:function(a,c,n){var l=n("ad6d"),u=n("9f7f"),d=RegExp.prototype.exec,h=String.prototype.replace,t=d,s=function(){var g=/a/,m=/b*/g;return d.call(g,"a"),d.call(m,"a"),g.lastIndex!==0||m.lastIndex!==0}(),f=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,v=s||p||f;v&&(t=function(m){var y=this,b,A,I,T,B=f&&y.sticky,j=l.call(y),x=y.source,M=0,L=m;return B&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),L=String(m).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&m[y.lastIndex-1]!==`
  26. `)&&(x="(?: "+x+")",L=" "+L,M++),A=new RegExp("^(?:"+x+")",j)),p&&(A=new RegExp("^"+x+"$(?!\\s)",j)),s&&(b=y.lastIndex),I=d.call(B?A:y,L),B?I?(I.input=I.input.slice(M),I[0]=I[0].slice(M),I.index=y.lastIndex,y.lastIndex+=I[0].length):y.lastIndex=0:s&&I&&(y.lastIndex=y.global?I.index+I[0].length:b),p&&I&&I.length>1&&h.call(I[0],A,function(){for(T=1;T<arguments.length-2;T++)arguments[T]===void 0&&(I[T]=void 0)}),I}),a.exports=t},"94ca":function(a,c,n){var l=n("d039"),u=/#|\.prototype\./,d=function(p,v){var g=t[h(p)];return g==f?!0:g==s?!1:typeof v=="function"?l(v):!!v},h=d.normalize=function(p){return String(p).replace(u,".").toLowerCase()},t=d.data={},s=d.NATIVE="N",f=d.POLYFILL="P";a.exports=d},"99af":function(a,c,n){var l=n("23e7"),u=n("d039"),d=n("e8b5"),h=n("861d"),t=n("7b0b"),s=n("50c4"),f=n("8418"),p=n("65f0"),v=n("1dde"),g=n("b622"),m=n("2d00"),y=g("isConcatSpreadable"),b=9007199254740991,A="Maximum allowed index exceeded",I=m>=51||!u(function(){var x=[];return x[y]=!1,x.concat()[0]!==x}),T=v("concat"),B=function(x){if(!h(x))return!1;var M=x[y];return M!==void 0?!!M:d(x)},j=!I||!T;l({target:"Array",proto:!0,forced:j},{concat:function(M){var L=t(this),V=p(L,0),D=0,P,K,F,X,ee;for(P=-1,F=arguments.length;P<F;P++)if(ee=P===-1?L:arguments[P],B(ee)){if(X=s(ee.length),D+X>b)throw TypeError(A);for(K=0;K<X;K++,D++)K in ee&&f(V,D,ee[K])}else{if(D>=b)throw TypeError(A);f(V,D++,ee)}return V.length=D,V}})},"9bdd":function(a,c,n){var l=n("825a");a.exports=function(u,d,h,t){try{return t?d(l(h)[0],h[1]):d(h)}catch(f){var s=u.return;throw s!==void 0&&l(s.call(u)),f}}},"9bf2":function(a,c,n){var l=n("83ab"),u=n("0cfb"),d=n("825a"),h=n("c04e"),t=Object.defineProperty;c.f=l?t:function(f,p,v){if(d(f),p=h(p,!0),d(v),u)try{return t(f,p,v)}catch{}if("get"in v||"set"in v)throw TypeError("Accessors not supported");return"value"in v&&(f[p]=v.value),f}},"9ed3":function(a,c,n){var l=n("ae93").IteratorPrototype,u=n("7c73"),d=n("5c6c"),h=n("d44e"),t=n("3f8c"),s=function(){return this};a.exports=function(f,p,v){var g=p+" Iterator";return f.prototype=u(l,{next:d(1,v)}),h(f,g,!1,!0),t[g]=s,f}},"9f7f":function(a,c,n){var l=n("d039");function u(d,h){return RegExp(d,h)}c.UNSUPPORTED_Y=l(function(){var d=u("a","y");return d.lastIndex=2,d.exec("abcd")!=null}),c.BROKEN_CARET=l(function(){var d=u("^r","gy");return d.lastIndex=2,d.exec("str")!=null})},a2bf:function(a,c,n){var l=n("e8b5"),u=n("50c4"),d=n("0366"),h=function(t,s,f,p,v,g,m,y){for(var b=v,A=0,I=m?d(m,y,3):!1,T;A<p;){if(A in f){if(T=I?I(f[A],A,s):f[A],g>0&&l(T))b=h(t,s,T,u(T.length),b,g-1)-1;else{if(b>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[b]=T}b++}A++}return b};a.exports=h},a352:function(a,c){a.exports=o},a434:function(a,c,n){var l=n("23e7"),u=n("23cb"),d=n("a691"),h=n("50c4"),t=n("7b0b"),s=n("65f0"),f=n("8418"),p=n("1dde"),v=n("ae40"),g=p("splice"),m=v("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,b=Math.min,A=9007199254740991,I="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!g||!m},{splice:function(B,j){var x=t(this),M=h(x.length),L=u(B,M),V=arguments.length,D,P,K,F,X,ee;if(V===0?D=P=0:V===1?(D=0,P=M-L):(D=V-2,P=b(y(d(j),0),M-L)),M+D-P>A)throw TypeError(I);for(K=s(x,P),F=0;F<P;F++)X=L+F,X in x&&f(K,F,x[X]);if(K.length=P,D<P){for(F=L;F<M-P;F++)X=F+P,ee=F+D,X in x?x[ee]=x[X]:delete x[ee];for(F=M;F>M-P+D;F--)delete x[F-1]}else if(D>P)for(F=M-P;F>L;F--)X=F+P-1,ee=F+D-1,X in x?x[ee]=x[X]:delete x[ee];for(F=0;F<D;F++)x[F+L]=arguments[F+2];return x.length=M-P+D,K}})},a4d3:function(a,c,n){var l=n("23e7"),u=n("da84"),d=n("d066"),h=n("c430"),t=n("83ab"),s=n("4930"),f=n("fdbf"),p=n("d039"),v=n("5135"),g=n("e8b5"),m=n("861d"),y=n("825a"),b=n("7b0b"),A=n("fc6a"),I=n("c04e"),T=n("5c6c"),B=n("7c73"),j=n("df75"),x=n("241c"),M=n("057f"),L=n("7418"),V=n("06cf"),D=n("9bf2"),P=n("d1e7"),K=n("9112"),F=n("6eeb"),X=n("5692"),ee=n("f772"),le=n("d012"),Ce=n("90e3"),ce=n("b622"),fe=n("e538"),Oe=n("746f"),Pe=n("d44e"),we=n("69f3"),de=n("b727").forEach,ge=ee("hidden"),_e="Symbol",He="prototype",At=ce("toPrimitive"),Ut=we.set,Ct=we.getterFor(_e),Ne=Object[He],Me=u.Symbol,Ht=d("JSON","stringify"),dt=V.f,pt=D.f,_n=M.f,Cr=P.f,at=X("symbols"),Pt=X("op-symbols"),Qt=X("string-to-symbol-registry"),dn=X("symbol-to-string-registry"),pn=X("wks"),hn=u.QObject,vn=!hn||!hn[He]||!hn[He].findChild,gn=t&&p(function(){return B(pt({},"a",{get:function(){return pt(this,"a",{value:7}).a}})).a!=7})?function(Q,H,$){var re=dt(Ne,H);re&&delete Ne[H],pt(Q,H,$),re&&Q!==Ne&&pt(Ne,H,re)}:pt,mn=function(Q,H){var $=at[Q]=B(Me[He]);return Ut($,{type:_e,tag:Q,description:H}),t||($.description=H),$},E=f?function(Q){return typeof Q=="symbol"}:function(Q){return Object(Q)instanceof Me},S=function(H,$,re){H===Ne&&S(Pt,$,re),y(H);var oe=I($,!0);return y(re),v(at,oe)?(re.enumerable?(v(H,ge)&&H[ge][oe]&&(H[ge][oe]=!1),re=B(re,{enumerable:T(0,!1)})):(v(H,ge)||pt(H,ge,T(1,{})),H[ge][oe]=!0),gn(H,oe,re)):pt(H,oe,re)},w=function(H,$){y(H);var re=A($),oe=j(re).concat(ie(re));return de(oe,function(Ve){(!t||G.call(re,Ve))&&S(H,Ve,re[Ve])}),H},C=function(H,$){return $===void 0?B(H):w(B(H),$)},G=function(H){var $=I(H,!0),re=Cr.call(this,$);return this===Ne&&v(at,$)&&!v(Pt,$)?!1:re||!v(this,$)||!v(at,$)||v(this,ge)&&this[ge][$]?re:!0},_=function(H,$){var re=A(H),oe=I($,!0);if(!(re===Ne&&v(at,oe)&&!v(Pt,oe))){var Ve=dt(re,oe);return Ve&&v(at,oe)&&!(v(re,ge)&&re[ge][oe])&&(Ve.enumerable=!0),Ve}},q=function(H){var $=_n(A(H)),re=[];return de($,function(oe){!v(at,oe)&&!v(le,oe)&&re.push(oe)}),re},ie=function(H){var $=H===Ne,re=_n($?Pt:A(H)),oe=[];return de(re,function(Ve){v(at,Ve)&&(!$||v(Ne,Ve))&&oe.push(at[Ve])}),oe};if(s||(Me=function(){if(this instanceof Me)throw TypeError("Symbol is not a constructor");var H=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),$=Ce(H),re=function(oe){this===Ne&&re.call(Pt,oe),v(this,ge)&&v(this[ge],$)&&(this[ge][$]=!1),gn(this,$,T(1,oe))};return t&&vn&&gn(Ne,$,{configurable:!0,set:re}),mn($,H)},F(Me[He],"toString",function(){return Ct(this).tag}),F(Me,"withoutSetter",function(Q){return mn(Ce(Q),Q)}),P.f=G,D.f=S,V.f=_,x.f=M.f=q,L.f=ie,fe.f=function(Q){return mn(ce(Q),Q)},t&&(pt(Me[He],"description",{configurable:!0,get:function(){return Ct(this).description}}),h||F(Ne,"propertyIsEnumerable",G,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:Me}),de(j(pn),function(Q){Oe(Q)}),l({target:_e,stat:!0,forced:!s},{for:function(Q){var H=String(Q);if(v(Qt,H))return Qt[H];var $=Me(H);return Qt[H]=$,dn[$]=H,$},keyFor:function(H){if(!E(H))throw TypeError(H+" is not a symbol");if(v(dn,H))return dn[H]},useSetter:function(){vn=!0},useSimple:function(){vn=!1}}),l({target:"Object",stat:!0,forced:!s,sham:!t},{create:C,defineProperty:S,defineProperties:w,getOwnPropertyDescriptor:_}),l({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:q,getOwnPropertySymbols:ie}),l({target:"Object",stat:!0,forced:p(function(){L.f(1)})},{getOwnPropertySymbols:function(H){return L.f(b(H))}}),Ht){var xe=!s||p(function(){var Q=Me();return Ht([Q])!="[null]"||Ht({a:Q})!="{}"||Ht(Object(Q))!="{}"});l({target:"JSON",stat:!0,forced:xe},{stringify:function(H,$,re){for(var oe=[H],Ve=1,Pr;arguments.length>Ve;)oe.push(arguments[Ve++]);if(Pr=$,!(!m($)&&H===void 0||E(H)))return g($)||($=function(ma,zn){if(typeof Pr=="function"&&(zn=Pr.call(this,ma,zn)),!E(zn))return zn}),oe[1]=$,Ht.apply(null,oe)}})}Me[He][At]||K(Me[He],At,Me[He].valueOf),Pe(Me,_e),le[ge]=!0},a630:function(a,c,n){var l=n("23e7"),u=n("4df4"),d=n("1c7e"),h=!d(function(t){Array.from(t)});l({target:"Array",stat:!0,forced:h},{from:u})},a640:function(a,c,n){var l=n("d039");a.exports=function(u,d){var h=[][u];return!!h&&l(function(){h.call(null,d||function(){throw 1},1)})}},a691:function(a,c){var n=Math.ceil,l=Math.floor;a.exports=function(u){return isNaN(u=+u)?0:(u>0?l:n)(u)}},ab13:function(a,c,n){var l=n("b622"),u=l("match");a.exports=function(d){var h=/./;try{"/./"[d](h)}catch{try{return h[u]=!1,"/./"[d](h)}catch{}}return!1}},ac1f:function(a,c,n){var l=n("23e7"),u=n("9263");l({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(a,c,n){var l=n("825a");a.exports=function(){var u=l(this),d="";return u.global&&(d+="g"),u.ignoreCase&&(d+="i"),u.multiline&&(d+="m"),u.dotAll&&(d+="s"),u.unicode&&(d+="u"),u.sticky&&(d+="y"),d}},ae40:function(a,c,n){var l=n("83ab"),u=n("d039"),d=n("5135"),h=Object.defineProperty,t={},s=function(f){throw f};a.exports=function(f,p){if(d(t,f))return t[f];p||(p={});var v=[][f],g=d(p,"ACCESSORS")?p.ACCESSORS:!1,m=d(p,0)?p[0]:s,y=d(p,1)?p[1]:void 0;return t[f]=!!v&&!u(function(){if(g&&!l)return!0;var b={length:-1};g?h(b,1,{enumerable:!0,get:s}):b[1]=1,v.call(b,m,y)})}},ae93:function(a,c,n){var l=n("e163"),u=n("9112"),d=n("5135"),h=n("b622"),t=n("c430"),s=h("iterator"),f=!1,p=function(){return this},v,g,m;[].keys&&(m=[].keys(),"next"in m?(g=l(l(m)),g!==Object.prototype&&(v=g)):f=!0),v==null&&(v={}),!t&&!d(v,s)&&u(v,s,p),a.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:f}},b041:function(a,c,n){var l=n("00ee"),u=n("f5df");a.exports=l?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(a,c,n){var l=n("83ab"),u=n("9bf2").f,d=Function.prototype,h=d.toString,t=/^\s*function ([^ (]*)/,s="name";l&&!(s in d)&&u(d,s,{configurable:!0,get:function(){try{return h.call(this).match(t)[1]}catch{return""}}})},b622:function(a,c,n){var l=n("da84"),u=n("5692"),d=n("5135"),h=n("90e3"),t=n("4930"),s=n("fdbf"),f=u("wks"),p=l.Symbol,v=s?p:p&&p.withoutSetter||h;a.exports=function(g){return d(f,g)||(t&&d(p,g)?f[g]=p[g]:f[g]=v("Symbol."+g)),f[g]}},b64b:function(a,c,n){var l=n("23e7"),u=n("7b0b"),d=n("df75"),h=n("d039"),t=h(function(){d(1)});l({target:"Object",stat:!0,forced:t},{keys:function(f){return d(u(f))}})},b727:function(a,c,n){var l=n("0366"),u=n("44ad"),d=n("7b0b"),h=n("50c4"),t=n("65f0"),s=[].push,f=function(p){var v=p==1,g=p==2,m=p==3,y=p==4,b=p==6,A=p==5||b;return function(I,T,B,j){for(var x=d(I),M=u(x),L=l(T,B,3),V=h(M.length),D=0,P=j||t,K=v?P(I,V):g?P(I,0):void 0,F,X;V>D;D++)if((A||D in M)&&(F=M[D],X=L(F,D,x),p)){if(v)K[D]=X;else if(X)switch(p){case 3:return!0;case 5:return F;case 6:return D;case 2:s.call(K,F)}else if(y)return!1}return b?-1:m||y?y:K}};a.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},c04e:function(a,c,n){var l=n("861d");a.exports=function(u,d){if(!l(u))return u;var h,t;if(d&&typeof(h=u.toString)=="function"&&!l(t=h.call(u))||typeof(h=u.valueOf)=="function"&&!l(t=h.call(u))||!d&&typeof(h=u.toString)=="function"&&!l(t=h.call(u)))return t;throw TypeError("Can't convert object to primitive value")}},c430:function(a,c){a.exports=!1},c6b6:function(a,c){var n={}.toString;a.exports=function(l){return n.call(l).slice(8,-1)}},c6cd:function(a,c,n){var l=n("da84"),u=n("ce4e"),d="__core-js_shared__",h=l[d]||u(d,{});a.exports=h},c740:function(a,c,n){var l=n("23e7"),u=n("b727").findIndex,d=n("44d2"),h=n("ae40"),t="findIndex",s=!0,f=h(t);t in[]&&Array(1)[t](function(){s=!1}),l({target:"Array",proto:!0,forced:s||!f},{findIndex:function(v){return u(this,v,arguments.length>1?arguments[1]:void 0)}}),d(t)},c8ba:function(a,c){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}a.exports=n},c975:function(a,c,n){var l=n("23e7"),u=n("4d64").indexOf,d=n("a640"),h=n("ae40"),t=[].indexOf,s=!!t&&1/[1].indexOf(1,-0)<0,f=d("indexOf"),p=h("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:s||!f||!p},{indexOf:function(g){return s?t.apply(this,arguments)||0:u(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(a,c,n){var l=n("5135"),u=n("fc6a"),d=n("4d64").indexOf,h=n("d012");a.exports=function(t,s){var f=u(t),p=0,v=[],g;for(g in f)!l(h,g)&&l(f,g)&&v.push(g);for(;s.length>p;)l(f,g=s[p++])&&(~d(v,g)||v.push(g));return v}},caad:function(a,c,n){var l=n("23e7"),u=n("4d64").includes,d=n("44d2"),h=n("ae40"),t=h("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!t},{includes:function(f){return u(this,f,arguments.length>1?arguments[1]:void 0)}}),d("includes")},cc12:function(a,c,n){var l=n("da84"),u=n("861d"),d=l.document,h=u(d)&&u(d.createElement);a.exports=function(t){return h?d.createElement(t):{}}},ce4e:function(a,c,n){var l=n("da84"),u=n("9112");a.exports=function(d,h){try{u(l,d,h)}catch{l[d]=h}return h}},d012:function(a,c){a.exports={}},d039:function(a,c){a.exports=function(n){try{return!!n()}catch{return!0}}},d066:function(a,c,n){var l=n("428f"),u=n("da84"),d=function(h){return typeof h=="function"?h:void 0};a.exports=function(h,t){return arguments.length<2?d(l[h])||d(u[h]):l[h]&&l[h][t]||u[h]&&u[h][t]}},d1e7:function(a,c,n){var l={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!l.call({1:2},1);c.f=d?function(t){var s=u(this,t);return!!s&&s.enumerable}:l},d28b:function(a,c,n){var l=n("746f");l("iterator")},d2bb:function(a,c,n){var l=n("825a"),u=n("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d=!1,h={},t;try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(h,[]),d=h instanceof Array}catch{}return function(f,p){return l(f),u(p),d?t.call(f,p):f.__proto__=p,f}}():void 0)},d3b7:function(a,c,n){var l=n("00ee"),u=n("6eeb"),d=n("b041");l||u(Object.prototype,"toString",d,{unsafe:!0})},d44e:function(a,c,n){var l=n("9bf2").f,u=n("5135"),d=n("b622"),h=d("toStringTag");a.exports=function(t,s,f){t&&!u(t=f?t:t.prototype,h)&&l(t,h,{configurable:!0,value:s})}},d58f:function(a,c,n){var l=n("1c0b"),u=n("7b0b"),d=n("44ad"),h=n("50c4"),t=function(s){return function(f,p,v,g){l(p);var m=u(f),y=d(m),b=h(m.length),A=s?b-1:0,I=s?-1:1;if(v<2)for(;;){if(A in y){g=y[A],A+=I;break}if(A+=I,s?A<0:b<=A)throw TypeError("Reduce of empty array with no initial value")}for(;s?A>=0:b>A;A+=I)A in y&&(g=p(g,y[A],A,m));return g}};a.exports={left:t(!1),right:t(!0)}},d784:function(a,c,n){n("ac1f");var l=n("6eeb"),u=n("d039"),d=n("b622"),h=n("9263"),t=n("9112"),s=d("species"),f=!u(function(){var y=/./;return y.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(y,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),v=d("replace"),g=function(){return/./[v]?/./[v]("a","$0")==="":!1}(),m=!u(function(){var y=/(?:)/,b=y.exec;y.exec=function(){return b.apply(this,arguments)};var A="ab".split(y);return A.length!==2||A[0]!=="a"||A[1]!=="b"});a.exports=function(y,b,A,I){var T=d(y),B=!u(function(){var D={};return D[T]=function(){return 7},""[y](D)!=7}),j=B&&!u(function(){var D=!1,P=/a/;return y==="split"&&(P={},P.constructor={},P.constructor[s]=function(){return P},P.flags="",P[T]=/./[T]),P.exec=function(){return D=!0,null},P[T](""),!D});if(!B||!j||y==="replace"&&!(f&&p&&!g)||y==="split"&&!m){var x=/./[T],M=A(T,""[y],function(D,P,K,F,X){return P.exec===h?B&&!X?{done:!0,value:x.call(P,K,F)}:{done:!0,value:D.call(K,P,F)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),L=M[0],V=M[1];l(String.prototype,y,L),l(RegExp.prototype,T,b==2?function(D,P){return V.call(D,this,P)}:function(D){return V.call(D,this)})}I&&t(RegExp.prototype[T],"sham",!0)}},d81d:function(a,c,n){var l=n("23e7"),u=n("b727").map,d=n("1dde"),h=n("ae40"),t=d("map"),s=h("map");l({target:"Array",proto:!0,forced:!t||!s},{map:function(p){return u(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(a,c,n){(function(l){var u=function(d){return d&&d.Math==Math&&d};a.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof l=="object"&&l)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(a,c,n){var l=n("23e7"),u=n("83ab"),d=n("56ef"),h=n("fc6a"),t=n("06cf"),s=n("8418");l({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(p){for(var v=h(p),g=t.f,m=d(v),y={},b=0,A,I;m.length>b;)I=g(v,A=m[b++]),I!==void 0&&s(y,A,I);return y}})},dbf1:function(a,c,n){(function(l){n.d(c,"a",function(){return d});function u(){return typeof window!="undefined"?window.console:l.console}var d=u()}).call(this,n("c8ba"))},ddb0:function(a,c,n){var l=n("da84"),u=n("fdbc"),d=n("e260"),h=n("9112"),t=n("b622"),s=t("iterator"),f=t("toStringTag"),p=d.values;for(var v in u){var g=l[v],m=g&&g.prototype;if(m){if(m[s]!==p)try{h(m,s,p)}catch{m[s]=p}if(m[f]||h(m,f,v),u[v]){for(var y in d)if(m[y]!==d[y])try{h(m,y,d[y])}catch{m[y]=d[y]}}}}},df75:function(a,c,n){var l=n("ca84"),u=n("7839");a.exports=Object.keys||function(h){return l(h,u)}},e01a:function(a,c,n){var l=n("23e7"),u=n("83ab"),d=n("da84"),h=n("5135"),t=n("861d"),s=n("9bf2").f,f=n("e893"),p=d.Symbol;if(u&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var v={},g=function(){var T=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),B=this instanceof g?new p(T):T===void 0?p():p(T);return T===""&&(v[B]=!0),B};f(g,p);var m=g.prototype=p.prototype;m.constructor=g;var y=m.toString,b=String(p("test"))=="Symbol(test)",A=/^Symbol\((.*)\)[^)]+$/;s(m,"description",{configurable:!0,get:function(){var T=t(this)?this.valueOf():this,B=y.call(T);if(h(v,T))return"";var j=b?B.slice(7,-1):B.replace(A,"$1");return j===""?void 0:j}}),l({global:!0,forced:!0},{Symbol:g})}},e163:function(a,c,n){var l=n("5135"),u=n("7b0b"),d=n("f772"),h=n("e177"),t=d("IE_PROTO"),s=Object.prototype;a.exports=h?Object.getPrototypeOf:function(f){return f=u(f),l(f,t)?f[t]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?s:null}},e177:function(a,c,n){var l=n("d039");a.exports=!l(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(a,c,n){var l=n("fc6a"),u=n("44d2"),d=n("3f8c"),h=n("69f3"),t=n("7dd0"),s="Array Iterator",f=h.set,p=h.getterFor(s);a.exports=t(Array,"Array",function(v,g){f(this,{type:s,target:l(v),index:0,kind:g})},function(){var v=p(this),g=v.target,m=v.kind,y=v.index++;return!g||y>=g.length?(v.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:y,done:!1}:m=="values"?{value:g[y],done:!1}:{value:[y,g[y]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},e439:function(a,c,n){var l=n("23e7"),u=n("d039"),d=n("fc6a"),h=n("06cf").f,t=n("83ab"),s=u(function(){h(1)}),f=!t||s;l({target:"Object",stat:!0,forced:f,sham:!t},{getOwnPropertyDescriptor:function(v,g){return h(d(v),g)}})},e538:function(a,c,n){var l=n("b622");c.f=l},e893:function(a,c,n){var l=n("5135"),u=n("56ef"),d=n("06cf"),h=n("9bf2");a.exports=function(t,s){for(var f=u(s),p=h.f,v=d.f,g=0;g<f.length;g++){var m=f[g];l(t,m)||p(t,m,v(s,m))}}},e8b5:function(a,c,n){var l=n("c6b6");a.exports=Array.isArray||function(d){return l(d)=="Array"}},e95a:function(a,c,n){var l=n("b622"),u=n("3f8c"),d=l("iterator"),h=Array.prototype;a.exports=function(t){return t!==void 0&&(u.Array===t||h[d]===t)}},f5df:function(a,c,n){var l=n("00ee"),u=n("c6b6"),d=n("b622"),h=d("toStringTag"),t=u(function(){return arguments}())=="Arguments",s=function(f,p){try{return f[p]}catch{}};a.exports=l?u:function(f){var p,v,g;return f===void 0?"Undefined":f===null?"Null":typeof(v=s(p=Object(f),h))=="string"?v:t?u(p):(g=u(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(a,c,n){var l=n("5692"),u=n("90e3"),d=l("keys");a.exports=function(h){return d[h]||(d[h]=u(h))}},fb15:function(a,c,n){if(n.r(c),typeof window!="undefined"){var l=window.document.currentScript;{var u=n("8875");l=u(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:u})}var d=l&&l.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);d&&(n.p=d[1])}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");function h(E,S,w){return S in E?Object.defineProperty(E,S,{value:w,enumerable:!0,configurable:!0,writable:!0}):E[S]=w,E}function t(E,S){var w=Object.keys(E);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(E);S&&(C=C.filter(function(G){return Object.getOwnPropertyDescriptor(E,G).enumerable})),w.push.apply(w,C)}return w}function s(E){for(var S=1;S<arguments.length;S++){var w=arguments[S]!=null?arguments[S]:{};S%2?t(Object(w),!0).forEach(function(C){h(E,C,w[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(w)):t(Object(w)).forEach(function(C){Object.defineProperty(E,C,Object.getOwnPropertyDescriptor(w,C))})}return E}function f(E){if(Array.isArray(E))return E}n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");function p(E,S){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(E)))){var w=[],C=!0,G=!1,_=void 0;try{for(var q=E[Symbol.iterator](),ie;!(C=(ie=q.next()).done)&&(w.push(ie.value),!(S&&w.length===S));C=!0);}catch(xe){G=!0,_=xe}finally{try{!C&&q.return!=null&&q.return()}finally{if(G)throw _}}return w}}n("a630"),n("fb6a"),n("b0c0"),n("25f0");function v(E,S){(S==null||S>E.length)&&(S=E.length);for(var w=0,C=new Array(S);w<S;w++)C[w]=E[w];return C}function g(E,S){if(!!E){if(typeof E=="string")return v(E,S);var w=Object.prototype.toString.call(E).slice(8,-1);if(w==="Object"&&E.constructor&&(w=E.constructor.name),w==="Map"||w==="Set")return Array.from(E);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return v(E,S)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  27. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(E,S){return f(E)||p(E,S)||g(E,S)||m()}function b(E){if(Array.isArray(E))return v(E)}function A(E){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(E))return Array.from(E)}function I(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
  28. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T(E){return b(E)||A(E)||g(E)||I()}var B=n("a352"),j=n.n(B);function x(E){E.parentElement!==null&&E.parentElement.removeChild(E)}function M(E,S,w){var C=w===0?E.children[0]:E.children[w-1].nextSibling;E.insertBefore(S,C)}var L=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");function V(E){var S=Object.create(null);return function(C){var G=S[C];return G||(S[C]=E(C))}}var D=/-(\w)/g,P=V(function(E){return E.replace(D,function(S,w){return w.toUpperCase()})});n("5db7"),n("73d9");var K=["Start","Add","Remove","Update","End"],F=["Choose","Unchoose","Sort","Filter","Clone"],X=["Move"],ee=[X,K,F].flatMap(function(E){return E}).map(function(E){return"on".concat(E)}),le={manage:X,manageAndEmit:K,emit:F};function Ce(E){return ee.indexOf(E)!==-1}n("caad"),n("2ca0");var ce=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function fe(E){return ce.includes(E)}function Oe(E){return["transition-group","TransitionGroup"].includes(E)}function Pe(E){return["id","class","role","style"].includes(E)||E.startsWith("data-")||E.startsWith("aria-")||E.startsWith("on")}function we(E){return E.reduce(function(S,w){var C=y(w,2),G=C[0],_=C[1];return S[G]=_,S},{})}function de(E){var S=E.$attrs,w=E.componentData,C=w===void 0?{}:w,G=we(Object.entries(S).filter(function(_){var q=y(_,2),ie=q[0];return q[1],Pe(ie)}));return s(s({},G),C)}function ge(E){var S=E.$attrs,w=E.callBackBuilder,C=we(_e(S));Object.entries(w).forEach(function(_){var q=y(_,2),ie=q[0],xe=q[1];le[ie].forEach(function(Q){C["on".concat(Q)]=xe(Q)})});var G="[data-draggable]".concat(C.draggable||"");return s(s({},C),{},{draggable:G})}function _e(E){return Object.entries(E).filter(function(S){var w=y(S,2),C=w[0];return w[1],!Pe(C)}).map(function(S){var w=y(S,2),C=w[0],G=w[1];return[P(C),G]}).filter(function(S){var w=y(S,2),C=w[0];return w[1],!Ce(C)})}n("c740");function He(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function At(E,S){for(var w=0;w<S.length;w++){var C=S[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}function Ut(E,S,w){return S&&At(E.prototype,S),w&&At(E,w),E}var Ct=function(S){var w=S.el;return w},Ne=function(S,w){return S.__draggable_context=w},Me=function(S){return S.__draggable_context},Ht=function(){function E(S){var w=S.nodes,C=w.header,G=w.default,_=w.footer,q=S.root,ie=S.realList;He(this,E),this.defaultNodes=G,this.children=[].concat(T(C),T(G),T(_)),this.externalComponent=q.externalComponent,this.rootTransition=q.transition,this.tag=q.tag,this.realList=ie}return Ut(E,[{key:"render",value:function(w,C){var G=this.tag,_=this.children,q=this._isRootComponent,ie=q?{default:function(){return _}}:_;return w(G,C,ie)}},{key:"updated",value:function(){var w=this.defaultNodes,C=this.realList;w.forEach(function(G,_){Ne(Ct(G),{element:C[_],index:_})})}},{key:"getUnderlyingVm",value:function(w){return Me(w)}},{key:"getVmIndexFromDomIndex",value:function(w,C){var G=this.defaultNodes,_=G.length,q=C.children,ie=q.item(w);if(ie===null)return _;var xe=Me(ie);if(xe)return xe.index;if(_===0)return 0;var Q=Ct(G[0]),H=T(q).findIndex(function($){return $===Q});return w<H?0:_}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),E}(),dt=n("8bbf");function pt(E,S){var w=E[S];return w?w():[]}function _n(E){var S=E.$slots,w=E.realList,C=E.getKey,G=w||[],_=["header","footer"].map(function($){return pt(S,$)}),q=y(_,2),ie=q[0],xe=q[1],Q=S.item;if(!Q)throw new Error("draggable element must have an item slot");var H=G.flatMap(function($,re){return Q({element:$,index:re}).map(function(oe){return oe.key=C($),oe.props=s(s({},oe.props||{}),{},{"data-draggable":!0}),oe})});if(H.length!==G.length)throw new Error("Item slot must have only one child");return{header:ie,footer:xe,default:H}}function Cr(E){var S=Oe(E),w=!fe(E)&&!S;return{transition:S,externalComponent:w,tag:w?Object(dt.resolveComponent)(E):S?dt.TransitionGroup:E}}function at(E){var S=E.$slots,w=E.tag,C=E.realList,G=E.getKey,_=_n({$slots:S,realList:C,getKey:G}),q=Cr(w);return new Ht({nodes:_,root:q,realList:C})}function Pt(E,S){var w=this;Object(dt.nextTick)(function(){return w.$emit(E.toLowerCase(),S)})}function Qt(E){var S=this;return function(w,C){if(S.realList!==null)return S["onDrag".concat(E)](w,C)}}function dn(E){var S=this,w=Qt.call(this,E);return function(C,G){w.call(S,C,G),Pt.call(S,E,C)}}var pn=null,hn={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(S){return S}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},vn=["update:modelValue","change"].concat(T([].concat(T(le.manageAndEmit),T(le.emit)).map(function(E){return E.toLowerCase()}))),gn=Object(dt.defineComponent)({name:"draggable",inheritAttrs:!1,props:hn,emits:vn,data:function(){return{error:!1}},render:function(){try{this.error=!1;var S=this.$slots,w=this.$attrs,C=this.tag,G=this.componentData,_=this.realList,q=this.getKey,ie=at({$slots:S,tag:C,realList:_,getKey:q});this.componentStructure=ie;var xe=de({$attrs:w,componentData:G});return ie.render(dt.h,xe)}catch(Q){return this.error=!0,Object(dt.h)("pre",{style:{color:"red"}},Q.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&L.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var S=this;if(!this.error){var w=this.$attrs,C=this.$el,G=this.componentStructure;G.updated();var _=ge({$attrs:w,callBackBuilder:{manageAndEmit:function(xe){return dn.call(S,xe)},emit:function(xe){return Pt.bind(S,xe)},manage:function(xe){return Qt.call(S,xe)}}}),q=C.nodeType===1?C:C.parentElement;this._sortable=new j.a(q,_),this.targetDomElement=q,q.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var S=this.list;return S||this.modelValue},getKey:function(){var S=this.itemKey;return typeof S=="function"?S:function(w){return w[S]}}},watch:{$attrs:{handler:function(S){var w=this._sortable;!w||_e(S).forEach(function(C){var G=y(C,2),_=G[0],q=G[1];w.option(_,q)})},deep:!0}},methods:{getUnderlyingVm:function(S){return this.componentStructure.getUnderlyingVm(S)||null},getUnderlyingPotencialDraggableComponent:function(S){return S.__draggable_component__},emitChanges:function(S){var w=this;Object(dt.nextTick)(function(){return w.$emit("change",S)})},alterList:function(S){if(this.list){S(this.list);return}var w=T(this.modelValue);S(w),this.$emit("update:modelValue",w)},spliceList:function(){var S=arguments,w=function(G){return G.splice.apply(G,T(S))};this.alterList(w)},updatePosition:function(S,w){var C=function(_){return _.splice(w,0,_.splice(S,1)[0])};this.alterList(C)},getRelatedContextFromMoveEvent:function(S){var w=S.to,C=S.related,G=this.getUnderlyingPotencialDraggableComponent(w);if(!G)return{component:G};var _=G.realList,q={list:_,component:G};if(w!==C&&_){var ie=G.getUnderlyingVm(C)||{};return s(s({},ie),q)}return q},getVmIndexFromDomIndex:function(S){return this.componentStructure.getVmIndexFromDomIndex(S,this.targetDomElement)},onDragStart:function(S){this.context=this.getUnderlyingVm(S.item),S.item._underlying_vm_=this.clone(this.context.element),pn=S.item},onDragAdd:function(S){var w=S.item._underlying_vm_;if(w!==void 0){x(S.item);var C=this.getVmIndexFromDomIndex(S.newIndex);this.spliceList(C,0,w);var G={element:w,newIndex:C};this.emitChanges({added:G})}},onDragRemove:function(S){if(M(this.$el,S.item,S.oldIndex),S.pullMode==="clone"){x(S.clone);return}var w=this.context,C=w.index,G=w.element;this.spliceList(C,1);var _={element:G,oldIndex:C};this.emitChanges({removed:_})},onDragUpdate:function(S){x(S.item),M(S.from,S.item,S.oldIndex);var w=this.context.index,C=this.getVmIndexFromDomIndex(S.newIndex);this.updatePosition(w,C);var G={element:this.context.element,oldIndex:w,newIndex:C};this.emitChanges({moved:G})},computeFutureIndex:function(S,w){if(!S.element)return 0;var C=T(w.to.children).filter(function(ie){return ie.style.display!=="none"}),G=C.indexOf(w.related),_=S.component.getVmIndexFromDomIndex(G),q=C.indexOf(pn)!==-1;return q||!w.willInsertAfter?_:_+1},onDragMove:function(S,w){var C=this.move,G=this.realList;if(!C||!G)return!0;var _=this.getRelatedContextFromMoveEvent(S),q=this.computeFutureIndex(_,S),ie=s(s({},this.context),{},{futureIndex:q}),xe=s(s({},S),{},{relatedContext:_,draggedContext:ie});return C(xe,w)},onDragEnd:function(){pn=null}}}),mn=gn;c.default=mn},fb6a:function(a,c,n){var l=n("23e7"),u=n("861d"),d=n("e8b5"),h=n("23cb"),t=n("50c4"),s=n("fc6a"),f=n("8418"),p=n("b622"),v=n("1dde"),g=n("ae40"),m=v("slice"),y=g("slice",{ACCESSORS:!0,0:0,1:2}),b=p("species"),A=[].slice,I=Math.max;l({target:"Array",proto:!0,forced:!m||!y},{slice:function(B,j){var x=s(this),M=t(x.length),L=h(B,M),V=h(j===void 0?M:j,M),D,P,K;if(d(x)&&(D=x.constructor,typeof D=="function"&&(D===Array||d(D.prototype))?D=void 0:u(D)&&(D=D[b],D===null&&(D=void 0)),D===Array||D===void 0))return A.call(x,L,V);for(P=new(D===void 0?Array:D)(I(V-L,0)),K=0;L<V;L++,K++)L in x&&f(P,K,x[L]);return P.length=K,P}})},fc6a:function(a,c,n){var l=n("44ad"),u=n("1d80");a.exports=function(d){return l(u(d))}},fdbc:function(a,c){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(a,c,n){var l=n("4930");a.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Wo);var wu=Ks(Wo.exports);const Tu="_unitSubject_1ff9w_1",Iu="_unitAnswers_1ff9w_10",Ou="_unitAnswer_1ff9w_10",Du="_option_1ff9w_22",Cu="_value_1ff9w_25",Pu="_valueAudio_1ff9w_34",Ru="_active_1ff9w_37",Nu="_answerContent_1ff9w_41",Mu="_answerChoice_1ff9w_45",Fu="_sortReset_1ff9w_54",Lu="_tips_1ff9w_62",Bu="_itemsContainer_1ff9w_75",ju="_items_1ff9w_75",Gu="_imgs_1ff9w_81";var Fe={unitSubject:Tu,unitAnswers:Iu,unitAnswer:Ou,option:Du,value:Cu,valueAudio:Pu,active:Ru,answerContent:Nu,answerChoice:Mu,sortReset:Fu,tips:Lu,itemsContainer:Bu,items:ju,imgs:Gu};/**!
  29. * Sortable 1.15.0
  30. * @author RubaXa <trash@rubaxa.org>
  31. * @author owenm <owen23355@gmail.com>
  32. * @license MIT
  33. */function Co(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(i);r&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,o)}return e}function bt(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?Co(Object(e),!0).forEach(function(o){Uu(i,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):Co(Object(e)).forEach(function(o){Object.defineProperty(i,o,Object.getOwnPropertyDescriptor(e,o))})}return i}function cr(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cr=function(r){return typeof r}:cr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},cr(i)}function Uu(i,r,e){return r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function Tt(){return Tt=Object.assign||function(i){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Tt.apply(this,arguments)}function Hu(i,r){if(i==null)return{};var e={},o=Object.keys(i),a,c;for(c=0;c<o.length;c++)a=o[c],!(r.indexOf(a)>=0)&&(e[a]=i[a]);return e}function Xu(i,r){if(i==null)return{};var e=Hu(i,r),o,a;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(i);for(a=0;a<c.length;a++)o=c[a],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,o)||(e[o]=i[o]))}return e}var Ku="1.15.0";function wt(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var Dt=wt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Yn=wt(/Edge/i),Po=wt(/firefox/i),Ln=wt(/safari/i)&&!wt(/chrome/i)&&!wt(/android/i),oa=wt(/iP(ad|od|hone)/i),aa=wt(/chrome/i)&&wt(/android/i),ia={capture:!1,passive:!1};function se(i,r,e){i.addEventListener(r,e,!Dt&&ia)}function ae(i,r,e){i.removeEventListener(r,e,!Dt&&ia)}function Ar(i,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),i)try{if(i.matches)return i.matches(r);if(i.msMatchesSelector)return i.msMatchesSelector(r);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(r)}catch{return!1}return!1}}function Vu(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function ht(i,r,e,o){if(i){e=e||document;do{if(r!=null&&(r[0]===">"?i.parentNode===e&&Ar(i,r):Ar(i,r))||o&&i===e)return i;if(i===e)break}while(i=Vu(i))}return null}var Ro=/\s+/g;function Qe(i,r,e){if(i&&r)if(i.classList)i.classList[e?"add":"remove"](r);else{var o=(" "+i.className+" ").replace(Ro," ").replace(" "+r+" "," ");i.className=(o+(e?" "+r:"")).replace(Ro," ")}}function W(i,r,e){var o=i&&i.style;if(o){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(e=i.currentStyle),r===void 0?e:e[r];!(r in o)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),o[r]=e+(typeof e=="string"?"":"px")}}function ln(i,r){var e="";if(typeof i=="string")e=i;else do{var o=W(i,"transform");o&&o!=="none"&&(e=o+" "+e)}while(!r&&(i=i.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(e)}function sa(i,r,e){if(i){var o=i.getElementsByTagName(r),a=0,c=o.length;if(e)for(;a<c;a++)e(o[a],a);return o}return[]}function gt(){var i=document.scrollingElement;return i||document.documentElement}function De(i,r,e,o,a){if(!(!i.getBoundingClientRect&&i!==window)){var c,n,l,u,d,h,t;if(i!==window&&i.parentNode&&i!==gt()?(c=i.getBoundingClientRect(),n=c.top,l=c.left,u=c.bottom,d=c.right,h=c.height,t=c.width):(n=0,l=0,u=window.innerHeight,d=window.innerWidth,h=window.innerHeight,t=window.innerWidth),(r||e)&&i!==window&&(a=a||i.parentNode,!Dt))do if(a&&a.getBoundingClientRect&&(W(a,"transform")!=="none"||e&&W(a,"position")!=="static")){var s=a.getBoundingClientRect();n-=s.top+parseInt(W(a,"border-top-width")),l-=s.left+parseInt(W(a,"border-left-width")),u=n+c.height,d=l+c.width;break}while(a=a.parentNode);if(o&&i!==window){var f=ln(a||i),p=f&&f.a,v=f&&f.d;f&&(n/=v,l/=p,t/=p,h/=v,u=n+h,d=l+t)}return{top:n,left:l,bottom:u,right:d,width:t,height:h}}}function No(i,r,e){for(var o=jt(i,!0),a=De(i)[r];o;){var c=De(o)[e],n=void 0;if(e==="top"||e==="left"?n=a>=c:n=a<=c,!n)return o;if(o===gt())break;o=jt(o,!1)}return!1}function fn(i,r,e,o){for(var a=0,c=0,n=i.children;c<n.length;){if(n[c].style.display!=="none"&&n[c]!==z.ghost&&(o||n[c]!==z.dragged)&&ht(n[c],e.draggable,i,!1)){if(a===r)return n[c];a++}c++}return null}function po(i,r){for(var e=i.lastElementChild;e&&(e===z.ghost||W(e,"display")==="none"||r&&!Ar(e,r));)e=e.previousElementSibling;return e||null}function rt(i,r){var e=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==z.clone&&(!r||Ar(i,r))&&e++;return e}function Mo(i){var r=0,e=0,o=gt();if(i)do{var a=ln(i),c=a.a,n=a.d;r+=i.scrollLeft*c,e+=i.scrollTop*n}while(i!==o&&(i=i.parentNode));return[r,e]}function $u(i,r){for(var e in i)if(!!i.hasOwnProperty(e)){for(var o in r)if(r.hasOwnProperty(o)&&r[o]===i[e][o])return Number(e)}return-1}function jt(i,r){if(!i||!i.getBoundingClientRect)return gt();var e=i,o=!1;do if(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight){var a=W(e);if(e.clientWidth<e.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||e.clientHeight<e.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!e.getBoundingClientRect||e===document.body)return gt();if(o||r)return e;o=!0}}while(e=e.parentNode);return gt()}function Yu(i,r){if(i&&r)for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i}function Kr(i,r){return Math.round(i.top)===Math.round(r.top)&&Math.round(i.left)===Math.round(r.left)&&Math.round(i.height)===Math.round(r.height)&&Math.round(i.width)===Math.round(r.width)}var Bn;function la(i,r){return function(){if(!Bn){var e=arguments,o=this;e.length===1?i.call(o,e[0]):i.apply(o,e),Bn=setTimeout(function(){Bn=void 0},r)}}}function Wu(){clearTimeout(Bn),Bn=void 0}function ua(i,r,e){i.scrollLeft+=r,i.scrollTop+=e}function ca(i){var r=window.Polymer,e=window.jQuery||window.Zepto;return r&&r.dom?r.dom(i).cloneNode(!0):e?e(i).clone(!0)[0]:i.cloneNode(!0)}var qe="Sortable"+new Date().getTime();function _u(){var i=[],r;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(W(a,"display")==="none"||a===z.ghost)){i.push({target:a,rect:De(a)});var c=bt({},i[i.length-1].rect);if(a.thisAnimationDuration){var n=ln(a,!0);n&&(c.top-=n.f,c.left-=n.e)}a.fromRect=c}})}},addAnimationState:function(o){i.push(o)},removeAnimationState:function(o){i.splice($u(i,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(r),typeof o=="function"&&o();return}var c=!1,n=0;i.forEach(function(l){var u=0,d=l.target,h=d.fromRect,t=De(d),s=d.prevFromRect,f=d.prevToRect,p=l.rect,v=ln(d,!0);v&&(t.top-=v.f,t.left-=v.e),d.toRect=t,d.thisAnimationDuration&&Kr(s,t)&&!Kr(h,t)&&(p.top-t.top)/(p.left-t.left)===(h.top-t.top)/(h.left-t.left)&&(u=Qu(p,s,f,a.options)),Kr(t,h)||(d.prevFromRect=h,d.prevToRect=t,u||(u=a.options.animation),a.animate(d,p,t,u)),u&&(c=!0,n=Math.max(n,u),clearTimeout(d.animationResetTimer),d.animationResetTimer=setTimeout(function(){d.animationTime=0,d.prevFromRect=null,d.fromRect=null,d.prevToRect=null,d.thisAnimationDuration=null},u),d.thisAnimationDuration=u)}),clearTimeout(r),c?r=setTimeout(function(){typeof o=="function"&&o()},n):typeof o=="function"&&o(),i=[]},animate:function(o,a,c,n){if(n){W(o,"transition",""),W(o,"transform","");var l=ln(this.el),u=l&&l.a,d=l&&l.d,h=(a.left-c.left)/(u||1),t=(a.top-c.top)/(d||1);o.animatingX=!!h,o.animatingY=!!t,W(o,"transform","translate3d("+h+"px,"+t+"px,0)"),this.forRepaintDummy=zu(o),W(o,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),W(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){W(o,"transition",""),W(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},n)}}}}function zu(i){return i.offsetWidth}function Qu(i,r,e,o){return Math.sqrt(Math.pow(r.top-i.top,2)+Math.pow(r.left-i.left,2))/Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))*o.animation}var en=[],Vr={initializeByDefault:!0},Wn={mount:function(r){for(var e in Vr)Vr.hasOwnProperty(e)&&!(e in r)&&(r[e]=Vr[e]);en.forEach(function(o){if(o.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),en.push(r)},pluginEvent:function(r,e,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var c=r+"Global";en.forEach(function(n){!e[n.pluginName]||(e[n.pluginName][c]&&e[n.pluginName][c](bt({sortable:e},o)),e.options[n.pluginName]&&e[n.pluginName][r]&&e[n.pluginName][r](bt({sortable:e},o)))})},initializePlugins:function(r,e,o,a){en.forEach(function(l){var u=l.pluginName;if(!(!r.options[u]&&!l.initializeByDefault)){var d=new l(r,e,r.options);d.sortable=r,d.options=r.options,r[u]=d,Tt(o,d.defaults)}});for(var c in r.options)if(!!r.options.hasOwnProperty(c)){var n=this.modifyOption(r,c,r.options[c]);typeof n!="undefined"&&(r.options[c]=n)}},getEventProperties:function(r,e){var o={};return en.forEach(function(a){typeof a.eventProperties=="function"&&Tt(o,a.eventProperties.call(e[a.pluginName],r))}),o},modifyOption:function(r,e,o){var a;return en.forEach(function(c){!r[c.pluginName]||c.optionListeners&&typeof c.optionListeners[e]=="function"&&(a=c.optionListeners[e].call(r[c.pluginName],o))}),a}};function Ju(i){var r=i.sortable,e=i.rootEl,o=i.name,a=i.targetEl,c=i.cloneEl,n=i.toEl,l=i.fromEl,u=i.oldIndex,d=i.newIndex,h=i.oldDraggableIndex,t=i.newDraggableIndex,s=i.originalEvent,f=i.putSortable,p=i.extraEventProperties;if(r=r||e&&e[qe],!!r){var v,g=r.options,m="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Dt&&!Yn?v=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(o,!0,!0)),v.to=n||e,v.from=l||e,v.item=a||e,v.clone=c,v.oldIndex=u,v.newIndex=d,v.oldDraggableIndex=h,v.newDraggableIndex=t,v.originalEvent=s,v.pullMode=f?f.lastPutMode:void 0;var y=bt(bt({},p),Wn.getEventProperties(o,r));for(var b in y)v[b]=y[b];e&&e.dispatchEvent(v),g[m]&&g[m].call(r,v)}}var Zu=["evt"],We=function(r,e){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,c=Xu(o,Zu);Wn.pluginEvent.bind(z)(r,e,bt({dragEl:R,parentEl:Ae,ghostEl:k,rootEl:he,nextEl:Wt,lastDownEl:fr,cloneEl:me,cloneHidden:Lt,dragStarted:On,putSortable:Be,activeSortable:z.active,originalEvent:a,oldIndex:sn,oldDraggableIndex:jn,newIndex:Ze,newDraggableIndex:Mt,hideGhostForTarget:ha,unhideGhostForTarget:va,cloneNowHidden:function(){Lt=!0},cloneNowShown:function(){Lt=!1},dispatchSortableEvent:function(l){Ke({sortable:e,name:l,originalEvent:a})}},c))};function Ke(i){Ju(bt({putSortable:Be,cloneEl:me,targetEl:R,rootEl:he,oldIndex:sn,oldDraggableIndex:jn,newIndex:Ze,newDraggableIndex:Mt},i))}var R,Ae,k,he,Wt,fr,me,Lt,sn,Ze,jn,Mt,tr,Be,on=!1,Sr=!1,Er=[],Vt,ut,$r,Yr,Fo,Lo,On,tn,Gn,Un=!1,nr=!1,dr,Ge,Wr=[],ro=!1,xr=[],Dr=typeof document!="undefined",rr=oa,Bo=Yn||Dt?"cssFloat":"float",ku=Dr&&!aa&&!oa&&"draggable"in document.createElement("div"),fa=function(){if(!!Dr){if(Dt)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),da=function(r,e){var o=W(r),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),c=fn(r,0,e),n=fn(r,1,e),l=c&&W(c),u=n&&W(n),d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+De(c).width,h=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+De(n).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&l.float&&l.float!=="none"){var t=l.float==="left"?"left":"right";return n&&(u.clear==="both"||u.clear===t)?"vertical":"horizontal"}return c&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||d>=a&&o[Bo]==="none"||n&&o[Bo]==="none"&&d+h>a)?"vertical":"horizontal"},qu=function(r,e,o){var a=o?r.left:r.top,c=o?r.right:r.bottom,n=o?r.width:r.height,l=o?e.left:e.top,u=o?e.right:e.bottom,d=o?e.width:e.height;return a===l||c===u||a+n/2===l+d/2},ec=function(r,e){var o;return Er.some(function(a){var c=a[qe].options.emptyInsertThreshold;if(!(!c||po(a))){var n=De(a),l=r>=n.left-c&&r<=n.right+c,u=e>=n.top-c&&e<=n.bottom+c;if(l&&u)return o=a}}),o},pa=function(r){function e(c,n){return function(l,u,d,h){var t=l.options.group.name&&u.options.group.name&&l.options.group.name===u.options.group.name;if(c==null&&(n||t))return!0;if(c==null||c===!1)return!1;if(n&&c==="clone")return c;if(typeof c=="function")return e(c(l,u,d,h),n)(l,u,d,h);var s=(n?l:u).options.group.name;return c===!0||typeof c=="string"&&c===s||c.join&&c.indexOf(s)>-1}}var o={},a=r.group;(!a||cr(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=e(a.pull,!0),o.checkPut=e(a.put),o.revertClone=a.revertClone,r.group=o},ha=function(){!fa&&k&&W(k,"display","none")},va=function(){!fa&&k&&W(k,"display","")};Dr&&!aa&&document.addEventListener("click",function(i){if(Sr)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),Sr=!1,!1},!0);var $t=function(r){if(R){r=r.touches?r.touches[0]:r;var e=ec(r.clientX,r.clientY);if(e){var o={};for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[qe]._onDragOver(o)}}},tc=function(r){R&&R.parentNode[qe]._isOutsideThisEl(r.target)};function z(i,r){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=r=Tt({},r),i[qe]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return da(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(n,l){n.setData("Text",l.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:z.supportPointer!==!1&&"PointerEvent"in window&&!Ln,emptyInsertThreshold:5};Wn.initializePlugins(this,i,e);for(var o in e)!(o in r)&&(r[o]=e[o]);pa(r);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=r.forceFallback?!1:ku,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?se(i,"pointerdown",this._onTapStart):(se(i,"mousedown",this._onTapStart),se(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(se(i,"dragover",this),se(i,"dragenter",this)),Er.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Tt(this,_u())}z.prototype={constructor:z,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(tn=null)},_getDirection:function(r,e){return typeof this.options.direction=="function"?this.options.direction.call(this,r,e,R):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var e=this,o=this.el,a=this.options,c=a.preventOnFilter,n=r.type,l=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,u=(l||r).target,d=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||u,h=a.filter;if(uc(o),!R&&!(/mousedown|pointerdown/.test(n)&&r.button!==0||a.disabled)&&!d.isContentEditable&&!(!this.nativeDraggable&&Ln&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ht(u,a.draggable,o,!1),!(u&&u.animated)&&fr!==u)){if(sn=rt(u),jn=rt(u,a.draggable),typeof h=="function"){if(h.call(this,r,u,this)){Ke({sortable:e,rootEl:d,name:"filter",targetEl:u,toEl:o,fromEl:o}),We("filter",e,{evt:r}),c&&r.cancelable&&r.preventDefault();return}}else if(h&&(h=h.split(",").some(function(t){if(t=ht(d,t.trim(),o,!1),t)return Ke({sortable:e,rootEl:t,name:"filter",targetEl:u,fromEl:o,toEl:o}),We("filter",e,{evt:r}),!0}),h)){c&&r.cancelable&&r.preventDefault();return}a.handle&&!ht(d,a.handle,o,!1)||this._prepareDragStart(r,l,u)}}},_prepareDragStart:function(r,e,o){var a=this,c=a.el,n=a.options,l=c.ownerDocument,u;if(o&&!R&&o.parentNode===c){var d=De(o);if(he=c,R=o,Ae=R.parentNode,Wt=R.nextSibling,fr=o,tr=n.group,z.dragged=R,Vt={target:R,clientX:(e||r).clientX,clientY:(e||r).clientY},Fo=Vt.clientX-d.left,Lo=Vt.clientY-d.top,this._lastX=(e||r).clientX,this._lastY=(e||r).clientY,R.style["will-change"]="all",u=function(){if(We("delayEnded",a,{evt:r}),z.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Po&&a.nativeDraggable&&(R.draggable=!0),a._triggerDragStart(r,e),Ke({sortable:a,name:"choose",originalEvent:r}),Qe(R,n.chosenClass,!0)},n.ignore.split(",").forEach(function(h){sa(R,h.trim(),_r)}),se(l,"dragover",$t),se(l,"mousemove",$t),se(l,"touchmove",$t),se(l,"mouseup",a._onDrop),se(l,"touchend",a._onDrop),se(l,"touchcancel",a._onDrop),Po&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),We("delayStart",this,{evt:r}),n.delay&&(!n.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Yn||Dt))){if(z.eventCanceled){this._onDrop();return}se(l,"mouseup",a._disableDelayedDrag),se(l,"touchend",a._disableDelayedDrag),se(l,"touchcancel",a._disableDelayedDrag),se(l,"mousemove",a._delayedDragTouchMoveHandler),se(l,"touchmove",a._delayedDragTouchMoveHandler),n.supportPointer&&se(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,n.delay)}else u()}},_delayedDragTouchMoveHandler:function(r){var e=r.touches?r.touches[0]:r;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&_r(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._disableDelayedDrag),ae(r,"touchend",this._disableDelayedDrag),ae(r,"touchcancel",this._disableDelayedDrag),ae(r,"mousemove",this._delayedDragTouchMoveHandler),ae(r,"touchmove",this._delayedDragTouchMoveHandler),ae(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,e){e=e||r.pointerType=="touch"&&r,!this.nativeDraggable||e?this.options.supportPointer?se(document,"pointermove",this._onTouchMove):e?se(document,"touchmove",this._onTouchMove):se(document,"mousemove",this._onTouchMove):(se(R,"dragend",this),se(he,"dragstart",this._onDragStart));try{document.selection?pr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,e){if(on=!1,he&&R){We("dragStarted",this,{evt:e}),this.nativeDraggable&&se(document,"dragover",tc);var o=this.options;!r&&Qe(R,o.dragClass,!1),Qe(R,o.ghostClass,!0),z.active=this,r&&this._appendGhost(),Ke({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ut){this._lastX=ut.clientX,this._lastY=ut.clientY,ha();for(var r=document.elementFromPoint(ut.clientX,ut.clientY),e=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(ut.clientX,ut.clientY),r!==e);)e=r;if(R.parentNode[qe]._isOutsideThisEl(r),e)do{if(e[qe]){var o=void 0;if(o=e[qe]._onDragOver({clientX:ut.clientX,clientY:ut.clientY,target:r,rootEl:e}),o&&!this.options.dragoverBubble)break}r=e}while(e=e.parentNode);va()}},_onTouchMove:function(r){if(Vt){var e=this.options,o=e.fallbackTolerance,a=e.fallbackOffset,c=r.touches?r.touches[0]:r,n=k&&ln(k,!0),l=k&&n&&n.a,u=k&&n&&n.d,d=rr&&Ge&&Mo(Ge),h=(c.clientX-Vt.clientX+a.x)/(l||1)+(d?d[0]-Wr[0]:0)/(l||1),t=(c.clientY-Vt.clientY+a.y)/(u||1)+(d?d[1]-Wr[1]:0)/(u||1);if(!z.active&&!on){if(o&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<o)return;this._onDragStart(r,!0)}if(k){n?(n.e+=h-($r||0),n.f+=t-(Yr||0)):n={a:1,b:0,c:0,d:1,e:h,f:t};var s="matrix(".concat(n.a,",").concat(n.b,",").concat(n.c,",").concat(n.d,",").concat(n.e,",").concat(n.f,")");W(k,"webkitTransform",s),W(k,"mozTransform",s),W(k,"msTransform",s),W(k,"transform",s),$r=h,Yr=t,ut=c}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!k){var r=this.options.fallbackOnBody?document.body:he,e=De(R,!0,rr,!0,r),o=this.options;if(rr){for(Ge=r;W(Ge,"position")==="static"&&W(Ge,"transform")==="none"&&Ge!==document;)Ge=Ge.parentNode;Ge!==document.body&&Ge!==document.documentElement?(Ge===document&&(Ge=gt()),e.top+=Ge.scrollTop,e.left+=Ge.scrollLeft):Ge=gt(),Wr=Mo(Ge)}k=R.cloneNode(!0),Qe(k,o.ghostClass,!1),Qe(k,o.fallbackClass,!0),Qe(k,o.dragClass,!0),W(k,"transition",""),W(k,"transform",""),W(k,"box-sizing","border-box"),W(k,"margin",0),W(k,"top",e.top),W(k,"left",e.left),W(k,"width",e.width),W(k,"height",e.height),W(k,"opacity","0.8"),W(k,"position",rr?"absolute":"fixed"),W(k,"zIndex","100000"),W(k,"pointerEvents","none"),z.ghost=k,r.appendChild(k),W(k,"transform-origin",Fo/parseInt(k.style.width)*100+"% "+Lo/parseInt(k.style.height)*100+"%")}},_onDragStart:function(r,e){var o=this,a=r.dataTransfer,c=o.options;if(We("dragStart",this,{evt:r}),z.eventCanceled){this._onDrop();return}We("setupClone",this),z.eventCanceled||(me=ca(R),me.removeAttribute("id"),me.draggable=!1,me.style["will-change"]="",this._hideClone(),Qe(me,this.options.chosenClass,!1),z.clone=me),o.cloneId=pr(function(){We("clone",o),!z.eventCanceled&&(o.options.removeCloneOnHide||he.insertBefore(me,R),o._hideClone(),Ke({sortable:o,name:"clone"}))}),!e&&Qe(R,c.dragClass,!0),e?(Sr=!0,o._loopId=setInterval(o._emulateDragOver,50)):(ae(document,"mouseup",o._onDrop),ae(document,"touchend",o._onDrop),ae(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",c.setData&&c.setData.call(o,a,R)),se(document,"drop",o),W(R,"transform","translateZ(0)")),on=!0,o._dragStartId=pr(o._dragStarted.bind(o,e,r)),se(document,"selectstart",o),On=!0,Ln&&W(document.body,"user-select","none")},_onDragOver:function(r){var e=this.el,o=r.target,a,c,n,l=this.options,u=l.group,d=z.active,h=tr===u,t=l.sort,s=Be||d,f,p=this,v=!1;if(ro)return;function g(ee,le){We(ee,p,bt({evt:r,isOwner:h,axis:f?"vertical":"horizontal",revert:n,dragRect:a,targetRect:c,canSort:t,fromSortable:s,target:o,completed:y,onMove:function(ce,fe){return or(he,e,R,a,ce,De(ce),r,fe)},changed:b},le))}function m(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==s&&s.captureAnimationState()}function y(ee){return g("dragOverCompleted",{insertion:ee}),ee&&(h?d._hideClone():d._showClone(p),p!==s&&(Qe(R,Be?Be.options.ghostClass:d.options.ghostClass,!1),Qe(R,l.ghostClass,!0)),Be!==p&&p!==z.active?Be=p:p===z.active&&Be&&(Be=null),s===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(o===R&&!R.animated||o===e&&!o.animated)&&(tn=null),!l.dragoverBubble&&!r.rootEl&&o!==document&&(R.parentNode[qe]._isOutsideThisEl(r.target),!ee&&$t(r)),!l.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),v=!0}function b(){Ze=rt(R),Mt=rt(R,l.draggable),Ke({sortable:p,name:"change",toEl:e,newIndex:Ze,newDraggableIndex:Mt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),o=ht(o,l.draggable,e,!0),g("dragOver"),z.eventCanceled)return v;if(R.contains(r.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return y(!1);if(Sr=!1,d&&!l.disabled&&(h?t||(n=Ae!==he):Be===this||(this.lastPutMode=tr.checkPull(this,d,R,r))&&u.checkPut(this,d,R,r))){if(f=this._getDirection(r,o)==="vertical",a=De(R),g("dragOverValid"),z.eventCanceled)return v;if(n)return Ae=he,m(),this._hideClone(),g("revert"),z.eventCanceled||(Wt?he.insertBefore(R,Wt):he.appendChild(R)),y(!0);var A=po(e,l.draggable);if(!A||ac(r,f,this)&&!A.animated){if(A===R)return y(!1);if(A&&e===r.target&&(o=A),o&&(c=De(o)),or(he,e,R,a,o,c,r,!!o)!==!1)return m(),A&&A.nextSibling?e.insertBefore(R,A.nextSibling):e.appendChild(R),Ae=e,b(),y(!0)}else if(A&&oc(r,f,this)){var I=fn(e,0,l,!0);if(I===R)return y(!1);if(o=I,c=De(o),or(he,e,R,a,o,c,r,!1)!==!1)return m(),e.insertBefore(R,I),Ae=e,b(),y(!0)}else if(o.parentNode===e){c=De(o);var T=0,B,j=R.parentNode!==e,x=!qu(R.animated&&R.toRect||a,o.animated&&o.toRect||c,f),M=f?"top":"left",L=No(o,"top","top")||No(R,"top","top"),V=L?L.scrollTop:void 0;tn!==o&&(B=c[M],Un=!1,nr=!x&&l.invertSwap||j),T=ic(r,o,c,f,x?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,nr,tn===o);var D;if(T!==0){var P=rt(R);do P-=T,D=Ae.children[P];while(D&&(W(D,"display")==="none"||D===k))}if(T===0||D===o)return y(!1);tn=o,Gn=T;var K=o.nextElementSibling,F=!1;F=T===1;var X=or(he,e,R,a,o,c,r,F);if(X!==!1)return(X===1||X===-1)&&(F=X===1),ro=!0,setTimeout(rc,30),m(),F&&!K?e.appendChild(R):o.parentNode.insertBefore(R,F?K:o),L&&ua(L,0,V-L.scrollTop),Ae=R.parentNode,B!==void 0&&!nr&&(dr=Math.abs(B-De(o)[M])),b(),y(!0)}if(e.contains(R))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ae(document,"mousemove",this._onTouchMove),ae(document,"touchmove",this._onTouchMove),ae(document,"pointermove",this._onTouchMove),ae(document,"dragover",$t),ae(document,"mousemove",$t),ae(document,"touchmove",$t)},_offUpEvents:function(){var r=this.el.ownerDocument;ae(r,"mouseup",this._onDrop),ae(r,"touchend",this._onDrop),ae(r,"pointerup",this._onDrop),ae(r,"touchcancel",this._onDrop),ae(document,"selectstart",this)},_onDrop:function(r){var e=this.el,o=this.options;if(Ze=rt(R),Mt=rt(R,o.draggable),We("drop",this,{evt:r}),Ae=R&&R.parentNode,Ze=rt(R),Mt=rt(R,o.draggable),z.eventCanceled){this._nulling();return}on=!1,nr=!1,Un=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oo(this.cloneId),oo(this._dragStartId),this.nativeDraggable&&(ae(document,"drop",this),ae(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ln&&W(document.body,"user-select",""),W(R,"transform",""),r&&(On&&(r.cancelable&&r.preventDefault(),!o.dropBubble&&r.stopPropagation()),k&&k.parentNode&&k.parentNode.removeChild(k),(he===Ae||Be&&Be.lastPutMode!=="clone")&&me&&me.parentNode&&me.parentNode.removeChild(me),R&&(this.nativeDraggable&&ae(R,"dragend",this),_r(R),R.style["will-change"]="",On&&!on&&Qe(R,Be?Be.options.ghostClass:this.options.ghostClass,!1),Qe(R,this.options.chosenClass,!1),Ke({sortable:this,name:"unchoose",toEl:Ae,newIndex:null,newDraggableIndex:null,originalEvent:r}),he!==Ae?(Ze>=0&&(Ke({rootEl:Ae,name:"add",toEl:Ae,fromEl:he,originalEvent:r}),Ke({sortable:this,name:"remove",toEl:Ae,originalEvent:r}),Ke({rootEl:Ae,name:"sort",toEl:Ae,fromEl:he,originalEvent:r}),Ke({sortable:this,name:"sort",toEl:Ae,originalEvent:r})),Be&&Be.save()):Ze!==sn&&Ze>=0&&(Ke({sortable:this,name:"update",toEl:Ae,originalEvent:r}),Ke({sortable:this,name:"sort",toEl:Ae,originalEvent:r})),z.active&&((Ze==null||Ze===-1)&&(Ze=sn,Mt=jn),Ke({sortable:this,name:"end",toEl:Ae,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){We("nulling",this),he=R=Ae=k=Wt=me=fr=Lt=Vt=ut=On=Ze=Mt=sn=jn=tn=Gn=Be=tr=z.dragged=z.ghost=z.clone=z.active=null,xr.forEach(function(r){r.checked=!0}),xr.length=$r=Yr=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":R&&(this._onDragOver(r),nc(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],e,o=this.el.children,a=0,c=o.length,n=this.options;a<c;a++)e=o[a],ht(e,n.draggable,this.el,!1)&&r.push(e.getAttribute(n.dataIdAttr)||lc(e));return r},sort:function(r,e){var o={},a=this.el;this.toArray().forEach(function(c,n){var l=a.children[n];ht(l,this.options.draggable,a,!1)&&(o[c]=l)},this),e&&this.captureAnimationState(),r.forEach(function(c){o[c]&&(a.removeChild(o[c]),a.appendChild(o[c]))}),e&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,e){return ht(r,e||this.options.draggable,this.el,!1)},option:function(r,e){var o=this.options;if(e===void 0)return o[r];var a=Wn.modifyOption(this,r,e);typeof a!="undefined"?o[r]=a:o[r]=e,r==="group"&&pa(o)},destroy:function(){We("destroy",this);var r=this.el;r[qe]=null,ae(r,"mousedown",this._onTapStart),ae(r,"touchstart",this._onTapStart),ae(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(ae(r,"dragover",this),ae(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Er.splice(Er.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Lt){if(We("hideClone",this),z.eventCanceled)return;W(me,"display","none"),this.options.removeCloneOnHide&&me.parentNode&&me.parentNode.removeChild(me),Lt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Lt){if(We("showClone",this),z.eventCanceled)return;R.parentNode==he&&!this.options.group.revertClone?he.insertBefore(me,R):Wt?he.insertBefore(me,Wt):he.appendChild(me),this.options.group.revertClone&&this.animate(R,me),W(me,"display",""),Lt=!1}}};function nc(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function or(i,r,e,o,a,c,n,l){var u,d=i[qe],h=d.options.onMove,t;return window.CustomEvent&&!Dt&&!Yn?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=r,u.from=i,u.dragged=e,u.draggedRect=o,u.related=a||r,u.relatedRect=c||De(r),u.willInsertAfter=l,u.originalEvent=n,i.dispatchEvent(u),h&&(t=h.call(d,u,n)),t}function _r(i){i.draggable=!1}function rc(){ro=!1}function oc(i,r,e){var o=De(fn(e.el,0,e.options,!0)),a=10;return r?i.clientX<o.left-a||i.clientY<o.top&&i.clientX<o.right:i.clientY<o.top-a||i.clientY<o.bottom&&i.clientX<o.left}function ac(i,r,e){var o=De(po(e.el,e.options.draggable)),a=10;return r?i.clientX>o.right+a||i.clientX<=o.right&&i.clientY>o.bottom&&i.clientX>=o.left:i.clientX>o.right&&i.clientY>o.top||i.clientX<=o.right&&i.clientY>o.bottom+a}function ic(i,r,e,o,a,c,n,l){var u=o?i.clientY:i.clientX,d=o?e.height:e.width,h=o?e.top:e.left,t=o?e.bottom:e.right,s=!1;if(!n){if(l&&dr<d*a){if(!Un&&(Gn===1?u>h+d*c/2:u<t-d*c/2)&&(Un=!0),Un)s=!0;else if(Gn===1?u<h+dr:u>t-dr)return-Gn}else if(u>h+d*(1-a)/2&&u<t-d*(1-a)/2)return sc(r)}return s=s||n,s&&(u<h+d*c/2||u>t-d*c/2)?u>h+d/2?1:-1:0}function sc(i){return rt(R)<rt(i)?1:-1}function lc(i){for(var r=i.tagName+i.className+i.src+i.href+i.textContent,e=r.length,o=0;e--;)o+=r.charCodeAt(e);return o.toString(36)}function uc(i){xr.length=0;for(var r=i.getElementsByTagName("input"),e=r.length;e--;){var o=r[e];o.checked&&xr.push(o)}}function pr(i){return setTimeout(i,0)}function oo(i){return clearTimeout(i)}Dr&&se(document,"touchmove",function(i){(z.active||on)&&i.cancelable&&i.preventDefault()});z.utils={on:se,off:ae,css:W,find:sa,is:function(r,e){return!!ht(r,e,r,!1)},extend:Yu,throttle:la,closest:ht,toggleClass:Qe,clone:ca,index:rt,nextTick:pr,cancelNextTick:oo,detectDirection:da,getChild:fn};z.get=function(i){return i[qe]};z.mount=function(){for(var i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];r[0].constructor===Array&&(r=r[0]),r.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(z.utils=bt(bt({},z.utils),o.utils)),Wn.mount(o)})};z.create=function(i,r){return new z(i,r)};z.version=Ku;var Ie=[],Dn,ao,io=!1,zr,Qr,wr,Cn;function cc(){function i(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return i.prototype={dragStarted:function(e){var o=e.originalEvent;this.sortable.nativeDraggable?se(document,"dragover",this._handleAutoScroll):this.options.supportPointer?se(document,"pointermove",this._handleFallbackAutoScroll):o.touches?se(document,"touchmove",this._handleFallbackAutoScroll):se(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var o=e.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?ae(document,"dragover",this._handleAutoScroll):(ae(document,"pointermove",this._handleFallbackAutoScroll),ae(document,"touchmove",this._handleFallbackAutoScroll),ae(document,"mousemove",this._handleFallbackAutoScroll)),jo(),hr(),Wu()},nulling:function(){wr=ao=Dn=io=Cn=zr=Qr=null,Ie.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,o){var a=this,c=(e.touches?e.touches[0]:e).clientX,n=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(c,n);if(wr=e,o||this.options.forceAutoScrollFallback||Yn||Dt||Ln){Jr(e,this.options,l,o);var u=jt(l,!0);io&&(!Cn||c!==zr||n!==Qr)&&(Cn&&jo(),Cn=setInterval(function(){var d=jt(document.elementFromPoint(c,n),!0);d!==u&&(u=d,hr()),Jr(e,a.options,d,o)},10),zr=c,Qr=n)}else{if(!this.options.bubbleScroll||jt(l,!0)===gt()){hr();return}Jr(e,this.options,jt(l,!1),!1)}}},Tt(i,{pluginName:"scroll",initializeByDefault:!0})}function hr(){Ie.forEach(function(i){clearInterval(i.pid)}),Ie=[]}function jo(){clearInterval(Cn)}var Jr=la(function(i,r,e,o){if(!!r.scroll){var a=(i.touches?i.touches[0]:i).clientX,c=(i.touches?i.touches[0]:i).clientY,n=r.scrollSensitivity,l=r.scrollSpeed,u=gt(),d=!1,h;ao!==e&&(ao=e,hr(),Dn=r.scroll,h=r.scrollFn,Dn===!0&&(Dn=jt(e,!0)));var t=0,s=Dn;do{var f=s,p=De(f),v=p.top,g=p.bottom,m=p.left,y=p.right,b=p.width,A=p.height,I=void 0,T=void 0,B=f.scrollWidth,j=f.scrollHeight,x=W(f),M=f.scrollLeft,L=f.scrollTop;f===u?(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")):(I=b<B&&(x.overflowX==="auto"||x.overflowX==="scroll"),T=A<j&&(x.overflowY==="auto"||x.overflowY==="scroll"));var V=I&&(Math.abs(y-a)<=n&&M+b<B)-(Math.abs(m-a)<=n&&!!M),D=T&&(Math.abs(g-c)<=n&&L+A<j)-(Math.abs(v-c)<=n&&!!L);if(!Ie[t])for(var P=0;P<=t;P++)Ie[P]||(Ie[P]={});(Ie[t].vx!=V||Ie[t].vy!=D||Ie[t].el!==f)&&(Ie[t].el=f,Ie[t].vx=V,Ie[t].vy=D,clearInterval(Ie[t].pid),(V!=0||D!=0)&&(d=!0,Ie[t].pid=setInterval(function(){o&&this.layer===0&&z.active._onTouchMove(wr);var K=Ie[this.layer].vy?Ie[this.layer].vy*l:0,F=Ie[this.layer].vx?Ie[this.layer].vx*l:0;typeof h=="function"&&h.call(z.dragged.parentNode[qe],F,K,i,wr,Ie[this.layer].el)!=="continue"||ua(Ie[this.layer].el,F,K)}.bind({layer:t}),24))),t++}while(r.bubbleScroll&&s!==u&&(s=jt(s,!1)));io=d}},30),ga=function(r){var e=r.originalEvent,o=r.putSortable,a=r.dragEl,c=r.activeSortable,n=r.dispatchSortableEvent,l=r.hideGhostForTarget,u=r.unhideGhostForTarget;if(!!e){var d=o||c;l();var h=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,t=document.elementFromPoint(h.clientX,h.clientY);u(),d&&!d.el.contains(t)&&(n("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function ho(){}ho.prototype={startIndex:null,dragStart:function(r){var e=r.oldDraggableIndex;this.startIndex=e},onSpill:function(r){var e=r.dragEl,o=r.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=fn(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(e,a):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:ga};Tt(ho,{pluginName:"revertOnSpill"});function vo(){}vo.prototype={onSpill:function(r){var e=r.dragEl,o=r.putSortable,a=o||this.sortable;a.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),a.animateAll()},drop:ga};Tt(vo,{pluginName:"removeOnSpill"});z.mount(new cc);z.mount(vo,ho);var Gc=It({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(i,{emit:r}){const e=Kn({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]});Xn(()=>{});const o=()=>{const l=e.list||[],u=[];l.forEach((d,h)=>{u.push({answerId:d.answerId,answer:d.answer,answerExtra:h+1})}),r("update:value",u)},a=l=>{if(l.checked||i.readOnly)return;const u=[];e.options.forEach((d,h)=>{u.push({answerId:d.index,answer:d.leftValue,answerExtra:h+1})}),u.push({answerId:l.examinationQuestionAnswerId,answer:l.questionAnswer,answerExtra:e.list.length+1}),e.list.push({answerId:l.examinationQuestionAnswerId,answer:l.questionAnswer,answerExtra:e.list.length+1}),r("update:value",u),Hn(()=>{n()})},c=un(()=>{const l=i.data.answers||[],u=i.value||[];return l.forEach(d=>{const h=u.findIndex(t=>t.answerId===d.examinationQuestionAnswerId);d.checked=h!==-1}),l}),n=()=>{const l=i.data.answers||[],u=i.data.userAnswer||[];Hn(()=>{if(u.length>0){const d=[];u.forEach((h,t)=>{const s=l.find(v=>h.answerId===v.examinationQuestionAnswerId),f=l.find(v=>h.answerExtra==v.questionExtra),p={itemIndex:t,index:h.answerId,leftValue:h.answer,rightValue:h.answerExtra,leftType:s&&s.questionAnswerTypeCode||"TXT",rightType:s&&s.questionExtraTypeCode||"TXT",rightIndex:f?f.examinationQuestionAnswerId:""};d.push(p)}),e.options=d}})};return Xo(()=>e.options,()=>{const l=e.options||[],u=[];l.forEach((d,h)=>{u.push({answerId:d.index,answer:d.leftValue,answerExtra:h+1})}),r("update:value",u)}),Xn(()=>{n()}),()=>O(mt,null,[O("div",{class:Fe.unitSubject},[O(Tr,{index:i.index,name:i.data.name,showRate:i.showRate,score:i.data.totalScore,answerType:Et.SORT,extra:{rightRate:i.data.rightRate,questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls}},null),O("div",{class:[Fe.unitAnswers]},[c.value.map((l,u)=>O("div",{class:[Fe.unitAnswer,l.checked&&Fe.active],onClick:()=>a(l)},[O("div",{class:Fe.answerContent},[O("span",{class:Fe.option},[Vo[u+1],Re(".")]),l.questionAnswerTypeCode===ke.IMAGE&&O("div",{class:Fe.value},[O(Gt,{src:l.questionAnswer},null)]),l.questionAnswerTypeCode===ke.TXT&&O("div",{class:Fe.value},[l.questionAnswer])])])),O("div",{class:[Fe.sortReset,"van-hairline--top"]},[O("span",{class:Fe.tips},[Re("\u6211\u7684\u56DE\u7B54\uFF08\u53EF\u62D6\u62FD\uFF09")]),O(so,{type:"primary",round:!0,disabled:i.readOnly,onClick:()=>{e.options=[],e.list=[],o(),n()}},{default:()=>[Re("\u91CD\u7F6E")]})]),i.readOnly?e.options.map(l=>O("div",{class:Fe.itemsContainer},[l.leftType===ke.TXT&&O(Zr,{class:[Fe.items],"data-id":l.itemIndex},{default:()=>[l.leftValue]}),l.leftType===ke.IMAGE&&O(Gt,{src:l.leftValue,"data-id":l.itemIndex,class:[Fe.imgs,"van-hairline--surround"],fit:"cover"},null)])):O(wu,{modelValue:e.options,"onUpdate:modelValue":l=>e.options=l,itemKey:"itemIndex"},{item:l=>{const u=l.element;return O("div",{class:Fe.itemsContainer},[u.leftType===ke.TXT&&O(Zr,{class:[Fe.items],"data-id":u.itemIndex},{default:()=>[u.leftValue]}),u.leftType===ke.IMAGE&&O(Gt,{src:u.leftValue,"data-id":u.itemIndex,class:[Fe.imgs,"van-hairline--surround"],fit:"cover"},null)])}})])]),i.showAnalysis&&O("div",{class:Fe.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const fc="_unitSubject_cexcs_1",dc="_unitAnswers_cexcs_10",pc="_answerItem_cexcs_15",hc="_img_cexcs_26",vc="_unitItem_cexcs_29",gc="_active_cexcs_45",mc="_canvasSection_cexcs_49",yc="_resetBtnGroup_cexcs_54";var nt={unitSubject:fc,unitAnswers:dc,answerItem:pc,img:hc,unitItem:vc,active:gc,canvasSection:mc,resetBtnGroup:yc},Uc=It({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(i,{emit:r}){const e=Go(),o=Kn({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),a=(s,f)=>{if(i.readOnly)return;o.options.forEach(v=>{!v.leftLocked&&f.index!==v.index&&(v.left=!1)});const p=n(f.index,"left");if(p.status)o.options.forEach(v=>{v.rightLocked||(v.right=!1)}),o.selectItem=[],o.drawLineList.splice(p.selectIndex,1),u(e.value),o.options.forEach(v=>{p.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),p.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=l();o.drawLineList.push(v),o.selectItem=[],u(e.value)}h()},c=(s,f)=>{if(i.readOnly)return;o.options.forEach(v=>{!v.rightLocked&&f.index!==v.index&&(v.right=!1)});const p=n(f.index,"right");if(p.status)o.options.forEach(v=>{v.leftLocked||(v.left=!1)}),o.selectItem=[],o.drawLineList.splice(p.selectIndex,1),u(e.value),o.options.forEach(v=>{p.selectOption.leftIndex===v.index&&(v.left=!1,v.leftLocked=!1),p.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=l();o.drawLineList.push(v),o.selectItem=[],u(e.value)}h()},n=(s,f="left")=>{const p=o.drawLineList||[];let v=!1,g=0,m={};return p.forEach((y,b)=>{(y.leftIndex===s&&f==="left"||y.rightIndex===s&&f==="right")&&(m=y,v=!0,g=b)}),{status:v,selectIndex:g,selectOption:m}},l=()=>{const s=Jt(e.value),f=o.selectItem[0],p=Jt(document.getElementById(f.index+"-left"));p.index=f.index;const v=o.selectItem[1],g=Jt(document.getElementById(v.index+"-right"));g.index=v.index,console.log(o.selectItem,p,g);const m={x:p.width,y:p.top+p.height/2-s.top},y={x:g.left-s.left,y:g.top+g.height/2-s.top};return o.options.forEach(b=>{b.index===p.index&&(b.leftLocked=!0),b.index===g.index&&(b.rightLocked=!0)}),{startPoint:m,endPoint:y,leftIndex:p.index,rightIndex:g.index}},u=s=>{if(s.getContext){const f=s.getContext("2d");f.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach(p=>{d(f,p.startPoint,p.endPoint)})}},d=(s,f,p)=>{s.beginPath(),s.moveTo(Math.floor(f.x-1)*o.dpr,Math.ceil(f.y)*o.dpr),s.lineTo(Math.ceil(p.x+1)*o.dpr,Math.ceil(p.y)*o.dpr),s.lineWidth=2*o.dpr,s.strokeStyle="#FF8057",s.stroke()},h=()=>{const s=o.options||[],f=o.drawLineList||[],p=[];f.forEach(v=>{const g=s.find(y=>y.index===v.leftIndex),m=s.find(y=>y.index===v.rightIndex);p.push({answerId:g.index,answer:g.leftValue,answerExtra:m.rightValue})}),r("update:value",p)},t=()=>{const s=i.data.answers||[],f=i.data.userAnswer||[];s.forEach(p=>{const v={index:p.examinationQuestionAnswerId,leftValue:p.questionAnswer,rightValue:p.questionExtra,leftType:p.questionAnswerTypeCode||"TXT",rightType:p.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(v)}),f.forEach(p=>{const v={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach(g=>{g.index===p.answerId&&(g.left=!0,g.leftLocked=!0,v.leftIndex=g.index),g.rightValue===p.answerExtra&&(g.right=!0,g.leftLocked=!0,v.rightIndex=g.index)}),o.drawLineList.push(v)}),Hn(()=>{o.drawLineList.forEach(p=>{o.selectItem=[];const v=Jt(document.getElementById(p.leftIndex+"-left"));v.index=p.leftIndex,o.selectItem[0]=v;const g=Jt(document.getElementById(p.rightIndex+"-right"));g.index=p.rightIndex,o.selectItem[1]=g;const m=l();p.endPoint=m.endPoint,p.startPoint=m.startPoint,o.selectItem=[]}),setTimeout(()=>{u(e.value)},100)})};return Xn(()=>{t(),Hn(()=>{const s=document.getElementById(o.answerDomId),f=Jt(s);o.answerRect=f;const p=window.devicePixelRatio;o.dpr=p})}),()=>O(mt,null,[O("div",{class:nt.unitSubject},[O(Tr,{index:i.index,name:i.data.name,score:i.data.totalScore,showRate:i.showRate,answerType:Et.LINK,extra:{questionDetail:i.data.questionDetail,mediaUrls:i.data.mediaUrls,rightRate:i.data.rightRate}},null),O("div",{class:[nt.unitAnswers],id:o.answerDomId},[O("canvas",{ref:e,class:nt.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(s=>O("div",{class:nt.answerItem},[O("div",{class:[nt.unitItem,s.left&&nt.active],id:s.index+"-left",onClick:f=>a(f,s)},[s.leftType===ke.TXT&&s.leftValue,s.leftType===ke.IMAGE&&O(Gt,{src:s.leftValue,class:nt.img},null)]),O("div",{class:[nt.unitItem,s.right&&nt.active],id:s.index+"-right",onClick:f=>c(f,s)},[s.rightType===ke.TXT&&s.rightValue,s.rightType===ke.IMAGE&&O(Gt,{src:s.rightValue,class:nt.img},null)])]))]),O("div",{class:nt.resetBtnGroup},[O(so,{round:!0,type:"primary",disabled:i.readOnly,onClick:()=>{o.drawLineList=[],u(e.value),o.options.forEach(s=>{s.left=!1,s.right=!1,s.leftLocked=!1,s.rightLocked=!1}),o.selectItem=[],h()}},{default:()=>[Re("\u91CD\u7F6E")]})])]),i.showAnalysis&&O("div",{class:nt.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult},null)])])}});const bc="_unitSubject_vaiy0_1",Ac="_unitAnswers_vaiy0_10",Sc="_playSection_vaiy0_14",Ec="_img_vaiy0_19",xc="_playTitle_vaiy0_24",wc="_playBtn_vaiy0_29",Tc="_unitScoreNum_vaiy0_37",Ic="_score_vaiy0_42",Oc="_scoreTitle_vaiy0_47",Dc="_scoreTips_vaiy0_53";var ct={unitSubject:bc,unitAnswers:Ac,playSection:Sc,img:Ec,playTitle:xc,playBtn:wc,unitScoreNum:Tc,score:Ic,scoreTitle:Oc,scoreTips:Dc},Cc="./assets/icon-song.c2cb716c.png",Hc=It({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(i,{emit:r}){console.log(i,"props");const e=Kn({list:[],score:0}),o=un(()=>i.data.questionExtendsInfo?JSON.parse(i.data.questionExtendsInfo):""),a=()=>{const c=o.value;!c||(console.log(i.unitId),Vs({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${c.musicSheetId}&modelType=evaluation&unitId=${i.unitId}&questionId=${i.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),$s("webViewOnResume",()=>{var n,l;if(Ys().android){const u=window.ORCHESTRA||((l=(n=window.webkit)==null?void 0:n.messageHandlers)==null?void 0:l.ORCHESTRA);console.log(u,"-------------");const d=u.getCache2("h5-orchestra-unit");console.log("\u{1F680} ~ listenerMessage ~ result",d);const h=d?JSON.parse(d):{};if(h.questionId===i.data.id){const t=h.score||0;e.score<t&&(e.score=h.score||0),Rr({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}r("update:value",[{answerId:"",answer:e.score,answerExtra:""}]),go("webViewOnResume",()=>{})}else Rr({api:"getCache",content:{key:"h5-orchestra-unit"}}).then(u=>{const d=u.content;if(d.value){console.log("\u{1F680} ~ listenerMessage ~ content.value",d.value,"---------------");const h=d.value?JSON.parse(d.value):{};if(console.log("\u{1F680} ~ listenerMessage ~ result",h,i.data.questionId),h.questionId===i.data.id){const t=h.score||0;e.score<t&&(e.score=h.score||0)}r("update:value",[{answerId:"",answer:e.score,answerExtra:""}]),Rr({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}go("webViewOnResume",()=>{})})}))};return Xn(()=>{const c=i.value||[];c.length>0&&(e.score=c[0].answer)}),()=>O(mt,null,[O("div",{class:ct.unitSubject},[O(Tr,{index:i.index,name:i.data.name,score:i.data.totalScore,showRate:i.showRate,answerType:Et.PLAY,extra:{questionDetail:i.data.questionDetail,mediaUrls:"",rightRate:i.data.rightRate}},null),O("div",{class:[ct.unitAnswers]},[o.value&&O(zs,{class:ct.playSection,center:!0,titleClass:["van-ellipsis",ct.playTitle]},{icon:()=>O(Gt,{class:ct.img,src:Cc},null),title:()=>O(mt,null,[o.value.musicName]),value:()=>O(so,{round:!0,class:ct.playBtn,type:"primary",onClick:a,disabled:i.readOnly},{default:()=>[Re("\u70B9\u51FB\u8BC4\u6D4B"),O(_t,{name:"play"},null)]})}),(!i.readOnly||i.showScore)&&O("div",{class:["van-hairline--top",ct.unitScoreNum]},[O("div",{class:ct.score},[e.score]),O("div",{class:ct.scoreTitle},[Re("\u8BC4\u6D4B\u5206\u6570")]),!i.showScore&&O("div",{class:ct.scoreTips},[Re("\u591A\u6B21\u8BC4\u6D4B\u53D6\u5B8C\u6574\u8BC4\u6D4B\u7684\u6700\u9AD8\u5206\u6570")])])])]),i.showAnalysis&&O("div",{class:ct.unitSubject},[O(Ir,{answerAnalysis:i.analysis.message,topic:i.analysis.topic,userResult:i.analysis.userResult,rightFlagText:"\u5408\u683C",errorFlagText:"\u4E0D\u5408\u683C"},null)])])}});export{jc as A,Bc as C,Gc as D,Uc as K,Hc as P,Et as Q,Sl as a,mo as e,Lc as i};