index-b61d16f8.js 180 KB

12345678910111213141516171819202122232425262728
  1. import{c as Ur,a6 as Gr,ad as Hr,t as an,ae as Vr,m as Kr,af as Yr,d as He,a as S,h as Xr,ab as Wr,V as Kn,I as vt,H as Qr,L as zr,z as Dt,k as _r,ag as pr,ah as Tt,x as en,ai as hr,A as Z,e as Pt,F as tt,a1 as gr,aj as mr,ak as Jr,w as Zr,y as En,C as Rt,r as yr,Z as yt,al as kr,am as $r,R as qr,an as Pn,ao as qn,U as eo,q as to,M as no,S as ro,D as er}from"./index-25053a57.js";import{M as tr}from"./index-9d440a13.js";import{T as Yn}from"./index-fe3b5b3a.js";import{I as qe}from"./index-69ac4e49.js";import{G as Ar,a as vn}from"./index-b011f3d2.js";import{O as Rn}from"./index-2feed669.js";import{C as oo}from"./index-6900892b.js";import{b as ao,u as io,a as so}from"./index-ca4e5d82.js";import{S as lo,a as uo}from"./index-a7d19a08.js";const[co,Ke]=Ur("action-sheet"),fo=Gr({},Hr,{title:String,round:an,actions:Vr(),closeIcon:Kr("cross"),closeable:an,cancelText:String,description:String,closeOnPopstate:an,closeOnClickAction:Boolean,safeAreaInsetBottom:an}),vo=[...Yr,"round","closeOnPopstate","safeAreaInsetBottom"];var po=He({name:co,props:fo,emits:["select","cancel","update:show"],setup(s,{slots:l,emit:n}){const a=p=>n("update:show",p),r=()=>{a(!1),n("cancel")},v=()=>{if(s.title)return S("div",{class:Ke("header")},[s.title,s.closeable&&S(vt,{name:s.closeIcon,class:[Ke("close"),Qr],onClick:r},null)])},t=()=>{if(l.cancel||s.cancelText)return[S("div",{class:Ke("gap")},null),S("button",{type:"button",class:Ke("cancel"),onClick:r},[l.cancel?l.cancel():s.cancelText])]},f=(p,e)=>p.loading?S(zr,{class:Ke("loading-icon")},null):l.action?l.action({action:p,index:e}):[S("span",{class:Ke("name")},[p.name]),p.subname&&S("div",{class:Ke("subname")},[p.subname])],u=(p,e)=>{const{color:o,loading:i,callback:d,disabled:g,className:h}=p,m=()=>{g||i||(d&&d(p),s.closeOnClickAction&&a(!1),Dt(()=>n("select",p,e)))};return S("button",{type:"button",style:{color:o},class:[Ke("item",{loading:i,disabled:g}),h],onClick:m},[f(p,e)])},c=()=>{if(s.description||l.description){const p=l.description?l.description():s.description;return S("div",{class:Ke("description")},[p])}};return()=>S(Kn,Xr({class:Ke(),position:"bottom","onUpdate:show":a},Wr(s,vo)),{default:()=>{var p;return[v(),c(),S("div",{class:Ke("content")},[s.actions.map(u),(p=l.default)==null?void 0:p.call(l)]),t()]}})}});const ho=_r(po),go="_unitDetail_1eas7_1",mo="_unitSwipe_1eas7_9",yo="_questionTitle_1eas7_12",Ao="_questionNum_1eas7_21",So="_questionType_1eas7_24",xo="_wapList_1eas7_36",bo="_practiceResult_1eas7_42",wo="_practiceTitle_1eas7_42",Eo="_practiceRate_1eas7_48",To="_title_1eas7_64",Io="_name_1eas7_70",Oo="_practiceTips_1eas7_76",Co="_btnSection_1eas7_89",Do="_prevBtn_1eas7_94",Po="_nextBtn_1eas7_95",Ro="_activePrevBtn_1eas7_96",te={unitDetail:go,unitSwipe:mo,questionTitle:yo,questionNum:Ao,questionType:So,wapList:xo,practiceResult:bo,practiceTitle:wo,practiceRate:Eo,title:To,name:Io,practiceTips:Oo,btnSection:Co,prevBtn:Do,nextBtn:Po,activePrevBtn:Ro},Lo="data:image/png;base64,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";var Sr={exports:{}};(function(s){var l=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function r(u,c,p){this.fn=u,this.context=c,this.once=p||!1}function v(u,c,p,e,o){if(typeof p!="function")throw new TypeError("The listener must be a function");var i=new r(p,e||u,o),d=n?n+c:c;return u._events[d]?u._events[d].fn?u._events[d]=[u._events[d],i]:u._events[d].push(i):(u._events[d]=i,u._eventsCount++),u}function t(u,c){--u._eventsCount===0?u._events=new a:delete u._events[c]}function f(){this._events=new a,this._eventsCount=0}f.prototype.eventNames=function(){var c=[],p,e;if(this._eventsCount===0)return c;for(e in p=this._events)l.call(p,e)&&c.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(p)):c},f.prototype.listeners=function(c){var p=n?n+c:c,e=this._events[p];if(!e)return[];if(e.fn)return[e.fn];for(var o=0,i=e.length,d=new Array(i);o<i;o++)d[o]=e[o].fn;return d},f.prototype.listenerCount=function(c){var p=n?n+c:c,e=this._events[p];return e?e.fn?1:e.length:0},f.prototype.emit=function(c,p,e,o,i,d){var g=n?n+c:c;if(!this._events[g])return!1;var h=this._events[g],m=arguments.length,y,A;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),m){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,p),!0;case 3:return h.fn.call(h.context,p,e),!0;case 4:return h.fn.call(h.context,p,e,o),!0;case 5:return h.fn.call(h.context,p,e,o,i),!0;case 6:return h.fn.call(h.context,p,e,o,i,d),!0}for(A=1,y=new Array(m-1);A<m;A++)y[A-1]=arguments[A];h.fn.apply(h.context,y)}else{var x=h.length,T;for(A=0;A<x;A++)switch(h[A].once&&this.removeListener(c,h[A].fn,void 0,!0),m){case 1:h[A].fn.call(h[A].context);break;case 2:h[A].fn.call(h[A].context,p);break;case 3:h[A].fn.call(h[A].context,p,e);break;case 4:h[A].fn.call(h[A].context,p,e,o);break;default:if(!y)for(T=1,y=new Array(m-1);T<m;T++)y[T-1]=arguments[T];h[A].fn.apply(h[A].context,y)}}return!0},f.prototype.on=function(c,p,e){return v(this,c,p,e,!1)},f.prototype.once=function(c,p,e){return v(this,c,p,e,!0)},f.prototype.removeListener=function(c,p,e,o){var i=n?n+c:c;if(!this._events[i])return this;if(!p)return t(this,i),this;var d=this._events[i];if(d.fn)d.fn===p&&(!o||d.once)&&(!e||d.context===e)&&t(this,i);else{for(var g=0,h=[],m=d.length;g<m;g++)(d[g].fn!==p||o&&!d[g].once||e&&d[g].context!==e)&&h.push(d[g]);h.length?this._events[i]=h.length===1?h[0]:h:t(this,i)}return this},f.prototype.removeAllListeners=function(c){var p;return c?(p=n?n+c:c,this._events[p]&&t(this,p)):(this._events=new a,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,s.exports=f})(Sr);var Fo=Sr.exports;const Mo=pr(Fo),Ot=new Mo,xr={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},Fe={RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"},Gt={RADIO:"单选题",CHECKBOX:"多选题",LINK:"连线题",SORT:"排序题",PLAY:"演奏题"},je={IMAGE:"IMAGE",TXT:"TXT",AUDIO:"AUDIO"},No="_unitSubjectTitle_1x5pg_1",Bo="_unitScore_1x5pg_7",jo="_unitDetail_1x5pg_14",Uo="_unitTitleImg_1x5pg_23",Go="_unitTitleRate_1x5pg_26",Ho="_icon_1x5pg_37",Vo="_rate_1x5pg_41",ut={unitSubjectTitle:No,unitScore:Bo,unitDetail:jo,unitTitleImg:Uo,unitTitleRate:Go,icon:Ho,rate:Vo},Ko="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",Yo="_unitAudio_1g6zx_1",Xo="_nativeAudio_1g6zx_5",Wo="_htmlAudio_1g6zx_9",Qo="_htmlTimes_1g6zx_23",zo="_iconAudio_1g6zx_31",_o="_audioStatus_1g6zx_35",Ht={unitAudio:Yo,nativeAudio:Xo,htmlAudio:Wo,htmlTimes:Qo,iconAudio:zo,audioStatus:_o};var br={};/*!
  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(s){(function(){var l=function(){this.init()};l.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator=typeof window<"u"&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var o=this||n;if(e=parseFloat(e),o.ctx||p(),typeof e<"u"&&e>=0&&e<=1){if(o._volume=e,o._muted)return o;o.usingWebAudio&&o.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var i=0;i<o._howls.length;i++)if(!o._howls[i]._webAudio)for(var d=o._howls[i]._getSoundIds(),g=0;g<d.length;g++){var h=o._howls[i]._soundById(d[g]);h&&h._node&&(h._node.volume=h._volume*e)}return o}return o._volume},mute:function(e){var o=this||n;o.ctx||p(),o._muted=e,o.usingWebAudio&&o.masterGain.gain.setValueAtTime(e?0:o._volume,n.ctx.currentTime);for(var i=0;i<o._howls.length;i++)if(!o._howls[i]._webAudio)for(var d=o._howls[i]._getSoundIds(),g=0;g<d.length;g++){var h=o._howls[i]._soundById(d[g]);h&&h._node&&(h._node.muted=e?!0:h._muted)}return o},stop:function(){for(var e=this||n,o=0;o<e._howls.length;o++)e._howls[o].stop();return e},unload:function(){for(var e=this||n,o=e._howls.length-1;o>=0;o--)e._howls[o].unload();return e.usingWebAudio&&e.ctx&&typeof e.ctx.close<"u"&&(e.ctx.close(),e.ctx=null,p()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<"u")try{var o=new Audio;typeof o.oncanplaythrough>"u"&&(e._canPlayEvent="canplay")}catch(i){e.noAudio=!0}else e.noAudio=!0;try{var o=new Audio;o.muted&&(e.noAudio=!0)}catch(i){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,o=null;try{o=typeof Audio<"u"?new Audio:null}catch(x){return e}if(!o||typeof o.canPlayType!="function")return e;var i=o.canPlayType("audio/mpeg;").replace(/^no$/,""),d=e._navigator?e._navigator.userAgent:"",g=d.match(/OPR\/([0-6].)/g),h=g&&parseInt(g[0].split("/")[1],10)<33,m=d.indexOf("Safari")!==-1&&d.indexOf("Chrome")===-1,y=d.match(/Version\/(.*?) /),A=m&&y&&parseInt(y[1],10)<15;return e._codecs={mp3:!!(!h&&(i||o.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!i,opus:!!o.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!o.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!o.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(o.canPlayType('audio/wav; codecs="1"')||o.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!o.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!o.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(o.canPlayType("audio/x-m4a;")||o.canPlayType("audio/m4a;")||o.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(o.canPlayType("audio/x-m4b;")||o.canPlayType("audio/m4b;")||o.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(o.canPlayType("audio/x-mp4;")||o.canPlayType("audio/mp4;")||o.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!A&&o.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!A&&o.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!o.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(o.canPlayType("audio/x-flac;")||o.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||n;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var o=function(i){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var d=new Audio;d._unlocked=!0,e._releaseHtml5Audio(d)}catch(x){e.noAudio=!0;break}for(var g=0;g<e._howls.length;g++)if(!e._howls[g]._webAudio)for(var h=e._howls[g]._getSoundIds(),m=0;m<h.length;m++){var y=e._howls[g]._soundById(h[m]);y&&y._node&&!y._node._unlocked&&(y._node._unlocked=!0,y._node.load())}e._autoResume();var A=e.ctx.createBufferSource();A.buffer=e._scratchBuffer,A.connect(e.ctx.destination),typeof A.start>"u"?A.noteOn(0):A.start(0),typeof e.ctx.resume=="function"&&e.ctx.resume(),A.onended=function(){A.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",o,!0),document.removeEventListener("touchend",o,!0),document.removeEventListener("click",o,!0),document.removeEventListener("keydown",o,!0);for(var x=0;x<e._howls.length;x++)e._howls[x]._emit("unlock")}};return document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",o,!0),document.addEventListener("click",o,!0),document.addEventListener("keydown",o,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var o=new Audio().play();return o&&typeof Promise<"u"&&(o instanceof Promise||typeof o.then=="function")&&o.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var o=this||n;return e._unlocked&&o._html5AudioPool.push(e),o},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||typeof e.ctx.suspend>"u"||!n.usingWebAudio)){for(var o=0;o<e._howls.length;o++)if(e._howls[o]._webAudio){for(var i=0;i<e._howls[o]._sounds.length;i++)if(!e._howls[o]._sounds[i]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var d=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(d,d)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||typeof e.ctx.resume>"u"||!n.usingWebAudio))return e.state==="running"&&e.ctx.state!=="interrupted"&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state==="suspended"||e.state==="running"&&e.ctx.state==="interrupted"?(e.ctx.resume().then(function(){e.state="running";for(var o=0;o<e._howls.length;o++)e._howls[o]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):e.state==="suspending"&&(e._resumeAfterSuspend=!0),e}};var n=new l,a=function(e){var o=this;if(!e.src||e.src.length===0){console.error("An array of source files must be passed with any new Howl.");return}o.init(e)};a.prototype={init:function(e){var o=this;return n.ctx||p(),o._autoplay=e.autoplay||!1,o._format=typeof e.format!="string"?e.format:[e.format],o._html5=e.html5||!1,o._muted=e.mute||!1,o._loop=e.loop||!1,o._pool=e.pool||5,o._preload=typeof e.preload=="boolean"||e.preload==="metadata"?e.preload:!0,o._rate=e.rate||1,o._sprite=e.sprite||{},o._src=typeof e.src!="string"?e.src:[e.src],o._volume=e.volume!==void 0?e.volume:1,o._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},o._duration=0,o._state="unloaded",o._sounds=[],o._endTimers={},o._queue=[],o._playLock=!1,o._onend=e.onend?[{fn:e.onend}]:[],o._onfade=e.onfade?[{fn:e.onfade}]:[],o._onload=e.onload?[{fn:e.onload}]:[],o._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],o._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],o._onpause=e.onpause?[{fn:e.onpause}]:[],o._onplay=e.onplay?[{fn:e.onplay}]:[],o._onstop=e.onstop?[{fn:e.onstop}]:[],o._onmute=e.onmute?[{fn:e.onmute}]:[],o._onvolume=e.onvolume?[{fn:e.onvolume}]:[],o._onrate=e.onrate?[{fn:e.onrate}]:[],o._onseek=e.onseek?[{fn:e.onseek}]:[],o._onunlock=e.onunlock?[{fn:e.onunlock}]:[],o._onresume=[],o._webAudio=n.usingWebAudio&&!o._html5,typeof n.ctx<"u"&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(o),o._autoplay&&o._queue.push({event:"play",action:function(){o.play()}}),o._preload&&o._preload!=="none"&&o.load(),o},load:function(){var e=this,o=null;if(n.noAudio){e._emit("loaderror",null,"No audio support.");return}typeof e._src=="string"&&(e._src=[e._src]);for(var i=0;i<e._src.length;i++){var d,g;if(e._format&&e._format[i])d=e._format[i];else{if(g=e._src[i],typeof g!="string"){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}d=/^data:audio\/([^;,]+);/i.exec(g),d||(d=/\.([^.]+)$/.exec(g.split("?",1)[0])),d&&(d=d[1].toLowerCase())}if(d||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),d&&n.codecs(d)){o=e._src[i];break}}if(!o){e._emit("loaderror",null,"No codec support for selected audio sources.");return}return e._src=o,e._state="loading",window.location.protocol==="https:"&&o.slice(0,5)==="http:"&&(e._html5=!0,e._webAudio=!1),new r(e),e._webAudio&&t(e),e},play:function(e,o){var i=this,d=null;if(typeof e=="number")d=e,e=null;else{if(typeof e=="string"&&i._state==="loaded"&&!i._sprite[e])return null;if(typeof e>"u"&&(e="__default",!i._playLock)){for(var g=0,h=0;h<i._sounds.length;h++)i._sounds[h]._paused&&!i._sounds[h]._ended&&(g++,d=i._sounds[h]._id);g===1?e=null:d=null}}var m=d?i._soundById(d):i._inactiveSound();if(!m)return null;if(d&&!e&&(e=m._sprite||"__default"),i._state!=="loaded"){m._sprite=e,m._ended=!1;var y=m._id;return i._queue.push({event:"play",action:function(){i.play(y)}}),y}if(d&&!m._paused)return o||i._loadQueue("play"),m._id;i._webAudio&&n._autoResume();var A=Math.max(0,m._seek>0?m._seek:i._sprite[e][0]/1e3),x=Math.max(0,(i._sprite[e][0]+i._sprite[e][1])/1e3-A),T=x*1e3/Math.abs(m._rate),O=i._sprite[e][0]/1e3,M=(i._sprite[e][0]+i._sprite[e][1])/1e3;m._sprite=e,m._ended=!1;var B=function(){m._paused=!1,m._seek=A,m._start=O,m._stop=M,m._loop=!!(m._loop||i._sprite[e][2])};if(A>=M){i._ended(m);return}var E=m._node;if(i._webAudio){var L=function(){i._playLock=!1,B(),i._refreshBuffer(m);var P=m._muted||i._muted?0:m._volume;E.gain.setValueAtTime(P,n.ctx.currentTime),m._playStart=n.ctx.currentTime,typeof E.bufferSource.start>"u"?m._loop?E.bufferSource.noteGrainOn(0,A,86400):E.bufferSource.noteGrainOn(0,A,x):m._loop?E.bufferSource.start(0,A,86400):E.bufferSource.start(0,A,x),T!==1/0&&(i._endTimers[m._id]=setTimeout(i._ended.bind(i,m),T)),o||setTimeout(function(){i._emit("play",m._id),i._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?L():(i._playLock=!0,i.once("resume",L),i._clearTimer(m._id))}else{var N=function(){E.currentTime=A,E.muted=m._muted||i._muted||n._muted||E.muted,E.volume=m._volume*n.volume(),E.playbackRate=m._rate;try{var P=E.play();if(P&&typeof Promise<"u"&&(P instanceof Promise||typeof P.then=="function")?(i._playLock=!0,B(),P.then(function(){i._playLock=!1,E._unlocked=!0,o?i._loadQueue():i._emit("play",m._id)}).catch(function(){i._playLock=!1,i._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})):o||(i._playLock=!1,B(),i._emit("play",m._id)),E.playbackRate=m._rate,E.paused){i._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}e!=="__default"||m._loop?i._endTimers[m._id]=setTimeout(i._ended.bind(i,m),T):(i._endTimers[m._id]=function(){i._ended(m),E.removeEventListener("ended",i._endTimers[m._id],!1)},E.addEventListener("ended",i._endTimers[m._id],!1))}catch(Y){i._emit("playerror",m._id,Y)}};E.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(E.src=i._src,E.load());var W=window&&window.ejecta||!E.readyState&&n._navigator.isCocoonJS;if(E.readyState>=3||W)N();else{i._playLock=!0,i._state="loading";var D=function(){i._state="loaded",N(),E.removeEventListener(n._canPlayEvent,D,!1)};E.addEventListener(n._canPlayEvent,D,!1),i._clearTimer(m._id)}}return m._id},pause:function(e){var o=this;if(o._state!=="loaded"||o._playLock)return o._queue.push({event:"pause",action:function(){o.pause(e)}}),o;for(var i=o._getSoundIds(e),d=0;d<i.length;d++){o._clearTimer(i[d]);var g=o._soundById(i[d]);if(g&&!g._paused&&(g._seek=o.seek(i[d]),g._rateSeek=0,g._paused=!0,o._stopFade(i[d]),g._node))if(o._webAudio){if(!g._node.bufferSource)continue;typeof g._node.bufferSource.stop>"u"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),o._cleanBuffer(g._node)}else(!isNaN(g._node.duration)||g._node.duration===1/0)&&g._node.pause();arguments[1]||o._emit("pause",g?g._id:null)}return o},stop:function(e,o){var i=this;if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"stop",action:function(){i.stop(e)}}),i;for(var d=i._getSoundIds(e),g=0;g<d.length;g++){i._clearTimer(d[g]);var h=i._soundById(d[g]);h&&(h._seek=h._start||0,h._rateSeek=0,h._paused=!0,h._ended=!0,i._stopFade(d[g]),h._node&&(i._webAudio?h._node.bufferSource&&(typeof h._node.bufferSource.stop>"u"?h._node.bufferSource.noteOff(0):h._node.bufferSource.stop(0),i._cleanBuffer(h._node)):(!isNaN(h._node.duration)||h._node.duration===1/0)&&(h._node.currentTime=h._start||0,h._node.pause(),h._node.duration===1/0&&i._clearSound(h._node))),o||i._emit("stop",h._id))}return i},mute:function(e,o){var i=this;if(i._state!=="loaded"||i._playLock)return i._queue.push({event:"mute",action:function(){i.mute(e,o)}}),i;if(typeof o>"u")if(typeof e=="boolean")i._muted=e;else return i._muted;for(var d=i._getSoundIds(o),g=0;g<d.length;g++){var h=i._soundById(d[g]);h&&(h._muted=e,h._interval&&i._stopFade(h._id),i._webAudio&&h._node?h._node.gain.setValueAtTime(e?0:h._volume,n.ctx.currentTime):h._node&&(h._node.muted=n._muted?!0:e),i._emit("mute",h._id))}return i},volume:function(){var e=this,o=arguments,i,d;if(o.length===0)return e._volume;if(o.length===1||o.length===2&&typeof o[1]>"u"){var g=e._getSoundIds(),h=g.indexOf(o[0]);h>=0?d=parseInt(o[0],10):i=parseFloat(o[0])}else o.length>=2&&(i=parseFloat(o[0]),d=parseInt(o[1],10));var m;if(typeof i<"u"&&i>=0&&i<=1){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"volume",action:function(){e.volume.apply(e,o)}}),e;typeof d>"u"&&(e._volume=i),d=e._getSoundIds(d);for(var y=0;y<d.length;y++)m=e._soundById(d[y]),m&&(m._volume=i,o[2]||e._stopFade(d[y]),e._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(i,n.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=i*n.volume()),e._emit("volume",m._id))}else return m=d?e._soundById(d):e._sounds[0],m?m._volume:0;return e},fade:function(e,o,i,d){var g=this;if(g._state!=="loaded"||g._playLock)return g._queue.push({event:"fade",action:function(){g.fade(e,o,i,d)}}),g;e=Math.min(Math.max(0,parseFloat(e)),1),o=Math.min(Math.max(0,parseFloat(o)),1),i=parseFloat(i),g.volume(e,d);for(var h=g._getSoundIds(d),m=0;m<h.length;m++){var y=g._soundById(h[m]);if(y){if(d||g._stopFade(h[m]),g._webAudio&&!y._muted){var A=n.ctx.currentTime,x=A+i/1e3;y._volume=e,y._node.gain.setValueAtTime(e,A),y._node.gain.linearRampToValueAtTime(o,x)}g._startFadeInterval(y,e,o,i,h[m],typeof d>"u")}}return g},_startFadeInterval:function(e,o,i,d,g,h){var m=this,y=o,A=i-o,x=Math.abs(A/.01),T=Math.max(4,x>0?d/x:d),O=Date.now();e._fadeTo=i,e._interval=setInterval(function(){var M=(Date.now()-O)/d;O=Date.now(),y+=A*M,y=Math.round(y*100)/100,A<0?y=Math.max(i,y):y=Math.min(i,y),m._webAudio?e._volume=y:m.volume(y,e._id,!0),h&&(m._volume=y),(i<o&&y<=i||i>o&&y>=i)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,m.volume(i,e._id),m._emit("fade",e._id))},T)},_stopFade:function(e){var o=this,i=o._soundById(e);return i&&i._interval&&(o._webAudio&&i._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(i._interval),i._interval=null,o.volume(i._fadeTo,e),i._fadeTo=null,o._emit("fade",e)),o},loop:function(){var e=this,o=arguments,i,d,g;if(o.length===0)return e._loop;if(o.length===1)if(typeof o[0]=="boolean")i=o[0],e._loop=i;else return g=e._soundById(parseInt(o[0],10)),g?g._loop:!1;else o.length===2&&(i=o[0],d=parseInt(o[1],10));for(var h=e._getSoundIds(d),m=0;m<h.length;m++)g=e._soundById(h[m]),g&&(g._loop=i,e._webAudio&&g._node&&g._node.bufferSource&&(g._node.bufferSource.loop=i,i&&(g._node.bufferSource.loopStart=g._start||0,g._node.bufferSource.loopEnd=g._stop,e.playing(h[m])&&(e.pause(h[m],!0),e.play(h[m],!0)))));return e},rate:function(){var e=this,o=arguments,i,d;if(o.length===0)d=e._sounds[0]._id;else if(o.length===1){var g=e._getSoundIds(),h=g.indexOf(o[0]);h>=0?d=parseInt(o[0],10):i=parseFloat(o[0])}else o.length===2&&(i=parseFloat(o[0]),d=parseInt(o[1],10));var m;if(typeof i=="number"){if(e._state!=="loaded"||e._playLock)return e._queue.push({event:"rate",action:function(){e.rate.apply(e,o)}}),e;typeof d>"u"&&(e._rate=i),d=e._getSoundIds(d);for(var y=0;y<d.length;y++)if(m=e._soundById(d[y]),m){e.playing(d[y])&&(m._rateSeek=e.seek(d[y]),m._playStart=e._webAudio?n.ctx.currentTime:m._playStart),m._rate=i,e._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(i,n.ctx.currentTime):m._node&&(m._node.playbackRate=i);var A=e.seek(d[y]),x=(e._sprite[m._sprite][0]+e._sprite[m._sprite][1])/1e3-A,T=x*1e3/Math.abs(m._rate);(e._endTimers[d[y]]||!m._paused)&&(e._clearTimer(d[y]),e._endTimers[d[y]]=setTimeout(e._ended.bind(e,m),T)),e._emit("rate",m._id)}}else return m=e._soundById(d),m?m._rate:e._rate;return e},seek:function(){var e=this,o=arguments,i,d;if(o.length===0)e._sounds.length&&(d=e._sounds[0]._id);else if(o.length===1){var g=e._getSoundIds(),h=g.indexOf(o[0]);h>=0?d=parseInt(o[0],10):e._sounds.length&&(d=e._sounds[0]._id,i=parseFloat(o[0]))}else o.length===2&&(i=parseFloat(o[0]),d=parseInt(o[1],10));if(typeof d>"u")return 0;if(typeof i=="number"&&(e._state!=="loaded"||e._playLock))return e._queue.push({event:"seek",action:function(){e.seek.apply(e,o)}}),e;var m=e._soundById(d);if(m)if(typeof i=="number"&&i>=0){var y=e.playing(d);y&&e.pause(d,!0),m._seek=i,m._ended=!1,e._clearTimer(d),!e._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=i);var A=function(){y&&e.play(d,!0),e._emit("seek",d)};if(y&&!e._webAudio){var x=function(){e._playLock?setTimeout(x,0):A()};setTimeout(x,0)}else A()}else if(e._webAudio){var T=e.playing(d)?n.ctx.currentTime-m._playStart:0,O=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(O+T*Math.abs(m._rate))}else return m._node.currentTime;return e},playing:function(e){var o=this;if(typeof e=="number"){var i=o._soundById(e);return i?!i._paused:!1}for(var d=0;d<o._sounds.length;d++)if(!o._sounds[d]._paused)return!0;return!1},duration:function(e){var o=this,i=o._duration,d=o._soundById(e);return d&&(i=o._sprite[d._sprite][1]/1e3),i},state:function(){return this._state},unload:function(){for(var e=this,o=e._sounds,i=0;i<o.length;i++)o[i]._paused||e.stop(o[i]._id),e._webAudio||(e._clearSound(o[i]._node),o[i]._node.removeEventListener("error",o[i]._errorFn,!1),o[i]._node.removeEventListener(n._canPlayEvent,o[i]._loadFn,!1),o[i]._node.removeEventListener("ended",o[i]._endFn,!1),n._releaseHtml5Audio(o[i]._node)),delete o[i]._node,e._clearTimer(o[i]._id);var d=n._howls.indexOf(e);d>=0&&n._howls.splice(d,1);var g=!0;for(i=0;i<n._howls.length;i++)if(n._howls[i]._src===e._src||e._src.indexOf(n._howls[i]._src)>=0){g=!1;break}return v&&g&&delete v[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,o,i,d){var g=this,h=g["_on"+e];return typeof o=="function"&&h.push(d?{id:i,fn:o,once:d}:{id:i,fn:o}),g},off:function(e,o,i){var d=this,g=d["_on"+e],h=0;if(typeof o=="number"&&(i=o,o=null),o||i)for(h=0;h<g.length;h++){var m=i===g[h].id;if(o===g[h].fn&&m||!o&&m){g.splice(h,1);break}}else if(e)d["_on"+e]=[];else{var y=Object.keys(d);for(h=0;h<y.length;h++)y[h].indexOf("_on")===0&&Array.isArray(d[y[h]])&&(d[y[h]]=[])}return d},once:function(e,o,i){var d=this;return d.on(e,o,i,1),d},_emit:function(e,o,i){for(var d=this,g=d["_on"+e],h=g.length-1;h>=0;h--)(!g[h].id||g[h].id===o||e==="load")&&(setTimeout(function(m){m.call(this,o,i)}.bind(d,g[h].fn),0),g[h].once&&d.off(e,g[h].fn,g[h].id));return d._loadQueue(e),d},_loadQueue:function(e){var o=this;if(o._queue.length>0){var i=o._queue[0];i.event===e&&(o._queue.shift(),o._loadQueue()),e||i.action()}return o},_ended:function(e){var o=this,i=e._sprite;if(!o._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(o._ended.bind(o,e),100),o;var d=!!(e._loop||o._sprite[i][2]);if(o._emit("end",e._id),!o._webAudio&&d&&o.stop(e._id,!0).play(e._id),o._webAudio&&d){o._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var g=(e._stop-e._start)*1e3/Math.abs(e._rate);o._endTimers[e._id]=setTimeout(o._ended.bind(o,e),g)}return o._webAudio&&!d&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,o._clearTimer(e._id),o._cleanBuffer(e._node),n._autoSuspend()),!o._webAudio&&!d&&o.stop(e._id,!0),o},_clearTimer:function(e){var o=this;if(o._endTimers[e]){if(typeof o._endTimers[e]!="function")clearTimeout(o._endTimers[e]);else{var i=o._soundById(e);i&&i._node&&i._node.removeEventListener("ended",o._endTimers[e],!1)}delete o._endTimers[e]}return o},_soundById:function(e){for(var o=this,i=0;i<o._sounds.length;i++)if(e===o._sounds[i]._id)return o._sounds[i];return null},_inactiveSound:function(){var e=this;e._drain();for(var o=0;o<e._sounds.length;o++)if(e._sounds[o]._ended)return e._sounds[o].reset();return new r(e)},_drain:function(){var e=this,o=e._pool,i=0,d=0;if(!(e._sounds.length<o)){for(d=0;d<e._sounds.length;d++)e._sounds[d]._ended&&i++;for(d=e._sounds.length-1;d>=0;d--){if(i<=o)return;e._sounds[d]._ended&&(e._webAudio&&e._sounds[d]._node&&e._sounds[d]._node.disconnect(0),e._sounds.splice(d,1),i--)}}},_getSoundIds:function(e){var o=this;if(typeof e>"u"){for(var i=[],d=0;d<o._sounds.length;d++)i.push(o._sounds[d]._id);return i}else return[e]},_refreshBuffer:function(e){var o=this;return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=v[o._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),o},_cleanBuffer:function(e){var o=this,i=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),i))try{e.bufferSource.buffer=n._scratchBuffer}catch(d){}return e.bufferSource=null,o},_clearSound:function(e){var o=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);o||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var r=function(e){this._parent=e,this.init()};r.prototype={init:function(){var e=this,o=e._parent;return e._muted=o._muted,e._loop=o._loop,e._volume=o._volume,e._rate=o._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,o._sounds.push(e),e.create(),e},create:function(){var e=this,o=e._parent,i=n._muted||e._muted||e._parent._muted?0:e._volume;return o._webAudio?(e._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(i,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=o._src,e._node.preload=o._preload===!0?"auto":o._preload,e._node.volume=i*n.volume(),e._node.load()),e},reset:function(){var e=this,o=e._parent;return e._muted=o._muted,e._loop=o._loop,e._volume=o._volume,e._rate=o._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,o=e._parent;o._duration=Math.ceil(e._node.duration*10)/10,Object.keys(o._sprite).length===0&&(o._sprite={__default:[0,o._duration*1e3]}),o._state!=="loaded"&&(o._state="loaded",o._emit("load"),o._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,o=e._parent;o._duration===1/0&&(o._duration=Math.ceil(e._node.duration*10)/10,o._sprite.__default[1]===1/0&&(o._sprite.__default[1]=o._duration*1e3),o._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var v={},t=function(e){var o=e._src;if(v[o]){e._duration=v[o].duration,c(e);return}if(/^data:[^;]+;base64,/.test(o)){for(var i=atob(o.split(",")[1]),d=new Uint8Array(i.length),g=0;g<i.length;++g)d[g]=i.charCodeAt(g);u(d.buffer,e)}else{var h=new XMLHttpRequest;h.open(e._xhr.method,o,!0),h.withCredentials=e._xhr.withCredentials,h.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(m){h.setRequestHeader(m,e._xhr.headers[m])}),h.onload=function(){var m=(h.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){e._emit("loaderror",null,"Failed loading audio file with status: "+h.status+".");return}u(h.response,e)},h.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete v[o],e.load())},f(h)}},f=function(e){try{e.send()}catch(o){e.onerror()}},u=function(e,o){var i=function(){o._emit("loaderror",null,"Decoding audio data failed.")},d=function(g){g&&o._sounds.length>0?(v[o._src]=g,c(o,g)):i()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(e).then(d).catch(i):n.ctx.decodeAudioData(e,d,i)},c=function(e,o){o&&!e._duration&&(e._duration=o.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!=="loaded"&&(e._state="loaded",e._emit("load"),e._loadQueue())},p=function(){if(n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(g){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),o=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),i=o?parseInt(o[1],10):null;if(e&&i&&i<9){var d=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!d&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};s.Howler=n,s.Howl=a,typeof Tt<"u"?(Tt.HowlerGlobal=l,Tt.Howler=n,Tt.Howl=a,Tt.Sound=r):typeof window<"u"&&(window.HowlerGlobal=l,window.Howler=n,window.Howl=a,window.Sound=r)})();/*!
  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(n){var a=this;if(!a.ctx||!a.ctx.listener)return a;for(var r=a._howls.length-1;r>=0;r--)a._howls[r].stereo(n);return a},HowlerGlobal.prototype.pos=function(n,a,r){var v=this;if(!v.ctx||!v.ctx.listener)return v;if(a=typeof a!="number"?v._pos[1]:a,r=typeof r!="number"?v._pos[2]:r,typeof n=="number")v._pos=[n,a,r],typeof v.ctx.listener.positionX<"u"?(v.ctx.listener.positionX.setTargetAtTime(v._pos[0],Howler.ctx.currentTime,.1),v.ctx.listener.positionY.setTargetAtTime(v._pos[1],Howler.ctx.currentTime,.1),v.ctx.listener.positionZ.setTargetAtTime(v._pos[2],Howler.ctx.currentTime,.1)):v.ctx.listener.setPosition(v._pos[0],v._pos[1],v._pos[2]);else return v._pos;return v},HowlerGlobal.prototype.orientation=function(n,a,r,v,t,f){var u=this;if(!u.ctx||!u.ctx.listener)return u;var c=u._orientation;if(a=typeof a!="number"?c[1]:a,r=typeof r!="number"?c[2]:r,v=typeof v!="number"?c[3]:v,t=typeof t!="number"?c[4]:t,f=typeof f!="number"?c[5]:f,typeof n=="number")u._orientation=[n,a,r,v,t,f],typeof u.ctx.listener.forwardX<"u"?(u.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),u.ctx.listener.forwardY.setTargetAtTime(a,Howler.ctx.currentTime,.1),u.ctx.listener.forwardZ.setTargetAtTime(r,Howler.ctx.currentTime,.1),u.ctx.listener.upX.setTargetAtTime(v,Howler.ctx.currentTime,.1),u.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),u.ctx.listener.upZ.setTargetAtTime(f,Howler.ctx.currentTime,.1)):u.ctx.listener.setOrientation(n,a,r,v,t,f);else return c;return u},Howl.prototype.init=function(n){return function(a){var r=this;return r._orientation=a.orientation||[1,0,0],r._stereo=a.stereo||null,r._pos=a.pos||null,r._pannerAttr={coneInnerAngle:typeof a.coneInnerAngle<"u"?a.coneInnerAngle:360,coneOuterAngle:typeof a.coneOuterAngle<"u"?a.coneOuterAngle:360,coneOuterGain:typeof a.coneOuterGain<"u"?a.coneOuterGain:0,distanceModel:typeof a.distanceModel<"u"?a.distanceModel:"inverse",maxDistance:typeof a.maxDistance<"u"?a.maxDistance:1e4,panningModel:typeof a.panningModel<"u"?a.panningModel:"HRTF",refDistance:typeof a.refDistance<"u"?a.refDistance:1,rolloffFactor:typeof a.rolloffFactor<"u"?a.rolloffFactor:1},r._onstereo=a.onstereo?[{fn:a.onstereo}]:[],r._onpos=a.onpos?[{fn:a.onpos}]:[],r._onorientation=a.onorientation?[{fn:a.onorientation}]:[],n.call(this,a)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,a){var r=this;if(!r._webAudio)return r;if(r._state!=="loaded")return r._queue.push({event:"stereo",action:function(){r.stereo(n,a)}}),r;var v=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof a>"u")if(typeof n=="number")r._stereo=n,r._pos=[n,0,0];else return r._stereo;for(var t=r._getSoundIds(a),f=0;f<t.length;f++){var u=r._soundById(t[f]);if(u)if(typeof n=="number")u._stereo=n,u._pos=[n,0,0],u._node&&(u._pannerAttr.panningModel="equalpower",(!u._panner||!u._panner.pan)&&l(u,v),v==="spatial"?typeof u._panner.positionX<"u"?(u._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):u._panner.setPosition(n,0,0):u._panner.pan.setValueAtTime(n,Howler.ctx.currentTime)),r._emit("stereo",u._id);else return u._stereo}return r},Howl.prototype.pos=function(n,a,r,v){var t=this;if(!t._webAudio)return t;if(t._state!=="loaded")return t._queue.push({event:"pos",action:function(){t.pos(n,a,r,v)}}),t;if(a=typeof a!="number"?0:a,r=typeof r!="number"?-.5:r,typeof v>"u")if(typeof n=="number")t._pos=[n,a,r];else return t._pos;for(var f=t._getSoundIds(v),u=0;u<f.length;u++){var c=t._soundById(f[u]);if(c)if(typeof n=="number")c._pos=[n,a,r],c._node&&((!c._panner||c._panner.pan)&&l(c,"spatial"),typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(a,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):c._panner.setPosition(n,a,r)),t._emit("pos",c._id);else return c._pos}return t},Howl.prototype.orientation=function(n,a,r,v){var t=this;if(!t._webAudio)return t;if(t._state!=="loaded")return t._queue.push({event:"orientation",action:function(){t.orientation(n,a,r,v)}}),t;if(a=typeof a!="number"?t._orientation[1]:a,r=typeof r!="number"?t._orientation[2]:r,typeof v>"u")if(typeof n=="number")t._orientation=[n,a,r];else return t._orientation;for(var f=t._getSoundIds(v),u=0;u<f.length;u++){var c=t._soundById(f[u]);if(c)if(typeof n=="number")c._orientation=[n,a,r],c._node&&(c._panner||(c._pos||(c._pos=t._pos||[0,0,-.5]),l(c,"spatial")),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(a,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):c._panner.setOrientation(n,a,r)),t._emit("orientation",c._id);else return c._orientation}return t},Howl.prototype.pannerAttr=function(){var n=this,a=arguments,r,v,t;if(!n._webAudio)return n;if(a.length===0)return n._pannerAttr;if(a.length===1)if(typeof a[0]=="object")r=a[0],typeof v>"u"&&(r.pannerAttr||(r.pannerAttr={coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel,maxDistance:r.maxDistance,refDistance:r.refDistance,rolloffFactor:r.rolloffFactor,panningModel:r.panningModel}),n._pannerAttr={coneInnerAngle:typeof r.pannerAttr.coneInnerAngle<"u"?r.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof r.pannerAttr.coneOuterAngle<"u"?r.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof r.pannerAttr.coneOuterGain<"u"?r.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof r.pannerAttr.distanceModel<"u"?r.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof r.pannerAttr.maxDistance<"u"?r.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof r.pannerAttr.refDistance<"u"?r.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof r.pannerAttr.rolloffFactor<"u"?r.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof r.pannerAttr.panningModel<"u"?r.pannerAttr.panningModel:n._panningModel});else return t=n._soundById(parseInt(a[0],10)),t?t._pannerAttr:n._pannerAttr;else a.length===2&&(r=a[0],v=parseInt(a[1],10));for(var f=n._getSoundIds(v),u=0;u<f.length;u++)if(t=n._soundById(f[u]),t){var c=t._pannerAttr;c={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:c.coneOuterAngle,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:c.coneOuterGain,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:c.distanceModel,maxDistance:typeof r.maxDistance<"u"?r.maxDistance:c.maxDistance,refDistance:typeof r.refDistance<"u"?r.refDistance:c.refDistance,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:c.rolloffFactor,panningModel:typeof r.panningModel<"u"?r.panningModel:c.panningModel};var p=t._panner;p?(p.coneInnerAngle=c.coneInnerAngle,p.coneOuterAngle=c.coneOuterAngle,p.coneOuterGain=c.coneOuterGain,p.distanceModel=c.distanceModel,p.maxDistance=c.maxDistance,p.refDistance=c.refDistance,p.rolloffFactor=c.rolloffFactor,p.panningModel=c.panningModel):(t._pos||(t._pos=n._pos||[0,0,-.5]),l(t,"spatial"))}return n},Sound.prototype.init=function(n){return function(){var a=this,r=a._parent;a._orientation=r._orientation,a._stereo=r._stereo,a._pos=r._pos,a._pannerAttr=r._pannerAttr,n.call(this),a._stereo?r.stereo(a._stereo):a._pos&&r.pos(a._pos[0],a._pos[1],a._pos[2],a._id)}}(Sound.prototype.init),Sound.prototype.reset=function(n){return function(){var a=this,r=a._parent;return a._orientation=r._orientation,a._stereo=r._stereo,a._pos=r._pos,a._pannerAttr=r._pannerAttr,a._stereo?r.stereo(a._stereo):a._pos?r.pos(a._pos[0],a._pos[1],a._pos[2],a._id):a._panner&&(a._panner.disconnect(0),a._panner=void 0,r._refreshBuffer(a)),n.call(this)}}(Sound.prototype.reset);var l=function(n,a){a=a||"spatial",a==="spatial"?(n._panner=Howler.ctx.createPanner(),n._panner.coneInnerAngle=n._pannerAttr.coneInnerAngle,n._panner.coneOuterAngle=n._pannerAttr.coneOuterAngle,n._panner.coneOuterGain=n._pannerAttr.coneOuterGain,n._panner.distanceModel=n._pannerAttr.distanceModel,n._panner.maxDistance=n._pannerAttr.maxDistance,n._panner.refDistance=n._pannerAttr.refDistance,n._panner.rolloffFactor=n._pannerAttr.rolloffFactor,n._panner.panningModel=n._pannerAttr.panningModel,typeof n._panner.positionX<"u"?(n._panner.positionX.setValueAtTime(n._pos[0],Howler.ctx.currentTime),n._panner.positionY.setValueAtTime(n._pos[1],Howler.ctx.currentTime),n._panner.positionZ.setValueAtTime(n._pos[2],Howler.ctx.currentTime)):n._panner.setPosition(n._pos[0],n._pos[1],n._pos[2]),typeof n._panner.orientationX<"u"?(n._panner.orientationX.setValueAtTime(n._orientation[0],Howler.ctx.currentTime),n._panner.orientationY.setValueAtTime(n._orientation[1],Howler.ctx.currentTime),n._panner.orientationZ.setValueAtTime(n._orientation[2],Howler.ctx.currentTime)):n._panner.setOrientation(n._orientation[0],n._orientation[1],n._orientation[2])):(n._panner=Howler.ctx.createStereoPanner(),n._panner.pan.setValueAtTime(n._stereo,Howler.ctx.currentTime)),n._panner.connect(n._node),n._paused||n._parent.pause(n._id,!0).play(n._id,!0)}})()})(br);const Jo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABLNJREFUWEfNmF1oHFUUx///u2laJDsbsLbQnVhFiiKlRUkFpcEHsWq11Wa2kdYHWz8Q1IpS9UHRREWlVlGsCuJH64MVm5mUtlYtfVFpFTSILSIqiB+ZDdbWkp0ETDa798id7MTddDc7iW3JPOzDzr33/O45/3PuuUPMsIdT5ZnfMzivQWQlgKspshiCC6CYDNfRMgjiNyG/B/B5gfz4WHvyr6nYiA10fk+wvKjlUQA3EGiIY0SAAoBPEoov/NFuHYozpy7Qwr0DFxZH1TaI3Di2IPMCHCDloJC9BfCXcwtNA+bN3w1DzQ2QiyjSKsJrCVwHSOPYNO5PzNKbfl/d/OtkYJMCtbhD6zSKbxIwIRkA8Yoe4ev9660TcXa7YGcwV82W+yB4EECzAIMKiXv6Mk0f1JpfE8h2c0+C7IIIQXaPkvdPVQ+RUaO7WSKvQWQtSIFIl59JPV0NqipQCAM8FcqUfCLrWM/F8Ui9MWkveIwizwBQADqrQZ0CZMIk1O9DREhZ3+c0f1jNkO3mFpGJ1Vr0YkIWADzqZ6xH6kG1eAO3inAnSFLUbRPDVwFkBFzI84jRjJCPV/NMuie4klq2AGirNM6sn7HsekDmfclTzxpNNTTK0nKhVwDZXvBRmE1kt+9YHRWLiyjby20BuNnkDICTAuwD+ZlQZfUc+e7PlcnjcYDMGNsLdpU0td93rJuieeNALd0n24SJL0w2jSp1cYWADYybc0GuATkC8PmR4j8vHe+YNxQXYOK4UOha/2SyTym2RXVqHCjt5vYSWAWoTj+TrMgA2x3YCvBhCE5oxVv6HevwdEHK59lerhOCLuPpbCa1OixX5ic8DrTOEtA6z3R5nSlp5jDIvAauqYQRtnhBq4BLxxaTI32O1QtQ4gCHdaoRWYGoglJpE5UQKO0FGyiyXcB92YwVkkaP7eZMGNtA1eU7SVMKwsd2h5YIitsJXF4+XoBvicRGP9N0NA5U2g32ErJKyI1Zx9oRAW2nyAYQD/hOalsZzCIAPxsBj+iRhZFm7D1DS2S0eCis4GQ/RH8azqG6HiILTPYQieVxoGwvtwmCV4XckXWsjSGQ7ea+AdAqildl262vIqAWb2izSPHFaPDY/8K0G/SGnhHuHm5M3n7iZg6aN3P3SHJOfvA9UNYYT2UzVmu98JUk8SWAXj+TWjYG1J07DmLuqFLzy7Mr7QWh5yJ3mrEtXm6ZCL42nhluSF4SwUSbCKEKgz8aT5G4os9Jmc3WfErZdswkjL82dd4YkBcMQ2S2pa3ZP3QwXxayAwBWaJVY0d/edLA09i6IvAXIu36m+c5qlmx34B2Ad4C823estycDunSXNAYqGDHlxHesOXWAgq0A1hXO4WVR0bO94CwA1QhZtZ2dnZDVEHV1V58FUUfinZj2tWJ/xtN+ssJYE+pMFsb/jg5qnUfF0TF5tT1DR4cxOn64El2+kxo/IuKU/+mOqXm4hgVvsvZjuhbrF8Ta7Uep6NVu0E4zVN0GzdiL08KeDq7YLWwYuphN/nTBptTkl51hM+caVAE1Uy6KEdQpV2mol3Ve3pjSVbqR9wL6of99lY6gZtTHhnLhzpjPMROzacZ8sJpumk913r+lkkFS3TnE+gAAAABJRU5ErkJggg==",Zo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",ko="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAZ5JREFUSEvN1rtOAlEQBuD5F9gE5WYDhagvYnwEja5uY+UTSKJETbT1knhJLKy0MlhhYWNlIbFRK30CibBEQgNIsRF2x4ABxcR1uZwNW0/Od2bPzDkDcviDwx4NFhi+yEdk2bsKsPvDIx/np70vvf4RywyjyXKKiKe+EOgAHeqGvlNQw5VuYUtwNFmqgcjVtjgjxy7e0GYD5wRwp/A/GZYsFsQDg2OaErzvBO0BbDD1DSXgca9lZoZzduBewaZRYZJ2Pe++g/QSdCu4X2Az3TSB45oSSv6F9hX8RnDLkhTT5nzPv2FBYONwDQk4rRrYelP9hSYsDPyRWZGIFrPzwetGN1sdcDRp1RZ2arIV85qdD044B4IyWSU47hRYNMELOSV0IxSsFw0IZzUTm+KLBpxig2OaOvIktC0YlCaS4priF974FYD2XOXAvuirjYmQINO9nlWHNDuN0n0fgh6ZaLnfz5NBRFLbzoEcQ9ADPHZZvmPmydaIwXSks3+7oELMiBG+qkTkqrlSvwKrsudE+BBlpwg6jRmsubTT3duJ/wQ5K7UdkvYC+QAAAABJRU5ErkJggg==",wr=He({name:"unit-audio",props:{src:{type:String,default:""}},setup(s){const l=en({audioStatus:"stopped",duration:0}),n=new br.Howl({src:s.src+"?t="+ +new Date,format:["mp3"]});return n.on("load",a=>{console.log(n.duration()),l.duration=Math.ceil(n.duration())}),n.on("end",a=>{l.audioStatus="stopped"}),Ot.on("unitAudioStop",()=>{n.stop(),l.audioStatus="stopped"}),hr(()=>{n.off("load")}),()=>S("div",{class:Ht.unitAudio},[S("div",{class:Ht.htmlAudio,onClick:a=>{a.stopPropagation(),l.audioStatus==="stopped"?(Ot.emit("unitAudioStop"),n.play(),l.audioStatus="paused"):l.audioStatus==="paused"&&(n.pause(),l.audioStatus="stopped")}},[S("div",{class:Ht.htmlTimes},[S(vt,{class:Ht.iconAudio,name:Jo},null),S("span",null,[l.duration,Z('"')])]),S(vt,{name:l.audioStatus==="stopped"?ko:Zo,class:Ht.audioStatus},null)])])}}),Tn=He({name:"answer-title",props:{index:{type:Number,default:1},name:{type:String,default:""},score:{type:Number,default:0},answerType:{type:String,default:""},extra:{type:Object,default:()=>({})},showRate:{type:Boolean,default:!1}},setup(s){const l=Pt(()=>s.answerType===Fe.CHECKBOX?Gt.CHECKBOX:s.answerType===Fe.LINK?Gt.LINK:s.answerType===Fe.SORT?Gt.SORT:s.answerType===Fe.PLAY?Gt.PLAY:Gt.RADIO),n=Pt(()=>s.extra.mediaUrls?s.extra.mediaUrls.split(","):"");return()=>S(tt,null,[S("div",{class:ut.unitSubjectTitle},[s.index,Z("、"),s.name,Z(" "),S("span",{class:ut.unitScore},[Z("("),s.score||0,Z("分)")]),S(Yn,{type:"primary",style:{lineHeight:"20px"}},{default:()=>[l.value]})]),s.showRate&&S("div",{class:ut.unitTitleRate},[S(vt,{name:Ko,class:ut.icon},null),Z("正确率:"),S("span",{class:ut.rate},[s.extra.rightRate||0,Z("%")])]),s.extra.questionDetail||n.value?S("div",{class:ut.unitDetail},[S("div",{innerHTML:s.extra.questionDetail},null),n.value&&n.value.map(a=>a&&S(tt,null,[a.substr(-3)==="mp3"?S(wr,{src:a,class:ut.valueAudio},null):S(qe,{class:[ut.unitTitleImg,"answerTitleImg"],src:a},null)]))]):""])}}),$o="_answerAnalysis_1x634_1",qo="_analysisResult_1x634_8",ea="_aImg_1x634_16",ta="_success_1x634_20",na="_error_1x634_23",ra="_analysisTitle_1x634_26",oa="_analysisMessage_1x634_29",Ye={answerAnalysis:$o,analysisResult:qo,aImg:ea,success:ta,error:na,analysisTitle:ra,analysisMessage:oa},Er="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==",aa="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==",ia="data:image/png;base64,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",In=He({name:"answer-analysis",props:{topic:{type:Boolean,default:!0},userResult:{tyep:Boolean,default:!1},answerAnalysis:{type:String,default:""},rightFlagText:{type:String,default:"回答正确"},errorFlagText:{type:String,default:"回答错误"}},setup(s){return()=>S("div",{class:Ye.answerAnalysis},[s.topic?S(tt,null,[s.userResult?S("div",{class:[Ye.analysisResult,Ye.success]},[S(vt,{name:aa,class:Ye.aImg},null),s.rightFlagText]):S("div",{class:[Ye.analysisResult,Ye.error]},[S(vt,{name:Er,class:Ye.aImg},null),s.errorFlagText])]):"",s.answerAnalysis&&S(tt,null,[S("div",{class:[Ye.analysisResult,Ye.analysisTitle]},[S(vt,{name:ia,class:Ye.aImg},null),Z("答案解析")]),S("div",{class:Ye.analysisMessage},[s.answerAnalysis])])])}}),sa="_unitSubject_94r0n_1",la="_unitAnswers_94r0n_11",ua="_unitAnswer_94r0n_11",ca="_option_94r0n_23",fa="_value_94r0n_26",da="_valueAudio_94r0n_35",va="_active_94r0n_38",pa="_answerContent_94r0n_42",ha="_answerChoice_94r0n_46",Xe={unitSubject:sa,unitAnswers:la,unitAnswer:ua,option:ca,value:fa,valueAudio:da,active:va,answerContent:pa,answerChoice:ha},nr=He({name:"choice-question",props:{value:{type:Array,default:()=>[]},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:l,slots:n}){const a=v=>{if(s.readOnly)return;const t=s.value||[],f={answerId:v.examinationQuestionAnswerId,answer:v.questionAnswer,answerExtra:v.questionExtra};if(s.type==="checkbox"){const u=t.findIndex(c=>c.answerId===v.examinationQuestionAnswerId);u>=0?(t.splice(u,1),l("update:value",[...t])):l("update:value",[...t,f])}else l("update:value",[f])},r=Pt(()=>{const v=s.data.answers||[],t=s.value||[];return v.forEach(f=>{const u=t.findIndex(c=>c.answerId===f.examinationQuestionAnswerId);f.checked=u!==-1}),v});return()=>S(tt,null,[S("div",{class:Xe.unitSubject},[n.title&&n.title(),S(Tn,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:s.type==="radio"?Fe.RADIO:Fe.CHECKBOX,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),S("div",{class:Xe.unitAnswers},[r.value.map((v,t)=>S("div",{class:[Xe.unitAnswer,v.checked&&Xe.active],onClick:()=>a(v)},[S("div",{class:Xe.answerContent},[S("span",{class:Xe.option},[xr[t+1],Z(".")]),v.questionAnswerTypeCode===je.IMAGE&&S("div",{class:Xe.value},[S(qe,{src:v.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),v.questionAnswerTypeCode===je.TXT&&S("div",{class:Xe.value},[v.questionAnswer]),v.questionAnswerTypeCode===je.AUDIO&&S("div",{class:Xe.value},[S(wr,{src:v.questionAnswer,class:Xe.valueAudio},null)])]),s.showRate&&S("div",{class:Xe.answerChoice},[v.selectRate||0,Z("%人选择")])]))])]),s.showAnalysis&&S(In,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),ga="_anserList_1yzxl_1",ma="_status_1yzxl_5",ya="_aList_1yzxl_28",Aa="_answered_1yzxl_46",Sa="_yes_1yzxl_50",xa="_no_1yzxl_54",ot={anserList:ga,status:ma,aList:ya,answered:Aa,yes:Sa,no:xa};function ba(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!gr(s)}const wa=He({name:"answer-list",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:()=>[{text:"已答",color:"#1CACF1"},{text:"未答",color:"#EAEAEA"}]},answerResult:{type:Array,default:()=>[]}},emits:["select"],setup(s,{emit:l}){const n=a=>{let r=!1;return s.answerResult.forEach(v=>{v.questionId===a&&(r=v.rightFlag)}),r};return()=>{let a;return S("div",{class:ot.anserList},[s.statusList.length>0&&S("div",{class:ot.status},[s.statusList.map(r=>S("span",null,[S("i",{style:{backgroundColor:r.color}},null),r.text]))]),S("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[S(Ar,{class:ot.aList,columnNum:6,border:!1},ba(a=s.value.map((r,v)=>S(vn,{onClick:()=>l("select",v)},{default:()=>[S("span",{class:[s.lookType==="ANSWER"&&r.userAnswer&&r.userAnswer.length>0&&ot.answered,s.lookType==="RESULT"&&(n(r.id)?ot.yes:ot.no),s.lookType==="CLICK"&&v===s.index&&ot.answered,s.lookType!=="CLICK"&&r.showAnalysis?r.analysis.userResult?ot.yes:ot.no:""]},[v+1])]})))?a:{default:()=>[a]})])])}}});var Tr={exports:{}};const Ea=mr(Jr);/**!
  20. * Sortable 1.14.0
  21. * @author RubaXa <trash@rubaxa.org>
  22. * @author owenm <owen23355@gmail.com>
  23. * @license MIT
  24. */function rr(s,l){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(s);l&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(s,r).enumerable})),n.push.apply(n,a)}return n}function nt(s){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?rr(Object(n),!0).forEach(function(a){Ta(s,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach(function(a){Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(n,a))})}return s}function pn(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(l){return typeof l}:pn=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},pn(s)}function Ta(s,l,n){return l in s?Object.defineProperty(s,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[l]=n,s}function Ge(){return Ge=Object.assign||function(s){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(s[a]=n[a])}return s},Ge.apply(this,arguments)}function Ia(s,l){if(s==null)return{};var n={},a=Object.keys(s),r,v;for(v=0;v<a.length;v++)r=a[v],!(l.indexOf(r)>=0)&&(n[r]=s[r]);return n}function Oa(s,l){if(s==null)return{};var n=Ia(s,l),a,r;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(s);for(r=0;r<v.length;r++)a=v[r],!(l.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(s,a)&&(n[a]=s[a])}return n}function Ca(s){return Da(s)||Pa(s)||Ra(s)||La()}function Da(s){if(Array.isArray(s))return Xn(s)}function Pa(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function Ra(s,l){if(s){if(typeof s=="string")return Xn(s,l);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xn(s,l)}}function Xn(s,l){(l==null||l>s.length)&&(l=s.length);for(var n=0,a=new Array(l);n<l;n++)a[n]=s[n];return a}function La(){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 Fa="1.14.0";function at(s){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(s)}var it=at(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),tn=at(/Edge/i),or=at(/firefox/i),Jt=at(/safari/i)&&!at(/chrome/i)&&!at(/android/i),Ir=at(/iP(ad|od|hone)/i),Ma=at(/chrome/i)&&at(/android/i),Or={capture:!1,passive:!1};function $(s,l,n){s.addEventListener(l,n,!it&&Or)}function k(s,l,n){s.removeEventListener(l,n,!it&&Or)}function An(s,l){if(l){if(l[0]===">"&&(l=l.substring(1)),s)try{if(s.matches)return s.matches(l);if(s.msMatchesSelector)return s.msMatchesSelector(l);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(l)}catch(n){return!1}return!1}}function Na(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function Je(s,l,n,a){if(s){n=n||document;do{if(l!=null&&(l[0]===">"?s.parentNode===n&&An(s,l):An(s,l))||a&&s===n)return s;if(s===n)break}while(s=Na(s))}return null}var ar=/\s+/g;function ce(s,l,n){if(s&&l)if(s.classList)s.classList[n?"add":"remove"](l);else{var a=(" "+s.className+" ").replace(ar," ").replace(" "+l+" "," ");s.className=(a+(n?" "+l:"")).replace(ar," ")}}function U(s,l,n){var a=s&&s.style;if(a){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(n=s.currentStyle),l===void 0?n:n[l];!(l in a)&&l.indexOf("webkit")===-1&&(l="-webkit-"+l),a[l]=n+(typeof n=="string"?"":"px")}}function St(s,l){var n="";if(typeof s=="string")n=s;else do{var a=U(s,"transform");a&&a!=="none"&&(n=a+" "+n)}while(!l&&(s=s.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function Cr(s,l,n){if(s){var a=s.getElementsByTagName(l),r=0,v=a.length;if(n)for(;r<v;r++)n(a[r],r);return a}return[]}function et(){var s=document.scrollingElement;return s||document.documentElement}function le(s,l,n,a,r){if(!(!s.getBoundingClientRect&&s!==window)){var v,t,f,u,c,p,e;if(s!==window&&s.parentNode&&s!==et()?(v=s.getBoundingClientRect(),t=v.top,f=v.left,u=v.bottom,c=v.right,p=v.height,e=v.width):(t=0,f=0,u=window.innerHeight,c=window.innerWidth,p=window.innerHeight,e=window.innerWidth),(l||n)&&s!==window&&(r=r||s.parentNode,!it))do if(r&&r.getBoundingClientRect&&(U(r,"transform")!=="none"||n&&U(r,"position")!=="static")){var o=r.getBoundingClientRect();t-=o.top+parseInt(U(r,"border-top-width")),f-=o.left+parseInt(U(r,"border-left-width")),u=t+v.height,c=f+v.width;break}while(r=r.parentNode);if(a&&s!==window){var i=St(r||s),d=i&&i.a,g=i&&i.d;i&&(t/=g,f/=d,e/=d,p/=g,u=t+p,c=f+e)}return{top:t,left:f,bottom:u,right:c,width:e,height:p}}}function ir(s,l,n){for(var a=dt(s,!0),r=le(s)[l];a;){var v=le(a)[n],t=void 0;if(n==="top"||n==="left"?t=r>=v:t=r<=v,!t)return a;if(a===et())break;a=dt(a,!1)}return!1}function Lt(s,l,n,a){for(var r=0,v=0,t=s.children;v<t.length;){if(t[v].style.display!=="none"&&t[v]!==K.ghost&&(a||t[v]!==K.dragged)&&Je(t[v],n.draggable,s,!1)){if(r===l)return t[v];r++}v++}return null}function Jn(s,l){for(var n=s.lastElementChild;n&&(n===K.ghost||U(n,"display")==="none"||l&&!An(n,l));)n=n.previousElementSibling;return n||null}function he(s,l){var n=0;if(!s||!s.parentNode)return-1;for(;s=s.previousElementSibling;)s.nodeName.toUpperCase()!=="TEMPLATE"&&s!==K.clone&&(!l||An(s,l))&&n++;return n}function sr(s){var l=0,n=0,a=et();if(s)do{var r=St(s),v=r.a,t=r.d;l+=s.scrollLeft*v,n+=s.scrollTop*t}while(s!==a&&(s=s.parentNode));return[l,n]}function Ba(s,l){for(var n in s)if(s.hasOwnProperty(n)){for(var a in l)if(l.hasOwnProperty(a)&&l[a]===s[n][a])return Number(n)}return-1}function dt(s,l){if(!s||!s.getBoundingClientRect)return et();var n=s,a=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=U(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return et();if(a||l)return n;a=!0}}while(n=n.parentNode);return et()}function ja(s,l){if(s&&l)for(var n in l)l.hasOwnProperty(n)&&(s[n]=l[n]);return s}function Ln(s,l){return Math.round(s.top)===Math.round(l.top)&&Math.round(s.left)===Math.round(l.left)&&Math.round(s.height)===Math.round(l.height)&&Math.round(s.width)===Math.round(l.width)}var Zt;function Dr(s,l){return function(){if(!Zt){var n=arguments,a=this;n.length===1?s.call(a,n[0]):s.apply(a,n),Zt=setTimeout(function(){Zt=void 0},l)}}}function Ua(){clearTimeout(Zt),Zt=void 0}function Pr(s,l,n){s.scrollLeft+=l,s.scrollTop+=n}function Zn(s){var l=window.Polymer,n=window.jQuery||window.Zepto;return l&&l.dom?l.dom(s).cloneNode(!0):n?n(s).clone(!0)[0]:s.cloneNode(!0)}function lr(s,l){U(s,"position","absolute"),U(s,"top",l.top),U(s,"left",l.left),U(s,"width",l.width),U(s,"height",l.height)}function Fn(s){U(s,"position",""),U(s,"top",""),U(s,"left",""),U(s,"width",""),U(s,"height","")}var Oe="Sortable"+new Date().getTime();function Ga(){var s=[],l;return{captureAnimationState:function(){if(s=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(r){if(!(U(r,"display")==="none"||r===K.ghost)){s.push({target:r,rect:le(r)});var v=nt({},s[s.length-1].rect);if(r.thisAnimationDuration){var t=St(r,!0);t&&(v.top-=t.f,v.left-=t.e)}r.fromRect=v}})}},addAnimationState:function(a){s.push(a)},removeAnimationState:function(a){s.splice(Ba(s,{target:a}),1)},animateAll:function(a){var r=this;if(!this.options.animation){clearTimeout(l),typeof a=="function"&&a();return}var v=!1,t=0;s.forEach(function(f){var u=0,c=f.target,p=c.fromRect,e=le(c),o=c.prevFromRect,i=c.prevToRect,d=f.rect,g=St(c,!0);g&&(e.top-=g.f,e.left-=g.e),c.toRect=e,c.thisAnimationDuration&&Ln(o,e)&&!Ln(p,e)&&(d.top-e.top)/(d.left-e.left)===(p.top-e.top)/(p.left-e.left)&&(u=Va(d,o,i,r.options)),Ln(e,p)||(c.prevFromRect=p,c.prevToRect=e,u||(u=r.options.animation),r.animate(c,d,e,u)),u&&(v=!0,t=Math.max(t,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(l),v?l=setTimeout(function(){typeof a=="function"&&a()},t):typeof a=="function"&&a(),s=[]},animate:function(a,r,v,t){if(t){U(a,"transition",""),U(a,"transform","");var f=St(this.el),u=f&&f.a,c=f&&f.d,p=(r.left-v.left)/(u||1),e=(r.top-v.top)/(c||1);a.animatingX=!!p,a.animatingY=!!e,U(a,"transform","translate3d("+p+"px,"+e+"px,0)"),this.forRepaintDummy=Ha(a),U(a,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),U(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){U(a,"transition",""),U(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},t)}}}}function Ha(s){return s.offsetWidth}function Va(s,l,n,a){return Math.sqrt(Math.pow(l.top-s.top,2)+Math.pow(l.left-s.left,2))/Math.sqrt(Math.pow(l.top-n.top,2)+Math.pow(l.left-n.left,2))*a.animation}var bt=[],Mn={initializeByDefault:!0},nn={mount:function(l){for(var n in Mn)Mn.hasOwnProperty(n)&&!(n in l)&&(l[n]=Mn[n]);bt.forEach(function(a){if(a.pluginName===l.pluginName)throw"Sortable: Cannot mount plugin ".concat(l.pluginName," more than once")}),bt.push(l)},pluginEvent:function(l,n,a){var r=this;this.eventCanceled=!1,a.cancel=function(){r.eventCanceled=!0};var v=l+"Global";bt.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][v]&&n[t.pluginName][v](nt({sortable:n},a)),n.options[t.pluginName]&&n[t.pluginName][l]&&n[t.pluginName][l](nt({sortable:n},a)))})},initializePlugins:function(l,n,a,r){bt.forEach(function(f){var u=f.pluginName;if(!(!l.options[u]&&!f.initializeByDefault)){var c=new f(l,n,l.options);c.sortable=l,c.options=l.options,l[u]=c,Ge(a,c.defaults)}});for(var v in l.options)if(l.options.hasOwnProperty(v)){var t=this.modifyOption(l,v,l.options[v]);typeof t<"u"&&(l.options[v]=t)}},getEventProperties:function(l,n){var a={};return bt.forEach(function(r){typeof r.eventProperties=="function"&&Ge(a,r.eventProperties.call(n[r.pluginName],l))}),a},modifyOption:function(l,n,a){var r;return bt.forEach(function(v){l[v.pluginName]&&v.optionListeners&&typeof v.optionListeners[n]=="function"&&(r=v.optionListeners[n].call(l[v.pluginName],a))}),r}};function Wt(s){var l=s.sortable,n=s.rootEl,a=s.name,r=s.targetEl,v=s.cloneEl,t=s.toEl,f=s.fromEl,u=s.oldIndex,c=s.newIndex,p=s.oldDraggableIndex,e=s.newDraggableIndex,o=s.originalEvent,i=s.putSortable,d=s.extraEventProperties;if(l=l||n&&n[Oe],!!l){var g,h=l.options,m="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!it&&!tn?g=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(a,!0,!0)),g.to=t||n,g.from=f||n,g.item=r||n,g.clone=v,g.oldIndex=u,g.newIndex=c,g.oldDraggableIndex=p,g.newDraggableIndex=e,g.originalEvent=o,g.pullMode=i?i.lastPutMode:void 0;var y=nt(nt({},d),nn.getEventProperties(a,l));for(var A in y)g[A]=y[A];n&&n.dispatchEvent(g),h[m]&&h[m].call(l,g)}}var Ka=["evt"],Re=function(l,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=a.evt,v=Oa(a,Ka);nn.pluginEvent.bind(K)(l,n,nt({dragEl:R,parentEl:ve,ghostEl:_,rootEl:se,nextEl:At,lastDownEl:hn,cloneEl:pe,cloneHidden:ft,dragStarted:Qt,putSortable:Ee,activeSortable:K.active,originalEvent:r,oldIndex:Ct,oldDraggableIndex:kt,newIndex:Be,newDraggableIndex:ct,hideGhostForTarget:Mr,unhideGhostForTarget:Nr,cloneNowHidden:function(){ft=!0},cloneNowShown:function(){ft=!1},dispatchSortableEvent:function(f){De({sortable:n,name:f,originalEvent:r})}},v))};function De(s){Wt(nt({putSortable:Ee,cloneEl:pe,targetEl:R,rootEl:se,oldIndex:Ct,oldDraggableIndex:kt,newIndex:Be,newDraggableIndex:ct},s))}var R,ve,_,se,At,hn,pe,ft,Ct,Be,kt,ct,sn,Ee,It=!1,Sn=!1,xn=[],gt,We,Nn,Bn,ur,cr,Qt,wt,$t,qt=!1,ln=!1,gn,Te,jn=[],Wn=!1,bn=[],On=typeof document<"u",un=Ir,fr=tn||it?"cssFloat":"float",Ya=On&&!Ma&&!Ir&&"draggable"in document.createElement("div"),Rr=function(){if(On){if(it)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),Lr=function(l,n){var a=U(l),r=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),v=Lt(l,0,n),t=Lt(l,1,n),f=v&&U(v),u=t&&U(t),c=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+le(v).width,p=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+le(t).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(v&&f.float&&f.float!=="none"){var e=f.float==="left"?"left":"right";return t&&(u.clear==="both"||u.clear===e)?"vertical":"horizontal"}return v&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||c>=r&&a[fr]==="none"||t&&a[fr]==="none"&&c+p>r)?"vertical":"horizontal"},Xa=function(l,n,a){var r=a?l.left:l.top,v=a?l.right:l.bottom,t=a?l.width:l.height,f=a?n.left:n.top,u=a?n.right:n.bottom,c=a?n.width:n.height;return r===f||v===u||r+t/2===f+c/2},Wa=function(l,n){var a;return xn.some(function(r){var v=r[Oe].options.emptyInsertThreshold;if(!(!v||Jn(r))){var t=le(r),f=l>=t.left-v&&l<=t.right+v,u=n>=t.top-v&&n<=t.bottom+v;if(f&&u)return a=r}}),a},Fr=function(l){function n(v,t){return function(f,u,c,p){var e=f.options.group.name&&u.options.group.name&&f.options.group.name===u.options.group.name;if(v==null&&(t||e))return!0;if(v==null||v===!1)return!1;if(t&&v==="clone")return v;if(typeof v=="function")return n(v(f,u,c,p),t)(f,u,c,p);var o=(t?f:u).options.group.name;return v===!0||typeof v=="string"&&v===o||v.join&&v.indexOf(o)>-1}}var a={},r=l.group;(!r||pn(r)!="object")&&(r={name:r}),a.name=r.name,a.checkPull=n(r.pull,!0),a.checkPut=n(r.put),a.revertClone=r.revertClone,l.group=a},Mr=function(){!Rr&&_&&U(_,"display","none")},Nr=function(){!Rr&&_&&U(_,"display","")};On&&document.addEventListener("click",function(s){if(Sn)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),Sn=!1,!1},!0);var mt=function(l){if(R){l=l.touches?l.touches[0]:l;var n=Wa(l.clientX,l.clientY);if(n){var a={};for(var r in l)l.hasOwnProperty(r)&&(a[r]=l[r]);a.target=a.rootEl=n,a.preventDefault=void 0,a.stopPropagation=void 0,n[Oe]._onDragOver(a)}}},Qa=function(l){R&&R.parentNode[Oe]._isOutsideThisEl(l.target)};function K(s,l){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=l=Ge({},l),s[Oe]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lr(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,f){t.setData("Text",f.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:K.supportPointer!==!1&&"PointerEvent"in window&&!Jt,emptyInsertThreshold:5};nn.initializePlugins(this,s,n);for(var a in n)!(a in l)&&(l[a]=n[a]);Fr(l);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=l.forceFallback?!1:Ya,this.nativeDraggable&&(this.options.touchStartThreshold=1),l.supportPointer?$(s,"pointerdown",this._onTapStart):($(s,"mousedown",this._onTapStart),$(s,"touchstart",this._onTapStart)),this.nativeDraggable&&($(s,"dragover",this),$(s,"dragenter",this)),xn.push(this.el),l.store&&l.store.get&&this.sort(l.store.get(this)||[]),Ge(this,Ga())}K.prototype={constructor:K,_isOutsideThisEl:function(l){!this.el.contains(l)&&l!==this.el&&(wt=null)},_getDirection:function(l,n){return typeof this.options.direction=="function"?this.options.direction.call(this,l,n,R):this.options.direction},_onTapStart:function(l){if(l.cancelable){var n=this,a=this.el,r=this.options,v=r.preventOnFilter,t=l.type,f=l.touches&&l.touches[0]||l.pointerType&&l.pointerType==="touch"&&l,u=(f||l).target,c=l.target.shadowRoot&&(l.path&&l.path[0]||l.composedPath&&l.composedPath()[0])||u,p=r.filter;if(ei(a),!R&&!(/mousedown|pointerdown/.test(t)&&l.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Jt&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=Je(u,r.draggable,a,!1),!(u&&u.animated)&&hn!==u)){if(Ct=he(u),kt=he(u,r.draggable),typeof p=="function"){if(p.call(this,l,u,this)){De({sortable:n,rootEl:c,name:"filter",targetEl:u,toEl:a,fromEl:a}),Re("filter",n,{evt:l}),v&&l.cancelable&&l.preventDefault();return}}else if(p&&(p=p.split(",").some(function(e){if(e=Je(c,e.trim(),a,!1),e)return De({sortable:n,rootEl:e,name:"filter",targetEl:u,fromEl:a,toEl:a}),Re("filter",n,{evt:l}),!0}),p)){v&&l.cancelable&&l.preventDefault();return}r.handle&&!Je(c,r.handle,a,!1)||this._prepareDragStart(l,f,u)}}},_prepareDragStart:function(l,n,a){var r=this,v=r.el,t=r.options,f=v.ownerDocument,u;if(a&&!R&&a.parentNode===v){var c=le(a);if(se=v,R=a,ve=R.parentNode,At=R.nextSibling,hn=a,sn=t.group,K.dragged=R,gt={target:R,clientX:(n||l).clientX,clientY:(n||l).clientY},ur=gt.clientX-c.left,cr=gt.clientY-c.top,this._lastX=(n||l).clientX,this._lastY=(n||l).clientY,R.style["will-change"]="all",u=function(){if(Re("delayEnded",r,{evt:l}),K.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!or&&r.nativeDraggable&&(R.draggable=!0),r._triggerDragStart(l,n),De({sortable:r,name:"choose",originalEvent:l}),ce(R,t.chosenClass,!0)},t.ignore.split(",").forEach(function(p){Cr(R,p.trim(),Un)}),$(f,"dragover",mt),$(f,"mousemove",mt),$(f,"touchmove",mt),$(f,"mouseup",r._onDrop),$(f,"touchend",r._onDrop),$(f,"touchcancel",r._onDrop),or&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),Re("delayStart",this,{evt:l}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(tn||it))){if(K.eventCanceled){this._onDrop();return}$(f,"mouseup",r._disableDelayedDrag),$(f,"touchend",r._disableDelayedDrag),$(f,"touchcancel",r._disableDelayedDrag),$(f,"mousemove",r._delayedDragTouchMoveHandler),$(f,"touchmove",r._delayedDragTouchMoveHandler),t.supportPointer&&$(f,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(u,t.delay)}else u()}},_delayedDragTouchMoveHandler:function(l){var n=l.touches?l.touches[0]:l;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&Un(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var l=this.el.ownerDocument;k(l,"mouseup",this._disableDelayedDrag),k(l,"touchend",this._disableDelayedDrag),k(l,"touchcancel",this._disableDelayedDrag),k(l,"mousemove",this._delayedDragTouchMoveHandler),k(l,"touchmove",this._delayedDragTouchMoveHandler),k(l,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(l,n){n=n||l.pointerType=="touch"&&l,!this.nativeDraggable||n?this.options.supportPointer?$(document,"pointermove",this._onTouchMove):n?$(document,"touchmove",this._onTouchMove):$(document,"mousemove",this._onTouchMove):($(R,"dragend",this),$(se,"dragstart",this._onDragStart));try{document.selection?mn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(a){}},_dragStarted:function(l,n){if(It=!1,se&&R){Re("dragStarted",this,{evt:n}),this.nativeDraggable&&$(document,"dragover",Qa);var a=this.options;!l&&ce(R,a.dragClass,!1),ce(R,a.ghostClass,!0),K.active=this,l&&this._appendGhost(),De({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(We){this._lastX=We.clientX,this._lastY=We.clientY,Mr();for(var l=document.elementFromPoint(We.clientX,We.clientY),n=l;l&&l.shadowRoot&&(l=l.shadowRoot.elementFromPoint(We.clientX,We.clientY),l!==n);)n=l;if(R.parentNode[Oe]._isOutsideThisEl(l),n)do{if(n[Oe]){var a=void 0;if(a=n[Oe]._onDragOver({clientX:We.clientX,clientY:We.clientY,target:l,rootEl:n}),a&&!this.options.dragoverBubble)break}l=n}while(n=n.parentNode);Nr()}},_onTouchMove:function(l){if(gt){var n=this.options,a=n.fallbackTolerance,r=n.fallbackOffset,v=l.touches?l.touches[0]:l,t=_&&St(_,!0),f=_&&t&&t.a,u=_&&t&&t.d,c=un&&Te&&sr(Te),p=(v.clientX-gt.clientX+r.x)/(f||1)+(c?c[0]-jn[0]:0)/(f||1),e=(v.clientY-gt.clientY+r.y)/(u||1)+(c?c[1]-jn[1]:0)/(u||1);if(!K.active&&!It){if(a&&Math.max(Math.abs(v.clientX-this._lastX),Math.abs(v.clientY-this._lastY))<a)return;this._onDragStart(l,!0)}if(_){t?(t.e+=p-(Nn||0),t.f+=e-(Bn||0)):t={a:1,b:0,c:0,d:1,e:p,f:e};var o="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");U(_,"webkitTransform",o),U(_,"mozTransform",o),U(_,"msTransform",o),U(_,"transform",o),Nn=p,Bn=e,We=v}l.cancelable&&l.preventDefault()}},_appendGhost:function(){if(!_){var l=this.options.fallbackOnBody?document.body:se,n=le(R,!0,un,!0,l),a=this.options;if(un){for(Te=l;U(Te,"position")==="static"&&U(Te,"transform")==="none"&&Te!==document;)Te=Te.parentNode;Te!==document.body&&Te!==document.documentElement?(Te===document&&(Te=et()),n.top+=Te.scrollTop,n.left+=Te.scrollLeft):Te=et(),jn=sr(Te)}_=R.cloneNode(!0),ce(_,a.ghostClass,!1),ce(_,a.fallbackClass,!0),ce(_,a.dragClass,!0),U(_,"transition",""),U(_,"transform",""),U(_,"box-sizing","border-box"),U(_,"margin",0),U(_,"top",n.top),U(_,"left",n.left),U(_,"width",n.width),U(_,"height",n.height),U(_,"opacity","0.8"),U(_,"position",un?"absolute":"fixed"),U(_,"zIndex","100000"),U(_,"pointerEvents","none"),K.ghost=_,l.appendChild(_),U(_,"transform-origin",ur/parseInt(_.style.width)*100+"% "+cr/parseInt(_.style.height)*100+"%")}},_onDragStart:function(l,n){var a=this,r=l.dataTransfer,v=a.options;if(Re("dragStart",this,{evt:l}),K.eventCanceled){this._onDrop();return}Re("setupClone",this),K.eventCanceled||(pe=Zn(R),pe.draggable=!1,pe.style["will-change"]="",this._hideClone(),ce(pe,this.options.chosenClass,!1),K.clone=pe),a.cloneId=mn(function(){Re("clone",a),!K.eventCanceled&&(a.options.removeCloneOnHide||se.insertBefore(pe,R),a._hideClone(),De({sortable:a,name:"clone"}))}),!n&&ce(R,v.dragClass,!0),n?(Sn=!0,a._loopId=setInterval(a._emulateDragOver,50)):(k(document,"mouseup",a._onDrop),k(document,"touchend",a._onDrop),k(document,"touchcancel",a._onDrop),r&&(r.effectAllowed="move",v.setData&&v.setData.call(a,r,R)),$(document,"drop",a),U(R,"transform","translateZ(0)")),It=!0,a._dragStartId=mn(a._dragStarted.bind(a,n,l)),$(document,"selectstart",a),Qt=!0,Jt&&U(document.body,"user-select","none")},_onDragOver:function(l){var n=this.el,a=l.target,r,v,t,f=this.options,u=f.group,c=K.active,p=sn===u,e=f.sort,o=Ee||c,i,d=this,g=!1;if(Wn)return;function h(ne,ae){Re(ne,d,nt({evt:l,isOwner:p,axis:i?"vertical":"horizontal",revert:t,dragRect:r,targetRect:v,canSort:e,fromSortable:o,target:a,completed:y,onMove:function(fe,de){return cn(se,n,R,r,fe,le(fe),l,de)},changed:A},ae))}function m(){h("dragOverAnimationCapture"),d.captureAnimationState(),d!==o&&o.captureAnimationState()}function y(ne){return h("dragOverCompleted",{insertion:ne}),ne&&(p?c._hideClone():c._showClone(d),d!==o&&(ce(R,Ee?Ee.options.ghostClass:c.options.ghostClass,!1),ce(R,f.ghostClass,!0)),Ee!==d&&d!==K.active?Ee=d:d===K.active&&Ee&&(Ee=null),o===d&&(d._ignoreWhileAnimating=a),d.animateAll(function(){h("dragOverAnimationComplete"),d._ignoreWhileAnimating=null}),d!==o&&(o.animateAll(),o._ignoreWhileAnimating=null)),(a===R&&!R.animated||a===n&&!a.animated)&&(wt=null),!f.dragoverBubble&&!l.rootEl&&a!==document&&(R.parentNode[Oe]._isOutsideThisEl(l.target),!ne&&mt(l)),!f.dragoverBubble&&l.stopPropagation&&l.stopPropagation(),g=!0}function A(){Be=he(R),ct=he(R,f.draggable),De({sortable:d,name:"change",toEl:n,newIndex:Be,newDraggableIndex:ct,originalEvent:l})}if(l.preventDefault!==void 0&&l.cancelable&&l.preventDefault(),a=Je(a,f.draggable,n,!0),h("dragOver"),K.eventCanceled)return g;if(R.contains(l.target)||a.animated&&a.animatingX&&a.animatingY||d._ignoreWhileAnimating===a)return y(!1);if(Sn=!1,c&&!f.disabled&&(p?e||(t=ve!==se):Ee===this||(this.lastPutMode=sn.checkPull(this,c,R,l))&&u.checkPut(this,c,R,l))){if(i=this._getDirection(l,a)==="vertical",r=le(R),h("dragOverValid"),K.eventCanceled)return g;if(t)return ve=se,m(),this._hideClone(),h("revert"),K.eventCanceled||(At?se.insertBefore(R,At):se.appendChild(R)),y(!0);var x=Jn(n,f.draggable);if(!x||Za(l,i,this)&&!x.animated){if(x===R)return y(!1);if(x&&n===l.target&&(a=x),a&&(v=le(a)),cn(se,n,R,r,a,v,l,!!a)!==!1)return m(),n.appendChild(R),ve=n,A(),y(!0)}else if(x&&Ja(l,i,this)){var T=Lt(n,0,f,!0);if(T===R)return y(!1);if(a=T,v=le(a),cn(se,n,R,r,a,v,l,!1)!==!1)return m(),n.insertBefore(R,T),ve=n,A(),y(!0)}else if(a.parentNode===n){v=le(a);var O=0,M,B=R.parentNode!==n,E=!Xa(R.animated&&R.toRect||r,a.animated&&a.toRect||v,i),L=i?"top":"left",N=ir(a,"top","top")||ir(R,"top","top"),W=N?N.scrollTop:void 0;wt!==a&&(M=v[L],qt=!1,ln=!E&&f.invertSwap||B),O=ka(l,a,v,i,E?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,ln,wt===a);var D;if(O!==0){var P=he(R);do P-=O,D=ve.children[P];while(D&&(U(D,"display")==="none"||D===_))}if(O===0||D===a)return y(!1);wt=a,$t=O;var Y=a.nextElementSibling,F=!1;F=O===1;var H=cn(se,n,R,r,a,v,l,F);if(H!==!1)return(H===1||H===-1)&&(F=H===1),Wn=!0,setTimeout(_a,30),m(),F&&!Y?n.appendChild(R):a.parentNode.insertBefore(R,F?Y:a),N&&Pr(N,0,W-N.scrollTop),ve=R.parentNode,M!==void 0&&!ln&&(gn=Math.abs(M-le(a)[L])),A(),y(!0)}if(n.contains(R))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){k(document,"mousemove",this._onTouchMove),k(document,"touchmove",this._onTouchMove),k(document,"pointermove",this._onTouchMove),k(document,"dragover",mt),k(document,"mousemove",mt),k(document,"touchmove",mt)},_offUpEvents:function(){var l=this.el.ownerDocument;k(l,"mouseup",this._onDrop),k(l,"touchend",this._onDrop),k(l,"pointerup",this._onDrop),k(l,"touchcancel",this._onDrop),k(document,"selectstart",this)},_onDrop:function(l){var n=this.el,a=this.options;if(Be=he(R),ct=he(R,a.draggable),Re("drop",this,{evt:l}),ve=R&&R.parentNode,Be=he(R),ct=he(R,a.draggable),K.eventCanceled){this._nulling();return}It=!1,ln=!1,qt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qn(this.cloneId),Qn(this._dragStartId),this.nativeDraggable&&(k(document,"drop",this),k(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Jt&&U(document.body,"user-select",""),U(R,"transform",""),l&&(Qt&&(l.cancelable&&l.preventDefault(),!a.dropBubble&&l.stopPropagation()),_&&_.parentNode&&_.parentNode.removeChild(_),(se===ve||Ee&&Ee.lastPutMode!=="clone")&&pe&&pe.parentNode&&pe.parentNode.removeChild(pe),R&&(this.nativeDraggable&&k(R,"dragend",this),Un(R),R.style["will-change"]="",Qt&&!It&&ce(R,Ee?Ee.options.ghostClass:this.options.ghostClass,!1),ce(R,this.options.chosenClass,!1),De({sortable:this,name:"unchoose",toEl:ve,newIndex:null,newDraggableIndex:null,originalEvent:l}),se!==ve?(Be>=0&&(De({rootEl:ve,name:"add",toEl:ve,fromEl:se,originalEvent:l}),De({sortable:this,name:"remove",toEl:ve,originalEvent:l}),De({rootEl:ve,name:"sort",toEl:ve,fromEl:se,originalEvent:l}),De({sortable:this,name:"sort",toEl:ve,originalEvent:l})),Ee&&Ee.save()):Be!==Ct&&Be>=0&&(De({sortable:this,name:"update",toEl:ve,originalEvent:l}),De({sortable:this,name:"sort",toEl:ve,originalEvent:l})),K.active&&((Be==null||Be===-1)&&(Be=Ct,ct=kt),De({sortable:this,name:"end",toEl:ve,originalEvent:l}),this.save()))),this._nulling()},_nulling:function(){Re("nulling",this),se=R=ve=_=At=pe=hn=ft=gt=We=Qt=Be=ct=Ct=kt=wt=$t=Ee=sn=K.dragged=K.ghost=K.clone=K.active=null,bn.forEach(function(l){l.checked=!0}),bn.length=Nn=Bn=0},handleEvent:function(l){switch(l.type){case"drop":case"dragend":this._onDrop(l);break;case"dragenter":case"dragover":R&&(this._onDragOver(l),za(l));break;case"selectstart":l.preventDefault();break}},toArray:function(){for(var l=[],n,a=this.el.children,r=0,v=a.length,t=this.options;r<v;r++)n=a[r],Je(n,t.draggable,this.el,!1)&&l.push(n.getAttribute(t.dataIdAttr)||qa(n));return l},sort:function(l,n){var a={},r=this.el;this.toArray().forEach(function(v,t){var f=r.children[t];Je(f,this.options.draggable,r,!1)&&(a[v]=f)},this),n&&this.captureAnimationState(),l.forEach(function(v){a[v]&&(r.removeChild(a[v]),r.appendChild(a[v]))}),n&&this.animateAll()},save:function(){var l=this.options.store;l&&l.set&&l.set(this)},closest:function(l,n){return Je(l,n||this.options.draggable,this.el,!1)},option:function(l,n){var a=this.options;if(n===void 0)return a[l];var r=nn.modifyOption(this,l,n);typeof r<"u"?a[l]=r:a[l]=n,l==="group"&&Fr(a)},destroy:function(){Re("destroy",this);var l=this.el;l[Oe]=null,k(l,"mousedown",this._onTapStart),k(l,"touchstart",this._onTapStart),k(l,"pointerdown",this._onTapStart),this.nativeDraggable&&(k(l,"dragover",this),k(l,"dragenter",this)),Array.prototype.forEach.call(l.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),xn.splice(xn.indexOf(this.el),1),this.el=l=null},_hideClone:function(){if(!ft){if(Re("hideClone",this),K.eventCanceled)return;U(pe,"display","none"),this.options.removeCloneOnHide&&pe.parentNode&&pe.parentNode.removeChild(pe),ft=!0}},_showClone:function(l){if(l.lastPutMode!=="clone"){this._hideClone();return}if(ft){if(Re("showClone",this),K.eventCanceled)return;R.parentNode==se&&!this.options.group.revertClone?se.insertBefore(pe,R):At?se.insertBefore(pe,At):se.appendChild(pe),this.options.group.revertClone&&this.animate(R,pe),U(pe,"display",""),ft=!1}}};function za(s){s.dataTransfer&&(s.dataTransfer.dropEffect="move"),s.cancelable&&s.preventDefault()}function cn(s,l,n,a,r,v,t,f){var u,c=s[Oe],p=c.options.onMove,e;return window.CustomEvent&&!it&&!tn?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=l,u.from=s,u.dragged=n,u.draggedRect=a,u.related=r||l,u.relatedRect=v||le(l),u.willInsertAfter=f,u.originalEvent=t,s.dispatchEvent(u),p&&(e=p.call(c,u,t)),e}function Un(s){s.draggable=!1}function _a(){Wn=!1}function Ja(s,l,n){var a=le(Lt(n.el,0,n.options,!0)),r=10;return l?s.clientX<a.left-r||s.clientY<a.top&&s.clientX<a.right:s.clientY<a.top-r||s.clientY<a.bottom&&s.clientX<a.left}function Za(s,l,n){var a=le(Jn(n.el,n.options.draggable)),r=10;return l?s.clientX>a.right+r||s.clientX<=a.right&&s.clientY>a.bottom&&s.clientX>=a.left:s.clientX>a.right&&s.clientY>a.top||s.clientX<=a.right&&s.clientY>a.bottom+r}function ka(s,l,n,a,r,v,t,f){var u=a?s.clientY:s.clientX,c=a?n.height:n.width,p=a?n.top:n.left,e=a?n.bottom:n.right,o=!1;if(!t){if(f&&gn<c*r){if(!qt&&($t===1?u>p+c*v/2:u<e-c*v/2)&&(qt=!0),qt)o=!0;else if($t===1?u<p+gn:u>e-gn)return-$t}else if(u>p+c*(1-r)/2&&u<e-c*(1-r)/2)return $a(l)}return o=o||t,o&&(u<p+c*v/2||u>e-c*v/2)?u>p+c/2?1:-1:0}function $a(s){return he(R)<he(s)?1:-1}function qa(s){for(var l=s.tagName+s.className+s.src+s.href+s.textContent,n=l.length,a=0;n--;)a+=l.charCodeAt(n);return a.toString(36)}function ei(s){bn.length=0;for(var l=s.getElementsByTagName("input"),n=l.length;n--;){var a=l[n];a.checked&&bn.push(a)}}function mn(s){return setTimeout(s,0)}function Qn(s){return clearTimeout(s)}On&&$(document,"touchmove",function(s){(K.active||It)&&s.cancelable&&s.preventDefault()});K.utils={on:$,off:k,css:U,find:Cr,is:function(l,n){return!!Je(l,n,l,!1)},extend:ja,throttle:Dr,closest:Je,toggleClass:ce,clone:Zn,index:he,nextTick:mn,cancelNextTick:Qn,detectDirection:Lr,getChild:Lt};K.get=function(s){return s[Oe]};K.mount=function(){for(var s=arguments.length,l=new Array(s),n=0;n<s;n++)l[n]=arguments[n];l[0].constructor===Array&&(l=l[0]),l.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(K.utils=nt(nt({},K.utils),a.utils)),nn.mount(a)})};K.create=function(s,l){return new K(s,l)};K.version=Fa;var ye=[],zt,zn,_n=!1,Gn,Hn,wn,_t;function ti(){function s(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var l in this)l.charAt(0)==="_"&&typeof this[l]=="function"&&(this[l]=this[l].bind(this))}return s.prototype={dragStarted:function(n){var a=n.originalEvent;this.sortable.nativeDraggable?$(document,"dragover",this._handleAutoScroll):this.options.supportPointer?$(document,"pointermove",this._handleFallbackAutoScroll):a.touches?$(document,"touchmove",this._handleFallbackAutoScroll):$(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var a=n.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?k(document,"dragover",this._handleAutoScroll):(k(document,"pointermove",this._handleFallbackAutoScroll),k(document,"touchmove",this._handleFallbackAutoScroll),k(document,"mousemove",this._handleFallbackAutoScroll)),dr(),yn(),Ua()},nulling:function(){wn=zn=zt=_n=_t=Gn=Hn=null,ye.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,a){var r=this,v=(n.touches?n.touches[0]:n).clientX,t=(n.touches?n.touches[0]:n).clientY,f=document.elementFromPoint(v,t);if(wn=n,a||this.options.forceAutoScrollFallback||tn||it||Jt){Vn(n,this.options,f,a);var u=dt(f,!0);_n&&(!_t||v!==Gn||t!==Hn)&&(_t&&dr(),_t=setInterval(function(){var c=dt(document.elementFromPoint(v,t),!0);c!==u&&(u=c,yn()),Vn(n,r.options,c,a)},10),Gn=v,Hn=t)}else{if(!this.options.bubbleScroll||dt(f,!0)===et()){yn();return}Vn(n,this.options,dt(f,!1),!1)}}},Ge(s,{pluginName:"scroll",initializeByDefault:!0})}function yn(){ye.forEach(function(s){clearInterval(s.pid)}),ye=[]}function dr(){clearInterval(_t)}var Vn=Dr(function(s,l,n,a){if(l.scroll){var r=(s.touches?s.touches[0]:s).clientX,v=(s.touches?s.touches[0]:s).clientY,t=l.scrollSensitivity,f=l.scrollSpeed,u=et(),c=!1,p;zn!==n&&(zn=n,yn(),zt=l.scroll,p=l.scrollFn,zt===!0&&(zt=dt(n,!0)));var e=0,o=zt;do{var i=o,d=le(i),g=d.top,h=d.bottom,m=d.left,y=d.right,A=d.width,x=d.height,T=void 0,O=void 0,M=i.scrollWidth,B=i.scrollHeight,E=U(i),L=i.scrollLeft,N=i.scrollTop;i===u?(T=A<M&&(E.overflowX==="auto"||E.overflowX==="scroll"||E.overflowX==="visible"),O=x<B&&(E.overflowY==="auto"||E.overflowY==="scroll"||E.overflowY==="visible")):(T=A<M&&(E.overflowX==="auto"||E.overflowX==="scroll"),O=x<B&&(E.overflowY==="auto"||E.overflowY==="scroll"));var W=T&&(Math.abs(y-r)<=t&&L+A<M)-(Math.abs(m-r)<=t&&!!L),D=O&&(Math.abs(h-v)<=t&&N+x<B)-(Math.abs(g-v)<=t&&!!N);if(!ye[e])for(var P=0;P<=e;P++)ye[P]||(ye[P]={});(ye[e].vx!=W||ye[e].vy!=D||ye[e].el!==i)&&(ye[e].el=i,ye[e].vx=W,ye[e].vy=D,clearInterval(ye[e].pid),(W!=0||D!=0)&&(c=!0,ye[e].pid=setInterval(function(){a&&this.layer===0&&K.active._onTouchMove(wn);var Y=ye[this.layer].vy?ye[this.layer].vy*f:0,F=ye[this.layer].vx?ye[this.layer].vx*f:0;typeof p=="function"&&p.call(K.dragged.parentNode[Oe],F,Y,s,wn,ye[this.layer].el)!=="continue"||Pr(ye[this.layer].el,F,Y)}.bind({layer:e}),24))),e++}while(l.bubbleScroll&&o!==u&&(o=dt(o,!1)));_n=c}},30),Br=function(l){var n=l.originalEvent,a=l.putSortable,r=l.dragEl,v=l.activeSortable,t=l.dispatchSortableEvent,f=l.hideGhostForTarget,u=l.unhideGhostForTarget;if(n){var c=a||v;f();var p=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,e=document.elementFromPoint(p.clientX,p.clientY);u(),c&&!c.el.contains(e)&&(t("spill"),this.onSpill({dragEl:r,putSortable:a}))}};function kn(){}kn.prototype={startIndex:null,dragStart:function(l){var n=l.oldDraggableIndex;this.startIndex=n},onSpill:function(l){var n=l.dragEl,a=l.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var r=Lt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),a&&a.animateAll()},drop:Br};Ge(kn,{pluginName:"revertOnSpill"});function $n(){}$n.prototype={onSpill:function(l){var n=l.dragEl,a=l.putSortable,r=a||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:Br};Ge($n,{pluginName:"removeOnSpill"});var Ue;function ni(){function s(){this.defaults={swapClass:"sortable-swap-highlight"}}return s.prototype={dragStart:function(n){var a=n.dragEl;Ue=a},dragOverValid:function(n){var a=n.completed,r=n.target,v=n.onMove,t=n.activeSortable,f=n.changed,u=n.cancel;if(t.options.swap){var c=this.sortable.el,p=this.options;if(r&&r!==c){var e=Ue;v(r)!==!1?(ce(r,p.swapClass,!0),Ue=r):Ue=null,e&&e!==Ue&&ce(e,p.swapClass,!1)}f(),a(!0),u()}},drop:function(n){var a=n.activeSortable,r=n.putSortable,v=n.dragEl,t=r||this.sortable,f=this.options;Ue&&ce(Ue,f.swapClass,!1),Ue&&(f.swap||r&&r.options.swap)&&v!==Ue&&(t.captureAnimationState(),t!==a&&a.captureAnimationState(),ri(v,Ue),t.animateAll(),t!==a&&a.animateAll())},nulling:function(){Ue=null}},Ge(s,{pluginName:"swap",eventProperties:function(){return{swapItem:Ue}}})}function ri(s,l){var n=s.parentNode,a=l.parentNode,r,v;!n||!a||n.isEqualNode(l)||a.isEqualNode(s)||(r=he(s),v=he(l),n.isEqualNode(a)&&r<v&&v++,n.insertBefore(l,n.children[r]),a.insertBefore(s,a.children[v]))}var z=[],Ne=[],Vt,Qe,Kt=!1,Le=!1,Et=!1,oe,Yt,fn;function oi(){function s(l){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));l.options.supportPointer?$(document,"pointerup",this._deselectMultiDrag):($(document,"mouseup",this._deselectMultiDrag),$(document,"touchend",this._deselectMultiDrag)),$(document,"keydown",this._checkKeyDown),$(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,v){var t="";z.length&&Qe===l?z.forEach(function(f,u){t+=(u?", ":"")+f.textContent}):t=v.textContent,r.setData("Text",t)}}}return s.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var a=n.dragEl;oe=a},delayEnded:function(){this.isMultiDrag=~z.indexOf(oe)},setupClone:function(n){var a=n.sortable,r=n.cancel;if(this.isMultiDrag){for(var v=0;v<z.length;v++)Ne.push(Zn(z[v])),Ne[v].sortableIndex=z[v].sortableIndex,Ne[v].draggable=!1,Ne[v].style["will-change"]="",ce(Ne[v],this.options.selectedClass,!1),z[v]===oe&&ce(Ne[v],this.options.chosenClass,!1);a._hideClone(),r()}},clone:function(n){var a=n.sortable,r=n.rootEl,v=n.dispatchSortableEvent,t=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||z.length&&Qe===a&&(vr(!0,r),v("clone"),t()))},showClone:function(n){var a=n.cloneNowShown,r=n.rootEl,v=n.cancel;this.isMultiDrag&&(vr(!1,r),Ne.forEach(function(t){U(t,"display","")}),a(),fn=!1,v())},hideClone:function(n){var a=this;n.sortable;var r=n.cloneNowHidden,v=n.cancel;this.isMultiDrag&&(Ne.forEach(function(t){U(t,"display","none"),a.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),r(),fn=!0,v())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Qe&&Qe.multiDrag._deselectMultiDrag(),z.forEach(function(a){a.sortableIndex=he(a)}),z=z.sort(function(a,r){return a.sortableIndex-r.sortableIndex}),Et=!0},dragStarted:function(n){var a=this,r=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){z.forEach(function(t){t!==oe&&U(t,"position","absolute")});var v=le(oe,!1,!0,!0);z.forEach(function(t){t!==oe&&lr(t,v)}),Le=!0,Kt=!0}r.animateAll(function(){Le=!1,Kt=!1,a.options.animation&&z.forEach(function(t){Fn(t)}),a.options.sort&&dn()})}},dragOver:function(n){var a=n.target,r=n.completed,v=n.cancel;Le&&~z.indexOf(a)&&(r(!1),v())},revert:function(n){var a=n.fromSortable,r=n.rootEl,v=n.sortable,t=n.dragRect;z.length>1&&(z.forEach(function(f){v.addAnimationState({target:f,rect:Le?le(f):t}),Fn(f),f.fromRect=t,a.removeAnimationState(f)}),Le=!1,ai(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(n){var a=n.sortable,r=n.isOwner,v=n.insertion,t=n.activeSortable,f=n.parentEl,u=n.putSortable,c=this.options;if(v){if(r&&t._hideClone(),Kt=!1,c.animation&&z.length>1&&(Le||!r&&!t.options.sort&&!u)){var p=le(oe,!1,!0,!0);z.forEach(function(o){o!==oe&&(lr(o,p),f.appendChild(o))}),Le=!0}if(!r)if(Le||dn(),z.length>1){var e=fn;t._showClone(a),t.options.animation&&!fn&&e&&Ne.forEach(function(o){t.addAnimationState({target:o,rect:Yt}),o.fromRect=Yt,o.thisAnimationDuration=null})}else t._showClone(a)}},dragOverAnimationCapture:function(n){var a=n.dragRect,r=n.isOwner,v=n.activeSortable;if(z.forEach(function(f){f.thisAnimationDuration=null}),v.options.animation&&!r&&v.multiDrag.isMultiDrag){Yt=Ge({},a);var t=St(oe,!0);Yt.top-=t.f,Yt.left-=t.e}},dragOverAnimationComplete:function(){Le&&(Le=!1,dn())},drop:function(n){var a=n.originalEvent,r=n.rootEl,v=n.parentEl,t=n.sortable,f=n.dispatchSortableEvent,u=n.oldIndex,c=n.putSortable,p=c||this.sortable;if(a){var e=this.options,o=v.children;if(!Et)if(e.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ce(oe,e.selectedClass,!~z.indexOf(oe)),~z.indexOf(oe))z.splice(z.indexOf(oe),1),Vt=null,Wt({sortable:t,rootEl:r,name:"deselect",targetEl:oe,originalEvt:a});else{if(z.push(oe),Wt({sortable:t,rootEl:r,name:"select",targetEl:oe,originalEvt:a}),a.shiftKey&&Vt&&t.el.contains(Vt)){var i=he(Vt),d=he(oe);if(~i&&~d&&i!==d){var g,h;for(d>i?(h=i,g=d):(h=d,g=i+1);h<g;h++)~z.indexOf(o[h])||(ce(o[h],e.selectedClass,!0),z.push(o[h]),Wt({sortable:t,rootEl:r,name:"select",targetEl:o[h],originalEvt:a}))}}else Vt=oe;Qe=p}if(Et&&this.isMultiDrag){if(Le=!1,(v[Oe].options.sort||v!==r)&&z.length>1){var m=le(oe),y=he(oe,":not(."+this.options.selectedClass+")");if(!Kt&&e.animation&&(oe.thisAnimationDuration=null),p.captureAnimationState(),!Kt&&(e.animation&&(oe.fromRect=m,z.forEach(function(x){if(x.thisAnimationDuration=null,x!==oe){var T=Le?le(x):m;x.fromRect=T,p.addAnimationState({target:x,rect:T})}})),dn(),z.forEach(function(x){o[y]?v.insertBefore(x,o[y]):v.appendChild(x),y++}),u===he(oe))){var A=!1;z.forEach(function(x){if(x.sortableIndex!==he(x)){A=!0;return}}),A&&f("update")}z.forEach(function(x){Fn(x)}),p.animateAll()}Qe=p}(r===v||c&&c.lastPutMode!=="clone")&&Ne.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=Et=!1,Ne.length=0},destroyGlobal:function(){this._deselectMultiDrag(),k(document,"pointerup",this._deselectMultiDrag),k(document,"mouseup",this._deselectMultiDrag),k(document,"touchend",this._deselectMultiDrag),k(document,"keydown",this._checkKeyDown),k(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Et<"u"&&Et)&&Qe===this.sortable&&!(n&&Je(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;z.length;){var a=z[0];ce(a,this.options.selectedClass,!1),z.shift(),Wt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:a,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ge(s,{pluginName:"multiDrag",utils:{select:function(n){var a=n.parentNode[Oe];!a||!a.options.multiDrag||~z.indexOf(n)||(Qe&&Qe!==a&&(Qe.multiDrag._deselectMultiDrag(),Qe=a),ce(n,a.options.selectedClass,!0),z.push(n))},deselect:function(n){var a=n.parentNode[Oe],r=z.indexOf(n);!a||!a.options.multiDrag||!~r||(ce(n,a.options.selectedClass,!1),z.splice(r,1))}},eventProperties:function(){var n=this,a=[],r=[];return z.forEach(function(v){a.push({multiDragElement:v,index:v.sortableIndex});var t;Le&&v!==oe?t=-1:Le?t=he(v,":not(."+n.options.selectedClass+")"):t=he(v),r.push({multiDragElement:v,index:t})}),{items:Ca(z),clones:[].concat(Ne),oldIndicies:a,newIndicies:r}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function ai(s,l){z.forEach(function(n,a){var r=l.children[n.sortableIndex+(s?Number(a):0)];r?l.insertBefore(n,r):l.appendChild(n)})}function vr(s,l){Ne.forEach(function(n,a){var r=l.children[n.sortableIndex+(s?Number(a):0)];r?l.insertBefore(n,r):l.appendChild(n)})}function dn(){z.forEach(function(s){s!==oe&&s.parentNode&&s.parentNode.removeChild(s)})}K.mount(new ti);K.mount($n,kn);const ii=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:oi,Sortable:K,Swap:ni,default:K},Symbol.toStringTag,{value:"Module"})),si=mr(ii);(function(s,l){(function(a,r){s.exports=r(Ea,si)})(typeof self<"u"?self:Tt,function(n,a){return function(r){var v={};function t(f){if(v[f])return v[f].exports;var u=v[f]={i:f,l:!1,exports:{}};return r[f].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=r,t.c=v,t.d=function(f,u,c){t.o(f,u)||Object.defineProperty(f,u,{enumerable:!0,get:c})},t.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},t.t=function(f,u){if(u&1&&(f=t(f)),u&8||u&4&&typeof f=="object"&&f&&f.__esModule)return f;var c=Object.create(null);if(t.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:f}),u&2&&typeof f!="string")for(var p in f)t.d(c,p,function(e){return f[e]}.bind(null,p));return c},t.n=function(f){var u=f&&f.__esModule?function(){return f.default}:function(){return f};return t.d(u,"a",u),u},t.o=function(f,u){return Object.prototype.hasOwnProperty.call(f,u)},t.p="",t(t.s="fb15")}({"00ee":function(r,v,t){var f=t("b622"),u=f("toStringTag"),c={};c[u]="z",r.exports=String(c)==="[object z]"},"0366":function(r,v,t){var f=t("1c0b");r.exports=function(u,c,p){if(f(u),c===void 0)return u;switch(p){case 0:return function(){return u.call(c)};case 1:return function(e){return u.call(c,e)};case 2:return function(e,o){return u.call(c,e,o)};case 3:return function(e,o,i){return u.call(c,e,o,i)}}return function(){return u.apply(c,arguments)}}},"057f":function(r,v,t){var f=t("fc6a"),u=t("241c").f,c={}.toString,p=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],e=function(o){try{return u(o)}catch(i){return p.slice()}};r.exports.f=function(i){return p&&c.call(i)=="[object Window]"?e(i):u(f(i))}},"06cf":function(r,v,t){var f=t("83ab"),u=t("d1e7"),c=t("5c6c"),p=t("fc6a"),e=t("c04e"),o=t("5135"),i=t("0cfb"),d=Object.getOwnPropertyDescriptor;v.f=f?d:function(h,m){if(h=p(h),m=e(m,!0),i)try{return d(h,m)}catch(y){}if(o(h,m))return c(!u.f.call(h,m),h[m])}},"0cfb":function(r,v,t){var f=t("83ab"),u=t("d039"),c=t("cc12");r.exports=!f&&!u(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(r,v,t){var f=t("23e7"),u=t("d58f").left,c=t("a640"),p=t("ae40"),e=c("reduce"),o=p("reduce",{1:0});f({target:"Array",proto:!0,forced:!e||!o},{reduce:function(d){return u(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(r,v,t){var f=t("c6b6"),u=t("9263");r.exports=function(c,p){var e=c.exec;if(typeof e=="function"){var o=e.call(c,p);if(typeof o!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return o}if(f(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return u.call(c,p)}},"159b":function(r,v,t){var f=t("da84"),u=t("fdbc"),c=t("17c2"),p=t("9112");for(var e in u){var o=f[e],i=o&&o.prototype;if(i&&i.forEach!==c)try{p(i,"forEach",c)}catch(d){i.forEach=c}}},"17c2":function(r,v,t){var f=t("b727").forEach,u=t("a640"),c=t("ae40"),p=u("forEach"),e=c("forEach");r.exports=!p||!e?function(i){return f(this,i,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(r,v,t){var f=t("d066");r.exports=f("document","documentElement")},"1c0b":function(r,v){r.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(r,v,t){var f=t("b622"),u=f("iterator"),c=!1;try{var p=0,e={next:function(){return{done:!!p++}},return:function(){c=!0}};e[u]=function(){return this},Array.from(e,function(){throw 2})}catch(o){}r.exports=function(o,i){if(!i&&!c)return!1;var d=!1;try{var g={};g[u]=function(){return{next:function(){return{done:d=!0}}}},o(g)}catch(h){}return d}},"1d80":function(r,v){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(r,v,t){var f=t("d039"),u=t("b622"),c=t("2d00"),p=u("species");r.exports=function(e){return c>=51||!f(function(){var o=[],i=o.constructor={};return i[p]=function(){return{foo:1}},o[e](Boolean).foo!==1})}},"23cb":function(r,v,t){var f=t("a691"),u=Math.max,c=Math.min;r.exports=function(p,e){var o=f(p);return o<0?u(o+e,0):c(o,e)}},"23e7":function(r,v,t){var f=t("da84"),u=t("06cf").f,c=t("9112"),p=t("6eeb"),e=t("ce4e"),o=t("e893"),i=t("94ca");r.exports=function(d,g){var h=d.target,m=d.global,y=d.stat,A,x,T,O,M,B;if(m?x=f:y?x=f[h]||e(h,{}):x=(f[h]||{}).prototype,x)for(T in g){if(M=g[T],d.noTargetGet?(B=u(x,T),O=B&&B.value):O=x[T],A=i(m?T:h+(y?".":"#")+T,d.forced),!A&&O!==void 0){if(typeof M==typeof O)continue;o(M,O)}(d.sham||O&&O.sham)&&c(M,"sham",!0),p(x,T,M,d)}}},"241c":function(r,v,t){var f=t("ca84"),u=t("7839"),c=u.concat("length","prototype");v.f=Object.getOwnPropertyNames||function(e){return f(e,c)}},"25f0":function(r,v,t){var f=t("6eeb"),u=t("825a"),c=t("d039"),p=t("ad6d"),e="toString",o=RegExp.prototype,i=o[e],d=c(function(){return i.call({source:"a",flags:"b"})!="/a/b"}),g=i.name!=e;(d||g)&&f(RegExp.prototype,e,function(){var m=u(this),y=String(m.source),A=m.flags,x=String(A===void 0&&m instanceof RegExp&&!("flags"in o)?p.call(m):A);return"/"+y+"/"+x},{unsafe:!0})},"2ca0":function(r,v,t){var f=t("23e7"),u=t("06cf").f,c=t("50c4"),p=t("5a34"),e=t("1d80"),o=t("ab13"),i=t("c430"),d="".startsWith,g=Math.min,h=o("startsWith"),m=!i&&!h&&!!function(){var y=u(String.prototype,"startsWith");return y&&!y.writable}();f({target:"String",proto:!0,forced:!m&&!h},{startsWith:function(A){var x=String(e(this));p(A);var T=c(g(arguments.length>1?arguments[1]:void 0,x.length)),O=String(A);return d?d.call(x,O,T):x.slice(T,T+O.length)===O}})},"2d00":function(r,v,t){var f=t("da84"),u=t("342f"),c=f.process,p=c&&c.versions,e=p&&p.v8,o,i;e?(o=e.split("."),i=o[0]+o[1]):u&&(o=u.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=u.match(/Chrome\/(\d+)/),o&&(i=o[1]))),r.exports=i&&+i},"342f":function(r,v,t){var f=t("d066");r.exports=f("navigator","userAgent")||""},"35a1":function(r,v,t){var f=t("f5df"),u=t("3f8c"),c=t("b622"),p=c("iterator");r.exports=function(e){if(e!=null)return e[p]||e["@@iterator"]||u[f(e)]}},"37e8":function(r,v,t){var f=t("83ab"),u=t("9bf2"),c=t("825a"),p=t("df75");r.exports=f?Object.defineProperties:function(o,i){c(o);for(var d=p(i),g=d.length,h=0,m;g>h;)u.f(o,m=d[h++],i[m]);return o}},"3bbe":function(r,v,t){var f=t("861d");r.exports=function(u){if(!f(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},"3ca3":function(r,v,t){var f=t("6547").charAt,u=t("69f3"),c=t("7dd0"),p="String Iterator",e=u.set,o=u.getterFor(p);c(String,"String",function(i){e(this,{type:p,string:String(i),index:0})},function(){var d=o(this),g=d.string,h=d.index,m;return h>=g.length?{value:void 0,done:!0}:(m=f(g,h),d.index+=m.length,{value:m,done:!1})})},"3f8c":function(r,v){r.exports={}},4160:function(r,v,t){var f=t("23e7"),u=t("17c2");f({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},"428f":function(r,v,t){var f=t("da84");r.exports=f},"44ad":function(r,v,t){var f=t("d039"),u=t("c6b6"),c="".split;r.exports=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return u(p)=="String"?c.call(p,""):Object(p)}:Object},"44d2":function(r,v,t){var f=t("b622"),u=t("7c73"),c=t("9bf2"),p=f("unscopables"),e=Array.prototype;e[p]==null&&c.f(e,p,{configurable:!0,value:u(null)}),r.exports=function(o){e[p][o]=!0}},"44e7":function(r,v,t){var f=t("861d"),u=t("c6b6"),c=t("b622"),p=c("match");r.exports=function(e){var o;return f(e)&&((o=e[p])!==void 0?!!o:u(e)=="RegExp")}},4930:function(r,v,t){var f=t("d039");r.exports=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())})},"4d64":function(r,v,t){var f=t("fc6a"),u=t("50c4"),c=t("23cb"),p=function(e){return function(o,i,d){var g=f(o),h=u(g.length),m=c(d,h),y;if(e&&i!=i){for(;h>m;)if(y=g[m++],y!=y)return!0}else for(;h>m;m++)if((e||m in g)&&g[m]===i)return e||m||0;return!e&&-1}};r.exports={includes:p(!0),indexOf:p(!1)}},"4de4":function(r,v,t){var f=t("23e7"),u=t("b727").filter,c=t("1dde"),p=t("ae40"),e=c("filter"),o=p("filter");f({target:"Array",proto:!0,forced:!e||!o},{filter:function(d){return u(this,d,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(r,v,t){var f=t("0366"),u=t("7b0b"),c=t("9bdd"),p=t("e95a"),e=t("50c4"),o=t("8418"),i=t("35a1");r.exports=function(g){var h=u(g),m=typeof this=="function"?this:Array,y=arguments.length,A=y>1?arguments[1]:void 0,x=A!==void 0,T=i(h),O=0,M,B,E,L,N,W;if(x&&(A=f(A,y>2?arguments[2]:void 0,2)),T!=null&&!(m==Array&&p(T)))for(L=T.call(h),N=L.next,B=new m;!(E=N.call(L)).done;O++)W=x?c(L,A,[E.value,O],!0):E.value,o(B,O,W);else for(M=e(h.length),B=new m(M);M>O;O++)W=x?A(h[O],O):h[O],o(B,O,W);return B.length=O,B}},"4fad":function(r,v,t){var f=t("23e7"),u=t("6f53").entries;f({target:"Object",stat:!0},{entries:function(p){return u(p)}})},"50c4":function(r,v,t){var f=t("a691"),u=Math.min;r.exports=function(c){return c>0?u(f(c),9007199254740991):0}},5135:function(r,v){var t={}.hasOwnProperty;r.exports=function(f,u){return t.call(f,u)}},5319:function(r,v,t){var f=t("d784"),u=t("825a"),c=t("7b0b"),p=t("50c4"),e=t("a691"),o=t("1d80"),i=t("8aa5"),d=t("14c3"),g=Math.max,h=Math.min,m=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,A=/\$([$&'`]|\d\d?)/g,x=function(T){return T===void 0?T:String(T)};f("replace",2,function(T,O,M,B){var E=B.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,L=B.REPLACE_KEEPS_$0,N=E?"$":"$0";return[function(P,Y){var F=o(this),H=P==null?void 0:P[T];return H!==void 0?H.call(P,F,Y):O.call(String(F),P,Y)},function(D,P){if(!E&&L||typeof P=="string"&&P.indexOf(N)===-1){var Y=M(O,D,this,P);if(Y.done)return Y.value}var F=u(D),H=String(this),ne=typeof P=="function";ne||(P=String(P));var ae=F.global;if(ae){var xe=F.unicode;F.lastIndex=0}for(var fe=[];;){var de=d(F,H);if(de===null||(fe.push(de),!ae))break;var Ae=String(de[0]);Ae===""&&(F.lastIndex=i(H,p(F.lastIndex),xe))}for(var Se="",me=0,ie=0;ie<fe.length;ie++){de=fe[ie];for(var ue=String(de[0]),Me=g(h(e(de.index),H.length),0),Ce=[],rt=1;rt<de.length;rt++)Ce.push(x(de[rt]));var pt=de.groups;if(ne){var st=[ue].concat(Ce,Me,H);pt!==void 0&&st.push(pt);var be=String(P.apply(void 0,st))}else be=W(ue,H,Me,Ce,pt,P);Me>=me&&(Se+=H.slice(me,Me)+be,me=Me+ue.length)}return Se+H.slice(me)}];function W(D,P,Y,F,H,ne){var ae=Y+D.length,xe=F.length,fe=A;return H!==void 0&&(H=c(H),fe=y),O.call(ne,fe,function(de,Ae){var Se;switch(Ae.charAt(0)){case"$":return"$";case"&":return D;case"`":return P.slice(0,Y);case"'":return P.slice(ae);case"<":Se=H[Ae.slice(1,-1)];break;default:var me=+Ae;if(me===0)return de;if(me>xe){var ie=m(me/10);return ie===0?de:ie<=xe?F[ie-1]===void 0?Ae.charAt(1):F[ie-1]+Ae.charAt(1):de}Se=F[me-1]}return Se===void 0?"":Se})}})},5692:function(r,v,t){var f=t("c430"),u=t("c6cd");(r.exports=function(c,p){return u[c]||(u[c]=p!==void 0?p:{})})("versions",[]).push({version:"3.6.5",mode:f?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(r,v,t){var f=t("d066"),u=t("241c"),c=t("7418"),p=t("825a");r.exports=f("Reflect","ownKeys")||function(o){var i=u.f(p(o)),d=c.f;return d?i.concat(d(o)):i}},"5a34":function(r,v,t){var f=t("44e7");r.exports=function(u){if(f(u))throw TypeError("The method doesn't accept regular expressions");return u}},"5c6c":function(r,v){r.exports=function(t,f){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:f}}},"5db7":function(r,v,t){var f=t("23e7"),u=t("a2bf"),c=t("7b0b"),p=t("50c4"),e=t("1c0b"),o=t("65f0");f({target:"Array",proto:!0},{flatMap:function(d){var g=c(this),h=p(g.length),m;return e(d),m=o(g,0),m.length=u(m,g,g,h,0,1,d,arguments.length>1?arguments[1]:void 0),m}})},6547:function(r,v,t){var f=t("a691"),u=t("1d80"),c=function(p){return function(e,o){var i=String(u(e)),d=f(o),g=i.length,h,m;return d<0||d>=g?p?"":void 0:(h=i.charCodeAt(d),h<55296||h>56319||d+1===g||(m=i.charCodeAt(d+1))<56320||m>57343?p?i.charAt(d):h:p?i.slice(d,d+2):(h-55296<<10)+(m-56320)+65536)}};r.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(r,v,t){var f=t("861d"),u=t("e8b5"),c=t("b622"),p=c("species");r.exports=function(e,o){var i;return u(e)&&(i=e.constructor,typeof i=="function"&&(i===Array||u(i.prototype))?i=void 0:f(i)&&(i=i[p],i===null&&(i=void 0))),new(i===void 0?Array:i)(o===0?0:o)}},"69f3":function(r,v,t){var f=t("7f9a"),u=t("da84"),c=t("861d"),p=t("9112"),e=t("5135"),o=t("f772"),i=t("d012"),d=u.WeakMap,g,h,m,y=function(E){return m(E)?h(E):g(E,{})},A=function(E){return function(L){var N;if(!c(L)||(N=h(L)).type!==E)throw TypeError("Incompatible receiver, "+E+" required");return N}};if(f){var x=new d,T=x.get,O=x.has,M=x.set;g=function(E,L){return M.call(x,E,L),L},h=function(E){return T.call(x,E)||{}},m=function(E){return O.call(x,E)}}else{var B=o("state");i[B]=!0,g=function(E,L){return p(E,B,L),L},h=function(E){return e(E,B)?E[B]:{}},m=function(E){return e(E,B)}}r.exports={set:g,get:h,has:m,enforce:y,getterFor:A}},"6eeb":function(r,v,t){var f=t("da84"),u=t("9112"),c=t("5135"),p=t("ce4e"),e=t("8925"),o=t("69f3"),i=o.get,d=o.enforce,g=String(String).split("String");(r.exports=function(h,m,y,A){var x=A?!!A.unsafe:!1,T=A?!!A.enumerable:!1,O=A?!!A.noTargetGet:!1;if(typeof y=="function"&&(typeof m=="string"&&!c(y,"name")&&u(y,"name",m),d(y).source=g.join(typeof m=="string"?m:"")),h===f){T?h[m]=y:p(m,y);return}else x?!O&&h[m]&&(T=!0):delete h[m];T?h[m]=y:u(h,m,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&i(this).source||e(this)})},"6f53":function(r,v,t){var f=t("83ab"),u=t("df75"),c=t("fc6a"),p=t("d1e7").f,e=function(o){return function(i){for(var d=c(i),g=u(d),h=g.length,m=0,y=[],A;h>m;)A=g[m++],(!f||p.call(d,A))&&y.push(o?[A,d[A]]:d[A]);return y}};r.exports={entries:e(!0),values:e(!1)}},"73d9":function(r,v,t){var f=t("44d2");f("flatMap")},7418:function(r,v){v.f=Object.getOwnPropertySymbols},"746f":function(r,v,t){var f=t("428f"),u=t("5135"),c=t("e538"),p=t("9bf2").f;r.exports=function(e){var o=f.Symbol||(f.Symbol={});u(o,e)||p(o,e,{value:c.f(e)})}},7839:function(r,v){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(r,v,t){var f=t("1d80");r.exports=function(u){return Object(f(u))}},"7c73":function(r,v,t){var f=t("825a"),u=t("37e8"),c=t("7839"),p=t("d012"),e=t("1be4"),o=t("cc12"),i=t("f772"),d=">",g="<",h="prototype",m="script",y=i("IE_PROTO"),A=function(){},x=function(E){return g+m+d+E+g+"/"+m+d},T=function(E){E.write(x("")),E.close();var L=E.parentWindow.Object;return E=null,L},O=function(){var E=o("iframe"),L="java"+m+":",N;return E.style.display="none",e.appendChild(E),E.src=String(L),N=E.contentWindow.document,N.open(),N.write(x("document.F=Object")),N.close(),N.F},M,B=function(){try{M=document.domain&&new ActiveXObject("htmlfile")}catch(L){}B=M?T(M):O();for(var E=c.length;E--;)delete B[h][c[E]];return B()};p[y]=!0,r.exports=Object.create||function(L,N){var W;return L!==null?(A[h]=f(L),W=new A,A[h]=null,W[y]=L):W=B(),N===void 0?W:u(W,N)}},"7dd0":function(r,v,t){var f=t("23e7"),u=t("9ed3"),c=t("e163"),p=t("d2bb"),e=t("d44e"),o=t("9112"),i=t("6eeb"),d=t("b622"),g=t("c430"),h=t("3f8c"),m=t("ae93"),y=m.IteratorPrototype,A=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),T="keys",O="values",M="entries",B=function(){return this};r.exports=function(E,L,N,W,D,P,Y){u(N,L,W);var F=function(ie){if(ie===D&&fe)return fe;if(!A&&ie in ae)return ae[ie];switch(ie){case T:return function(){return new N(this,ie)};case O:return function(){return new N(this,ie)};case M:return function(){return new N(this,ie)}}return function(){return new N(this)}},H=L+" Iterator",ne=!1,ae=E.prototype,xe=ae[x]||ae["@@iterator"]||D&&ae[D],fe=!A&&xe||F(D),de=L=="Array"&&ae.entries||xe,Ae,Se,me;if(de&&(Ae=c(de.call(new E)),y!==Object.prototype&&Ae.next&&(!g&&c(Ae)!==y&&(p?p(Ae,y):typeof Ae[x]!="function"&&o(Ae,x,B)),e(Ae,H,!0,!0),g&&(h[H]=B))),D==O&&xe&&xe.name!==O&&(ne=!0,fe=function(){return xe.call(this)}),(!g||Y)&&ae[x]!==fe&&o(ae,x,fe),h[L]=fe,D)if(Se={values:F(O),keys:P?fe:F(T),entries:F(M)},Y)for(me in Se)(A||ne||!(me in ae))&&i(ae,me,Se[me]);else f({target:L,proto:!0,forced:A||ne},Se);return Se}},"7f9a":function(r,v,t){var f=t("da84"),u=t("8925"),c=f.WeakMap;r.exports=typeof c=="function"&&/native code/.test(u(c))},"825a":function(r,v,t){var f=t("861d");r.exports=function(u){if(!f(u))throw TypeError(String(u)+" is not an object");return u}},"83ab":function(r,v,t){var f=t("d039");r.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(r,v,t){var f=t("c04e"),u=t("9bf2"),c=t("5c6c");r.exports=function(p,e,o){var i=f(e);i in p?u.f(p,i,c(0,o)):p[i]=o}},"861d":function(r,v){r.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(r,v,t){var f,u,c;(function(p,e){u=[],f=e,c=typeof f=="function"?f.apply(v,u):f,c!==void 0&&(r.exports=c)})(typeof self<"u"?self:this,function(){function p(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript||e&&e.get!==p&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var o=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,i=/@([^@]*):(\d+):(\d+)\s*$/ig,d=o.exec(M.stack)||i.exec(M.stack),g=d&&d[1]||!1,h=d&&d[2]||!1,m=document.location.href.replace(document.location.hash,""),y,A,x,T=document.getElementsByTagName("script");g===m&&(y=document.documentElement.outerHTML,A=new RegExp("(?:[^\\n]+?\\n){0,"+(h-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),x=y.replace(A,"$1").trim());for(var O=0;O<T.length;O++)if(T[O].readyState==="interactive"||T[O].src===g||g===m&&T[O].innerHTML&&T[O].innerHTML.trim()===x)return T[O];return null}}return p})},8925:function(r,v,t){var f=t("c6cd"),u=Function.toString;typeof f.inspectSource!="function"&&(f.inspectSource=function(c){return u.call(c)}),r.exports=f.inspectSource},"8aa5":function(r,v,t){var f=t("6547").charAt;r.exports=function(u,c,p){return c+(p?f(u,c).length:1)}},"8bbf":function(r,v){r.exports=n},"90e3":function(r,v){var t=0,f=Math.random();r.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++t+f).toString(36)}},9112:function(r,v,t){var f=t("83ab"),u=t("9bf2"),c=t("5c6c");r.exports=f?function(p,e,o){return u.f(p,e,c(1,o))}:function(p,e,o){return p[e]=o,p}},9263:function(r,v,t){var f=t("ad6d"),u=t("9f7f"),c=RegExp.prototype.exec,p=String.prototype.replace,e=c,o=function(){var h=/a/,m=/b*/g;return c.call(h,"a"),c.call(m,"a"),h.lastIndex!==0||m.lastIndex!==0}(),i=u.UNSUPPORTED_Y||u.BROKEN_CARET,d=/()??/.exec("")[1]!==void 0,g=o||d||i;g&&(e=function(m){var y=this,A,x,T,O,M=i&&y.sticky,B=f.call(y),E=y.source,L=0,N=m;return M&&(B=B.replace("y",""),B.indexOf("g")===-1&&(B+="g"),N=String(m).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&m[y.lastIndex-1]!==`
  26. `)&&(E="(?: "+E+")",N=" "+N,L++),x=new RegExp("^(?:"+E+")",B)),d&&(x=new RegExp("^"+E+"$(?!\\s)",B)),o&&(A=y.lastIndex),T=c.call(M?x:y,N),M?T?(T.input=T.input.slice(L),T[0]=T[0].slice(L),T.index=y.lastIndex,y.lastIndex+=T[0].length):y.lastIndex=0:o&&T&&(y.lastIndex=y.global?T.index+T[0].length:A),d&&T&&T.length>1&&p.call(T[0],x,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(T[O]=void 0)}),T}),r.exports=e},"94ca":function(r,v,t){var f=t("d039"),u=/#|\.prototype\./,c=function(d,g){var h=e[p(d)];return h==i?!0:h==o?!1:typeof g=="function"?f(g):!!g},p=c.normalize=function(d){return String(d).replace(u,".").toLowerCase()},e=c.data={},o=c.NATIVE="N",i=c.POLYFILL="P";r.exports=c},"99af":function(r,v,t){var f=t("23e7"),u=t("d039"),c=t("e8b5"),p=t("861d"),e=t("7b0b"),o=t("50c4"),i=t("8418"),d=t("65f0"),g=t("1dde"),h=t("b622"),m=t("2d00"),y=h("isConcatSpreadable"),A=9007199254740991,x="Maximum allowed index exceeded",T=m>=51||!u(function(){var E=[];return E[y]=!1,E.concat()[0]!==E}),O=g("concat"),M=function(E){if(!p(E))return!1;var L=E[y];return L!==void 0?!!L:c(E)},B=!T||!O;f({target:"Array",proto:!0,forced:B},{concat:function(L){var N=e(this),W=d(N,0),D=0,P,Y,F,H,ne;for(P=-1,F=arguments.length;P<F;P++)if(ne=P===-1?N:arguments[P],M(ne)){if(H=o(ne.length),D+H>A)throw TypeError(x);for(Y=0;Y<H;Y++,D++)Y in ne&&i(W,D,ne[Y])}else{if(D>=A)throw TypeError(x);i(W,D++,ne)}return W.length=D,W}})},"9bdd":function(r,v,t){var f=t("825a");r.exports=function(u,c,p,e){try{return e?c(f(p)[0],p[1]):c(p)}catch(i){var o=u.return;throw o!==void 0&&f(o.call(u)),i}}},"9bf2":function(r,v,t){var f=t("83ab"),u=t("0cfb"),c=t("825a"),p=t("c04e"),e=Object.defineProperty;v.f=f?e:function(i,d,g){if(c(i),d=p(d,!0),c(g),u)try{return e(i,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(i[d]=g.value),i}},"9ed3":function(r,v,t){var f=t("ae93").IteratorPrototype,u=t("7c73"),c=t("5c6c"),p=t("d44e"),e=t("3f8c"),o=function(){return this};r.exports=function(i,d,g){var h=d+" Iterator";return i.prototype=u(f,{next:c(1,g)}),p(i,h,!1,!0),e[h]=o,i}},"9f7f":function(r,v,t){var f=t("d039");function u(c,p){return RegExp(c,p)}v.UNSUPPORTED_Y=f(function(){var c=u("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),v.BROKEN_CARET=f(function(){var c=u("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(r,v,t){var f=t("e8b5"),u=t("50c4"),c=t("0366"),p=function(e,o,i,d,g,h,m,y){for(var A=g,x=0,T=m?c(m,y,3):!1,O;x<d;){if(x in i){if(O=T?T(i[x],x,o):i[x],h>0&&f(O))A=p(e,o,O,u(O.length),A,h-1)-1;else{if(A>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[A]=O}A++}x++}return A};r.exports=p},a352:function(r,v){r.exports=a},a434:function(r,v,t){var f=t("23e7"),u=t("23cb"),c=t("a691"),p=t("50c4"),e=t("7b0b"),o=t("65f0"),i=t("8418"),d=t("1dde"),g=t("ae40"),h=d("splice"),m=g("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,A=Math.min,x=9007199254740991,T="Maximum allowed length exceeded";f({target:"Array",proto:!0,forced:!h||!m},{splice:function(M,B){var E=e(this),L=p(E.length),N=u(M,L),W=arguments.length,D,P,Y,F,H,ne;if(W===0?D=P=0:W===1?(D=0,P=L-N):(D=W-2,P=A(y(c(B),0),L-N)),L+D-P>x)throw TypeError(T);for(Y=o(E,P),F=0;F<P;F++)H=N+F,H in E&&i(Y,F,E[H]);if(Y.length=P,D<P){for(F=N;F<L-P;F++)H=F+P,ne=F+D,H in E?E[ne]=E[H]:delete E[ne];for(F=L;F>L-P+D;F--)delete E[F-1]}else if(D>P)for(F=L-P;F>N;F--)H=F+P-1,ne=F+D-1,H in E?E[ne]=E[H]:delete E[ne];for(F=0;F<D;F++)E[F+N]=arguments[F+2];return E.length=L-P+D,Y}})},a4d3:function(r,v,t){var f=t("23e7"),u=t("da84"),c=t("d066"),p=t("c430"),e=t("83ab"),o=t("4930"),i=t("fdbf"),d=t("d039"),g=t("5135"),h=t("e8b5"),m=t("861d"),y=t("825a"),A=t("7b0b"),x=t("fc6a"),T=t("c04e"),O=t("5c6c"),M=t("7c73"),B=t("df75"),E=t("241c"),L=t("057f"),N=t("7418"),W=t("06cf"),D=t("9bf2"),P=t("d1e7"),Y=t("9112"),F=t("6eeb"),H=t("5692"),ne=t("f772"),ae=t("d012"),xe=t("90e3"),fe=t("b622"),de=t("e538"),Ae=t("746f"),Se=t("d44e"),me=t("69f3"),ie=t("b727").forEach,ue=ne("hidden"),Me="Symbol",Ce="prototype",rt=fe("toPrimitive"),pt=me.set,st=me.getterFor(Me),be=Object[Ce],we=u.Symbol,ht=c("JSON","stringify"),Ze=W.f,ke=D.f,rn=L.f,Cn=P.f,Ve=H("symbols"),lt=H("op-symbols"),xt=H("string-to-symbol-registry"),Ft=H("symbol-to-string-registry"),Mt=H("wks"),Nt=u.QObject,Bt=!Nt||!Nt[Ce]||!Nt[Ce].findChild,jt=e&&d(function(){return M(ke({},"a",{get:function(){return ke(this,"a",{value:7}).a}})).a!=7})?function(Q,G,V){var q=Ze(be,G);q&&delete be[G],ke(Q,G,V),q&&Q!==be&&ke(be,G,q)}:ke,Ut=function(Q,G){var V=Ve[Q]=M(we[Ce]);return pt(V,{type:Me,tag:Q,description:G}),e||(V.description=G),V},w=i?function(Q){return typeof Q=="symbol"}:function(Q){return Object(Q)instanceof we},b=function(G,V,q){G===be&&b(lt,V,q),y(G);var ee=T(V,!0);return y(q),g(Ve,ee)?(q.enumerable?(g(G,ue)&&G[ue][ee]&&(G[ue][ee]=!1),q=M(q,{enumerable:O(0,!1)})):(g(G,ue)||ke(G,ue,O(1,{})),G[ue][ee]=!0),jt(G,ee,q)):ke(G,ee,q)},I=function(G,V){y(G);var q=x(V),ee=B(q).concat(re(q));return ie(ee,function(Pe){(!e||j.call(q,Pe))&&b(G,Pe,q[Pe])}),G},C=function(G,V){return V===void 0?M(G):I(M(G),V)},j=function(G){var V=T(G,!0),q=Cn.call(this,V);return this===be&&g(Ve,V)&&!g(lt,V)?!1:q||!g(this,V)||!g(Ve,V)||g(this,ue)&&this[ue][V]?q:!0},X=function(G,V){var q=x(G),ee=T(V,!0);if(!(q===be&&g(Ve,ee)&&!g(lt,ee))){var Pe=Ze(q,ee);return Pe&&g(Ve,ee)&&!(g(q,ue)&&q[ue][ee])&&(Pe.enumerable=!0),Pe}},J=function(G){var V=rn(x(G)),q=[];return ie(V,function(ee){!g(Ve,ee)&&!g(ae,ee)&&q.push(ee)}),q},re=function(G){var V=G===be,q=rn(V?lt:x(G)),ee=[];return ie(q,function(Pe){g(Ve,Pe)&&(!V||g(be,Pe))&&ee.push(Ve[Pe])}),ee};if(o||(we=function(){if(this instanceof we)throw TypeError("Symbol is not a constructor");var G=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),V=xe(G),q=function(ee){this===be&&q.call(lt,ee),g(this,ue)&&g(this[ue],V)&&(this[ue][V]=!1),jt(this,V,O(1,ee))};return e&&Bt&&jt(be,V,{configurable:!0,set:q}),Ut(V,G)},F(we[Ce],"toString",function(){return st(this).tag}),F(we,"withoutSetter",function(Q){return Ut(xe(Q),Q)}),P.f=j,D.f=b,W.f=X,E.f=L.f=J,N.f=re,de.f=function(Q){return Ut(fe(Q),Q)},e&&(ke(we[Ce],"description",{configurable:!0,get:function(){return st(this).description}}),p||F(be,"propertyIsEnumerable",j,{unsafe:!0}))),f({global:!0,wrap:!0,forced:!o,sham:!o},{Symbol:we}),ie(B(Mt),function(Q){Ae(Q)}),f({target:Me,stat:!0,forced:!o},{for:function(Q){var G=String(Q);if(g(xt,G))return xt[G];var V=we(G);return xt[G]=V,Ft[V]=G,V},keyFor:function(G){if(!w(G))throw TypeError(G+" is not a symbol");if(g(Ft,G))return Ft[G]},useSetter:function(){Bt=!0},useSimple:function(){Bt=!1}}),f({target:"Object",stat:!0,forced:!o,sham:!e},{create:C,defineProperty:b,defineProperties:I,getOwnPropertyDescriptor:X}),f({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:J,getOwnPropertySymbols:re}),f({target:"Object",stat:!0,forced:d(function(){N.f(1)})},{getOwnPropertySymbols:function(G){return N.f(A(G))}}),ht){var ge=!o||d(function(){var Q=we();return ht([Q])!="[null]"||ht({a:Q})!="{}"||ht(Object(Q))!="{}"});f({target:"JSON",stat:!0,forced:ge},{stringify:function(G,V,q){for(var ee=[G],Pe=1,Dn;arguments.length>Pe;)ee.push(arguments[Pe++]);if(Dn=V,!(!m(V)&&G===void 0||w(G)))return h(V)||(V=function(jr,on){if(typeof Dn=="function"&&(on=Dn.call(this,jr,on)),!w(on))return on}),ee[1]=V,ht.apply(null,ee)}})}we[Ce][rt]||Y(we[Ce],rt,we[Ce].valueOf),Se(we,Me),ae[ue]=!0},a630:function(r,v,t){var f=t("23e7"),u=t("4df4"),c=t("1c7e"),p=!c(function(e){Array.from(e)});f({target:"Array",stat:!0,forced:p},{from:u})},a640:function(r,v,t){var f=t("d039");r.exports=function(u,c){var p=[][u];return!!p&&f(function(){p.call(null,c||function(){throw 1},1)})}},a691:function(r,v){var t=Math.ceil,f=Math.floor;r.exports=function(u){return isNaN(u=+u)?0:(u>0?f:t)(u)}},ab13:function(r,v,t){var f=t("b622"),u=f("match");r.exports=function(c){var p=/./;try{"/./"[c](p)}catch(e){try{return p[u]=!1,"/./"[c](p)}catch(o){}}return!1}},ac1f:function(r,v,t){var f=t("23e7"),u=t("9263");f({target:"RegExp",proto:!0,forced:/./.exec!==u},{exec:u})},ad6d:function(r,v,t){var f=t("825a");r.exports=function(){var u=f(this),c="";return u.global&&(c+="g"),u.ignoreCase&&(c+="i"),u.multiline&&(c+="m"),u.dotAll&&(c+="s"),u.unicode&&(c+="u"),u.sticky&&(c+="y"),c}},ae40:function(r,v,t){var f=t("83ab"),u=t("d039"),c=t("5135"),p=Object.defineProperty,e={},o=function(i){throw i};r.exports=function(i,d){if(c(e,i))return e[i];d||(d={});var g=[][i],h=c(d,"ACCESSORS")?d.ACCESSORS:!1,m=c(d,0)?d[0]:o,y=c(d,1)?d[1]:void 0;return e[i]=!!g&&!u(function(){if(h&&!f)return!0;var A={length:-1};h?p(A,1,{enumerable:!0,get:o}):A[1]=1,g.call(A,m,y)})}},ae93:function(r,v,t){var f=t("e163"),u=t("9112"),c=t("5135"),p=t("b622"),e=t("c430"),o=p("iterator"),i=!1,d=function(){return this},g,h,m;[].keys&&(m=[].keys(),"next"in m?(h=f(f(m)),h!==Object.prototype&&(g=h)):i=!0),g==null&&(g={}),!e&&!c(g,o)&&u(g,o,d),r.exports={IteratorPrototype:g,BUGGY_SAFARI_ITERATORS:i}},b041:function(r,v,t){var f=t("00ee"),u=t("f5df");r.exports=f?{}.toString:function(){return"[object "+u(this)+"]"}},b0c0:function(r,v,t){var f=t("83ab"),u=t("9bf2").f,c=Function.prototype,p=c.toString,e=/^\s*function ([^ (]*)/,o="name";f&&!(o in c)&&u(c,o,{configurable:!0,get:function(){try{return p.call(this).match(e)[1]}catch(i){return""}}})},b622:function(r,v,t){var f=t("da84"),u=t("5692"),c=t("5135"),p=t("90e3"),e=t("4930"),o=t("fdbf"),i=u("wks"),d=f.Symbol,g=o?d:d&&d.withoutSetter||p;r.exports=function(h){return c(i,h)||(e&&c(d,h)?i[h]=d[h]:i[h]=g("Symbol."+h)),i[h]}},b64b:function(r,v,t){var f=t("23e7"),u=t("7b0b"),c=t("df75"),p=t("d039"),e=p(function(){c(1)});f({target:"Object",stat:!0,forced:e},{keys:function(i){return c(u(i))}})},b727:function(r,v,t){var f=t("0366"),u=t("44ad"),c=t("7b0b"),p=t("50c4"),e=t("65f0"),o=[].push,i=function(d){var g=d==1,h=d==2,m=d==3,y=d==4,A=d==6,x=d==5||A;return function(T,O,M,B){for(var E=c(T),L=u(E),N=f(O,M,3),W=p(L.length),D=0,P=B||e,Y=g?P(T,W):h?P(T,0):void 0,F,H;W>D;D++)if((x||D in L)&&(F=L[D],H=N(F,D,E),d)){if(g)Y[D]=H;else if(H)switch(d){case 3:return!0;case 5:return F;case 6:return D;case 2:o.call(Y,F)}else if(y)return!1}return A?-1:m||y?y:Y}};r.exports={forEach:i(0),map:i(1),filter:i(2),some:i(3),every:i(4),find:i(5),findIndex:i(6)}},c04e:function(r,v,t){var f=t("861d");r.exports=function(u,c){if(!f(u))return u;var p,e;if(c&&typeof(p=u.toString)=="function"&&!f(e=p.call(u))||typeof(p=u.valueOf)=="function"&&!f(e=p.call(u))||!c&&typeof(p=u.toString)=="function"&&!f(e=p.call(u)))return e;throw TypeError("Can't convert object to primitive value")}},c430:function(r,v){r.exports=!1},c6b6:function(r,v){var t={}.toString;r.exports=function(f){return t.call(f).slice(8,-1)}},c6cd:function(r,v,t){var f=t("da84"),u=t("ce4e"),c="__core-js_shared__",p=f[c]||u(c,{});r.exports=p},c740:function(r,v,t){var f=t("23e7"),u=t("b727").findIndex,c=t("44d2"),p=t("ae40"),e="findIndex",o=!0,i=p(e);e in[]&&Array(1)[e](function(){o=!1}),f({target:"Array",proto:!0,forced:o||!i},{findIndex:function(g){return u(this,g,arguments.length>1?arguments[1]:void 0)}}),c(e)},c8ba:function(r,v){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(f){typeof window=="object"&&(t=window)}r.exports=t},c975:function(r,v,t){var f=t("23e7"),u=t("4d64").indexOf,c=t("a640"),p=t("ae40"),e=[].indexOf,o=!!e&&1/[1].indexOf(1,-0)<0,i=c("indexOf"),d=p("indexOf",{ACCESSORS:!0,1:0});f({target:"Array",proto:!0,forced:o||!i||!d},{indexOf:function(h){return o?e.apply(this,arguments)||0:u(this,h,arguments.length>1?arguments[1]:void 0)}})},ca84:function(r,v,t){var f=t("5135"),u=t("fc6a"),c=t("4d64").indexOf,p=t("d012");r.exports=function(e,o){var i=u(e),d=0,g=[],h;for(h in i)!f(p,h)&&f(i,h)&&g.push(h);for(;o.length>d;)f(i,h=o[d++])&&(~c(g,h)||g.push(h));return g}},caad:function(r,v,t){var f=t("23e7"),u=t("4d64").includes,c=t("44d2"),p=t("ae40"),e=p("indexOf",{ACCESSORS:!0,1:0});f({target:"Array",proto:!0,forced:!e},{includes:function(i){return u(this,i,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(r,v,t){var f=t("da84"),u=t("861d"),c=f.document,p=u(c)&&u(c.createElement);r.exports=function(e){return p?c.createElement(e):{}}},ce4e:function(r,v,t){var f=t("da84"),u=t("9112");r.exports=function(c,p){try{u(f,c,p)}catch(e){f[c]=p}return p}},d012:function(r,v){r.exports={}},d039:function(r,v){r.exports=function(t){try{return!!t()}catch(f){return!0}}},d066:function(r,v,t){var f=t("428f"),u=t("da84"),c=function(p){return typeof p=="function"?p:void 0};r.exports=function(p,e){return arguments.length<2?c(f[p])||c(u[p]):f[p]&&f[p][e]||u[p]&&u[p][e]}},d1e7:function(r,v,t){var f={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,c=u&&!f.call({1:2},1);v.f=c?function(e){var o=u(this,e);return!!o&&o.enumerable}:f},d28b:function(r,v,t){var f=t("746f");f("iterator")},d2bb:function(r,v,t){var f=t("825a"),u=t("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,p={},e;try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(p,[]),c=p instanceof Array}catch(o){}return function(i,d){return f(i),u(d),c?e.call(i,d):i.__proto__=d,i}}():void 0)},d3b7:function(r,v,t){var f=t("00ee"),u=t("6eeb"),c=t("b041");f||u(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(r,v,t){var f=t("9bf2").f,u=t("5135"),c=t("b622"),p=c("toStringTag");r.exports=function(e,o,i){e&&!u(e=i?e:e.prototype,p)&&f(e,p,{configurable:!0,value:o})}},d58f:function(r,v,t){var f=t("1c0b"),u=t("7b0b"),c=t("44ad"),p=t("50c4"),e=function(o){return function(i,d,g,h){f(d);var m=u(i),y=c(m),A=p(m.length),x=o?A-1:0,T=o?-1:1;if(g<2)for(;;){if(x in y){h=y[x],x+=T;break}if(x+=T,o?x<0:A<=x)throw TypeError("Reduce of empty array with no initial value")}for(;o?x>=0:A>x;x+=T)x in y&&(h=d(h,y[x],x,m));return h}};r.exports={left:e(!1),right:e(!0)}},d784:function(r,v,t){t("ac1f");var f=t("6eeb"),u=t("d039"),c=t("b622"),p=t("9263"),e=t("9112"),o=c("species"),i=!u(function(){var y=/./;return y.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(y,"$<a>")!=="7"}),d=function(){return"a".replace(/./,"$0")==="$0"}(),g=c("replace"),h=function(){return/./[g]?/./[g]("a","$0")==="":!1}(),m=!u(function(){var y=/(?:)/,A=y.exec;y.exec=function(){return A.apply(this,arguments)};var x="ab".split(y);return x.length!==2||x[0]!=="a"||x[1]!=="b"});r.exports=function(y,A,x,T){var O=c(y),M=!u(function(){var D={};return D[O]=function(){return 7},""[y](D)!=7}),B=M&&!u(function(){var D=!1,P=/a/;return y==="split"&&(P={},P.constructor={},P.constructor[o]=function(){return P},P.flags="",P[O]=/./[O]),P.exec=function(){return D=!0,null},P[O](""),!D});if(!M||!B||y==="replace"&&!(i&&d&&!h)||y==="split"&&!m){var E=/./[O],L=x(O,""[y],function(D,P,Y,F,H){return P.exec===p?M&&!H?{done:!0,value:E.call(P,Y,F)}:{done:!0,value:D.call(Y,P,F)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),N=L[0],W=L[1];f(String.prototype,y,N),f(RegExp.prototype,O,A==2?function(D,P){return W.call(D,this,P)}:function(D){return W.call(D,this)})}T&&e(RegExp.prototype[O],"sham",!0)}},d81d:function(r,v,t){var f=t("23e7"),u=t("b727").map,c=t("1dde"),p=t("ae40"),e=c("map"),o=p("map");f({target:"Array",proto:!0,forced:!e||!o},{map:function(d){return u(this,d,arguments.length>1?arguments[1]:void 0)}})},da84:function(r,v,t){(function(f){var u=function(c){return c&&c.Math==Math&&c};r.exports=u(typeof globalThis=="object"&&globalThis)||u(typeof window=="object"&&window)||u(typeof self=="object"&&self)||u(typeof f=="object"&&f)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(r,v,t){var f=t("23e7"),u=t("83ab"),c=t("56ef"),p=t("fc6a"),e=t("06cf"),o=t("8418");f({target:"Object",stat:!0,sham:!u},{getOwnPropertyDescriptors:function(d){for(var g=p(d),h=e.f,m=c(g),y={},A=0,x,T;m.length>A;)T=h(g,x=m[A++]),T!==void 0&&o(y,x,T);return y}})},dbf1:function(r,v,t){(function(f){t.d(v,"a",function(){return c});function u(){return typeof window<"u"?window.console:f.console}var c=u()}).call(this,t("c8ba"))},ddb0:function(r,v,t){var f=t("da84"),u=t("fdbc"),c=t("e260"),p=t("9112"),e=t("b622"),o=e("iterator"),i=e("toStringTag"),d=c.values;for(var g in u){var h=f[g],m=h&&h.prototype;if(m){if(m[o]!==d)try{p(m,o,d)}catch(A){m[o]=d}if(m[i]||p(m,i,g),u[g]){for(var y in c)if(m[y]!==c[y])try{p(m,y,c[y])}catch(A){m[y]=c[y]}}}}},df75:function(r,v,t){var f=t("ca84"),u=t("7839");r.exports=Object.keys||function(p){return f(p,u)}},e01a:function(r,v,t){var f=t("23e7"),u=t("83ab"),c=t("da84"),p=t("5135"),e=t("861d"),o=t("9bf2").f,i=t("e893"),d=c.Symbol;if(u&&typeof d=="function"&&(!("description"in d.prototype)||d().description!==void 0)){var g={},h=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),M=this instanceof h?new d(O):O===void 0?d():d(O);return O===""&&(g[M]=!0),M};i(h,d);var m=h.prototype=d.prototype;m.constructor=h;var y=m.toString,A=String(d("test"))=="Symbol(test)",x=/^Symbol\((.*)\)[^)]+$/;o(m,"description",{configurable:!0,get:function(){var O=e(this)?this.valueOf():this,M=y.call(O);if(p(g,O))return"";var B=A?M.slice(7,-1):M.replace(x,"$1");return B===""?void 0:B}}),f({global:!0,forced:!0},{Symbol:h})}},e163:function(r,v,t){var f=t("5135"),u=t("7b0b"),c=t("f772"),p=t("e177"),e=c("IE_PROTO"),o=Object.prototype;r.exports=p?Object.getPrototypeOf:function(i){return i=u(i),f(i,e)?i[e]:typeof i.constructor=="function"&&i instanceof i.constructor?i.constructor.prototype:i instanceof Object?o:null}},e177:function(r,v,t){var f=t("d039");r.exports=!f(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},e260:function(r,v,t){var f=t("fc6a"),u=t("44d2"),c=t("3f8c"),p=t("69f3"),e=t("7dd0"),o="Array Iterator",i=p.set,d=p.getterFor(o);r.exports=e(Array,"Array",function(g,h){i(this,{type:o,target:f(g),index:0,kind:h})},function(){var g=d(this),h=g.target,m=g.kind,y=g.index++;return!h||y>=h.length?(g.target=void 0,{value:void 0,done:!0}):m=="keys"?{value:y,done:!1}:m=="values"?{value:h[y],done:!1}:{value:[y,h[y]],done:!1}},"values"),c.Arguments=c.Array,u("keys"),u("values"),u("entries")},e439:function(r,v,t){var f=t("23e7"),u=t("d039"),c=t("fc6a"),p=t("06cf").f,e=t("83ab"),o=u(function(){p(1)}),i=!e||o;f({target:"Object",stat:!0,forced:i,sham:!e},{getOwnPropertyDescriptor:function(g,h){return p(c(g),h)}})},e538:function(r,v,t){var f=t("b622");v.f=f},e893:function(r,v,t){var f=t("5135"),u=t("56ef"),c=t("06cf"),p=t("9bf2");r.exports=function(e,o){for(var i=u(o),d=p.f,g=c.f,h=0;h<i.length;h++){var m=i[h];f(e,m)||d(e,m,g(o,m))}}},e8b5:function(r,v,t){var f=t("c6b6");r.exports=Array.isArray||function(c){return f(c)=="Array"}},e95a:function(r,v,t){var f=t("b622"),u=t("3f8c"),c=f("iterator"),p=Array.prototype;r.exports=function(e){return e!==void 0&&(u.Array===e||p[c]===e)}},f5df:function(r,v,t){var f=t("00ee"),u=t("c6b6"),c=t("b622"),p=c("toStringTag"),e=u(function(){return arguments}())=="Arguments",o=function(i,d){try{return i[d]}catch(g){}};r.exports=f?u:function(i){var d,g,h;return i===void 0?"Undefined":i===null?"Null":typeof(g=o(d=Object(i),p))=="string"?g:e?u(d):(h=u(d))=="Object"&&typeof d.callee=="function"?"Arguments":h}},f772:function(r,v,t){var f=t("5692"),u=t("90e3"),c=f("keys");r.exports=function(p){return c[p]||(c[p]=u(p))}},fb15:function(r,v,t){if(t.r(v),typeof window<"u"){var f=window.document.currentScript;{var u=t("8875");f=u(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:u})}var c=f&&f.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(t.p=c[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function p(w,b,I){return b in w?Object.defineProperty(w,b,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[b]=I,w}function e(w,b){var I=Object.keys(w);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(w);b&&(C=C.filter(function(j){return Object.getOwnPropertyDescriptor(w,j).enumerable})),I.push.apply(I,C)}return I}function o(w){for(var b=1;b<arguments.length;b++){var I=arguments[b]!=null?arguments[b]:{};b%2?e(Object(I),!0).forEach(function(C){p(w,C,I[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(I)):e(Object(I)).forEach(function(C){Object.defineProperty(w,C,Object.getOwnPropertyDescriptor(I,C))})}return w}function i(w){if(Array.isArray(w))return w}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function d(w,b){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w)))){var I=[],C=!0,j=!1,X=void 0;try{for(var J=w[Symbol.iterator](),re;!(C=(re=J.next()).done)&&(I.push(re.value),!(b&&I.length===b));C=!0);}catch(ge){j=!0,X=ge}finally{try{!C&&J.return!=null&&J.return()}finally{if(j)throw X}}return I}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function g(w,b){(b==null||b>w.length)&&(b=w.length);for(var I=0,C=new Array(b);I<b;I++)C[I]=w[I];return C}function h(w,b){if(w){if(typeof w=="string")return g(w,b);var I=Object.prototype.toString.call(w).slice(8,-1);if(I==="Object"&&w.constructor&&(I=w.constructor.name),I==="Map"||I==="Set")return Array.from(w);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return g(w,b)}}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(w,b){return i(w)||d(w,b)||h(w,b)||m()}function A(w){if(Array.isArray(w))return g(w)}function x(w){if(typeof Symbol<"u"&&Symbol.iterator in Object(w))return Array.from(w)}function T(){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 O(w){return A(w)||x(w)||h(w)||T()}var M=t("a352"),B=t.n(M);function E(w){w.parentElement!==null&&w.parentElement.removeChild(w)}function L(w,b,I){var C=I===0?w.children[0]:w.children[I-1].nextSibling;w.insertBefore(b,C)}var N=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function W(w){var b=Object.create(null);return function(C){var j=b[C];return j||(b[C]=w(C))}}var D=/-(\w)/g,P=W(function(w){return w.replace(D,function(b,I){return I.toUpperCase()})});t("5db7"),t("73d9");var Y=["Start","Add","Remove","Update","End"],F=["Choose","Unchoose","Sort","Filter","Clone"],H=["Move"],ne=[H,Y,F].flatMap(function(w){return w}).map(function(w){return"on".concat(w)}),ae={manage:H,manageAndEmit:Y,emit:F};function xe(w){return ne.indexOf(w)!==-1}t("caad"),t("2ca0");var fe=["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 de(w){return fe.includes(w)}function Ae(w){return["transition-group","TransitionGroup"].includes(w)}function Se(w){return["id","class","role","style"].includes(w)||w.startsWith("data-")||w.startsWith("aria-")||w.startsWith("on")}function me(w){return w.reduce(function(b,I){var C=y(I,2),j=C[0],X=C[1];return b[j]=X,b},{})}function ie(w){var b=w.$attrs,I=w.componentData,C=I===void 0?{}:I,j=me(Object.entries(b).filter(function(X){var J=y(X,2),re=J[0];return J[1],Se(re)}));return o(o({},j),C)}function ue(w){var b=w.$attrs,I=w.callBackBuilder,C=me(Me(b));Object.entries(I).forEach(function(X){var J=y(X,2),re=J[0],ge=J[1];ae[re].forEach(function(Q){C["on".concat(Q)]=ge(Q)})});var j="[data-draggable]".concat(C.draggable||"");return o(o({},C),{},{draggable:j})}function Me(w){return Object.entries(w).filter(function(b){var I=y(b,2),C=I[0];return I[1],!Se(C)}).map(function(b){var I=y(b,2),C=I[0],j=I[1];return[P(C),j]}).filter(function(b){var I=y(b,2),C=I[0];return I[1],!xe(C)})}t("c740");function Ce(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function rt(w,b){for(var I=0;I<b.length;I++){var C=b[I];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(w,C.key,C)}}function pt(w,b,I){return b&&rt(w.prototype,b),I&&rt(w,I),w}var st=function(b){var I=b.el;return I},be=function(b,I){return b.__draggable_context=I},we=function(b){return b.__draggable_context},ht=function(){function w(b){var I=b.nodes,C=I.header,j=I.default,X=I.footer,J=b.root,re=b.realList;Ce(this,w),this.defaultNodes=j,this.children=[].concat(O(C),O(j),O(X)),this.externalComponent=J.externalComponent,this.rootTransition=J.transition,this.tag=J.tag,this.realList=re}return pt(w,[{key:"render",value:function(I,C){var j=this.tag,X=this.children,J=this._isRootComponent,re=J?{default:function(){return X}}:X;return I(j,C,re)}},{key:"updated",value:function(){var I=this.defaultNodes,C=this.realList;I.forEach(function(j,X){be(st(j),{element:C[X],index:X})})}},{key:"getUnderlyingVm",value:function(I){return we(I)}},{key:"getVmIndexFromDomIndex",value:function(I,C){var j=this.defaultNodes,X=j.length,J=C.children,re=J.item(I);if(re===null)return X;var ge=we(re);if(ge)return ge.index;if(X===0)return 0;var Q=st(j[0]),G=O(J).findIndex(function(V){return V===Q});return I<G?0:X}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),w}(),Ze=t("8bbf");function ke(w,b){var I=w[b];return I?I():[]}function rn(w){var b=w.$slots,I=w.realList,C=w.getKey,j=I||[],X=["header","footer"].map(function(V){return ke(b,V)}),J=y(X,2),re=J[0],ge=J[1],Q=b.item;if(!Q)throw new Error("draggable element must have an item slot");var G=j.flatMap(function(V,q){return Q({element:V,index:q}).map(function(ee){return ee.key=C(V),ee.props=o(o({},ee.props||{}),{},{"data-draggable":!0}),ee})});if(G.length!==j.length)throw new Error("Item slot must have only one child");return{header:re,footer:ge,default:G}}function Cn(w){var b=Ae(w),I=!de(w)&&!b;return{transition:b,externalComponent:I,tag:I?Object(Ze.resolveComponent)(w):b?Ze.TransitionGroup:w}}function Ve(w){var b=w.$slots,I=w.tag,C=w.realList,j=w.getKey,X=rn({$slots:b,realList:C,getKey:j}),J=Cn(I);return new ht({nodes:X,root:J,realList:C})}function lt(w,b){var I=this;Object(Ze.nextTick)(function(){return I.$emit(w.toLowerCase(),b)})}function xt(w){var b=this;return function(I,C){if(b.realList!==null)return b["onDrag".concat(w)](I,C)}}function Ft(w){var b=this,I=xt.call(this,w);return function(C,j){I.call(b,C,j),lt.call(b,w,C)}}var Mt=null,Nt={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(b){return b}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Bt=["update:modelValue","change"].concat(O([].concat(O(ae.manageAndEmit),O(ae.emit)).map(function(w){return w.toLowerCase()}))),jt=Object(Ze.defineComponent)({name:"draggable",inheritAttrs:!1,props:Nt,emits:Bt,data:function(){return{error:!1}},render:function(){try{this.error=!1;var b=this.$slots,I=this.$attrs,C=this.tag,j=this.componentData,X=this.realList,J=this.getKey,re=Ve({$slots:b,tag:C,realList:X,getKey:J});this.componentStructure=re;var ge=ie({$attrs:I,componentData:j});return re.render(Ze.h,ge)}catch(Q){return this.error=!0,Object(Ze.h)("pre",{style:{color:"red"}},Q.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&N.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var b=this;if(!this.error){var I=this.$attrs,C=this.$el,j=this.componentStructure;j.updated();var X=ue({$attrs:I,callBackBuilder:{manageAndEmit:function(ge){return Ft.call(b,ge)},emit:function(ge){return lt.bind(b,ge)},manage:function(ge){return xt.call(b,ge)}}}),J=C.nodeType===1?C:C.parentElement;this._sortable=new B.a(J,X),this.targetDomElement=J,J.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var b=this.list;return b||this.modelValue},getKey:function(){var b=this.itemKey;return typeof b=="function"?b:function(I){return I[b]}}},watch:{$attrs:{handler:function(b){var I=this._sortable;I&&Me(b).forEach(function(C){var j=y(C,2),X=j[0],J=j[1];I.option(X,J)})},deep:!0}},methods:{getUnderlyingVm:function(b){return this.componentStructure.getUnderlyingVm(b)||null},getUnderlyingPotencialDraggableComponent:function(b){return b.__draggable_component__},emitChanges:function(b){var I=this;Object(Ze.nextTick)(function(){return I.$emit("change",b)})},alterList:function(b){if(this.list){b(this.list);return}var I=O(this.modelValue);b(I),this.$emit("update:modelValue",I)},spliceList:function(){var b=arguments,I=function(j){return j.splice.apply(j,O(b))};this.alterList(I)},updatePosition:function(b,I){var C=function(X){return X.splice(I,0,X.splice(b,1)[0])};this.alterList(C)},getRelatedContextFromMoveEvent:function(b){var I=b.to,C=b.related,j=this.getUnderlyingPotencialDraggableComponent(I);if(!j)return{component:j};var X=j.realList,J={list:X,component:j};if(I!==C&&X){var re=j.getUnderlyingVm(C)||{};return o(o({},re),J)}return J},getVmIndexFromDomIndex:function(b){return this.componentStructure.getVmIndexFromDomIndex(b,this.targetDomElement)},onDragStart:function(b){this.context=this.getUnderlyingVm(b.item),b.item._underlying_vm_=this.clone(this.context.element),Mt=b.item},onDragAdd:function(b){var I=b.item._underlying_vm_;if(I!==void 0){E(b.item);var C=this.getVmIndexFromDomIndex(b.newIndex);this.spliceList(C,0,I);var j={element:I,newIndex:C};this.emitChanges({added:j})}},onDragRemove:function(b){if(L(this.$el,b.item,b.oldIndex),b.pullMode==="clone"){E(b.clone);return}var I=this.context,C=I.index,j=I.element;this.spliceList(C,1);var X={element:j,oldIndex:C};this.emitChanges({removed:X})},onDragUpdate:function(b){E(b.item),L(b.from,b.item,b.oldIndex);var I=this.context.index,C=this.getVmIndexFromDomIndex(b.newIndex);this.updatePosition(I,C);var j={element:this.context.element,oldIndex:I,newIndex:C};this.emitChanges({moved:j})},computeFutureIndex:function(b,I){if(!b.element)return 0;var C=O(I.to.children).filter(function(re){return re.style.display!=="none"}),j=C.indexOf(I.related),X=b.component.getVmIndexFromDomIndex(j),J=C.indexOf(Mt)!==-1;return J||!I.willInsertAfter?X:X+1},onDragMove:function(b,I){var C=this.move,j=this.realList;if(!C||!j)return!0;var X=this.getRelatedContextFromMoveEvent(b),J=this.computeFutureIndex(X,b),re=o(o({},this.context),{},{futureIndex:J}),ge=o(o({},b),{},{relatedContext:X,draggedContext:re});return C(ge,I)},onDragEnd:function(){Mt=null}}}),Ut=jt;v.default=Ut},fb6a:function(r,v,t){var f=t("23e7"),u=t("861d"),c=t("e8b5"),p=t("23cb"),e=t("50c4"),o=t("fc6a"),i=t("8418"),d=t("b622"),g=t("1dde"),h=t("ae40"),m=g("slice"),y=h("slice",{ACCESSORS:!0,0:0,1:2}),A=d("species"),x=[].slice,T=Math.max;f({target:"Array",proto:!0,forced:!m||!y},{slice:function(M,B){var E=o(this),L=e(E.length),N=p(M,L),W=p(B===void 0?L:B,L),D,P,Y;if(c(E)&&(D=E.constructor,typeof D=="function"&&(D===Array||c(D.prototype))?D=void 0:u(D)&&(D=D[A],D===null&&(D=void 0)),D===Array||D===void 0))return x.call(E,N,W);for(P=new(D===void 0?Array:D)(T(W-N,0)),Y=0;N<W;N++,Y++)N in E&&i(P,Y,E[N]);return P.length=Y,P}})},fc6a:function(r,v,t){var f=t("44ad"),u=t("1d80");r.exports=function(c){return f(u(c))}},fdbc:function(r,v){r.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(r,v,t){var f=t("4930");r.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Tr);var li=Tr.exports;const ui=pr(li),ci="_unitSubject_1igih_1",fi="_unitAnswers_1igih_10",di="_unitAnswer_1igih_10",vi="_option_1igih_22",pi="_value_1igih_25",hi="_valueAudio_1igih_34",gi="_active_1igih_37",mi="_answerContent_1igih_41",yi="_answerChoice_1igih_45",Ai="_sortReset_1igih_54",Si="_tips_1igih_62",xi="_itemsContainer_1igih_75",bi="_items_1igih_75",wi="_imgs_1igih_81",Ie={unitSubject:ci,unitAnswers:fi,unitAnswer:di,option:vi,value:pi,valueAudio:hi,active:gi,answerContent:mi,answerChoice:yi,sortReset:Ai,tips:Si,itemsContainer:xi,items:bi,imgs:wi},Ei=He({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:l,slots:n}){const a=en({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]}),r=()=>{const u=a.list||[],c=[];u.forEach((p,e)=>{c.push({answerId:p.answerId,answer:p.answer,answerExtra:e+1})}),l("update:value",c)},v=u=>{if(u.checked||s.readOnly)return;const c=[];a.options.forEach((p,e)=>{c.push({answerId:p.index,answer:p.leftValue,answerExtra:e+1})}),c.push({answerId:u.examinationQuestionAnswerId,answer:u.questionAnswer,answerExtra:a.list.length+1}),a.list.push({answerId:u.examinationQuestionAnswerId,answer:u.questionAnswer,answerExtra:a.list.length+1}),l("update:value",c),Dt(()=>{f()})},t=Pt(()=>{const u=s.data.answers||[],c=s.value||[];return u.forEach(p=>{const e=c.findIndex(o=>o.answerId===p.examinationQuestionAnswerId);p.checked=e!==-1}),u}),f=()=>{const u=s.data.answers||[],c=s.data.userAnswer||[];Dt(()=>{if(c.length>0){const p=[];c.forEach((e,o)=>{const i=u.find(h=>e.answerId===h.examinationQuestionAnswerId),d=u.find(h=>e.answerExtra==h.questionExtra),g={itemIndex:o,index:e.answerId,leftValue:e.answer,rightValue:e.answerExtra,leftType:i&&i.questionAnswerTypeCode||"TXT",rightType:i&&i.questionExtraTypeCode||"TXT",rightIndex:d?d.examinationQuestionAnswerId:""};p.push(g)}),a.options=p}console.log(s.data,"data")})};return Zr(()=>a.options,()=>{const u=a.options||[],c=[];u.forEach((p,e)=>{c.push({answerId:p.index,answer:p.leftValue,answerExtra:e+1})}),l("update:value",c)}),En(()=>{console.log(s.data,"mounted",a.options),f()}),()=>S(tt,null,[S("div",{class:Ie.unitSubject},[n.title&&n.title(),S(Tn,{index:s.index,name:s.data.name,showRate:s.showRate,score:s.data.totalScore,answerType:Fe.SORT,extra:{rightRate:s.data.rightRate,questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls}},null),S("div",{class:[Ie.unitAnswers]},[t.value.map((u,c)=>S("div",{class:[Ie.unitAnswer,u.checked&&Ie.active],onClick:()=>v(u)},[S("div",{class:Ie.answerContent},[S("span",{class:Ie.option},[xr[c+1],Z(".")]),u.questionAnswerTypeCode===je.IMAGE&&S("div",{class:Ie.value},[S(qe,{src:u.questionAnswer},null)]),u.questionAnswerTypeCode===je.TXT&&S("div",{class:Ie.value},[u.questionAnswer])])])),S("div",{class:[Ie.sortReset,"van-hairline--top"]},[S("span",{class:Ie.tips},[Z("请长按拖拽答案进行排序")]),S(Rt,{type:"primary",round:!0,disabled:s.readOnly,onClick:()=>{a.options=[],a.list=[],r(),f()}},{default:()=>[Z("重置")]})]),s.readOnly?a.options.map(u=>S("div",{class:Ie.itemsContainer},[u.leftType===je.TXT&&S(Yn,{class:[Ie.items],"data-id":u.itemIndex},{default:()=>[u.leftValue]}),u.leftType===je.IMAGE&&S(qe,{src:u.leftValue,"data-id":u.itemIndex,class:[Ie.imgs,"van-hairline--surround"],fit:"cover"},null)])):S(ui,{modelValue:a.options,"onUpdate:modelValue":u=>a.options=u,itemKey:"itemIndex",componentData:{itemKey:"id",tag:"div",animation:200,group:"description"}},{item:u=>{const c=u.element;return S("div",{class:Ie.itemsContainer},[c.leftType===je.TXT&&S(Yn,{class:[Ie.items],"data-id":c.itemIndex},{default:()=>[c.leftValue]}),c.leftType===je.IMAGE&&S(qe,{src:c.leftValue,"data-id":c.itemIndex,class:[Ie.imgs,"van-hairline--surround"],fit:"cover"},null)])}})])]),s.showAnalysis&&S(In,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),Ti="_unitSubject_4o8nc_1",Ii="_unitAnswers_4o8nc_10",Oi="_answerItem_4o8nc_15",Ci="_img_4o8nc_26",Di="_unitItem_4o8nc_29",Pi="_active_4o8nc_45",Ri="_canvasSection_4o8nc_49",Li="_resetBtnGroup_4o8nc_54",ze={unitSubject:Ti,unitAnswers:Ii,answerItem:Oi,img:Ci,unitItem:Di,active:Pi,canvasSection:Ri,resetBtnGroup:Li},Fi=He({name:"keep-look-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0})}},emits:["update:value"],setup(s,{emit:l,slots:n}){const a=yr(),r=en({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),v=(i,d)=>{if(s.readOnly)return;r.options.forEach(h=>{!h.leftLocked&&d.index!==h.index&&(h.left=!1)});const g=f(d.index,"left");if(g.status)r.options.forEach(h=>{h.rightLocked||(h.right=!1)}),r.selectItem=[],r.drawLineList.splice(g.selectIndex,1),c(a.value),r.options.forEach(h=>{g.selectOption.leftIndex===h.index&&(h.left=!1,h.leftLocked=!1),g.selectOption.rightIndex===h.index&&(h.right=!1,h.rightLocked=!1)});else if(d.left=!d.left,d.left?r.selectItem[0]={index:d.index}:r.selectItem[0]=null,r.selectItem[0]&&r.selectItem[1]){const h=u();r.drawLineList.push(h),r.selectItem=[],c(a.value)}e()},t=(i,d)=>{if(s.readOnly)return;r.options.forEach(h=>{!h.rightLocked&&d.index!==h.index&&(h.right=!1)});const g=f(d.index,"right");if(g.status)r.options.forEach(h=>{h.leftLocked||(h.left=!1)}),r.selectItem=[],r.drawLineList.splice(g.selectIndex,1),c(a.value),r.options.forEach(h=>{g.selectOption.leftIndex===h.index&&(h.left=!1,h.leftLocked=!1),g.selectOption.rightIndex===h.index&&(h.right=!1,h.rightLocked=!1)});else if(d.right=!d.right,d.right?r.selectItem[1]={index:d.index}:r.selectItem[1]=null,r.selectItem[0]&&r.selectItem[1]){const h=u();r.drawLineList.push(h),r.selectItem=[],c(a.value)}e()},f=(i,d="left")=>{const g=r.drawLineList||[];let h=!1,m=0,y={};return g.forEach((A,x)=>{(A.leftIndex===i&&d==="left"||A.rightIndex===i&&d==="right")&&(y=A,h=!0,m=x)}),{status:h,selectIndex:m,selectOption:y}},u=()=>{const i=yt(a.value),d=r.selectItem[0],g=yt(document.getElementById(d.index+"-left"));g.index=d.index;const h=r.selectItem[1],m=yt(document.getElementById(h.index+"-right"));m.index=h.index,console.log(r.selectItem,g,m);const y={x:g.width,y:g.top+g.height/2-i.top},A={x:m.left-i.left,y:m.top+m.height/2-i.top};return r.options.forEach(x=>{x.index===g.index&&(x.leftLocked=!0),x.index===m.index&&(x.rightLocked=!0)}),{startPoint:y,endPoint:A,leftIndex:g.index,rightIndex:m.index}},c=i=>{if(i.getContext){const d=i.getContext("2d");d.clearRect(0,0,r.answerRect.width*r.dpr||0,r.answerRect.height*r.dpr||0),r.drawLineList.forEach(g=>{p(d,g.startPoint,g.endPoint)})}},p=(i,d,g)=>{i.beginPath(),i.moveTo(Math.floor(d.x-1)*r.dpr,Math.ceil(d.y)*r.dpr),i.lineTo(Math.ceil(g.x+1)*r.dpr,Math.ceil(g.y)*r.dpr),i.lineWidth=2*r.dpr,i.strokeStyle="#1CACF1",i.stroke()},e=()=>{const i=r.options||[],d=r.drawLineList||[],g=[];d.forEach(h=>{const m=i.find(A=>A.index===h.leftIndex),y=i.find(A=>A.index===h.rightIndex);g.push({answerId:m.index,answer:m.leftValue,answerExtra:y.rightValue})}),l("update:value",g)},o=()=>{const i=s.data.answers||[],d=s.data.userAnswer||[];i.forEach(g=>{const h={index:g.examinationQuestionAnswerId,leftValue:g.questionAnswer,rightValue:g.questionExtra,leftType:g.questionAnswerTypeCode||"TXT",rightType:g.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};r.options.push(h)}),d.forEach(g=>{const h={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};r.options.forEach(m=>{m.index===g.answerId&&(m.left=!0,m.leftLocked=!0,h.leftIndex=m.index),m.rightValue===g.answerExtra&&(m.right=!0,m.leftLocked=!0,h.rightIndex=m.index)}),r.drawLineList.push(h)}),Dt(()=>{r.drawLineList.forEach(g=>{r.selectItem=[];const h=yt(document.getElementById(g.leftIndex+"-left"));h.index=g.leftIndex,r.selectItem[0]=h;const m=yt(document.getElementById(g.rightIndex+"-right"));m.index=g.rightIndex,r.selectItem[1]=m;const y=u();g.endPoint=y.endPoint,g.startPoint=y.startPoint,r.selectItem=[]}),setTimeout(()=>{c(a.value)},100)})};return En(()=>{o(),Dt(()=>{const i=document.getElementById(r.answerDomId),d=yt(i);r.answerRect=d;const g=window.devicePixelRatio;r.dpr=g})}),()=>S(tt,null,[S("div",{class:ze.unitSubject},[n.title&&n.title(),S(Tn,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:Fe.LINK,extra:{questionDetail:s.data.questionDetail,mediaUrls:s.data.mediaUrls,rightRate:s.data.rightRate}},null),S("div",{class:[ze.unitAnswers],id:r.answerDomId},[S("canvas",{ref:a,class:ze.canvasSection,width:r.answerRect.width*r.dpr||0,height:r.answerRect.height*r.dpr||0,style:{width:(r.answerRect.width||0)+"px",height:(r.answerRect.height||0)+"px"}},null),r.options.map(i=>S("div",{class:ze.answerItem},[S("div",{class:[ze.unitItem,i.left&&ze.active],id:i.index+"-left",onClick:d=>v(d,i)},[i.leftType===je.TXT&&i.leftValue,i.leftType===je.IMAGE&&S(qe,{src:i.leftValue,class:ze.img},null)]),S("div",{class:[ze.unitItem,i.right&&ze.active],id:i.index+"-right",onClick:d=>t(d,i)},[i.rightType===je.TXT&&i.rightValue,i.rightType===je.IMAGE&&S(qe,{src:i.rightValue,class:ze.img},null)])]))]),S("div",{class:ze.resetBtnGroup},[S(Rt,{round:!0,type:"primary",disabled:s.readOnly,onClick:()=>{r.drawLineList=[],c(a.value),r.options.forEach(i=>{i.left=!1,i.right=!1,i.leftLocked=!1,i.rightLocked=!1}),r.selectItem=[],e()}},{default:()=>[Z("重置")]})])]),s.showAnalysis&&S(In,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult},null)])}}),Mi="_unitSubject_1j7w8_1",Ni="_unitAnswers_1j7w8_10",Bi="_playSection_1j7w8_14",ji="_img_1j7w8_19",Ui="_playTitle_1j7w8_24",Gi="_playBtn_1j7w8_29",Hi="_unitScoreNum_1j7w8_37",Vi="_score_1j7w8_42",Ki="_scoreTitle_1j7w8_47",Yi="_scoreTips_1j7w8_53",$e={unitSubject:Mi,unitAnswers:Ni,playSection:Bi,img:ji,playTitle:Ui,playBtn:Gi,unitScoreNum:Hi,score:Vi,scoreTitle:Ki,scoreTips:Yi},Xi=""+new URL("icon-song-c2cb716c.png",import.meta.url).href,Wi=He({name:"choice-question",props:{value:{type:Array,default:()=>[]},index:{type:Number,default:1},data:{type:Object,default:()=>({})},unitId:{type:String,default:""},readOnly:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:()=>({message:"",topic:!1,userResult:!0,score:0})}},emits:["update:value"],setup(s,{emit:l,slots:n}){console.log(s,"props");const a=en({list:[],score:0}),r=Pt(()=>s.data.questionExtendsInfo?JSON.parse(s.data.questionExtendsInfo):""),v=()=>{const t=r.value;t&&(console.log(s.unitId),kr({api:"openAccompanyWebView",content:{url:`${location.origin}/orchestra-music-score/?id=${t.musicSheetId}&modelType=evaluation&unitId=${s.unitId}&questionId=${s.data.id}`,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),$r("webViewOnResume",()=>{var f,u;if(qr().android){const c=window.ORCHESTRA||((u=(f=window.webkit)==null?void 0:f.messageHandlers)==null?void 0:u.ORCHESTRA);console.log(c,"-------------");const p=c.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",p);const e=p?JSON.parse(p):{};if(e.questionId===s.data.id){const o=e.score||0;a.score<o&&(a.score=e.score||0),Pn({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}l("update:value",[{answerId:"",answer:a.score,answerExtra:""}]),qn("webViewOnResume",()=>{})}else Pn({api:"getCache",content:{key:"h5-orchestra-unit"}}).then(c=>{const p=c.content;if(p.value){console.log("🚀 ~ listenerMessage ~ content.value",p.value,"---------------");const e=p.value?JSON.parse(p.value):{};if(console.log("🚀 ~ listenerMessage ~ result",e,s.data.questionId),e.questionId===s.data.id){const o=e.score||0;a.score<o&&(a.score=e.score||0)}l("update:value",[{answerId:"",answer:a.score,answerExtra:""}]),Pn({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}qn("webViewOnResume",()=>{})})}))};return En(()=>{const t=s.value||[];t.length>0&&(a.score=t[0].answer)}),()=>S(tt,null,[S("div",{class:$e.unitSubject},[n.title&&n.title(),S(Tn,{index:s.index,name:s.data.name,score:s.data.totalScore,showRate:s.showRate,answerType:Fe.PLAY,extra:{questionDetail:s.data.questionDetail,mediaUrls:"",rightRate:s.data.rightRate}},null),S("div",{class:[$e.unitAnswers]},[r.value&&S(oo,{class:$e.playSection,center:!0,titleClass:["van-ellipsis",$e.playTitle]},{icon:()=>S(qe,{class:$e.img,src:Xi},null),title:()=>S(tt,null,[r.value.musicName]),value:()=>S(Rt,{round:!0,class:$e.playBtn,type:"primary",onClick:v,disabled:s.readOnly},{default:()=>[Z("点击评测"),S(vt,{name:"play"},null)]})}),(!s.readOnly||s.showScore)&&S("div",{class:["van-hairline--top",$e.unitScoreNum]},[S("div",{class:$e.score},[a.score]),S("div",{class:$e.scoreTitle},[Z("评测分数")]),!s.showScore&&S("div",{class:$e.scoreTips},[Z("多次评测取完整评测的最高分数")])])])]),s.showAnalysis&&S(In,{answerAnalysis:s.analysis.message,topic:s.analysis.topic,userResult:s.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])}}),Qi="_popupResult_1smys_1",zi="_resultTitle_1smys_6",_i="_titleImg_1smys_15",Ji="_result_1smys_6",Zi="_yes_1smys_29",ki="_no_1smys_33",$i="_resultContent_1smys_36",Xt={popupResult:Qi,resultTitle:zi,titleImg:_i,result:Ji,yes:Zi,no:ki,resultContent:$i},qi=He({name:"result-mode",props:{confirmButtonText:{type:String,default:"我知道了"},answerAnalysis:{type:String,default:""},questionTypeCode:{type:String,default:""}},emits:["close","conform"],setup(s,{emit:l}){return()=>S("div",{class:Xt.popupResult},[S("div",{class:Xt.resultTitle},[S(qe,{src:Er,class:Xt.titleImg},null),s.questionTypeCode==="PLAY"?"不合格!":"回答错误!"]),S("div",{class:Xt.resultContent},[S("span",null,[Z("答案解析:")]),s.answerAnalysis]),S(Rt,{type:"primary",round:!0,class:Xt.btn,block:!0,onClick:()=>{l("conform"),l("close")}},{default:()=>[s.confirmButtonText]})])}}),es="_finishResult_1jfdh_1",ts="_finishContainer_1jfdh_5",ns="_finishContent_1jfdh_10",rs="_scoreNums_1jfdh_14",os="_scoreName_1jfdh_24",as="_scoreResult_1jfdh_33",is="_finishFail_1jfdh_38",ss="_finishPractice_1jfdh_43",ls="_finishBtnGroup_1jfdh_48",us="_finishLeft_1jfdh_54",cs="_finishRight_1jfdh_55",_e={finishResult:es,finishContainer:ts,finishContent:ns,scoreNums:rs,scoreName:os,scoreResult:as,finishFail:is,finishPractice:ss,finishBtnGroup:ls,finishLeft:us,finishRight:cs},fs=He({name:"result-mode",props:{confirmButtonText:{type:String,default:"去练习"},cancelButtonText:{type:String,default:"我知道了"},status:{type:String,default:"SUCCESS"},result:{type:Object,default:()=>({tips:"恭喜你,测验通过!",score:0,examName:""})}},emits:["close","conform"],setup(s,{slots:l,emit:n}){return()=>S("div",{class:[_e.finishResult,s.status==="FAIL"&&_e.finishFail,s.status==="PRACTICE"&&_e.finishPractice]},[S("div",{class:_e.finishContainer},[S("div",{class:_e.finishContent},[l.content?l.content():S(tt,null,[S("div",{class:_e.scoreNums},[s.result.score,S("span",null,[Z("分")])]),S("div",{class:_e.scoreName},[s.result.examName]),S("div",{class:_e.scoreResult},[s.result.tips])])])]),S("div",{class:_e.finishBtnGroup},[S("div",{class:_e.finishLeft,onClick:()=>n("close")},[s.cancelButtonText]),S("div",{class:_e.finishRight,onClick:()=>n("conform")},[s.confirmButtonText])])])}});function ds(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!gr(s)}const bs=He({name:"unit-detail",setup(){const s=eo(),l=to(),n=yr(),a=en({lessonCoursewareId:s.query.lessonCoursewareId,background:"transparent",color:"#fff",visiableError:!1,visiableAnswer:!1,visiableResult:!1,id:s.query.id,currentIndex:0,questionList:[],visiableSure:!1,resultInfo:{},resultStatusType:"SUCCESS",visiableExam:!1,nextStatus:!1,swipeHeight:"auto",answerAnalysis:"",questionTypeCode:"",overResult:{time:"00:00",questionLength:0,errorLength:0,rate:0},quitStatus:!1,dialogMessage:"",dialogStatus:!1}),{counter:r,resume:v,pause:t}=ao(1e3,{controls:!0}),f=async()=>{try{const{data:m}=await er.post("/edu-app/studentUnitExamination/queryPracticeModeExam",{data:{lessonCoursewareId:a.lessonCoursewareId}}),y=m||[];y.examinationQuestionAdds.forEach(A=>{A.showAnalysis=!1,A.analysis={message:A.answerAnalysis,topic:!0,userResult:!1},A.userAnswer=[]}),a.questionList=y.examinationQuestionAdds||[],console.log(a.questionList)}catch(m){}},u=async()=>{var m;try{const y=a.questionList||[];let A={};y.forEach((T,O)=>{O===a.currentIndex&&(A={questionId:T.id,details:T.userAnswer||[]})});const{data:x}=await er.post("/edu-app/studentUnitExamination/submitTrainingAnswer",{hideLoading:!0,data:A});if(y.forEach((T,O)=>{O===a.currentIndex&&(a.answerAnalysis=T.answerAnalysis,a.questionTypeCode=T.questionTypeCode,T.showAnalysis=!0,T.analysis.userResult=x)}),a.questionList.length===a.currentIndex+1){Ot.emit("unitAudioStop"),a.visiableSure=!0;return}x?(m=n.value)==null||m.next():a.visiableError=!0}catch(y){}},c=Pt(()=>{const m=a.questionList||[];let y=0,A=0,x=0;return m.forEach(T=>{T.showAnalysis&&(y+=1,T.analysis.userResult?A+=1:x+=1)}),{count:y,passCount:A,noPassCount:x}});let p=0;const e=(m=!0)=>{Dt(()=>{m&&window.scrollTo(0,0),setTimeout(()=>{var O;const y=(O=document.querySelectorAll(".van-swipe-item")[a.currentIndex])==null?void 0:O.querySelector(".swipe-item-question"),A=y==null?void 0:y.querySelectorAll(".answerTitleImg img");let x=!0;A==null||A.forEach(M=>{console.log(M.complete),M.complete||(x=!1)}),!x&&p<3&&setTimeout(()=>{p+=1,e(m)},300),x&&(p=0);const T=yt(y);a.swipeHeight=T.height},100)})},o=()=>{const m=c.value;let y=0;m.count>0&&(y=Math.floor(m.passCount/m.count*100));const A=r.value,x=Math.floor(A/60)>=10?Math.floor(A/60):"0"+Math.floor(A/60),T=A%60>=10?A%60:"0"+A%60;a.overResult={time:x+":"+T,questionLength:m.count,errorLength:m.noPassCount,rate:y},t(),r.value=0,a.visiableResult=!0},i=async()=>{a.questionList=[],await f(),setTimeout(async()=>{var m;(m=n.value)==null||m.swipeTo(0,{immediate:!0}),a.swipeHeight="auto",a.answerAnalysis="",a.overResult={time:"00:00",questionLength:0,errorLength:0,rate:0},a.visiableResult=!1,v(),e()},100)},d=()=>{},g=()=>{a.quitStatus=!0,Ot.emit("unitAudioStop")},h=()=>{window.removeEventListener("popstate",g,!1),l.back()};return En(async()=>{if(io(document,"scroll",()=>{const{y:m}=so();m.value>52?(a.background="#fff",a.color="#323333"):(a.background="transparent",a.color="#fff")}),await f(),e(),!no.user.data.vipMember){t(),a.dialogStatus=!0,a.dialogMessage="您暂未开通团练宝,请开通后使用";return}}),hr(()=>{Ot.emit("unitAudioStop")}),()=>{let m;return S("div",{class:te.unitDetail},[S(tr,{position:"top"},{default:()=>[S(ro,{border:!1,background:a.background,color:a.color},null)]}),S(lo,{loop:!1,showIndicators:!1,ref:n,duration:300,touchable:!1,class:te.unitSwipe,style:{paddingBottom:"12px"},lazyRender:!0,height:a.swipeHeight,onChange:y=>{Ot.emit("unitAudioStop"),a.currentIndex=y,e()}},ds(m=a.questionList.map((y,A)=>S(uo,null,{default:()=>[S("div",{class:"swipe-item-question"},[y.questionTypeCode===Fe.RADIO&&S(nr,{value:y.userAnswer,"onUpdate:value":x=>y.userAnswer=x,index:A+1,data:y,type:"radio",showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>S("div",{class:te.questionTitle},[S("div",{class:te.questionNum},[S("span",null,[a.currentIndex+1]),Z("/"),a.questionList.length]),S("div",{class:te.questionType},[S("i",null,null),Z("音及音高")])])}),y.questionTypeCode===Fe.CHECKBOX&&S(nr,{value:y.userAnswer,"onUpdate:value":x=>y.userAnswer=x,index:A+1,data:y,type:"checkbox",showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>S("div",{class:te.questionTitle},[S("div",{class:te.questionNum},[S("span",null,[a.currentIndex+1]),Z("/"),a.questionList.length]),S("div",{class:te.questionType},[S("i",null,null),Z("音及音高")])])}),y.questionTypeCode===Fe.SORT&&S(Ei,{value:y.userAnswer,"onUpdate:value":[x=>y.userAnswer=x,()=>{const x=!(y.userAnswer&&y.userAnswer.length>0);e(x)}],data:y,index:A+1,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>S("div",{class:te.questionTitle},[S("div",{class:te.questionNum},[S("span",null,[a.currentIndex+1]),Z("/"),a.questionList.length]),S("div",{class:te.questionType},[S("i",null,null),Z("音及音高")])])}),y.questionTypeCode===Fe.LINK&&S(Fi,{value:y.userAnswer,"onUpdate:value":x=>y.userAnswer=x,data:y,index:A+1,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>S("div",{class:te.questionTitle},[S("div",{class:te.questionNum},[S("span",null,[a.currentIndex+1]),Z("/"),a.questionList.length]),S("div",{class:te.questionType},[S("i",null,null),Z("音及音高")])])}),y.questionTypeCode===Fe.PLAY&&S(Wi,{value:y.userAnswer,"onUpdate:value":x=>y.userAnswer=x,data:y,index:A+1,unitId:a.id,showAnalysis:y.showAnalysis,analysis:y.analysis},{title:()=>S("div",{class:te.questionTitle},[S("div",{class:te.questionNum},[S("span",null,[a.currentIndex+1]),Z("/"),a.questionList.length]),S("div",{class:te.questionType},[S("i",null,null),Z("音及音高")])])})])]})))?m:{default:()=>[m]}),S(tr,{position:"bottom"},{default:()=>[S("div",{class:["btnGroup btnMore",te.btnSection]},[S(Rt,{round:!0,block:!0,class:a.currentIndex>0?te.activePrevBtn:te.prevBtn,disabled:!(a.currentIndex>0),onClick:()=>{var y;(y=n.value)==null||y.prev()}},{default:()=>[Z("上一题")]}),S(Rt,{block:!0,round:!0,class:te.nextBtn,onClick:u,loading:a.nextStatus,disabled:a.nextStatus},{default:()=>[a.questionList.length===a.currentIndex+1?"提交":"下一题"]}),S(qe,{src:Lo,class:[te.wapList,"van-haptics-feedback"],onClick:()=>a.visiableAnswer=!0},null)])]}),S(ho,{show:a.visiableAnswer,"onUpdate:show":y=>a.visiableAnswer=y,title:"题目列表",safeAreaInsetBottom:!0},{default:()=>[S(wa,{value:a.questionList,lookType:"PRACTICE",onSelect:y=>{var A;(A=n.value)==null||A.swipeTo(y,{immediate:!0}),a.visiableAnswer=!1}},null)]}),S(Kn,{show:a.visiableError,"onUpdate:show":y=>a.visiableError=y,style:{width:"90%"},round:!0,closeOnClickOverlay:!1},{default:()=>[S(qi,{onClose:()=>a.visiableError=!1,answerAnalysis:a.answerAnalysis,questionTypeCode:a.questionTypeCode,onConform:()=>{var y;(y=n.value)==null||y.next(),a.answerAnalysis=""}},null)]}),S(Kn,{show:a.visiableResult,"onUpdate:show":y=>a.visiableResult=y,closeOnClickOverlay:!1,style:{background:"transparent",width:"96%"}},{default:()=>[S(fs,{status:"PRACTICE",confirmButtonText:"下一个考点",cancelButtonText:"继续练习本考点",onClose:i,onConform:d},{content:()=>S("div",{class:te.practiceResult},[S("div",{class:te.practiceTitle},[Z("本次练习正确率")]),S("div",{class:te.practiceRate},[a.overResult.rate,Z("%")]),S(Ar,{border:!1,columnNum:3},{default:()=>[S(vn,null,{default:()=>[S("p",{class:te.title},[a.overResult.time]),S("p",{class:te.name},[Z("练习时长")])]}),S(vn,null,{default:()=>[S("p",{class:[te.title]},[a.overResult.questionLength|0]),S("p",{class:te.name},[Z("答题数")])]}),S(vn,null,{default:()=>[S("p",{class:te.title},[a.overResult.errorLength|0]),S("p",{class:te.name},[Z("错题数")])]})]}),a.overResult.rate>=100?S("div",{class:te.practiceTips},[Z("你真棒!"),S("br",null,null),Z("本知识点你已经完全掌握啦!")]):S("div",{class:te.practiceTips},[Z("继续努力!"),S("br",null,null),Z("争取在测验中获得高分!")])])})]}),S(Rn,{show:a.visiableSure,"onUpdate:show":y=>a.visiableSure=y,title:"练习完成",message:"确认本次练习的题目都完成了吗?",messageAlign:"left",showCancelButton:!0,cancelButtonText:"再等等",confirmButtonText:"确认完成",onConfirm:o},null),S(Rn,{show:a.quitStatus,"onUpdate:show":y=>a.quitStatus=y,title:"提示",message:"您是否退出本次练习?",showCancelButton:!0,cancelButtonText:"取消",onCancel:()=>{window.history.pushState(null,"",document.URL),window.addEventListener("popstate",g,!1)},confirmButtonText:"确认退出",onConfirm:h},null),S(Rn,{message:a.dialogMessage,show:a.dialogStatus,"onUpdate:show":y=>a.dialogStatus=y,showCancelButton:!0,cancelButtonText:"返回",onCancel:()=>{l.back()},confirmButtonText:"立即开通",onConfirm:()=>{l.push("/memberCenter")}},null)])}}});export{bs as default};