bkui-vue 0.0.1-beta.21 → 0.0.1-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/bkui-vue.cjs.js +9092 -3429
  2. package/dist/bkui-vue.esm.js +9093 -3431
  3. package/dist/bkui-vue.umd.js +9094 -3431
  4. package/dist/style.css +125 -1
  5. package/lib/alert/index.js +1 -1
  6. package/lib/animate-number/index.js +1 -1
  7. package/lib/backtop/index.js +10 -1
  8. package/lib/badge/index.js +1 -1
  9. package/lib/breadcrumb/index.js +1 -1
  10. package/lib/button/index.js +1 -1
  11. package/lib/card/index.js +1 -1
  12. package/lib/checkbox/common.d.ts +1 -1
  13. package/lib/checkbox/index.js +1 -1
  14. package/lib/checkbox/type.d.ts +1 -1
  15. package/lib/code-diff/code-diff.css +1 -0
  16. package/lib/code-diff/code-diff.less +1 -0
  17. package/lib/code-diff/code-diff.variable.css +1 -0
  18. package/lib/code-diff/index.d.ts +1 -1
  19. package/lib/collapse/index.js +1 -1
  20. package/lib/components.d.ts +1 -0
  21. package/lib/date-picker/date-picker.d.ts +2 -2
  22. package/lib/date-picker/index.d.ts +7 -7
  23. package/lib/date-picker/index.js +1 -1
  24. package/lib/date-picker/props.d.ts +2 -2
  25. package/lib/date-picker/utils.d.ts +1 -1
  26. package/lib/dialog/dialog.d.ts +2 -2
  27. package/lib/dialog/index.d.ts +7 -7
  28. package/lib/dialog/index.js +1 -1
  29. package/lib/divider/index.js +1 -1
  30. package/lib/dropdown/index.d.ts +1 -1
  31. package/lib/dropdown/index.js +1 -1
  32. package/lib/exception/index.js +1 -1
  33. package/lib/fixed-navbar/index.js +1 -1
  34. package/lib/form/form-item.d.ts +7 -21
  35. package/lib/form/form.css +9 -0
  36. package/lib/form/form.d.ts +9 -29
  37. package/lib/form/form.less +14 -1
  38. package/lib/form/form.variable.css +9 -0
  39. package/lib/form/index.d.ts +18 -58
  40. package/lib/form/index.js +1 -1
  41. package/lib/input/index.d.ts +4 -4
  42. package/lib/input/index.js +2 -2
  43. package/lib/input/input.d.ts +1 -1
  44. package/lib/link/index.js +1 -1
  45. package/lib/loading/index.d.ts +1 -1
  46. package/lib/loading/index.js +1 -1
  47. package/lib/menu/index.js +1 -1
  48. package/lib/menu/utils.d.ts +1 -1
  49. package/lib/message/index.js +1 -1
  50. package/lib/message/messageConstructor.d.ts +1 -1
  51. package/lib/modal/index.d.ts +4 -4
  52. package/lib/modal/index.js +1 -1
  53. package/lib/modal/modal.d.ts +1 -1
  54. package/lib/notify/index.js +1 -1
  55. package/lib/notify/notifyConstructor.d.ts +1 -1
  56. package/lib/pagination/index.d.ts +4 -4
  57. package/lib/pagination/index.js +1 -1
  58. package/lib/pagination/pagination.d.ts +1 -1
  59. package/lib/popover/index.d.ts +7 -7
  60. package/lib/popover/index.js +1 -1
  61. package/lib/popover/popover.d.ts +2 -2
  62. package/lib/process/index.js +2 -2
  63. package/lib/progress/index.d.ts +4 -4
  64. package/lib/progress/index.js +1 -1
  65. package/lib/progress/progress.d.ts +1 -1
  66. package/lib/radio/common.d.ts +1 -1
  67. package/lib/radio/index.d.ts +1 -1
  68. package/lib/radio/index.js +1 -1
  69. package/lib/radio/type.d.ts +1 -1
  70. package/lib/rate/index.js +1 -1
  71. package/lib/select/index.js +12 -12
  72. package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
  73. package/lib/shared/index.d.ts +4 -14
  74. package/lib/shared/index.js +1 -1
  75. package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +0 -0
  76. package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +0 -0
  77. package/lib/shared/{bk-popover.d.ts → popover.d.ts} +1 -1
  78. package/lib/shared/vue-types.d.ts +1 -1
  79. package/lib/sideslider/index.d.ts +4 -4
  80. package/lib/sideslider/index.js +1 -1
  81. package/lib/sideslider/sideslider.d.ts +1 -1
  82. package/lib/slider/index.js +2 -2
  83. package/lib/steps/index.js +2 -2
  84. package/lib/styles/index.d.ts +1 -0
  85. package/lib/styles/index.js +1 -1
  86. package/lib/swiper/index.d.ts +181 -0
  87. package/lib/swiper/index.js +1 -0
  88. package/lib/swiper/swiper.css +91 -0
  89. package/lib/swiper/swiper.d.ts +65 -0
  90. package/lib/swiper/swiper.less +91 -0
  91. package/lib/swiper/swiper.variable.css +91 -0
  92. package/lib/switcher/index.js +1 -1
  93. package/lib/tab/index.js +1 -1
  94. package/lib/tab/tab-nav.d.ts +1 -1
  95. package/lib/table/index.d.ts +37 -14
  96. package/lib/table/index.js +10 -1
  97. package/lib/table/props.d.ts +8 -0
  98. package/lib/table/render.d.ts +3 -1
  99. package/lib/table/table.css +8 -1
  100. package/lib/table/table.d.ts +16 -5
  101. package/lib/table/table.less +10 -1
  102. package/lib/table/table.variable.css +8 -1
  103. package/lib/tag/index.d.ts +3 -3
  104. package/lib/tag/index.js +1 -1
  105. package/lib/tag/tag.d.ts +1 -1
  106. package/lib/timeline/index.js +1 -1
  107. package/lib/transfer/index.d.ts +325 -1
  108. package/lib/transfer/index.js +1 -1
  109. package/lib/tree/index.d.ts +45 -13
  110. package/lib/tree/index.js +1 -1
  111. package/lib/tree/props.d.ts +8 -0
  112. package/lib/tree/tree.css +17 -0
  113. package/lib/tree/tree.d.ts +30 -4
  114. package/lib/tree/tree.less +24 -3
  115. package/lib/tree/tree.variable.css +110 -0
  116. package/lib/tree/util.d.ts +11 -6
  117. package/lib/virtual-render/index.d.ts +4 -4
  118. package/lib/virtual-render/index.js +10 -1
  119. package/lib/virtual-render/virtual-render.d.ts +3 -3
  120. package/package.json +14 -12
@@ -25,10 +25,10 @@
25
25
  */
26
26
  import { Plugin } from 'vue';
27
27
  export * from './z-index-manager';
28
- export * from './bk-popover';
29
- export * from './bk-pop-manager';
30
- export * from './bk-mask-manager';
31
- export * from './bk-helper-core';
28
+ export * from './popover';
29
+ export * from './pop-manager';
30
+ export * from './mask-manager';
31
+ export * from './helper';
32
32
  export * from './vue-types';
33
33
  export * from './scrollbar-width';
34
34
  export declare function classes(dynamicCls: object, constCls?: string): string;
@@ -49,13 +49,3 @@ export declare const withInstallProps: <T extends OriginComponent, K extends Rec
49
49
  * @returns prefix-clsName
50
50
  */
51
51
  export declare function resolveClassName(clsName: string, prefix?: string): string;
