12345678910111213141516171819202122232425262728293031323334353637 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r=document.createElement("style");r.innerHTML="._unitSubjectTitle_1x5pg_1{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitSubjectTitle_1x5pg_1 ._unitScore_1x5pg_7{color:#777}._unitSubjectTitle_1x5pg_1 .van-tag{vertical-align:middle;margin-top:-.08rem}._unitDetail_1x5pg_14{padding-top:.53333rem;padding-bottom:.26667rem;font-size:.37333rem}._unitDetail_1x5pg_14 img,._unitDetail_1x5pg_14 video{width:100%}._unitTitleImg_1x5pg_23{width:100%}._unitTitleRate_1x5pg_26{display:flex;align-items:center;justify-content:flex-end;padding-top:.4rem;padding-bottom:.4rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitTitleRate_1x5pg_26 ._icon_1x5pg_37{font-size:.42667rem;margin-right:.16rem}._unitTitleRate_1x5pg_26 ._rate_1x5pg_41{color:#4991eb}._unitAudio_ml4u4_1{position:relative;display:flex}._nativeAudio_ml4u4_5{width:100%;height:1.06667rem}._htmlAudio_ml4u4_9{width:100%;height:1.06667rem;box-sizing:border-box;background:#ff8057;border-radius:.53333rem;padding:0 .32rem;z-index:9;display:flex;align-items:center;justify-content:space-between;color:#fff}._htmlAudio_ml4u4_9 ._htmlTimes_ml4u4_22{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#fff;line-height:.58667rem}._htmlAudio_ml4u4_9 ._iconAudio_ml4u4_31{margin-right:.16rem;font-size:.48rem}._htmlAudio_ml4u4_9 ._audioStatus_ml4u4_35{font-size:.37333rem}._answerAnalysis_1mdns_1 ._analysisResult_1mdns_1{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;padding-bottom:.53333rem}._answerAnalysis_1mdns_1 ._analysisResult_1mdns_1 ._aImg_1mdns_9{font-size:.48rem;margin-right:.16rem}._answerAnalysis_1mdns_1 ._success_1mdns_13{color:#3b8df3}._answerAnalysis_1mdns_1 ._error_1mdns_16{color:#f44541}._answerAnalysis_1mdns_1 ._analysisTitle_1mdns_19{padding-bottom:.26667rem}._answerAnalysis_1mdns_1 ._analysisMessage_1mdns_22{font-size:.4rem;color:#333;line-height:.56rem;text-align:justify;padding-bottom:.13333rem}._unitSubject_1pzvj_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;overflow:hidden;border-radius:.26667rem}._unitSubject_1pzvj_1+._unitSubject_1pzvj_1{margin-top:.32rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._option_1pzvj_23{margin-right:.26667rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26{word-break:break-all}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26 .van-image{height:1.01333rem}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._value_1pzvj_26 .van-image__img{width:auto}._unitAnswers_1pzvj_11 ._unitAnswer_1pzvj_11 ._valueAudio_1pzvj_35{width:4.26667rem}._unitAnswers_1pzvj_11 ._active_1pzvj_38{background-color:#ffebdd;color:#f67146}._unitAnswers_1pzvj_11 ._answerContent_1pzvj_42{display:flex;align-items:center}._unitAnswers_1pzvj_11 ._answerChoice_1pzvj_46{font-size:.42667rem;font-weight:500;line-height:.69333rem}._anserList_1yzxl_1{min-height:20vh;padding:.53333rem 0}._anserList_1yzxl_1 ._status_1yzxl_5{display:flex;align-items:center;padding:0 .53333rem .8rem}._anserList_1yzxl_1 ._status_1yzxl_5 span{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#333}._anserList_1yzxl_1 ._status_1yzxl_5 span+span{margin-left:.8rem}._anserList_1yzxl_1 ._status_1yzxl_5 i{display:inline-block;width:.48rem;height:.48rem;background-color:#eaeaea;border-radius:50%;margin-right:.21333rem}._anserList_1yzxl_1 ._aList_1yzxl_28{margin:0 .26667rem}._anserList_1yzxl_1 ._aList_1yzxl_28 .van-grid-item__content{padding:0 0 .34667rem}._anserList_1yzxl_1 ._aList_1yzxl_28 span{display:inline-flex;align-items:center;justify-content:center;width:1.2rem;height:1.2rem;background:#eaeaea;font-size:.48rem;font-weight:500;color:#777;border-radius:50%}._anserList_1yzxl_1 ._aList_1yzxl_28 ._answered_1yzxl_46{background:#ff8057;color:#fff}._anserList_1yzxl_1 ._aList_1yzxl_28 ._yes_1yzxl_50{background-color:#71b0ff;color:#fff}._anserList_1yzxl_1 ._aList_1yzxl_28 ._no_1yzxl_54{background-color:#ff8486;color:#fff}._unitSubject_1ff9w_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_1ff9w_1+._unitSubject_1ff9w_1{margin-top:.32rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10{margin-top:.4rem;background:#f6f6f6;border-radius:.21333rem;padding:.4rem .32rem;display:flex;align-items:center;justify-content:space-between;font-size:.42667rem;font-weight:500;color:#333}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._option_1ff9w_22{margin-right:.26667rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25{word-break:break-all}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25 .van-image{height:1.01333rem}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._value_1ff9w_25 .van-image__img{width:auto}._unitAnswers_1ff9w_10 ._unitAnswer_1ff9w_10 ._valueAudio_1ff9w_34{width:4.53333rem}._unitAnswers_1ff9w_10 ._active_1ff9w_37{background-color:#ffebdd;color:#f67146}._unitAnswers_1ff9w_10 ._answerContent_1ff9w_41{display:flex;align-items:center}._unitAnswers_1ff9w_10 ._answerChoice_1ff9w_45{font-size:.42667rem;font-weight:500;line-height:.69333rem}._unitAnswers_1ff9w_10 .sortable-ghost{opacity:.5;background:#c8ebfb}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54{display:flex;align-items:center;justify-content:space-between;margin-top:.66667rem;padding-top:.8rem;padding-bottom:.8rem}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54 ._tips_1ff9w_62{font-size:.42667rem;font-weight:500;color:#333;line-height:.69333rem}._unitAnswers_1ff9w_10 ._sortReset_1ff9w_54 .van-button{min-width:2.24rem;height:.82667rem;line-height:.82667rem;font-size:.4rem;font-weight:500}._unitAnswers_1ff9w_10 ._itemsContainer_1ff9w_75{display:inline-block;margin-right:.26667rem;margin-bottom:.21333rem}._unitAnswers_1ff9w_10 ._items_1ff9w_75,._unitAnswers_1ff9w_10 ._imgs_1ff9w_81{min-width:1.49333rem;height:.96rem;font-size:.42667rem;font-weight:500;border-radius:.10667rem;background:#ffebdd;color:#f67146;justify-content:center}._unitAnswers_1ff9w_10 ._imgs_1ff9w_81{height:1.49333rem;width:auto}._unitAnswers_1ff9w_10 ._imgs_1ff9w_81 .van-image__img{width:auto}._unitSubject_cexcs_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_cexcs_1+._unitSubject_cexcs_1{margin-top:.32rem}._unitAnswers_cexcs_10{position:relative;padding-top:.53333rem;padding-bottom:.53333rem}._unitAnswers_cexcs_10 ._answerItem_cexcs_15{position:relative;z-index:2;margin-bottom:.4rem;display:flex;align-items:center;justify-content:space-between}._unitAnswers_cexcs_10 ._answerItem_cexcs_15:last-child{margin-bottom:0}._unitAnswers_cexcs_10 ._img_cexcs_26{width:2.53333rem}._unitAnswers_cexcs_10 ._unitItem_cexcs_29{display:flex;align-items:center;justify-content:center;background:#ffffff;border-radius:.16rem;border:.05333rem solid #d5d5d5;overflow:hidden;height:1.44rem;width:2.53333rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;text-align:center}._unitAnswers_cexcs_10 ._active_cexcs_45{border:.05333rem solid #ff8057;color:#f67146}._canvasSection_cexcs_49{position:absolute;top:0;left:0}._resetBtnGroup_cexcs_54{text-align:right;padding-bottom:.42667rem}._resetBtnGroup_cexcs_54 .van-button{min-width:2.24rem;line-height:.82667rem;height:.82667rem;font-size:.4rem;font-weight:500}._unitSubject_vaiy0_1{padding:.4rem;margin:0 .34667rem;background-color:#fff;border-radius:.26667rem}._unitSubject_vaiy0_1+._unitSubject_vaiy0_1{margin-top:.32rem}._unitAnswers_vaiy0_10{padding-top:.53333rem;padding-bottom:.53333rem}._playSection_vaiy0_14{padding:.4rem .32rem;background:#ffebdd;border-radius:.26667rem}._playSection_vaiy0_14 ._img_vaiy0_19{width:1.2rem;height:1.2rem;margin-right:.32rem}._playSection_vaiy0_14 ._playTitle_vaiy0_24{font-size:.42667rem;font-weight:500;color:#333}._playSection_vaiy0_14 ._playBtn_vaiy0_29{flex-shrink:0;font-size:.4rem;font-weight:500;color:#fff;height:.82667rem;line-height:.82667rem}._unitScoreNum_vaiy0_37{margin-top:.66667rem;padding-top:.53333rem;text-align:center}._unitScoreNum_vaiy0_37 ._score_vaiy0_42{font-size:.85333rem;font-weight:700;color:#f67146}._unitScoreNum_vaiy0_37 ._scoreTitle_vaiy0_47{font-size:.42667rem;font-weight:500;color:#333;padding:.10667rem 0 .26667rem}._unitScoreNum_vaiy0_37 ._scoreTips_vaiy0_53{font-size:.32rem;color:#aaa}\n",document.head.appendChild(r),System.register(["./index-legacy.90c82f08.js","./index-legacy.eb4bc59e.js","./index-legacy.e4343e46.js","./index-legacy.92c1b9d6.js","./index-legacy.f3e5e283.js"],(function(t){"use strict";var r,o,i,a,l,s,u,c,d,f,p,h,m,g,v,_,b,y,w,A,x,S,E,T,D,I,O,C,k,M;return{setters:[function(e){r=e.bN,o=e.ao,i=e.d,a=e.r,l=e.b3,s=e.c,u=e.a5,c=e.q,d=e.y,f=e.F,p=e.al,h=e.bO,m=e.bP,g=e.bC,v=e.$,_=e.Z,b=e.B,y=e._,w=e.R,A=e.an,x=e.e,S=e.bG,E=e.f,T=e.p,D=e.bI},function(e){I=e.I},function(e){O=e.G,C=e.a},function(e){k=e.T},function(e){M=e.C}],execute:function(){t("i","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAABYCAYAAABxlTA0AAAAAXNSR0IArs4c6QAABohJREFUeF7tnd1vVEUUwH+nC/qgIBp8IFGjIjZFeOFBo6AofwGE0C1GIGoEv5DEmECi0CnVBBJjguAHGEgAI10Ikb8ABUUjDzwA0lQ+oyY8QARFExW2x9x7t3W73e7euztTtnvnvjQhc8+c+e0w95wzZ84IDfKoMS1kelvJayvS0oryMOhDwCSECSgTwr/Bo1xDuBb+hasgZxB+Qvv7yEgf+bY+Maa/EYYmN1MJXb/4EbR/Hso8YC5wpyV9rgCHEA4iLQdl3Z4fLclNLGbUAWt3dip5WQK6BHgwsca1vXAOZDcZ3S1rc2drE1HbW6MCWPcuynBKFiPyMsoTwKj0WwaJInyH6qdM1z3Svi9fG7b4bzkdqJpFtyCZZaCrUabGV2sUWgpnQTai+Z1i9v3rqkdngNVkl4K+B3KPK+XtyNVfQd4Wk9tlR95QKdYBq8nOAD4CnnKhsEOZh4HXxORO2uzDGmDdunw8F//oBn0TGG9TyVGUdR3kA6ZMXCsrtl230a8VwGo67gdyoI/aUOrmy5CjQFZMz4V6dakbsHZ1LADdjlqzYesdk533hSsgL0pnz5f1CKwLsJr2d0DW30Szq56xx3lXQdeJ2ftunMbl2tQEWA0tkN0EvF5rx2PsvS2QWyWGxO53YsAF23YXqtkxBqk+dUVyaH5pUps5EeBw5krHF6mDO/DThJB7nk0ykxMCzm5O0bIw0ozfIia3Mu5/h9iACx+07riCm7udro374YsFODTFVPc3sbWQdD4oIgvjmHBVAYdOhOixprNzkyItbR/YySqzqjkjFQEX3N9vm8dDq5fqMMpHmTJxTiW3ujJg07EhDDX6pwIB2SimZ81IDUYEXIiKHRvDgZvRmhZBUGjWSFG4SoAPjcGQ42hBLe3nsJhcsKc47CkLOAqWs/NmaTtG+11WLmg/DHDoCiPBdkqD70Q02s8Q7Izo1FJXejjgro6XUN3WaOqPCX1Elktnz2fFug4BHO7+9rb0NdwG5ZigG7phZ2nrby3erR4K2LQ/F+YP+KcOArpEzN7PB+NDxZLUZI9AmLdg95n+GNzXBuPG2ZVbq7QbN+DnXjj1Q60SRn5POCKduTnDAEcZN5y2Hm94ehHMXWh/IDYkHtoPX++zIWnIPCXDtIEMosElQk2HAe203RtvbYXb7rAu1orAv36H91dYETVUiHSJ6THBvxUBzgY5W/ZzxVZthkl3OxiEBZFXL8Gm2KHdJB2eE5MLM5lCwAW3+EQSCbHbzpgN81+FTCb2K6PSMJ+HAx/DyeCz4+SZGbjPEeCu7EqUD510Ewi9awrcOw0yDZKPkr8Ov5yG3y46GzLCG9KZ2zwwg4O9//nuekul5ANicgskzCyn97LF5OdU0iwz6CvQNlm0O9tGnlOeigMCGaaLmvb5IHWlBzlQrUlE6gLRro7VqG5okhE11jBE1oia7A7g+cbSrFm0kR0B4CDx+MlmGVKDjeObAPBxYGaDKdYs6pwIAJ8HggRqd0+aomlDKV4IAF8CJjujm75oWjHKy6Jd2b9RbnUGOJXRtAJN4R/3gNMZTYsIh4BdLxHpjaYFiMMl4hzKA86WiLRG06IZfN6baU5nFse9o+EW8GFR07Ed9AW3/aRVeuAq+2CPu18/Cvb4cKU7wkG40gfc3fGNAu5+y8gR4WjLKBCuJus3Pe1TjjY9Q8Cut+3TGE0r2bYPqpS4STxJazStpWVGUE7MfepUOqNpQ1OnonXYUfJfKqNp5ZL/XKWvpi+apmXTVwsfu29RZlv/oKYpN22kBOxomfBHCOqfXJWOEPhDMPXxrXYIJlom/DGumilXO8YVLRP+IGJtgGMeRCy4zv4obXLK8Y7SDshVk/WHweNDTnYYvDCLA/fZlzOoDrm2cgYF784X5KgKuMaCHCHgqKKqLykzImSpr6RMYRb7okjlANsoijT4wfNlvUoR2yvr9b9VEVZa9YXpQiCWC9MVmW6+tCK4Ka0Yrce+OKjT4qCDrrRkfHnbquZb1KBqacVycnyB5ph0awVc8uHzJcYr8K5pBhfL80XyK8/mugEPOiP+moeypK0ALnKr/UUlJZitAS6ylf1VO0WQrQMuAu0vi6rXiqhmrPjrzmq0g6uBHRYZGbiwD3kFeNz1D1tBPwW+B/2kKS7sK+uk+Csnk87P2tuH5cSEZ5xemqp8ZfuOuCQjdvaRS6JEZEuXXvurrUB07S/hdb+3D7n2F/6EgWt/OYNIXyNe+/sfZeDDVd1yhKYAAAAASUVORK5CYII=");var P=t("e",new r),R={1:"A",2:"B",3:"C",4:"D",5:"E",6:"F",7:"G",8:"H",9:"I",10:"J"},N=t("Q",{RADIO:"RADIO",CHECKBOX:"CHECKBOX",LINK:"LINK",SORT:"SORT",PLAY:"PLAY"}),j="单选题",L="多选题",B="连线题",F="排序题",z="演奏题",H="IMAGE",U="TXT",X="AUDIO",Y={unitSubjectTitle:"_unitSubjectTitle_1x5pg_1",unitScore:"_unitScore_1x5pg_7",unitDetail:"_unitDetail_1x5pg_14",unitTitleImg:"_unitTitleImg_1x5pg_23",unitTitleRate:"_unitTitleRate_1x5pg_26",icon:"_icon_1x5pg_37",rate:"_rate_1x5pg_41"},G="_unitAudio_ml4u4_1",V="_htmlAudio_ml4u4_9",q="_htmlTimes_ml4u4_22",W="_iconAudio_ml4u4_31",K="_audioStatus_ml4u4_35",Q={};
- /*!
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- !function(e){!function(){var t=function(){this.init()};t.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="undefined"!=typeof window&&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 t=this||n;if(e=parseFloat(e),t.ctx||d(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var o=t._howls[r]._getSoundIds(),i=0;i<o.length;i++){var a=t._howls[r]._soundById(o[i]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||d(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var o=t._howls[r]._getSoundIds(),i=0;i<o.length;i++){var a=t._howls[r]._soundById(o[i]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,d()),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("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(c){return e}if(!t||"function"!=typeof t.canPlayType)return e;var r=t.canPlayType("audio/mpeg;").replace(/^no$/,""),o=e._navigator?e._navigator.userAgent:"",i=o.match(/OPR\/([0-6].)/g),a=i&&parseInt(i[0].split("/")[1],10)<33,l=-1!==o.indexOf("Safari")&&-1===o.indexOf("Chrome"),s=o.match(/Version\/(.*?) /),u=l&&s&&parseInt(s[1],10)<15;return e._codecs={mp3:!(a||!r&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!r,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.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||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function t(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(n){e.noAudio=!0;break}for(var o=0;o<e._howls.length;o++)if(!e._howls[o]._webAudio)for(var i=e._howls[o]._getSoundIds(),a=0;a<i.length;a++){var l=e._howls[o]._soundById(i[a]);l&&l._node&&!l._node._unlocked&&(l._node._unlocked=!0,l._node.load())}e._autoResume();var s=e.ctx.createBufferSource();s.buffer=e._scratchBuffer,s.connect(e.ctx.destination),void 0===s.start?s.noteOn(0):s.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),s.onended=function(){s.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&n.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var r=0;r<e._howls[t]._sounds.length;r++)if(!e._howls[t]._sounds[r]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&n.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var n=new t,r=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};r.prototype={init:function(e){var t=this;return n.ctx||d(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._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},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,void 0!==n.ctx&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var r=0;r<e._src.length;r++){var o,a;if(e._format&&e._format[r])o=e._format[r];else{if("string"!=typeof(a=e._src[r])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(o=/^data:audio\/([^;,]+);/i.exec(a))||(o=/\.([^.]+)$/.exec(a.split("?",1)[0])),o&&(o=o[1].toLowerCase())}if(o||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),o&&n.codecs(o)){t=e._src[r];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&l(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var r=this,o=null;if("number"==typeof e)o=e,e=null;else{if("string"==typeof e&&"loaded"===r._state&&!r._sprite[e])return null;if(void 0===e&&(e="__default",!r._playLock)){for(var i=0,a=0;a<r._sounds.length;a++)r._sounds[a]._paused&&!r._sounds[a]._ended&&(i++,o=r._sounds[a]._id);1===i?e=null:o=null}}var l=o?r._soundById(o):r._inactiveSound();if(!l)return null;if(o&&!e&&(e=l._sprite||"__default"),"loaded"!==r._state){l._sprite=e,l._ended=!1;var s=l._id;return r._queue.push({event:"play",action:function(){r.play(s)}}),s}if(o&&!l._paused)return t||r._loadQueue("play"),l._id;r._webAudio&&n._autoResume();var u=Math.max(0,l._seek>0?l._seek:r._sprite[e][0]/1e3),c=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-u),d=1e3*c/Math.abs(l._rate),f=r._sprite[e][0]/1e3,p=(r._sprite[e][0]+r._sprite[e][1])/1e3;l._sprite=e,l._ended=!1;var h=function(){l._paused=!1,l._seek=u,l._start=f,l._stop=p,l._loop=!(!l._loop&&!r._sprite[e][2])};if(!(u>=p)){var m=l._node;if(r._webAudio){var g=function(){r._playLock=!1,h(),r._refreshBuffer(l);var e=l._muted||r._muted?0:l._volume;m.gain.setValueAtTime(e,n.ctx.currentTime),l._playStart=n.ctx.currentTime,void 0===m.bufferSource.start?l._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,c):l._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,c),d!==1/0&&(r._endTimers[l._id]=setTimeout(r._ended.bind(r,l),d)),t||setTimeout((function(){r._emit("play",l._id),r._loadQueue()}),0)};"running"===n.state&&"interrupted"!==n.ctx.state?g():(r._playLock=!0,r.once("resume",g),r._clearTimer(l._id))}else{var v=function(){m.currentTime=u,m.muted=l._muted||r._muted||n._muted||m.muted,m.volume=l._volume*n.volume(),m.playbackRate=l._rate;try{var o=m.play();if(o&&"undefined"!=typeof Promise&&(o instanceof Promise||"function"==typeof o.then)?(r._playLock=!0,h(),o.then((function(){r._playLock=!1,m._unlocked=!0,t?r._loadQueue():r._emit("play",l._id)})).catch((function(){r._playLock=!1,r._emit("playerror",l._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."),l._ended=!0,l._paused=!0}))):t||(r._playLock=!1,h(),r._emit("play",l._id)),m.playbackRate=l._rate,m.paused)return void r._emit("playerror",l._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.");"__default"!==e||l._loop?r._endTimers[l._id]=setTimeout(r._ended.bind(r,l),d):(r._endTimers[l._id]=function(){r._ended(l),m.removeEventListener("ended",r._endTimers[l._id],!1)},m.addEventListener("ended",r._endTimers[l._id],!1))}catch(i){r._emit("playerror",l._id,i)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=r._src,m.load());var _=window&&window.ejecta||!m.readyState&&n._navigator.isCocoonJS;if(m.readyState>=3||_)v();else{r._playLock=!0,r._state="loading";m.addEventListener(n._canPlayEvent,(function e(){r._state="loaded",v(),m.removeEventListener(n._canPlayEvent,e,!1)}),!1),r._clearTimer(l._id)}}return l._id}r._ended(l)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var o=t._soundById(n[r]);if(o&&!o._paused&&(o._seek=t.seek(n[r]),o._rateSeek=0,o._paused=!0,t._stopFade(n[r]),o._node))if(t._webAudio){if(!o._node.bufferSource)continue;void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),t._cleanBuffer(o._node)}else isNaN(o._node.duration)&&o._node.duration!==1/0||o._node.pause();arguments[1]||t._emit("pause",o?o._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),o=0;o<r.length;o++){n._clearTimer(r[o]);var i=n._soundById(r[o]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(r[o]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&n._clearSound(i._node))),t||n._emit("stop",i._id))}return n},mute:function(e,t){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"mute",action:function(){r.mute(e,t)}}),r;if(void 0===t){if("boolean"!=typeof e)return r._muted;r._muted=e}for(var o=r._getSoundIds(t),i=0;i<o.length;i++){var a=r._soundById(o[i]);a&&(a._muted=e,a._interval&&r._stopFade(a._id),r._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,n.ctx.currentTime):a._node&&(a._node.muted=!!n._muted||e),r._emit("mute",a._id))}return r},volume:function(){var e,t,r,o=this,i=arguments;if(0===i.length)return o._volume;if(1===i.length||2===i.length&&void 0===i[1]){var a=o._getSoundIds(),l=a.indexOf(i[0]);l>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(r=t?o._soundById(t):o._sounds[0])?r._volume:0;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"volume",action:function(){o.volume.apply(o,i)}}),o;void 0===t&&(o._volume=e),t=o._getSoundIds(t);for(var s=0;s<t.length;s++)(r=o._soundById(t[s]))&&(r._volume=e,i[2]||o._stopFade(t[s]),o._webAudio&&r._node&&!r._muted?r._node.gain.setValueAtTime(e,n.ctx.currentTime):r._node&&!r._muted&&(r._node.volume=e*n.volume()),o._emit("volume",r._id));return o},fade:function(e,t,r,o){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,r,o)}}),i;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),r=parseFloat(r),i.volume(e,o);for(var a=i._getSoundIds(o),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if(o||i._stopFade(a[l]),i._webAudio&&!s._muted){var u=n.ctx.currentTime,c=u+r/1e3;s._volume=e,s._node.gain.setValueAtTime(e,u),s._node.gain.linearRampToValueAtTime(t,c)}i._startFadeInterval(s,e,t,r,a[l],void 0===o)}}return i},_startFadeInterval:function(e,t,n,r,o,i){var a=this,l=t,s=n-t,u=Math.abs(s/.01),c=Math.max(4,u>0?r/u:r),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var o=(Date.now()-d)/r;d=Date.now(),l+=s*o,l=Math.round(100*l)/100,l=s<0?Math.max(n,l):Math.min(n,l),a._webAudio?e._volume=l:a.volume(l,e._id,!0),i&&(a._volume=l),(n<t&&l<=n||n>t&&l>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),c)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=r._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],r._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i=r._getSoundIds(t),a=0;a<i.length;a++)(n=r._soundById(i[a]))&&(n._loop=e,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,r.playing(i[a])&&(r.pause(i[a],!0),r.play(i[a],!0)))));return r},rate:function(){var e,t,r,o=this,i=arguments;if(0===i.length)t=o._sounds[0]._id;else if(1===i.length){var a=o._getSoundIds(),l=a.indexOf(i[0]);l>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(r=o._soundById(t))?r._rate:o._rate;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"rate",action:function(){o.rate.apply(o,i)}}),o;void 0===t&&(o._rate=e),t=o._getSoundIds(t);for(var s=0;s<t.length;s++)if(r=o._soundById(t[s])){o.playing(t[s])&&(r._rateSeek=o.seek(t[s]),r._playStart=o._webAudio?n.ctx.currentTime:r._playStart),r._rate=e,o._webAudio&&r._node&&r._node.bufferSource?r._node.bufferSource.playbackRate.setValueAtTime(e,n.ctx.currentTime):r._node&&(r._node.playbackRate=e);var u=o.seek(t[s]),c=(o._sprite[r._sprite][0]+o._sprite[r._sprite][1])/1e3-u,d=1e3*c/Math.abs(r._rate);!o._endTimers[t[s]]&&r._paused||(o._clearTimer(t[s]),o._endTimers[t[s]]=setTimeout(o._ended.bind(o,r),d)),o._emit("rate",r._id)}return o},seek:function(){var e,t,r=this,o=arguments;if(0===o.length)r._sounds.length&&(t=r._sounds[0]._id);else if(1===o.length){var i=r._getSoundIds(),a=i.indexOf(o[0]);a>=0?t=parseInt(o[0],10):r._sounds.length&&(t=r._sounds[0]._id,e=parseFloat(o[0]))}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==r._state||r._playLock))return r._queue.push({event:"seek",action:function(){r.seek.apply(r,o)}}),r;var l=r._soundById(t);if(l){if(!("number"==typeof e&&e>=0)){if(r._webAudio){var s=r.playing(t)?n.ctx.currentTime-l._playStart:0,u=l._rateSeek?l._rateSeek-l._seek:0;return l._seek+(u+s*Math.abs(l._rate))}return l._node.currentTime}var c=r.playing(t);c&&r.pause(t,!0),l._seek=e,l._ended=!1,r._clearTimer(t),r._webAudio||!l._node||isNaN(l._node.duration)||(l._node.currentTime=e);var d=function(){c&&r.play(t,!0),r._emit("seek",t)};if(c&&!r._webAudio){var f=function e(){r._playLock?setTimeout(e,0):d()};setTimeout(f,0)}else d()}return r},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,r=0;r<t.length;r++)t[r]._paused||e.stop(t[r]._id),e._webAudio||(e._clearSound(t[r]._node),t[r]._node.removeEventListener("error",t[r]._errorFn,!1),t[r]._node.removeEventListener(n._canPlayEvent,t[r]._loadFn,!1),t[r]._node.removeEventListener("ended",t[r]._endFn,!1),n._releaseHtml5Audio(t[r]._node)),delete t[r]._node,e._clearTimer(t[r]._id);var o=n._howls.indexOf(e);o>=0&&n._howls.splice(o,1);var i=!0;for(r=0;r<n._howls.length;r++)if(n._howls[r]._src===e._src||e._src.indexOf(n._howls[r]._src)>=0){i=!1;break}return a&&i&&delete a[e._src],n.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var o=this["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,o=r["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var a=n===o[i].id;if(t===o[i].fn&&a||!t&&a){o.splice(i,1);break}}else if(e)r["_on"+e]=[];else{var l=Object.keys(r);for(i=0;i<l.length;i++)0===l[i].indexOf("_on")&&Array.isArray(r[l[i]])&&(r[l[i]]=[])}return r},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this,o=r["_on"+e],i=o.length-1;i>=0;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,o[i].fn),0),o[i].once&&r.off(e,o[i].fn,o[i].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var o=!(!e._loop&&!t._sprite[r][2]);if(t._emit("end",e._id),!t._webAudio&&o&&t.stop(e._id,!0).play(e._id),t._webAudio&&o){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var i=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),i)}return t._webAudio&&!o&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),t._webAudio||o||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=a[this._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),this},_cleanBuffer:function(e){var t=n._navigator&&n._navigator.vendor.indexOf("Apple")>=0;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=n._scratchBuffer}catch(r){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===n.ctx.createGain?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,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=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._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,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var a={},l=function(e){var t=e._src;if(a[t])return e._duration=a[t].duration,void c(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);u(r.buffer,e)}else{var i=new XMLHttpRequest;i.open(e._xhr.method,t,!0),i.withCredentials=e._xhr.withCredentials,i.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){i.setRequestHeader(t,e._xhr.headers[t])})),i.onload=function(){var t=(i.status+"")[0];"0"===t||"2"===t||"3"===t?u(i.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+".")},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(i)}},s=function(e){try{e.send()}catch(t){e.onerror()}},u=function(e,t){var r=function(){t._emit("loaderror",null,"Decoding audio data failed.")},o=function(e){e&&t._sounds.length>0?(a[t._src]=e,c(t,e)):r()};"undefined"!=typeof Promise&&1===n.ctx.decodeAudioData.length?n.ctx.decodeAudioData(e).then(o).catch(r):n.ctx.decodeAudioData(e,o,r)},c=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},d=function(){if(n.usingWebAudio){try{"undefined"!=typeof AudioContext?n.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch(i){n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=t?parseInt(t[1],10):null;if(e&&r&&r<9){var o=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!o&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=void 0===n.ctx.createGain?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()}};e.Howler=n,e.Howl=r,void 0!==o?(o.HowlerGlobal=t,o.Howler=n,o.Howl=r,o.Sound=i):"undefined"!=typeof window&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)}(),
- /*!
- * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
- *
- * howler.js v2.2.3
- * howlerjs.com
- *
- * (c) 2013-2020, James Simpson of GoldFire Studios
- * goldfirestudios.com
- *
- * MIT License
- */
- function(){var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,o,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var l=a._orientation;return t="number"!=typeof t?l[1]:t,n="number"!=typeof n?l[2]:n,r="number"!=typeof r?l[3]:r,o="number"!=typeof o?l[4]:o,i="number"!=typeof i?l[5]:i,"number"!=typeof e?l:(a._orientation=[e,t,n,r,o,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,r,o,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var i=r._getSoundIds(n),a=0;a<i.length;a++){var l=r._soundById(i[a]);if(l){if("number"!=typeof e)return l._stereo;l._stereo=e,l._pos=[e,0,0],l._node&&(l._pannerAttr.panningModel="equalpower",l._panner&&l._panner.pan||t(l,o),"spatial"===o?void 0!==l._panner.positionX?(l._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):l._panner.setPosition(e,0,0):l._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",l._id)}}return r},Howl.prototype.pos=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,n,r,o)}}),i;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,n,r]}for(var a=i._getSoundIds(o),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if("number"!=typeof e)return s._pos;s._pos=[e,n,r],s._node&&(s._panner&&!s._panner.pan||t(s,"spatial"),void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):s._panner.setPosition(e,n,r)),i._emit("pos",s._id)}}return i},Howl.prototype.orientation=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,n,r,o)}}),i;if(n="number"!=typeof n?i._orientation[1]:n,r="number"!=typeof r?i._orientation[2]:r,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,n,r]}for(var a=i._getSoundIds(o),l=0;l<a.length;l++){var s=i._soundById(a[l]);if(s){if("number"!=typeof e)return s._orientation;s._orientation=[e,n,r],s._node&&(s._panner||(s._pos||(s._pos=i._pos||[0,0,-.5]),t(s,"spatial")),void 0!==s._panner.orientationX?(s._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),s._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):s._panner.setOrientation(e,n,r)),i._emit("orientation",s._id)}}return i},Howl.prototype.pannerAttr=function(){var e,r,o,i=this,a=arguments;if(!i._webAudio)return i;if(0===a.length)return i._pannerAttr;if(1===a.length){if("object"!==n(a[0]))return(o=i._soundById(parseInt(a[0],10)))?o._pannerAttr:i._pannerAttr;e=a[0],void 0===r&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),i._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:i._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:i._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:i._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:i._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:i._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:i._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:i._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:i._panningModel})}else 2===a.length&&(e=a[0],r=parseInt(a[1],10));for(var l=i._getSoundIds(r),s=0;s<l.length;s++)if(o=i._soundById(l[s])){var u=o._pannerAttr;u={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:u.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:u.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:u.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:u.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:u.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:u.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:u.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:u.panningModel};var c=o._panner;c?(c.coneInnerAngle=u.coneInnerAngle,c.coneOuterAngle=u.coneOuterAngle,c.coneOuterGain=u.coneOuterGain,c.distanceModel=u.distanceModel,c.maxDistance=u.maxDistance,c.refDistance=u.refDistance,c.rolloffFactor=u.rolloffFactor,c.panningModel=u.panningModel):(o._pos||(o._pos=i._pos||[0,0,-.5]),t(o,"spatial"))}return i},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()}(Q);var J=i({name:"unit-audio",props:{src:{type:String,default:""}},setup:function(e){var t=a({audioStatus:"stopped",duration:0}),n=new Q.Howl({src:e.src+"?t="+ +new Date,format:["mp3"]});return n.on("load",(function(e){console.log(n.duration()),t.duration=Math.ceil(n.duration())})),n.on("end",(function(e){t.audioStatus="stopped"})),P.on("unitAudioStop",(function(){n.stop(),t.audioStatus="stopped"})),l((function(){n.off("load")})),function(){return s("div",{class:G},[s("div",{class:V,onClick:function(e){e.stopPropagation(),"stopped"===t.audioStatus?(P.emit("unitAudioStop"),n.play(),t.audioStatus="paused"):"paused"===t.audioStatus&&(n.pause(),t.audioStatus="stopped")}},[s("div",{class:q},[s(u,{class:W,name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA5lJREFUWEfNmEvIVlUUhp83wpoEDbpACRURNQil0CBRGkQXu0gONKqBWUZgKUqXQVF2oaIyirJAUrNBRSkImV1oYtEFSqSkgQZREwMvRJADFWnF+7d2HI/n/Od8X/rzHTijs/dez17rXWvtfcSIPRqUJyLOAm4ArgIuBc4HTst1/gJ+A34CvgA+lrR3EBu9gSJiJvAwMBs4uaeRI8AnwAuSvuozpxMoIi4AXgNuzAUPA58BnwPbgF+AP/Pb6cCFwDTgGuA6YFJ+2wIskfTreGDjAkXEbcDqDImNvgK8Lml/n91GxBnAfcAywLAO6b2S3mub3woUEY8DTwAeswG4f1A9FKOpu1XAPCC8rqSnmqAagRLmSeBv4DFJz/bxSNeYiHgEeBo4CVjRBHUMUIbpndzJ7ZLebzIUERcBczLTzgF2SHqoB9StwLvp+Tvq4TsKKAX8Y2rm0SbPRMSVwPPArJrx3ZImdwH5e3rqmdTU1KrQ60AfZTZtkDS/unhE2M0GeSB39wewGdgK7AZ+kLSvD1BCfZCa2iLppjLvP6CI8I6/zBS+uCrghNkIzAUOAc8BL0k60BegPi6Fviuzb1apU1WgD4Gbm8QWES8CDwJO91skfT0sSM3rKzKTN0uyHsdS2jF1O7DbnVXnVutMasYALohXV2EiwvNdBKemIetvmySndueTdcp2LQfb3VuA7gTesiYKaaWGOIwOp2uHS8HYExFTcs7lNcvbgYWSdnQS/btOiYznrC9AhjHUUkluE8WoU/tnwAI+r2gmYdyb3FR/Bz7NKdcDLgGuyDP7QEXEEuBVYL2khQXo+3T9DEnfVoCcUSvL4PSM57iH2TObgAWSDODdGvDtFL89Na0rfCmJbzLU0wuQ09V95+xadhXPjbkzjU4HvkvPXFJgKpsw1M701BWSvNnWJ/W7xwkj6cwCdBA4xa8ki7eEzF39Wr+S3N3thUXAm8A6SXc3WYqItcBdwD2S1nQA+TTgUnJI0qldQE53d/zLStGbKKDGkLXsfkJC1ijqFqAJEXVj2rfFfiLSvrUwdkB5IyekMLa2jo4MOTGtI9O5lPCjWkSf8j/smIhobq4J1Hr8GNZgj4LYfvxIqNYD2vGGiojxD2gJ5DvYuEfY4wHW+wibUK7MnYf8YcEiov8hv9LDfCcbjWtQDWo0LooVqPpV+mXgjQGv0ouB5f/7Kl2BGp2fDVXhjszvmHo2jcwPq2HTfNB5/wC4HxNDoqwBYAAAAABJRU5ErkJggg=="},null),s("span",null,[t.duration,c('"')])]),s(u,{name:"stopped"===t.audioStatus?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAS1JREFUSEvN1rsuRUEUgOH/xzvoeBHxFioPQYIgoXVJXBKFikp0apWCaFDxBITQaBQKBdmykr0TOck5+2z7zORMOZnMN5c1a5Zkbmb2GC6wKIpxYBEYAw7Ux7Yn0nOHRVFcAdMl8gXsAZvq53/hOvAbGO2Y/A1YBU7UoilcB/aa8BaYV2+aoG3AcGJBp8CyGjuvbW3BCog73QJ21bjrrm1QYAU8AUvqWTdx0GDlXJb3+9AJpwLD+QGOgHX1vYJTgpXxAcyq59GRAwznWZ3MCb6oE7nAONIZ9SI1GEFzDKzlCJpI+pH27lM/i2wPP1LbNrCTOrVVyXtFfa3N3C3f4R0wN+jvKSJtJOcHfA1M/Skx9oGNlCVGFFEL5dEfJi+i+gmCpmOGqy5tuvp+xv8CviiKHYL2qIQAAAAASUVORK5CYII=":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAHpJREFUSEvtlrENgDAQA+1BYB8mYSYmYR8YxDRJREP4Jq8UTm3plNNbMpH8mMzDPEBJG4CjGNhJnj0b0fznDyVdAJYCuUmuP8BQvgfUG0Cyq19SKG9gs2qlPpp6DK6Fa9EMuBauBaJHUFVF81NNjNwRNWqvzrNLR/3wAc1tuB3GmZrsAAAAAElFTkSuQmCC",class:K},null)])])}}}),Z=i({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:function(){return{}}},showRate:{type:Boolean,default:!1}},setup:function(e){var t=d((function(){return e.answerType===N.CHECKBOX?L:e.answerType===N.LINK?B:e.answerType===N.SORT?F:e.answerType===N.PLAY?z:j})),n=d((function(){return e.extra.mediaUrls?e.extra.mediaUrls.split(","):""}));return function(){return s(f,null,[s("div",{class:Y.unitSubjectTitle},[e.index,c("、"),e.name,c(" "),s("span",{class:Y.unitScore},[c("("),e.score||0,c("分)")]),s(k,{type:"primary",style:{lineHeight:"20px"}},{default:function(){return[t.value]}})]),e.showRate&&s("div",{class:Y.unitTitleRate},[s(u,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAmVJREFUWEftl81LVFEYxn9nNBtzZpyJhhlEgxaKIIJQSaLQEC1qE9TKTQSh9AFtrE1/QZvoi6KgbVIWRhQERZBjZW2UMgaZakKiZKjMtA9KHU8cz1zuOB/NHWPmQvhuLpz33PM8z3ve89x7BED3NdkgHZwQku0SPGqsWCFgRgoeiAWOX+4Ur8QiuOAZ4CsWaI51p4Rki+i6LvuR7CkxuIYT3BTdfXK62GXPJU5th+jqk9IW9UnQFQL/fwXcq2FXEwgBt17C99mlHVfUClQ74VgIgklrG3gDvSMlIuCrhKMhCLhNwHAMrgyXgMDaNVq532WCTUzDyQH49tsCAWe5nvRrvnCHWFellaunEe+/wqlwJviiGaYbUXMQDrWDcqfeYRgat05CKVbKVQWMeDcFp8OZzWfkMwgcbIONdTqtPPLqCDyM5ScRcGnlvhTw8S9wZhB+pHV+6moZBDo2wL7N5hRFon8U7kVzkwi6Nbi30pzzdhLODsLPub+Tz3oMdzbC7mZ9do24E4HbkczFajwa3OM0c7HPWrmVHsrpA9vqobNlKYn7UbjxwgSqrYaeECizMeL1Jzj3yBp41iZM1ai2Y+8mcKRUIpw0k1ov9GwFVwp49KMGn03k75mcTZj+aut62N8KZQ4z8/wD1PuhqsIcG4vD+SeFgeetgLF8Sw0caIPysuzKInG48BjmFqwrt1wBY2JTAA63Q0XSpIzx0Qm4OATzywC3XAEDrMEPRzrAuUqPqK249BQSywQvmIB6oc4LOxohPgN3xyDxjz90Rf0cW+mIFQL2V8D+i4ntVzO7L6fqqNh5Pf8DS9v7/ahSKSsAAAAASUVORK5CYII=",class:Y.icon},null),c("正确率:"),s("span",{class:Y.rate},[e.extra.rightRate||0,c("%")])]),e.extra.questionDetail||n.value?s("div",{class:Y.unitDetail},[s("div",{innerHTML:e.extra.questionDetail},null),n.value&&n.value.map((function(e){return e&&s(f,null,["mp3"===e.substr(-3)?s(J,{src:e,class:Y.valueAudio},null):s(I,{class:[Y.unitTitleImg,"answerTitleImg"],src:e},null)])}))]):""])}}}),$="_answerAnalysis_1mdns_1",ee="_analysisResult_1mdns_1",te="_aImg_1mdns_9",ne="_success_1mdns_13",re="_error_1mdns_16",oe="_analysisTitle_1mdns_19",ie="_analysisMessage_1mdns_22",ae=t("a","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=="),le=i({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:function(e){return function(){return s("div",{class:$},[e.topic?s(f,null,[e.userResult?s("div",{class:[ee,ne]},[s(u,{name:"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==",class:te},null),e.rightFlagText]):s("div",{class:[ee,re]},[s(u,{name:ae,class:te},null),e.errorFlagText])]):"",e.answerAnalysis&&s(f,null,[s("div",{class:[ee,oe]},[s(u,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABllJREFUWEedmHlsFVUUxn+3UAqUVagSFhUQFEUWLYQYIEbkD0wMrQU1kogaARHFqJRVAVkMUuAPJQImGKNgwlqq7CWIkrpgIQRUSqSIRVnCUrpA2TrXnHdn3rsznXkW5p/33syd+777ne9895yrCLlWFOvU6gqySGG41mSiaO/U0lwDjgb51PLpfo/d0+CE3Jfp3XeqtOaUoynWUFDdgU2fZaobwb9XwRtL9uhsxyEP6CrPgn/qgQkCCwPjG2stxH23VCtyP85S+TaGOKDZs3VKs8EsUIpJWqOEhviEFrAYEwGW4mA8Nur+eZxRG7ij0FqzKOMQU2fPVvKIOKBFu/VCINdDeyvMvJhp3vp8XwijHjgbbN3w5i0boSbHAUmYtGZDjBlLB/Vd+fQnDZtzdwYAuXPZjPrYTehLK0XO8hyVr0TAVZUcsTWTLCTxkFmCnjHUMDRnhwHmiTz4PSh8n+40peoSPdTiPXqkdlgbxoxMnNEMLtXA1ZtuJgX1oeH5vgbI1wcSYIJMpDWEVk3g34qQeVwm0TyrFn+nVzkOozxAdpjSG8Gbg+DCZfiyGCqvBhiw0z4s1K5WWqTBhIFwZzN4bxuU1yRsw2YJxWq1aLcu0Zr7w+Isy87qBQ+1M6BW/Ag1LlO2F/kyJ+BFwsykxw3T+0/Cyn2GRTussdDKJIqjKm+3rnQcmsuAuIlZYZF7T/eEB+6CT/ZChbs6m0nPJMOAtWwMM56Eg6fgq/1Q6yQJmaJKfbRLrCCAOInzesLMSIfMTtA9A1o3hQYpJqTHL8D+f+D3M5ajuwyECj7AqFpQ6AKyNRDcFqxnKQqG9YAB94J8j7pKz8MXxSbUPk8LsQI7+9SHAigCQCAtYyy81B+6tAmHceU61NyANunmefU1WPI9nKqMtoKgxaj5Ow0gn6gDW4X3fERveLRTNCs7SmBrCQzuAtk9ISUFzl+GOYVQc93aigKbcjxBRNfzdmgdKtBASndqBeMfA5UkTCLYvcdhw2HI7Aij+xnwW4/AxsOBRVtRsbWl5uzwh0yyQkQqgy5eNisUwM/1gUc6RrNjP9lXZtJ74kBjGRK6twvgpmPSv226mf9MJZytTmhMIqE+2O7PsqlDoGkjM/21mzBru3l55lBIT6sfIBk1txDaNYcxA8w78rv0AizLgSap5l7VNRi33u/uapYAsujr3d5MJNeZKpDVpjaA+U/VH4yMXHMQDp2G+cPMe58Wwc9lMLgzdGhpFnmiHH447he8mrktIWp5MWxjFLedd4uA/i6HY+dhSDcDaPlPUPRXeFXp2UIsZO9vdQElqQ5l4NxhiVDeGleJkJWcC9/D7EJQzdhiNJTM/uX56Ezo0+F2oID40+sb4XptEpN0s1pN32yJOgKYALqvLbwx8PYASdqvOhBen8cl4gGattnyoZBOwu40XukHfeuZ+h708iswZYvJKNtvQitH0dCUb90s8/aYsILeRS/injgI7mldP6ZkG5m/C45d8HtNsnJFTXYBJat77bK1UUN4oS/0vzu5a5eVw9IiOHnJn1mhfZ2Q4JhxKvcbrX3FUtS+Fth/pg+Bzm3MykWscjVMMWWIXK+th0tuhRnaOoW1WRKydwt0pYbmSbPMLUVFBN4KBZDs+it/SZhbi8awNNswN3YdVIhuAtVhcPGBGqlKAJU4UsLahVJEW2zXNVIFdm0D56pBTFAmln1QCja5Xl1nCrY6RpskkzUcVe8U6FW1DqNCW+RAc2dn3PQnoFsG5B+GohMGhHQVM4YYhl5e42ZWRKkR0Z+tVm8V6JG6lrXx1UdVdHb7LHX2g5DTC/44A7+dNYBaN4Gh3eHPczBtW/gBRJ3ay503NoG0QWOLdWpaGUccTVefY0eIzhsj7z/zMAzqAnc0NYDEkQ+fhpW/mtI1WSNgh9JgobRc0yNWbk3YoLM1ppWuk3ERRy8+k3NnjDI7X0cTONKJrUSONjQ5hWNVfrz+G79eL3Q0uaGHDFbXEHYOFFkCh+gnyExsLZq8XeOswwa5Kccxp3uywNFMchxUWKcQBsY+rIrZQtRhVkCDHjPaYdGu00wleBzjbQZj1upsR5MnmgqmrIyJOkgIdeBgf+f18K5mFORKmOyNKLRkH7tCp15vSZaG4Y5Dpta0dyzz/L+Gz7dXJbKoSmOO9JSm4CJs2j+u7pHef31/i4JLMvf4AAAAAElFTkSuQmCC",class:te},null),c("答案解析")]),s("div",{class:ie},[e.answerAnalysis])])])}}}),se="_unitSubject_1pzvj_1",ue="_unitAnswers_1pzvj_11",ce="_unitAnswer_1pzvj_11",de="_option_1pzvj_23",fe="_value_1pzvj_26",pe="_valueAudio_1pzvj_35",he="_active_1pzvj_38",me="_answerContent_1pzvj_42",ge="_answerChoice_1pzvj_46",ve=(t("C",i({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},type:{type:String,default:"radio"},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{tyep:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(t,n){var r=n.emit,o=d((function(){var e=t.data.answers||[],n=t.value||[];return e.forEach((function(e){var t=n.findIndex((function(t){return t.answerId===e.examinationQuestionAnswerId}));e.checked=-1!==t})),e}));return function(){return s(f,null,[s("div",{class:se},[s(Z,{index:t.index,name:t.data.name,showRate:t.showRate,score:t.data.totalScore,answerType:"radio"===t.type?N.RADIO:N.CHECKBOX,extra:{questionDetail:t.data.questionDetail,mediaUrls:t.data.mediaUrls,rightRate:t.data.rightRate}},null),s("div",{class:ue},[o.value.map((function(n,o){return s("div",{class:[ce,n.checked&&he],onClick:function(){return function(n){if(console.log(n,"onSelect"),!t.readOnly){var o=t.value||[],i={answerId:n.examinationQuestionAnswerId,answer:n.questionAnswer,answerExtra:n.questionExtra};if(console.log(i,"onSelect"),"checkbox"===t.type){var a=o.findIndex((function(e){return e.answerId===n.examinationQuestionAnswerId}));a>=0?(o.splice(a,1),r("update:value",e(o))):r("update:value",[].concat(e(o),[i]))}else r("update:value",[i])}}(n)}},[s("div",{class:me},[s("span",{class:de},[R[o+1],c(".")]),n.questionAnswerTypeCode===H&&s("div",{class:fe},[s(I,{src:n.questionAnswer,fit:"contain",class:"answerTitleImg"},null)]),n.questionAnswerTypeCode===U&&s("div",{class:fe},[n.questionAnswer]),n.questionAnswerTypeCode===X&&s("div",{class:fe},[s(J,{src:n.questionAnswer,class:pe},null)])]),t.showRate&&s("div",{class:ge},[n.selectRate||0,c("%人选择")])])}))])]),t.showAnalysis&&s("div",{class:se},[s(le,{answerAnalysis:t.analysis.message,topic:t.analysis.topic,userResult:t.analysis.userResult},null)])])}}})),"_anserList_1yzxl_1"),_e="_status_1yzxl_5",be="_aList_1yzxl_28",ye="_answered_1yzxl_46",we="_yes_1yzxl_50",Ae="_no_1yzxl_54";t("A",i({name:"answer-list",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:0},lookType:{type:String,default:"ANSWER"},statusList:{type:Array,default:function(){return[{text:"已答",color:"#FF8057"},{text:"未答",color:"#EAEAEA"}]}},answerResult:{type:Array,default:function(){return[]}}},emits:["select"],setup:function(e,t){var n=t.emit;console.log(e.lookType,"lookType");return function(){var t,r;return s("div",{class:ve},[e.statusList.length>0&&s("div",{class:_e},[e.statusList.map((function(e){return s("span",null,[s("i",{style:{backgroundColor:e.color}},null),e.text])}))]),s("div",{style:{maxHeight:"40vh",minHeight:"20vh",overflowX:"auto"}},[s(O,{class:be,columnNum:6,border:!1},(r=t=e.value.map((function(t,r){return s(C,{onClick:function(){return n("select",r)}},{default:function(){return[s("span",{class:["ANSWER"===e.lookType&&t.userAnswer&&t.userAnswer.length>0&&ye,"RESULT"===e.lookType&&(n=t.id,o=!1,e.answerResult.forEach((function(e){e.questionId===n&&(o=e.rightFlag)})),o?we:Ae),"CLICK"===e.lookType&&r===e.index&&ye,"CLICK"!==e.lookType&&t.showAnalysis?t.analysis.userResult?we:Ae:""]},[r+1])];var n,o}})})),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!p(r)?t:{default:function(){return[t]}}))])])}}}));var xe={exports:{}},Se=h(m);
- /**!
- * Sortable 1.14.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */
- function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(){return Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oe.apply(this,arguments)}function Ce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ke(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Me(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pe(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var Re=Pe(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ne=Pe(/Edge/i),je=Pe(/firefox/i),Le=Pe(/safari/i)&&!Pe(/chrome/i)&&!Pe(/android/i),Be=Pe(/iP(ad|od|hone)/i),Fe=Pe(/chrome/i)&&Pe(/android/i),ze={capture:!1,passive:!1};function He(e,t,n){e.addEventListener(t,n,!Re&&ze)}function Ue(e,t,n){e.removeEventListener(t,n,!Re&&ze)}function Xe(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Ye(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ge(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&Xe(e,t):Xe(e,t))||r&&e===n)return e;if(e===n)break}while(e=Ye(e))}return null}var Ve,qe=/\s+/g;function We(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(qe," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(qe," ")}}function Ke(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Qe(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Ke(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function Je(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Ze(){var e=document.scrollingElement;return e||document.documentElement}function $e(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,c,d;if(e!==window&&e.parentNode&&e!==Ze()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!Re))do{if(o&&o.getBoundingClientRect&&("none"!==Ke(o,"transform")||n&&"static"!==Ke(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(Ke(o,"border-top-width")),l-=f.left+parseInt(Ke(o,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=Qe(o||e),h=p&&p.a,m=p&&p.d;p&&(s=(a/=m)+(c/=m),u=(l/=h)+(d/=h))}return{top:a,left:l,bottom:s,right:u,width:d,height:c}}}function et(e,t,n){for(var r=it(e,!0),o=$e(e)[t];r;){var i=$e(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===Ze())break;r=it(r,!1)}return!1}function tt(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==fn.ghost&&(r||a[i]!==fn.dragged)&&Ge(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function nt(e,t){for(var n=e.lastElementChild;n&&(n===fn.ghost||"none"===Ke(n,"display")||t&&!Xe(n,t));)n=n.previousElementSibling;return n||null}function rt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===fn.clone||t&&!Xe(e,t)||n++;return n}function ot(e){var t=0,n=0,r=Ze();if(e)do{var o=Qe(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function it(e,t){if(!e||!e.getBoundingClientRect)return Ze();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Ke(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Ze();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Ze()}function at(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function lt(e,t){return function(){if(!Ve){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Ve=setTimeout((function(){Ve=void 0}),t)}}}function st(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function ut(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function ct(e,t){Ke(e,"position","absolute"),Ke(e,"top",t.top),Ke(e,"left",t.left),Ke(e,"width",t.width),Ke(e,"height",t.height)}function dt(e){Ke(e,"position",""),Ke(e,"top",""),Ke(e,"left",""),Ke(e,"width",""),Ke(e,"height","")}var ft="Sortable"+(new Date).getTime();function pt(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Ke(e,"display")&&e!==fn.ghost){t.push({target:e,rect:$e(e)});var n=Te({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Qe(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=$e(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=Qe(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&at(s,l)&&!at(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,s,u,r.options)),at(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,c,l,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Ke(e,"transition",""),Ke(e,"transform","");var o=Qe(this.el),i=o&&o.a,a=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,Ke(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Ke(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Ke(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Ke(e,"transition",""),Ke(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var ht=[],mt={initializeByDefault:!0},gt={mount:function(e){for(var t in mt)mt.hasOwnProperty(t)&&!(t in e)&&(e[t]=mt[t]);ht.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ht.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";ht.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](Te({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Te({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in ht.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,Oe(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return ht.forEach((function(r){"function"==typeof r.eventProperties&&Oe(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return ht.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function vt(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[ft]){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||Re||Ne?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=o||n,m.clone=i,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var _=Te(Te({},h),gt.getEventProperties(r,t));for(var b in _)m[b]=_[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}var _t=["evt"],bt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=Ce(n,_t);gt.pluginEvent.bind(fn)(e,t,Te({dragEl:wt,parentEl:At,ghostEl:xt,rootEl:St,nextEl:Et,lastDownEl:Tt,cloneEl:Dt,cloneHidden:It,dragStarted:Ht,putSortable:Rt,activeSortable:fn.active,originalEvent:r,oldIndex:Ot,oldDraggableIndex:kt,newIndex:Ct,newDraggableIndex:Mt,hideGhostForTarget:sn,unhideGhostForTarget:un,cloneNowHidden:function(){It=!0},cloneNowShown:function(){It=!1},dispatchSortableEvent:function(e){yt({sortable:t,name:e,originalEvent:r})}},o))};function yt(e){vt(Te({putSortable:Rt,cloneEl:Dt,targetEl:wt,rootEl:St,oldIndex:Ot,oldDraggableIndex:kt,newIndex:Ct,newDraggableIndex:Mt},e))}var wt,At,xt,St,Et,Tt,Dt,It,Ot,Ct,kt,Mt,Pt,Rt,Nt,jt,Lt,Bt,Ft,zt,Ht,Ut,Xt,Yt,Gt,Vt=!1,qt=!1,Wt=[],Kt=!1,Qt=!1,Jt=[],Zt=!1,$t=[],en="undefined"!=typeof document,tn=Be,nn=Ne||Re?"cssFloat":"float",rn=en&&!Fe&&!Be&&"draggable"in document.createElement("div"),on=function(){if(en){if(Re)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),an=function(e,t){var n=Ke(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=tt(e,0,t),i=tt(e,1,t),a=o&&Ke(o),l=i&&Ke(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$e(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+$e(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[nn]||i&&"none"===n[nn]&&s+u>r)?"vertical":"horizontal"},ln=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==De(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},sn=function(){!on&&xt&&Ke(xt,"display","none")},un=function(){!on&&xt&&Ke(xt,"display","")};en&&document.addEventListener("click",(function(e){if(qt)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),qt=!1,!1}),!0);var cn=function(e){if(wt){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,Wt.some((function(e){var t=e[ft].options.emptyInsertThreshold;if(t&&!nt(e)){var n=$e(e),r=o>=n.left-t&&o<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return r&&l?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[ft]._onDragOver(n)}}var o,i,a},dn=function(e){wt&&wt.parentNode[ft]._isOutsideThisEl(e.target)};function fn(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Oe({},t),e[ft]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return an(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==fn.supportPointer&&"PointerEvent"in window&&!Le,emptyInsertThreshold:5};for(var r in gt.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in ln(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&rn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?He(e,"pointerdown",this._onTapStart):(He(e,"mousedown",this._onTapStart),He(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(He(e,"dragover",this),He(e,"dragenter",this)),Wt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Oe(this,pt())}function pn(e,t,n,r,o,i,a,l){var s,u,c=e[ft],d=c.options.onMove;return!window.CustomEvent||Re||Ne?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||$e(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function hn(e){e.draggable=!1}function mn(){Zt=!1}function gn(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function vn(e){return setTimeout(e,0)}function _n(e){return clearTimeout(e)}fn.prototype={constructor:fn,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Ut=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,wt):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){$t.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&$t.push(r)}}(n),!wt&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!Le||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Ge(l,r.draggable,n,!1))&&l.animated||Tt===l)){if(Ot=rt(l),kt=rt(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return yt({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),bt("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Ge(s,r.trim(),n,!1))return yt({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),bt("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Ge(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!wt&&n.parentNode===i){var s=$e(n);if(St=i,At=(wt=n).parentNode,Et=wt.nextSibling,Tt=n,Pt=a.group,fn.dragged=wt,Nt={target:wt,clientX:(t||e).clientX,clientY:(t||e).clientY},Ft=Nt.clientX-s.left,zt=Nt.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,wt.style["will-change"]="all",r=function(){bt("delayEnded",o,{evt:e}),fn.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!je&&o.nativeDraggable&&(wt.draggable=!0),o._triggerDragStart(e,t),yt({sortable:o,name:"choose",originalEvent:e}),We(wt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){Je(wt,e.trim(),hn)})),He(l,"dragover",cn),He(l,"mousemove",cn),He(l,"touchmove",cn),He(l,"mouseup",o._onDrop),He(l,"touchend",o._onDrop),He(l,"touchcancel",o._onDrop),je&&this.nativeDraggable&&(this.options.touchStartThreshold=4,wt.draggable=!0),bt("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(Ne||Re))r();else{if(fn.eventCanceled)return void this._onDrop();He(l,"mouseup",o._disableDelayedDrag),He(l,"touchend",o._disableDelayedDrag),He(l,"touchcancel",o._disableDelayedDrag),He(l,"mousemove",o._delayedDragTouchMoveHandler),He(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&He(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){wt&&hn(wt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ue(e,"mouseup",this._disableDelayedDrag),Ue(e,"touchend",this._disableDelayedDrag),Ue(e,"touchcancel",this._disableDelayedDrag),Ue(e,"mousemove",this._delayedDragTouchMoveHandler),Ue(e,"touchmove",this._delayedDragTouchMoveHandler),Ue(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?He(document,"pointermove",this._onTouchMove):He(document,t?"touchmove":"mousemove",this._onTouchMove):(He(wt,"dragend",this),He(St,"dragstart",this._onDragStart));try{document.selection?vn((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Vt=!1,St&&wt){bt("dragStarted",this,{evt:t}),this.nativeDraggable&&He(document,"dragover",dn);var n=this.options;!e&&We(wt,n.dragClass,!1),We(wt,n.ghostClass,!0),fn.active=this,e&&this._appendGhost(),yt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(jt){this._lastX=jt.clientX,this._lastY=jt.clientY,sn();for(var e=document.elementFromPoint(jt.clientX,jt.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(jt.clientX,jt.clientY))!==t;)t=e;if(wt.parentNode[ft]._isOutsideThisEl(e),t)do{if(t[ft]){if(t[ft]._onDragOver({clientX:jt.clientX,clientY:jt.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);un()}},_onTouchMove:function(e){if(Nt){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=xt&&Qe(xt,!0),a=xt&&i&&i.a,l=xt&&i&&i.d,s=tn&&Gt&&ot(Gt),u=(o.clientX-Nt.clientX+r.x)/(a||1)+(s?s[0]-Jt[0]:0)/(a||1),c=(o.clientY-Nt.clientY+r.y)/(l||1)+(s?s[1]-Jt[1]:0)/(l||1);if(!fn.active&&!Vt){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(xt){i?(i.e+=u-(Lt||0),i.f+=c-(Bt||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Ke(xt,"webkitTransform",d),Ke(xt,"mozTransform",d),Ke(xt,"msTransform",d),Ke(xt,"transform",d),Lt=u,Bt=c,jt=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!xt){var e=this.options.fallbackOnBody?document.body:St,t=$e(wt,!0,tn,!0,e),n=this.options;if(tn){for(Gt=e;"static"===Ke(Gt,"position")&&"none"===Ke(Gt,"transform")&&Gt!==document;)Gt=Gt.parentNode;Gt!==document.body&&Gt!==document.documentElement?(Gt===document&&(Gt=Ze()),t.top+=Gt.scrollTop,t.left+=Gt.scrollLeft):Gt=Ze(),Jt=ot(Gt)}We(xt=wt.cloneNode(!0),n.ghostClass,!1),We(xt,n.fallbackClass,!0),We(xt,n.dragClass,!0),Ke(xt,"transition",""),Ke(xt,"transform",""),Ke(xt,"box-sizing","border-box"),Ke(xt,"margin",0),Ke(xt,"top",t.top),Ke(xt,"left",t.left),Ke(xt,"width",t.width),Ke(xt,"height",t.height),Ke(xt,"opacity","0.8"),Ke(xt,"position",tn?"absolute":"fixed"),Ke(xt,"zIndex","100000"),Ke(xt,"pointerEvents","none"),fn.ghost=xt,e.appendChild(xt),Ke(xt,"transform-origin",Ft/parseInt(xt.style.width)*100+"% "+zt/parseInt(xt.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;bt("dragStart",this,{evt:e}),fn.eventCanceled?this._onDrop():(bt("setupClone",this),fn.eventCanceled||((Dt=ut(wt)).draggable=!1,Dt.style["will-change"]="",this._hideClone(),We(Dt,this.options.chosenClass,!1),fn.clone=Dt),n.cloneId=vn((function(){bt("clone",n),fn.eventCanceled||(n.options.removeCloneOnHide||St.insertBefore(Dt,wt),n._hideClone(),yt({sortable:n,name:"clone"}))})),!t&&We(wt,o.dragClass,!0),t?(qt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ue(document,"mouseup",n._onDrop),Ue(document,"touchend",n._onDrop),Ue(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,wt)),He(document,"drop",n),Ke(wt,"transform","translateZ(0)")),Vt=!0,n._dragStartId=vn(n._dragStarted.bind(n,t,e)),He(document,"selectstart",n),Ht=!0,Le&&Ke(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,l=this.options,s=l.group,u=fn.active,c=Pt===s,d=l.sort,f=Rt||u,p=this,h=!1;if(!Zt){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Ge(a,l.draggable,i,!0),O("dragOver"),fn.eventCanceled)return h;if(wt.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return k(!1);if(qt=!1,u&&!l.disabled&&(c?d||(r=At!==St):Rt===this||(this.lastPutMode=Pt.checkPull(this,u,wt,e))&&s.checkPut(this,u,wt,e))){if(o="vertical"===this._getDirection(e,a),t=$e(wt),O("dragOverValid"),fn.eventCanceled)return h;if(r)return At=St,C(),this._hideClone(),O("revert"),fn.eventCanceled||(Et?St.insertBefore(wt,Et):St.appendChild(wt)),k(!0);var m=nt(i,l.draggable);if(!m||function(e,t,n){var r=$e(nt(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!m.animated){if(m===wt)return k(!1);if(m&&i===e.target&&(a=m),a&&(n=$e(a)),!1!==pn(St,i,wt,t,a,n,e,!!a))return C(),i.appendChild(wt),At=i,M(),k(!0)}else if(m&&function(e,t,n){var r=$e(tt(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var g=tt(i,0,l,!0);if(g===wt)return k(!1);if(n=$e(a=g),!1!==pn(St,i,wt,t,a,n,e,!1))return C(),i.insertBefore(wt,g),At=i,M(),k(!0)}else if(a.parentNode===i){n=$e(a);var v,_,b,y=wt.parentNode!==i,w=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2}(wt.animated&&wt.toRect||t,a.animated&&a.toRect||n,o),A=o?"top":"left",x=et(a,"top","top")||et(wt,"top","top"),S=x?x.scrollTop:void 0;if(Ut!==a&&(_=n[A],Kt=!1,Qt=!w&&l.invertSwap||y),v=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&Yt<u*o){if(!Kt&&(1===Xt?s>c+u*i/2:s<d-u*i/2)&&(Kt=!0),Kt)f=!0;else if(1===Xt?s<c+Yt:s>d-Yt)return-Xt}else if(s>c+u*(1-o)/2&&s<d-u*(1-o)/2)return function(e){return rt(wt)<rt(e)?1:-1}(t);if((f=f||a)&&(s<c+u*i/2||s>d-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,o,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Qt,Ut===a),0!==v){var E=rt(wt);do{E-=v,b=At.children[E]}while(b&&("none"===Ke(b,"display")||b===xt))}if(0===v||b===a)return k(!1);Ut=a,Xt=v;var T=a.nextElementSibling,D=!1,I=pn(St,i,wt,t,a,n,e,D=1===v);if(!1!==I)return 1!==I&&-1!==I||(D=1===I),Zt=!0,setTimeout(mn,30),C(),D&&!T?i.appendChild(wt):a.parentNode.insertBefore(wt,D?T:a),x&&st(x,0,S-x.scrollTop),At=wt.parentNode,void 0===_||Qt||(Yt=Math.abs(_-$e(a)[A])),M(),k(!0)}if(i.contains(wt))return k(!1)}return!1}function O(l,s){bt(l,p,Te({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:k,onMove:function(n,r){return pn(St,i,wt,t,n,$e(n),e,r)},changed:M},s))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function k(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(We(wt,Rt?Rt.options.ghostClass:u.options.ghostClass,!1),We(wt,l.ghostClass,!0)),Rt!==p&&p!==fn.active?Rt=p:p===fn.active&&Rt&&(Rt=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===wt&&!wt.animated||a===i&&!a.animated)&&(Ut=null),l.dragoverBubble||e.rootEl||a===document||(wt.parentNode[ft]._isOutsideThisEl(e.target),!t&&cn(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){Ct=rt(wt),Mt=rt(wt,l.draggable),yt({sortable:p,name:"change",toEl:i,newIndex:Ct,newDraggableIndex:Mt,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ue(document,"mousemove",this._onTouchMove),Ue(document,"touchmove",this._onTouchMove),Ue(document,"pointermove",this._onTouchMove),Ue(document,"dragover",cn),Ue(document,"mousemove",cn),Ue(document,"touchmove",cn)},_offUpEvents:function(){var e=this.el.ownerDocument;Ue(e,"mouseup",this._onDrop),Ue(e,"touchend",this._onDrop),Ue(e,"pointerup",this._onDrop),Ue(e,"touchcancel",this._onDrop),Ue(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;Ct=rt(wt),Mt=rt(wt,n.draggable),bt("drop",this,{evt:e}),At=wt&&wt.parentNode,Ct=rt(wt),Mt=rt(wt,n.draggable),fn.eventCanceled||(Vt=!1,Qt=!1,Kt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_n(this.cloneId),_n(this._dragStartId),this.nativeDraggable&&(Ue(document,"drop",this),Ue(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Le&&Ke(document.body,"user-select",""),Ke(wt,"transform",""),e&&(Ht&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),xt&&xt.parentNode&&xt.parentNode.removeChild(xt),(St===At||Rt&&"clone"!==Rt.lastPutMode)&&Dt&&Dt.parentNode&&Dt.parentNode.removeChild(Dt),wt&&(this.nativeDraggable&&Ue(wt,"dragend",this),hn(wt),wt.style["will-change"]="",Ht&&!Vt&&We(wt,Rt?Rt.options.ghostClass:this.options.ghostClass,!1),We(wt,this.options.chosenClass,!1),yt({sortable:this,name:"unchoose",toEl:At,newIndex:null,newDraggableIndex:null,originalEvent:e}),St!==At?(Ct>=0&&(yt({rootEl:At,name:"add",toEl:At,fromEl:St,originalEvent:e}),yt({sortable:this,name:"remove",toEl:At,originalEvent:e}),yt({rootEl:At,name:"sort",toEl:At,fromEl:St,originalEvent:e}),yt({sortable:this,name:"sort",toEl:At,originalEvent:e})),Rt&&Rt.save()):Ct!==Ot&&Ct>=0&&(yt({sortable:this,name:"update",toEl:At,originalEvent:e}),yt({sortable:this,name:"sort",toEl:At,originalEvent:e})),fn.active&&(null!=Ct&&-1!==Ct||(Ct=Ot,Mt=kt),yt({sortable:this,name:"end",toEl:At,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){bt("nulling",this),St=wt=At=xt=Et=Dt=Tt=It=Nt=jt=Ht=Ct=Mt=Ot=kt=Ut=Xt=Rt=Pt=fn.dragged=fn.ghost=fn.clone=fn.active=null,$t.forEach((function(e){e.checked=!0})),$t.length=Lt=Bt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":wt&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)Ge(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||gn(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];Ge(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Ge(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=gt.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&ln(n)},destroy:function(){bt("destroy",this);var e=this.el;e[ft]=null,Ue(e,"mousedown",this._onTapStart),Ue(e,"touchstart",this._onTapStart),Ue(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ue(e,"dragover",this),Ue(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Wt.splice(Wt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!It){if(bt("hideClone",this),fn.eventCanceled)return;Ke(Dt,"display","none"),this.options.removeCloneOnHide&&Dt.parentNode&&Dt.parentNode.removeChild(Dt),It=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(It){if(bt("showClone",this),fn.eventCanceled)return;wt.parentNode!=St||this.options.group.revertClone?Et?St.insertBefore(Dt,Et):St.appendChild(Dt):St.insertBefore(Dt,wt),this.options.group.revertClone&&this.animate(wt,Dt),Ke(Dt,"display",""),It=!1}}else this._hideClone()}},en&&He(document,"touchmove",(function(e){(fn.active||Vt)&&e.cancelable&&e.preventDefault()})),fn.utils={on:He,off:Ue,css:Ke,find:Je,is:function(e,t){return!!Ge(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:lt,closest:Ge,toggleClass:We,clone:ut,index:rt,nextTick:vn,cancelNextTick:_n,detectDirection:an,getChild:tt},fn.get=function(e){return e[ft]},fn.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(fn.utils=Te(Te({},fn.utils),e.utils)),gt.mount(e)}))},fn.create=function(e,t){return new fn(e,t)},fn.version="1.14.0";var bn,yn,wn,An,xn,Sn,En=[],Tn=!1;function Dn(){En.forEach((function(e){clearInterval(e.pid)})),En=[]}function In(){clearInterval(Sn)}var On,Cn=lt((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=Ze(),c=!1;yn!==n&&(yn=n,Dn(),bn=t.scroll,o=t.scrollFn,!0===bn&&(bn=it(n,!0)));var d=0,f=bn;do{var p=f,h=$e(p),m=h.top,g=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,w=void 0,A=void 0,x=p.scrollWidth,S=p.scrollHeight,E=Ke(p),T=p.scrollLeft,D=p.scrollTop;p===u?(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY));var I=w&&(Math.abs(_-i)<=l&&T+b<x)-(Math.abs(v-i)<=l&&!!T),O=A&&(Math.abs(g-a)<=l&&D+y<S)-(Math.abs(m-a)<=l&&!!D);if(!En[d])for(var C=0;C<=d;C++)En[C]||(En[C]={});En[d].vx==I&&En[d].vy==O&&En[d].el===p||(En[d].el=p,En[d].vx=I,En[d].vy=O,clearInterval(En[d].pid),0==I&&0==O||(c=!0,En[d].pid=setInterval(function(){r&&0===this.layer&&fn.active._onTouchMove(xn);var t=En[this.layer].vy?En[this.layer].vy*s:0,n=En[this.layer].vx?En[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(fn.dragged.parentNode[ft],n,t,e,xn,En[this.layer].el)||st(En[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=it(f,!1)));Tn=c}}),30),kn=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function Mn(){}function Pn(){}Mn.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=tt(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:kn},Oe(Mn,{pluginName:"revertOnSpill"}),Pn.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:kn},Oe(Pn,{pluginName:"removeOnSpill"});var Rn,Nn,jn,Ln,Bn,Fn=[],zn=[],Hn=!1,Un=!1,Xn=!1;function Yn(e,t){zn.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Gn(){Fn.forEach((function(e){e!==jn&&e.parentNode&&e.parentNode.removeChild(e)}))}fn.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?He(document,"dragover",this._handleAutoScroll):this.options.supportPointer?He(document,"pointermove",this._handleFallbackAutoScroll):t.touches?He(document,"touchmove",this._handleFallbackAutoScroll):He(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ue(document,"dragover",this._handleAutoScroll):(Ue(document,"pointermove",this._handleFallbackAutoScroll),Ue(document,"touchmove",this._handleFallbackAutoScroll),Ue(document,"mousemove",this._handleFallbackAutoScroll)),In(),Dn(),clearTimeout(Ve),Ve=void 0},nulling:function(){xn=yn=bn=Tn=Sn=wn=An=null,En.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(xn=e,t||this.options.forceAutoScrollFallback||Ne||Re||Le){Cn(e,this.options,i,t);var a=it(i,!0);!Tn||Sn&&r===wn&&o===An||(Sn&&In(),Sn=setInterval((function(){var i=it(document.elementFromPoint(r,o),!0);i!==a&&(a=i,Dn()),Cn(e,n.options,i,t)}),10),wn=r,An=o)}else{if(!this.options.bubbleScroll||it(i,!0)===Ze())return void Dn();Cn(e,this.options,it(i,!1),!1)}}},Oe(e,{pluginName:"scroll",initializeByDefault:!0})}),fn.mount(Pn,Mn);var Vn,qn=Object.freeze(Object.defineProperty({__proto__:null,default:fn,MultiDrag:function(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?He(document,"pointerup",this._deselectMultiDrag):(He(document,"mouseup",this._deselectMultiDrag),He(document,"touchend",this._deselectMultiDrag)),He(document,"keydown",this._checkKeyDown),He(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";Fn.length&&Nn===e?Fn.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){var t=e.dragEl;jn=t},delayEnded:function(){this.isMultiDrag=~Fn.indexOf(jn)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Fn.length;r++)zn.push(ut(Fn[r])),zn[r].sortableIndex=Fn[r].sortableIndex,zn[r].draggable=!1,zn[r].style["will-change"]="",We(zn[r],this.options.selectedClass,!1),Fn[r]===jn&&We(zn[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,o=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Fn.length&&Nn===t&&(Yn(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Yn(!1,n),zn.forEach((function(e){Ke(e,"display","")})),t(),Bn=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(zn.forEach((function(e){Ke(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),Bn=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Nn&&Nn.multiDrag._deselectMultiDrag(),Fn.forEach((function(e){e.sortableIndex=rt(e)})),Fn=Fn.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Xn=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Fn.forEach((function(e){e!==jn&&Ke(e,"position","absolute")}));var r=$e(jn,!1,!0,!0);Fn.forEach((function(e){e!==jn&&ct(e,r)})),Un=!0,Hn=!0}n.animateAll((function(){Un=!1,Hn=!1,t.options.animation&&Fn.forEach((function(e){dt(e)})),t.options.sort&&Gn()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Un&&~Fn.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;Fn.length>1&&(Fn.forEach((function(e){r.addAnimationState({target:e,rect:Un?$e(e):o}),dt(e),e.fromRect=o,t.removeAnimationState(e)})),Un=!1,function(e,t){Fn.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,o=e.activeSortable,i=e.parentEl,a=e.putSortable,l=this.options;if(r){if(n&&o._hideClone(),Hn=!1,l.animation&&Fn.length>1&&(Un||!n&&!o.options.sort&&!a)){var s=$e(jn,!1,!0,!0);Fn.forEach((function(e){e!==jn&&(ct(e,s),i.appendChild(e))})),Un=!0}if(!n)if(Un||Gn(),Fn.length>1){var u=Bn;o._showClone(t),o.options.animation&&!Bn&&u&&zn.forEach((function(e){o.addAnimationState({target:e,rect:Ln}),e.fromRect=Ln,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Fn.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ln=Oe({},t);var o=Qe(jn,!0);Ln.top-=o.f,Ln.left-=o.e}},dragOverAnimationComplete:function(){Un&&(Un=!1,Gn())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,i=e.dispatchSortableEvent,a=e.oldIndex,l=e.putSortable,s=l||this.sortable;if(t){var u=this.options,c=r.children;if(!Xn)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),We(jn,u.selectedClass,!~Fn.indexOf(jn)),~Fn.indexOf(jn))Fn.splice(Fn.indexOf(jn),1),Rn=null,vt({sortable:o,rootEl:n,name:"deselect",targetEl:jn,originalEvt:t});else{if(Fn.push(jn),vt({sortable:o,rootEl:n,name:"select",targetEl:jn,originalEvt:t}),t.shiftKey&&Rn&&o.el.contains(Rn)){var d,f,p=rt(Rn),h=rt(jn);if(~p&&~h&&p!==h)for(h>p?(f=p,d=h):(f=h,d=p+1);f<d;f++)~Fn.indexOf(c[f])||(We(c[f],u.selectedClass,!0),Fn.push(c[f]),vt({sortable:o,rootEl:n,name:"select",targetEl:c[f],originalEvt:t}))}else Rn=jn;Nn=s}if(Xn&&this.isMultiDrag){if(Un=!1,(r[ft].options.sort||r!==n)&&Fn.length>1){var m=$e(jn),g=rt(jn,":not(."+this.options.selectedClass+")");if(!Hn&&u.animation&&(jn.thisAnimationDuration=null),s.captureAnimationState(),!Hn&&(u.animation&&(jn.fromRect=m,Fn.forEach((function(e){if(e.thisAnimationDuration=null,e!==jn){var t=Un?$e(e):m;e.fromRect=t,s.addAnimationState({target:e,rect:t})}}))),Gn(),Fn.forEach((function(e){c[g]?r.insertBefore(e,c[g]):r.appendChild(e),g++})),a===rt(jn))){var v=!1;Fn.forEach((function(e){e.sortableIndex===rt(e)||(v=!0)})),v&&i("update")}Fn.forEach((function(e){dt(e)})),s.animateAll()}Nn=s}(n===r||l&&"clone"!==l.lastPutMode)&&zn.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=Xn=!1,zn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Ue(document,"pointerup",this._deselectMultiDrag),Ue(document,"mouseup",this._deselectMultiDrag),Ue(document,"touchend",this._deselectMultiDrag),Ue(document,"keydown",this._checkKeyDown),Ue(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==Xn&&Xn||Nn!==this.sortable||e&&Ge(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Fn.length;){var t=Fn[0];We(t,this.options.selectedClass,!1),Fn.shift(),vt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Oe(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[ft];t&&t.options.multiDrag&&!~Fn.indexOf(e)&&(Nn&&Nn!==t&&(Nn.multiDrag._deselectMultiDrag(),Nn=t),We(e,t.options.selectedClass,!0),Fn.push(e))},deselect:function(e){var t=e.parentNode[ft],n=Fn.indexOf(e);t&&t.options.multiDrag&&~n&&(We(e,t.options.selectedClass,!1),Fn.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Fn.forEach((function(r){var o;t.push({multiDragElement:r,index:r.sortableIndex}),o=Un&&r!==jn?-1:Un?rt(r,":not(."+e.options.selectedClass+")"):rt(r),n.push({multiDragElement:r,index:o})})),{items:ke(Fn),clones:[].concat(zn),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})},Sortable:fn,Swap:function(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;On=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,i=e.changed,a=e.cancel;if(o.options.swap){var l=this.sortable.el,s=this.options;if(n&&n!==l){var u=On;!1!==r(n)?(We(n,s.swapClass,!0),On=n):On=null,u&&u!==On&&We(u,s.swapClass,!1)}i(),t(!0),a()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,o=n||this.sortable,i=this.options;On&&We(On,i.swapClass,!1),On&&(i.swap||n&&n.options.swap)&&r!==On&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),function(e,t){var n,r,o=e.parentNode,i=t.parentNode;if(!o||!i||o.isEqualNode(t)||i.isEqualNode(e))return;n=rt(e),r=rt(t),o.isEqualNode(i)&&n<r&&r++;o.insertBefore(t,o.children[n]),i.insertBefore(e,i.children[r])}(r,On),o.animateAll(),o!==t&&t.animateAll())},nulling:function(){On=null}},Oe(e,{pluginName:"swap",eventProperties:function(){return{swapItem:On}}})}},Symbol.toStringTag,{value:"Module"}));"undefined"!=typeof self&&self,Vn=function(e,t){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===n(e)&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(o,i,function(t){return e[t]}.bind(null,i));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,r){var o=r("fc6a"),i=r("241c").f,a={}.toString,l="object"==("undefined"==typeof window?"undefined":n(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(t){return l.slice()}}(e):i(o(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),i=n("5c6c"),a=n("fc6a"),l=n("c04e"),s=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=l(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},"13d5":function(e,t,n){var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),l=i("reduce"),s=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!l||!s},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,r){var o=r("c6b6"),i=r("9263");e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var a=r.call(e,t);if("object"!==n(a))throw TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==o(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var l in o){var s=r[l],u=s&&s.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(c){u.forEach=i}}},"17c2":function(e,t,n){var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),l=i("forEach");e.exports=a&&l?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,n){var r=n("b622")("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(l){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(l){}return n}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},"23e7":function(e,t,r){var o=r("da84"),i=r("06cf").f,a=r("9112"),l=r("6eeb"),s=r("ce4e"),u=r("e893"),c=r("94ca");e.exports=function(e,t){var r,d,f,p,h,m=e.target,g=e.global,v=e.stat;if(r=g?o:v?o[m]||s(m,{}):(o[m]||{}).prototype)for(d in t){if(p=t[d],f=e.noTargetGet?(h=i(r,d))&&h.value:r[d],!c(g?d:m+(v?".":"#")+d,e.forced)&&void 0!==f){if(n(p)===n(f))continue;u(p,f)}(e.sham||f&&f.sham)&&a(p,"sham",!0),l(r,d,p,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25f0":function(e,t,n){var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),l="toString",s=RegExp.prototype,u=s.toString,c=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=l;(c||d)&&r(RegExp.prototype,l,(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in s)?a.call(e):n)}),{unsafe:!0})},"2ca0":function(e,t,n){var r,o=n("23e7"),i=n("06cf").f,a=n("50c4"),l=n("5a34"),s=n("1d80"),u=n("ab13"),c=n("c430"),d="".startsWith,f=Math.min,p=u("startsWith");o({target:"String",proto:!0,forced:!(!c&&!p&&(r=i(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=String(s(this));l(e);var n=a(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r,o,i=n("da84"),a=n("342f"),l=i.process,s=l&&l.versions,u=s&&s.v8;u?o=(r=u.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),i=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),l=r.length,s=0;l>s;)o.f(e,n=r[s++],t[n]);return e}},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",l=o.set,s=o.getterFor(a);i(String,"String",(function(e){l(this,{type:a,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},"44e7":function(e,t,n){var r=n("861d"),o=n("c6b6"),i=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(e){return function(t,n,a){var l,s=r(t),u=o(s.length),c=i(a,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(e,t,n){var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),l=i("filter"),s=a("filter");r({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),l=n("50c4"),s=n("8418"),u=n("35a1");e.exports=function(e){var t,n,c,d,f,p,h=o(e),m="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,_=void 0!==v,b=u(h),y=0;if(_&&(v=r(v,g>2?arguments[2]:void 0,2)),null==b||m==Array&&a(b))for(n=new m(t=l(h.length));t>y;y++)p=_?v(h[y],y):h[y],s(n,y,p);else for(f=(d=b.call(h)).next,n=new m;!(c=f.call(d)).done;y++)p=_?i(d,v,[c.value,y],!0):c.value,s(n,y,p);return n.length=y,n}},"4fad":function(e,t,n){var r=n("23e7"),o=n("6f53").entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var r=n("d784"),o=n("825a"),i=n("7b0b"),a=n("50c4"),l=n("a691"),s=n("1d80"),u=n("8aa5"),c=n("14c3"),d=Math.max,f=Math.min,p=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,m=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,_=g?"$":"$0";return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&v||"string"==typeof r&&-1===r.indexOf(_)){var i=n(t,e,this,r);if(i.done)return i.value}var s=o(e),p=String(this),h="function"==typeof r;h||(r=String(r));var m=s.global;if(m){var y=s.unicode;s.lastIndex=0}for(var w=[];;){var A=c(s,p);if(null===A)break;if(w.push(A),!m)break;""===String(A[0])&&(s.lastIndex=u(p,a(s.lastIndex),y))}for(var x,S="",E=0,T=0;T<w.length;T++){A=w[T];for(var D=String(A[0]),I=d(f(l(A.index),p.length),0),O=[],C=1;C<A.length;C++)O.push(void 0===(x=A[C])?x:String(x));var k=A.groups;if(h){var M=[D].concat(O,I,p);void 0!==k&&M.push(k);var P=String(r.apply(void 0,M))}else P=b(D,p,I,O,k,r);I>=E&&(S+=p.slice(E,I)+P,E=I+D.length)}return S+p.slice(E)}];function b(e,n,r,o,a,l){var s=r+e.length,u=o.length,c=m;return void 0!==a&&(a=i(a),c=h),t.call(l,c,(function(t,i){var l;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=a[i.slice(1,-1)];break;default:var c=+i;if(0===c)return t;if(c>u){var d=p(c/10);return 0===d?t:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}l=o[c-1]}return void 0===l?"":l}))}}))},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5db7":function(e,t,n){var r=n("23e7"),o=n("a2bf"),i=n("7b0b"),a=n("50c4"),l=n("1c0b"),s=n("65f0");r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=a(n.length);return l(e),(t=s(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),i=function(e){return function(t,n){var i,a,l=String(o(t)),s=r(n),u=l.length;return s<0||s>=u?e?"":void 0:(i=l.charCodeAt(s))<55296||i>56319||s+1===u||(a=l.charCodeAt(s+1))<56320||a>57343?e?l.charAt(s):i:e?l.slice(s,s+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),i=n("b622")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,i,a=n("7f9a"),l=n("da84"),s=n("861d"),u=n("9112"),c=n("5135"),d=n("f772"),f=n("d012"),p=l.WeakMap;if(a){var h=new p,m=h.get,g=h.has,v=h.set;r=function(e,t){return v.call(h,e,t),t},o=function(e){return m.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var _=d("state");f[_]=!0,r=function(e,t){return u(e,_,t),t},o=function(e){return c(e,_)?e[_]:{}},i=function(e){return c(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),l=n("8925"),s=n("69f3"),u=s.get,c=s.enforce,d=String(String).split("String");(e.exports=function(e,t,n,l){var s=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,f=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(s?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),i=n("fc6a"),a=n("d1e7").f,l=function(e){return function(t){for(var n,l=i(t),s=o(l),u=s.length,c=0,d=[];u>c;)n=s[c++],r&&!a.call(l,n)||d.push(e?[n,l[n]]:l[n]);return d}};e.exports={entries:l(!0),values:l(!1)}},"73d9":function(e,t,n){n("44d2")("flatMap")},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),l=n("d012"),s=n("1be4"),u=n("cc12"),c=n("f772"),d=c("IE_PROTO"),f=function(){},p=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(o){}var e,t;h=r?function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=u("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};l[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=o(e),n=new f,f.prototype=null,n[d]=e):n=h(),void 0===t?n:i(n,t)}},"7dd0":function(e,t,n){var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),l=n("d44e"),s=n("9112"),u=n("6eeb"),c=n("b622"),d=n("c430"),f=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,m=p.BUGGY_SAFARI_ITERATORS,g=c("iterator"),v="keys",_="values",b="entries",y=function(){return this};e.exports=function(e,t,n,c,p,w,A){o(n,t,c);var x,S,E,T=function(e){if(e===p&&k)return k;if(!m&&e in O)return O[e];switch(e){case v:case _:case b:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",I=!1,O=e.prototype,C=O[g]||O["@@iterator"]||p&&O[p],k=!m&&C||T(p),M="Array"==t&&O.entries||C;if(M&&(x=i(M.call(new e)),h!==Object.prototype&&x.next&&(d||i(x)===h||(a?a(x,h):"function"!=typeof x[g]&&s(x,g,y)),l(x,D,!0,!0),d&&(f[D]=y))),p==_&&C&&C.name!==_&&(I=!0,k=function(){return C.call(this)}),d&&!A||O[g]===k||s(O,g,k),f[t]=k,p)if(S={values:T(_),keys:w?k:T(v),entries:T(b)},A)for(E in S)(m||I||!(E in O))&&u(O,E,S[E]);else r({target:t,proto:!0,forced:m||I},S);return S}},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(e,t,n){var r=n("c04e"),o=n("9bf2"),i=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},"861d":function(e,t){e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},8875:function(e,t,n){var r,o,i;"undefined"!=typeof self&&self,o=[],void 0===(i="function"==typeof(r=function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,r,o,i=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(f.stack)||i.exec(f.stack),l=a&&a[1]||!1,s=a&&a[2]||!1,u=document.location.href.replace(document.location.hash,""),c=document.getElementsByTagName("script");l===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(s-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var d=0;d<c.length;d++){if("interactive"===c[d].readyState)return c[d];if(c[d].src===l)return c[d];if(l===u&&c[d].innerHTML&&c[d].innerHTML.trim()===o)return c[d]}return null}}return e})?r.apply(t,o):r)||(e.exports=i)},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var r,o,i=n("ad6d"),a=n("9f7f"),l=RegExp.prototype.exec,s=String.prototype.replace,u=l,c=(r=/a/,o=/b*/g,l.call(r,"a"),l.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),d=a.UNSUPPORTED_Y||a.BROKEN_CARET,f=void 0!==/()??/.exec("")[1];(c||f||d)&&(u=function(e){var t,n,r,o,a=this,u=d&&a.sticky,p=i.call(a),h=a.source,m=0,g=e;return u&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),g=String(e).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==e[a.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,m++),n=new RegExp("^(?:"+h+")",p)),f&&(n=new RegExp("^"+h+"$(?!\\s)",p)),c&&(t=a.lastIndex),r=l.call(u?n:a,g),u?r?(r.input=r.input.slice(m),r[0]=r[0].slice(m),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:c&&r&&(a.lastIndex=a.global?r.index+r[0].length:t),f&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=u},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,i=function(e,t){var n=l[a(e)];return n==u||n!=s&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";e.exports=i},"99af":function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),l=n("7b0b"),s=n("50c4"),u=n("8418"),c=n("65f0"),d=n("1dde"),f=n("b622"),p=n("2d00"),h=f("isConcatSpreadable"),m=9007199254740991,g="Maximum allowed index exceeded",v=p>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),_=d("concat"),b=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!v||!_},{concat:function(e){var t,n,r,o,i,a=l(this),d=c(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(b(i=-1===t?a:arguments[t])){if(f+(o=s(i.length))>m)throw TypeError(g);for(n=0;n<o;n++,f++)n in i&&u(d,f,i[n])}else{if(f>=m)throw TypeError(g);u(d,f++,i)}return d.length=f,d}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&r(i.call(e)),a}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),a=n("c04e"),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),a=n("d44e"),l=n("3f8c"),s=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),l[u]=s,e}},"9f7f":function(e,t,n){var r=n("d039");function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a2bf:function(e,t,n){var r=n("e8b5"),o=n("50c4"),i=n("0366");e.exports=function e(t,n,a,l,s,u,c,d){for(var f,p=s,h=0,m=!!c&&i(c,d,3);h<l;){if(h in a){if(f=m?m(a[h],h,n):a[h],u>0&&r(f))p=e(t,n,f,o(f.length),p,u-1)-1;else{if(p>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[p]=f}p++}h++}return p}},a352:function(e,n){e.exports=t},a434:function(e,t,n){var r=n("23e7"),o=n("23cb"),i=n("a691"),a=n("50c4"),l=n("7b0b"),s=n("65f0"),u=n("8418"),c=n("1dde"),d=n("ae40"),f=c("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,m=Math.min,g=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!f||!p},{splice:function(e,t){var n,r,c,d,f,p,_=l(this),b=a(_.length),y=o(e,b),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=b-y):(n=w-2,r=m(h(i(t),0),b-y)),b+n-r>g)throw TypeError(v);for(c=s(_,r),d=0;d<r;d++)(f=y+d)in _&&u(c,d,_[f]);if(c.length=r,n<r){for(d=y;d<b-r;d++)p=d+n,(f=d+r)in _?_[p]=_[f]:delete _[p];for(d=b;d>b-r+n;d--)delete _[d-1]}else if(n>r)for(d=b-r;d>y;d--)p=d+n-1,(f=d+r-1)in _?_[p]=_[f]:delete _[p];for(d=0;d<n;d++)_[d+y]=arguments[d+2];return _.length=b-r+n,c}})},a4d3:function(e,t,r){var o=r("23e7"),i=r("da84"),a=r("d066"),l=r("c430"),s=r("83ab"),u=r("4930"),c=r("fdbf"),d=r("d039"),f=r("5135"),p=r("e8b5"),h=r("861d"),m=r("825a"),g=r("7b0b"),v=r("fc6a"),_=r("c04e"),b=r("5c6c"),y=r("7c73"),w=r("df75"),A=r("241c"),x=r("057f"),S=r("7418"),E=r("06cf"),T=r("9bf2"),D=r("d1e7"),I=r("9112"),O=r("6eeb"),C=r("5692"),k=r("f772"),M=r("d012"),P=r("90e3"),R=r("b622"),N=r("e538"),j=r("746f"),L=r("d44e"),B=r("69f3"),F=r("b727").forEach,z=k("hidden"),H="Symbol",U=R("toPrimitive"),X=B.set,Y=B.getterFor(H),G=Object.prototype,V=i.Symbol,q=a("JSON","stringify"),W=E.f,K=T.f,Q=x.f,J=D.f,Z=C("symbols"),$=C("op-symbols"),ee=C("string-to-symbol-registry"),te=C("symbol-to-string-registry"),ne=C("wks"),re=i.QObject,oe=!re||!re.prototype||!re.prototype.findChild,ie=s&&d((function(){return 7!=y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(G,t);r&&delete G[t],K(e,t,n),r&&e!==G&&K(G,t,r)}:K,ae=function(e,t){var n=Z[e]=y(V.prototype);return X(n,{type:H,tag:e,description:t}),s||(n.description=t),n},le=c?function(e){return"symbol"==n(e)}:function(e){return Object(e)instanceof V},se=function(e,t,n){e===G&&se($,t,n),m(e);var r=_(t,!0);return m(n),f(Z,r)?(n.enumerable?(f(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:b(0,!1)})):(f(e,z)||K(e,z,b(1,{})),e[z][r]=!0),ie(e,r,n)):K(e,r,n)},ue=function(e,t){m(e);var n=v(t),r=w(n).concat(pe(n));return F(r,(function(t){s&&!ce.call(n,t)||se(e,t,n[t])})),e},ce=function(e){var t=_(e,!0),n=J.call(this,t);return!(this===G&&f(Z,t)&&!f($,t))&&(!(n||!f(this,t)||!f(Z,t)||f(this,z)&&this[z][t])||n)},de=function(e,t){var n=v(e),r=_(t,!0);if(n!==G||!f(Z,r)||f($,r)){var o=W(n,r);return!o||!f(Z,r)||f(n,z)&&n[z][r]||(o.enumerable=!0),o}},fe=function(e){var t=Q(v(e)),n=[];return F(t,(function(e){f(Z,e)||f(M,e)||n.push(e)})),n},pe=function(e){var t=e===G,n=Q(t?$:v(e)),r=[];return F(n,(function(e){!f(Z,e)||t&&!f(G,e)||r.push(Z[e])})),r};u||(V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=P(e),n=function e(n){this===G&&e.call($,n),f(this,z)&&f(this[z],t)&&(this[z][t]=!1),ie(this,t,b(1,n))};return s&&oe&&ie(G,t,{configurable:!0,set:n}),ae(t,e)},O(V.prototype,"toString",(function(){return Y(this).tag})),O(V,"withoutSetter",(function(e){return ae(P(e),e)})),D.f=ce,T.f=se,E.f=de,A.f=x.f=fe,S.f=pe,N.f=function(e){return ae(R(e),e)},s&&(K(V.prototype,"description",{configurable:!0,get:function(){return Y(this).description}}),l||O(G,"propertyIsEnumerable",ce,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),F(w(ne),(function(e){j(e)})),o({target:H,stat:!0,forced:!u},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=V(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),o({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:de}),o({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:fe,getOwnPropertySymbols:pe}),o({target:"Object",stat:!0,forced:d((function(){S.f(1)}))},{getOwnPropertySymbols:function(e){return S.f(g(e))}}),q&&o({target:"JSON",stat:!0,forced:!u||d((function(){var e=V();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(h(t)||void 0!==e)&&!le(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!le(t))return t}),o[1]=t,q.apply(null,o)}}),V.prototype[U]||I(V.prototype,U,V.prototype.valueOf),L(V,H),M[z]=!0},a630:function(e,t,n){var r=n("23e7"),o=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:o})},a640:function(e,t,n){var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n("b622")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},ac1f:function(e,t,n){var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,n){var r=n("83ab"),o=n("d039"),i=n("5135"),a=Object.defineProperty,l={},s=function(e){throw e};e.exports=function(e,t){if(i(l,e))return l[e];t||(t={});var n=[][e],u=!!i(t,"ACCESSORS")&&t.ACCESSORS,c=i(t,0)?t[0]:s,d=i(t,1)?t[1]:void 0;return l[e]=!!n&&!o((function(){if(u&&!r)return!0;var e={length:-1};u?a(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,c,d)}))}},ae93:function(e,t,n){var r,o,i,a=n("e163"),l=n("9112"),s=n("5135"),u=n("b622"),c=n("c430"),d=u("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),null==r&&(r={}),c||s(r,d)||l(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},b041:function(e,t,n){var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,a=i.toString,l=/^\s*function ([^ (]*)/,s="name";r&&!(s in i)&&o(i,s,{configurable:!0,get:function(){try{return a.call(this).match(l)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),o=n("5692"),i=n("5135"),a=n("90e3"),l=n("4930"),s=n("fdbf"),u=o("wks"),c=r.Symbol,d=s?c:c&&c.withoutSetter||a;e.exports=function(e){return i(u,e)||(l&&i(c,e)?u[e]=c[e]:u[e]=d("Symbol."+e)),u[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),i=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){i(1)}))},{keys:function(e){return i(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),a=n("50c4"),l=n("65f0"),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d;return function(p,h,m,g){for(var v,_,b=i(p),y=o(b),w=r(h,m,3),A=a(y.length),x=0,S=g||l,E=t?S(p,A):n?S(p,0):void 0;A>x;x++)if((f||x in y)&&(_=w(v=y[x],x,b),e))if(t)E[x]=_;else if(_)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:s.call(E,v)}else if(c)return!1;return d?-1:u||c?c:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},c740:function(e,t,n){var r=n("23e7"),o=n("b727").findIndex,i=n("44d2"),a=n("ae40"),l="findIndex",s=!0,u=a(l);l in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(l)},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(o){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},c975:function(e,t,n){var r=n("23e7"),o=n("4d64").indexOf,i=n("a640"),a=n("ae40"),l=[].indexOf,s=!!l&&1/[1].indexOf(1,-0)<0,u=i("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:s||!u||!c},{indexOf:function(e){return s?l.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,a=n("d012");e.exports=function(e,t){var n,l=o(e),s=0,u=[];for(n in l)!r(a,n)&&r(l,n)&&u.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~i(u,n)||u.push(n));return u}},caad:function(e,t,n){var r=n("23e7"),o=n("4d64").includes,i=n("44d2");r({target:"Array",proto:!0,forced:!n("ae40")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),o=n("da84"),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},d1e7:function(e,t,n){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),i=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),i=n("44ad"),a=n("50c4"),l=function(e){return function(t,n,l,s){r(n);var u=o(t),c=i(u),d=a(u.length),f=e?d-1:0,p=e?-1:1;if(l<2)for(;;){if(f in c){s=c[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=p)f in c&&(s=n(s,c[f],f,u));return s}};e.exports={left:l(!1),right:l(!0)}},d784:function(e,t,n){n("ac1f");var r=n("6eeb"),o=n("d039"),i=n("b622"),a=n("9263"),l=n("9112"),s=i("species"),u=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c="$0"==="a".replace(/./,"$0"),d=i("replace"),f=!!/./[d]&&""===/./[d]("a","$0"),p=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,d){var h=i(e),m=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=m&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!m||!g||"replace"===e&&(!u||!c||f)||"split"===e&&!p){var v=/./[h],_=n(h,""[e],(function(e,t,n,r,o){return t.exec===a?m&&!o?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),b=_[0],y=_[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}d&&l(RegExp.prototype[h],"sham",!0)}},d81d:function(e,t,n){var r=n("23e7"),o=n("b727").map,i=n("1dde"),a=n("ae40"),l=i("map"),s=a("map");r({target:"Array",proto:!0,forced:!l||!s},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==("undefined"==typeof globalThis?"undefined":n(globalThis))&&globalThis)||r("object"==("undefined"==typeof window?"undefined":n(window))&&window)||r("object"==("undefined"==typeof self?"undefined":n(self))&&self)||r("object"==n(t)&&t)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),a=n("fc6a"),l=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=l.f,u=i(r),c={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&s(c,t,n);return c}})},dbf1:function(e,t,n){(function(e){n.d(t,"a",(function(){return r}));var r="undefined"!=typeof window?window.console:e.console}).call(this,n("c8ba"))},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),a=n("9112"),l=n("b622"),s=l("iterator"),u=l("toStringTag"),c=i.values;for(var d in o){var f=r[d],p=f&&f.prototype;if(p){if(p[s]!==c)try{a(p,s,c)}catch(m){p[s]=c}if(p[u]||a(p,u,d),o[d])for(var h in i)if(p[h]!==i[h])try{a(p,h,i[h])}catch(m){p[h]=i[h]}}}},df75:function(e,t,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},e01a:function(e,t,n){var r=n("23e7"),o=n("83ab"),i=n("da84"),a=n("5135"),l=n("861d"),s=n("9bf2").f,u=n("e893"),c=i.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new c(e):void 0===e?c():c(e);return""===e&&(d[t]=!0),t};u(f,c);var p=f.prototype=c.prototype;p.constructor=f;var h=p.toString,m="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;s(p,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=h.call(e);if(a(d,e))return"";var n=m?t.slice(7,-1):t.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),a=n("e177"),l=i("IE_PROTO"),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),a=n("69f3"),l=n("7dd0"),s="Array Iterator",u=a.set,c=a.getterFor(s);e.exports=l(Array,"Array",(function(e,t){u(this,{type:s,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),a=n("06cf").f,l=n("83ab"),s=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!l||s,sham:!l},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=o(t),l=a.f,s=i.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||l(e,c,s(t,c))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),i=n("b622")("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},fb15:function(e,t,n){if(n.r(t),"undefined"!=typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n("99af"),n("4de4"),n("4160"),n("c975"),n("d81d"),n("a434"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0"),n("a630"),n("fb6a"),n("b0c0"),n("25f0");var p=n("a352"),h=n.n(p);function m(e){null!==e.parentElement&&e.parentElement.removeChild(e)}function g(e,t,n){var r=0===n?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var v=n("dbf1");n("13d5"),n("4fad"),n("ac1f"),n("5319");var _,b,y=/-(\w)/g,w=(_=function(e){return e.replace(y,(function(e,t){return t.toUpperCase()}))},b=Object.create(null),function(e){return b[e]||(b[e]=_(e))});n("5db7"),n("73d9");var A=["Start","Add","Remove","Update","End"],x=["Choose","Unchoose","Sort","Filter","Clone"],S=["Move"],E=[S,A,x].flatMap((function(e){return e})).map((function(e){return"on".concat(e)})),T={manage:S,manageAndEmit:A,emit:x};n("caad"),n("2ca0");var D=["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 I(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function O(e){return e.reduce((function(e,t){var n=d(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}function C(e){return Object.entries(e).filter((function(e){var t=d(e,2),n=t[0];return t[1],!I(n)})).map((function(e){var t=d(e,2),n=t[0],r=t[1];return[w(n),r]})).filter((function(e){var t,n=d(e,2),r=n[0];return n[1],t=r,!(-1!==E.indexOf(t))}))}function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n("c740");var M=function(e){return e.el},P=function(e){return e.__draggable_context},R=function(){function e(t){var n=t.nodes,r=n.header,o=n.default,i=n.footer,a=t.root,l=t.realList;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultNodes=o,this.children=[].concat(f(r),f(o),f(i)),this.externalComponent=a.externalComponent,this.rootTransition=a.transition,this.tag=a.tag,this.realList=l}var t,n,r;return t=e,n=[{key:"render",value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:"updated",value:function(){var e=this.defaultNodes,t=this.realList;e.forEach((function(e,n){var r,o;r=M(e),o={element:t[n],index:n},r.__draggable_context=o}))}},{key:"getUnderlyingVm",value:function(e){return P(e)}},{key:"getVmIndexFromDomIndex",value:function(e,t){var n=this.defaultNodes,r=n.length,o=t.children,i=o.item(e);if(null===i)return r;var a=P(i);if(a)return a.index;if(0===r)return 0;var l=M(n[0]),s=f(o).findIndex((function(e){return e===l}));return e<s?0:r}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}],n&&k(t.prototype,n),r&&k(t,r),e}(),N=n("8bbf");function j(e){var t=["transition-group","TransitionGroup"].includes(e),n=!function(e){return D.includes(e)}(e)&&!t;return{transition:t,externalComponent:n,tag:n?Object(N.resolveComponent)(e):t?N.TransitionGroup:e}}function L(e){var t=e.$slots,n=e.tag,r=e.realList,o=function(e){var t=e.$slots,n=e.realList,r=e.getKey,o=n||[],i=d(["header","footer"].map((function(e){return(n=t[e])?n():[];var n})),2),a=i[0],l=i[1],u=t.item;if(!u)throw new Error("draggable element must have an item slot");var c=o.flatMap((function(e,t){return u({element:e,index:t}).map((function(t){return t.key=r(e),t.props=s(s({},t.props||{}),{},{"data-draggable":!0}),t}))}));if(c.length!==o.length)throw new Error("Item slot must have only one child");return{header:a,footer:l,default:c}}({$slots:t,realList:r,getKey:e.getKey}),i=j(n);return new R({nodes:o,root:i,realList:r})}function B(e,t){var n=this;Object(N.nextTick)((function(){return n.$emit(e.toLowerCase(),t)}))}function F(e){var t=this;return function(n,r){if(null!==t.realList)return t["onDrag".concat(e)](n,r)}}function z(e){var t=this,n=F.call(this,e);return function(r,o){n.call(t,r,o),B.call(t,e,r)}}var H=null,U={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(e){return e}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},X=["update:modelValue","change"].concat(f([].concat(f(T.manageAndEmit),f(T.emit)).map((function(e){return e.toLowerCase()})))),Y=Object(N.defineComponent)({name:"draggable",inheritAttrs:!1,props:U,emits:X,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,o=L({$slots:e,tag:n,realList:this.realList,getKey:this.getKey});this.componentStructure=o;var i=function(e){var t=e.$attrs,n=e.componentData,r=void 0===n?{}:n;return s(s({},O(Object.entries(t).filter((function(e){var t=d(e,2),n=t[0];return t[1],I(n)})))),r)}({$attrs:t,componentData:r});return o.render(N.h,i)}catch(a){return this.error=!0,Object(N.h)("pre",{style:{color:"red"}},a.stack)}},created:function(){null!==this.list&&null!==this.modelValue&&v.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=function(e){var t=e.$attrs,n=e.callBackBuilder,r=O(C(t));Object.entries(n).forEach((function(e){var t=d(e,2),n=t[0],o=t[1];T[n].forEach((function(e){r["on".concat(e)]=o(e)}))}));var o="[data-draggable]".concat(r.draggable||"");return s(s({},r),{},{draggable:o})}({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return z.call(e,t)},emit:function(t){return B.bind(e,t)},manage:function(t){return F.call(e,t)}}}),o=1===n.nodeType?n:n.parentElement;this._sortable=new h.a(o,r),this.targetDomElement=o,o.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){void 0!==this._sortable&&this._sortable.destroy()},computed:{realList:function(){var e=this.list;return e||this.modelValue},getKey:function(){var e=this.itemKey;return"function"==typeof e?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&C(e).forEach((function(e){var n=d(e,2),r=n[0],o=n[1];t.option(r,o)}))},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;Object(N.nextTick)((function(){return t.$emit("change",e)}))},alterList:function(e){if(this.list)e(this.list);else{var t=f(this.modelValue);e(t),this.$emit("update:modelValue",t)}},spliceList:function(){var e=arguments,t=function(t){return t.splice.apply(t,f(e))};this.alterList(t)},updatePosition:function(e,t){var n=function(n){return n.splice(t,0,n.splice(e,1)[0])};this.alterList(n)},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var o=r.realList,i={list:o,component:r};return t!==n&&o?s(s({},r.getUnderlyingVm(n)||{}),i):i},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),H=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(void 0!==t){m(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(g(this.$el,e.item,e.oldIndex),"clone"!==e.pullMode){var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var o={element:r,oldIndex:n};this.emitChanges({removed:o})}else m(e.clone)},onDragUpdate:function(e){m(e.item),g(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=f(t.to.children).filter((function(e){return"none"!==e.style.display})),r=n.indexOf(t.related),o=e.component.getVmIndexFromDomIndex(r);return-1===n.indexOf(H)&&t.willInsertAfter?o+1:o},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var o=this.getRelatedContextFromMoveEvent(e),i=this.computeFutureIndex(o,e),a=s(s({},this.context),{},{futureIndex:i});return n(s(s({},e),{},{relatedContext:o,draggedContext:a}),t)},onDragEnd:function(){H=null}}}),G=Y;t.default=G},fb6a:function(e,t,n){var r=n("23e7"),o=n("861d"),i=n("e8b5"),a=n("23cb"),l=n("50c4"),s=n("fc6a"),u=n("8418"),c=n("b622"),d=n("1dde"),f=n("ae40"),p=d("slice"),h=f("slice",{ACCESSORS:!0,0:0,1:2}),m=c("species"),g=[].slice,v=Math.max;r({target:"Array",proto:!0,forced:!p||!h},{slice:function(e,t){var n,r,c,d=s(this),f=l(d.length),p=a(e,f),h=a(void 0===t?f:t,f);if(i(d)&&("function"!=typeof(n=d.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[m])&&(n=void 0):n=void 0,n===Array||void 0===n))return g.call(d,p,h);for(r=new(void 0===n?Array:n)(v(h-p,0)),c=0;p<h;p++,c++)p in d&&u(r,c,d[p]);return r.length=c,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fdbc:function(e,t){e.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(e,t,r){var o=r("4930");e.exports=o&&!Symbol.sham&&"symbol"==n(Symbol.iterator)}}).default},xe.exports=Vn(Se,h(qn));var Wn=g(xe.exports),Kn="_unitSubject_1ff9w_1",Qn="_unitAnswers_1ff9w_10",Jn="_unitAnswer_1ff9w_10",Zn="_option_1ff9w_22",$n="_value_1ff9w_25",er="_active_1ff9w_37",tr="_answerContent_1ff9w_41",nr="_sortReset_1ff9w_54",rr="_tips_1ff9w_62",or="_itemsContainer_1ff9w_75",ir="_items_1ff9w_75",ar="_imgs_1ff9w_81";
- /**!
- * Sortable 1.15.0
- * @author RubaXa <trash@rubaxa.org>
- * @author owenm <owen23355@gmail.com>
- * @license MIT
- */
- function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}function cr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(){return dr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dr.apply(this,arguments)}function fr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pr(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var hr=pr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),mr=pr(/Edge/i),gr=pr(/firefox/i),vr=pr(/safari/i)&&!pr(/chrome/i)&&!pr(/android/i),_r=pr(/iP(ad|od|hone)/i),br=pr(/chrome/i)&&pr(/android/i),yr={capture:!1,passive:!1};function wr(e,t,n){e.addEventListener(t,n,!hr&&yr)}function Ar(e,t,n){e.removeEventListener(t,n,!hr&&yr)}function xr(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Sr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Er(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&xr(e,t):xr(e,t))||r&&e===n)return e;if(e===n)break}while(e=Sr(e))}return null}var Tr,Dr=/\s+/g;function Ir(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Dr," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Dr," ")}}function Or(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function Cr(e,t){var n="";if("string"==typeof e)n=e;else do{var r=Or(e,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function kr(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function Mr(){var e=document.scrollingElement;return e||document.documentElement}function Pr(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var i,a,l,s,u,c,d;if(e!==window&&e.parentNode&&e!==Mr()?(a=(i=e.getBoundingClientRect()).top,l=i.left,s=i.bottom,u=i.right,c=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!hr))do{if(o&&o.getBoundingClientRect&&("none"!==Or(o,"transform")||n&&"static"!==Or(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(Or(o,"border-top-width")),l-=f.left+parseInt(Or(o,"border-left-width")),s=a+i.height,u=l+i.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=Cr(o||e),h=p&&p.a,m=p&&p.d;p&&(s=(a/=m)+(c/=m),u=(l/=h)+(d/=h))}return{top:a,left:l,bottom:s,right:u,width:d,height:c}}}function Rr(e,t,n){for(var r=Fr(e,!0),o=Pr(e)[t];r;){var i=Pr(r)[n];if(!("top"===n||"left"===n?o>=i:o<=i))return r;if(r===Mr())break;r=Fr(r,!1)}return!1}function Nr(e,t,n,r){for(var o=0,i=0,a=e.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Xo.ghost&&(r||a[i]!==Xo.dragged)&&Er(a[i],n.draggable,e,!1)){if(o===t)return a[i];o++}i++}return null}function jr(e,t){for(var n=e.lastElementChild;n&&(n===Xo.ghost||"none"===Or(n,"display")||t&&!xr(n,t));)n=n.previousElementSibling;return n||null}function Lr(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===Xo.clone||t&&!xr(e,t)||n++;return n}function Br(e){var t=0,n=0,r=Mr();if(e)do{var o=Cr(e),i=o.a,a=o.d;t+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==r&&(e=e.parentNode));return[t,n]}function Fr(e,t){if(!e||!e.getBoundingClientRect)return Mr();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=Or(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return Mr();if(r||t)return n;r=!0}}}while(n=n.parentNode);return Mr()}function zr(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Hr(e,t){return function(){if(!Tr){var n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),Tr=setTimeout((function(){Tr=void 0}),t)}}}function Ur(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Xr(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}var Yr="Sortable"+(new Date).getTime();function Gr(){var e,t=[];return{captureAnimationState:function(){(t=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(e){if("none"!==Or(e,"display")&&e!==Xo.ghost){t.push({target:e,rect:Pr(e)});var n=sr({},t[t.length-1].rect);if(e.thisAnimationDuration){var r=Cr(e,!0);r&&(n.top-=r.f,n.left-=r.e)}e.fromRect=n}}))},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(function(e,t){for(var n in e)if(e.hasOwnProperty(n))for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}(t,{target:e}),1)},animateAll:function(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());var o=!1,i=0;t.forEach((function(e){var t=0,n=e.target,a=n.fromRect,l=Pr(n),s=n.prevFromRect,u=n.prevToRect,c=e.rect,d=Cr(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&zr(s,l)&&!zr(a,l)&&(c.top-l.top)/(c.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=function(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}(c,s,u,r.options)),zr(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,c,l,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate:function(e,t,n,r){if(r){Or(e,"transition",""),Or(e,"transform","");var o=Cr(this.el),i=o&&o.a,a=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,Or(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(e){return e.offsetWidth}(e),Or(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),Or(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){Or(e,"transition",""),Or(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}var Vr=[],qr={initializeByDefault:!0},Wr={mount:function(e){for(var t in qr)qr.hasOwnProperty(t)&&!(t in e)&&(e[t]=qr[t]);Vr.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),Vr.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";Vr.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](sr({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](sr({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in Vr.forEach((function(r){var o=r.pluginName;if(e.options[o]||r.initializeByDefault){var i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,dr(n,i.defaults)}})),e.options)if(e.options.hasOwnProperty(o)){var i=this.modifyOption(e,o,e.options[o]);void 0!==i&&(e.options[o]=i)}},getEventProperties:function(e,t){var n={};return Vr.forEach((function(r){"function"==typeof r.eventProperties&&dr(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return Vr.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};var Kr=["evt"],Qr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=fr(n,Kr);Wr.pluginEvent.bind(Xo)(e,t,sr({dragEl:Zr,parentEl:$r,ghostEl:eo,rootEl:to,nextEl:no,lastDownEl:ro,cloneEl:oo,cloneHidden:io,dragStarted:bo,putSortable:fo,activeSortable:Xo.active,originalEvent:r,oldIndex:ao,oldDraggableIndex:so,newIndex:lo,newDraggableIndex:uo,hideGhostForTarget:Fo,unhideGhostForTarget:zo,cloneNowHidden:function(){io=!0},cloneNowShown:function(){io=!1},dispatchSortableEvent:function(e){Jr({sortable:t,name:e,originalEvent:r})}},o))};function Jr(e){!function(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,l=e.fromEl,s=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[Yr]){var m,g=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||hr||mr?(m=document.createEvent("Event")).initEvent(r,!0,!0):m=new CustomEvent(r,{bubbles:!0,cancelable:!0}),m.to=a||n,m.from=l||n,m.item=o||n,m.clone=i,m.oldIndex=s,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var _=sr(sr({},h),Wr.getEventProperties(r,t));for(var b in _)m[b]=_[b];n&&n.dispatchEvent(m),g[v]&&g[v].call(t,m)}}(sr({putSortable:fo,cloneEl:oo,targetEl:Zr,rootEl:to,oldIndex:ao,oldDraggableIndex:so,newIndex:lo,newDraggableIndex:uo},e))}var Zr,$r,eo,to,no,ro,oo,io,ao,lo,so,uo,co,fo,po,ho,mo,go,vo,_o,bo,yo,wo,Ao,xo,So=!1,Eo=!1,To=[],Do=!1,Io=!1,Oo=[],Co=!1,ko=[],Mo="undefined"!=typeof document,Po=_r,Ro=mr||hr?"cssFloat":"float",No=Mo&&!br&&!_r&&"draggable"in document.createElement("div"),jo=function(){if(Mo){if(hr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Lo=function(e,t){var n=Or(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=Nr(e,0,t),i=Nr(e,1,t),a=o&&Or(o),l=i&&Or(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Pr(o).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Pr(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&"none"!==a.float){var c="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==c?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[Ro]||i&&"none"===n[Ro]&&s+u>r)?"vertical":"horizontal"},Bo=function(e){function t(e,n){return function(r,o,i,a){var l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);var s=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},r=e.group;r&&"object"==ur(r)||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Fo=function(){!jo&&eo&&Or(eo,"display","none")},zo=function(){!jo&&eo&&Or(eo,"display","")};Mo&&!br&&document.addEventListener("click",(function(e){if(Eo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Eo=!1,!1}),!0);var Ho=function(e){if(Zr){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,i=e.clientY,To.some((function(e){var t=e[Yr].options.emptyInsertThreshold;if(t&&!jr(e)){var n=Pr(e),r=o>=n.left-t&&o<=n.right+t,l=i>=n.top-t&&i<=n.bottom+t;return r&&l?a=e:void 0}})),a);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Yr]._onDragOver(n)}}var o,i,a},Uo=function(e){Zr&&Zr.parentNode[Yr]._isOutsideThisEl(e.target)};function Xo(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=dr({},t),e[Yr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lo(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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:!1!==Xo.supportPointer&&"PointerEvent"in window&&!vr,emptyInsertThreshold:5};for(var r in Wr.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var o in Bo(t),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&No,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?wr(e,"pointerdown",this._onTapStart):(wr(e,"mousedown",this._onTapStart),wr(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(wr(e,"dragover",this),wr(e,"dragenter",this)),To.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),dr(this,Gr())}function Yo(e,t,n,r,o,i,a,l){var s,u,c=e[Yr],d=c.options.onMove;return!window.CustomEvent||hr||mr?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=r,s.related=o||t,s.relatedRect=i||Pr(t),s.willInsertAfter=l,s.originalEvent=a,e.dispatchEvent(s),d&&(u=d.call(c,s,a)),u}function Go(e){e.draggable=!1}function Vo(){Co=!1}function qo(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Wo(e){return setTimeout(e,0)}function Ko(e){return clearTimeout(e)}Xo.prototype={constructor:Xo,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(yo=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Zr):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(function(e){ko.length=0;var t=e.getElementsByTagName("input"),n=t.length;for(;n--;){var r=t[n];r.checked&&ko.push(r)}}(n),!Zr&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!vr||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=Er(l,r.draggable,n,!1))&&l.animated||ro===l)){if(ao=Lr(l),so=Lr(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return Jr({sortable:t,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Qr("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=Er(s,r.trim(),n,!1))return Jr({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Qr("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!Er(s,r.handle,n,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,t,n){var r,o=this,i=o.el,a=o.options,l=i.ownerDocument;if(n&&!Zr&&n.parentNode===i){var s=Pr(n);if(to=i,$r=(Zr=n).parentNode,no=Zr.nextSibling,ro=n,co=a.group,Xo.dragged=Zr,po={target:Zr,clientX:(t||e).clientX,clientY:(t||e).clientY},vo=po.clientX-s.left,_o=po.clientY-s.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,Zr.style["will-change"]="all",r=function(){Qr("delayEnded",o,{evt:e}),Xo.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!gr&&o.nativeDraggable&&(Zr.draggable=!0),o._triggerDragStart(e,t),Jr({sortable:o,name:"choose",originalEvent:e}),Ir(Zr,a.chosenClass,!0))},a.ignore.split(",").forEach((function(e){kr(Zr,e.trim(),Go)})),wr(l,"dragover",Ho),wr(l,"mousemove",Ho),wr(l,"touchmove",Ho),wr(l,"mouseup",o._onDrop),wr(l,"touchend",o._onDrop),wr(l,"touchcancel",o._onDrop),gr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Zr.draggable=!0),Qr("delayStart",this,{evt:e}),!a.delay||a.delayOnTouchOnly&&!t||this.nativeDraggable&&(mr||hr))r();else{if(Xo.eventCanceled)return void this._onDrop();wr(l,"mouseup",o._disableDelayedDrag),wr(l,"touchend",o._disableDelayedDrag),wr(l,"touchcancel",o._disableDelayedDrag),wr(l,"mousemove",o._delayedDragTouchMoveHandler),wr(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&wr(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Zr&&Go(Zr),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Ar(e,"mouseup",this._disableDelayedDrag),Ar(e,"touchend",this._disableDelayedDrag),Ar(e,"touchcancel",this._disableDelayedDrag),Ar(e,"mousemove",this._delayedDragTouchMoveHandler),Ar(e,"touchmove",this._delayedDragTouchMoveHandler),Ar(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?wr(document,"pointermove",this._onTouchMove):wr(document,t?"touchmove":"mousemove",this._onTouchMove):(wr(Zr,"dragend",this),wr(to,"dragstart",this._onDragStart));try{document.selection?Wo((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(So=!1,to&&Zr){Qr("dragStarted",this,{evt:t}),this.nativeDraggable&&wr(document,"dragover",Uo);var n=this.options;!e&&Ir(Zr,n.dragClass,!1),Ir(Zr,n.ghostClass,!0),Xo.active=this,e&&this._appendGhost(),Jr({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ho){this._lastX=ho.clientX,this._lastY=ho.clientY,Fo();for(var e=document.elementFromPoint(ho.clientX,ho.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ho.clientX,ho.clientY))!==t;)t=e;if(Zr.parentNode[Yr]._isOutsideThisEl(e),t)do{if(t[Yr]){if(t[Yr]._onDragOver({clientX:ho.clientX,clientY:ho.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);zo()}},_onTouchMove:function(e){if(po){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=eo&&Cr(eo,!0),a=eo&&i&&i.a,l=eo&&i&&i.d,s=Po&&xo&&Br(xo),u=(o.clientX-po.clientX+r.x)/(a||1)+(s?s[0]-Oo[0]:0)/(a||1),c=(o.clientY-po.clientY+r.y)/(l||1)+(s?s[1]-Oo[1]:0)/(l||1);if(!Xo.active&&!So){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(eo){i?(i.e+=u-(mo||0),i.f+=c-(go||0)):i={a:1,b:0,c:0,d:1,e:u,f:c};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");Or(eo,"webkitTransform",d),Or(eo,"mozTransform",d),Or(eo,"msTransform",d),Or(eo,"transform",d),mo=u,go=c,ho=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!eo){var e=this.options.fallbackOnBody?document.body:to,t=Pr(Zr,!0,Po,!0,e),n=this.options;if(Po){for(xo=e;"static"===Or(xo,"position")&&"none"===Or(xo,"transform")&&xo!==document;)xo=xo.parentNode;xo!==document.body&&xo!==document.documentElement?(xo===document&&(xo=Mr()),t.top+=xo.scrollTop,t.left+=xo.scrollLeft):xo=Mr(),Oo=Br(xo)}Ir(eo=Zr.cloneNode(!0),n.ghostClass,!1),Ir(eo,n.fallbackClass,!0),Ir(eo,n.dragClass,!0),Or(eo,"transition",""),Or(eo,"transform",""),Or(eo,"box-sizing","border-box"),Or(eo,"margin",0),Or(eo,"top",t.top),Or(eo,"left",t.left),Or(eo,"width",t.width),Or(eo,"height",t.height),Or(eo,"opacity","0.8"),Or(eo,"position",Po?"absolute":"fixed"),Or(eo,"zIndex","100000"),Or(eo,"pointerEvents","none"),Xo.ghost=eo,e.appendChild(eo),Or(eo,"transform-origin",vo/parseInt(eo.style.width)*100+"% "+_o/parseInt(eo.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;Qr("dragStart",this,{evt:e}),Xo.eventCanceled?this._onDrop():(Qr("setupClone",this),Xo.eventCanceled||((oo=Xr(Zr)).removeAttribute("id"),oo.draggable=!1,oo.style["will-change"]="",this._hideClone(),Ir(oo,this.options.chosenClass,!1),Xo.clone=oo),n.cloneId=Wo((function(){Qr("clone",n),Xo.eventCanceled||(n.options.removeCloneOnHide||to.insertBefore(oo,Zr),n._hideClone(),Jr({sortable:n,name:"clone"}))})),!t&&Ir(Zr,o.dragClass,!0),t?(Eo=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Ar(document,"mouseup",n._onDrop),Ar(document,"touchend",n._onDrop),Ar(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Zr)),wr(document,"drop",n),Or(Zr,"transform","translateZ(0)")),So=!0,n._dragStartId=Wo(n._dragStarted.bind(n,t,e)),wr(document,"selectstart",n),bo=!0,vr&&Or(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,i=this.el,a=e.target,l=this.options,s=l.group,u=Xo.active,c=co===s,d=l.sort,f=fo||u,p=this,h=!1;if(!Co){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),a=Er(a,l.draggable,i,!0),O("dragOver"),Xo.eventCanceled)return h;if(Zr.contains(e.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return k(!1);if(Eo=!1,u&&!l.disabled&&(c?d||(r=$r!==to):fo===this||(this.lastPutMode=co.checkPull(this,u,Zr,e))&&s.checkPut(this,u,Zr,e))){if(o="vertical"===this._getDirection(e,a),t=Pr(Zr),O("dragOverValid"),Xo.eventCanceled)return h;if(r)return $r=to,C(),this._hideClone(),O("revert"),Xo.eventCanceled||(no?to.insertBefore(Zr,no):to.appendChild(Zr)),k(!0);var m=jr(i,l.draggable);if(!m||function(e,t,n){var r=Pr(jr(n.el,n.options.draggable)),o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}(e,o,this)&&!m.animated){if(m===Zr)return k(!1);if(m&&i===e.target&&(a=m),a&&(n=Pr(a)),!1!==Yo(to,i,Zr,t,a,n,e,!!a))return C(),m&&m.nextSibling?i.insertBefore(Zr,m.nextSibling):i.appendChild(Zr),$r=i,M(),k(!0)}else if(m&&function(e,t,n){var r=Pr(Nr(n.el,0,n.options,!0)),o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}(e,o,this)){var g=Nr(i,0,l,!0);if(g===Zr)return k(!1);if(n=Pr(a=g),!1!==Yo(to,i,Zr,t,a,n,e,!1))return C(),i.insertBefore(Zr,g),$r=i,M(),k(!0)}else if(a.parentNode===i){n=Pr(a);var v,_,b,y=Zr.parentNode!==i,w=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2}(Zr.animated&&Zr.toRect||t,a.animated&&a.toRect||n,o),A=o?"top":"left",x=Rr(a,"top","top")||Rr(Zr,"top","top"),S=x?x.scrollTop:void 0;if(yo!==a&&(_=n[A],Do=!1,Io=!w&&l.invertSwap||y),v=function(e,t,n,r,o,i,a,l){var s=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!a)if(l&&Ao<u*o){if(!Do&&(1===wo?s>c+u*i/2:s<d-u*i/2)&&(Do=!0),Do)f=!0;else if(1===wo?s<c+Ao:s>d-Ao)return-wo}else if(s>c+u*(1-o)/2&&s<d-u*(1-o)/2)return function(e){return Lr(Zr)<Lr(e)?1:-1}(t);if((f=f||a)&&(s<c+u*i/2||s>d-u*i/2))return s>c+u/2?1:-1;return 0}(e,a,n,o,w?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Io,yo===a),0!==v){var E=Lr(Zr);do{E-=v,b=$r.children[E]}while(b&&("none"===Or(b,"display")||b===eo))}if(0===v||b===a)return k(!1);yo=a,wo=v;var T=a.nextElementSibling,D=!1,I=Yo(to,i,Zr,t,a,n,e,D=1===v);if(!1!==I)return 1!==I&&-1!==I||(D=1===I),Co=!0,setTimeout(Vo,30),C(),D&&!T?i.appendChild(Zr):a.parentNode.insertBefore(Zr,D?T:a),x&&Ur(x,0,S-x.scrollTop),$r=Zr.parentNode,void 0===_||Io||(Ao=Math.abs(_-Pr(a)[A])),M(),k(!0)}if(i.contains(Zr))return k(!1)}return!1}function O(l,s){Qr(l,p,sr({evt:e,isOwner:c,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:a,completed:k,onMove:function(n,r){return Yo(to,i,Zr,t,n,Pr(n),e,r)},changed:M},s))}function C(){O("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function k(t){return O("dragOverCompleted",{insertion:t}),t&&(c?u._hideClone():u._showClone(p),p!==f&&(Ir(Zr,fo?fo.options.ghostClass:u.options.ghostClass,!1),Ir(Zr,l.ghostClass,!0)),fo!==p&&p!==Xo.active?fo=p:p===Xo.active&&fo&&(fo=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){O("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===Zr&&!Zr.animated||a===i&&!a.animated)&&(yo=null),l.dragoverBubble||e.rootEl||a===document||(Zr.parentNode[Yr]._isOutsideThisEl(e.target),!t&&Ho(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function M(){lo=Lr(Zr),uo=Lr(Zr,l.draggable),Jr({sortable:p,name:"change",toEl:i,newIndex:lo,newDraggableIndex:uo,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ar(document,"mousemove",this._onTouchMove),Ar(document,"touchmove",this._onTouchMove),Ar(document,"pointermove",this._onTouchMove),Ar(document,"dragover",Ho),Ar(document,"mousemove",Ho),Ar(document,"touchmove",Ho)},_offUpEvents:function(){var e=this.el.ownerDocument;Ar(e,"mouseup",this._onDrop),Ar(e,"touchend",this._onDrop),Ar(e,"pointerup",this._onDrop),Ar(e,"touchcancel",this._onDrop),Ar(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;lo=Lr(Zr),uo=Lr(Zr,n.draggable),Qr("drop",this,{evt:e}),$r=Zr&&Zr.parentNode,lo=Lr(Zr),uo=Lr(Zr,n.draggable),Xo.eventCanceled||(So=!1,Io=!1,Do=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Ko(this.cloneId),Ko(this._dragStartId),this.nativeDraggable&&(Ar(document,"drop",this),Ar(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),vr&&Or(document.body,"user-select",""),Or(Zr,"transform",""),e&&(bo&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),eo&&eo.parentNode&&eo.parentNode.removeChild(eo),(to===$r||fo&&"clone"!==fo.lastPutMode)&&oo&&oo.parentNode&&oo.parentNode.removeChild(oo),Zr&&(this.nativeDraggable&&Ar(Zr,"dragend",this),Go(Zr),Zr.style["will-change"]="",bo&&!So&&Ir(Zr,fo?fo.options.ghostClass:this.options.ghostClass,!1),Ir(Zr,this.options.chosenClass,!1),Jr({sortable:this,name:"unchoose",toEl:$r,newIndex:null,newDraggableIndex:null,originalEvent:e}),to!==$r?(lo>=0&&(Jr({rootEl:$r,name:"add",toEl:$r,fromEl:to,originalEvent:e}),Jr({sortable:this,name:"remove",toEl:$r,originalEvent:e}),Jr({rootEl:$r,name:"sort",toEl:$r,fromEl:to,originalEvent:e}),Jr({sortable:this,name:"sort",toEl:$r,originalEvent:e})),fo&&fo.save()):lo!==ao&&lo>=0&&(Jr({sortable:this,name:"update",toEl:$r,originalEvent:e}),Jr({sortable:this,name:"sort",toEl:$r,originalEvent:e})),Xo.active&&(null!=lo&&-1!==lo||(lo=ao,uo=so),Jr({sortable:this,name:"end",toEl:$r,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){Qr("nulling",this),to=Zr=$r=eo=no=oo=ro=io=po=ho=bo=lo=uo=ao=so=yo=wo=fo=co=Xo.dragged=Xo.ghost=Xo.clone=Xo.active=null,ko.forEach((function(e){e.checked=!0})),ko.length=mo=go=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Zr&&(this._onDragOver(e),function(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move");e.cancelable&&e.preventDefault()}(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)Er(e=n[r],i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||qo(e));return t},sort:function(e,t){var n={},r=this.el;this.toArray().forEach((function(e,t){var o=r.children[t];Er(o,this.options.draggable,r,!1)&&(n[e]=o)}),this),t&&this.captureAnimationState(),e.forEach((function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Er(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(void 0===t)return n[e];var r=Wr.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Bo(n)},destroy:function(){Qr("destroy",this);var e=this.el;e[Yr]=null,Ar(e,"mousedown",this._onTapStart),Ar(e,"touchstart",this._onTapStart),Ar(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ar(e,"dragover",this),Ar(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),To.splice(To.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!io){if(Qr("hideClone",this),Xo.eventCanceled)return;Or(oo,"display","none"),this.options.removeCloneOnHide&&oo.parentNode&&oo.parentNode.removeChild(oo),io=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(io){if(Qr("showClone",this),Xo.eventCanceled)return;Zr.parentNode!=to||this.options.group.revertClone?no?to.insertBefore(oo,no):to.appendChild(oo):to.insertBefore(oo,Zr),this.options.group.revertClone&&this.animate(Zr,oo),Or(oo,"display",""),io=!1}}else this._hideClone()}},Mo&&wr(document,"touchmove",(function(e){(Xo.active||So)&&e.cancelable&&e.preventDefault()})),Xo.utils={on:wr,off:Ar,css:Or,find:kr,is:function(e,t){return!!Er(e,t,e,!1)},extend:function(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},throttle:Hr,closest:Er,toggleClass:Ir,clone:Xr,index:Lr,nextTick:Wo,cancelNextTick:Ko,detectDirection:Lo,getChild:Nr},Xo.get=function(e){return e[Yr]},Xo.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Xo.utils=sr(sr({},Xo.utils),e.utils)),Wr.mount(e)}))},Xo.create=function(e,t){return new Xo(e,t)},Xo.version="1.15.0";var Qo,Jo,Zo,$o,ei,ti,ni=[],ri=!1;function oi(){ni.forEach((function(e){clearInterval(e.pid)})),ni=[]}function ii(){clearInterval(ti)}var ai=Hr((function(e,t,n,r){if(t.scroll){var o,i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,u=Mr(),c=!1;Jo!==n&&(Jo=n,oi(),Qo=t.scroll,o=t.scrollFn,!0===Qo&&(Qo=Fr(n,!0)));var d=0,f=Qo;do{var p=f,h=Pr(p),m=h.top,g=h.bottom,v=h.left,_=h.right,b=h.width,y=h.height,w=void 0,A=void 0,x=p.scrollWidth,S=p.scrollHeight,E=Or(p),T=p.scrollLeft,D=p.scrollTop;p===u?(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(w=b<x&&("auto"===E.overflowX||"scroll"===E.overflowX),A=y<S&&("auto"===E.overflowY||"scroll"===E.overflowY));var I=w&&(Math.abs(_-i)<=l&&T+b<x)-(Math.abs(v-i)<=l&&!!T),O=A&&(Math.abs(g-a)<=l&&D+y<S)-(Math.abs(m-a)<=l&&!!D);if(!ni[d])for(var C=0;C<=d;C++)ni[C]||(ni[C]={});ni[d].vx==I&&ni[d].vy==O&&ni[d].el===p||(ni[d].el=p,ni[d].vx=I,ni[d].vy=O,clearInterval(ni[d].pid),0==I&&0==O||(c=!0,ni[d].pid=setInterval(function(){r&&0===this.layer&&Xo.active._onTouchMove(ei);var t=ni[this.layer].vy?ni[this.layer].vy*s:0,n=ni[this.layer].vx?ni[this.layer].vx*s:0;"function"==typeof o&&"continue"!==o.call(Xo.dragged.parentNode[Yr],n,t,e,ei,ni[this.layer].el)||Ur(ni[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==u&&(f=Fr(f,!1)));ri=c}}),30),li=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,i=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var s=n||o;a();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,c=document.elementFromPoint(u.clientX,u.clientY);l(),s&&!s.el.contains(c)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function si(){}function ui(){}si.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Nr(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:li},dr(si,{pluginName:"revertOnSpill"}),ui.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:li},dr(ui,{pluginName:"removeOnSpill"}),Xo.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?wr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?wr(document,"pointermove",this._handleFallbackAutoScroll):t.touches?wr(document,"touchmove",this._handleFallbackAutoScroll):wr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Ar(document,"dragover",this._handleAutoScroll):(Ar(document,"pointermove",this._handleFallbackAutoScroll),Ar(document,"touchmove",this._handleFallbackAutoScroll),Ar(document,"mousemove",this._handleFallbackAutoScroll)),ii(),oi(),clearTimeout(Tr),Tr=void 0},nulling:function(){ei=Jo=Qo=ri=ti=Zo=$o=null,ni.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=document.elementFromPoint(r,o);if(ei=e,t||this.options.forceAutoScrollFallback||mr||hr||vr){ai(e,this.options,i,t);var a=Fr(i,!0);!ri||ti&&r===Zo&&o===$o||(ti&&ii(),ti=setInterval((function(){var i=Fr(document.elementFromPoint(r,o),!0);i!==a&&(a=i,oi()),ai(e,n.options,i,t)}),10),Zo=r,$o=o)}else{if(!this.options.bubbleScroll||Fr(i,!0)===Mr())return void oi();ai(e,this.options,Fr(i,!1),!1)}}},dr(e,{pluginName:"scroll",initializeByDefault:!0})}),Xo.mount(ui,si);t("D",i({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit,r=a({domId:"draggableContainer"+ +new Date,drag:!1,sortable:null,list:[],options:[],alst:[]});v((function(){}));var o=d((function(){var t=e.data.answers||[],n=e.value||[];return t.forEach((function(e){var t=n.findIndex((function(t){return t.answerId===e.examinationQuestionAnswerId}));e.checked=-1!==t})),t})),i=function(){var t=e.data.answers||[],n=e.data.userAnswer||[];y((function(){if(n.length>0){var e=[];n.forEach((function(n,r){var o=t.find((function(e){return n.answerId===e.examinationQuestionAnswerId})),i=t.find((function(e){return n.answerExtra==e.questionExtra})),a={itemIndex:r,index:n.answerId,leftValue:n.answer,rightValue:n.answerExtra,leftType:o&&o.questionAnswerTypeCode||"TXT",rightType:o&&o.questionExtraTypeCode||"TXT",rightIndex:i?i.examinationQuestionAnswerId:""};e.push(a)})),r.options=e}}))};return _((function(){return r.options}),(function(){var e=r.options||[],t=[];e.forEach((function(e,n){t.push({answerId:e.index,answer:e.leftValue,answerExtra:n+1})})),n("update:value",t)})),v((function(){i()})),function(){return s(f,null,[s("div",{class:Kn},[s(Z,{index:e.index,name:e.data.name,showRate:e.showRate,score:e.data.totalScore,answerType:N.SORT,extra:{rightRate:e.data.rightRate,questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls}},null),s("div",{class:[Qn]},[o.value.map((function(t,o){return s("div",{class:[Jn,t.checked&&er],onClick:function(){return function(t){if(!t.checked&&!e.readOnly){var o=[];r.options.forEach((function(e,t){o.push({answerId:e.index,answer:e.leftValue,answerExtra:t+1})})),o.push({answerId:t.examinationQuestionAnswerId,answer:t.questionAnswer,answerExtra:r.list.length+1}),r.list.push({answerId:t.examinationQuestionAnswerId,answer:t.questionAnswer,answerExtra:r.list.length+1}),n("update:value",o),y((function(){i()}))}}(t)}},[s("div",{class:tr},[s("span",{class:Zn},[R[o+1],c(".")]),t.questionAnswerTypeCode===H&&s("div",{class:$n},[s(I,{src:t.questionAnswer},null)]),t.questionAnswerTypeCode===U&&s("div",{class:$n},[t.questionAnswer])])])})),s("div",{class:[nr,"van-hairline--top"]},[s("span",{class:rr},[c("我的回答(可拖拽)")]),s(b,{type:"primary",round:!0,disabled:e.readOnly,onClick:function(){var e,t;r.options=[],r.list=[],e=r.list||[],t=[],e.forEach((function(e,n){t.push({answerId:e.answerId,answer:e.answer,answerExtra:n+1})})),n("update:value",t),i()}},{default:function(){return[c("重置")]}})]),e.readOnly?r.options.map((function(e){return s("div",{class:or},[e.leftType===U&&s(k,{class:[ir],"data-id":e.itemIndex},{default:function(){return[e.leftValue]}}),e.leftType===H&&s(I,{src:e.leftValue,"data-id":e.itemIndex,class:[ar,"van-hairline--surround"],fit:"cover"},null)])})):s(Wn,{modelValue:r.options,"onUpdate:modelValue":function(e){return r.options=e},itemKey:"itemIndex"},{item:function(e){var t=e.element;return s("div",{class:or},[t.leftType===U&&s(k,{class:[ir],"data-id":t.itemIndex},{default:function(){return[t.leftValue]}}),t.leftType===H&&s(I,{src:t.leftValue,"data-id":t.itemIndex,class:[ar,"van-hairline--surround"],fit:"cover"},null)])}})])]),e.showAnalysis&&s("div",{class:Kn},[s(le,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])])}}}));var ci="_unitSubject_cexcs_1",di="_unitAnswers_cexcs_10",fi="_answerItem_cexcs_15",pi="_img_cexcs_26",hi="_unitItem_cexcs_29",mi="_active_cexcs_45",gi="_canvasSection_cexcs_49",vi="_resetBtnGroup_cexcs_54",_i=(t("K",i({name:"keep-look-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},readOnly:{type:Boolean,default:!1},showRate:{type:Boolean,default:!1},showAnalysis:{type:Boolean,default:!1},analysis:{type:Object,default:function(){return{message:"",topic:!1,userResult:!0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit,r=w(),o=a({answerDomId:"answer"+ +new Date,answerRect:{},dpr:1,sortable:null,list:[],options:[],drawLineList:[],selectItem:[]}),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"left",n=o.drawLineList||[],r=!1,i=0,a={};return n.forEach((function(n,o){(n.leftIndex===e&&"left"===t||n.rightIndex===e&&"right"===t)&&(a=n,r=!0,i=o)})),{status:r,selectIndex:i,selectOption:a}},l=function(){var e=A(r.value),t=o.selectItem[0],n=A(document.getElementById(t.index+"-left"));n.index=t.index;var i=o.selectItem[1],a=A(document.getElementById(i.index+"-right"));a.index=i.index,console.log(o.selectItem,n,a);var l={x:n.width,y:n.top+n.height/2-e.top},s={x:a.left-e.left,y:a.top+a.height/2-e.top};return o.options.forEach((function(e){e.index===n.index&&(e.leftLocked=!0),e.index===a.index&&(e.rightLocked=!0)})),{startPoint:l,endPoint:s,leftIndex:n.index,rightIndex:a.index}},u=function(e){if(e.getContext){var t=e.getContext("2d");t.clearRect(0,0,o.answerRect.width*o.dpr||0,o.answerRect.height*o.dpr||0),o.drawLineList.forEach((function(e){d(t,e.startPoint,e.endPoint)}))}},d=function(e,t,n){e.beginPath(),e.moveTo(Math.floor(t.x-1)*o.dpr,Math.ceil(t.y)*o.dpr),e.lineTo(Math.ceil(n.x+1)*o.dpr,Math.ceil(n.y)*o.dpr),e.lineWidth=2*o.dpr,e.strokeStyle="#FF8057",e.stroke()},p=function(){var e=o.options||[],t=o.drawLineList||[],r=[];t.forEach((function(t){var n=e.find((function(e){return e.index===t.leftIndex})),o=e.find((function(e){return e.index===t.rightIndex}));r.push({answerId:n.index,answer:n.leftValue,answerExtra:o.rightValue})})),n("update:value",r)};return v((function(){var t,n;t=e.data.answers||[],n=e.data.userAnswer||[],t.forEach((function(e){var t={index:e.examinationQuestionAnswerId,leftValue:e.questionAnswer,rightValue:e.questionExtra,leftType:e.questionAnswerTypeCode||"TXT",rightType:e.questionExtraTypeCode||"TXT",left:!1,right:!1,leftLocked:!1,rightLocked:!1};o.options.push(t)})),n.forEach((function(e){var t={startPoint:{x:0,y:0},endPoint:{x:0,y:0},leftIndex:0,rightIndex:0};o.options.forEach((function(n){n.index===e.answerId&&(n.left=!0,n.leftLocked=!0,t.leftIndex=n.index),n.rightValue===e.answerExtra&&(n.right=!0,n.leftLocked=!0,t.rightIndex=n.index)})),o.drawLineList.push(t)})),y((function(){o.drawLineList.forEach((function(e){o.selectItem=[];var t=A(document.getElementById(e.leftIndex+"-left"));t.index=e.leftIndex,o.selectItem[0]=t;var n=A(document.getElementById(e.rightIndex+"-right"));n.index=e.rightIndex,o.selectItem[1]=n;var r=l();e.endPoint=r.endPoint,e.startPoint=r.startPoint,o.selectItem=[]})),setTimeout((function(){u(r.value)}),100)})),y((function(){var e=document.getElementById(o.answerDomId),t=A(e);o.answerRect=t;var n=window.devicePixelRatio;o.dpr=n}))})),function(){return s(f,null,[s("div",{class:ci},[s(Z,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:N.LINK,extra:{questionDetail:e.data.questionDetail,mediaUrls:e.data.mediaUrls,rightRate:e.data.rightRate}},null),s("div",{class:[di],id:o.answerDomId},[s("canvas",{ref:r,class:gi,width:o.answerRect.width*o.dpr||0,height:o.answerRect.height*o.dpr||0,style:{width:(o.answerRect.width||0)+"px",height:(o.answerRect.height||0)+"px"}},null),o.options.map((function(t){return s("div",{class:fi},[s("div",{class:[hi,t.left&&mi],id:t.index+"-left",onClick:function(n){return function(t,n){if(!e.readOnly){o.options.forEach((function(e){e.leftLocked||n.index===e.index||(e.left=!1)}));var a=i(n.index,"left");if(a.status)o.options.forEach((function(e){e.rightLocked||(e.right=!1)})),o.selectItem=[],o.drawLineList.splice(a.selectIndex,1),u(r.value),o.options.forEach((function(e){a.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),a.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(n.left=!n.left,n.left?o.selectItem[0]={index:n.index}:o.selectItem[0]=null,o.selectItem[0]&&o.selectItem[1]){var s=l();o.drawLineList.push(s),o.selectItem=[],u(r.value)}p()}}(0,t)}},[t.leftType===U&&t.leftValue,t.leftType===H&&s(I,{src:t.leftValue,class:pi},null)]),s("div",{class:[hi,t.right&&mi],id:t.index+"-right",onClick:function(n){return function(t,n){if(!e.readOnly){o.options.forEach((function(e){e.rightLocked||n.index===e.index||(e.right=!1)}));var a=i(n.index,"right");if(a.status)o.options.forEach((function(e){e.leftLocked||(e.left=!1)})),o.selectItem=[],o.drawLineList.splice(a.selectIndex,1),u(r.value),o.options.forEach((function(e){a.selectOption.leftIndex===e.index&&(e.left=!1,e.leftLocked=!1),a.selectOption.rightIndex===e.index&&(e.right=!1,e.rightLocked=!1)}));else if(n.right=!n.right,n.right?o.selectItem[1]={index:n.index}:o.selectItem[1]=null,o.selectItem[0]&&o.selectItem[1]){var s=l();o.drawLineList.push(s),o.selectItem=[],u(r.value)}p()}}(0,t)}},[t.rightType===U&&t.rightValue,t.rightType===H&&s(I,{src:t.rightValue,class:pi},null)])])}))]),s("div",{class:vi},[s(b,{round:!0,type:"primary",disabled:e.readOnly,onClick:function(){o.drawLineList=[],u(r.value),o.options.forEach((function(e){e.left=!1,e.right=!1,e.leftLocked=!1,e.rightLocked=!1})),o.selectItem=[],p()}},{default:function(){return[c("重置")]}})])]),e.showAnalysis&&s("div",{class:ci},[s(le,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult},null)])])}}})),"_unitSubject_vaiy0_1"),bi="_unitAnswers_vaiy0_10",yi="_playSection_vaiy0_14",wi="_img_vaiy0_19",Ai="_playTitle_vaiy0_24",xi="_playBtn_vaiy0_29",Si="_unitScoreNum_vaiy0_37",Ei="_score_vaiy0_42",Ti="_scoreTitle_vaiy0_47",Di="_scoreTips_vaiy0_53";t("P",i({name:"choice-question",props:{value:{type:Array,default:function(){return[]}},index:{type:Number,default:1},data:{type:Object,default:function(){return{}}},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:function(){return{message:"",topic:!1,userResult:!0,score:0}}}},emits:["update:value"],setup:function(e,t){var n=t.emit;console.log(e,"props");var r=a({list:[],score:0}),o=d((function(){return e.data.questionExtendsInfo?JSON.parse(e.data.questionExtendsInfo):""})),i=function(){var t=o.value;t&&(console.log(e.unitId),x({api:"openAccompanyWebView",content:{url:"".concat(location.origin,"/orchestra-music-score/?id=").concat(t.musicSheetId,"&modelType=evaluation&unitId=").concat(e.unitId,"&questionId=").concat(e.data.id),orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}}),S("webViewOnResume",(function(){if(E().android){var t,o,i=window.ORCHESTRA||(null===(t=window.webkit)||void 0===t||null===(o=t.messageHandlers)||void 0===o?void 0:o.ORCHESTRA);console.log(i,"-------------");var a=i.getCache2("h5-orchestra-unit");console.log("🚀 ~ listenerMessage ~ result",a);var l=a?JSON.parse(a):{};if(l.questionId===e.data.id){var s=l.score||0;r.score<s&&(r.score=l.score||0),T({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}n("update:value",[{answerId:"",answer:r.score,answerExtra:""}]),D("webViewOnResume",(function(){}))}else T({api:"getCache",content:{key:"h5-orchestra-unit"}}).then((function(t){var o=t.content;if(o.value){console.log("🚀 ~ listenerMessage ~ content.value",o.value,"---------------");var i=o.value?JSON.parse(o.value):{};if(console.log("🚀 ~ listenerMessage ~ result",i,e.data.questionId),i.questionId===e.data.id){var a=i.score||0;r.score<a&&(r.score=i.score||0)}n("update:value",[{answerId:"",answer:r.score,answerExtra:""}]),T({api:"setCache",content:{key:"h5-orchestra-unit",value:""}})}D("webViewOnResume",(function(){}))}))})))};return v((function(){var t=e.value||[];t.length>0&&(r.score=t[0].answer)})),function(){return s(f,null,[s("div",{class:_i},[s(Z,{index:e.index,name:e.data.name,score:e.data.totalScore,showRate:e.showRate,answerType:N.PLAY,extra:{questionDetail:e.data.questionDetail,mediaUrls:"",rightRate:e.data.rightRate}},null),s("div",{class:[bi]},[o.value&&s(M,{class:yi,center:!0,titleClass:["van-ellipsis",Ai]},{icon:function(){return s(I,{class:wi,src:"./assets/icon-song.c2cb716c.png"},null)},title:function(){return s(f,null,[o.value.musicName])},value:function(){return s(b,{round:!0,class:xi,type:"primary",onClick:i,disabled:e.readOnly},{default:function(){return[c("点击评测"),s(u,{name:"play"},null)]}})}}),(!e.readOnly||e.showScore)&&s("div",{class:["van-hairline--top",Si]},[s("div",{class:Ei},[r.score]),s("div",{class:Ti},[c("评测分数")]),!e.showScore&&s("div",{class:Di},[c("多次评测取完整评测的最高分数")])])])]),e.showAnalysis&&s("div",{class:_i},[s(le,{answerAnalysis:e.analysis.message,topic:e.analysis.topic,userResult:e.analysis.userResult,rightFlagText:"合格",errorFlagText:"不合格"},null)])])}}}))}}}))}();
|