UNPKG

@livelybone/vue-select

Version:

A vue select component, includes cascader

9 lines (8 loc) 62.1 kB
/** * Bundle of @livelybone/vue-select * Generated: 2023-12-26 * Version: 2.7.0 * License: MIT * Author: 2631541504@qq.com */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).VueSelect={})}(this,function(e){"use strict";function L(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function i(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],(e=function(e){e=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var n;if(e)return"string"==typeof e?o(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var W={beforeMount:function(){this.initTemp()},props:{value:{default:function(){return[]},type:Array},expandType:String},data:function(){return{tempVal:[],optionsHeight:0,optionsRight:0,positionFixed:!0}},computed:{$lineStyle:function(){return{height:"".concat(this.optionsHeight,"px")}},showOptions:function(){var t=this;return this.options.map(function(e){return t.setSelect(e,0)})},selectedOptions:function(){return this.getSelected(this.showOptions).map(function(e){return e.children}).filter(function(e){return e})}},watch:{optionsHidden:function(e){e||this.$nextTick(this.listenOptionsStyle)},selectedOptions:function(e){e&&this.listenOptionsStyle()}},methods:{listenOptionsStyle:function(){var e;this.$refs.optionsEl&&(e=this.$refs.optionsEl.$el.clientHeight)&&this.optionsHeight!==e&&(this.optionsHeight=e)},getSelected:function(e){var o=this,t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:null)||this.tempVal,e=this.find(e,function(e){return o.isSelected(e,t[0])},"");return e?t.slice(1).reduce(function(e,t){var n=e[e.length-1].children;return n instanceof Array&&(n=o.find(n,function(e){return o.isSelected(e,t)},""))&&e.push(n),e},[e]):[]},isSelected:function(e,t){return e.value===t},isEnd:function(e){return!(e.children instanceof Array&&0<e.children.length)}}};function c(e){return(c="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})(e)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(e,t)||V(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||V(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){var n;if(e)return"string"==typeof e?s(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var F=function(e){return e.NormalObj="object",e.Array="Array",e}({});function a(t){var e=["undefined"!=typeof Promise&&Promise,"undefined"!=typeof Date&&Date,"undefined"!=typeof Error&&Error,"undefined"!=typeof RegExp&&RegExp,"undefined"!=typeof FileList&&FileList,"undefined"!=typeof File&&File,"undefined"!=typeof Element&&Element,"undefined"!=typeof Window&&Window,"undefined"!=typeof Document&&Document];return"object"===c(t)&&null!==t&&!e.some(function(e){return e&&t instanceof e})&&(t instanceof Array?F.Array:F.NormalObj)}function B(e){var l=["",""];return function i(e){var s,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:["Object"],t=2<arguments.length?arguments[2]:void 0;return"object"===c(e)&&null!==e&&(s=t?[].concat(R(t),[e]):[e],Object.entries(e).some(function(e){var t,n,e=A(e,2),o=e[0],e=e[1],o=[].concat(R(a),[o]),r=(t=e,n=s,void 0!==(r=Object.keys(n).find(function(e){return n[+e]===t}))?{index:+r}:void 0);return r?(l[0]=o.slice(0,r.index+1).reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),l[1]=o.reduce(function(e,t){return"".concat(e,".").concat(t)},"").replace(/^\./,""),!0):i(e,o,s)}))}(e)?l:null}function I(o){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return t.forEach(function(e){Object.entries(e).forEach(function(e){var e=A(e,2),t=e[0],e=e[1];if("__proto__"===t||"constructor"===t||"prototype"===t)return o;var n=o[t];a(e)&&a(n)?I(n,e):o[t]="object"===c(e)?JSON.parse(JSON.stringify(e)):e})}),o}var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,z=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}();var U=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},z))}};function Y(e){return e&&"[object Function]"==={}.toString.call(e)}function u(e,t){return 1!==e.nodeType?[]:(e=e.ownerDocument.defaultView.getComputedStyle(e,null),t?e[t]:e)}function X(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=u(e),n=t.overflow,o=t.overflowX,t=t.overflowY;return/(auto|scroll|overlay)/.test(n+t+o)?e:p(X(e))}function J(e){return e&&e.referenceNode?e.referenceNode:e}var q=n&&!(!window.MSInputMethodContext||!document.documentMode),G=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?q:10!==e&&q||G}function f(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===u(n,"position")?f(n):n:(e?e.ownerDocument:document).documentElement}function K(e){return null!==e.parentNode?K(e.parentNode):e}function l(e,t){var n,o,r;return e&&e.nodeType&&t&&t.nodeType?(o=(r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,r=r?t:e,(n=document.createRange()).setStart(o,0),n.setEnd(r,0),e!==(n=n.commonAncestorContainer)&&t!==n||o.contains(r)?"BODY"===(r=(o=n).nodeName)||"HTML"!==r&&f(o.firstElementChild)!==o?f(n):n:(r=K(e)).host?l(r.host,t):l(e,K(t).host)):document.documentElement}function h(e,t){var t="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",n=e.nodeName;return("BODY"===n||"HTML"===n?(n=e.ownerDocument.documentElement,e.ownerDocument.scrollingElement||n):e)[t]}function Q(e,t){var t="x"===t?"Left":"Top",n="Left"==t?"Right":"Bottom";return parseFloat(e["border"+t+"Width"])+parseFloat(e["border"+n+"Width"])}function Z(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function ee(e){var t=e.body,e=e.documentElement,n=d(10)&&getComputedStyle(e);return{height:Z("Height",t,e,n),width:Z("Width",t,e,n)}}var t=function(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),e};function te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,o=arguments[t];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e};function g(e){return v({},e,{right:e.left+e.width,bottom:e.top+e.height})}function ne(e){var t={};try{d(10)?(t=e.getBoundingClientRect(),n=h(e,"top"),o=h(e,"left"),t.top+=n,t.left+=o,t.bottom+=n,t.right+=o):t=e.getBoundingClientRect()}catch(e){}var n={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?ee(e.ownerDocument):{},t=o.width||e.clientWidth||n.width,o=o.height||e.clientHeight||n.height,t=e.offsetWidth-t,o=e.offsetHeight-o;return(t||o)&&(t-=Q(e=u(e),"x"),o-=Q(e,"y"),n.width-=t,n.height-=o),g(n)}function oe(e,t,n){var n=2<arguments.length&&void 0!==n&&n,o=d(10),r="HTML"===t.nodeName,i=ne(e),s=ne(t),e=p(e),a=u(t),l=parseFloat(a.borderTopWidth),c=parseFloat(a.borderLeftWidth),s=(n&&r&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0)),g({top:i.top-s.top-l,left:i.left-s.left-c,width:i.width,height:i.height}));return s.marginTop=0,s.marginLeft=0,!o&&r&&(i=parseFloat(a.marginTop),r=parseFloat(a.marginLeft),s.top-=l-i,s.bottom-=l-i,s.left-=c-r,s.right-=c-r,s.marginTop=i,s.marginLeft=r),s=(o&&!n?t.contains(e):t===e&&"BODY"!==e.nodeName)?function(e,t,n){var n=2<arguments.length&&void 0!==n&&n,o=h(t,"top"),t=h(t,"left"),n=n?-1:1;return e.top+=o*n,e.bottom+=o*n,e.left+=t*n,e.right+=t*n,e}(s,t):s}function re(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===u(t,"transform");)t=t.parentElement;return t||document.documentElement}function ie(e,t,n,o,r){var i,r=4<arguments.length&&void 0!==r&&r,s={top:0,left:0},a=r?re(e):l(e,J(t)),a=("viewport"===o?s=function(e,t){var t=1<arguments.length&&void 0!==t&&t,n=e.ownerDocument.documentElement,e=oe(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),i=t?0:h(n),t=t?0:h(n,"left");return g({top:i-e.top+e.marginTop,left:t-e.left+e.marginLeft,width:o,height:r})}(a,r):(i=void 0,"scrollParent"===o?"BODY"===(i=p(X(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===o?e.ownerDocument.documentElement:o,t=oe(i,a,r),"HTML"!==i.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===u(t,"position")||!!(n=X(t))&&e(n))}(a)?s=t:(r=(o=ee(e.ownerDocument)).height,i=o.width,s.top+=t.top-t.marginTop,s.bottom=r+t.top,s.left+=t.left-t.marginLeft,s.right=i+t.left)),"number"==typeof(n=n||0));return s.left+=a?n:n.left||0,s.top+=a?n:n.top||0,s.right-=a?n:n.right||0,s.bottom-=a?n:n.bottom||0,s}function se(e,t,n,o,r,i){var s,i=5<arguments.length&&void 0!==i?i:0;return-1===e.indexOf("auto")?e:(o=ie(n,o,i,r),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},(0<(r=(i=Object.keys(s).map(function(e){return v({key:e},s[e],{area:(e=s[e]).width*e.height})}).sort(function(e,t){return t.area-e.area})).filter(function(e){var t=e.width,e=e.height;return t>=n.clientWidth&&e>=n.clientHeight})).length?r:i)[0].key+((t=e.split("-")[1])?"-"+t:""))}function ae(e,t,n,o){o=3<arguments.length&&void 0!==o?o:null;return oe(n,o?re(t):l(t,J(n)),o)}function le(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),t=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+t,height:e.offsetHeight+n}}function b(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function ce(e,t,n){n=n.split("-")[0];var e=le(e),o={width:e.width,height:e.height},r=-1!==["right","left"].indexOf(n),i=r?"top":"left",s=r?"left":"top",a=r?"height":"width",r=r?"width":"height";return o[i]=t[i]+t[a]/2-e[a]/2,o[s]=n===s?t[s]-e[r]:t[b(s)],o}function y(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function pe(e,n,t){var o,r;return(void 0===t?e:e.slice(0,(e=e,o="name",r=t,Array.prototype.findIndex?e.findIndex(function(e){return e[o]===r}):(t=y(e,function(e){return e[o]===r}),e.indexOf(t))))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var t=e.function||e.fn;e.enabled&&Y(t)&&(n.offsets.popper=g(n.offsets.popper),n.offsets.reference=g(n.offsets.reference),n=t(n,e))}),n}function ue(e,n){return e.some(function(e){var t=e.name;return e.enabled&&t===n})}function de(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],r=r?""+r+n:e;if(void 0!==document.body.style[r])return r}return null}function fe(e){e=e.ownerDocument;return e?e.defaultView:window}function he(e,t,n,o){n.updateBound=o,fe(e).addEventListener("resize",n.updateBound,{passive:!0});o=p(e);return function e(t,n,o,r){var i="BODY"===t.nodeName,t=i?t.ownerDocument.defaultView:t;t.addEventListener(n,o,{passive:!0}),i||e(p(t.parentNode),n,o,r),r.push(t)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function me(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,fe(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ve(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ge(n,o){Object.keys(o).forEach(function(e){var t="";-1!==["width","height","top","right","bottom","left"].indexOf(e)&&ve(o[e])&&(t="px"),n.style[e]=o[e]+t})}function be(e,t){function n(e){return e}var o=e.offsets,r=o.popper,o=o.reference,i=Math.round,s=Math.floor,o=i(o.width),a=i(r.width),l=-1!==["left","right"].indexOf(e.placement),e=-1!==e.placement.indexOf("-"),l=t?l||e||o%2==a%2?i:s:n,s=t?i:n;return{left:l(o%2==1&&a%2==1&&!e&&t?r.left-1:r.left),top:s(r.top),bottom:s(r.bottom),right:l(r.right)}}var ye=n&&/Firefox/i.test(navigator.userAgent);function we(e,t,n){var o,r=y(e,function(e){return e.name===t}),e=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});return e||(o="`"+t+"`",console.warn("`"+n+"`"+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")),e}var w=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Oe=w.slice(3);function xe(e,t){t=1<arguments.length&&void 0!==t&&t,e=Oe.indexOf(e),e=Oe.slice(e+1).concat(Oe.slice(0,e));return t?e.reverse():e}var Se="flip",_e="clockwise",Ee="counterclockwise";function Pe(e,a,l,t){var r=[0,0],o=-1!==["right","left"].indexOf(t),t=e.split(/(\+|\-)/).map(function(e){return e.trim()}),e=t.indexOf(y(t,function(e){return-1!==e.search(/,|\s/)})),n=(t[e]&&-1===t[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),/\s*,\s*|\s+/);return(-1!==e?[t.slice(0,e).concat([t[e].split(n)[0]]),[t[e].split(n)[1]].concat(t.slice(e+1))]:[t]).map(function(e,t){var s=(1===t?!o:o)?"height":"width",n=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,n=!0,e):n?(e[e.length-1]+=t,n=!1,e):e.concat(t)},[]).map(function(e){return t=s,n=a,o=l,r=+(i=(e=e).match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],i=i[2],r?0===i.indexOf("%")?g("%p"===i?n:o)[t]/100*r:"vh"===i||"vw"===i?("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r:r:e;var t,n,o,r,i})}).forEach(function(n,o){n.forEach(function(e,t){ve(e)&&(r[o]+=e*("-"===n[t-1]?-1:1))})}),r}var O={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,o,r=e.placement,i=r.split("-")[0];return(r=r.split("-")[1])&&(t=(n=e.offsets).reference,n=n.popper,o=(i=-1!==["bottom","top"].indexOf(i))?"width":"height",i={start:m({},i=i?"left":"top",t[i]),end:m({},i,t[i]+t[o]-n[o])},e.offsets.popper=v({},n,i[r])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var t=t.offset,n=e.placement,o=(r=e.offsets).popper,r=r.reference,n=n.split("-")[0],i=void 0,i=ve(+t)?[+t,0]:Pe(t,o,r,n);return"left"===n?(o.top+=i[0],o.left-=i[1]):"right"===n?(o.top+=i[0],o.left+=i[1]):"top"===n?(o.left+=i[0],o.top-=i[1]):"bottom"===n&&(o.left+=i[0],o.top+=i[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,o){var t=o.boundariesElement||f(e.instance.popper),n=(e.instance.reference===t&&(t=f(t)),de("transform")),r=e.instance.popper.style,i=r.top,s=r.left,a=r[n],l=(r.top="",r.left="",r[n]="",ie(e.instance.popper,e.instance.reference,o.padding,t,e.positionFixed)),t=(r.top=i,r.left=s,r[n]=a,o.boundaries=l,o.priority),c=e.offsets.popper,p={primary:function(e){var t=c[e];return c[e]<l[e]&&!o.escapeWithReference&&(t=Math.max(c[e],l[e])),m({},e,t)},secondary:function(e){var t="right"===e?"left":"top",n=c[t];return c[e]>l[e]&&!o.escapeWithReference&&(n=Math.min(c[t],l[e]-("right"===e?c.width:c.height))),m({},t,n)}};return t.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";c=v({},c,p[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=(n=e.offsets).popper,n=n.reference,o=e.placement.split("-")[0],r=Math.floor,i=(o=-1!==["top","bottom"].indexOf(o))?"right":"bottom",s=o?"left":"top",o=o?"width":"height";return t[i]<r(n[s])&&(e.offsets.popper[s]=r(n[s])-t[o]),t[s]>r(n[i])&&(e.offsets.popper[s]=r(n[i])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){if(we(e.instance.modifiers,"arrow","keepTogether")){t=t.element;if("string"==typeof t){if(!(t=e.instance.popper.querySelector(t)))return e}else if(!e.instance.popper.contains(t))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var n=e.placement.split("-")[0],o=e.offsets,r=o.popper,o=o.reference,n=-1!==["left","right"].indexOf(n),i=n?"height":"width",s=n?"Top":"Left",a=s.toLowerCase(),l=n?"left":"top",n=n?"bottom":"right",c=le(t)[i],n=(o[n]-c<r[a]&&(e.offsets.popper[a]-=r[a]-(o[n]-c)),o[a]+c>r[n]&&(e.offsets.popper[a]+=o[a]+c-r[n]),e.offsets.popper=g(e.offsets.popper),o[a]+o[i]/2-c/2),o=u(e.instance.popper),p=parseFloat(o["margin"+s]),o=parseFloat(o["border"+s+"Width"]),s=n-e.offsets.popper[a]-p-o,s=Math.max(Math.min(r[i]-c,s),0);e.arrowElement=t,e.offsets.arrow=(m(n={},a,Math.round(s)),m(n,l,""),n)}return e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(c,p){if(!(ue(c.instance.modifiers,"inner")||c.flipped&&c.placement===c.originalPlacement)){var u=ie(c.instance.popper,c.instance.reference,p.padding,p.boundariesElement,c.positionFixed),d=c.placement.split("-")[0],f=b(d),h=c.placement.split("-")[1]||"",m=[];switch(p.behavior){case Se:m=[d,f];break;case _e:m=xe(d);break;case Ee:m=xe(d,!0);break;default:m=p.behavior}m.forEach(function(e,t){if(d!==e||m.length===t+1)return c;d=c.placement.split("-")[0],f=b(d);var e=c.offsets.popper,n=c.offsets.reference,o=Math.floor,n="left"===d&&o(e.right)>o(n.left)||"right"===d&&o(e.left)<o(n.right)||"top"===d&&o(e.bottom)>o(n.top)||"bottom"===d&&o(e.top)<o(n.bottom),r=o(e.left)<o(u.left),i=o(e.right)>o(u.right),s=o(e.top)<o(u.top),e=o(e.bottom)>o(u.bottom),o="left"===d&&r||"right"===d&&i||"top"===d&&s||"bottom"===d&&e,a=-1!==["top","bottom"].indexOf(d),l=!!p.flipVariations&&(a&&"start"===h&&r||a&&"end"===h&&i||!a&&"start"===h&&s||!a&&"end"===h&&e),i=!!p.flipVariationsByContent&&(a&&"start"===h&&i||a&&"end"===h&&r||!a&&"start"===h&&e||!a&&"end"===h&&s),r=l||i;(n||o||r)&&(c.flipped=!0,(n||o)&&(d=m[t+1]),r&&(h="end"===(e=h)?"start":"start"===e?"end":e),c.placement=d+(h?"-"+h:""),c.offsets.popper=v({},c.offsets.popper,ce(c.instance.popper,c.offsets.reference,c.placement)),c=pe(c.instance.modifiers,c,"flip"))})}return c},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=(r=e.offsets).popper,r=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=r[n]-(s?o[i?"width":"height"]:0),e.placement=b(t),e.offsets.popper=g(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(we(e.instance.modifiers,"hide","preventOverflow")){var t=e.offsets.reference,n=y(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=(void 0!==(i=y(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration)&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),void 0!==i?i:t.gpuAcceleration),s=ne(t=f(e.instance.popper)),r={position:r.position},a=be(e,window.devicePixelRatio<2||!ye),n="bottom"===n?"top":"bottom",o="right"===o?"left":"right",l=de("transform"),c=void 0,p=void 0,p="bottom"==n?"HTML"===t.nodeName?-t.clientHeight+a.bottom:-s.height+a.bottom:a.top,c="right"==o?"HTML"===t.nodeName?-t.clientWidth+a.right:-s.width+a.right:a.left,s=(i&&l?(r[l]="translate3d("+c+"px, "+p+"px, 0)",r[n]=0,r[o]=0,r.willChange="transform"):(t="right"==o?-1:1,r[n]=p*("bottom"==n?-1:1),r[o]=c*t,r.willChange=n+", "+o),{"x-placement":e.placement});return e.attributes=v({},s,e.attributes),e.styles=v({},r,e.styles),e.arrowStyles=v({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ge(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach(function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)}),e.arrowElement&&Object.keys(e.arrowStyles).length&&ge(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){return r=ae(r,t,e,n.positionFixed),r=se(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding),t.setAttribute("x-placement",r),ge(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},x=(t(S,[{key:"update",value:function(){return function(){var e;this.state.isDestroyed||((e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=ae(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=se(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ce(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=pe(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,ue(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[de("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=he(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return me.call(this)}}]),S);function S(e,t){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=this,i=S;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=U(this.update.bind(this)),this.options=v({},S.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(v({},S.Defaults.modifiers,o.modifiers)).forEach(function(e){n.options.modifiers[e]=v({},S.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return v({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&Y(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}function $e(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function Te(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?$e(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}x.Utils=("undefined"!=typeof window?window:global).PopperUtils,x.placements=w,x.Defaults=O;var _="undefined"!=typeof window&&"undefined"!=typeof document;function He(e,t,n,o){var r,i,o=3<arguments.length&&void 0!==o?o:"left",s=n.offsets,n=n.arrowElement,a=s.arrow,l=s.reference,s=s.popper,a="left"===o?a.left:a.top;return"number"==typeof a&&(i="left"===o?"left":"top",r="left"===o?"width":"height",o="left"===o?"offsetWidth":"offsetHeight",i="start"===e?t+Math.max(0,-(s[i]-l[i])):"end"===e?Math.min(l[r],s[r])-Math.min(0,s[i]-l[i])-t-n[o]:a<t?t:(e=s[r]-n[o]-t)<a?e:a),i}t={name:"VuePopper",props:{arrowPosition:{default:"middle",type:String},arrowOffsetScaling:{default:_&&window.devicePixelRatio||1,type:Number},referenceElm:_?[Window,Element,Document]:Object,popperOptions:Object},data:function(){return{popperJs:null}},computed:{options:function(){var o=this,e=(this.popperOptions||{}).modifiers;return Te({},this.popperOptions,{modifiers:Te({},e,{arrow:{fn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,o){return(n=x.Defaults.modifiers.arrow.fn(n,o)).offsets.arrow.left=He(e,t,n),n.offsets.arrow.top=He(e,t,n,"top"),n}.apply(void 0,[o.arrowPosition,o.arrowOffset].concat(t))},element:"[x-arrow]"}})})},arrowOffset:function(){return 10*this.arrowOffsetScaling}},watch:{referenceElm:function(){this.createPopper()}},methods:{referenceEle:function(){return this.referenceElm||(_&&this.$el?this.$el.parentNode||window:null)},createPopper:function(){var e=this.referenceEle();e&&(this.destroyPopper(),this.popperJs=new x(e,this.$el,this.options))},updatePopper:function(){this.popperJs&&this.popperJs.scheduleUpdate()},destroyPopper:function(){this.popperJs&&this.popperJs.destroy()}},mounted:function(){var e,t,n=this;_&&(e="vue-popper-module-style",document.getElementById(e)||((t=document.createElement("style")).id=e,t.innerText=".arrow-extend,.vue-popper[x-placement^=top] .arrow,.vue-popper[x-placement^=top] .arrow:before,.vue-popper[x-placement^=bottom] .arrow,.vue-popper[x-placement^=bottom] .arrow:before,.vue-popper[x-placement^=left] .arrow,.vue-popper[x-placement^=left] .arrow:before,.vue-popper[x-placement^=right] .arrow,.vue-popper[x-placement^=right] .arrow:before{position:absolute;width:0;height:0}.vue-popper{border:1px solid #c2ccdc;border-radius:.2em;background:#fff}.vue-popper[x-placement^=top]{margin-bottom:.75em}.vue-popper[x-placement^=top] .arrow{bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#c2ccdc}.vue-popper[x-placement^=top] .arrow:before{content:'';bottom:-.4em;border:.4em solid transparent;border-bottom:0;border-top-color:#fff;left:-.4em;bottom:1px}.vue-popper[x-placement^=bottom]{margin-top:.75em}.vue-popper[x-placement^=bottom] .arrow{top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#c2ccdc}.vue-popper[x-placement^=bottom] .arrow:before{content:'';top:-.4em;border:.4em solid transparent;border-top:0;border-bottom-color:#fff;left:-.4em;top:1px}.vue-popper[x-placement^=left]{margin-right:.75em}.vue-popper[x-placement^=left] .arrow{right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#c2ccdc}.vue-popper[x-placement^=left] .arrow:before{content:'';right:-.4em;border:.4em solid transparent;border-right:0;border-left-color:#fff;top:-.4em;right:1px}.vue-popper[x-placement^=right]{margin-left:.75em}.vue-popper[x-placement^=right] .arrow{left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#c2ccdc}.vue-popper[x-placement^=right] .arrow:before{content:'';left:-.4em;border:.4em solid transparent;border-left:0;border-right-color:#fff;top:-.4em;left:1px}",document.head.appendChild(t))),this.createPopper(),this.$on("hook:updated",function(){return n.updatePopper()}),this.$on("hook:beforeDestroy",function(){return n.destroyPopper()})}};Me=Ce=P=je=w=E=void 0,"boolean"!=typeof(T=ke=!(O={render:function(){var e=this.$createElement,e=this._self._c||e;return e("div",{staticClass:"vue-popper"},[e("div",{staticClass:"arrow",attrs:{"x-arrow":""}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]}))&&(Ce=P,P=T,T=!1),H="function"==typeof(t=t)?t.options:t,O&&O.render&&(H.render=O.render,H.staticRenderFns=O.staticRenderFns,H._compiled=!0,ke)&&(H.functional=!0),w&&(H._scopeId=w),je?($=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),E&&E.call(this,Ce(e)),e&&e._registeredComponents&&e._registeredComponents.add(je)},H._ssrRegister=$):E&&($=T?function(e){E.call(this,Me(e,this.$root.$options.shadowRoot))}:function(e){E.call(this,P(e))}),$&&(H.functional?(Ne=H.render,H.render=function(e,t){return $.call(t),Ne(e,t)}):(O=H.beforeCreate,H.beforeCreate=O?[].concat(O,$):[$]));var E,je,P,Ce,Me,$,Ne,ke=t,w=We,T=We,H=We,De=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,Le=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function We(e){var t,n=(e=e||{}).ua;return"string"==typeof(n=(n=n||"undefined"==typeof navigator?n:navigator.userAgent)&&n.headers&&"string"==typeof n.headers["user-agent"]?n.headers["user-agent"]:n)&&(!!(!(t=(e.tablet?Le:De).test(n))&&e.tablet&&e.featureDetect&&navigator&&1<navigator.maxTouchPoints&&-1!==n.indexOf("Macintosh")&&-1!==n.indexOf("Safari"))||t)}function Ae(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function j(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(r),!0).forEach(function(e){var t,n;t=o,n=r[e=e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})}return o}function Re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==a.return||a.return()}finally{if(r)throw i}}return n}}(e,t)||function(e,t){var n;if(e)return"string"==typeof e?Ve(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ve(e,t):void 0}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}w.isMobile=T,w.default=H,"undefined"!=typeof window&&"undefined"!=typeof document&&0 in document.createElement("div");var Fe=T(),Be="",Ie="addEventListener",ze="removeEventListener";function C(e,t,n,o){var r=Be+t;return e[Ie].bind(e)(r,n,o),function(){e[ze].bind(e)(r,n,o)}}"undefined"!=typeof window&&"undefined"!=typeof document&&("addEventListener"in window?(Ie="addEventListener",ze="removeEventListener"):(Ie="attachEvent",ze="detachEvent",Be="on"));var Ue=Object.freeze({$isMobile:Fe,$addListener:C}),O=Fe?"mobile":"pc",M={start:{pc:"mousedown",mobile:"touchstart"}[O],move:{pc:"mousemove",mobile:"touchmove"}[O],end:{pc:"mouseup",mobile:"touchend"}[O]};function N(e){var t=null;return(t=Fe?(0<e.changedTouches.length||0<e.targetTouched.length?Re(e.changedTouches,1):Re(e.touches,1))[0]:t)||e}function Ye(e,t){return{deltaX:N(e).clientX-N(t).clientX,deltaY:N(e).clientY-N(t).clientY,originalEvent:e}}var Xe=Object.freeze({bind:function(e,i,s){var a,l;return"function"==typeof e&&(s=i,i=e,e=window),C(e,M.start,function e(t){var n,o,r={deltaX:0,deltaY:0,originalEvent:t,type:"dragMoveStart"};t.type===M.start?(a=t,n=C(window,M.move,e,s),o=C(window,M.end,e,s),l=function(){n(),o()}):t.type===M.move?r=j(j({},Ye(t,a)),{},{type:"dragMove"}):t.type===M.end&&(r=j(j({},Ye(t,a)),{},{type:"dragMoveEnd"}),l)&&l(),i(r)},s)}});function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Je(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}var qe={x:{posPropName:"left",parentScrollPos:"scrollLeft",deltaName:"deltaX",sizeName:"width"},y:{posPropName:"top",parentScrollPos:"scrollTop",deltaName:"deltaY",sizeName:"height"}},Ge={opacity:1,pointerEvents:"initial"};t=function(e,t,n,o,r,i,s,a,l,c){"boolean"!=typeof s&&(l=a,a=s,s=!1);var p,u,d="function"==typeof n?n.options:n;return e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,r)&&(d.functional=!0),o&&(d._scopeId=o),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=p):t&&(p=s?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p&&(d.functional?(u=d.render,d.render=function(e,t){return p.call(t),u(e,t)}):(e=d.beforeCreate,d.beforeCreate=e?[].concat(e,p):[p])),n},w=t({render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:e.$_show,expression:"$_show"}],staticClass:"scrollbar",class:"scrollbar-"+e.type,style:e.$_barStyle,attrs:{draggable:!1}})},staticRenderFns:[]},void 0,{name:"Bar",props:{type:String,parentScroll:Number,marginToWrap:{type:Number,default:5},clientSize:Number,scrollSize:Number},data:function(){return{sPosition:0,showBar:!1,unbind:null,startPosition:0}},computed:{$_show:function(){return this.scrollSize>this.clientSize},$_scrollbarType:function(){return qe[this.type]},size:function(){return this.clientSize/this.scrollSize*this.clientSize-2*this.marginToWrap},positionRange:function(){return{min:this.marginToWrap,max:this.clientSize-this.marginToWrap-this.size}},$_barStyle:function(){var e;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Je(n,!0).forEach(function(e){k(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Je(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},this.showBar?Ge:{},(k(e={},this.$_scrollbarType.posPropName,"".concat(this.sPosition,"px !important")),k(e,this.$_scrollbarType.sizeName,"".concat(this.size,"px !important")),k(e,"userSelect","none"),e))}},watch:{$_show:{handler:function(e){var t=this;this.$nextTick(function(){t.unbind&&t.unbind(),e&&"undefined"!=typeof window&&t.$el&&(t.unbind=Xe.bind(t.$el,t.drag))})},immediate:!0},parentScroll:{handler:function(e){this.sPosition=(this.positionRange.max-this.positionRange.min)/(this.scrollSize-this.clientSize)*e+this.positionRange.min},immediate:!0}},methods:{drag:function(e){e.originalEvent.preventDefault(),"dragMoveStart"===e.type&&(this.startPosition=this.sPosition);var t=Math.min(this.positionRange.max,Math.max(this.positionRange.min,this.startPosition+e[this.$_scrollbarType.deltaName]));this.$emit("scrollTo",k({},this.$_scrollbarType.parentScrollPos,(t-this.marginToWrap)/(this.positionRange.max-this.marginToWrap)*(this.scrollSize-this.clientSize))),this.showBar="dragMoveEnd"!==e.type}},beforeDestroy:function(){this.unbind&&this.unbind()}},void 0,!1,void 0,void 0,void 0);function Ke(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return e.some(function(e){return!!t(e)&&(n=e,!0)}),n}function D(e,t,n,o,r,i,s,a,l,c){"boolean"!=typeof s&&(l=a,a=s,s=!1);var p,u,d="function"==typeof n?n.options:n;return e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,r)&&(d.functional=!0),o&&(d._scopeId=o),i?(p=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=p):t&&(p=s?function(e){t.call(this,c(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),p&&(d.functional?(u=d.render,d.render=function(e,t){return p.call(t),u(e,t)}):(e=d.beforeCreate,d.beforeCreate=e?[].concat(e,p):[p])),n}H={components:{Options:D({render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("scrollbar",n._g({attrs:{isMobile:n.$_select_isMobile,maxHeight:n.maxHeight,scrollTo:n.scrollTo,marginToWrap:n.marginToWrap}},n.$listeners),[n._l(n.options,function(t,e){return o("div",{key:e,ref:"option-"+e,refInFor:!0,staticClass:"option",class:{selected:t.selected},on:{mouseenter:function(e){return n.$emit("hover",t)},click:function(e){return e.stopPropagation(),n.$emit("select",t)}}})}),n._v(" "),n.options.length?n._e():n._t("default")],2)},staticRenderFns:[]},void 0,{components:{scrollbar:t({render:function(){var n=this,e=n.$createElement,o=n._self._c||e;return o("div",{ref:"wrap",staticClass:"scrollbar-wrap",style:n.$_wrapStyle,on:{click:function(e){return n.$emit("wrapClick",e)}}},[o("div",{ref:"content",staticClass:"scrollbar-content",style:n.$_contentStyle},[n._t("default")],2),n._v(" "),!n.isMobile&&n.width.content&&n.height.content?n._l(n.scrollbars,function(e,t){return o("Bar",{key:t,attrs:{type:t,marginToWrap:n.marginToWrap,parentScroll:n.scrollPos[e.scrollPropName],clientSize:e.size.content,scrollSize:e.size.contentInner},on:{scrollTo:function(e){return n.setScroll(e,"drag")}}})}):n._e()],2)},staticRenderFns:[]},void 0,{name:"Scrollbar",components:{Bar:w},props:{isMobile:Boolean,maxHeight:[Number,String],scrollTo:[Number,Object],marginToWrap:{default:5,type:Number}},data:function(){return{width:{parent:0,content:0,contentInner:0},height:{parent:0,content:0,contentInner:0},scrollPos:{scrollLeft:0,scrollTop:0},isTop:!0,isBottom:!0,isLeft:!0,isRight:!0,nativeScrollbarWidth:{x:0,y:0}}},computed:{scrollbars:function(){return{x:{scrollPropName:"scrollLeft",size:this.width},y:{scrollPropName:"scrollTop",size:this.height}}},$_maxHeight:function(){var n=this;return"number"==typeof this.maxHeight?"".concat(this.maxHeight,"px"):/%/.test(this.maxHeight)?this.maxHeight.replace(/(\d+)%/g,function(e,t){return"".concat(n.height.parent*t/100,"px")}):this.maxHeight},$_wrapStyle:function(){return{position:"relative",height:this.isMobile?"auto !important":"".concat(this.height.content,"px !important"),maxHeight:"".concat(this.$_maxHeight," !important"),padding:"0 !important",overflow:"hidden !important"}},$_contentStyle:function(){var e,t;return this.isMobile?{maxHeight:this.$_maxHeight,overflow:"scroll"}:(e=(t=this.nativeScrollbarWidth).x,t=t.y,{width:"calc(100% + ".concat(t,"px) !important"),maxHeight:"calc(".concat(this.$_maxHeight.replace(/(^calc\()|(\)$)/g,"")," + ").concat(e,"px) !important"),overflow:"scroll"})},maxScroll:function(){return{scrollLeft:this.width.contentInner-this.width.content,scrollTop:this.height.contentInner-this.height.content}}},watch:{scrollTo:{handler:function(e){this.$scrollTo(e)},immediate:!0},isBottom:function(e){e&&this.$emit("reachBottom")},isTop:function(e){e&&this.$emit("reachTop")},isLeft:function(e){e&&this.$emit("reachLeft")},isRight:function(e){e&&this.$emit("reachRight")}},methods:{updateScrollbarWidth:function(){this.nativeScrollbarWidth=function(e){var t=(e=e||window)===window;try{var n,o=t?window.nativeScrollbarWidth:null;return o&&"number"==typeof o.y&&"number"==typeof o.x||(n=t?document.createElement("div"):e,t&&(n.setAttribute("style","position:fixed;top:0;left:0;opacity:0;pointer-events:none;width:200px;height:200px;overflow:scroll"),document.body.appendChild(n)),o={y:n.offsetWidth-n.clientWidth,x:n.offsetHeight-n.clientHeight},t&&(window.nativeScrollbarWidth=o,document.body.removeChild(n))),o}catch(e){return{y:17,x:17}}}(this.$refs.content)},updateHeight:function(){var e,t,n,o;this.$refs.content&&"undefined"!=typeof window&&(e=(o=this.$refs.content).scrollHeight,t=o.clientHeight,n=o.scrollWidth,o=o.clientWidth,this.height.content=t,this.height.contentInner=e,this.height.parent=this.$refs.wrap.parentElement.clientHeight,this.width.content=o,this.width.contentInner=n,this.width.parent=this.$refs.wrap.parentElement.clientWidth)},getHeight:function(){this.updateHeight()},$scrollTo:function(t){var n=this;this.$nextTick(function(){var e;null!=t&&(e={scrollLeft:0,scrollTop:0},t.x||t.y?(e.scrollLeft=+t.x*n.maxScroll.scrollLeft,e.scrollTop=+t.y*n.maxScroll.scrollTop):(e.scrollLeft=+t*n.maxScroll.scrollLeft,e.scrollTop=+t*n.maxScroll.scrollTop),n.setScroll(e,"drag"))})},scroll:function(e){var t=this.$refs.content,n=t.scrollTop,t=t.scrollLeft;this.setScroll({scrollTop:n,scrollLeft:t}),this.$emit("scroll",e)},setScroll:function(e){var t=e.scrollTop,e=e.scrollLeft,n="scroll"!==(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"scroll");void 0!==t&&this.setPos(t,"scrollTop",n),void 0!==e&&this.setPos(e,"scrollLeft",n),this.judgeOnBoundary()},setPos:function(e,t,n){this.scrollPos[t]=e,n&&(this.$refs.content[t]=e)},judgeOnBoundary:function(){this.isTop=0===this.scrollPos.scrollTop,this.isBottom=this.scrollPos.scrollTop===this.maxScroll.scrollTop,this.isLeft=0===this.scrollPos.scrollLeft,this.isRight=this.scrollPos.scrollLeft===this.maxScroll.scrollLeft}},created:function(){var e,t,o=this,r=!this.isMobile&&"undefined"!=typeof window;r&&(t="vue-scrollbar-live-module-style",document.getElementById(t)||((e=document.createElement("style")).id=t,e.innerText=".scrollbar-wrap .scrollbar-content::-webkit-scrollbar{width:0;height:0;}.scrollbar-wrap .scrollbar-content{-ms-overflow-style:none;scrollbar-width:none;}.scrollbar-wrap .scrollbar{position:absolute;border-radius:.25em;background:#eee;box-shadow:0 0 2px rgba(0,0,0,0.1);opacity:0;pointer-events:none}.scrollbar-wrap .scrollbar-y{right:0.25em;width:.5em}.scrollbar-wrap .scrollbar-x{bottom:0.25em;height:.5em}.scrollbar-wrap:hover .scrollbar{opacity:1;pointer-events:initial}",document.head.appendChild(e))),this.$once("hook:mounted",function(){var n,t,e;r&&(o.updateScrollbarWidth(),o.$once("hook:beforeDestroy",Ue.$addListener(o.$refs.content,"scroll",o.scroll))),o.updateHeight(),o.$on("hook:beforeDestroy",(n=o,t=function(){o.$emit("domChange"),o.updateScrollbarWidth(),o.updateHeight()},"MutationObserver"in window?((e=new MutationObserver(function(e){e.some(function(e){var t,e=e.target;return n.$el.contains(e)?!(e instanceof Element&&(t=e.className,/^scrollbar\s/.test(t))):e.contains(n.$el)})&&t()})).observe(document.body,{attributes:!0,childList:!0,subtree:!0}),function(){e.disconnect()}):(n.$on("hook:updated",t),function(){})))})}},void 0,!1,void 0,void 0,void 0)},props:{$_select_isMobile:Boolean,maxHeight:[Number,String],marginToWrap:Number,options:Array},data:function(){return{scrollTo:0}},watch:{options:{handler:function(){this.insertHtml()},immediate:!0}},methods:{insertHtml:function(){var n=this;this.$nextTick(function(){(n.options||[]).forEach(function(e,t){n.$refs["option-".concat(t)]&&((n.$refs["option-".concat(t)][0]||n.$refs["option-".concat(t)]).innerHTML=e.cName||e.name)})})}},beforeMount:function(){var t=this,e=Ke(Object.keys(this.options),function(e){return t.options[e].selected});this.scrollTo=1===this.options.length?0:e/(this.options.length-1)}},void 0,!1,void 0,!1,void 0,void 0,void 0),popper:ke},props:{id:String,options:{default:function(){return[]},type:Array},canEdit:{default:!0,type:Boolean},canSearch:Boolean,placeholder:String,searchPlaceholder:String,popperProps:Object,scrollbarProps:Object},data:function(){return{mergedOptions:[],optionsHidden:!0,shouldHide:!0,inputVal:"",defaultPopperProps:Object.freeze({arrowPosition:"start",arrowOffsetScaling:1,popperOptions:{placement:"bottom-start",modifiers:{preventOverflow:{boundariesElement:"undefined"!=typeof document?document.body:""}}}})}},computed:{$placeholder:function(){return this.placeholder||"请选择"},$searchPlaceholder:function(){return this.searchPlaceholder||"搜索"},valid:function(){var e=!0;if(e=!this.options||!this.options.every(function(e){return e.name&&void 0!==e.value}))return e;throw new Error('vue-select: Prop options is invalid! Right example: [{name: "option", value: 1}]')},$popperProps:function(){return function(e){for(var o="same",t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[e].concat(n).forEach(function(e,t){var n=B(e);if(n)throw n=JSON.stringify(n),new Error("objectDeepMerge: Circular structure is not supported, the ".concat(t,"th parameter is a circular structure with CircularStructurePaths(").concat(n,")"));t=a(e);if(!t||"same"!==o&&o!==t)throw new Error("objectDeepMerge: Please ensure that parameters are all Array or normal Object");o=t}),I.apply(void 0,[e].concat(n))}({},this.defaultPopperProps,this.popperProps)},$_select_isMobile:function(){return(this.scrollbarProps||{}).isMobile},maxHeight:function(){return(this.scrollbarProps||{}).maxHeight||"50vh"},marginToWrap:function(){return(this.scrollbarProps||{}).marginToWrap||2}},watch:{inputVal:function(e){this.$emit("search",e)},options:function(e){this.mergedOptions=this.mergeOptions(this.mergedOptions,e)}},methods:{toggle:function(e){var t,n=this;this.canEdit&&(t=e&&this.$refs.wrap.contains(e.target),this.$refs.optionsEl.$el.contains(e.target)||(this.optionsHidden&&t?(this.optionsHidden=!1,this.canSearch&&this.$nextTick(function(){return n.$refs.input.focus()}),"initTemp"in this&&this.initTemp()):(this.shouldHide&&(this.optionsHidden=!0),this.shouldHide=!0)))},endDrag:function(){var e=this;setTimeout(function(){e.shouldHide=!0},100)},bind:function(e){"undefined"!=typeof window&&window["".concat(e?"add":"remove","EventListener")]("click",this.toggle,!0)},find:Ke,mergeOptions:function(e,t){var o=this,n=[].concat(r(e),r(t)).reduce(function(e,t){var n=e[t.value];i