52
- /**
53
- * 函数防抖
54
- * @param {*} fn 执行的函数
55
- * @param {*} delay 延时时间
56
- * @param {*} immediate 是否立即执行
57
- */
58
- export declare function debounce(delay: number, fn: Function, immediate?: boolean): {
59
- (this: any): any;
60
- cancel(): void;
61
- };
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue-types")):"function"==typeof define&&define.amd?define(["exports","vue-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e["vue-types"])}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var o=n(r.exports),i={exports:{}};!function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a=n(i.exports),s={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var u,c,l=n(s.exports);e.BKLAYERTYPE=void 0,(c=e.BKLAYERTYPE||(e.BKLAYERTYPE={})).BOTTOM="bottom",c.CONTENT="content",c.NAVI="navi",c.FULLSCREEN="fullScreen",c.PLUGINS="plugins",c.MODAL="modal",c.MESSAGE="message",c.POPPER="popper";var p=(l(u={},e.BKLAYERTYPE.BOTTOM,0),l(u,e.BKLAYERTYPE.CONTENT,1),l(u,e.BKLAYERTYPE.NAVI,100),l(u,e.BKLAYERTYPE.FULLSCREEN,1e3),l(u,e.BKLAYERTYPE.MODAL,3e3),l(u,e.BKLAYERTYPE.PLUGINS,8e3),l(u,e.BKLAYERTYPE.MESSAGE,1e4),l(u,e.BKLAYERTYPE.POPPER,99999),u),f=new(function(){function t(){o(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return a(t,[{key:"getNextIndex",value:function(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL]=this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL]+1,this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.NAVI)}},{key:"getPopperIndex",value:function(){return p.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,l({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,l({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(p).reduce((function(e,t){return Object.assign(e,l({},t,{value:p[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(p,e)}}]),t}()),d={exports:{}};!function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(d);var h=n(d.exports),v={exports:{}},m={exports:{}},y={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(y),function(e){var t=y.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(g);var b={exports:{}};!function(e){var t=y.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(b);var x={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(x),function(e){var t=m.exports,n=g.exports,r=b.exports,o=x.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(v);var O=n(v.exports),w="top",E="bottom",k="right",I="left",S="auto",T=[w,E,k,I],j="start",P="end",A="viewport",M="popper",L=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+P])}),[]),_=[].concat(T,[S]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+P])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function R(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function B(e){return e instanceof N(e).Element||e instanceof Element}function U(e){return e instanceof N(e).HTMLElement||e instanceof HTMLElement}function V(e){return"undefined"!=typeof ShadowRoot&&(e instanceof N(e).ShadowRoot||e instanceof ShadowRoot)}var C={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];U(o)&&R(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});U(r)&&R(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Y(e){return e.split("-")[0]}var q=Math.max,H=Math.min,z=Math.round;function W(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(U(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=z(n.width)/a||1),i>0&&(o=z(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function K(e){var t=W(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&V(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function G(e){return N(e).getComputedStyle(e)}function X(e){return["table","td","th"].indexOf(R(e))>=0}function Z(e){return((B(e)?e.ownerDocument:e.document)||window.document).documentElement}function J(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(V(e)?e.host:null)||Z(e)}function $(e){return U(e)&&"fixed"!==G(e).position?e.offsetParent:null}function Q(e){for(var t=N(e),n=$(e);n&&X(n)&&"static"===G(n).position;)n=$(n);return n&&("html"===R(n)||"body"===R(n)&&"static"===G(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&U(e)&&"fixed"===G(e).position)return null;var n=J(e);for(V(n)&&(n=n.host);U(n)&&["html","body"].indexOf(R(n))<0;){var r=G(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e,t,n){return q(e,H(t,n))}function ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var oe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),u=ee(s),c=[I,k].indexOf(s)>=0?"height":"width";if(i&&a){var l=function(e,t){return ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:re(e,T))}(o.padding,n),p=K(i),f="y"===u?w:I,d="y"===u?E:k,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],m=Q(i),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,g=h/2-v/2,b=l[f],x=y-p[c]-l[d],O=y/2-p[c]/2+g,S=te(b,O,x),j=u;n.modifiersData[r]=((t={})[j]=S,t.centerOffset=S-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(U(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),F(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(e){return e.split("-")[1]}var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function se(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,h=a.y,v=void 0===h?0:h,m="function"==typeof l?l({x:d,y:v}):{x:d,y:v};d=m.x,v=m.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=I,x=w,O=window;if(c){var S=Q(n),T="clientHeight",j="clientWidth";if(S===N(n)&&"static"!==G(S=Z(n)).position&&"absolute"===s&&(T="scrollHeight",j="scrollWidth"),S=S,o===w||(o===I||o===k)&&i===P)x=E,v-=(p&&S===O&&O.visualViewport?O.visualViewport.height:S[T])-r.height,v*=u?1:-1;if(o===I||(o===w||o===E)&&i===P)b=k,d-=(p&&S===O&&O.visualViewport?O.visualViewport.width:S[j])-r.width,d*=u?1:-1}var A,M=Object.assign({position:s},c&&ae),L=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:z(t*r)/r||0,y:z(n*r)/r||0}}({x:d,y:v}):{x:d,y:v};return d=L.x,v=L.y,u?Object.assign({},M,((A={})[x]=g?"0":"",A[b]=y?"0":"",A.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",A)):Object.assign({},M,((t={})[x]=g?v+"px":"",t[b]=y?d+"px":"",t.transform="",t))}var ue={passive:!0};var ce={left:"right",right:"left",bottom:"top",top:"bottom"};function le(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var pe={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return pe[e]}))}function de(e){var t=N(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function he(e){return W(Z(e)).left+de(e).scrollLeft}function ve(e){var t=G(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function me(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:U(e)&&ve(e)?e:me(J(e))}function ye(e,t){var n;void 0===t&&(t=[]);var r=me(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=N(r),a=o?[i].concat(i.visualViewport||[],ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ye(J(a)))}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function be(e,t){return t===A?ge(function(e){var t=N(e),n=Z(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+he(e),y:s}}(e)):B(t)?function(e){var t=W(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ge(function(e){var t,n=Z(e),r=de(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=q(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=q(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+he(e),u=-r.scrollTop;return"rtl"===G(o||n).direction&&(s+=q(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(Z(e)))}function xe(e,t,n){var r="clippingParents"===t?function(e){var t=ye(J(e)),n=["absolute","fixed"].indexOf(G(e).position)>=0&&U(e)?Q(e):e;return B(n)?t.filter((function(e){return B(e)&&F(e,n)&&"body"!==R(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=be(e,n);return t.top=q(r.top,t.top),t.right=H(r.right,t.right),t.bottom=H(r.bottom,t.bottom),t.left=q(r.left,t.left),t}),be(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Oe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Y(o):null,a=o?ie(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case w:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:u};break;case I:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?ee(i):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(n[l]/2-r[l]/2);break;case P:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}function we(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,u=void 0===s?A:s,c=n.elementContext,l=void 0===c?M:c,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,h=void 0===d?0:d,v=ne("number"!=typeof h?h:re(h,T)),m=l===M?"reference":M,y=e.rects.popper,g=e.elements[f?m:l],b=xe(B(g)?g:g.contextElement||Z(e.elements.popper),a,u),x=W(e.elements.reference),O=Oe({reference:x,element:y,strategy:"absolute",placement:o}),I=ge(Object.assign({},y,O)),S=l===M?I:x,j={top:b.top-S.top+v.top,bottom:S.bottom-b.bottom+v.bottom,left:b.left-S.left+v.left,right:S.right-b.right+v.right},P=e.modifiersData.offset;if(l===M&&P){var L=P[o];Object.keys(j).forEach((function(e){var t=[k,E].indexOf(e)>=0?1:-1,n=[w,E].indexOf(e)>=0?"y":"x";j[e]+=L[n]*t}))}return j}function Ee(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?_:u,l=ie(r),p=l?s?L:L.filter((function(e){return ie(e)===l})):T,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=f.reduce((function(t,n){return t[n]=we(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Y(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var ke={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,y=Y(m),g=u||(y===m||!h?[le(m)]:function(e){if(Y(e)===S)return[];var t=le(e);return[fe(e),t,fe(t)]}(m)),b=[m].concat(g).reduce((function(e,n){return e.concat(Y(n)===S?Ee(t,{placement:n,boundary:l,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,O=t.rects.popper,T=new Map,P=!0,A=b[0],M=0;M<b.length;M++){var L=b[M],_=Y(L),D=ie(L)===j,R=[w,E].indexOf(_)>=0,N=R?"width":"height",B=we(t,{placement:L,boundary:l,rootBoundary:p,altBoundary:f,padding:c}),U=R?D?k:I:D?E:w;x[N]>O[N]&&(U=le(U));var V=le(U),C=[];if(i&&C.push(B[_]<=0),s&&C.push(B[U]<=0,B[V]<=0),C.every((function(e){return e}))){A=L,P=!1;break}T.set(L,C)}if(P)for(var q=function(e){var t=b.find((function(t){var n=T.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},H=h?3:1;H>0;H--){if("break"===q(H))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ie(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Se(e){return[w,k,E,I].some((function(t){return e[t]>=0}))}var Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=_.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),o=[I,w].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[I,k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,m=we(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:l}),y=Y(t.placement),g=ie(t.placement),b=!g,x=ee(y),O="x"===x?"y":"x",S=t.modifiersData.popperOffsets,T=t.rects.reference,P=t.rects.popper,A="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,M="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(S){if(i){var D,R="y"===x?w:I,N="y"===x?E:k,B="y"===x?"height":"width",U=S[x],V=U+m[R],C=U-m[N],z=d?-P[B]/2:0,W=g===j?T[B]:P[B],F=g===j?-P[B]:-T[B],G=t.elements.arrow,X=d&&G?K(G):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=Z[R],$=Z[N],ne=te(0,T[B],X[B]),re=b?T[B]/2-z-ne-J-M.mainAxis:W-ne-J-M.mainAxis,oe=b?-T[B]/2+z+ne+$+M.mainAxis:F+ne+$+M.mainAxis,ae=t.elements.arrow&&Q(t.elements.arrow),se=ae?"y"===x?ae.clientTop||0:ae.clientLeft||0:0,ue=null!=(D=null==L?void 0:L[x])?D:0,ce=U+oe-ue,le=te(d?H(V,U+re-ue-se):V,U,d?q(C,ce):C);S[x]=le,_[x]=le-U}if(s){var pe,fe="x"===x?w:I,de="x"===x?E:k,he=S[O],ve="y"===O?"height":"width",me=he+m[fe],ye=he-m[de],ge=-1!==[w,I].indexOf(y),be=null!=(pe=null==L?void 0:L[O])?pe:0,xe=ge?me:he-T[ve]-P[ve]-be+M.altAxis,Oe=ge?he+T[ve]+P[ve]-be-M.altAxis:ye,Ee=d&&ge?function(e,t,n){var r=te(e,t,n);return r>n?n:r}(xe,he,Oe):te(d?xe:me,he,d?Oe:ye);S[O]=Ee,_[O]=Ee-he}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Pe(e,t,n){void 0===n&&(n=!1);var r,o,i=U(t),a=U(t)&&function(e){var t=e.getBoundingClientRect(),n=z(t.width)/e.offsetWidth||1,r=z(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Z(t),u=W(e,a),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==R(t)||ve(s))&&(c=(r=t)!==N(r)&&U(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:de(r)),U(t)?((l=W(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=he(s))),{x:u.left+c.scrollLeft-l.x,y:u.top+c.scrollTop-l.y,width:u.width,height:u.height}}function Ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var Le='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',_e=["name","enabled","phase","fn","effect","requires","options"];var De="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Re={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Be(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Re:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Re,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,l={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:B(e)?ye(e):e.contextElement?ye(e.contextElement):[],popper:ye(t)};var a,c,f,d=function(e){var t=Ae(e);return D.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),_e).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Me(Le,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Me(Le,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":D.indexOf(t.phase)<0&&console.error(Me(Le,t.name,'"phase"',"either "+D.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Me(Le,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Me(Le,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Me(Le,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Me(Le,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+_e.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(Me('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),c=function(e){return e.name},f=new Set,a.filter((function(e){var t=c(e);if(!f.has(t))return f.add(t),!0})))),Y(s.options.placement)===S)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var h=G(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:l,options:r}),a=function(){};u.push(i||a)}})),l.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Ne(t,n)){s.rects={reference:Pe(t,Q(n),"fixed"===s.options.strategy),popper:K(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,u=i.options,p=void 0===u?{}:u,f=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:f,instance:l})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(De)}},update:(o=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),c=!0}};if(!Ne(e,t))return"production"!==process.env.NODE_ENV&&console.error(De),l;function p(){u.forEach((function(e){return e()})),u=[]}return l.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Ue=Be({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,u=N(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ue)})),s&&u.addEventListener("resize",n.update,ue),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ue)})),s&&u.removeEventListener("resize",n.update,ue)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=G(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var l={placement:Y(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,se(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,se(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},C,Te,ke,je,oe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=we(t,{elementContext:"reference"}),s=we(t,{altBoundary:!0}),u=Ie(a,r),c=Ie(s,o,i),l=Se(u),p=Se(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]});function Ve(e){return null==e}function Ce(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function Ye(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var qe=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function He(e){if(Ce(e))return e.map(He);if(Ye(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=He(e[n[o]]);return t}return e}function ze(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function We(e,t,n,r){if(ze(e)){var o=t[e],i=n[e];Ye(o)&&Ye(i)?Ke(o,i,r):t[e]=He(i)}}function Ke(e,t,n){var r=Ce(t)?t:[t],o=r.length;if(!Ye(e))return e;for(var i=(n=n||{}).merger||We,a=0;a<o;++a)if(Ye(t=r[a]))for(var s=Object.keys(t),u=0,c=s.length;u<c;++u)i(s[u],e,t,n);return e}function Fe(e,t){return Ke(e,t,{merger:Ge})}function Ge(e,t,n){if(ze(e)){var r=t[e],o=n[e];Ye(r)&&Ye(o)?Fe(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=He(o))}}function Xe(e){try{return e instanceof HTMLElement}catch(t){return"object"===h(e)&&1===e.nodeType&&"object"===h(e.style)&&"object"===h(e.ownerDocument)}}var Ze=function(){function e(t,n,r){var i;o(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(r),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=(this.popperRefer||{}).parentElement,this.isShow=!!(null===(i=this.instanceOptions)||void 0===i?void 0:i.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof r.afterHidden?r.afterHidden:function(){},this.afterShow="function"==typeof r.afterShow?r.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),this.isShow&&this.show(null)}return a(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(O(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(O(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent()}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();Xe(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();Xe(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=Ke({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=Ue(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===h(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return Xe(e)}},{key:"registerEvents",value:function(){var e=this;if(this.isElement(this.referenceTarget)&&"hover"===this.trigger){["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))}if("click"===this.trigger){["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):e.isShow&&!e.isSameElement(t.target,e.popperRefer)&&e.hide()}))}))}}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Je="abcdefghijklmnopqrstuvwxyz0123456789",$e=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},Qe=function(){function e(t){o(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var n=t||{},r=n.multiInstance,i=void 0!==r&&r,a=n.maskAttrTag,s=void 0===a?"auto":a,u=n.parentNode,c=void 0===u?document.body:u,l=n.maskStyle,p=void 0===l?{}:l;this.activeInstance=void 0,this.multiInstance=i,this.uniqueMaskAttrTag=this.getMaskAttrTag(s),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return a(e,[{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null!=o?o:$e(16),a=/-?\d+/.test("".concat(t))?t:f.getModalNextIndex(),s=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var u=this.zIndexStore.get(this.lastUUID);s=u.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},s),uuid:i,preUID:this.lastUUID}),this.setMaskStyle(s),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.backupMask.style.setProperty("z-index","".concat(a-1)),e&&(this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(e,t){var n,r=null!=t?t:this.lastUUID;this.mask.style.setProperty("display","none"),null==e||e.remove(),null===(n=this.activeInstance)||void 0===n||n.remove(),this.activeInstance=void 0,this.popIndexStore(r)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){if(this.multiInstance)return this.createMask();var e=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return e||(e=this.createMask()),e}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat($e(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),et=new Qe({}),tt=function(){function e(){o(this,e),this.popInstanceList=[],this.uuidAttrName="data-bk-pop-uuid"}return a(e,[{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r=f.getModalNextIndex(),o=$e(16);e.setAttribute(this.uuidAttrName,o),this.popInstanceList.push({uuid:o,zIndex:r,content:e,showMask:t,appendStyle:n}),t&&et.backupActiveInstance(),et.show(e,r,t,n,o)}else console.warn("pop show error: content is null or undefined")}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();et.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,o=n.content,i=n.showMask,a=n.appendStyle,s=n.uuid;et.show(o,r,i,a,s)}else et.hide()}}},{key:"hide",value:function(e){var t=null==e?void 0:e.getAttribute(this.uuidAttrName);if(t){var n=this.popInstanceList.findIndex((function(e){return e.uuid===t}));n>=0&&(this.popInstanceList[n].content.remove(),this.popInstanceList.splice(n,1),et.popIndexStore(t),this.popInstanceList.length?this.popHide(!1):et.hide())}else null==e||e.remove()}}]),e}(),nt=new tt,rt={exports:{}},ot={exports:{}};!function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ot),function(e){var t=ot.exports;e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports}(rt);var it=n(rt.exports),at={exports:{}},st={exports:{}};!function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}(st),function(e){var t=d.exports.default,n=st.exports;e.exports=function(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(at);var ut=n(at.exports),ct={exports:{}};!function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ct);var lt=n(ct.exports);function pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lt(e);if(t){var o=lt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ut(this,n)}}var ft,dt,ht=t.createTypes({});e.Size=void 0,(ft=e.Size||(e.Size={})).Small="small",ft.Large="large",e.Placements=void 0,(dt=e.Placements||(e.Placements={})).Top="top",dt.Left="left",dt.Right="right",dt.Bottom="bottom";var vt,mt=function(e){it(r,e);var n=pt(r);function r(){return o(this,r),n.apply(this,arguments)}return a(r,null,[{key:"size",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["small","default","large"];return t.toType("Size",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid size, ".concat(t,", the size must be one of 【").concat(e.join(" | "),"】")),!1)},default:"default"})}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["primary","warning","success","danger"];return t.toType("Theme",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),!1)}})}},{key:"placement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top","left","right","bottom"];return t.toType("Placements",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),!1)},default:"top"})}},{key:"commonType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commonType";return t.toType(n.replace(/^\S/,(function(e){return e.toUpperCase()})),{type:String,validator:function(t){var r=e.includes(t);return r||console.error("invalid ".concat(n,", ").concat(t,", the ").concat(n," must be one of 【").concat(e.join(" | "),"】")),r},default:e[0]})}},{key:"style",value:function(){return t.toType("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return t.toType("positions",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),!1)},default:"top-center"})}}]),r}(ht);var yt=Object.create({});e.BKLAYERD_INDEX_EFAULT_VALUE=p,e.BKPopover=Ze,e.BkMaskManager=Qe,e.EMPTY_OBJ=yt,e.PropTypes=mt,e.bKMaskManager=et,e.bkPopIndexManager=nt,e.bkZIndexManager=f,e.classes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")},e.clone=He,e.debounce=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(){var i=this,a=arguments;if(e&&clearTimeout(e),o){var s=!e;e=setTimeout((function(){e=null}),n),s&&(t=r.apply(i,a))}else e=setTimeout((function(){r.apply(i,a)}),n);return t};return i.cancel=function(){clearTimeout(e),e=null},i},e.elementsEqual=function(e,t){var n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0},e.finiteOrDefault=function(e,t){return qe(e)?e:t},e.isArray=Ce,e.isElement=Xe,e.isEmpty=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&Ve(e)},e.isEmptyObj=function(e){return Object.keys(e).length<1},e.isFinite=qe,e.isNullOrUndef=Ve,e.isObject=Ye,e.merge=Ke,e.mergeIf=Fe,e.mergerFn=We,e.mergerIfFn=Ge,e.noop=function(){},e.renderEmptyVNode=function(){return null},e.resolveClassName=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)},e.scrollbarWidth=function(){if(void 0!==vt)return vt;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),vt=t-r},e.stringEnum=function(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))},e.throttle=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var c=(new Date).getTime();s||!1!==n.leading||(s=c);var l=t-(c-s);return r=this,o=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=c,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(u,l)),i}},e.valueOrDefault=function(e,t){return void 0===e?t:e},e.withInstall=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,o=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(o+e.name,e)},e},e.withInstallProps=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.prefix,a=r.config.globalProperties.bkUIPrefix||i||"Bk";r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e},Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue-types")):"function"==typeof define&&define.amd?define(["exports","vue-types"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e["vue-types"])}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(r);var o=n(r.exports),i={exports:{}};!function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var a=n(i.exports),s={exports:{}};!function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var u,c,p=n(s.exports);e.BKLAYERTYPE=void 0,(c=e.BKLAYERTYPE||(e.BKLAYERTYPE={})).BOTTOM="bottom",c.CONTENT="content",c.NAVI="navi",c.FULLSCREEN="fullScreen",c.PLUGINS="plugins",c.MODAL="modal",c.MESSAGE="message",c.POPPER="popper";var l=(p(u={},e.BKLAYERTYPE.BOTTOM,0),p(u,e.BKLAYERTYPE.CONTENT,1),p(u,e.BKLAYERTYPE.NAVI,100),p(u,e.BKLAYERTYPE.FULLSCREEN,1e3),p(u,e.BKLAYERTYPE.MODAL,3e3),p(u,e.BKLAYERTYPE.PLUGINS,8e3),p(u,e.BKLAYERTYPE.MESSAGE,1e4),p(u,e.BKLAYERTYPE.POPPER,99999),u),f=new(function(){function t(){o(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return a(t,[{key:"getNextIndex",value:function(t){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,t)?(this.storageLayerIndexValue[t]=this.storageLayerIndexValue[t]+1,this.storageLayerIndexValue[t]):(this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL]=this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL]+1,this.storageLayerIndexValue[e.BKLAYERTYPE.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(e.BKLAYERTYPE.NAVI)}},{key:"getPopperIndex",value:function(){return l.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,p({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,p({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(l).reduce((function(e,t){return Object.assign(e,p({},t,{value:l[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(l,e)}}]),t}()),d={exports:{}};!function(e){function t(n){return e.exports=t="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.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(d);var h=n(d.exports),v={exports:{}},m={exports:{}},y={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(y),function(e){var t=y.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(m);var g={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(g);var b={exports:{}};!function(e){var t=y.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(b);var x={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(x),function(e){var t=m.exports,n=g.exports,r=b.exports,o=x.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(v);var O=n(v.exports),w="top",E="bottom",k="right",I="left",S="auto",T=[w,E,k,I],j="start",P="end",A="viewport",M="popper",L=T.reduce((function(e,t){return e.concat([t+"-"+j,t+"-"+P])}),[]),_=[].concat(T,[S]).reduce((function(e,t){return e.concat([t,t+"-"+j,t+"-"+P])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function R(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function B(e){return e instanceof N(e).Element||e instanceof Element}function U(e){return e instanceof N(e).HTMLElement||e instanceof HTMLElement}function V(e){return"undefined"!=typeof ShadowRoot&&(e instanceof N(e).ShadowRoot||e instanceof ShadowRoot)}var C={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];U(o)&&R(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});U(r)&&R(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Y(e){return e.split("-")[0]}var q=Math.max,H=Math.min,z=Math.round;function W(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(U(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=z(n.width)/a||1),i>0&&(o=z(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function K(e){var t=W(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function F(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&V(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function G(e){return N(e).getComputedStyle(e)}function X(e){return["table","td","th"].indexOf(R(e))>=0}function Z(e){return((B(e)?e.ownerDocument:e.document)||window.document).documentElement}function J(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(V(e)?e.host:null)||Z(e)}function $(e){return U(e)&&"fixed"!==G(e).position?e.offsetParent:null}function Q(e){for(var t=N(e),n=$(e);n&&X(n)&&"static"===G(n).position;)n=$(n);return n&&("html"===R(n)||"body"===R(n)&&"static"===G(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&U(e)&&"fixed"===G(e).position)return null;var n=J(e);for(V(n)&&(n=n.host);U(n)&&["html","body"].indexOf(R(n))<0;){var r=G(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e,t,n){return q(e,H(t,n))}function ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function re(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var oe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Y(n.placement),u=ee(s),c=[I,k].indexOf(s)>=0?"height":"width";if(i&&a){var p=function(e,t){return ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:re(e,T))}(o.padding,n),l=K(i),f="y"===u?w:I,d="y"===u?E:k,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],m=Q(i),y=m?"y"===u?m.clientHeight||0:m.clientWidth||0:0,g=h/2-v/2,b=p[f],x=y-l[c]-p[d],O=y/2-l[c]/2+g,S=te(b,O,x),j=u;n.modifiersData[r]=((t={})[j]=S,t.centerOffset=S-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(U(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),F(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ie(e){return e.split("-")[1]}var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function se(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,l=e.isFixed,f=a.x,d=void 0===f?0:f,h=a.y,v=void 0===h?0:h,m="function"==typeof p?p({x:d,y:v}):{x:d,y:v};d=m.x,v=m.y;var y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=I,x=w,O=window;if(c){var S=Q(n),T="clientHeight",j="clientWidth";if(S===N(n)&&"static"!==G(S=Z(n)).position&&"absolute"===s&&(T="scrollHeight",j="scrollWidth"),S=S,o===w||(o===I||o===k)&&i===P)x=E,v-=(l&&S===O&&O.visualViewport?O.visualViewport.height:S[T])-r.height,v*=u?1:-1;if(o===I||(o===w||o===E)&&i===P)b=k,d-=(l&&S===O&&O.visualViewport?O.visualViewport.width:S[j])-r.width,d*=u?1:-1}var A,M=Object.assign({position:s},c&&ae),L=!0===p?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:z(t*r)/r||0,y:z(n*r)/r||0}}({x:d,y:v}):{x:d,y:v};return d=L.x,v=L.y,u?Object.assign({},M,((A={})[x]=g?"0":"",A[b]=y?"0":"",A.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+v+"px)":"translate3d("+d+"px, "+v+"px, 0)",A)):Object.assign({},M,((t={})[x]=g?v+"px":"",t[b]=y?d+"px":"",t.transform="",t))}var ue={passive:!0};var ce={left:"right",right:"left",bottom:"top",top:"bottom"};function pe(e){return e.replace(/left|right|bottom|top/g,(function(e){return ce[e]}))}var le={start:"end",end:"start"};function fe(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function de(e){var t=N(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function he(e){return W(Z(e)).left+de(e).scrollLeft}function ve(e){var t=G(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function me(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:U(e)&&ve(e)?e:me(J(e))}function ye(e,t){var n;void 0===t&&(t=[]);var r=me(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=N(r),a=o?[i].concat(i.visualViewport||[],ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ye(J(a)))}function ge(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function be(e,t){return t===A?ge(function(e){var t=N(e),n=Z(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+he(e),y:s}}(e)):B(t)?function(e){var t=W(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ge(function(e){var t,n=Z(e),r=de(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=q(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=q(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+he(e),u=-r.scrollTop;return"rtl"===G(o||n).direction&&(s+=q(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}(Z(e)))}function xe(e,t,n){var r="clippingParents"===t?function(e){var t=ye(J(e)),n=["absolute","fixed"].indexOf(G(e).position)>=0&&U(e)?Q(e):e;return B(n)?t.filter((function(e){return B(e)&&F(e,n)&&"body"!==R(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=be(e,n);return t.top=q(r.top,t.top),t.right=H(r.right,t.right),t.bottom=H(r.bottom,t.bottom),t.left=q(r.left,t.left),t}),be(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Oe(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Y(o):null,a=o?ie(o):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case w:t={x:s,y:n.y-r.height};break;case E:t={x:s,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:u};break;case I:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=i?ee(i):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case j:t[c]=t[c]-(n[p]/2-r[p]/2);break;case P:t[c]=t[c]+(n[p]/2-r[p]/2)}}return t}function we(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,u=void 0===s?A:s,c=n.elementContext,p=void 0===c?M:c,l=n.altBoundary,f=void 0!==l&&l,d=n.padding,h=void 0===d?0:d,v=ne("number"!=typeof h?h:re(h,T)),m=p===M?"reference":M,y=e.rects.popper,g=e.elements[f?m:p],b=xe(B(g)?g:g.contextElement||Z(e.elements.popper),a,u),x=W(e.elements.reference),O=Oe({reference:x,element:y,strategy:"absolute",placement:o}),I=ge(Object.assign({},y,O)),S=p===M?I:x,j={top:b.top-S.top+v.top,bottom:S.bottom-b.bottom+v.bottom,left:b.left-S.left+v.left,right:S.right-b.right+v.right},P=e.modifiersData.offset;if(p===M&&P){var L=P[o];Object.keys(j).forEach((function(e){var t=[k,E].indexOf(e)>=0?1:-1,n=[w,E].indexOf(e)>=0?"y":"x";j[e]+=L[n]*t}))}return j}function Ee(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?_:u,p=ie(r),l=p?s?L:L.filter((function(e){return ie(e)===p})):T,f=l.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=l,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=f.reduce((function(t,n){return t[n]=we(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Y(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var ke={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,p=n.boundary,l=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,h=void 0===d||d,v=n.allowedAutoPlacements,m=t.options.placement,y=Y(m),g=u||(y===m||!h?[pe(m)]:function(e){if(Y(e)===S)return[];var t=pe(e);return[fe(e),t,fe(t)]}(m)),b=[m].concat(g).reduce((function(e,n){return e.concat(Y(n)===S?Ee(t,{placement:n,boundary:p,rootBoundary:l,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,O=t.rects.popper,T=new Map,P=!0,A=b[0],M=0;M<b.length;M++){var L=b[M],_=Y(L),D=ie(L)===j,R=[w,E].indexOf(_)>=0,N=R?"width":"height",B=we(t,{placement:L,boundary:p,rootBoundary:l,altBoundary:f,padding:c}),U=R?D?k:I:D?E:w;x[N]>O[N]&&(U=pe(U));var V=pe(U),C=[];if(i&&C.push(B[_]<=0),s&&C.push(B[U]<=0,B[V]<=0),C.every((function(e){return e}))){A=L,P=!1;break}T.set(L,C)}if(P)for(var q=function(e){var t=b.find((function(t){var n=T.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return A=t,"break"},H=h?3:1;H>0;H--){if("break"===q(H))break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ie(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Se(e){return[w,k,E,I].some((function(t){return e[t]>=0}))}var Te={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=_.reduce((function(e,n){return e[n]=function(e,t,n){var r=Y(e),o=[I,w].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[I,k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,p=n.altBoundary,l=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,v=void 0===h?0:h,m=we(t,{boundary:u,rootBoundary:c,padding:l,altBoundary:p}),y=Y(t.placement),g=ie(t.placement),b=!g,x=ee(y),O="x"===x?"y":"x",S=t.modifiersData.popperOffsets,T=t.rects.reference,P=t.rects.popper,A="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,M="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(S){if(i){var D,R="y"===x?w:I,N="y"===x?E:k,B="y"===x?"height":"width",U=S[x],V=U+m[R],C=U-m[N],z=d?-P[B]/2:0,W=g===j?T[B]:P[B],F=g===j?-P[B]:-T[B],G=t.elements.arrow,X=d&&G?K(G):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=Z[R],$=Z[N],ne=te(0,T[B],X[B]),re=b?T[B]/2-z-ne-J-M.mainAxis:W-ne-J-M.mainAxis,oe=b?-T[B]/2+z+ne+$+M.mainAxis:F+ne+$+M.mainAxis,ae=t.elements.arrow&&Q(t.elements.arrow),se=ae?"y"===x?ae.clientTop||0:ae.clientLeft||0:0,ue=null!=(D=null==L?void 0:L[x])?D:0,ce=U+oe-ue,pe=te(d?H(V,U+re-ue-se):V,U,d?q(C,ce):C);S[x]=pe,_[x]=pe-U}if(s){var le,fe="x"===x?w:I,de="x"===x?E:k,he=S[O],ve="y"===O?"height":"width",me=he+m[fe],ye=he-m[de],ge=-1!==[w,I].indexOf(y),be=null!=(le=null==L?void 0:L[O])?le:0,xe=ge?me:he-T[ve]-P[ve]-be+M.altAxis,Oe=ge?he+T[ve]+P[ve]-be-M.altAxis:ye,Ee=d&&ge?function(e,t,n){var r=te(e,t,n);return r>n?n:r}(xe,he,Oe):te(d?xe:me,he,d?Oe:ye);S[O]=Ee,_[O]=Ee-he}t.modifiersData[r]=_}},requiresIfExists:["offset"]};function Pe(e,t,n){void 0===n&&(n=!1);var r,o,i=U(t),a=U(t)&&function(e){var t=e.getBoundingClientRect(),n=z(t.width)/e.offsetWidth||1,r=z(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Z(t),u=W(e,a),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==R(t)||ve(s))&&(c=(r=t)!==N(r)&&U(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:de(r)),U(t)?((p=W(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=he(s))),{x:u.left+c.scrollLeft-p.x,y:u.top+c.scrollTop-p.y,width:u.width,height:u.height}}function Ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var Le='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',_e=["name","enabled","phase","fn","effect","requires","options"];var De="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Re={placement:"bottom",modifiers:[],strategy:"absolute"};function Ne(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Be(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Re:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Re,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;l(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:B(e)?ye(e):e.contextElement?ye(e.contextElement):[],popper:ye(t)};var a,c,f,d=function(e){var t=Ae(e);return D.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),_e).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(Me(Le,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(Me(Le,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":D.indexOf(t.phase)<0&&console.error(Me(Le,t.name,'"phase"',"either "+D.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(Me(Le,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(Me(Le,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(Me(Le,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(Me(Le,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+_e.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(Me('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),c=function(e){return e.name},f=new Set,a.filter((function(e){var t=c(e);if(!f.has(t))return f.add(t),!0})))),Y(s.options.placement)===S)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var h=G(t);[h.marginTop,h.marginRight,h.marginBottom,h.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r}),a=function(){};u.push(i||a)}})),p.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Ne(t,n)){s.rects={reference:Pe(t,Q(n),"fixed"===s.options.strategy),popper:K(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,u=i.options,l=void 0===u?{}:u,f=i.name;"function"==typeof a&&(s=a({state:s,options:l,name:f,instance:p})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(De)}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){l(),c=!0}};if(!Ne(e,t))return"production"!==process.env.NODE_ENV&&console.error(De),p;function l(){u.forEach((function(e){return e()})),u=[]}return p.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var Ue=Be({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,u=N(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ue)})),s&&u.addEventListener("resize",n.update,ue),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ue)})),s&&u.removeEventListener("resize",n.update,ue)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,u=void 0===s||s;if("production"!==process.env.NODE_ENV){var c=G(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:Y(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,se(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,se(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},C,Te,ke,je,oe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=we(t,{elementContext:"reference"}),s=we(t,{altBoundary:!0}),u=Ie(a,r),c=Ie(s,o,i),p=Se(u),l=Se(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":l})}}]});function Ve(e){return null==e}function Ce(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function Ye(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var qe=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function He(e){if(Ce(e))return e.map(He);if(Ye(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,o=0;o<r;++o)t[n[o]]=He(e[n[o]]);return t}return e}function ze(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function We(e,t,n,r){if(ze(e)){var o=t[e],i=n[e];Ye(o)&&Ye(i)?Ke(o,i,r):t[e]=He(i)}}function Ke(e,t,n){var r=Ce(t)?t:[t],o=r.length;if(!Ye(e))return e;for(var i=(n=n||{}).merger||We,a=0;a<o;++a)if(Ye(t=r[a]))for(var s=Object.keys(t),u=0,c=s.length;u<c;++u)i(s[u],e,t,n);return e}function Fe(e,t){return Ke(e,t,{merger:Ge})}function Ge(e,t,n){if(ze(e)){var r=t[e],o=n[e];Ye(r)&&Ye(o)?Fe(r,o):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=He(o))}}function Xe(e){try{return e instanceof HTMLElement}catch(t){return"object"===h(e)&&1===e.nodeType&&"object"===h(e.style)&&"object"===h(e.ownerDocument)}}var Ze=function(){function e(t,n,r){var i,a;o(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(r),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(i=this.popperRefer)||void 0===i?void 0:i.parentElement,this.isShow=!!(null===(a=this.instanceOptions)||void 0===a?void 0:a.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof r.afterHidden?r.afterHidden:function(){},this.afterShow="function"==typeof r.afterShow?r.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),this.isShow&&this.show(null)}return a(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(O(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(O(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent()}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();Xe(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();Xe(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=Ke({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=Ue(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===h(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return Xe(e)}},{key:"registerEvents",value:function(){var e=this;if(this.isElement(this.referenceTarget)&&"hover"===this.trigger){["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))}if("click"===this.trigger){["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):e.isShow&&!e.isSameElement(t.target,e.popperRefer)&&e.hide()}))}))}}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Je="abcdefghijklmnopqrstuvwxyz0123456789",$e=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Je,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},Qe=function(){function e(t){o(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var n=t||{},r=n.multiInstance,i=void 0!==r&&r,a=n.maskAttrTag,s=void 0===a?"auto":a,u=n.parentNode,c=void 0===u?document.body:u,p=n.maskStyle,l=void 0===p?{}:p;this.activeInstance=void 0,this.multiInstance=i,this.uniqueMaskAttrTag=this.getMaskAttrTag(s),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,l))}return a(e,[{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null!=o?o:$e(16),a=/-?\d+/.test("".concat(t))?t:f.getModalNextIndex(),s=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var u=this.zIndexStore.get(this.lastUUID);s=u.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},s),uuid:i,preUID:this.lastUUID}),this.setMaskStyle(s),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.backupMask.style.setProperty("z-index","".concat(a-1)),e&&(this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(e,t){var n,r=null!=t?t:this.lastUUID;this.mask.style.setProperty("display","none"),null==e||e.remove(),null===(n=this.activeInstance)||void 0===n||n.remove(),this.activeInstance=void 0,this.popIndexStore(r)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){if(this.multiInstance)return this.createMask();var e=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return e||(e=this.createMask()),e}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat($e(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),et=new Qe({}),tt=function(){function e(){o(this,e),this.popInstanceList=[],this.uuidAttrName="data-bk-pop-uuid"}return a(e,[{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r=f.getModalNextIndex(),o=$e(16);e.setAttribute(this.uuidAttrName,o),this.popInstanceList.push({uuid:o,zIndex:r,content:e,showMask:t,appendStyle:n}),t&&et.backupActiveInstance(),et.show(e,r,t,n,o)}else console.warn("pop show error: content is null or undefined")}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();et.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,o=n.content,i=n.showMask,a=n.appendStyle,s=n.uuid;et.show(o,r,i,a,s)}else et.hide()}}},{key:"hide",value:function(e){var t=null==e?void 0:e.getAttribute(this.uuidAttrName);if(t){var n=this.popInstanceList.findIndex((function(e){return e.uuid===t}));n>=0&&(this.popInstanceList[n].content.remove(),this.popInstanceList.splice(n,1),et.popIndexStore(t),this.popInstanceList.length?this.popHide(!1):et.hide())}else null==e||e.remove()}}]),e}(),nt=new tt,rt={exports:{}},ot={exports:{}};!function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ot),function(e){var t=ot.exports;e.exports=function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&t(e,n)},e.exports.__esModule=!0,e.exports.default=e.exports}(rt);var it=n(rt.exports),at={exports:{}},st={exports:{}};!function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}(st),function(e){var t=d.exports.default,n=st.exports;e.exports=function(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(at);var ut=n(at.exports),ct={exports:{}};!function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ct);var pt=n(ct.exports);function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pt(e);if(t){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ut(this,n)}}var ft,dt,ht=t.createTypes({});e.Size=void 0,(ft=e.Size||(e.Size={})).Small="small",ft.Large="large",e.Placements=void 0,(dt=e.Placements||(e.Placements={})).Top="top",dt.Left="left",dt.Right="right",dt.Bottom="bottom";var vt,mt=function(e){it(r,e);var n=lt(r);function r(){return o(this,r),n.apply(this,arguments)}return a(r,null,[{key:"size",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["small","default","large"];return t.toType("Size",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid size, ".concat(t,", the size must be one of 【").concat(e.join(" | "),"】")),!1)},default:"default"})}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["primary","warning","success","danger"];return t.toType("Theme",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),!1)}})}},{key:"placement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top","left","right","bottom"];return t.toType("Placements",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),!1)},default:"top"})}},{key:"commonType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commonType";return t.toType(n.replace(/^\S/,(function(e){return e.toUpperCase()})),{type:String,validator:function(t){var r=e.includes(t);return r||console.error("invalid ".concat(n,", ").concat(t,", the ").concat(n," must be one of 【").concat(e.join(" | "),"】")),r},default:e[0]})}},{key:"style",value:function(){return t.toType("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return t.toType("positions",{type:String,validator:function(t){return!(t&&!e.includes(t))||(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),!1)},default:"top-center"})}}]),r}(ht);var yt=Object.create({});e.BKLAYERD_INDEX_EFAULT_VALUE=l,e.BKPopover=Ze,e.BkMaskManager=Qe,e.EMPTY_OBJ=yt,e.PropTypes=mt,e.bKMaskManager=et,e.bkPopIndexManager=nt,e.bkZIndexManager=f,e.classes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")},e.clone=He,e.elementsEqual=function(e,t){var n,r,o,i;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(o=e[n],i=t[n],o.datasetIndex!==i.datasetIndex||o.index!==i.index)return!1;return!0},e.finiteOrDefault=function(e,t){return qe(e)?e:t},e.isArray=Ce,e.isElement=Xe,e.isEmpty=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&Ve(e)},e.isEmptyObj=function(e){return Object.keys(e).length<1},e.isFinite=qe,e.isNullOrUndef=Ve,e.isObject=Ye,e.merge=Ke,e.mergeIf=Fe,e.mergerFn=We,e.mergerIfFn=Ge,e.noop=function(){},e.renderEmptyVNode=function(){return null},e.resolveClassName=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)},e.scrollbarWidth=function(){if(void 0!==vt)return vt;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),vt=t-r},e.stringEnum=function(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))},e.valueOrDefault=function(e,t){return void 0===e?t:e},e.withInstall=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,o=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(o+e.name,e)},e},e.withInstallProps=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.prefix,a=r.config.globalProperties.bkUIPrefix||i||"Bk";r.component(a+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(a+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e},Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- import { Instance, Placement, Modifier, PositioningStrategy, State } from '@popperjs/core';
1
+ import { Instance, Modifier, Placement, PositioningStrategy, State } from '@popperjs/core';
2
2
  export declare type OnFirstUpdateFnType = (instance: Partial<State>) => void;
3
3
  export declare type IOptions = {
4
4
  placement?: Placement;
@@ -1,4 +1,4 @@
1
- import { VNodeChild, CSSProperties } from 'vue';
1
+ import { CSSProperties, VNodeChild } from 'vue';
2
2
  import { VueTypeDef } from 'vue-types';
3
3
  declare const propTypesNS: {
4
4
  new (): {};
@@ -3,9 +3,9 @@ declare const BkSideslider: {
3
3
  $: import("vue").ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: Partial<{
6
- showMask: boolean;
7
6
  width: string | number;
8
7
  height: string | number;
8
+ showMask: boolean;
9
9
  direction: string;
10
10
  isShow: boolean;
11
11
  customClass: string | unknown[];
@@ -43,7 +43,7 @@ declare const BkSideslider: {
43
43
  }>> & {
44
44
  onClosed?: (...args: any[]) => any;
45
45
  "onUpdate:isShow"?: (...args: any[]) => any;
46
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "showMask" | "width" | "height" | "direction" | "isShow" | "customClass" | "scrollable">;
46
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "direction" | "isShow" | "customClass" | "scrollable">;
47
47
  $attrs: {
48
48
  [x: string]: unknown;
49
49
  };
@@ -93,9 +93,9 @@ declare const BkSideslider: {
93
93
  }, unknown, unknown, {}, {
94
94
  handleClose(): void;
95
95
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], string, {
96
- showMask: boolean;
97
96
  width: string | number;
98
97
  height: string | number;
98
+ showMask: boolean;
99
99
  direction: string;
100
100
  isShow: boolean;
101
101
  customClass: string | unknown[];
@@ -195,9 +195,9 @@ declare const BkSideslider: {
195
195
  }, unknown, unknown, {}, {
196
196
  handleClose(): void;
197
197
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", {
198
- showMask: boolean;
199
198
  width: string | number;
200
199
  height: string | number;
200
+ showMask: boolean;
201
201
  direction: string;
202
202
  isShow: boolean;
203
203
  customClass: string | unknown[];
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button,e.Shared)}(this,(function(e,t,o,i,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(o),l=r(i);var a=d.default.propsMixin,s=Object.assign({},a);s.width.default="400",s.height.default="100%";var c=t.defineComponent({name:"Sideslider",components:{BkModal:d.default,BkButton:l.default},props:Object.assign(Object.assign({},s),{direction:{type:String,default:"right",validator:function(e){var t=["left","right"];return!(t.indexOf(e)<0)||(console.error("direction property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,i={header:function(){var e,i,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"bk-sideslider-header"},[t.createVNode("span",{class:"bk-sideslider-close ".concat(o.direction),onClick:o.handleClose},null),t.createVNode("span",{class:"bk-sideslider-title ".concat(o.direction)},[null!==(n=null===(i=(e=o.$slots).header)||void 0===i?void 0:i.call(e))&&void 0!==n?n:"Header"])])])},default:function(){var e,t,i;return null!==(i=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==i?i:"Content"},footer:function(){return t.createVNode("div",{class:"bk-sideslider-footer"},null)}},n="bk-sideslider-wrapper ".concat(this.scrollable?"scroll-able":"");return t.createVNode(d.default,t.mergeProps(this.$props,{class:n,style:"".concat(this.direction,": 0")}),"function"==typeof(e=i)||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?i:{default:function(){return[i]}})}}),u=n.withInstall(c);e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../button"),require("../modal")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../button","../modal"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e.Button,e.Modal)}(this,(function(e,t,o,i,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(i),l=r(n);var a=l.default.propsMixin,s=Object.assign({},a);s.width.default="400",s.height.default="100%";var c=o.defineComponent({name:"Sideslider",components:{BkModal:l.default,BkButton:d.default},props:Object.assign(Object.assign({},s),{direction:{type:String,default:"right",validator:function(e){var t=["left","right"];return!(t.indexOf(e)<0)||(console.error("direction property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,t=this,i={header:function(){var e,i,n;return o.createVNode(o.Fragment,null,[o.createVNode("div",{class:"bk-sideslider-header"},[o.createVNode("span",{class:"bk-sideslider-close ".concat(t.direction),onClick:t.handleClose},null),o.createVNode("span",{class:"bk-sideslider-title ".concat(t.direction)},[null!==(n=null===(i=(e=t.$slots).header)||void 0===i?void 0:i.call(e))&&void 0!==n?n:"Header"])])])},default:function(){var e,o,i;return null!==(i=null===(o=(e=t.$slots).default)||void 0===o?void 0:o.call(e))&&void 0!==i?i:"Content"},footer:function(){return o.createVNode("div",{class:"bk-sideslider-footer"},null)}},n="bk-sideslider-wrapper ".concat(this.scrollable?"scroll-able":"");return o.createVNode(l.default,o.mergeProps(this.$props,{class:n,style:"".concat(this.direction,": 0")}),"function"==typeof(e=i)||"[object Object]"===Object.prototype.toString.call(e)&&!o.isVNode(e)?i:{default:function(){return[i]}})}}),u=t.withInstall(c);e.default=u,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -64,9 +64,9 @@ declare const _default: import("vue").DefineComponent<{
64
64
  onClosed?: (...args: any[]) => any;
65
65
  "onUpdate:isShow"?: (...args: any[]) => any;
66
66
  }, {
67
- showMask: boolean;
68
67
  width: string | number;
69
68
  height: string | number;
69
+ showMask: boolean;
70
70
  direction: string;
71
71
  isShow: boolean;
72
72
  customClass: string | unknown[];
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../input")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../input"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e.Input)}(this,(function(e,t,a,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(n),l={exports:{}};!function(e){var t=function(e){var t,a=Object.prototype,n=a.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,n){var r=t&&t.prototype instanceof h?t:h,u=Object.create(r.prototype),l=new C(n||[]);return u._invoke=function(e,t,a){var n=m;return function(r,u){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw u;return j()}for(a.method=r,a.arg=u;;){var l=a.delegate;if(l){var o=k(l,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var i=s(e,t,a);if("normal"===i.type){if(n=a.done?d:v,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(n=d,a.method="throw",a.arg=i.arg)}}}(e,a,l),u}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var m="suspendedStart",v="suspendedYield",f="executing",d="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==a&&n.call(w,u)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(r,u,l,o){var i=s(e[r],e,u);if("throw"!==i.type){var c=i.arg,m=c.value;return m&&"object"==typeof m&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(m).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(i.arg)}var r;this._invoke=function(e,n){function u(){return new t((function(t,r){a(e,n,t,r)}))}return r=r?r.then(u,u):u()}}function k(e,a){var n=e.iterator[a.method];if(n===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,p;var u=r.arg;return u?u.done?(a[e.resultName]=u.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):u:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function a(){for(;++r<e.length;)if(n.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=t,a.done=!0,a};return l.next=l}}return{next:j}}function j(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,o,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},N(L.prototype),i(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,a,n,r,u){void 0===u&&(u=Promise);var l=new L(c(t,a,n,r),u);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},N(x),i(x,o,"Generator"),i(x,u,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function r(n,r){return o.type="throw",o.arg=e,a.next=n,r&&(a.method="next",a.arg=t),!!r}for(var u=this.tryEntries.length-1;u>=0;--u){var l=this.tryEntries[u],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),c=n.call(l,"finallyLoc");if(i&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var u=r;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=e,l.arg=t,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),B(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;B(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,n){return this.delegate={iterator:T(e),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(l);var o=l.exports;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../input"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../input","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Input,e.Shared)}(this,(function(e,t,a,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=r(a),l={exports:{}};!function(e){var t=function(e){var t,a=Object.prototype,n=a.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},u=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function i(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(e){i=function(e,t,a){return e[t]=a}}function c(e,t,a,n){var r=t&&t.prototype instanceof h?t:h,u=Object.create(r.prototype),l=new C(n||[]);return u._invoke=function(e,t,a){var n=m;return function(r,u){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===r)throw u;return j()}for(a.method=r,a.arg=u;;){var l=a.delegate;if(l){var o=k(l,a);if(o){if(o===p)continue;return o}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(n===m)throw n=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n=f;var i=s(e,t,a);if("normal"===i.type){if(n=a.done?d:v,i.arg===p)continue;return{value:i.arg,done:a.done}}"throw"===i.type&&(n=d,a.method="throw",a.arg=i.arg)}}}(e,a,l),u}function s(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var m="suspendedStart",v="suspendedYield",f="executing",d="completed",p={};function h(){}function V(){}function y(){}var b={};i(b,u,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(T([])));w&&w!==a&&n.call(w,u)&&(b=w);var x=y.prototype=h.prototype=Object.create(b);function N(e){["next","throw","return"].forEach((function(t){i(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function a(r,u,l,o){var i=s(e[r],e,u);if("throw"!==i.type){var c=i.arg,m=c.value;return m&&"object"==typeof m&&n.call(m,"__await")?t.resolve(m.__await).then((function(e){a("next",e,l,o)}),(function(e){a("throw",e,l,o)})):t.resolve(m).then((function(e){c.value=e,l(c)}),(function(e){return a("throw",e,l,o)}))}o(i.arg)}var r;this._invoke=function(e,n){function u(){return new t((function(t,r){a(e,n,t,r)}))}return r=r?r.then(u,u):u()}}function k(e,a){var n=e.iterator[a.method];if(n===t){if(a.delegate=null,"throw"===a.method){if(e.iterator.return&&(a.method="return",a.arg=t,k(e,a),"throw"===a.method))return p;a.method="throw",a.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=s(n,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,p;var u=r.arg;return u?u.done?(a[e.resultName]=u.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,p):u:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,p)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function T(e){if(e){var a=e[u];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,l=function a(){for(;++r<e.length;)if(n.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=t,a.done=!0,a};return l.next=l}}return{next:j}}function j(){return{value:t,done:!0}}return V.prototype=y,i(x,"constructor",y),i(y,"constructor",V),V.displayName=i(y,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===V||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,i(e,o,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},N(L.prototype),i(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,a,n,r,u){void 0===u&&(u=Promise);var l=new L(c(t,a,n,r),u);return e.isGeneratorFunction(a)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},N(x),i(x,o,"Generator"),i(x,u,(function(){return this})),i(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var a in e)t.push(a);return t.reverse(),function a(){for(;t.length;){var n=t.pop();if(n in e)return a.value=n,a.done=!1,a}return a.done=!0,a}},e.values=T,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(B),!e)for(var a in this)"t"===a.charAt(0)&&n.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function r(n,r){return o.type="throw",o.arg=e,a.next=n,r&&(a.method="next",a.arg=t),!!r}for(var u=this.tryEntries.length-1;u>=0;--u){var l=this.tryEntries[u],o=l.completion;if("root"===l.tryLoc)return r("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),c=n.call(l,"finallyLoc");if(i&&c){if(this.prev<l.catchLoc)return r(l.catchLoc,!0);if(this.prev<l.finallyLoc)return r(l.finallyLoc)}else if(i){if(this.prev<l.catchLoc)return r(l.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return r(l.finallyLoc)}}}},abrupt:function(e,t){for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var u=r;break}}u&&("break"===e||"continue"===e)&&u.tryLoc<=t&&t<=u.finallyLoc&&(u=null);var l=u?u.completion:{};return l.type=e,l.arg=t,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(l)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),B(a),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;B(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,n){return this.delegate={iterator:T(e),resultName:a,nextLoc:n},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(l);var o=l.exports;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function i(e,t,a,n){return new(a||(a=Promise))((function(r,u){function l(e){try{i(n.next(e))}catch(e){u(e)}}function o(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}i((n=n.apply(e,t||[])).next())}))}var c=t.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(e,a){var n=a.emit,r=t.ref(!1),u=t.ref(!1),l=t.ref(0),o=t.ref(0),i=t.ref(0),c=t.ref(null),v=t.ref(e.modelValue),f=t.ref(0),d=t.ref(0),p=t.ref(!1),h=t.ref(null),V=t.computed((function(){return"".concat((e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100,"%")})),y=t.computed((function(){return e.params.vertical?{bottom:V.value}:{left:V.value}})),b=t.computed((function(){return e.params.formatterButtonLabel(e.modelValue)})),g=function(t){e.params.disable||(t.preventDefault(),w(t),s(window,"mousemove",x),s(window,"touchmove",x),s(window,"mouseup",N),s(window,"touchend",N))},w=function(t){r.value=!0,u.value=!0,e.params.vertical?l.value=t.clientY:o.value=t.clientX,i.value=parseFloat(V.value),c.value=i.value},x=function(t){if(r.value){u.value=!1,n("resetSize");var a=0;e.params.vertical?(f.value=t.clientY,a=(l.value-f.value)/e.params.sliderSize*100):(d.value=t.clientX,a=(d.value-o.value)/e.params.sliderSize*100),c.value=i.value+a,L(c.value)}},N=function e(){p.value=!1,r.value&&(setTimeout((function(){r.value=!1,u.value||(L(c.value),n("emitChange"))}),0),m(window,"mousemove",x),m(window,"touchmove",x),m(window,"mouseup",e),m(window,"touchend",e))},L=function(t){if(null!==t&&!isNaN(t)){t<0?c.value=0:t>100&&(c.value=100);var a=100/((e.params.maxValue-e.params.minValue)/e.params.step),u=Math.round(t/a)*a*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;u=parseFloat(u.toFixed(e.params.precision)),n("update:modelValue",u),r.value||e.modelValue===v.value||(v.value=e.modelValue)}};return{renderDom:function(){return t.createVNode("div",{class:["bk-slider-button",e.params.vertical?"vertical":"horizontal",{grabbing:r.value}],ref:h,tabindex:"0",style:y.value,onClick:function(e){return e.stopPropagation()},onMousedown:g},[t.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null),e.params.showButtonLabel&&!e.params.showIntervalLabel?t.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[b.value]):void 0])},setPosition:L}},render:function(){return this.renderDom()}}),s=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)},v=t.defineComponent({name:"Slider",props:{modelValue:a.PropTypes.oneOfType([a.PropTypes.array,a.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,r=a.slots,l=a.emit,m=t.ref(1),v=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),V=t.ref(0),y=t.ref(null),b=t.ref(null),g=t.ref(null),w=t.ref(null),x=t.computed((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),N=t.computed((function(){return Math.min(v.value,f.value)})),L=t.computed((function(){return Math.max(v.value,f.value)})),k=t.computed((function(){return e.range?"".concat(100*(L.value-N.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(v.value-e.minValue)/(e.maxValue-e.minValue),"%")})),E=t.computed((function(){return e.range?"".concat(100*(N.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),B=t.computed((function(){return e.vertical?{height:k.value,bottom:E.value}:{width:k.value,left:E.value}})),C=t.computed((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=1;r<t;r++)n.push(r*a);return e.range?n.filter((function(t){return t<100*(N.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):n.filter((function(t){return t>100*(v.value-e.minValue)/(e.maxValue-e.minValue)}))})),T=t.computed((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=t.computed((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=0;r<=t;r++){var u={stepWidth:r*a,stepLabel:e.formatterLabel(r*e.step)};n.push(u)}return n})),I=t.computed((function(){return Array.isArray(e.modelValue)})),S=t.computed((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,n=e.customContent[t].label;return{tip:a||n||"",label:n||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=t.computed((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:m.value}}));t.watch((function(){return e.modelValue}),(function(){z()})),t.watch((function(){return v.value}),(function(t){e.range?l("update:modelValue",[N.value,L.value]):l("update:modelValue",t),h.value=t})),t.watch((function(){return f.value}),(function(e){l("update:modelValue",[N.value,L.value]),V.value=e})),t.onMounted((function(){e.range?(Array.isArray(e.modelValue)?(v.value=Math.max(e.minValue,Number(e.modelValue[0])),f.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(v.value=e.minValue,f.value=e.maxValue),d.value=[v.value,f.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?v.value=e.minValue:v.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=v.value),p.value=100*e.step/(e.maxValue-e.minValue),_(),s(window,"resize",_())}));var _=function(){y.value&&(m.value=y.value["client".concat(e.vertical?"Height":"Width")])},P=function(t){var a,n;if(t.stopPropagation(),!e.disable){if(_(),e.vertical){var r=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((r-t.clientY)/m.value*100)}else{var u=null===(n=y.value)||void 0===n?void 0:n.getBoundingClientRect().left;G((t.clientX-u)/m.value*100)}M()}},F=function(){return e.range?![N.value,L.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},z=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(v.value=Number(t[0]),f.value=Number(t[1]),F()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(v.value=t,F()&&(d.value=t)))}},M=function(){return i(n,void 0,void 0,o.mark((function a(){return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.nextTick();case 2:l("change",e.range?[N.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})))},A=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(N.value-a)<Math.abs(L.value-a)?w.value=v.value<f.value?b.value:g.value:w.value=v.value>f.value?b.value:g.value,w.setPosition(t)}else b.value.setPosition(t)},R=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(h.value=e.minValue,v.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,v.value=e.maxValue):v.value=a}},D=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(V.value=e.minValue,f.value=e.minValue):a>e.maxValue?(V.value=e.maxValue,f.value=e.maxValue):f.value=a}},W=function(t){var a=0;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[v.value,f.value].includes(a)?"0":"1"};return{renderDom:function(){var a,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:["bk-slider",e.extCls]},[null===(a=r.start)||void 0===a?void 0:a.call(r),t.createVNode("div",{class:"bk-slider-runway",ref:y,style:T.value,onClick:P},[t.createVNode("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:B.value},null),e.showInterval?C.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a)},null)})):void 0,e.customContent?S.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?t.createVNode("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[t.createVNode("div",{class:"label-start",style:[{opacity:W("start")}]},[e.formatterLabel(e.minValue)]),t.createVNode("div",{class:"label-end",style:[{opacity:W("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.stepWidth)},[a.stepLabel])})):e.customContent?S.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.percent)},[a.label])})):void 0]):void 0,t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":function(e){return v.value=e},ref:b,params:O.value,onEmitChange:M,onResetSize:_},null),e.range?t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e},ref:g,params:O.value,onEmitChange:M,onResetSize:_},null):void 0]),e.showInput&&!e.vertical?t.createVNode("div",{class:"bk-slider-input"},[t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:h.value,"onUpdate:modelValue":function(e){return h.value=e},max:e.maxValue,min:e.minValue,onChange:R},null)]),I.value&&f.value?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"input-center"},[t.createTextVNode("~")]),t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:V.value,"onUpdate:modelValue":function(e){return V.value=e},max:e.maxValue,min:e.minValue,onChange:D},null)])]):void 0]):void 0,null===(n=r.end)||void 0===n?void 0:n.call(r)])])}}},render:function(){return this.renderDom()}});v.install=function(e){e.component(v.name,v)},e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function i(e,t,a,n){return new(a||(a=Promise))((function(r,u){function l(e){try{i(n.next(e))}catch(e){u(e)}}function o(e){try{i(n.throw(e))}catch(e){u(e)}}function i(e){var t;e.done?r(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(l,o)}i((n=n.apply(e,t||[])).next())}))}var c=t.defineComponent({name:"SliderButton",props:{modelValue:{type:Number,default:0},params:{type:Object,default:function(){return{}}}},emits:["emitChange","resetSize","update:modelValue"],setup:function(e,a){var n=a.emit,r=t.ref(!1),u=t.ref(!1),l=t.ref(0),o=t.ref(0),i=t.ref(0),c=t.ref(null),v=t.ref(e.modelValue),f=t.ref(0),d=t.ref(0),p=t.ref(!1),h=t.ref(null),V=t.computed((function(){return"".concat((e.modelValue-e.params.minValue)/(e.params.maxValue-e.params.minValue)*100,"%")})),y=t.computed((function(){return e.params.vertical?{bottom:V.value}:{left:V.value}})),b=t.computed((function(){return e.params.formatterButtonLabel(e.modelValue)})),g=function(t){e.params.disable||(t.preventDefault(),w(t),s(window,"mousemove",x),s(window,"touchmove",x),s(window,"mouseup",N),s(window,"touchend",N))},w=function(t){r.value=!0,u.value=!0,e.params.vertical?l.value=t.clientY:o.value=t.clientX,i.value=parseFloat(V.value),c.value=i.value},x=function(t){if(r.value){u.value=!1,n("resetSize");var a=0;e.params.vertical?(f.value=t.clientY,a=(l.value-f.value)/e.params.sliderSize*100):(d.value=t.clientX,a=(d.value-o.value)/e.params.sliderSize*100),c.value=i.value+a,L(c.value)}},N=function e(){p.value=!1,r.value&&(setTimeout((function(){r.value=!1,u.value||(L(c.value),n("emitChange"))}),0),m(window,"mousemove",x),m(window,"touchmove",x),m(window,"mouseup",e),m(window,"touchend",e))},L=function(t){if(null!==t&&!isNaN(t)){t<0?c.value=0:t>100&&(c.value=100);var a=100/((e.params.maxValue-e.params.minValue)/e.params.step),u=Math.round(t/a)*a*(e.params.maxValue-e.params.minValue)*.01+e.params.minValue;u=parseFloat(u.toFixed(e.params.precision)),n("update:modelValue",u),r.value||e.modelValue===v.value||(v.value=e.modelValue)}};return{renderDom:function(){return t.createVNode("div",{class:["bk-slider-button",e.params.vertical?"vertical":"horizontal",{grabbing:r.value}],ref:h,tabindex:"0",style:y.value,onClick:function(e){return e.stopPropagation()},onMousedown:g},[t.createVNode("div",{class:["slider-button",{"slider-button-disable":e.params.disable}]},null),e.params.showButtonLabel&&!e.params.showIntervalLabel?t.createVNode("div",{class:["slider-button-label",e.params.vertical?"vertical":"horizontal"]},[b.value]):void 0])},setPosition:L}},render:function(){return this.renderDom()}}),s=function(e,t,a){e&&t&&a&&e.addEventListener(t,a,!1)},m=function(e,t,a){e&&t&&a&&e.removeEventListener(t,a,!1)},v=t.defineComponent({name:"Slider",props:{modelValue:n.PropTypes.oneOfType([n.PropTypes.array,n.PropTypes.number]),extCls:{type:String,default:""},vertical:{type:Boolean,default:!1},height:{type:String,default:"200px"},disable:{type:Boolean,default:!1},showTip:{type:Boolean,default:!1},maxValue:{type:[Number],default:100},minValue:{type:[Number],default:0},step:{type:[Number],default:1},range:{type:Boolean,default:!1},showInterval:{type:Boolean,default:!1},showIntervalLabel:{type:Boolean,default:!1},showButtonLabel:{type:Boolean,default:!1},showBetweenLabel:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},customContent:{type:Object},formatterLabel:{type:Function,default:function(e){return e}},formatterButtonLabel:{type:Function,default:function(e){return e}}},emits:["update:modelValue","change"],setup:function(e,a){var n=this,r=a.slots,l=a.emit,m=t.ref(1),v=t.ref(null),f=t.ref(null),d=t.ref(null),p=t.ref(0),h=t.ref(0),V=t.ref(0),y=t.ref(null),b=t.ref(null),g=t.ref(null),w=t.ref(null),x=t.computed((function(){var t=[e.minValue,e.maxValue,e.step].map((function(e){var t="".concat(e).split(".")[1];return t?t.length:0}));return Math.max.apply(null,t)})),N=t.computed((function(){return Math.min(v.value,f.value)})),L=t.computed((function(){return Math.max(v.value,f.value)})),k=t.computed((function(){return e.range?"".concat(100*(L.value-N.value)/(e.maxValue-e.minValue),"%"):"".concat(100*(v.value-e.minValue)/(e.maxValue-e.minValue),"%")})),E=t.computed((function(){return e.range?"".concat(100*(N.value-e.minValue)/(e.maxValue-e.minValue),"%"):"0%"})),B=t.computed((function(){return e.vertical?{height:k.value,bottom:E.value}:{width:k.value,left:E.value}})),C=t.computed((function(){if(!e.showInterval||e.minValue>e.maxValue)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=1;r<t;r++)n.push(r*a);return e.range?n.filter((function(t){return t<100*(N.value-e.minValue)/(e.maxValue-e.minValue)||t>100*(L.value-e.minValue)/(e.maxValue-e.minValue)})):n.filter((function(t){return t>100*(v.value-e.minValue)/(e.maxValue-e.minValue)}))})),T=t.computed((function(){return e.vertical?{height:e.height,width:"4px"}:{}})),j=t.computed((function(){if(!e.showIntervalLabel)return[];if(0===e.step)return console.warn("WARNNING:step should not be 0"),[];for(var t=(e.maxValue-e.minValue)/e.step,a=100*e.step/(e.maxValue-e.minValue),n=[],r=0;r<=t;r++){var u={stepWidth:r*a,stepLabel:e.formatterLabel(r*e.step)};n.push(u)}return n})),I=t.computed((function(){return Array.isArray(e.modelValue)})),S=t.computed((function(){return e.customContent?Object.keys(e.customContent).sort((function(e,t){return Number(e)-Number(t)})).filter((function(t){return Number(t)>=e.minValue&&Number(t)<=e.maxValue})).map((function(t){var a=e.customContent[t].tip,n=e.customContent[t].label;return{tip:a||n||"",label:n||"",percent:(Number(t)-e.minValue)/(e.maxValue-e.minValue)*100}})):[]})),O=t.computed((function(){return{vertical:e.vertical,showTip:e.showTip,disable:e.disable,maxValue:e.maxValue,minValue:e.minValue,step:e.step,precision:x.value,showButtonLabel:e.showButtonLabel,formatterButtonLabel:e.formatterButtonLabel,showIntervalLabel:e.showIntervalLabel,customContent:e.customContent,sliderSize:m.value}}));t.watch((function(){return e.modelValue}),(function(){z()})),t.watch((function(){return v.value}),(function(t){e.range?l("update:modelValue",[N.value,L.value]):l("update:modelValue",t),h.value=t})),t.watch((function(){return f.value}),(function(e){l("update:modelValue",[N.value,L.value]),V.value=e})),t.onMounted((function(){e.range?(Array.isArray(e.modelValue)?(v.value=Math.max(e.minValue,Number(e.modelValue[0])),f.value=Math.min(e.maxValue,Number(e.modelValue[1]))):(v.value=e.minValue,f.value=e.maxValue),d.value=[v.value,f.value]):("number"!=typeof e.modelValue||isNaN(e.modelValue)?v.value=e.minValue:v.value=Math.min(e.maxValue,Math.max(e.minValue,e.modelValue)),d.value=v.value),p.value=100*e.step/(e.maxValue-e.minValue),_(),s(window,"resize",_())}));var _=function(){y.value&&(m.value=y.value["client".concat(e.vertical?"Height":"Width")])},P=function(t){var a,n;if(t.stopPropagation(),!e.disable){if(_(),e.vertical){var r=null===(a=y.value)||void 0===a?void 0:a.getBoundingClientRect().bottom;G((r-t.clientY)/m.value*100)}else{var u=null===(n=y.value)||void 0===n?void 0:n.getBoundingClientRect().left;G((t.clientX-u)/m.value*100)}M()}},F=function(){return e.range?![N.value,L.value].every((function(e,t){return e===d.value[t]})):e.modelValue!==d.value},z=function(){if(e.minValue>e.maxValue)console.error("min should not be greater than max.");else{var t=e.modelValue;e.range&&Array.isArray(t)?t[1]<e.minValue?l("update:modelValue",[e.minValue,e.minValue]):t[0]>e.maxValue?l("update:modelValue",[e.maxValue,e.maxValue]):t[0]<e.minValue?l("update:modelValue",[e.minValue,t[1]]):t[1]>e.maxValue?l("update:modelValue",[t[0],e.maxValue]):(v.value=Number(t[0]),f.value=Number(t[1]),F()&&(d.value=t.slice())):e.range||"number"!=typeof t||isNaN(t)||(t<e.minValue?l("update:modelValue",e.minValue):t>e.maxValue?l("update:modelValue",e.maxValue):(v.value=t,F()&&(d.value=t)))}},M=function(){return i(n,void 0,void 0,o.mark((function a(){return o.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.nextTick();case 2:l("change",e.range?[N.value,L.value]:e.modelValue);case 3:case"end":return a.stop()}}),a)})))},A=function(t){return e.vertical?{bottom:"".concat(t,"%")}:{left:"".concat(t,"%")}},G=function(t){if(e.range){var a=e.minValue+t*(e.maxValue-e.minValue)/100;Math.abs(N.value-a)<Math.abs(L.value-a)?w.value=v.value<f.value?b.value:g.value:w.value=v.value>f.value?b.value:g.value,w.value.setPosition(t)}else b.value.setPosition(t)},R=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(h.value=e.minValue,v.value=e.minValue):a>e.maxValue?(h.value=e.maxValue,v.value=e.maxValue):v.value=a}},D=function(t){if(""!==t){var a=parseFloat(t);a<e.minValue?(V.value=e.minValue,f.value=e.minValue):a>e.maxValue?(V.value=e.maxValue,f.value=e.maxValue):f.value=a}},W=function(t){var a=0;return a="start"===t?e.vertical?e.maxValue:e.minValue:e.vertical?e.minValue:e.maxValue,e.showButtonLabel&&[v.value,f.value].includes(a)?"0":"1"};return{renderDom:function(){var a,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:["bk-slider",e.extCls]},[null===(a=r.start)||void 0===a?void 0:a.call(r),t.createVNode("div",{class:"bk-slider-runway",ref:y,style:T.value,onClick:P},[t.createVNode("div",{class:["bk-slider-bar",e.vertical?"vertical":"horizontal",{disable:e.disable}],style:B.value},null),e.showInterval?C.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a)},null)})):void 0,e.customContent?S.value.map((function(a,n){return t.createVNode("div",{key:n,class:["bk-slider-interval",{vertical:e.vertical}],style:A(a.percent)},null)})):void 0,e.showBetweenLabel||e.showIntervalLabel||e.customContent?t.createVNode("div",{class:["bk-slider-labels",e.vertical?"vertical":"horizontal"]},[e.showBetweenLabel?[t.createVNode("div",{class:"label-start",style:[{opacity:W("start")}]},[e.formatterLabel(e.minValue)]),t.createVNode("div",{class:"label-end",style:[{opacity:W("end")}]},[e.formatterLabel(e.maxValue)])]:e.showIntervalLabel?j.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.stepWidth)},[a.stepLabel])})):e.customContent?S.value.map((function(a,n){return t.createVNode("div",{class:["bk-slider-label",e.vertical?"vertical":"horizontal"],key:n,style:A(a.percent)},[a.label])})):void 0]):void 0,t.createVNode(c,{modelValue:v.value,"onUpdate:modelValue":function(e){return v.value=e},ref:b,params:O.value,onEmitChange:M,onResetSize:_},null),e.range?t.createVNode(c,{modelValue:f.value,"onUpdate:modelValue":function(e){return f.value=e},ref:g,params:O.value,onEmitChange:M,onResetSize:_},null):void 0]),e.showInput&&!e.vertical?t.createVNode("div",{class:"bk-slider-input"},[t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:h.value,"onUpdate:modelValue":function(e){return h.value=e},max:e.maxValue,min:e.minValue,onChange:R},null)]),I.value&&f.value?t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"input-center"},[t.createTextVNode("~")]),t.createVNode("div",{class:"input-item"},[t.createVNode(u.default,{type:"number",modelValue:V.value,"onUpdate:modelValue":function(e){return V.value=e},max:e.maxValue,min:e.minValue,onChange:D},null)])]):void 0]):void 0,null===(n=r.end)||void 0===n?void 0:n.call(r)])])}}},render:function(){return this.renderDom()}});v.install=function(e){e.component(v.name,v)},e.default=v,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -1,4 +1,4 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue"),require("../shared"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Vue,t.Shared,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("../shared"),require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bkuiVue={},t.Shared,t.Vue,t["@bkui-vue/icon/icons"])}(this,(function(t,e,r,n){"use strict";function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var i={exports:{}};!function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports}(i);var a=o(i.exports),c={exports:{}};!function(t){var e=function(t){var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new _(n||[]);return i._invoke=function(t,e,r){var n=p;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=l(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",y={};function v(){}function g(){}function m(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(N([])));x&&x!==r&&n.call(x,i)&&(b=x);var k=m.prototype=v.prototype=Object.create(b);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,c){var s=l(t[o],t,i);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==typeof p&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(p).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=l(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function N(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return g.prototype=m,s(k,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},t.awrap=function(t){return{__await:t}},T(L.prototype),s(L.prototype,a,(function(){return this})),t.AsyncIterator=L,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new L(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},T(k),s(k,c,"Generator"),s(k,i,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=N,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(c);var s=c.exports;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -12,4 +12,4 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:r.PropTypes.theme().def("primary"),size:r.PropTypes.size(),curStep:r.PropTypes.number.def(1),controllable:r.PropTypes.bool.def(!1),direction:r.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:r.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:r.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:r.PropTypes.bool,extCls:r.PropTypes.string,steps:r.PropTypes.array.def([]),beforeChange:r.PropTypes.func},p=e.defineComponent({name:"Steps",props:l,emits:["update:curStep","click"],setup:function(t,r){var n=this,o=r.emit,i=e.ref([]);return e.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=r.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon?e.icon:t+1},d=function(t,r){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(r)?e.createVNode(n.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(r)?e.createVNode(n.Error,{class:"bk-steps-icon"},null):l(t)?e.createVNode(n.Done,{class:"bk-steps-icon"},null):e.createVNode("span",{class:"number"},[h(t,r)])};return e.createVNode("div",{class:u},[this.defaultSteps.map((function(t,r){var n,i,a;return e.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(r)?"done":"",p(r)?"current":"",t.status&&p(r)?["bk-step-".concat(t.status)]:""]},[e.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[null!==(a=null===(i=(n=o.$slots)[r+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a:d(r,t)]),t.title?e.createVNode("div",{class:"bk-step-content"},[e.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(r+1)}},[t.title]),t.description&&e.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),f=r.withInstall(p);t.default=f,Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */function u(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function c(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,c)}s((n=n.apply(t,e||[])).next())}))}var l={theme:e.PropTypes.theme().def("primary"),size:e.PropTypes.size(),curStep:e.PropTypes.number.def(1),controllable:e.PropTypes.bool.def(!1),direction:e.PropTypes.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:e.PropTypes.commonType(["","error","loading"],"status").def(""),lineType:e.PropTypes.commonType(["dashed","solid"],"lineType").def("dashed"),text:e.PropTypes.bool,extCls:e.PropTypes.string,steps:e.PropTypes.array.def([]),beforeChange:e.PropTypes.func},p=r.defineComponent({name:"Steps",props:l,emits:["update:curStep","click"],setup:function(t,e){var n=this,o=e.emit,i=r.ref([]);return r.onMounted((function(){var e,r,n,o,a;(e=i.value).splice.apply(e,[0,i.value.length].concat([{title:"步骤1",icon:1},{title:"步骤2",icon:2},{title:"步骤3",icon:3}])),(null===(r=t.steps)||void 0===r?void 0:r.length)&&(n=t.steps,a=[],n.forEach((function(t){"string"==typeof t?a.push(t):a.push({title:t.title,icon:t.icon,description:t.description,status:t.status})})),(o=i.value).splice.apply(o,[0,i.value.length].concat(a)))})),{defaultSteps:i,jumpTo:function(e){return u(n,void 0,void 0,s.mark((function r(){var n=this;return s.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!t.controllable||e===t.curStep){r.next=7;break}if("function"!=typeof t.beforeChange){r.next=5;break}return r.next=5,new Promise((function(r,o){return u(n,void 0,void 0,s.mark((function n(){var i;return s.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.beforeChange(e);case 2:(i=n.sent)?r(i):o(i);case 4:case"end":return n.stop()}}),n)})))}));case 5:o("update:curStep",e),o("click",e);case 7:r.next=12;break;case 9:r.prev=9,r.t0=r.catch(0),console.warn(r.t0);case 12:case"end":return r.stop()}}),r,null,[[0,9]])})))}}},render:function(){var t,o=this,i="bk-steps",c=this.theme?"".concat(i,"-").concat(this.theme):"",s=this.size?"".concat(i,"-").concat(this.size):"",u=e.classes((a(t={},"".concat(this.extCls),!!this.extCls),a(t,"bk-steps-".concat(this.direction),this.direction),a(t,"bk-steps-".concat(this.lineType),this.lineType),t),"".concat(c," ").concat(i," ").concat(s)),l=function(t){return o.curStep>t+1||"done"===o.defaultSteps[t].status},p=function(t){return o.curStep===t+1},f=function(t){var e=t.icon;return e?"[object Object]"===Object.prototype.toString.call(e):"string"==typeof t},h=function(t,e){return e.icon?e.icon:t+1},d=function(t,e){return p(t)&&"loading"===o.status||function(t){return"loading"===t.status}(e)?r.createVNode(n.Circle,{class:"bk-icon bk-steps-icon icon-loading"},null):p(t)&&"error"===o.status||function(t){return"error"===t.status}(e)?r.createVNode(n.Error,{class:"bk-steps-icon"},null):l(t)?r.createVNode(n.Done,{class:"bk-steps-icon"},null):r.createVNode("span",{class:"number"},[h(t,e)])};return r.createVNode("div",{class:u},[this.defaultSteps.map((function(t,e){var n,i,a;return r.createVNode("div",{class:["bk-step",t.title?"":"bk-step-no-content",l(e)?"done":"",p(e)?"current":"",t.status&&p(e)?["bk-step-".concat(t.status)]:""]},[r.createVNode("span",{class:["bk-step-indicator","bk-step-".concat(f(t)?"icon":"number")],style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[null!==(a=null===(i=(n=o.$slots)[e+1])||void 0===i?void 0:i.call(n))&&void 0!==a?a:d(e,t)]),t.title?r.createVNode("div",{class:"bk-step-content"},[r.createVNode("div",{class:"bk-step-title",style:{cursor:o.controllable?"pointer":""},onClick:function(){o.jumpTo(e+1)}},[t.title]),t.description&&r.createVNode("div",{class:"bk-step-description",title:t.description},[t.description])]):""])}))])}}),f=e.withInstall(p);t.default=f,Object.defineProperty(t,"__esModule",{value:!0})}));
@@ -20,6 +20,7 @@ import '../progress/progress.less';
20
20
  import '../radio/radio.less';
21
21
  import '../rate/rate.less';
22
22
  import '../rate/star.less';
23
+ import '../swiper/swiper.less';
23
24
  import '../select/select.less';
24
25
  import '../sideslider/sideslider.less';
25
26
  import '../switcher/switcher.less';
@@ -1 +1 @@
1
- !function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less"],e):e()}((function(){}));
1
+ !function(e){"function"==typeof define&&define.amd?define(["./reset.less","../alert/alert.less","../backtop/backtop.less","../badge/badge.less","../breadcrumb/breadcrumb.less","../button/button.less","../card/card.less","../checkbox/checkbox.less","../collapse/collapse.less","../dialog/dialog.less","../exception/exception.less","../fixed-navbar/fixed-navbar.less","../input/input.less","../link/link.less","../dropdown/dropdown.less","../loading/loading.less","../modal/modal.less","../popover/popover.less","../progress/progress.less","../radio/radio.less","../rate/rate.less","../rate/star.less","../swiper/swiper.less","../select/select.less","../sideslider/sideslider.less","../switcher/switcher.less","../table/table.less","../tag/tag.less","../form/form.less","../steps/steps.less","../message/message.less","../notify/notify.less","../tree/tree.less","../slider/slider.less","../menu/menu.less","../navigation/navigation.less","../date-picker/date-picker.less","../divider/divider.less","../tab/tab.less","../process/process.less","../virtual-render/virtual-render.less","../transfer/transfer.less","../pagination/pagination.less","../timeline/timeline.less"],e):e()}((function(){}));