UNPKG

el-dynamic-form-design

Version:

ele form pingshu dynamic design

2 lines 3.05 MB
/*! For license information please see elDynamicFormDesign.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("el-dynamic-form-design",["vue"],t):"object"==typeof exports?exports["el-dynamic-form-design"]=t(require("vue")):e["el-dynamic-form-design"]=t(e.Vue)}(this,(function(__WEBPACK_EXTERNAL_MODULE__154__){return function(){var __webpack_modules__={34:function(e,t,n){"use strict";var r=n(4901);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},81:function(e,t,n){"use strict";var r=n(9565),o=n(9306),a=n(8551),i=n(6823),s=n(851),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return a(r(n,e));throw new c(i(e)+" is not iterable")}},116:function(e,t,n){"use strict";var r=n(6518),o=n(9565),a=n(2652),i=n(9306),s=n(8551),c=n(1767),l=n(9539),u=n(4549)("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){s(this);try{i(e)}catch(e){l(this,"throw",e)}if(u)return o(u,this,e);var t=c(this),n=0;return a(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(5093))},154:function(e){"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__154__},158:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(5093))},217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(5093))},246:function(e,t,n){"use strict";function r(e){return r="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},r(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=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},a.apply(this,arguments)}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function s(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}n.r(t),n.d(t,{MultiDrag:function(){return gt},Sortable:function(){return He},Swap:function(){return at}});var c=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),l=s(/Edge/i),u=s(/firefox/i),d=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),f=s(/iP(ad|od|hone)/i),m=s(/chrome/i)&&s(/android/i),p={capture:!1,passive:!1};function h(e,t,n){e.addEventListener(t,n,!c&&p)}function g(e,t,n){e.removeEventListener(t,n,!c&&p)}function _(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(e){return!1}return!1}}function y(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function v(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&_(e,t):_(e,t))||r&&e===n)return e;if(e===n)break}while(e=y(e))}return null}var b,A=/\s+/g;function k(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(A," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(A," ")}}function w(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 x(e,t){var n="";if("string"==typeof e)n=e;else do{var r=w(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 C(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,a=r.length;if(n)for(;o<a;o++)n(r[o],o);return r}return[]}function M(){return document.scrollingElement||document.documentElement}function L(e,t,n,r,o){if(e.getBoundingClientRect||e===window){var a,i,s,l,u,d,f;if(e!==window&&e!==M()?(i=(a=e.getBoundingClientRect()).top,s=a.left,l=a.bottom,u=a.right,d=a.height,f=a.width):(i=0,s=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,f=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!c))do{if(o&&o.getBoundingClientRect&&("none"!==w(o,"transform")||n&&"static"!==w(o,"position"))){var m=o.getBoundingClientRect();i-=m.top+parseInt(w(o,"border-top-width")),s-=m.left+parseInt(w(o,"border-left-width")),l=i+a.height,u=s+a.width;break}}while(o=o.parentNode);if(r&&e!==window){var p=x(o||e),h=p&&p.a,g=p&&p.d;p&&(l=(i/=g)+(d/=g),u=(s/=h)+(f/=h))}return{top:i,left:s,bottom:l,right:u,width:f,height:d}}}function E(e,t,n){for(var r=Y(e,!0),o=L(e)[t];r;){var a=L(r)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return r;if(r===M())break;r=Y(r,!1)}return!1}function D(e,t,n){for(var r=0,o=0,a=e.children;o<a.length;){if("none"!==a[o].style.display&&a[o]!==He.ghost&&a[o]!==He.dragged&&v(a[o],n.draggable,e,!1)){if(r===t)return a[o];r++}o++}return null}function S(e,t){for(var n=e.lastElementChild;n&&(n===He.ghost||"none"===w(n,"display")||t&&!_(n,t));)n=n.previousElementSibling;return n||null}function T(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e===He.clone||t&&!_(e,t)||n++;return n}function B(e){var t=0,n=0,r=M();if(e)do{var o=x(e),a=o.a,i=o.d;t+=e.scrollLeft*a,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function Y(e,t){if(!e||!e.getBoundingClientRect)return M();var n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=w(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 M();if(r||t)return n;r=!0}}}while(n=n.parentNode);return M()}function z(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 O(e,t){return function(){if(!b){var n=arguments;1===n.length?e.call(this,n[0]):e.apply(this,n),b=setTimeout((function(){b=void 0}),t)}}}function j(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function H(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 P(e,t){w(e,"position","absolute"),w(e,"top",t.top),w(e,"left",t.left),w(e,"width",t.width),w(e,"height",t.height)}function I(e){w(e,"position",""),w(e,"top",""),w(e,"left",""),w(e,"width",""),w(e,"height","")}var R="Sortable"+(new Date).getTime();var N=[],F={initializeByDefault:!0},W={mount:function(e){for(var t in F)F.hasOwnProperty(t)&&!(t in e)&&(e[t]=F[t]);N.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var o=e+"Global";N.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][o]&&t[r.pluginName][o](i({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](i({sortable:t},n)))}))},initializePlugins:function(e,t,n,r){for(var o in N.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,a(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 N.forEach((function(r){"function"==typeof r.eventProperties&&a(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption:function(e,t,n){var r;return N.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function U(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,a=e.cloneEl,s=e.toEl,u=e.fromEl,d=e.oldIndex,f=e.newIndex,m=e.oldDraggableIndex,p=e.newDraggableIndex,h=e.originalEvent,g=e.putSortable,_=e.extraEventProperties;if(t=t||n&&n[R]){var y,v=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||c||l?(y=document.createEvent("Event")).initEvent(r,!0,!0):y=new CustomEvent(r,{bubbles:!0,cancelable:!0}),y.to=s||n,y.from=u||n,y.item=o||n,y.clone=a,y.oldIndex=d,y.newIndex=f,y.oldDraggableIndex=m,y.newDraggableIndex=p,y.originalEvent=h,y.pullMode=g?g.lastPutMode:void 0;var A=i({},_,W.getEventProperties(r,t));for(var k in A)y[k]=A[k];n&&n.dispatchEvent(y),v[b]&&v[b].call(t,y)}}var V=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.evt,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["evt"]);W.pluginEvent.bind(He)(e,t,i({dragEl:$,parentEl:G,ghostEl:J,rootEl:K,nextEl:X,lastDownEl:Z,cloneEl:Q,cloneHidden:ee,dragStarted:me,putSortable:ie,activeSortable:He.active,originalEvent:r,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:oe,hideGhostForTarget:Ye,unhideGhostForTarget:ze,cloneNowHidden:function(){ee=!0},cloneNowShown:function(){ee=!1},dispatchSortableEvent:function(e){q({sortable:t,name:e,originalEvent:r})}},o))};function q(e){U(i({putSortable:ie,cloneEl:Q,targetEl:$,rootEl:K,oldIndex:te,oldDraggableIndex:re,newIndex:ne,newDraggableIndex:oe},e))}var $,G,J,K,X,Z,Q,ee,te,ne,re,oe,ae,ie,se,ce,le,ue,de,fe,me,pe,he,ge,_e,ye=!1,ve=!1,be=[],Ae=!1,ke=!1,we=[],xe=!1,Ce=[],Me="undefined"!=typeof document,Le=f,Ee=l||c?"cssFloat":"float",De=Me&&!m&&!f&&"draggable"in document.createElement("div"),Se=function(){if(Me){if(c)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Te=function(e,t){var n=w(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=D(e,0,t),a=D(e,1,t),i=o&&w(o),s=a&&w(a),c=i&&parseInt(i.marginLeft)+parseInt(i.marginRight)+L(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+L(a).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&&i.float&&"none"!==i.float){var u="left"===i.float?"left":"right";return!a||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return o&&("block"===i.display||"flex"===i.display||"table"===i.display||"grid"===i.display||c>=r&&"none"===n[Ee]||a&&"none"===n[Ee]&&c+l>r)?"vertical":"horizontal"},Be=function(e){function t(e,n){return function(r,o,a,i){var s=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||s))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,a,i),n)(r,o,a,i);var c=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===c||e.join&&e.indexOf(c)>-1}}var n={},o=e.group;o&&"object"==r(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},Ye=function(){!Se&&J&&w(J,"display","none")},ze=function(){!Se&&J&&w(J,"display","")};Me&&document.addEventListener("click",(function(e){if(ve)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ve=!1,!1}),!0);var Oe=function(e){if($){e=e.touches?e.touches[0]:e;var t=(o=e.clientX,a=e.clientY,be.some((function(e){if(!S(e)){var t=L(e),n=e[R].options.emptyInsertThreshold,r=o>=t.left-n&&o<=t.right+n,s=a>=t.top-n&&a<=t.bottom+n;return n&&r&&s?i=e:void 0}})),i);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[R]._onDragOver(n)}}var o,a,i},je=function(e){$&&$.parentNode[R]._isOutsideThisEl(e.target)};function He(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=a({},t),e[R]=this;var n,r,o={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 Te(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!==He.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var s in W.initializePlugins(this,e,o),o)!(s in t)&&(t[s]=o[s]);for(var c in Be(t),this)"_"===c.charAt(0)&&"function"==typeof this[c]&&(this[c]=this[c].bind(this));this.nativeDraggable=!t.forceFallback&&De,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?h(e,"pointerdown",this._onTapStart):(h(e,"mousedown",this._onTapStart),h(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(e,"dragover",this),h(e,"dragenter",this)),be.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),a(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"!==w(e,"display")&&e!==He.ghost){r.push({target:e,rect:L(e)});var t=i({},r[r.length-1].rect);if(e.thisAnimationDuration){var n=x(e,!0);n&&(t.top-=n.f,t.left-=n.e)}e.fromRect=t}}))},addAnimationState:function(e){r.push(e)},removeAnimationState:function(e){r.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}(r,{target:e}),1)},animateAll:function(e){var t=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof e&&e());var o=!1,a=0;r.forEach((function(e){var n=0,r=e.target,i=r.fromRect,s=L(r),c=r.prevFromRect,l=r.prevToRect,u=e.rect,d=x(r,!0);d&&(s.top-=d.f,s.left-=d.e),r.toRect=s,r.thisAnimationDuration&&z(c,s)&&!z(i,s)&&(u.top-s.top)/(u.left-s.left)===(i.top-s.top)/(i.left-s.left)&&(n=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}(u,c,l,t.options)),z(s,i)||(r.prevFromRect=i,r.prevToRect=s,n||(n=t.options.animation),t.animate(r,u,s,n)),n&&(o=!0,a=Math.max(a,n),clearTimeout(r.animationResetTimer),r.animationResetTimer=setTimeout((function(){r.animationTime=0,r.prevFromRect=null,r.fromRect=null,r.prevToRect=null,r.thisAnimationDuration=null}),n),r.thisAnimationDuration=n)})),clearTimeout(n),o?n=setTimeout((function(){"function"==typeof e&&e()}),a):"function"==typeof e&&e(),r=[]},animate:function(e,t,n,r){if(r){w(e,"transition",""),w(e,"transform","");var o=x(this.el),a=o&&o.a,i=o&&o.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(i||1);e.animatingX=!!s,e.animatingY=!!c,w(e,"transform","translate3d("+s+"px,"+c+"px,0)"),function(e){e.offsetWidth}(e),w(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),w(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){w(e,"transition",""),w(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}))}function Pe(e,t,n,r,o,a,i,s){var u,d,f=e[R],m=f.options.onMove;return!window.CustomEvent||c||l?(u=document.createEvent("Event")).initEvent("move",!0,!0):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=a||L(t),u.willInsertAfter=s,u.originalEvent=i,e.dispatchEvent(u),m&&(d=m.call(f,u,i)),d}function Ie(e){e.draggable=!1}function Re(){xe=!1}function Ne(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 Fe(e){return setTimeout(e,0)}function We(e){return clearTimeout(e)}He.prototype={constructor:He,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(pe=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,$):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,o=r.preventOnFilter,a=e.type,i=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(i||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(function(e){Ce.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Ce.push(r)}}(n),!$&&!(/mousedown|pointerdown/.test(a)&&0!==e.button||r.disabled||c.isContentEditable||(s=v(s,r.draggable,n,!1))&&s.animated||Z===s)){if(te=T(s),re=T(s,r.draggable),"function"==typeof l){if(l.call(this,e,s,this))return q({sortable:t,rootEl:c,name:"filter",targetEl:s,toEl:n,fromEl:n}),V("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some((function(r){if(r=v(c,r.trim(),n,!1))return q({sortable:t,rootEl:r,name:"filter",targetEl:s,fromEl:n,toEl:n}),V("filter",t,{evt:e}),!0}))))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!v(c,r.handle,n,!1)||this._prepareDragStart(e,i,s)}}},_prepareDragStart:function(e,t,n){var r,o=this,a=o.el,i=o.options,s=a.ownerDocument;if(n&&!$&&n.parentNode===a){var d=L(n);if(K=a,G=($=n).parentNode,X=$.nextSibling,Z=n,ae=i.group,He.dragged=$,se={target:$,clientX:(t||e).clientX,clientY:(t||e).clientY},de=se.clientX-d.left,fe=se.clientY-d.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,$.style["will-change"]="all",r=function(){V("delayEnded",o,{evt:e}),He.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!u&&o.nativeDraggable&&($.draggable=!0),o._triggerDragStart(e,t),q({sortable:o,name:"choose",originalEvent:e}),k($,i.chosenClass,!0))},i.ignore.split(",").forEach((function(e){C($,e.trim(),Ie)})),h(s,"dragover",Oe),h(s,"mousemove",Oe),h(s,"touchmove",Oe),h(s,"mouseup",o._onDrop),h(s,"touchend",o._onDrop),h(s,"touchcancel",o._onDrop),u&&this.nativeDraggable&&(this.options.touchStartThreshold=4,$.draggable=!0),V("delayStart",this,{evt:e}),!i.delay||i.delayOnTouchOnly&&!t||this.nativeDraggable&&(l||c))r();else{if(He.eventCanceled)return void this._onDrop();h(s,"mouseup",o._disableDelayedDrag),h(s,"touchend",o._disableDelayedDrag),h(s,"touchcancel",o._disableDelayedDrag),h(s,"mousemove",o._delayedDragTouchMoveHandler),h(s,"touchmove",o._delayedDragTouchMoveHandler),i.supportPointer&&h(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,i.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(){$&&Ie($),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._disableDelayedDrag),g(e,"touchend",this._disableDelayedDrag),g(e,"touchcancel",this._disableDelayedDrag),g(e,"mousemove",this._delayedDragTouchMoveHandler),g(e,"touchmove",this._delayedDragTouchMoveHandler),g(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,t?"touchmove":"mousemove",this._onTouchMove):(h($,"dragend",this),h(K,"dragstart",this._onDragStart));try{document.selection?Fe((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(ye=!1,K&&$){V("dragStarted",this,{evt:t}),this.nativeDraggable&&h(document,"dragover",je);var n=this.options;!e&&k($,n.dragClass,!1),k($,n.ghostClass,!0),He.active=this,e&&this._appendGhost(),q({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ce){this._lastX=ce.clientX,this._lastY=ce.clientY,Ye();for(var e=document.elementFromPoint(ce.clientX,ce.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ce.clientX,ce.clientY))!==t;)t=e;if($.parentNode[R]._isOutsideThisEl(e),t)do{if(t[R]&&t[R]._onDragOver({clientX:ce.clientX,clientY:ce.clientY,target:e,rootEl:t})&&!this.options.dragoverBubble)break;e=t}while(t=t.parentNode);ze()}},_onTouchMove:function(e){if(se){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,a=J&&x(J,!0),i=J&&a&&a.a,s=J&&a&&a.d,c=Le&&_e&&B(_e),l=(o.clientX-se.clientX+r.x)/(i||1)+(c?c[0]-we[0]:0)/(i||1),u=(o.clientY-se.clientY+r.y)/(s||1)+(c?c[1]-we[1]:0)/(s||1);if(!He.active&&!ye){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){a?(a.e+=l-(le||0),a.f+=u-(ue||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");w(J,"webkitTransform",d),w(J,"mozTransform",d),w(J,"msTransform",d),w(J,"transform",d),le=l,ue=u,ce=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){var e=this.options.fallbackOnBody?document.body:K,t=L($,!0,Le,!0,e),n=this.options;if(Le){for(_e=e;"static"===w(_e,"position")&&"none"===w(_e,"transform")&&_e!==document;)_e=_e.parentNode;_e!==document.body&&_e!==document.documentElement?(_e===document&&(_e=M()),t.top+=_e.scrollTop,t.left+=_e.scrollLeft):_e=M(),we=B(_e)}k(J=$.cloneNode(!0),n.ghostClass,!1),k(J,n.fallbackClass,!0),k(J,n.dragClass,!0),w(J,"transition",""),w(J,"transform",""),w(J,"box-sizing","border-box"),w(J,"margin",0),w(J,"top",t.top),w(J,"left",t.left),w(J,"width",t.width),w(J,"height",t.height),w(J,"opacity","0.8"),w(J,"position",Le?"absolute":"fixed"),w(J,"zIndex","100000"),w(J,"pointerEvents","none"),He.ghost=J,e.appendChild(J),w(J,"transform-origin",de/parseInt(J.style.width)*100+"% "+fe/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,o=n.options;V("dragStart",this,{evt:e}),He.eventCanceled?this._onDrop():(V("setupClone",this),He.eventCanceled||((Q=H($)).draggable=!1,Q.style["will-change"]="",this._hideClone(),k(Q,this.options.chosenClass,!1),He.clone=Q),n.cloneId=Fe((function(){V("clone",n),He.eventCanceled||(n.options.removeCloneOnHide||K.insertBefore(Q,$),n._hideClone(),q({sortable:n,name:"clone"}))})),!t&&k($,o.dragClass,!0),t?(ve=!0,n._loopId=setInterval(n._emulateDragOver,50)):(g(document,"mouseup",n._onDrop),g(document,"touchend",n._onDrop),g(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,$)),h(document,"drop",n),w($,"transform","translateZ(0)")),ye=!0,n._dragStartId=Fe(n._dragStarted.bind(n,t,e)),h(document,"selectstart",n),me=!0,d&&w(document.body,"user-select","none"))},_onDragOver:function(e){var t,n,r,o,a=this.el,s=e.target,c=this.options,l=c.group,u=He.active,d=ae===l,f=c.sort,m=ie||u,p=this,h=!1;if(!xe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),s=v(s,c.draggable,a,!0),H("dragOver"),He.eventCanceled)return h;if($.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return I(!1);if(ve=!1,u&&!c.disabled&&(d?f||(r=!K.contains($)):ie===this||(this.lastPutMode=ae.checkPull(this,u,$,e))&&l.checkPut(this,u,$,e))){if(o="vertical"===this._getDirection(e,s),t=L($),H("dragOverValid"),He.eventCanceled)return h;if(r)return G=K,P(),this._hideClone(),H("revert"),He.eventCanceled||(X?K.insertBefore($,X):K.appendChild($)),I(!0);var g=S(a,c.draggable);if(!g||function(e,t,n){var r=L(S(n.el,n.options.draggable));return t?e.clientX>r.right+10||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+10}(e,o,this)&&!g.animated){if(g===$)return I(!1);if(g&&a===e.target&&(s=g),s&&(n=L(s)),!1!==Pe(K,a,$,t,s,n,e,!!s))return P(),a.appendChild($),G=a,N(),I(!0)}else if(s.parentNode===a){n=L(s);var _,y,b,A=$.parentNode!==a,x=!function(e,t,n){var r=n?e.left:e.top,o=n?e.right:e.bottom,a=n?e.width:e.height,i=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===i||o===s||r+a/2===i+c/2}($.animated&&$.toRect||t,s.animated&&s.toRect||n,o),C=o?"top":"left",M=E(s,"top","top")||E($,"top","top"),D=M?M.scrollTop:void 0;if(pe!==s&&(y=n[C],Ae=!1,ke=!x&&c.invertSwap||A),_=function(e,t,n,r,o,a,i,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!i)if(s&&ge<l*o){if(!Ae&&(1===he?c>u+l*a/2:c<d-l*a/2)&&(Ae=!0),Ae)f=!0;else if(1===he?c<u+ge:c>d-ge)return-he}else if(c>u+l*(1-o)/2&&c<d-l*(1-o)/2)return function(e){return T($)<T(e)?1:-1}(t);return(f=f||i)&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}(e,s,n,o,x?1:c.swapThreshold,null==c.invertedSwapThreshold?c.swapThreshold:c.invertedSwapThreshold,ke,pe===s),0!==_){var B=T($);do{B-=_,b=G.children[B]}while(b&&("none"===w(b,"display")||b===J))}if(0===_||b===s)return I(!1);pe=s,he=_;var Y=s.nextElementSibling,z=!1,O=Pe(K,a,$,t,s,n,e,z=1===_);if(!1!==O)return 1!==O&&-1!==O||(z=1===O),xe=!0,setTimeout(Re,30),P(),z&&!Y?a.appendChild($):s.parentNode.insertBefore($,z?Y:s),M&&j(M,0,D-M.scrollTop),G=$.parentNode,void 0===y||ke||(ge=Math.abs(y-L(s)[C])),N(),I(!0)}if(a.contains($))return I(!1)}return!1}function H(c,l){V(c,p,i({evt:e,isOwner:d,axis:o?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:f,fromSortable:m,target:s,completed:I,onMove:function(n,r){return Pe(K,a,$,t,n,L(n),e,r)},changed:N},l))}function P(){H("dragOverAnimationCapture"),p.captureAnimationState(),p!==m&&m.captureAnimationState()}function I(t){return H("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==m&&(k($,ie?ie.options.ghostClass:u.options.ghostClass,!1),k($,c.ghostClass,!0)),ie!==p&&p!==He.active?ie=p:p===He.active&&ie&&(ie=null),m===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){H("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(s===$&&!$.animated||s===a&&!s.animated)&&(pe=null),c.dragoverBubble||e.rootEl||s===document||($.parentNode[R]._isOutsideThisEl(e.target),!t&&Oe(e)),!c.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function N(){ne=T($),oe=T($,c.draggable),q({sortable:p,name:"change",toEl:a,newIndex:ne,newDraggableIndex:oe,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){g(document,"mousemove",this._onTouchMove),g(document,"touchmove",this._onTouchMove),g(document,"pointermove",this._onTouchMove),g(document,"dragover",Oe),g(document,"mousemove",Oe),g(document,"touchmove",Oe)},_offUpEvents:function(){var e=this.el.ownerDocument;g(e,"mouseup",this._onDrop),g(e,"touchend",this._onDrop),g(e,"pointerup",this._onDrop),g(e,"touchcancel",this._onDrop),g(document,"selectstart",this)},_onDrop:function(e){var t=this.el,n=this.options;ne=T($),oe=T($,n.draggable),V("drop",this,{evt:e}),G=$&&$.parentNode,ne=T($),oe=T($,n.draggable),He.eventCanceled||(ye=!1,ke=!1,Ae=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),We(this.cloneId),We(this._dragStartId),this.nativeDraggable&&(g(document,"drop",this),g(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),d&&w(document.body,"user-select",""),w($,"transform",""),e&&(me&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(K===G||ie&&"clone"!==ie.lastPutMode)&&Q&&Q.parentNode&&Q.parentNode.removeChild(Q),$&&(this.nativeDraggable&&g($,"dragend",this),Ie($),$.style["will-change"]="",me&&!ye&&k($,ie?ie.options.ghostClass:this.options.ghostClass,!1),k($,this.options.chosenClass,!1),q({sortable:this,name:"unchoose",toEl:G,newIndex:null,newDraggableIndex:null,originalEvent:e}),K!==G?(ne>=0&&(q({rootEl:G,name:"add",toEl:G,fromEl:K,originalEvent:e}),q({sortable:this,name:"remove",toEl:G,originalEvent:e}),q({rootEl:G,name:"sort",toEl:G,fromEl:K,originalEvent:e}),q({sortable:this,name:"sort",toEl:G,originalEvent:e})),ie&&ie.save()):ne!==te&&ne>=0&&(q({sortable:this,name:"update",toEl:G,originalEvent:e}),q({sortable:this,name:"sort",toEl:G,originalEvent:e})),He.active&&(null!=ne&&-1!==ne||(ne=te,oe=re),q({sortable:this,name:"end",toEl:G,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){V("nulling",this),K=$=G=J=X=Q=Z=ee=se=ce=me=ne=oe=te=re=pe=he=ie=ae=He.dragged=He.ghost=He.clone=He.active=null,Ce.forEach((function(e){e.checked=!0})),Ce.length=le=ue=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":$&&(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,a=this.options;r<o;r++)v(e=n[r],a.draggable,this.el,!1)&&t.push(e.getAttribute(a.dataIdAttr)||Ne(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach((function(e,r){var o=n.children[r];v(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return v(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=W.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Be(n)},destroy:function(){V("destroy",this);var e=this.el;e[R]=null,g(e,"mousedown",this._onTapStart),g(e,"touchstart",this._onTapStart),g(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(g(e,"dragover",this),g(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),be.splice(be.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!ee){if(V("hideClone",this),He.eventCanceled)return;w(Q,"display","none"),this.options.removeCloneOnHide&&Q.parentNode&&Q.parentNode.removeChild(Q),ee=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(ee){if(V("showClone",this),He.eventCanceled)return;K.contains($)&&!this.options.group.revertClone?K.insertBefore(Q,$):X?K.insertBefore(Q,X):K.appendChild(Q),this.options.group.revertClone&&this.animate($,Q),w(Q,"display",""),ee=!1}}else this._hideClone()}},Me&&h(document,"touchmove",(function(e){(He.active||ye)&&e.cancelable&&e.preventDefault()})),He.utils={on:h,off:g,css:w,find:C,is:function(e,t){return!!v(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:O,closest:v,toggleClass:k,clone:H,index:T,nextTick:Fe,cancelNextTick:We,detectDirection:Te,getChild:D},He.get=function(e){return e[R]},He.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&&(He.utils=i({},He.utils,e.utils)),W.mount(e)}))},He.create=function(e,t){return new He(e,t)},He.version="1.10.2";var Ue,Ve,qe,$e,Ge,Je,Ke=[],Xe=!1;function Ze(){Ke.forEach((function(e){clearInterval(e.pid)})),Ke=[]}function Qe(){clearInterval(Je)}var et,tt=O((function(e,t,n,r){if(t.scroll){var o,a=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,l=M(),u=!1;Ve!==n&&(Ve=n,Ze(),Ue=t.scroll,o=t.scrollFn,!0===Ue&&(Ue=Y(n,!0)));var d=0,f=Ue;do{var m=f,p=L(m),h=p.top,g=p.bottom,_=p.left,y=p.right,v=p.width,b=p.height,A=void 0,k=void 0,x=m.scrollWidth,C=m.scrollHeight,E=w(m),D=m.scrollLeft,S=m.scrollTop;m===l?(A=v<x&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),k=b<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(A=v<x&&("auto"===E.overflowX||"scroll"===E.overflowX),k=b<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var T=A&&(Math.abs(y-a)<=s&&D+v<x)-(Math.abs(_-a)<=s&&!!D),B=k&&(Math.abs(g-i)<=s&&S+b<C)-(Math.abs(h-i)<=s&&!!S);if(!Ke[d])for(var z=0;z<=d;z++)Ke[z]||(Ke[z]={});Ke[d].vx==T&&Ke[d].vy==B&&Ke[d].el===m||(Ke[d].el=m,Ke[d].vx=T,Ke[d].vy=B,clearInterval(Ke[d].pid),0==T&&0==B||(u=!0,Ke[d].pid=setInterval(function(){r&&0===this.layer&&He.active._onTouchMove(Ge);var t=Ke[this.layer].vy?Ke[this.layer].vy*c:0,n=Ke[this.layer].vx?Ke[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(He.dragged.parentNode[R],n,t,e,Ge,Ke[this.layer].el)||j(Ke[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=Y(f,!1)));Xe=u}}),30),nt=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,o=e.activeSortable,a=e.dispatchSortableEvent,i=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||o;i();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function rt(){}function ot(){}function at(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(e){var t=e.dragEl;et=t},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,o=e.activeSortable,a=e.changed,i=e.cancel;if(o.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=et;!1!==r(n)?(k(n,c.swapClass,!0),et=n):et=null,l&&l!==et&&k(l,c.swapClass,!1)}a(),t(!0),i()}},drop:function(e){var t,n,r,o,a,i,s=e.activeSortable,c=e.putSortable,l=e.dragEl,u=c||this.sortable,d=this.options;et&&k(et,d.swapClass,!1),et&&(d.swap||c&&c.options.swap)&&l!==et&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),n=et,a=(t=l).parentNode,i=n.parentNode,a&&i&&!a.isEqualNode(n)&&!i.isEqualNode(t)&&(r=T(t),o=T(n),a.isEqualNode(i)&&r<o&&o++,a.insertBefore(n,a.children[r]),i.insertBefore(t,i.children[o])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){et=null}},a(e,{pluginName:"swap",eventProperties:function(){return{swapItem:et}}})}rt.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=D(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:nt},a(rt,{pluginName:"revertOnSpill"}),ot.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:nt},a(ot,{pluginName:"removeOnSpill"});var it,st,ct,lt,ut,dt=[],ft=[],mt=!1,pt=!1,ht=!1;function gt(){function e(e){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));e.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag)),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,n){var r="";dt.length&&st===e?dt.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;ct=t},delayEnded:function(){this.isMultiDrag=~dt.indexOf(ct)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<dt.length;r++)ft.push(H(dt[r])),ft[r].sortableIndex=dt[r].sortableIndex,ft[r].draggable=!1,ft[r].style["will-change"]="",k(ft[r],this.options.selectedClass,!1),dt[r]===ct&&k(ft[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||dt.length&&st===t&&(_t(!0,n),r("clone"),o()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(_t(!1,n),ft.forEach((function(e){w(e,"display","")})),t(),ut=!1,r())},hideClone:function(e){var t=this,n=(e.sortable,e.cloneNowHidden),r=e.cancel;this.isMultiDrag&&(ft.forEach((function(e){w(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),n(),ut=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&st&&st.multiDrag._deselectMultiDrag(),dt.forEach((function(e){e.sortableIndex=T(e)})),dt=dt.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),ht=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){dt.forEach((function(e){e!==ct&&w(e,"position","absolute")}));var r=L(ct,!1,!0,!0);dt.forEach((function(e){e!==ct&&P(e,r)})),pt=!0,mt=!0}n.animateAll((function(){pt=!1,mt=!1,t.options.animation&&dt.forEach((function(e){I(e)})),t.options.sort&&yt()}))}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;pt&&~dt.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,o=e.dragRect;dt.length>1&&(dt.forEach((function(e){r.addAnimationState({target:e,rect:pt?L(e):o}),I(e),e.fromRect=o,t.removeAnimationState(e)})),pt=!1,function(e,t){dt.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,a=e.parentEl,i=e.putSortable,s=this.options;if(r){if(n&&o._hideClone(),mt=!1,s.animation&&dt.length>1&&(pt||!n&&!o.options.sort&&!i)){var c=L(ct,!1,!0,!0);dt.forEach((function(e){e!==ct&&(P(e,c),a.appendChild(e))})),pt=!0}if(!n)if(pt||yt(),dt.length>1){var l=ut;o._showClone(t),o.options.animation&&!ut&&l&&ft.forEach((function(e){o.addAnimationState({target:e,rect:lt}),e.fromRect=lt,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(dt.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){lt=a({},t);var o=x(ct,!0);lt.top-=o.f,lt.left-=o.e}},dragOverAnimationComplete:function(){pt&&(pt=!1,yt())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,o=e.sortable,a=e.dispatchSortableEvent,i=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!ht)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),k(ct,l.selectedClass,!~dt.indexOf(ct)),~dt.indexOf(ct))dt.splice(dt.indexOf(ct),1),it=null,U({sortable:o,rootEl:n,name:"deselect",targetEl:ct,originalEvt:t});else{if(dt.push(ct),U({sortable:o,rootEl:n,name:"select",targetEl:ct,originalEvt:t}),t.shiftKey&&it&&o.el.contains(it)){var d,f,m=T(it),p=T(ct);if(~m&&~p&&m!==p)for(p>m?(f=m,d=p):(f=p,d=m+1);f<d;f++)~dt.indexOf(u[f])||(k(u[f],l.selectedClass,!0),dt.push(u[f]),U({sortable:o,rootEl:n,name:"select",targetEl:u[f],originalEvt:t}))}else it=ct;st=c}if(ht&&this.isMultiDrag){if((r[R].options.sort||r!==n)&&dt.length>1){var h=L(ct),g=T(ct,":not(."+this.options.selectedClass+")");if(!mt&&l.animation&&(ct.thisAnimationDuration=null),c.captureAnimationState(),!mt&&(l.animation&&(ct.fromRect=h,dt.forEach((function(e){if(e.thisAnimationDuration=null,e!==ct){var t=pt?L(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}}))),yt(),dt.forEach((function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++})),i===T(ct))){var _=!1;dt.forEach((function(e){e.sortableIndex===T(e)||(_=!0)})),_&&a("update")}dt.forEach((function(e){I(e)})),c.animateAll()}st=c}(n===r||s&&"clone"!==s.lastPutMode)&&ft.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function(){this.isMultiDrag=ht=!1,ft.length=0},destroyGlobal:function(){this._deselectMultiDrag(),g(document,"pointerup",this._deselectMultiDrag),g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(void 0!==ht&&ht||st!==this.sortable||e&&v(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;dt.length;){var t=dt[0];k(t,this.options.selectedClass,!1),dt.shift(),U({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)}},a(e,{pluginName:"multiDrag",utils:{select:function(e){var t=e.parentNode[R];t&&t.options.multiDrag&&!~dt.indexOf(e)&&(st&&st!==t&&(st.multiDrag._deselectMultiDrag(),st=t),k(e,t.options.selectedClass,!0),dt.push(e))},deselect:function(e){var t=e.parentNode[R],n=dt.indexOf(e);t&&t.options.multiDrag&&~n&&(k(e,t.options.selectedClass,!1),dt.splice(n,1))}},eventProperties:function(){var e,t=this,n=[],r=[];return dt.forEach((function(e){var o;n.push({multiDragElement:e,index:e.sortableIndex}),o=pt&&e!==ct?-1:pt?T(e,":not(."+t.options.selectedClass+")"):T(e),r.push({multiDragElement:e,index:o})})),{items:(e=dt,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()),clones:[].concat(ft),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function _t(e,t){ft.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function yt(){dt.forEach((function(e){e!==ct&&e.parentNode&&e.parentNode.removeChild(e)}))}He.mount(new function(){function e(){for(var e in this.defaults={scroll:!0,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?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):t.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?g(document,"dragover",this._handleAutoScroll):(g(document,"pointermove",this._handleFallbackAutoScroll),g(document,"touchmove",this._handleFallbackAutoScroll),g(document,"mousemove",this._handleFallbackAutoScroll)),Qe(),Ze(),clearTimeout(b),b=void 0},nulling:function(){Ge=Ve=Ue=Xe=Je=qe=$e=null,Ke.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,a=document.elementFromPoint(r,o);if(Ge=e,t||l||c||d){tt(e,this.options,a,t);var i=Y(a,!0);!Xe||Je&&r===qe&&o===$e||(Je&&Qe(),Je=setInterval((function(){var a=Y(document.elementFromPoint(r,o),!0);a!==i&&(i=a,Ze()),tt(e,n.options,a,t)}),10),qe=r,$e=o)}else{if(!this.options.bubbleScroll||Y(a,!0)===M())return void Ze();tt(e,this.options,Y(a,!1),!1)}}},a(e,{pluginName:"scroll",initializeByDefault:!0})}),He.mount(ot,rt),t.default=He},283:function(e,t,n){"use strict";var r=n(9504),o=n(9039),a=n(4901),i=n(9297),s=n(3724),c=n(350).CONFIGURABLE,l=n(3706),u=n(1181),d=u.enforce,f=u.get,m=String,p=Object.defineProperty,h=r("".slice),g=r("".replace),_=r([].join),y=s&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),v=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===h(m(t),0,7)&&(t="["+g(m(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||c&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=d(e);return i(r,"source")||(r.source=_(v,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return a(this)&&f(this).source||l(this)}),"toString")},304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return