h_ui
Version:
A Vue.js 2.0 UI Components Framework
26 lines • 51 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/Tooltip.js")):"function"==typeof define&&define.amd?define("h_ui/lib",["h_ui/dist/lib/util/tools.js","h_ui/dist/lib/util/global.js","h_ui/dist/lib/Icon.js","h_ui/dist/lib/mixins/emitter.js","h_ui/dist/lib/Tooltip.js"],e):"object"==typeof exports?exports["h_ui/lib"]=e(require("h_ui/dist/lib/util/tools.js"),require("h_ui/dist/lib/util/global.js"),require("h_ui/dist/lib/Icon.js"),require("h_ui/dist/lib/mixins/emitter.js"),require("h_ui/dist/lib/Tooltip.js")):t["h_ui/lib"]=e(t["h_ui/dist/lib/util/tools.js"],t["h_ui/dist/lib/util/global.js"],t["h_ui/dist/lib/Icon.js"],t["h_ui/dist/lib/mixins/emitter.js"],t["h_ui/dist/lib/Tooltip.js"])}(window,(function(t,e,n,o,i){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/lib/",n(n.s=944)}({0:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},1:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},101:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.innerShow,expression:"innerShow"}],ref:"container",staticClass:"h-select-dropdown",on:{mousedown:function(t){t.stopPropagation()}}},[t._t("default")],2)])},i=[];o._withStripped=!0},109:function(t,e,n){t.exports=n(120)},11:function(t,e,n){var o=n(5),i=n(14);t.exports=n(2)?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},112:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},12:function(t,e,n){var o=n(6);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},120:function(t,e,n){n(121),t.exports=n(0).parseFloat},121:function(t,e,n){var o=n(3),i=n(122);o(o.G+o.F*(parseFloat!=i),{parseFloat:i})},122:function(t,e,n){var o=n(1).parseFloat,i=n(51).trim;t.exports=1/o(n(35)+"-0")!=-1/0?function(t){var e=i(String(t),3),n=o(e);return 0===n&&"-"==e.charAt(0)?-0:n}:o},13:function(t,e,n){var o=n(50),i=n(18);t.exports=function(t){return o(i(t))}},137:function(t,e,n){"use strict";n.r(e),function(t){
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?t:u(s(t))}function f(t){return t&&t.referenceNode?t.referenceNode:t}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),c=n&&/MSIE 10/.test(navigator.userAgent);function p(t){return 11===t?l:10===t?c:l||c}function d(t){if(!t)return document.documentElement;for(var e=p(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,i=n?e:t,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var a,s,u=r.commonAncestorContainer;if(t!==u&&e!==u||o.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(u):u;var f=h(t);return f.host?m(f.host,e):m(t,h(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function b(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=v(e,"top"),i=v(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=i*r,t.right+=i*r,t}function g(t,e){var n="x"===e?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+o+"Width"])}function y(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],p(10)?parseInt(n["offset"+t])+parseInt(o["margin"+("Height"===t?"Top":"Left")])+parseInt(o["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,o=p(10)&&getComputedStyle(n);return{height:y("Height",e,n,o),width:y("Width",e,n,o)}}var x=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},O=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),_=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function E(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function M(t){var e={};try{if(p(10)){e=t.getBoundingClientRect();var n=v(t,"top"),o=v(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?w(t.ownerDocument):{},s=r.width||t.clientWidth||i.width,u=r.height||t.clientHeight||i.height,f=t.offsetWidth-s,l=t.offsetHeight-u;if(f||l){var c=a(t);f-=g(c,"x"),l-=g(c,"y"),i.width-=f,i.height-=l}return E(i)}function $(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=p(10),i="HTML"===e.nodeName,r=M(t),s=M(e),f=u(t),l=a(e),c=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=E({top:r.top-s.top-c,left:r.left-s.left-d,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!o&&i){var m=parseFloat(l.marginTop),v=parseFloat(l.marginLeft);h.top-=c-m,h.bottom-=c-m,h.left-=d-v,h.right-=d-v,h.marginTop=m,h.marginLeft=v}return(o&&!n?e.contains(f):e===f&&"BODY"!==f.nodeName)&&(h=b(h,e)),h}function N(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,o=$(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left"),u={top:a-o.top+o.marginTop,left:s-o.left+o.marginLeft,width:i,height:r};return E(u)}function P(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&P(n)}function j(t){if(!t||!t.parentElement||p())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function T(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=i?j(t):m(t,f(e));if("viewport"===o)r=N(a,i);else{var l=void 0;"scrollParent"===o?"BODY"===(l=u(s(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===o?t.ownerDocument.documentElement:o;var c=$(l,a,i);if("HTML"!==l.nodeName||P(a))r=c;else{var p=w(t.ownerDocument),d=p.height,h=p.width;r.top+=c.top-c.marginTop,r.bottom=d+c.top,r.left+=c.left-c.marginLeft,r.right=h+c.left}}var v="number"==typeof(n=n||0);return r.left+=v?n:n.left||0,r.top+=v?n:n.top||0,r.right-=v?n:n.right||0,r.bottom-=v?n:n.bottom||0,r}function C(t){return t.width*t.height}function B(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=T(n,o,r,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return S({key:t},s[t],{area:C(s[t])})})).sort((function(t,e){return e.area-t.area})),f=u.filter((function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight})),l=f.length>0?f[0].key:u[0].key,c=t.split("-")[1];return l+(c?"-"+c:"")}function k(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?j(e):m(e,f(n));return $(n,i,o)}function F(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function D(t,e,n){n=n.split("-")[0];var o=F(t),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),a=r?"top":"left",s=r?"left":"top",u=r?"height":"width",f=r?"width":"height";return i[a]=e[a]+e[u]/2-o[u]/2,i[s]=n===s?e[s]-o[f]:e[L(s)],i}function A(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function W(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var o=A(t,(function(t){return t[e]===n}));return t.indexOf(o)}(t,"name",n))).forEach((function(t){t.function;var n=t.function||t.fn;t.enabled&&r(n)&&(e.offsets.popper=E(e.offsets.popper),e.offsets.reference=E(e.offsets.reference),e=n(e,t))})),e}function H(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=B(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=D(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=W(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function I(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function R(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function U(){return this.state.isDestroyed=!0,I(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[R("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(t){var e=t.ownerDocument;return e?e.defaultView:window}function z(t,e,n,o){var i="BODY"===t.nodeName,r=i?t.ownerDocument.defaultView:t;r.addEventListener(e,n,{passive:!0}),i||z(u(r.parentNode),e,n,o),o.push(r)}function V(t,e,n,o){n.updateBound=o,q(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return z(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function G(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,q(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function K(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function X(t,e){Object.keys(e).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(e[n])&&(o="px"),t.style[n]=e[n]+o}))}var J=n&&/Firefox/i.test(navigator.userAgent);function Q(t,e,n){var o=A(t,(function(t){return t.name===e})),i=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));if(!i);return i}var Z=["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"],tt=Z.slice(3);function et(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt.indexOf(t),o=tt.slice(n+1).concat(tt.slice(0,n));return e?o.reverse():o}var nt="flip",ot="clockwise",it="counterclockwise";function rt(t,e,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(A(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&a[s].indexOf(",");var u=/\s*,\s*|\s+/,f=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return f=f.map((function(t,o){var i=(1===o?!r:r)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,o){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],a=i[2];if(!r)return t;if(0===a.indexOf("%")){return E("%p"===a?n:o)[e]/100*r}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,i,e,n)}))})),f.forEach((function(t,e){t.forEach((function(n,o){K(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))}))})),i}var at={shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var i=t.offsets,r=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",f=s?"width":"height",l={start:_({},u,r[u]),end:_({},u,r[u]+r[f]-a[f])};t.offsets.popper=S({},a,l[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,o=t.placement,i=t.offsets,r=i.popper,a=i.reference,s=o.split("-")[0],u=void 0;return u=K(+n)?[+n,0]:rt(n,r,a,s),"left"===s?(r.top+=u[0],r.left-=u[1]):"right"===s?(r.top+=u[0],r.left+=u[1]):"top"===s?(r.left+=u[0],r.top-=u[1]):"bottom"===s&&(r.left+=u[0],r.top+=u[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||d(t.instance.popper);t.instance.reference===n&&(n=d(n));var o=R("transform"),i=t.instance.popper.style,r=i.top,a=i.left,s=i[o];i.top="",i.left="",i[o]="";var u=T(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=a,i[o]=s,e.boundaries=u;var f=e.priority,l=t.offsets.popper,c={primary:function(t){var n=l[t];return l[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(l[t],u[t])),_({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=l[n];return l[t]>u[t]&&!e.escapeWithReference&&(o=Math.min(l[n],u[t]-("right"===t?l.width:l.height))),_({},n,o)}};return f.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";l=S({},l,c[e](t))})),t.offsets.popper=l,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,i=t.placement.split("-")[0],r=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",f=a?"width":"height";return n[s]<r(o[u])&&(t.offsets.popper[u]=r(o[u])-n[f]),n[u]>r(o[s])&&(t.offsets.popper[u]=r(o[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Q(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return t;var i=t.placement.split("-")[0],r=t.offsets,s=r.popper,u=r.reference,f=-1!==["left","right"].indexOf(i),l=f?"height":"width",c=f?"Top":"Left",p=c.toLowerCase(),d=f?"left":"top",h=f?"bottom":"right",m=F(o)[l];u[h]-m<s[p]&&(t.offsets.popper[p]-=s[p]-(u[h]-m)),u[p]+m>s[h]&&(t.offsets.popper[p]+=u[p]+m-s[h]),t.offsets.popper=E(t.offsets.popper);var v=u[p]+u[l]/2-m/2,b=a(t.instance.popper),g=parseFloat(b["margin"+c]),y=parseFloat(b["border"+c+"Width"]),w=v-t.offsets.popper[p]-g-y;return w=Math.max(Math.min(s[l]-m,w),0),t.arrowElement=o,t.offsets.arrow=(_(n={},p,Math.round(w)),_(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(I(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],i=L(o),r=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case nt:a=[o,i];break;case ot:a=et(o);break;case it:a=et(o,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(o!==s||a.length===u+1)return t;o=t.placement.split("-")[0],i=L(o);var f=t.offsets.popper,l=t.offsets.reference,c=Math.floor,p="left"===o&&c(f.right)>c(l.left)||"right"===o&&c(f.left)<c(l.right)||"top"===o&&c(f.bottom)>c(l.top)||"bottom"===o&&c(f.top)<c(l.bottom),d=c(f.left)<c(n.left),h=c(f.right)>c(n.right),m=c(f.top)<c(n.top),v=c(f.bottom)>c(n.bottom),b="left"===o&&d||"right"===o&&h||"top"===o&&m||"bottom"===o&&v,g=-1!==["top","bottom"].indexOf(o),y=!!e.flipVariations&&(g&&"start"===r&&d||g&&"end"===r&&h||!g&&"start"===r&&m||!g&&"end"===r&&v),w=!!e.flipVariationsByContent&&(g&&"start"===r&&h||g&&"end"===r&&d||!g&&"start"===r&&v||!g&&"end"===r&&m),x=y||w;(p||b||x)&&(t.flipped=!0,(p||b)&&(o=a[u+1]),x&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=S({},t.offsets.popper,D(t.instance.popper,t.offsets.reference,t.placement)),t=W(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,i=o.popper,r=o.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=r[n]-(s?i[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=E(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Q(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=A(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=A(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration,a=void 0!==r?r:e.gpuAcceleration,s=d(t.instance.popper),u=M(s),f={position:i.position},l=function(t,e){var n=t.offsets,o=n.popper,i=n.reference,r=Math.round,a=Math.floor,s=function(t){return t},u=r(i.width),f=r(o.width),l=-1!==["left","right"].indexOf(t.placement),c=-1!==t.placement.indexOf("-"),p=e?l||c||u%2==f%2?r:a:s,d=e?r:s;return{left:p(u%2==1&&f%2==1&&!c&&e?o.left-1:o.left),top:d(o.top),bottom:d(o.bottom),right:p(o.right)}}(t,window.devicePixelRatio<2||!J),c="bottom"===n?"top":"bottom",p="right"===o?"left":"right",h=R("transform"),m=void 0,v=void 0;if(v="bottom"===c?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,m="right"===p?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&h)f[h]="translate3d("+m+"px, "+v+"px, 0)",f[c]=0,f[p]=0,f.willChange="transform";else{var b="bottom"===c?-1:1,g="right"===p?-1:1;f[c]=v*b,f[p]=m*g,f.willChange=c+", "+p}var y={"x-placement":t.placement};return t.attributes=S({},y,t.attributes),t.styles=S({},f,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return X(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&X(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=k(i,e,t,n.positionFixed),a=B(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),X(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},st={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:at},ut=function(){function t(e,n){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=S({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){o.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return O(t,[{key:"update",value:function(){return H.call(this)}},{key:"destroy",value:function(){return U.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),t}();ut.Utils=("undefined"!=typeof window?window:t).PopperUtils,ut.placements=Z,ut.Defaults=st,e.default=ut}.call(this,n(112))},14:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},140:function(t,e,n){"use strict";n.r(e);var o=n(101),i=n(82);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var a=n(4),s=Object(a.a)(i.default,o.a,o.b,!1,null,null,null);e.default=s.exports},15:function(t,e,n){var o=n(38);t.exports=function(t,e,n){return e in t?o(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},16:function(t,e,n){var o=n(27);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,i){return t.call(e,n,o,i)}}return function(){return t.apply(e,arguments)}}},17:function(t,e,n){var o=n(6);t.exports=function(t,e){if(!o(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!o(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!o(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},18:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},19:function(t,e,n){var o=n(45),i=n(31);t.exports=Object.keys||function(t){return o(t,i)}},198:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(21),i={beforeEnter:function(t){(0,o.addClass)(t,"collapse-transition"),t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.height="0",t.style.paddingTop=0,t.style.paddingBottom=0},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){(0,o.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow},beforeLeave:function(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.height=t.scrollHeight+"px",t.style.overflow="hidden"},leave:function(t){0!==t.scrollHeight&&((0,o.addClass)(t,"collapse-transition"),t.style.height=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave:function(t){(0,o.removeClass)(t,"collapse-transition"),t.style.height="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom}},r={name:"CollapseTransition",functional:!0,render:function(t,e){var n=e.children;return t("transition",{on:i},n)}};e.default=r},2:function(t,e,n){t.exports=!n(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},20:function(t,e,n){var o=n(18);t.exports=function(t){return Object(o(t))}},21:function(e,n){e.exports=t},22:function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},23:function(t,e){t.exports=!0},24:function(t,e,n){var o=n(6),i=n(1).document,r=o(i)&&o(i.createElement);t.exports=function(t){return r?i.createElement(t):{}}},25:function(t,e,n){t.exports=!n(2)&&!n(7)((function(){return 7!=Object.defineProperty(n(24)("div"),"a",{get:function(){return 7}}).a}))},27:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},29:function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},3:function(t,e,n){var o=n(1),i=n(0),r=n(16),a=n(11),s=n(10),u=function(t,e,n){var f,l,c,p=t&u.F,d=t&u.G,h=t&u.S,m=t&u.P,v=t&u.B,b=t&u.W,g=d?i:i[e]||(i[e]={}),y=g.prototype,w=d?o:h?o[e]:(o[e]||{}).prototype;for(f in d&&(n=e),n)(l=!p&&w&&void 0!==w[f])&&s(g,f)||(c=l?w[f]:n[f],g[f]=d&&"function"!=typeof w[f]?n[f]:v&&l?r(c,o):b&&w[f]==c?function(t){var e=function(e,n,o){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,o)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):m&&"function"==typeof c?r(Function.call,c):c,m&&((g.virtual||(g.virtual={}))[f]=c,t&u.R&&y&&!y[f]&&a(y,f,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},30:function(t,e,n){var o=n(0),i=n(1),r="__core-js_shared__",a=i[r]||(i[r]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(23)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},31:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},32:function(t,n){t.exports=e},33:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},335:function(t,e){t.exports=i},34:function(t,e,n){var o=n(30)("keys"),i=n(22);t.exports=function(t){return o[t]||(o[t]=i(t))}},35:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},38:function(t,e,n){t.exports=n(39)},39:function(t,e,n){n(40);var o=n(0).Object;t.exports=function(t,e,n){return o.defineProperty(t,e,n)}},4:function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,s){var u,f="function"==typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),o&&(f.functional=!0),r&&(f._scopeId="data-v-"+r),a?(u=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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=u):i&&(u=s?function(){i.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(f.functional){f._injectStyles=u;var l=f.render;f.render=function(t,e){return u.call(e),l(t,e)}}else{var c=f.beforeCreate;f.beforeCreate=c?[].concat(c,u):[u]}return{exports:t,options:f}}n.d(e,"a",(function(){return o}))},40:function(t,e,n){var o=n(3);o(o.S+o.F*!n(2),"Object",{defineProperty:n(5).f})},42:function(t,e,n){var o=n(29),i=Math.min;t.exports=function(t){return t>0?i(o(t),9007199254740991):0}},45:function(t,e,n){var o=n(10),i=n(13),r=n(67)(!1),a=n(34)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,f=[];for(n in s)n!=a&&o(s,n)&&f.push(n);for(;e.length>u;)o(s,n=e[u++])&&(~r(f,n)||f.push(n));return f}},47:function(t,e){t.exports=n},499:function(t,e,n){"use strict";n.r(e);var o=n(500),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},5:function(t,e,n){var o=n(12),i=n(25),r=n(17),a=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(o(t),e=r(e,!0),o(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},50:function(t,e,n){var o=n(33);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},500:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(15)),r=n(21),a=o(n(60)),s="h-menu",u={name:"Menu",mixins:[a.default],provide:function(){return{rootMenu:this}},components:{"h-menu-collapse-transition":{functional:!0,render:function(t,e){return t("transition",{props:{mode:"out-in"},on:{beforeEnter:function(t){t.style.opacity=.2},enter:function(t){(0,r.addClass)(t,"h-opacity-transition"),t.style.opacity=1},afterEnter:function(t){(0,r.removeClass)(t,"h-opacity-transition"),t.style.opacity=""}}},e.children)}}},props:{mode:{validator:function(t){return(0,r.oneOf)(t,["horizontal","vertical"])},default:"vertical"},theme:{validator:function(t){return(0,r.oneOf)(t,["light","dark","primary"])},default:"light"},activeName:{type:[String,Number]},openNames:{type:Array,default:function(){return[]}},accordion:{type:Boolean,default:!1},width:{type:[String,Number],default:240},collapse:{type:Boolean,default:!1},shrinkClose:{type:Boolean,default:!1},vertiSide:{type:Boolean,default:!1},nestIndex:{type:[String,Number],default:0}},data:function(){return{currentActiveName:this.activeName,openName:this.openNames}},computed:{classes:function(){var t,e=this.theme;return"vertical"===this.mode&&"primary"===this.theme&&(e="light"),["".concat(s),"".concat(s,"-").concat(e),(t={},(0,i.default)(t,"".concat(s,"-").concat(this.mode),this.mode),(0,i.default)(t,"".concat(s,"-collapse"),this.collapse),(0,i.default)(t,"".concat(s,"-verti-side"),this.vertiSide&&!this.collapse),t)]},styles:function(){var t={};return"vertical"!==this.mode||this.collapse||(t.width=this.width+"px"),t}},methods:{updateActiveName:function(){void 0===this.currentActiveName&&(this.currentActiveName=-1),this.broadcast("Submenu","on-update-active-name",!1),this.broadcast("MenuItem","on-update-active-name",this.currentActiveName)},updateOpenKeys:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.openName,o=n.indexOf(t);o>-1?(n.splice(o,1),e.length>0&&(this.openName=n.concat(e))):this.accordion?this.openName=[].concat(e).concat([t]):this.openName.push(t)},updateOpened:function(){var t=this,e=(0,r.findComponentsDownward)(this,"Submenu");this.collapse||e.length&&e.forEach((function(e){t.openName.indexOf(e.name)>-1?e.opened=!0:t.accordion&&(e.opened=!1)}))}},mounted:function(){var t=this;this.updateActiveName(),this.updateOpened(),this.$on("on-menu-item-select",(function(e){t.currentActiveName=e,t.collapse&&(t.openedMenu=[]),t.$emit("on-select",e)})),this.collapse&&(this.openName=[])},watch:{openName:function(){this.$emit("on-open-change",this.openName)},openNames:{deep:!0,handler:function(){this.openName=this.openNames,this.updateOpened()}},activeName:function(t){this.currentActiveName=t},currentActiveName:function(){this.updateActiveName()},collapse:function(t){t&&(this.openedMenu=[],this.openName=[],t&&this.shrinkClose&&this.broadcast("Submenu","on-collapse-close"))}},beforeDestroy:function(){this.$off("on-menu-item-select")}};e.default=u},501:function(t,e,n){"use strict";n.r(e);var o=n(502),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},502:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={name:"MenuGroup",inject:["rootMenu"],props:{title:{type:String,default:""}},data:function(){return{prefixCls:"h-menu",paddingLeft:20}},computed:{levelPadding:function(){var t=10,e=this.$parent;if(this.rootMenu.collapse)return 20;for(;e&&"Menu"!==e.$options.componentName;)"Submenu"===e.$options.componentName&&(t+=20),e=e.$parent;return 10===t&&(t=20),t}}};e.default=o},503:function(t,e,n){"use strict";n.r(e);var o=n(504),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},504:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(15)),r=o(n(60)),a=o(n(948)),s=o(n(335)),u="h-menu",f={name:"MenuItem",mixins:[r.default,a.default],components:{Tooltip:s.default},props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1}},data:function(){return{active:!1}},computed:{classes:function(){var t;return["".concat(u,"-item"),(t={},(0,i.default)(t,"".concat(u,"-item-active"),this.active),(0,i.default)(t,"".concat(u,"-item-selected"),this.active),(0,i.default)(t,"".concat(u,"-item-disabled"),this.disabled),t)]}},methods:{handleClick:function(){if(!this.disabled){for(var t=this.$parent,e=t.$options.name;t&&(!e||"Submenu"!==e);)(t=t.$parent)&&(e=t.$options.name);t?this.dispatch("Submenu","on-menu-item-select",this.name):this.dispatch("Menu","on-menu-item-select",this.name)}}},mounted:function(){var t=this;this.$on("on-update-active-name",(function(e){t.name===e?(t.active=!0,t.dispatch("Submenu","on-update-active-name",!0)):t.active=!1}))},beforeDestroy:function(){this.$off("on-update-active-name")}};e.default=f},505:function(t,e,n){"use strict";n.r(e);var o=n(506),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},506:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(15)),r=o(n(109)),a=o(n(140)),s=o(n(47)),u=o(n(198)),f=n(21),l=o(n(60)),c="h-menu",p={name:"Submenu",mixins:[l.default],components:{Icon:s.default,Drop:a.default,CollapseTransition:u.default},props:{name:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},showSlide:{type:Boolean,default:!1}},data:function(){return{prefixCls:c,active:!1,opened:!1,dropWidth:(0,r.default)((0,f.getStyle)(this.$el,"width")),parent:(0,f.findComponentsUpward)(this,"Menu"),shrinked:!0,timeout:null}},computed:{classes:function(){var t;return["".concat(c,"-submenu"),(t={},(0,i.default)(t,"".concat(c,"-item-active"),this.active),(0,i.default)(t,"".concat(c,"-opened"),this.opened),(0,i.default)(t,"".concat(c,"-submenu-disabled"),this.disabled),t)]},subIcon:function(){return"vertical"===this.parent.mode&&this.parent.collapse?"enter":"unfold"},subTransPos:function(){return"vertical"===this.parent.mode&&this.parent.collapse?"left":"bottom"},collapse:function(){return this.parent.collapse},mode:function(){return this.parent.mode},vertiSide:function(){return this.parent.vertiSide},accordion:function(){return this.parent.accordion},dropStyle:function(){var t={};return this.dropWidth&&(t.minWidth="".concat(this.dropWidth,"px")),t}},methods:{handleMouseenter:function(){var t=this;this.disabled||("vertical"!==this.mode||this.collapse||this.showSlide)&&(clearTimeout(this.timeout),this.parent.updateOpenKeys(this.name),this.timeout=setTimeout((function(){t.opened=!0}),250))},findSubmenu:function(t,e){for(var n=t.$parent,o=n.$options.name;n&&(!o||[e].indexOf(o)<0||n.showSlide);)(n=n.$parent)&&(o=n.$options.name);return n},handleMouseleave:function(){var t=this;if(!this.disabled&&("vertical"!==this.mode||this.collapse||this.showSlide)){var e=[];if(this.parent.vertiSide&&this.showSlide){var n=this.findSubmenu(this,"Submenu");e.push(n.name)}this.parent.updateOpenKeys(this.name,e),clearTimeout(this.timeout),this.timeout=setTimeout((function(){t.opened=!1}),150)}},handleClick:function(){if(!this.disabled&&!this.showSlide&&"horizontal"!==this.mode&&!this.collapse){var t=this.opened;if(this.accordion)if(0==Number(this.parent.nestIndex)&&"Submenu"!==this.$parent.$options.name){!function t(e){e.$children.forEach((function(e){"Submenu"===e.$options.name?e.opened=!1:t(e)}))}(this.parent)}else 1==Number(this.parent.nestIndex)&&"Submenu"!==this.$parent.$parent.$options.name&&(this.parent.$children&&1==this.parent.$children.length?this.parent.$children[0].$children.forEach((function(t){t&&"Submenu"===t.$options.name&&(t.opened=!1)})):this.parent.$children.forEach((function(t){t.$children&&"Submenu"===t.$children[0].$options.name&&(t.$children[0].opened=!1)})));if(this.accordion&&"Submenu"!==this.$parent.$options.name){!function t(e){e.$children.forEach((function(e){"Submenu"===e.$options.name?e.opened=!1:t(e)}))}(this.parent)}this.opened=!t,this.parent.updateOpenKeys(this.name)}}},watch:{mode:function(t){"horizontal"===t&&this.$refs.drop.update()},opened:function(t){"vertical"!==this.mode&&t&&(this.dropWidth=(0,r.default)((0,f.getStyle)(this.$el,"width")),this.$refs.drop.update())}},mounted:function(){var t=this;this.$on("on-menu-item-select",(function(e){return"horizontal"===t.mode&&(t.opened=!1),t.dispatch("Menu","on-menu-item-select",e),!0})),this.$on("on-update-active-name",(function(e){t.active=e})),this.$on("on-collapse-close",(function(){t.shrinked=!1,t.opened=!1,t.$nextTick((function(){t.shrinked=!0}))}))},beforeDestroy:function(){this.$refs.drop,this.$off("on-menu-item-select"),this.$off("on-update-active-name"),this.$off("on-collapse-close"),this.timeout&&clearTimeout(this.timeout)}};e.default=p},51:function(t,e,n){var o=n(3),i=n(18),r=n(7),a=n(35),s="["+a+"]",u=RegExp("^"+s+s+"*"),f=RegExp(s+s+"*$"),l=function(t,e,n){var i={},s=r((function(){return!!a[t]()||"
"!="
"[t]()})),u=i[t]=s?e(c):a[t];n&&(i[n]=u),o(o.P+o.F*s,"String",i)},c=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},56:function(t,e,n){t.exports=n(77)},58:function(t,e,n){var o=n(3),i=n(0),r=n(7);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*r((function(){n(1)})),"Object",a)}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e){t.exports=o},65:function(t,e,n){var o=n(29),i=Math.max,r=Math.min;t.exports=function(t,e){return(t=o(t))<0?i(t+e,0):r(t,e)}},67:function(t,e,n){var o=n(13),i=n(42),r=n(65);t.exports=function(t){return function(e,n,a){var s,u=o(e),f=i(u.length),l=r(a,f);if(t&&n!=n){for(;f>l;)if((s=u[l++])!=s)return!0}else for(;f>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},7:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},739:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h-menu-collapse-transition",[n("ul",{class:t.classes,style:t.styles},[t._t("default")],2)])},i=[];o._withStripped=!0},740:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:[t.prefixCls+"-item-group"]},[n("div",{class:[t.prefixCls+"-item-group-title"],style:{paddingLeft:t.levelPadding+"px"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),n("ul",[t._t("default")],2)])},i=[];o._withStripped=!0},741:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes,on:{click:function(e){return e.stopPropagation(),t.handleClick(e)}}},[t.$parent===t.rootMenu&&t.rootMenu.collapse?n("Tooltip",{attrs:{placement:"right",transfer:""}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._t("title")],2),t._v(" "),n("div",{staticStyle:{position:"absolute",left:"0",top:"0",height:"100%",width:"100%",display:"inline-block","box-sizing":"border-box",padding:"0 20px"}},[t._t("default")],2)]):t._e(),t._v(" "),t._t("default")],2)},i=[];o._withStripped=!0},742:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{class:t.classes,on:{mouseenter:t.handleMouseenter,mouseleave:t.handleMouseleave}},[n("div",{ref:"reference",class:[t.prefixCls+"-submenu-title"],on:{click:t.handleClick}},[t._t("title"),t._v(" "),n("Icon",{class:[t.prefixCls+"-submenu-title-icon"],attrs:{name:t.subIcon}})],2),t._v(" "),"vertical"===t.mode&&t.shrinked?n("collapse-transition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.opened,expression:"opened"}],class:[t.prefixCls]},[t._t("default")],2)]):n("Drop",{ref:"drop",style:t.dropStyle,attrs:{show:t.opened,placement:t.subTransPos,widthAdaption:!1,adaptParentWidth:!1}},[t._t("default")],2)],1)},i=[];o._withStripped=!0},77:function(t,e,n){n(78),t.exports=n(0).Object.keys},78:function(t,e,n){var o=n(20),i=n(19);n(58)("keys",(function(){return function(t){return i(o(t))}}))},8:function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},82:function(t,e,n){"use strict";n.r(e);var o=n(83),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e.default=i.a},83:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(56)),r=o(n(109)),a=o(n(137)),s={name:"CommonDropdown",props:{show:{type:Boolean,default:!1},placement:{type:String,validator:function(t){return["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].includes(t)},default:"bottom-start"},autoPlacement:{type:Boolean,default:!1},dropWidth:{type:[String,Number],default:0},maxDropWidth:{type:[String,Number],default:500},dropMinWidth:{type:[String,Number]},widthAdaption:{type:Boolean,default:!1},animated:{type:Boolean,default:!0},transfer:{type:Boolean,default:!1},transferzIndex:{type:Number,default:0},adaptParentWidth:{type:Boolean,default:!0},positionFixed:{type:Boolean,default:!1}},data:function(){return{popperPlacement:"bottom",innerShow:this.show}},computed:{animation:function(){return this.animated?this.popperPlacement.includes("top")?"slide-down":this.popperPlacement.includes("bottom")?"slide-up":"fade":""}},watch:{show:function(t){var e=this;!this.popper&&this.initUpdate(),this.$nextTick((function(){var n=function(){return e.autoPlacement?e.setAutoPlacement():e.placement};t&&e.popper&&(e.popperPlacement=n(),e.popper.popper.style.transformOrigin=n().includes("bottom")?"center top":"center bottom"),e.innerShow=t,t?e.popper.enableEventListeners():e.popper.disableEventListeners(),e.update()}))}},methods:{setAutoPlacement:function(){var t=this.$parent.$el.getBoundingClientRect(),e=t.bottom,n=t.height,o=t.left,i=window.innerHeight,r=window.innerWidth,a=this.$refs.container.clientHeight,s=this.$refs.container.clientWidth;return"none"===this.$refs.container.style.display&&0===a&&(this.$refs.container.style.display="block",a=this.$refs.container.clientHeight,s=this.$refs.container.clientWidth,this.$refs.container.style.display="none"),r-o-20>s?i-e-n<a?"top-start":"bottom-start":i-e-n<a?"top-end":"bottom-end"},update:function(){var t=this;if(this.popper)return this.$nextTick((function(){t.autoPlacement&&t.show&&(t.popperPlacement=t.setAutoPlacement(),t.popper.options.placement=t.setAutoPlacement())})),this.popper.scheduleUpdate(),void this.popper.scheduleUpdate();this.initUpdate()},initUpdate:function(){var t=this,e=this;this.$nextTick((function(){if(!t.popper){var n=function(){return t.autoPlacement?t.setAutoPlacement():t.placement};t.popperPlacement=n(),t.popper=new a.default(t.$parent.$refs.reference,t.$el,{placement:n(),positionFixed:t.positionFixed,eventsEnabled:t.show,modifiers:{preventOverflow:{escapeWithReference:!0},flip:{enabled:!1},computeStyle:{gpuAcceleration:!1},applyStyle:{enabled:!1},applyVueStyle:{enabled:!0,fn:function(t){var n=e.dropWidth,o=e.maxDropWidth,a=e.dropMinWidth,s=e.widthAdaption,u=e.adaptParentWidth,f=t.instance.popper,l=t.offsets.reference.width,c=t.styles;e.$parent.$refs.reference&&(l=e.$parent.$refs.reference.offsetWidth);var p=""===n?0:n,d=""===o?500:o;if(s)f.style.width="auto",(0,r.default)(p)>0?c["min-width"]=(0,r.default)(p):c["min-width"]=l,(0,r.default)(d)>0&&(0,r.default)(d)>(0,r.default)(p)?c["max-width"]=Math.max((0,r.default)(d),l):c["max-width"]=Math.max((0,r.default)(p),l),n&&!isNaN(Number(n))&&(c["max-width"]=Number(n));else{var h=u?l:0;c.width=Math.max(h,Number(a)||0,p)||void 0}!function(t,e,n){n.transfer&&(t.style["z-index"]=n.transferzIndex),(0,i.default)(e).forEach((function(n){var o="";-1!==["width","max-width","min-width","height","top","right","bottom","left"].indexOf(n)&&(o="px"),t.style[n]=e[n]+o}))}(f,c,e)},order:900}},onUpdate:function(){}}),e.popper.scheduleUpdate()}}))}},mounted:function(){var t=this;this.$on("on-static-update",(function(e){t.show&&(t.popper?t.popper.scheduleUpdate():t.update())}))},beforeDestroy:function(){this.$off("on-static-update")},destroyed:function(){this.popper&&this.popper.destroy(),this.popper=null}};e.default=s},944:function(t,e,n){"use strict";var o=n(8);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(945)),r=o(n(946)),a=o(n(947)),s=o(n(949)),u=n(32);i.default.install=function(t,e){(0,u.setGlobal)(t,e),t.component("HMenu",i.default),t.component("Menu",i.default),t.component("HMenuGroup",r.default),t.component("MenuGroup",r.default),t.component("HMenuItem",a.default),t.component("MenuItem",a.default),t.component("HSubmenu",s.default),t.component("Submenu",s.default)},i.default.Group=r.default,i.default.Item=a.default,i.default.Sub=s.default;var f=i.default;e.default=f},945:function(t,e,n){"use strict";n.r(e);var o=n(739),i=n(499);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var a=n(4),s=Object(a.a)(i.default,o.a,o.b,!1,null,null,null);e.default=s.exports},946:function(t,e,n){"use strict";n.r(e);var o=n(740),i=n(501);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);var a=n(4),s=Object(a.a)(i.default,o.a,o.b,!1,null,null,null);e.default=s.exports},947:function(t,e,n){"use strict";n.r(e);var o=n(741),i=n(503);for(var r in i)["default"].ind