kingdot
Version:
A UI Components Library For Vue
1 lines • 409 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("KingDot",["vue"],e):"object"==typeof exports?exports.KingDot=e(require("vue")):t.KingDot=e(t.Vue)}("undefined"!=typeof self?self:this,(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist",i(i.s=187)}([function(t,e,i){"use strict";function n(t,e,i,n,a,r,s,o){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId="data-v-"+r),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):a&&(l=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}i.d(e,"a",(function(){return n}))},function(t,e,i){var n,a,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(s,o){"object"==r(e)&&void 0!==t?t.exports=o():void 0===(a="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=a)}(0,(function(){"use strict";var t="millisecond",e="second",i="minute",n="hour",a="day",s="week",o="month",l="quarter",u="year",c="date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,h=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(t,e,i){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(i)+t},m={s:f,z:function(t){var e=-t.utcOffset(),i=Math.abs(e),n=Math.floor(i/60),a=i%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(a,2,"0")},m:function t(e,i){if(e.date()<i.date())return-t(i,e);var n=12*(i.year()-e.year())+(i.month()-e.month()),a=e.clone().add(n,o),r=i-a<0,s=e.clone().add(n+(r?-1:1),o);return+(-(n+(i-a)/(r?a-s:s-a))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(r){return{M:o,y:u,w:s,d:a,D:c,h:n,m:i,s:e,ms:t,Q:l}[r]||String(r||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",g={};g[v]=p;var y=function(t){return t instanceof w},b=function(t,e,i){var n;if(!t)return v;if("string"==typeof t)g[t]&&(n=t),e&&(g[t]=e,n=t);else{var a=t.name;g[a]=t,n=a}return!i&&n&&(v=n),n||!i&&v},k=function(t,e){if(y(t))return t.clone();var i="object"==(void 0===e?"undefined":r(e))?e:{};return i.date=t,i.args=arguments,new w(i)},x=m;x.l=b,x.i=y,x.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var w=function(){function r(t){this.$L=this.$L||b(t.locale,null,!0),this.parse(t)}var p=r.prototype;return p.parse=function(t){this.$d=function(t){var e=t.date,i=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(d);if(n){var a=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return!("Invalid Date"===this.$d.toString())},p.isSame=function(t,e){var i=k(t);return this.startOf(e)<=i&&i<=this.endOf(e)},p.isAfter=function(t,e){return k(t)<this.startOf(e)},p.isBefore=function(t,e){return this.endOf(e)<k(t)},p.$g=function(t,e,i){return x.u(t)?this[e]:this.set(i,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,r){var l=this,d=!!x.u(r)||r,h=x.p(t),p=function(t,e){var i=x.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return d?i:i.endOf(a)},f=function(t,e){return x.w(l.toDate()[t].apply(l.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},m=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case u:return d?p(1,0):p(31,11);case o:return d?p(1,v):p(0,v+1);case s:var b=this.$locale().weekStart||0,k=(m<b?m+7:m)-b;return p(d?g-k:g+(6-k),v);case a:case c:return f(y+"Hours",0);case n:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case e:return f(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(r,s){var l,d=x.p(r),h="set"+(this.$u?"UTC":""),p=(l={},l[a]=h+"Date",l[c]=h+"Date",l[o]=h+"Month",l[u]=h+"FullYear",l[n]=h+"Hours",l[i]=h+"Minutes",l[e]=h+"Seconds",l[t]=h+"Milliseconds",l)[d],f=d===a?this.$D+(s-this.$W):s;if(d===o||d===u){var m=this.clone().set(c,1);m.$d[p](f),m.init(),this.$d=m.set(c,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},p.set=function(t,e){return this.clone().$set(t,e)},p.get=function(t){return this[x.p(t)]()},p.add=function(t,r){var l,c=this;t=Number(t);var d=x.p(r),h=function(e){var i=k(c);return x.w(i.date(i.date()+Math.round(e*t)),c)};if(d===o)return this.set(o,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===a)return h(1);if(d===s)return h(7);var p=(l={},l[i]=6e4,l[n]=36e5,l[e]=1e3,l)[d]||1,f=this.$d.getTime()+t*p;return x.w(f,this)},p.subtract=function(t,e){return this.add(-1*t,e)},p.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var i=t||"YYYY-MM-DDTHH:mm:ssZ",n=x.z(this),a=this.$locale(),r=this.$H,s=this.$m,o=this.$M,l=a.weekdays,u=a.months,c=function(t,n,a,r){return t&&(t[n]||t(e,i))||a[n].substr(0,r)},d=function(t){return x.s(r%12||12,t,"0")},p=a.meridiem||function(t,e,i){var n=t<12?"AM":"PM";return i?n.toLowerCase():n},f={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:x.s(o+1,2,"0"),MMM:c(a.monthsShort,o,u,3),MMMM:c(u,o),D:this.$D,DD:x.s(this.$D,2,"0"),d:String(this.$W),dd:c(a.weekdaysMin,this.$W,l,2),ddd:c(a.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:x.s(r,2,"0"),h:d(1),hh:d(2),a:p(r,s,!0),A:p(r,s,!1),m:String(s),mm:x.s(s,2,"0"),s:String(this.$s),ss:x.s(this.$s,2,"0"),SSS:x.s(this.$ms,3,"0"),Z:n};return i.replace(h,(function(t,e){return e||f[t]||n.replace(":","")}))},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(t,r,c){var d,h=x.p(r),p=k(t),f=6e4*(p.utcOffset()-this.utcOffset()),m=this-p,v=x.m(this,p);return v=(d={},d[u]=v/12,d[o]=v,d[l]=v/3,d[s]=(m-f)/6048e5,d[a]=(m-f)/864e5,d[n]=m/36e5,d[i]=m/6e4,d[e]=m/1e3,d)[h]||m,c?v:x.a(v)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return g[this.$L]},p.locale=function(t,e){if(!t)return this.$L;var i=this.clone(),n=b(t,e,!0);return n&&(i.$L=n),i},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},r}(),S=w.prototype;return k.prototype=S,[["$ms",t],["$s",e],["$m",i],["$H",n],["$W",a],["$M",o],["$y",u],["$D",c]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t(e,w,k),k},k.locale=b,k.isDayjs=y,k.unix=function(t){return k(1e3*t)},k.en=g[v],k.Ls=g,k}))},function(e,i){e.exports=t},function(t,e,i){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(53),r="object"==("undefined"==typeof self?"undefined":n(self))&&self&&self.Object===Object&&self,s=a||r||Function("return this")();t.exports=s},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){"use strict";var n=i(7);n.a.install=function(t){t.component(n.a.name,n.a)},e.a=n.a},function(t,e,i){"use strict";var n={name:"KdCheckbox",props:{value:{type:[String,Number,Boolean,Array]},name:{type:String},trueValue:{type:[String,Number,Boolean],default:!0},falseValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},label:{type:String}},data:function(){return{model:!0}},computed:{isChecked:function(){return this.model===this.trueValue}},watch:{value:{immediate:!0,handler:function(t){var e=!1;e=Array.isArray(t)?t.includes(this.trueValue):t===this.trueValue,this.model=e?this.trueValue:this.falseValue}}},methods:{change:function(){var t=this,e=void 0,i=void 0;this.disabled||(i=Array.isArray(this.value)?[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}(this.value)):this.value,this.isChecked?Array.isArray(i)&&!i.includes(this.trueValue)?i.push(this.trueValue):i=this.trueValue:Array.isArray(i)?~(e=i.findIndex((function(e){return e===t.trueValue})))&&i.splice(e,1):i=this.falseValue,this.$emit("input",i),this.$emit("change",i))}}},a=i(0),r=Object(a.a)(n,(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("label",{class:{"kd-checkbox":!0,"kd-is-checked":t.isChecked,"kd-is-disabled":t.disabled,"kd-is-indeterminate":t.indeterminate}},[i("span",{staticClass:"kd-checkbox-wrap"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"kd-checkbox-input",attrs:{type:"checkbox",name:t.name,indeterminate:t.indeterminate,disabled:t.disabled,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t._q(t.model,t.trueValue)},on:{change:[function(e){var i=t.model,n=e.target,a=n.checked?t.trueValue:t.falseValue;if(Array.isArray(i)){var r=t._i(i,null);n.checked?r<0&&(t.model=i.concat([null])):r>-1&&(t.model=i.slice(0,r).concat(i.slice(r+1)))}else t.model=a},t.change]}})]),i("span",{staticClass:"kd-checkbox-text"},[t._t("default",[t._v(t._s(t.label))])],2)])}),[],!1,null,null,null);e.a=r.exports},function(t,e,i){var n=i(95),a=i(101);t.exports=function(t,e){var i=a(t,e);return n(i)?i:void 0}},function(t,e,i){var n=i(10),a=i(27);t.exports=i(11)?function(t,e,i){return n.f(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(25),a=i(64),r=i(39),s=Object.defineProperty;e.f=i(11)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),a)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){t.exports=!i(26)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(160),a=i(38);t.exports=function(t){return n(a(t))}},function(t,e,i){var n=i(43)("wks"),a=i(28),r=i(4).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:a)("Symbol."+t))}).store=n},function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return"object"===(void 0===t?"undefined":i(t))?null!==t:"function"==typeof t}},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(t,e){return e.indexOf(t)>-1},r=function t(e){var i=e.type,a=e.motion;n(this,t);var r=a?i+"-"+a:i;this.props={"enter-active-class":r+"-enter "+r+"-enter-active","leave-active-class":r+"-leave "+r+"-leave-active"}},s=function t(){n(this,t),this.on={beforeEnter:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=window.getComputedStyle(t).paddingTop,t.dataset.oldPaddingBottom=window.getComputedStyle(t).paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0,t.classList.add("kd-collapse-transition")},enter:function(t){t.dataset.oldOverflow=t.style.overflow,0!==t.scrollHeight?(t.style.height=t.scrollHeight+"px",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom):(t.style.height="",t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom),t.style.overflow="hidden"},afterEnter:function(t){t.classList.remove("kd-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},beforeLeave:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=window.getComputedStyle(t).paddingTop,t.dataset.oldPaddingBottom=window.getComputedStyle(t).paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight-parseFloat(t.dataset.oldPaddingTop)-parseFloat(t.dataset.oldPaddingBottom)+"px",t.style.overflow="hidden",t.classList.add("kd-collapse-transition")},leave:function(t){0!==t.scrollHeight&&(t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0,t.classList.add("kd-collapse-transition"))},afterLeave:function(t){t.classList.remove("kd-collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop||0,t.style.paddingBottom=t.dataset.oldPaddingBottom||0}}},o={name:"KdTransition",functional:!0,render:function(t,e){var i=e.props,n=i.type;return t("transition",Object.assign({},e.data,function(t){return a(t,["fade","move","slide","swing","zoom"])?new r(i):a(t,["collapse"])?new s:{}}(n)),e.children)}},l=i(0),u=Object(l.a)(o,void 0,void 0,!1,null,null,null).exports;u.install=function(t){t.component(u.name,u)};e.a=u},function(t,e,i){var n=i(151),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t};function r(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return Array.from(t)}!function(){Array.from||(Array.from=function(t){return[].slice.call(t)});var e=function(t){function e(t){t.parentElement.removeChild(t)}function i(t,e,i){var n=0===i?t.children[0]:t.children[i-1].nextSibling;t.insertBefore(e,n)}function n(t,e){var i=this;this.$nextTick((function(){return i.$emit(t.toLowerCase(),e)}))}function s(t){var e=this;return function(i){null!==e.realList&&e["onDrag"+t](i),n.call(e,t,i)}}var o=["Start","Add","Remove","Update","End"],l=["Choose","Sort","Filter","Clone"],u=["Move"].concat(o,l).map((function(t){return"on"+t})),c=null;return{name:"KdDraggable",props:{options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(t){return t}},element:{type:String,default:"div"},move:{type:Function,default:null}},data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1,init:!1}},render:function(t){var e=this.$slots.default;if(e&&1===e.length){var i=e[0];i.componentOptions&&"transition-group"===i.componentOptions.tag&&(this.transitionMode=!0)}var n=e,a=this.$slots.footer;return a&&(n=e?[].concat(r(e),r(a)):[].concat(r(a))),t(this.element,null,n)},mounted:function(){var e=this;if(this.noneFunctionalComponentMode=this.element.toLowerCase()!==this.$el.nodeName.toLowerCase(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter element value or remove transition-group. Current element value: "+this.element);var i={};o.forEach((function(t){i["on"+t]=s.call(e,t)})),l.forEach((function(t){i["on"+t]=n.bind(e,t)}));var r=a({},this.options,i,{onMove:function(t,i){return e.onDragMove(t,i)}});!("draggable"in r)&&(r.draggable=">*"),this._sortable=new t(this.rootContainer,r),this.computeIndexes()},beforeDestroy:function(){this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},isCloning:function(){return!!this.options&&!!this.options.group&&"clone"===this.options.group.pull},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(t){for(var e in t)-1==u.indexOf(e)&&this._sortable.option(e,t[e])},deep:!0},realList:function(){this.computeIndexes()}},methods:{getChildrenNodes:function(){if(this.init||(this.noneFunctionalComponentMode=this.noneFunctionalComponentMode&&1==this.$children.length,this.init=!0),this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var t=this.$slots.default;return this.transitionMode?t[0].child.$slots.default:t},computeIndexes:function(){var t=this;this.$nextTick((function(){t.visibleIndexes=function(t,e,i){if(!t)return[];var n=t.map((function(t){return t.elm})),a=[].concat(r(e)).map((function(t){return n.indexOf(t)}));return i?a.filter((function(t){return-1!==t})):a}(t.getChildrenNodes(),t.rootContainer.children,t.transitionMode)}))},getUnderlyingVm:function(t){var e=function(t,e){return t.map((function(t){return t.elm})).indexOf(e)}(this.getChildrenNodes()||[],t);return-1===e?null:{index:e,element:this.realList[e]}},getUnderlyingPotencialDraggableComponent:function(t){var e=t.__vue__;return e&&e.$options&&"transition-group"===e.$options._componentTag?e.$parent:e},emitChanges:function(t){var e=this;this.$nextTick((function(){e.$emit("change",t)}))},alterList:function(t){if(this.list)t(this.list);else{var e=[].concat(r(this.value));t(e),this.$emit("input",e)}},spliceList:function(){var t=arguments,e=function(e){return e.splice.apply(e,t)};this.alterList(e)},updatePosition:function(t,e){var i=function(i){return i.splice(e,0,i.splice(t,1)[0])};this.alterList(i)},getRelatedContextFromMoveEvent:function(t){var e=t.to,i=t.related,n=this.getUnderlyingPotencialDraggableComponent(e);if(!n)return{component:n};var r=n.realList,s={list:r,component:n};if(e!==i&&r&&n.getUnderlyingVm){var o=n.getUnderlyingVm(i);if(o)return a(o,s)}return s},getVmIndex:function(t){var e=this.visibleIndexes,i=e.length;return t>i-1?i:e[t]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(t){if(this.noTransitionOnDrag&&this.transitionMode){this.getChildrenNodes()[t].data=null;var e=this.getComponent();e.children=[],e.kept=void 0}},onDragStart:function(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),c=t.item},onDragAdd:function(t){var i=t.item._underlying_vm_;if(void 0!==i){e(t.item);var n=this.getVmIndex(t.newIndex);this.spliceList(n,0,i),this.computeIndexes();var a={element:i,newIndex:n};this.emitChanges({added:a})}},onDragRemove:function(t){if(i(this.rootContainer,t.item,t.oldIndex),this.isCloning)e(t.clone);else{var n=this.context.index;this.spliceList(n,1);var a={element:this.context.element,oldIndex:n};this.resetTransitionData(n),this.emitChanges({removed:a})}},onDragUpdate:function(t){e(t.item),i(t.from,t.item,t.oldIndex);var n=this.context.index,a=this.getVmIndex(t.newIndex);this.updatePosition(n,a);var r={element:this.context.element,oldIndex:n,newIndex:a};this.emitChanges({moved:r})},computeFutureIndex:function(t,e){if(!t.element)return 0;var i=[].concat(r(e.to.children)).filter((function(t){return"none"!==t.style.display})),n=i.indexOf(e.related),a=t.component.getVmIndex(n);return-1!=i.indexOf(c)||!e.willInsertAfter?a:a+1},onDragMove:function(t,e){var i=this.move;if(!i||!this.realList)return!0;var n=this.getRelatedContextFromMoveEvent(t),r=this.context,s=this.computeFutureIndex(n,t);return a(r,{futureIndex:s}),a(t,{relatedContext:n,draggedContext:r}),i(t,e)},onDragEnd:function(t){this.computeIndexes(),c=null}}}}(n);t.exports=e}()},function(t,e,i){var n=i(85),a=i(86),r=i(87),s=i(88),o=i(89);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=s,l.prototype.set=o,t.exports=l},function(t,e,i){var n=i(51);t.exports=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1}},function(t,e,i){var n=i(35),a=i(97),r=i(98),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?a(t):r(t)}},function(t,e,i){var n=i(8)(Object,"create");t.exports=n},function(t,e,i){var n=i(110);t.exports=function(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return null!=t&&"object"==(void 0===t?"undefined":i(t))}},function(t,e){t.exports=!0},function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(14);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(49),a=i(78);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.i,a,""]]);var r={insert:"head",singleton:!1};n(a,r);t.exports=a.locals||{}},function(t,e){},function(t,e,i){var n=i(49),a=i(186);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[t.i,a,""]]);var r={insert:"head",singleton:!1};n(a,r);t.exports=a.locals||{}},function(t,e,i){var n=i(82);t.exports=function(t,e){return n(t,e)}},function(t,e){var i=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var a,r,s,o,l;for(s in e)if(a=t[s],r=e[s],a&&i.test(s))if("class"===s&&("string"==typeof a&&(l=a,t[s]=a={},a[l]=!0),"string"==typeof r&&(l=r,e[s]=r={},r[l]=!0)),"on"===s||"nativeOn"===s||"hook"===s)for(o in r)a[o]=n(a[o],r[o]);else if(Array.isArray(a))t[s]=a.concat(r);else if(Array.isArray(r))t[s]=[a].concat(r);else for(o in r)a[o]=r[o];else t[s]=e[s];return t}),{})}},function(t,e,i){var n=i(8)(i(3),"Map");t.exports=n},function(t,e,i){var n=i(3).Symbol;t.exports=n},function(t,e){var i=Array.isArray;t.exports=i},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,i){var n=i(14);t.exports=function(t,e){if(!n(t))return t;var i,a;if(e&&"function"==typeof(i=t.toString)&&!n(a=i.call(t)))return a;if("function"==typeof(i=t.valueOf)&&!n(a=i.call(t)))return a;if(!e&&"function"==typeof(i=t.toString)&&!n(a=i.call(t)))return a;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,i){var n=i(68),a=i(44);t.exports=Object.keys||function(t){return n(t,a)}},function(t,e,i){var n=i(43)("keys"),a=i(28);t.exports=function(t){return n[t]||(n[t]=a(t))}},function(t,e,i){var n=i(24),a=i(4),r=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(23)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var n=i(10).f,a=i(5),r=i(13)("toStringTag");t.exports=function(t,e,i){t&&!a(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},function(t,e,i){e.f=i(13)},function(t,e,i){var n=i(4),a=i(24),r=i(23),s=i(46),o=i(10).f;t.exports=function(t){var e=a.Symbol||(a.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:s.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),s=[];function o(t){for(var e=-1,i=0;i<s.length;i++)if(s[i].identifier===t){e=i;break}return e}function l(t,e){for(var i={},n=[],a=0;a<t.length;a++){var r=t[a],l=e.base?r[0]+e.base:r[0],u=i[l]||0,c="".concat(l," ").concat(u);i[l]=u+1;var d=o(c),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(s[d].references++,s[d].updater(h)):s.push({identifier:c,updater:v(h,e),references:1}),n.push(c)}return n}function u(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var a=i.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var c,d=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function h(t,e,i,n){var a=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=d(e,a);else{var r=document.createTextNode(a),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function p(t,e,i){var n=i.css,a=i.media,r=i.sourceMap;if(a?t.setAttribute("media",a):t.removeAttribute("media"),r&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f=null,m=0;function v(t,e){var i,n,a;if(e.singleton){var r=m++;i=f||(f=u(e)),n=h.bind(null,i,r,!1),a=h.bind(null,i,r,!0)}else i=u(e),n=p.bind(null,i,e),a=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else a()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=a());var i=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var a=o(i[n]);s[a].references--}for(var r=l(t,e),u=0;u<i.length;u++){var c=o(i[u]);0===s[c].references&&(s[c].updater(),s.splice(c,1))}i=r}}}},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var a=(s=n,o=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(l," */")),r=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[i].concat(r).concat([a]).join("\n")}var s,o,l;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var a={};if(n)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(a[s]=!0)}for(var o=0;o<t.length;o++){var l=[].concat(t[o]);n&&a[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),e.push(l))}},e}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){var n=i(19),a=i(54);t.exports=function(t){if(!a(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,i){(function(e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n="object"==(void 0===e?"undefined":i(e))&&e&&e.Object===Object&&e;t.exports=n}).call(this,i(96))},function(t,e){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":i(t);return null!=t&&("object"==e||"function"==e)}},function(t,e){var i=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,i){var n=i(102),a=i(109),r=i(111),s=i(112),o=i(113);function l(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=a,l.prototype.get=r,l.prototype.has=s,l.prototype.set=o,t.exports=l},function(t,e,i){var n=i(114),a=i(117),r=i(118);t.exports=function(t,e,i,s,o,l){var u=1&i,c=t.length,d=e.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(t);if(h&&l.get(e))return h==e;var p=-1,f=!0,m=2&i?new n:void 0;for(l.set(t,e),l.set(e,t);++p<c;){var v=t[p],g=e[p];if(s)var y=u?s(g,v,p,e,t,l):s(v,g,p,t,e,l);if(void 0!==y){if(y)continue;f=!1;break}if(m){if(!a(e,(function(t,e){if(!r(m,e)&&(v===t||o(v,t,i,s,l)))return m.push(e)}))){f=!1;break}}else if(v!==g&&!o(v,g,i,s,l)){f=!1;break}}return l.delete(t),l.delete(e),f}},function(t,e,i){(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=i(3),r=i(135),s="object"==n(e)&&e&&!e.nodeType&&e,o=s&&"object"==n(t)&&t&&!t.nodeType&&t,l=o&&o.exports===s?a.Buffer:void 0,u=(l?l.isBuffer:void 0)||r;t.exports=u}).call(this,i(59)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var n=i(137),a=i(138),r=i(139),s=r&&r.isTypedArray,o=s?a(s):n;t.exports=o},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,i){"use strict";var n=i(23),a=i(63),r=i(66),s=i(9),o=i(40),l=i(158),u=i(45),c=i(165),d=i(13)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,i,f,m,v,g){l(i,e,f);var y,b,k,x=function(t){if(!h&&t in _)return _[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},w=e+" Iterator",S="values"==m,C=!1,_=t.prototype,D=_[d]||_["@@iterator"]||m&&_[m],T=D||x(m),$=m?S?x("entries"):T:void 0,O="Array"==e&&_.entries||D;if(O&&(k=c(O.call(new t)))!==Object.prototype&&k.next&&(u(k,w,!0),n||"function"==typeof k[d]||s(k,d,p)),S&&D&&"values"!==D.name&&(C=!0,T=function(){return D.call(this)}),n&&!g||!h&&!C&&_[d]||s(_,d,T),o[e]=T,o[w]=p,m)if(y={values:S?T:x("values"),keys:v?T:x("keys"),entries:$},g)for(b in y)b in _||r(_,b,y[b]);else a(a.P+a.F*(h||C),e,y);return y}},function(t,e,i){var n=i(4),a=i(24),r=i(156),s=i(9),o=i(5),l=function t(e,i,l){var u,c,d,h=e&t.F,p=e&t.G,f=e&t.S,m=e&t.P,v=e&t.B,g=e&t.W,y=p?a:a[i]||(a[i]={}),b=y.prototype,k=p?n:f?n[i]:(n[i]||{}).prototype;for(u in p&&(l=i),l)(c=!h&&k&&void 0!==k[u])&&o(y,u)||(d=c?k[u]:l[u],y[u]=p&&"function"!=typeof k[u]?l[u]:v&&c?r(d,n):g&&k[u]==d?function(t){var e=function(e,i,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?r(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&t.R&&b&&!b[u]&&s(b,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,i){t.exports=!i(11)&&!i(26)((function(){return 7!=Object.defineProperty(i(65)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(14),a=i(4).document,r=n(a)&&n(a.createElement);t.exports=function(t){return r?a.createElement(t):{}}},function(t,e,i){t.exports=i(9)},function(t,e,i){var n=i(25),a=i(159),r=i(44),s=i(42)("IE_PROTO"),o=function(){},l=function(){var t,e=i(65)("iframe"),n=r.length;for(e.style.display="none",i(164).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(o.prototype=n(t),i=new o,o.prototype=null,i[s]=t):i=l(),void 0===e?i:a(i,e)}},function(t,e,i){var n=i(5),a=i(12),r=i(161)(!1),s=i(42)("IE_PROTO");t.exports=function(t,e){var i,o=a(t),l=0,u=[];for(i in o)i!=s&&n(o,i)&&u.push(i);for(;e.length>l;)n(o,i=e[l++])&&(~r(u,i)||u.push(i));return u}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(38);t.exports=function(t){return Object(n(t))}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(68),a=i(44).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},function(t,e,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.__esModule=!0;var a=o(i(152)),r=o(i(170)),s="function"==typeof r.default&&"symbol"===n(a.default)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":n(t)};function o(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof r.default&&"symbol"===s(a.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof r.default&&t.constructor===r.default&&t!==r.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,i){!function(t){"use strict";function e(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function i(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function n(t){var e=i(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function a(t){return t instanceof i(t).Element||t instanceof Element}function r(t){return t instanceof i(t).HTMLElement||t instanceof HTMLElement}function s(t){return t?(t.nodeName||"").toLowerCase():null}function o(t){return((a(t)?t.ownerDocument:t.document)||window.document).documentElement}function l(t){return e(o(t)).left+n(t).scrollLeft}function u(t){return i(t).getComputedStyle(t)}function c(t){var e=u(t),i=e.overflow,n=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+a+n)}function d(t,a,u){void 0===u&&(u=!1);var d,h,p=o(a),f=e(t),m=r(a),v={scrollLeft:0,scrollTop:0},g={x:0,y:0};return(m||!m&&!u)&&(("body"!==s(a)||c(p))&&(v=(d=a)!==i(d)&&r(d)?{scrollLeft:(h=d).scrollLeft,scrollTop:h.scrollTop}:n(d)),r(a)?((g=e(a)).x+=a.clientLeft,g.y+=a.clientTop):p&&(g.x=l(p))),{x:f.left+v.scrollLeft-g.x,y:f.top+v.scrollTop-g.y,width:f.width,height:f.height}}function h(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function p(t){return"html"===s(t)?t:t.assignedSlot||t.parentNode||t.host||o(t)}function f(t,e){void 0===e&&(e=[]);var n=function t(e){return["html","body","#document"].indexOf(s(e))>=0?e.ownerDocument.body:r(e)&&c(e)?e:t(p(e))}(t),a="body"===s(n),o=i(n),l=a?[o].concat(o.visualViewport||[],c(n)?n:[]):n,u=e.concat(l);return a?u:u.concat(f(p(l)))}function m(t){return["table","td","th"].indexOf(s(t))>=0}function v(t){if(!r(t)||"fixed"===u(t).position)return null;var e=t.offsetParent;if(e){var i=o(e);if("body"===s(e)&&"static"===u(e).position&&"static"!==u(i).position)return i}return e}function g(t){for(var e=i(t),n=v(t);n&&m(n)&&"static"===u(n).position;)n=v(n);return n&&"body"===s(n)&&"static"===u(n).position?e:n||function(t){for(var e=p(t);r(e)&&["html","body"].indexOf(s(e))<0;){var i=u(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var y="top",b="bottom",k="right",x="left",w=[y,b,k,x],S=w.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),C=[].concat(w,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function D(t){var e=new Map,i=new Set,n=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||function t(a){i.add(a.name),[].concat(a.requires||[],a.requiresIfExists||[]).forEach((function(n){if(!i.has(n)){var a=e.get(n);a&&t(a)}})),n.push(a)}(t)})),n}function T(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return[].concat(i).reduce((function(t,e){return t.replace(/%s/,e)}),t)}var $='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',O=["name","enabled","phase","fn","effect","requires","options"];function V(t){return t.split("-")[0]}function M(t,e){var n,a=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if((n=a)instanceof i(n).ShadowRoot||n instanceof ShadowRoot){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function L(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function E(t,a){return"viewport"===a?L(function(t){var e=i(t),n=o(t),a=e.visualViewport,r=n.clientWidth,s=n.clientHeight,u=0,c=0;return a&&(r=a.width,s=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(u=a.offsetLeft,c=a.offsetTop)),{width:r,height:s,x:u+l(t),y:c}}(t)):r(a)?function(t){var i=e(t);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(a):L(function(t){var e=o(t),i=n(t),a=t.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+l(t),d=-i.scrollTop;return"rtl"===u(a||e).direction&&(c+=Math.max(e.clientWidth,a?a.clientWidth:0)-r),{width:r,height:s,x:c,y:d}}(o(t)))}function A(t,e,i){var n="clippingParents"===e?function(t){var e=f(p(t)),i=["absolute","fixed"].indexOf(u(t).position)>=0&&r(t)?g(t):t;return a(i)?e.filter((function(t){return a(t)&&M(t,i)&&"body"!==s(t)})):[]}(t):[].concat(e),o=[].concat(n,[i]),l=o[0],c=o.reduce((function(e,i){var n=E(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),E(t,l));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function P(t){return t.split("-")[1]}function N(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function B(t){var e,i=t.reference,n=t.element,a=t.placement,r=a?V(a):null,s=a?P(a):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case y:e={x:o,y:i.y-n.height};break;case b:e={x:o,y:i.y+i.height};break;case k:e={x:i.x+i.width,y:l};break;case x:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var u=r?N(r):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case"start":e[u]=Math.floor(e[u])-Math.floor(i[c]/2-n[c]/2);break;case"end":e[u]=Math.floor(e[u])+Math.ceil(i[c]/2-n[c]/2)}}return e}function I(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function j(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function z(t,i){void 0===i&&(i={});var n=i,r=n.placement,s=void 0===r?t.placement:r,l=n.boundary,u=void 0===l?"clippingParents":l,c=n.rootBoundary,d=void 0===c?"viewport":c,h=n.elementContext,p=void 0===h?"popper":h,f=n.altBoundary,m=void 0!==f&&f,v=n.padding,g=void 0===v?0:v,x=I("number"!=typeof g?g:j(g,w)),S="popper"===p?"reference":"popper",C=t.elements.reference,_=t.rects.popper,D=t.elements[m?S:p],T=A(a(D)?D:D.contextElement||o(t.elements.popper),u,d),$=e(C),O=B({reference:$,element:_,strategy:"absolute",placement:s}),V=L(Object.assign(Object.assign({},_),O)),M="popper"===p?V:$,E={top:T.top-M.top+x.top,bottom:M.bottom-T.bottom+x.bottom,left:T.left-M.left+x.left,right:M.right-T.right+x.right},P=t.modifiersData.offset;if("popper"===p&&P){var N=P[s];Object.keys(E).forEach((function(t){var e=[k,b].indexOf(t)>=0?1:-1,i=[y,b].indexOf(t)>=0?"y":"x";E[t]+=N[i]*e}))}return E}var F="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",R={placement:"bottom",modifiers:[],strategy:"absolute"};function H(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function K(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,s=void 0===r?R:r;return function(t,e,i){void 0===i&&(i=s);var r,o,l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},R),s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],p=!1,m={state:l,setOptions:function(i){v(),l.options=Object.assign(Object.assign(Object.assign({},s),l.options),i),l.scrollParents={reference:a(t)?f(t):t.contextElement?f(t.contextElement):[],popper:f(e)};var r=function(t){var e=D(t);return _.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,l.options.modifiers)));l.orderedModifiers=r.filter((function(t){return t.enabled})),function(t){t.forEach((function(e){Object.keys(e).forEach((function(i){switch(i){case"name":"string"!=typeof e.name&&console.error(T($,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":"boolean"!=typeof e.enabled&&console.error(T($,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));case"phase":_.indexOf(e.phase)<0&&console.error(T($,e.name,'"phase"',"either "+_.join(", "),'"'+String(e.phase)+'"'));break;case"fn":"function"!=typeof e.fn&&console.error(T($,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":"function"!=typeof e.effect&&console.error(T($,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":Array.isArray(e.requires)||console.error(T($,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(T($,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+O.map((function(t){return'"'+t+'"'})).join(", ")+'; but "'+i+'" was provided.')}e.requires&&e.requires.forEach((function(i){null==t.find((function(t){return t.name===i}))&&console.error(T('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(e.name),i,i))}))}))}))}((o=[].concat(r,l.options.modifiers),d=function(t){return t.name},h=new Set,o.filter((function(t){var e=d(t);if(!h.has(e))return h.add(e),!0})))),"auto"===V(l.options.placement)&&(l.orderedModifiers.find((function(t){return"flip"===t.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" ")));var o,d,h,p=u(e);return[p.marginTop,p.marginRight,p.marginBottom,p.marginLeft].some((function(t){return parseFloat(t)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" ")),l.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,a=t.effect;if("function"==typeof a){var r=a({state:l,name:e,instance:m,options:n});c.push(r||function(){})}})),m.update()},forceUpdate:function(){if(!p){var t=l.elements,e=t.reference,i=t.popper;if(H(e,i)){l.rects={reference:d(e,g(i),"fixed"===l.options.strategy),popper:h(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(t){return l.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0,a=0;a<l.orderedModifiers.length;a++){if((n+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==l.reset){var r=l.orderedModifiers[a],s=r.fn,o=r.options,u=void 0===o?{}:o,c=r.name;"function"==typeof s&&(l=s({state:l,options:u,name:c,instance:m})||l)}else l.reset=!1,a=-1}}else console.error(F)}},update:(r=function(){return new Promise((function(t){m.forceUpdate(),t(l)}))},function(){return o||(o=new Promise((function(t){Promise.resolve().then((function(){o=void 0,t(r())}))}))),o}),destroy:function(){v(),p=!0}};if(!H(t,e))return console.error(F),m;function v(){c.forEach((function(t){return t()})),c=[]}return m.setOptions(i).then((function(t){!p&&i.onFirstUpdate&&i.onFirstUpdate(t)})),m}}var W={passive:!0},Y={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,a=t.options,r=a.scroll,s=void 0===r||r,o=a.resize,l=void 0===o||o,u=i(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",n.update,W)})),l&&u.addEventListener("resize",n.update,W),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",n.update,W)})),l&&u.removeEventListener("resize",n.update,W)}},data:{}},U={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=B({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function X(t){var e,n=t.popper,a=t.popperRect,r=t.placement,s=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,d=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(s),h=d.x,p=d.y,f=s.hasOwnProperty("x"),m=s.hasOwnProperty("y"),v=x,w=y,S=window;if(c){var C=g(n);C===i(n)&&(C=o(n)),r===y&&(w=b,p-=C.clientHeight-a.height,p*=u?1:-1),r===x&&(v=k,h-=C.clientWidth-a.width,h*=u?1:-1)}var _,D=Object.assign({position:l},c&&q);return u?Object.assign(Object.assign({},D),{},((_={})[w]=m?"0":"",_[v]=f?"0":"",_.transform=(S.devicePixelRatio||1)<2?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",_)):Object.assign(Object.assign({},D),{},((e={})[w]=m?p+"px":"",e[v]=f?h+"px":"",e.transform="",e))}var G={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,a=void 0===n||n,r=i.adaptive,s=void 0===r||r,o=u(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some((function(t){return o.indexOf(t)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var l={placement:V(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),X(Object.assign(Object.assign({},l),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),X(Object.assign(Object.assign({},l),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},J={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e