bkui-vue 0.0.1-beta.52 → 0.0.1-beta.53
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +6 -5
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +1 -0
- package/package.json +3 -1
package/dist/index.umd.js
CHANGED
@@ -54,4 +54,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
54
54
|
* @return {boolean} True if the event is supported.
|
55
55
|
* @internal
|
56
56
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
57
|
-
*/function f6(e,n){if(!Gc.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,s=i in document;if(!s){var l=document.createElement("div");l.setAttribute(i,"return;"),s=typeof l[i]=="function"}return!s&&Yc&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var h6=f6,g6=c6,p6=h6,Bc=10,Hc=40,Fc=800;function Uc(e){var n=0,i=0,s=0,l=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),s=n*Bc,l=i*Bc,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||l)&&e.deltaMode&&(e.deltaMode==1?(s*=Hc,l*=Hc):(s*=Fc,l*=Fc)),s&&!n&&(n=s<1?-1:1),l&&!i&&(i=l<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:l}}Uc.getEventType=function(){return g6.firefox()?"DOMMouseScroll":p6("wheel")?"wheel":"mousewheel"};var m6=Uc,M6=m6;const I6=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,y6=function(e,n){e!=null&&e.addEventListener&&e.addEventListener(I6?"DOMMouseScroll":"mousewheel",function(i){const s=M6(i);n==null||n.apply(this,[i,s])})},C6={beforeMount(e,n){console.error(e,n),y6(e,n.value)}},b6=e=>typeof Element=="undefined"?!1:e instanceof Element,zn=new Map;let _c;document.addEventListener("mousedown",e=>_c=e),document.addEventListener("mouseup",e=>{for(const n of zn.values())for(const{documentHandler:i}of n)i(e,_c)});function Xc(e,n){let i=[];return Array.isArray(n.arg)?i=n.arg:b6(n.arg)&&i.push(n.arg),function(s,l){const{popperRef:c}=n.instance,f=s.target,h=l==null?void 0:l.target,g=!n||!n.instance,m=!f||!h,M=e.contains(f)||e.contains(h),C=e===f,b=i.length&&i.some(k=>k==null?void 0:k.contains(f))||i.length&&i.includes(h),N=c&&(c.contains(f)||c.contains(h));g||m||M||C||b||N||n.value(s,l)}}const Rs={beforeMount(e,n){zn.has(e)||zn.set(e,[]),zn.get(e).push({documentHandler:Xc(e,n),bindingFn:n.value})},updated(e,n){zn.has(e)||zn.set(e,[]);const i=zn.get(e),s=i.findIndex(c=>c.bindingFn===n.oldValue),l={documentHandler:Xc(e,n),bindingFn:n.value};s>=0?i.splice(s,1,l):i.push(l)},unmounted(e){zn.delete(e)}},Kc={mounted(e,n){const i=N6();typeof n.value=="object"?Object.assign(i,n.value):i.content=n.value;const{disabled:s,arrow:l,theme:c}=i;if(s)return;const f=w6(i.content,l,c==="light");k6(e,f,i)}};function N6(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:()=>{},onHide:()=>{}}}function w6(e,n,i){const s=on.getPopperIndex(),l=document.createElement("div");if(l.className=`bk-popper ${i?"light":"dark"}`,l.innerText=e,l.style.zIndex=String(s),n){const c=L6();l.appendChild(c)}return document.body.appendChild(l),l}function L6(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function k6(e,n,i){const{placement:s,distance:l,trigger:c,showOnInit:f,onShow:h,onHide:g}=i,m=ql(e,n,{placement:s,modifiers:[{name:"offset",options:{offset:[0,l]}}]});if(c==="hover"){const b=["mouseenter","focus"],N=["mouseleave","blur"];b.forEach(k=>{e.addEventListener(k,M)}),N.forEach(k=>{e.addEventListener(k,C)})}else c==="click"&&document.body.addEventListener("click",b=>{e.contains(b.target)&&!n.hasAttribute("data-show")?M():n.hasAttribute("data-show")&&C()});f&&M();function M(){n.setAttribute("data-show",""),h(),m.setOptions(b=>ze(O({},b),{modifiers:[...b.modifiers,{name:"eventListeners",enabled:!0}]})),m.update()}function C(){n.removeAttribute("data-show"),g(),m.setOptions(b=>ze(O({},b),{modifiers:[...b.modifiers,{name:"eventListeners",enabled:!1}]}))}}var v6=a.defineComponent({name:"Tag",props:{theme:d.theme(["success","info","warning","danger"]).def(""),closable:d.bool.def(!1),type:d.commonType(["","filled","stroke"]).def(""),checkable:d.bool.def(!1),checked:d.bool.def(!1),radius:d.string.def("2px"),extCls:d.string.def("")},emits:["change","close"],slots:["icon"],setup(e,{emit:n}){const i=a.computed(()=>Ne({"bk-tag-closable":e.closable,"bk-tag-checkable":e.checkable,"bk-tag-check":e.checked,[`bk-tag-${e.type}`]:e.type,[`bk-tag-${e.theme}`]:e.theme,[e.extCls]:!!e.extCls},"bk-tag")),s=a.computed(()=>({borderRadius:e.radius}));return{wrapperCls:i,wrapperStyle:s,handleClose:f=>{f.preventDefault(),f.stopPropagation(),n("close",f)},handleClick:f=>{f.preventDefault(),f.stopPropagation(),e.checkable&&n("change",!e.checked)}}},render(){var e,n;return a.createVNode("div",{class:this.wrapperCls,style:this.wrapperStyle,onClick:this.handleClick},[this.$slots.icon?a.createVNode("span",{class:"bk-tag-icon"},[this.$slots.icon()]):"",a.createVNode("span",{class:"bk-tag-text"},[(n=(e=this.$slots).default)==null?void 0:n.call(e)]),this.closable?a.createVNode(jn,{class:"bk-tag-close",onClick:this.handleClose},null):""])}});const Gs=Re(v6);var T6=a.defineComponent({name:"Select",directives:{clickoutside:Rs},props:{modelValue:d.any,multiple:d.bool.def(!1),disabled:d.bool.def(!1),size:d.size().def("default"),clearable:d.bool.def(!0),loading:d.bool.def(!1),filterable:d.bool.def(!1),remoteMethod:d.func,scrollHeight:d.number.def(216),showSelectAll:d.bool.def(!1),popoverMinWidth:d.number.def(0),showOnInit:d.bool.def(!1),multipleMode:d.oneOf(["default","tag"]).def("default"),tagTheme:d.theme(["success","info","warning","danger"]).def(""),behavior:d.oneOf(["normal","simplicity"]).def("normal"),collapseTags:d.bool.def(!1),noDataText:d.string.def("\u65E0\u6570\u636E"),noMatchText:d.string.def("\u65E0\u5339\u914D\u6570\u636E"),loadingText:d.string.def("\u52A0\u8F7D\u4E2D..."),placeholder:d.string.def("\u8BF7\u9009\u62E9"),selectAllText:d.string.def("\u5168\u90E8"),scrollLoading:d.bool.def(!1)},emits:["update:modelValue","change","toggle","clear","scroll-end"],setup(e,{emit:n}){const{modelValue:i,disabled:s,filterable:l,placeholder:c,multiple:f,remoteMethod:h,loading:g,loadingText:m,noDataText:M,noMatchText:C,popoverMinWidth:b,showOnInit:N}=a.toRefs(e),k=a.reactive({currentPlaceholder:c.value,selectedOptions:new Set,currentSelectedLabel:""}),S=a.ref(),J=a.ref(),D=a.ref(new Set),E=a.ref(new Set),z=a.computed(()=>s.value||g.value),U=a.computed(()=>[...k.selectedOptions.values()].map(ie=>ie.label)),Q=a.computed(()=>[...D.value.values()].filter(ie=>!ie.disabled).every(ie=>k.selectedOptions.has(ie))),H=a.computed(()=>!!E.value.size),F=a.computed(()=>!D.value.size),ne=a.computed(()=>{const ie=[...D.value.values()];return ie.length&&ie.every(Qe=>!Qe.visible)}),G=a.computed(()=>typeof h.value=="function"),le=a.computed(()=>!(dt.value||F.value||ne.value)),_=a.computed(()=>dt.value?m.value:F.value?M.value:ne.value?C.value:""),{register:q,unregister:Z}=zs(D),{register:x,unregister:R}=zs(E),{isHover:te,setHover:se,cancelHover:$}=a6(),{isFocus:ce,handleFocus:de,handleBlur:me}=r6(),{popperWidth:De,isPopoverShow:xe,onPopoverFirstUpdate:Y,hidePopover:K,showPopover:he,togglePopover:nt}=o6({popoverMinWidth:b.value}),Je=ie=>{D.value.forEach(Qe=>{var it;Qe.visible=(it=Ac(String(Qe.label)))==null?void 0:it.includes(Ac(ie))})},{searchKey:$e,searchLoading:dt}=l6(G.value?h.value:Je),st=()=>{const ie=U.value.join(",");l.value&&xe.value?(k.currentPlaceholder=ie||c.value,k.currentSelectedLabel=""):(k.currentPlaceholder=c.value,k.currentSelectedLabel=ie,$e.value="")};a.watch(xe,()=>{st()});const ft=ie=>{ie!==i.value&&(n("change",ie),n("update:modelValue",ie))},Tt=()=>{z.value||(nt(),n("toggle",xe.value))},Ee=ie=>{$e.value=ie.target.value},W=()=>{S.value.focus(),J.value.update(),!$e.value&&st()},X=ie=>{z.value||!ie||(f.value?(k.selectedOptions.has(ie)?k.selectedOptions.delete(ie):k.selectedOptions.add(ie),ft([...k.selectedOptions.values()].map(Qe=>Qe.value))):(k.selectedOptions.clear(),k.selectedOptions.add(ie),ft(ie.value),K()),W())},ae=ie=>{ie.stopPropagation(),k.selectedOptions.clear(),K(),st(),ft(f.value?[]:""),n("clear",f.value?[]:"")},Me=()=>{Q.value?k.selectedOptions.clear():D.value.forEach(ie=>{ie.disabled||k.selectedOptions.has(ie)||k.selectedOptions.add(ie)}),W(),ft([...k.selectedOptions.values()].map(ie=>ie.value))},Le=ie=>{const{scrollTop:Qe,clientHeight:it,scrollHeight:_e}=ie.target;Qe+it===_e&&n("scroll-end")},ve=()=>{K(),me()};return a.provide(js,a.reactive({props:e,selectedOptions:a.unref(k.selectedOptions),register:q,unregister:Z,registerGroup:x,unregisterGroup:R,handleOptionSelected:X})),a.onMounted(()=>{const ie=Array.isArray(i.value)?i.value:[i.value];D.value.forEach(Qe=>{ie.includes(Qe.value)&&k.selectedOptions.add(Qe)}),st(),setTimeout(()=>{N.value&&he()})}),ze(O({},a.toRefs(k)),{options:D,isDisabled:z,selectedLabel:U,isPopoverShow:xe,isHover:te,popperWidth:De,popoverRef:J,inputRef:S,searchLoading:dt,isOptionsEmpty:F,isSearchEmpty:ne,isFocus:ce,isShowSelectContent:le,curContentText:_,isGroup:H,searchKey:$e,setHover:se,cancelHover:$,handleFocus:de,handleInput:Ee,handleTogglePopover:Tt,handleClear:ae,onPopoverFirstUpdate:Y,hidePopover:K,showPopover:he,handleToggleAll:Me,handleOptionSelected:X,handleClickOutside:ve,handleScroll:Le})},render(){const e=Ne({"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),n=[{name:"offset",options:{offset:[0,4]}}],i=()=>{var f,h;const l=()=>this.loading?a.createVNode(_n,{loading:!0,class:"spinner",mode:"spin",size:"mini"},null):this.clearable&&this.isHover?a.createVNode(Dn,{class:"clear-icon",onClick:this.handleClear},null):a.createVNode(jr,{class:"angle-up"},null),c=()=>this.multipleMode==="tag"?a.createVNode("div",{class:"bk-select-tag"},[[...this.selectedOptions.values()].map(g=>a.createVNode(Gs,{closable:!0,style:{marginTop:"3px"},theme:this.tagTheme,onClose:()=>this.handleOptionSelected(g)},{default:()=>[g.label]})),a.withDirectives(a.createVNode("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:this.selectedOptions.size?"":this.placeholder,readonly:!this.filterable||!this.isPopoverShow,"onUpdate:modelValue":g=>this.searchKey=g,onFocus:this.handleFocus},null),[[a.vModelText,this.searchKey]])]):a.withDirectives(a.createVNode("input",{ref:"inputRef",type:"text",class:"bk-select-input",style:{paddingLeft:this.$slots.prefixIcon?"20px":"10px"},"onUpdate:modelValue":g=>this.currentSelectedLabel=g,placeholder:this.currentPlaceholder,readonly:!this.filterable||!this.isPopoverShow,onFocus:this.handleFocus,onInput:this.handleInput},null),[[a.vModelText,this.currentSelectedLabel]]);return a.createVNode("div",{class:"bk-select-trigger",onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[this.$slots.prefixIcon?a.createVNode("span",{class:"bk-select-prefix"},[(h=(f=this.$slots).prefixIcon)==null?void 0:h.call(f)]):null,c(),l()])},s=()=>{var l,c;return a.createVNode("div",null,[!this.isShowSelectContent&&a.createVNode("div",{class:"bk-select-empty"},[this.searchLoading&&a.createVNode(_n,{class:"mr5",loading:!0,mode:"spin",size:"mini"},null),this.curContentText]),a.createVNode("div",{class:"bk-select-content"},[a.createVNode("div",{class:"bk-select-dropdown",style:{maxHeight:`${this.scrollHeight}px`},onScroll:this.handleScroll},[a.withDirectives(a.createVNode("ul",{class:"bk-select-options"},[this.multiple&&this.showSelectAll&&!this.searchKey&&a.createVNode("li",{class:"bk-select-option",onClick:this.handleToggleAll},[this.selectAllText]),(c=(l=this.$slots).default)==null?void 0:c.call(l),this.scrollLoading&&a.createVNode("li",{class:"bk-select-options-loading"},[a.createVNode(_n,{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),this.loadingText])]),[[a.vShow,this.isShowSelectContent]])]),this.$slots.extension&&a.createVNode("div",{class:"bk-select-extension"},[this.$slots.extension()])])])};return a.withDirectives(a.createVNode("div",{class:e},[a.createVNode(Ni,{ref:"popoverRef",theme:"light",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:n,handleFirstUpdate:this.onPopoverFirstUpdate},{default:()=>i(),content:()=>s()})]),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])}});const Ys=en(T6,{Option:Wr,Group:Js});function x6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const{propsMixin:S6}=Xn,Bs=Object.assign({},S6);Bs.width.default="400",Bs.height.default="100%";var D6=a.defineComponent({name:"Sideslider",components:{BkModal:Xn,BkButton:bi},props:ze(O({},Bs),{direction:{type:String,default:"right",validator:e=>{const n=["left","right"];return n.indexOf(e)<0?(console.error(`direction property is not valid: '${e}',\u3010${n.join(" | ")}\u3011`),!1):!0}}}),emits:["closed","update:isShow"],methods:{handleClose(){this.$emit("update:isShow",!1),this.$emit("closed")}},render(){const e={header:()=>{var i,s,l;return[a.createVNode("div",{class:"bk-sideslider-header"},[a.createVNode("span",{class:`bk-sideslider-close ${this.direction}`,onClick:this.handleClose},null),a.createVNode("span",{class:`bk-sideslider-title ${this.direction}`},[(l=(s=(i=this.$slots).header)==null?void 0:s.call(i))!=null?l:"Header"])])]},default:()=>{var i,s,l;return(l=(s=(i=this.$slots).default)==null?void 0:s.call(i))!=null?l:"Content"},footer:()=>a.createVNode("div",{class:"bk-sideslider-footer"},null)},n=`bk-sideslider-wrapper ${this.scrollable?"scroll-able":""}`;return a.createVNode(Xn,a.mergeProps(this.$props,{class:n,style:`${this.direction}: 0`}),x6(e)?e:{default:()=>[e]})}});const $c=Re(D6),j6={theme:d.theme().def("primary"),size:d.size(),curStep:d.number.def(1),controllable:d.bool.def(!1),direction:d.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:d.commonType(["","error","loading"],"status").def(""),lineType:d.commonType(["dashed","solid"],"lineType").def("dashed"),text:d.bool,extCls:d.string,steps:d.array.def([]),beforeChange:d.func};var z6=a.defineComponent({name:"Steps",props:j6,emits:["update:curStep","click"],setup(e,{emit:n}){const i=a.ref([]),s=f=>{const h=[];f.forEach(g=>{typeof g=="string"?h.push(g):h.push({title:g.title,icon:g.icon,description:g.description,status:g.status})}),i.value.splice(0,i.value.length,...h)},l=()=>{var f;i.value.splice(0,i.value.length,{title:"\u6B65\u9AA41",icon:1},{title:"\u6B65\u9AA42",icon:2},{title:"\u6B65\u9AA43",icon:3}),(f=e.steps)!=null&&f.length&&s(e.steps)},c=async f=>{try{e.controllable&&f!==e.curStep&&(typeof e.beforeChange=="function"&&await new Promise(async(h,g)=>{const m=await e.beforeChange(f);m?h(m):g(m)}),n("update:curStep",f),n("click",f))}catch(h){console.warn(h)}};return a.onMounted(l),{defaultSteps:i,jumpTo:c}},render(){const e="bk-steps",n=this.theme?`${e}-${this.theme}`:"",i=this.size?`${e}-${this.size}`:"",s=Ne({[`${this.extCls}`]:!!this.extCls,[`bk-steps-${this.direction}`]:this.direction,[`bk-steps-${this.lineType}`]:this.lineType},`${n} ${e} ${i}`),l=C=>this.curStep>C+1||this.defaultSteps[C].status==="done",c=C=>this.curStep===C+1,f=C=>{const{icon:b}=C;return b?Object.prototype.toString.call(b)==="[object Object]":typeof C=="string"},h=(C,b)=>b.icon?b.icon:C+1,g=C=>C.status==="loading",m=C=>C.status==="error",M=(C,b)=>c(C)&&this.status==="loading"||g(b)?a.createVNode(os,{class:"bk-icon bk-steps-icon icon-loading"},null):c(C)&&this.status==="error"||m(b)?a.createVNode(jn,{class:"bk-steps-icon"},null):l(C)?a.createVNode(cs,{class:"bk-steps-icon"},null):a.createVNode("span",{class:"number"},[h(C,b)]);return a.createVNode("div",{class:s},[this.defaultSteps.map((C,b)=>{var N,k,S;return a.createVNode("div",{class:["bk-step",C.title?"":"bk-step-no-content",l(b)?"done":"",c(b)?"current":"",C.status&&c(b)?[`bk-step-${C.status}`]:""]},[a.createVNode("span",{class:["bk-step-indicator",`bk-step-${f(C)?"icon":"number"}`],style:{cursor:this.controllable?"pointer":""},onClick:()=>{this.jumpTo(b+1)}},[(S=(k=(N=this.$slots)[b+1])==null?void 0:k.call(N))!=null?S:M(b,C)]),C.title?a.createVNode("div",{class:"bk-step-content"},[a.createVNode("div",{class:"bk-step-title",style:{cursor:this.controllable?"pointer":""},onClick:()=>{this.jumpTo(b+1)}},[C.title]),C.description&&a.createVNode("div",{class:"bk-step-description",title:C.description},[C.description])]):""])})])}});const qc=Re(z6);var J6=a.defineComponent({name:"Switcher",props:{theme:d.theme().def(""),size:d.size(),disabled:d.bool,showText:d.bool,isOutline:d.bool,onText:d.string.def("ON"),offText:d.string.def("OFF"),isSquare:d.bool,extCls:d.string,preCheck:d.func.def(void 0),trueValue:d.oneOfType([d.string,d.number,d.bool]).def(!0),falseValue:d.oneOfType([d.string,d.number,d.bool]).def(!1),value:d.oneOfType([d.string,d.number,d.bool]).def(!1),modelValue:d.oneOfType([d.string,d.number,d.bool]).def(!1)},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=a.ref(!1),s=a.computed(()=>e.trueValue===c.value),l=a.ref(e.modelValue!==!1),c=a.computed(()=>l.value?e.modelValue:e.value),f=a.computed(()=>{const g={[e.extCls]:!!e.extCls,"bk-switcher":!0,"bk-switcher-outline":e.isOutline,"bk-switcher-square":e.isSquare,"show-label":e.showText,"is-disabled":e.disabled,"is-checked":s.value,"is-unchecked":!s.value,"is-loading":i.value,primary:e.theme==="primary"};if(e.size&&!e.showText){const m=`bk-switcher-${e.size}`;g[m]=!0}return e.size||(g["bk-switcher-nomal"]=!0),g});a.watch(()=>e.modelValue,()=>{l.value=!0}),a.watch(()=>e.value,()=>{l.value=!1});const h=g=>{if(g.stopPropagation(),g.preventDefault(),e.disabled||i.value)return;const m=s.value?e.falseValue:e.trueValue,M=!s.value,C=()=>{n("update:modelValue",m),n("change",M)};let b=!0;if(typeof e.preCheck=="function"&&(b=e.preCheck(m),typeof b.then=="function"))return i.value=!0,b.then(()=>{C()}).finally(()=>{i.value=!1});b&&C()};return()=>a.createVNode("div",{class:f.value,onClick:h,tabindex:"0",onKeydown:h},[i.value?a.createVNode(ys,{class:"bk-switcher-loading"},null):"",e.showText?a.createVNode("span",{class:"switcher-text"},[s.value?e.onText:e.offText]):""])}});const eu=Re(J6),Q6={onContentScroll:Function},P6=O({list:d.array.def([]),enabled:d.bool.def(!0),lineHeight:d.oneOfType([d.number,d.func]).def(30),minHeight:d.number.def(30),height:d.oneOfType([d.string.def("100%"),d.number]).def("100%"),width:d.oneOfType([d.string.def("100%"),d.number]).def("100%"),className:d.oneOfType([d.arrayOf(d.string),d.object,d.arrayOf(d.object),d.string]).def(""),contentClassName:d.oneOfType([d.arrayOf(d.string),d.object,d.arrayOf(d.object),d.string]).def(""),contentStyle:d.object.def({}),scrollXName:d.string.def("bk-scroll-x"),scrollYName:d.string.def("bk-scroll-y"),groupItemCount:d.number.def(1),preloadItemCount:d.number.def(1),renderAs:d.string.def("div"),contentAs:d.string.def("div"),scrollOffsetTop:d.number.def(0),scrollPosition:d.string.def("content"),abosuteHeight:d.oneOfType([d.string.def("auto"),d.number]).def("auto"),throttleDelay:d.number.def(60)},Q6);function tu(e,n,i,s){let l=0,c=0,f=0,h=0;for(;l<e;l++){if(h=s(l,[l*i,(l+1)*i]),c+h>n){f=n-c;break}c+=h}return{startIndex:l,height:c,diffHeight:f}}function nu(e,n,i,s,l){if(!s)return;const c=s.scrollTop,{scrollTop:f,count:h,groupItemCount:g,startIndex:m,endIndex:M}=i,{offsetHeight:C}=s;let b=0,N=0,k=0;if(typeof e=="number"&&(b=Math.floor(c/e),N=Math.ceil(C/e)+b,k=c%e),typeof e=="function"){const S=tu(h,c,g,e);b=S.startIndex>0?S.startIndex:0,k=S.diffHeight,N=tu(h,C,g,e).startIndex+b+1}(c!==f||b!==m||N!==M)&&typeof n=="function"&&n(l,b,N,c,k)}function O6(e,n,i){const{lineHeight:s=30,handleScrollCallback:l,pagination:c={}}=i.value,{startIndex:f,endIndex:h,groupItemCount:g,count:m,scrollTop:M}=c;nu(s,l,{scrollTop:M,startIndex:f,endIndex:h,groupItemCount:g,count:m},n,e)}const iu=(e=60)=>er.exports.throttle((n,i,s)=>O6(n,i,s),e);let Br=null;const ru=(e,n,i,s=60)=>{Br||(Br=iu(s)),typeof Br=="function"&&Br.call(globalThis,e,n,i)};var A6={mounted(e,n){const i=e.parentNode,{throttleDelay:s}=n.value;i.addEventListener("scroll",l=>{ru(l,i,n,s)})},updated(e,n){const i=e.parentNode,{throttleDelay:s}=n.value;ru(null,i,n,s)},unbind(e){if(e){const n=e.parentNode;if(!n)return;n.removeEventListener("scroll",iu)}}},E6=a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:A6},props:P6,emits:["content-scroll"],setup(e,n){const{renderAs:i,contentAs:s}=e,l=H=>typeof H=="string"?[H]:typeof H=="object"&&!Array.isArray(H)?[H]:H;if(!e.enabled)return()=>{var H,F,ne,G,le,_,q,Z,x;return a.h(i,{class:l(e.className)},[(ne=(F=(H=n.slots).beforeContent)==null?void 0:F.call(H))!=null?ne:"",a.h(s,{class:l(e.contentClassName),style:e.contentStyle},[(_=(le=(G=n.slots).default)==null?void 0:le.call(G,{data:e.list}))!=null?_:""]),(x=(Z=(q=n.slots).afterContent)==null?void 0:Z.call(q))!=null?x:""])};const c=a.ref(null),f=a.reactive({startIndex:0,endIndex:0,scrollTop:1,translateY:0,count:0,groupItemCount:e.groupItemCount}),h=(H,F,ne,G,le)=>{f.startIndex=F,f.endIndex=ne,f.scrollTop=G,f.translateY=le,n.emit("content-scroll",[H,f])};a.onMounted(()=>{a.nextTick(()=>{C(e.list),b()})}),a.watch(()=>e.list,()=>{g(),b()},{deep:!0}),a.watch(()=>e.lineHeight,()=>{g(),b()});const g=()=>{C(e.list)},m=a.ref(0),M=a.ref(0),C=H=>{if(m.value=Math.ceil((H||[]).length/e.groupItemCount),f.count=m.value,f.startIndex=0,f.endIndex=0,f.translateY=0,f.scrollTop=0,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){M.value=0;let ne=0;for(let G=0;G<m.value;G++){const le=e.lineHeight.call(this,G,H.slice(G*e.groupItemCount,e.groupItemCount));ne+=typeof le=="number"?le:0}M.value=ne}else M.value=e.lineHeight*m.value;else M.value=e.abosuteHeight},b=()=>{var F;const H=(F=c.value)==null?void 0:F.parentNode;nu(e.lineHeight,h,f,H,null)},N=a.computed(()=>(e.list||[]).map((H,F)=>ze(O({},H),{$index:F}))),k=a.computed(()=>N.value.slice(f.startIndex*e.groupItemCount,(f.endIndex+e.preloadItemCount)*e.groupItemCount)),S=a.computed(()=>e.scrollPosition==="content"?{top:`${f.scrollTop+e.scrollOffsetTop}px`,transform:`translateY(-${f.translateY}px)`}:{}),J=a.computed(()=>O({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block"},e.scrollPosition==="container"?S.value:{})),D=a.computed(()=>{const H=typeof e.abosuteHeight=="number"&&e.abosuteHeight===0;return{height:`${M.value<e.minHeight?e.minHeight:M.value}px`,display:H?"none":"block"}}),E=a.computed(()=>["bk-virtual-render",e.scrollXName,e.scrollYName,...l(e.className),e.scrollPosition==="container"?"bk-virtual-content":""]),z=a.computed(()=>[e.scrollPosition==="content"?"bk-virtual-content":"",...l(e.contentClassName)]),U=a.resolveDirective("bkVirtualRender"),Q={lineHeight:e.lineHeight,handleScrollCallback:h,pagination:f,throttleDelay:e.throttleDelay};return()=>{var H,F,ne,G,le,_,q,Z,x;return a.h(i||"div",{ref:c,class:E.value,style:J.value},[(ne=(F=(H=n.slots).beforeContent)==null?void 0:F.call(H))!=null?ne:"",a.withDirectives(a.h(s||"div",{class:z.value,style:O(O({},S.value),e.contentStyle)},[(_=(le=(G=n.slots).default)==null?void 0:le.call(G,{data:k.value}))!=null?_:""]),[[U,Q]]),(x=(Z=(q=n.slots).afterContent)==null?void 0:Z.call(q))!=null?x:"",a.h("div",{class:["bk-virtual-section"],style:D.value})])}}});const Hr=Re(E6),au=["none","row","col","outer"],tr=(e,n,i)=>{if(Object.prototype.hasOwnProperty.call(e,n))return typeof e[n]=="function"?e[n].call(globalThis,...i):e[n]},Hs=e=>/^\d+$/.test(`${e}`)?[parseInt(`${e}`,10)]:[],V6=e=>Fr(e,"auto"),Fr=(e,n="100%",i=null)=>{let s="";return/^auto|null|undefined$/ig.test(`${e}`)?s=n:s=/^\d+\.?\d+$/.test(`${e}`)?`${e}px`:e,i&&(s=`calc(${s} - ${i})`),s},W6=e=>{const n=["row"];return typeof e=="string"&&n.push(e),Array.isArray(e)&&n.push(...e.filter(i=>au.includes(i))),[...new Set(n)].map(i=>`bordered-${i}`).join(" ")},Z6=(e,n,i=20)=>{const{width:s}=e.getBoundingClientRect()||{};let l=s-4;const c=[],f=(h,g,m=!0)=>{Object.assign(h,{calcWidth:g}),m&&(l=l-g,l<0&&(l=0))};if(n.forEach((h,g)=>{const m=String(h.width);let M=!0;if(/^\d+\.?\d*(px)?$/.test(m)){const C=Number(m.replace("px",""));f(h,C),M=!1}if(/^\d+\.?\d*%$/.test(m)){let C=i;if(l>0){const b=Number(m.replace("%",""));C=l*b/100}f(h,C),M=!1}M&&c.push(g)}),c.length>0){let h=i;l>0&&(h=l/c.length,c.forEach(g=>f(n[g],h,!1)))}},R6=(e,n,i=60,s=!1)=>{const l=er.exports.throttle(()=>{typeof n=="function"&&n()},i),c=new ResizeObserver(()=>{l()});return s&&typeof n=="function"&&n(),{start:()=>{c.observe(e)},stop:()=>{c.disconnect(),c.unobserve(e)}}},G6=e=>/^\d+\.?\d*(px|%)?$/.test(`${e}`),su=e=>{const{showHead:n,headHeight:i,thead:s={}}=e;return Object.assign({},{isShow:n,height:i},O({},s))},Fs=(e,n,i)=>i.type==="index"?e.__$table_row_index:e[n],ou=e=>e.columnPick!=="disabled"?e.columnPick==="multi"?Array.isArray(e.activeColumn)?e.activeColumn:Hs(e.activeColumn):Array.isArray(e.activeColumn)?Hs(e.activeColumn[0]):Hs(e.activeColumn):[];var Y6=e=>{let n=a.reactive([]);if(e.columnPick==="disabled")return{activeColumns:n};const i=a.reactive(ou(e)),s=()=>(e.columns||[]).map((l,c)=>({index:c,active:i.some(f=>f===c),_column:l}));return a.watchEffect(()=>{n=s();const l=ou(e);n.forEach((c,f)=>{Object.assign(c,{active:l.some(h=>h===f)})})}),{activeColumns:n}};const lu=(e,n)=>{if(e){if(typeof e=="object"){let i=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(i)||(i=1),ze(O(O({},n),e),{current:i})}return n}return{}};var B6=e=>{const n=a.ref(0),i=a.ref(0),s=a.computed(()=>e.data.map((b,N)=>ze(O({},b),{__$table_row_index:N+1})));let l=a.reactive({count:0,limit:10,current:1});l=lu(e.pagination,l);const c=()=>{if(!e.pagination||e.remotePagination){n.value=0,i.value=e.data.length;return}n.value=(l.current-1)*l.limit,i.value=l.current*l.limit};c();const f=a.reactive([]),h=b=>{typeof b=="function"&&f.sort(b)},g=b=>{if(typeof b=="function"){const N=f.filter((k,S)=>b(k,S,e.data));f.splice(0,f.length,...N)}},m=(b,N)=>{f.splice(0,f.length,...s.value.slice(n.value,i.value)),g(b),h(N)},M=(b,N)=>{l=lu(e.pagination,l),c(),m(b,N)},C=a.computed(()=>e.pagination?e.remotePagination?l:ze(O({},l),{count:e.data.length}):null);return{pageData:f,localPagination:C,resolvePageData:m,watchEffectFn:M}},cu=(e=>(e.CURRENT="current",e.ALL="all",e))(cu||{});const H6={data:d.arrayOf(d.any).def([]),columns:d.arrayOf(d.shape({label:d.oneOfType([d.func.def(()=>""),d.string.def("")]),field:d.oneOfType([d.func.def(()=>""),d.string.def("")]),render:d.oneOfType([d.func.def(()=>""),d.string.def("")]),width:d.oneOfType([d.number.def(void 0),d.string.def("auto")]),type:d.commonType(["selection","index","expand","none"],"columnType").def("none"),sort:d.oneOfType([d.shape({sortFn:d.func.def(null),sortScope:d.commonType(Object.values(cu)).def("current")}),d.bool]).def(!1),filter:d.oneOfType([d.shape({list:d.arrayOf(d.any).def([]),filterFn:d.func.def(null)}),d.bool]).def(!1)})),activeColumn:d.oneOfType([d.number.def(-1),d.arrayOf(d.number.def(-1))]),columnPick:d.commonType(["multi","single","disabled"],"columnPick").def("disabled"),height:d.oneOfType([d.number,d.string]).def("auto"),minHeight:d.oneOfType([d.number,d.string]).def("auto"),rowHeight:d.oneOfType([d.number,d.func]).def(40),headHeight:d.number.def(40),showHead:d.bool.def(!0),thead:d.shape({height:d.number.def(40),isShow:d.bool.def(!0),cellFn:d.func.def(null)}),virtualEnabled:d.bool.def(!1),border:d.arrayOf(d.commonType(au,"border")).def(["row"]),pagination:d.oneOfType([d.bool.def(!1),d.object.def({})]).def(!1),remotePagination:d.bool.def(!1)};function F6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}var U6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(e.limit);a.watch(()=>e.limit,l=>{n.value=l}),a.watch(()=>e.limitList,l=>{a.nextTick(()=>{l.includes(n.value)||([n.value]=l)})},{immediate:!0});const i=l=>{n.value=l};return{limit:n,render:({isFirst:l,isLast:c})=>{let f;return e.showLimit?a.createVNode("div",a.mergeProps({class:{"bk-pagination-limit":!0,"is-first":l,"is-last":c}},{disabled:e.disabled}),[a.createVNode("div",null,[a.createTextVNode("\u6BCF\u9875")]),a.createVNode(Ys,{class:"bk-pagination-limit-select",clearable:!1,modelValue:n.value,onChange:i,disabled:e.disabled},F6(f=e.limitList.map((h,g)=>a.createVNode(Wr,{value:h,label:h,key:`${g}_${h}`},null)))?f:{default:()=>[f]}),a.createVNode("div",null,[a.createTextVNode("\u6761")])]):null}}};const $n=5;var _6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(1),i=a.computed(()=>n.value===1),s=a.computed(()=>n.value===e.totalPageNum),l=a.ref(!1),c=a.ref(!1),f=a.computed(()=>{l.value=!1,c.value=!1;const N=[];if(e.totalPageNum<=$n){for(let J=2;J<=e.totalPageNum-1;J++)N.push(J);return N}const k=Math.floor($n/2);e.totalPageNum>$n&&(l.value=n.value-k>2,c.value=n.value+k<e.totalPageNum-1);const S=Math.min(e.totalPageNum-$n,Math.max(2,n.value-k));for(let J=S;J<S+$n;J++)N.push(J);return N});a.watch(()=>e.modelValue,N=>{a.nextTick(()=>{N>=1&&N<=e.totalPageNum?n.value=N:N<1?n.value=1:n.value=e.totalPageNum})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,N=>{n.value>N&&(n.value=N)})});const h=()=>{i.value||(n.value=n.value-1)},g=()=>{s.value||(n.value=n.value+1)},m=N=>{N!==n.value&&(n.value=N)},M=()=>{n.value=Math.max(1,n.value-$n)},C=()=>{n.value=Math.min(e.totalPageNum,n.value+$n)};return{current:n,render:({isFirst:N,isLast:k})=>a.createVNode("div",{class:{"bk-pagination-list":!0,"is-first":N,"is-last":k}},[a.createVNode("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":i.value},onClick:h},[e.prevText||a.createVNode(yi,null,null)]),a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===1},key:"1",onClick:()=>m(1)},[a.createTextVNode("1")]),l.value&&a.createVNode("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:M},[a.createVNode(Jr,null,null)]),f.value.map(S=>a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===S},key:S,onClick:()=>m(S)},[S])),c.value&&a.createVNode("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:C},[a.createVNode(Jr,null,null)]),e.totalPageNum>1&&a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===e.totalPageNum},key:"last",onClick:()=>m(e.totalPageNum)},[e.totalPageNum]),a.createVNode("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":s.value},onClick:g},[e.nextText||a.createVNode(Un,null,null)])])}},X6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(null),i=a.ref(!1),s=a.ref(1),l=a.computed(()=>s.value===1),c=a.computed(()=>s.value===e.totalPageNum);let f=0;const h=a.computed(()=>{const D=[];for(let E=1;E<=e.totalPageNum;E++)D.push(E);return D});a.watch(()=>e.modelValue,D=>{a.nextTick(()=>{D>=1&&D<=e.totalPageNum?s.value=D:D<1?s.value=1:s.value=e.totalPageNum,f=s.value})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,D=>{s.value>D&&(s.value=D)})});const g=()=>{l.value||(s.value=s.value-1)},m=()=>{c.value||(s.value=s.value+1)},M=()=>{a.nextTick(()=>{n.value.focus();const D=window.getSelection();D.selectAllChildren(n.value),D.collapseToEnd()})},C=()=>{i.value=!0},b=()=>{i.value=!1,n.value.textContent=`${f}`,f!==s.value&&(s.value=f)},N=D=>{const E=D.target,z=Number(E.textContent);!z||z<1||z>e.totalPageNum||z===s.value||(f=z,M())},k=D=>{["Enter","NumpadEnter"].includes(D.code)&&(D.preventDefault(),b(),M())},S=D=>{f=D,b()};return{current:s,render:()=>a.createVNode("div",{class:"bk-pagination-small-list"},[a.createVNode("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":l.value},onClick:g},[a.createVNode(ps,null,null)]),a.createVNode(Ni,{theme:"light",trigger:"click",arrow:!1,boundary:"body",placement:"bottom"},{default:()=>a.createVNode("div",{class:{"bk-pagination-picker":!0,"is-focused":i.value}},[a.createVNode("span",{ref:n,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:C,onBlur:b,onInput:N,onKeydown:k},[s.value]),a.createVNode("span",null,[a.createTextVNode("/")]),a.createVNode("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])]),content:()=>a.createVNode("div",{class:"bk-pagination-picker-list"},[h.value.map(D=>a.createVNode("div",{class:{item:!0,"is-actived":D===s.value},key:D,onClick:()=>S(D)},[D]))])}),a.createVNode("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":c.value},onClick:m},[a.createVNode(Pr,null,null)])])}},K6=()=>({isFirst:e,isLast:n})=>{const{props:i}=a.getCurrentInstance();return i.showTotalCount?a.createVNode("div",a.mergeProps({class:{"bk-pagination-total":!0,"is-first":e,"is-last":n}},{disabled:i.disabled}),[a.createTextVNode("\u5171\u8BA1"),a.createVNode("div",{class:"bk-pagination-total-num"},[i.count]),a.createTextVNode("\u6761")]):null};const $6={modelValue:d.number.def(1),count:d.number.def(0).isRequired,limit:d.number.def(10),limitList:d.arrayOf(Number).def([10,20,50,100]),showLimit:d.bool.def(!0),type:d.oneOf(["default","compact"]).def("default"),location:d.oneOf(["left","right"]).def("right"),align:d.oneOf(["left","center","right"]).def("left"),size:d.size(),small:d.bool.def(!1),showTotalCount:d.bool.def(!0),prevText:d.string,nextText:d.string,disabled:d.bool.def(!1),layout:d.custom(e=>{const n={total:!0,list:!0,limit:!0};return e.some(i=>n[i])},"layout \u7684\u503C\u53EA\u652F\u6301 * total\u3001list\u3001limit *").def(["total","list","limit"])};var q6=a.defineComponent({name:"Pagination",props:$6,emits:["update:modelValue","change","update:limit","limitChange"],setup(e,n){const i=a.ref(0),{count:s,limit:l}=a.toRefs(e),c=K6(),{current:f,render:h}=_6(),{current:g,render:m}=X6(),{limit:M,render:C}=U6();return a.watch([s,M,l],([b,N])=>{const k=Math.ceil(b/N);i.value=k<1?1:k},{immediate:!0}),a.watch(f,b=>{n.emit("update:modelValue",b),n.emit("change",b)}),a.watch(g,b=>{n.emit("update:modelValue",b),n.emit("change",b)}),a.watch(M,b=>{n.emit("limitChange",b)}),{totalPageNum:i,renderTotal:c,renderList:h,renderLimit:C,renderSmallList:m}},render(){const e=Ne({"bk-pagination":!0,[`bk-pagination--${this.size}`]:!0,[`is-align-${this.align}`]:!0}),n={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return a.createVNode("div",{class:e},[this.layout.map((i,s)=>n[i]({isFirst:s===0,isLast:s===this.layout.length-1}))])}});const Us=Re(q6);function eg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}var tg=a.defineComponent({name:"HeadFilter",props:{column:d.any.def({}),height:d.number.def(40)},emits:["change"],setup(e,{emit:n}){const{column:i}=e,s=a.ref(!1),l=a.reactive({isOpen:!1,checked:[]}),c=a.computed(()=>Ne({[tt("table-head-action")]:!0,"column-filter":!0,"--row-height":`${e.height}px`,active:l.checked.length,opened:l.isOpen})),f=Ne({[tt("table-head-filter")]:!0}),h=k=>{l.isOpen=k},g=[{name:"offset",options:{offset:[0,0]}}],m=`light ${tt("table-head-filter")}`,M=a.computed(()=>{const{list:k=[]}=i.filter;return k.map(S=>ze(O({},S),{checked:l.checked.includes(S.value)}))}),C=typeof i.filter.filterFn=="function"?(k,S,J,D)=>i.filter.filterFn(k,S,e.column,J,D):(k,S)=>k.length?k.includes(Fs(S,tr(i,"field",[i,S]),i)):!0,b=()=>{n("change",[...l.checked],C),s.value=!1},N=()=>{l.checked.length&&(l.checked.splice(0,l.checked.length),s.value=!1,a.nextTick(()=>n("change",l.checked,C)))};return()=>a.createVNode(Ni,a.mergeProps({trigger:"click",isShow:s.value,placement:"bottom-end",stopBehaviors:["stopPropagation"],arrow:!1},{modifiers:g,theme:m},{boundary:document.body,onAfterShow:()=>h(!0),onAfterHidden:()=>h(!1)}),{default:()=>a.createVNode(rs,{class:c.value,onClick:()=>s.value=!0},null),content:()=>{let k;return a.createVNode("div",{class:f},[a.createVNode(Er,{class:"content-list",modelValue:l.checked,"onUpdate:modelValue":S=>l.checked=S},eg(k=M.value.map(S=>a.createVNode("div",{class:"list-item"},[a.createVNode(vs,{label:S.value},{default:()=>[S.text]})])))?k:{default:()=>[k]}),a.createVNode("div",{class:"content-footer"},[a.createVNode("span",{class:"btn-filter-save",onClick:b},[a.createTextVNode("\u786E\u5B9A")]),a.createVNode("span",{class:"btn-filter-split"},null),a.createVNode("span",{class:["btn-filter-reset",l.checked.length?"":"disable"],onClick:N},[a.createTextVNode("\u91CD\u7F6E")])])])}})}}),wi=(e=>(e.ASC="asc",e.DESC="desc",e))(wi||{}),ng=a.defineComponent({name:"HeadSort",props:{column:d.any.def({})},emits:["change"],setup(e,{emit:n}){const i=a.ref(""),s=(l,c)=>{var C,b;l.stopImmediatePropagation(),l.stopPropagation(),l.preventDefault(),i.value=c;const f=e.column.field,h=N=>Fs(N,f,e.column),g=(N,k)=>{const S=h(N),J=h(k);return typeof S=="number"&&typeof J=="number"?S-J:String.prototype.localeCompare.call(S,J)},m=typeof((C=e.column.sort)==null?void 0:C.sortFn)=="function"?(b=e.column.sort)==null?void 0:b.sortFn:g;n("change",(N,k)=>m(N,k)*(c===wi.DESC?-1:1),c)};return()=>a.createVNode("span",{class:tt("head-cell-sort")},[a.createVNode(is,{class:["sort-action","sort-asc",i.value===wi.ASC?"active":""],onClick:l=>s(l,wi.ASC)},null),a.createVNode(Dr,{class:["sort-action","sort-desc",i.value===wi.DESC?"active":""],onClick:l=>s(l,wi.DESC)},null)])}});class ig{constructor(n,i){Ga(this,"props",null);Ga(this,"ctx",null);this.props=n,this.ctx=i}}let Li;(function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick"})(Li||(Li={}));class rg{constructor(n,i,s,l){Ga(this,"getColumnClass",n=>`${this.uuid}-column-${n}`);this.props=n,this.context=i,this.reactiveProp=s,this.colgroups=l,this.plugins=new ig(n,i),this.uuid=vr(8),this.events=new Map}get propActiveCols(){return this.reactiveProp.activeColumns}renderTableHeadSchema(){const{isShow:n=!0}=su(this.props);return n?a.createVNode("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()]):null}renderTableBodySchema(n){return a.createVNode("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderTBody(n)])}renderTableFooter(n){return a.createVNode(Us,a.mergeProps(n,{modelValue:n.current,onLimitChange:i=>this.handlePageLimitChange(i),onChange:i=>this.hanlePageChange(i)}),null)}on(n,i){return this.events.has(n)||this.events.set(n,[]),this.events.get(n).push(i),this}destroy(){this.events.clear(),this.events=null}emitEvent(n,i){this.events.has(n)&&this.events.get(n).forEach(s=>{typeof s=="function"&&Reflect.apply(s,this,i)})}handlePageLimitChange(n){Object.assign(this.props.pagination,{limit:n}),this.context.emit("pageLimitChange",n)}hanlePageChange(n){Object.assign(this.props.pagination,{current:n,value:n}),this.context.emit("pageValueChange",n)}setColumnActive(n,i=!1){const s=this.propActiveCols.find(l=>l.index===n);Object.assign(s,{active:!s.active}),i&&this.propActiveCols.filter(l=>l.index!==n&&l.active).forEach(l=>{Object.assign(l,{active:!1})})}handleColumnHeadClick(n){this.props.columnPick!=="disabled"&&(this.setColumnActive(n,this.props.columnPick==="single"),this.context.emit("column-pick",this.propActiveCols))}getSortCell(n,i){const s=(l,c)=>{this.emitEvent(Li.ON_SORT_BY_CLICK,[{sortFn:l,column:n,index:i,type:c}])};return a.createVNode(ng,{column:n,onChange:s},null)}getFilterCell(n,i){const s=(l,c)=>{const f=(h,g)=>c(l,h,g);this.emitEvent(Li.ON_FILTER_CLICK,[{filterFn:f,checked:l,column:n,index:i}])};return a.createVNode(tg,{column:n,height:this.props.headHeight,onChange:s},null)}renderHeader(){const n=su(this.props),{cellFn:i}=n,s={"--row-height":`${tr(n,"height",["thead"])}px`},l=(c,f)=>{const h=[];return c.sort&&h.push(this.getSortCell(c,f)),c.filter&&h.push(this.getFilterCell(c,f)),typeof i=="function"?(h.unshift(i(c,f)),h):(h.unshift(tr(c,"label",[c,f])),h)};return a.createVNode("thead",{style:s},[a.createVNode("tr",null,[this.props.columns.map((c,f)=>a.createVNode("th",{colspan:1,rowspan:1,class:Ne({active:this.isColActive(f)}),onClick:()=>this.handleColumnHeadClick(f)},[a.createVNode("div",{class:"cell"},[l(c,f)])]))])])}renderTBody(n){return a.createVNode("tbody",null,[n.map((i,s)=>{const l={"--row-height":`${tr(this.props,"rowHeight",["tbody",i,s])}px`};return a.createVNode("tr",{style:l,onClick:c=>this.handleRowClick(c,i,s,n),onDblclick:c=>this.handleRowDblClick(c,i,s,n)},[this.props.columns.map((c,f)=>a.createVNode("td",{class:this.getColumnClass(f),colspan:1,rowspan:1},[a.createVNode("div",{class:"cell"},[this.renderCell(i,c,s,n)])]))])})])}handleRowClick(n,i,s,l){this.context.emit("rowClick",n,i,s,l,this)}handleRowDblClick(n,i,s,l){this.context.emit("rowDblClick",n,i,s,l,this)}renderCell(n,i,s,l){const c=Fs(n,tr(i,"field",[i,n]),i);return typeof i.render=="function"?i.render(c,n,s,l):c}isColActive(n){return this.props.columnPick!=="disabled"&&this.propActiveCols.some(i=>i.index===n&&i.active)}renderColGroup(){return a.createVNode("colgroup",null,[(this.colgroups||[]).map((n,i)=>{const s=Ne({active:this.isColActive(i)}),l=`${V6(n.calcWidth)}`.replace(/px$/i,"");return a.createVNode("col",{class:s,width:l},null)})])}}const ag=(e,n)=>{const i=a.ref("auto"),s=a.computed(()=>Ne({[tt("table")]:!0},W6(e.border))),l=Ne({[tt("table-head")]:!0}),c=Ne({[tt("table-body")]:!0}),f=Ne({[tt("table-footer")]:!0,["is-hidden"]:!e.pagination}),h=a.computed(()=>({minHeight:Fr(e.minHeight,"auto")})),g=a.computed(()=>{const M=!G6(e.height),C=Fr(e.height),b=e.showHead?Fr(e.headHeight):"0",N=e.pagination?40:0,k=`calc(${C} - ${b} - ${N}px - 2px)`;return O({display:"block"},M?{maxHeight:k}:{height:k})});a.onMounted(()=>{m(n==null?void 0:n.value)});const m=M=>{if(M){const{height:C}=n.value.parentElement.getBoundingClientRect();i.value=`${C}px`}};return{tableClass:s,headClass:l,contentClass:c,footerClass:f,wrapperStyle:h,contentStyle:g,resetTableHeight:m}};var sg=a.defineComponent({name:"Table",props:H6,emits:["columnPick","rowClick","rowDblClick","pageLimitChange","pageValueChange"],setup(e,n){const i=a.reactive(e.columns.map(Q=>ze(O({},Q),{calcWidth:null})));let s=null,l=null,c=null;const f=a.ref(),{activeColumns:h}=Y6(e),{pageData:g,localPagination:m,resolvePageData:M,watchEffectFn:C}=B6(e),{tableClass:b,headClass:N,contentClass:k,footerClass:S,wrapperStyle:J,contentStyle:D}=ag(e),E=a.reactive({scrollTranslateY:0,activeColumns:h}),z=new rg(e,n,E,i);a.watchEffect(()=>{C(l,s)}),z.on(Li.ON_SORT_BY_CLICK,Q=>{const{sortFn:H}=Q;s=H,g.sort(s)}).on(Li.ON_FILTER_CLICK,Q=>{const{filterFn:H}=Q;l=H,M(l,s)});const U=Q=>{const H=Q[1];E.scrollTranslateY=H.translateY};return a.onMounted(()=>{c=R6(f.value,()=>{Z6(f.value,i,20)},60,!0),c.start()}),a.onBeforeUnmount(()=>{c.stop(),c=null,z.destroy()}),n.expose({plugins:z.plugins}),()=>a.createVNode("div",{class:b.value,style:J.value,ref:f},[a.createVNode("div",{class:N},[z.renderTableHeadSchema()]),a.createVNode(Hr,{lineHeight:e.rowHeight,class:k,style:D.value,list:g,onContentScroll:U,throttleDelay:0,enabled:e.virtualEnabled},{default:Q=>z.renderTableBodySchema(Q.data||e.data),afterContent:()=>a.createVNode("div",{class:tt("table-fixed")},null)}),a.createVNode("div",{class:S},[e.pagination&&z.renderTableFooter(m.value)])])}});const uu=Re(sg),ki=12;function og(e,n=200){let i,s=e;return a.customRef((l,c)=>({get(){return l(),s},set(f){clearTimeout(i),i=setTimeout(()=>{s=f,c()},n)}}))}function lg(e){const n=a.reactive({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:n,initPage:(l=[])=>{n.curPage=1,n.totalSize=l.length,n.totalPage=Math.ceil(n.totalSize/n.pageSize)||1;const c=[];if(n.pageSize>0)for(let f=0;f<n.totalSize;f+=n.pageSize)c.push(l.slice(f,f+n.pageSize));n.renderListPaged.splice(0,n.renderListPaged.length,...c),n.curPageList.splice(0,n.curPageList.length,...n.renderListPaged[n.curPage-1]||[])},pageChange:l=>{n.curPage=l,n.curPageList.splice(n.curPageList.length,0,...n.renderListPaged[n.curPage-1]||[]),n.isPageLoading=!1}}}function cg(e){const{useGroup:n,saveKey:i,displayKey:s,list:l}=a.toRefs(e),c=a.reactive([]);return a.watch([n,i,s,l],()=>{let f=l.value;n.value&&(f=l.value.reduce((h,g)=>{let m=[];return g.children&&(m=g.children.map(M=>O({group:{groupId:g[i.value],groupName:g[s.value]}},M))),h.concat(m)},[])),c.splice(0,c.length,...f)},{immediate:!0,deep:!0}),c}const du=e=>{const n=e.length;let i=0;for(let s=0;s<n;s++)(e.charCodeAt(s)&65280)!==0&&(i+=1),i+=1;return i};var fu=a.defineComponent({name:"ListTagRender",props:{node:d.object,searchKey:d.oneOfType([d.string,d.arrayOf(d.string)]),displayKey:d.string,searchKeyword:d.string,tpl:{type:Function,default:null}},render(){const e=i=>{if(this.searchKeyword){const s=new RegExp(`(${this.searchKeyword})`,"i");return i.replace(s,'<strong class="highlight-text">$1</strong>')}return i};if(this.tpl)return this.tpl(this.node,e,a.h,this);const n=this.node[this.displayKey];return a.createVNode("div",{class:"bk-selector-node"},[a.createVNode("span",{class:"text",innerHTML:e(n)},[n])])}});const ug=()=>({modelValue:d.arrayOf(d.string).def([]),placeholder:d.string.def("\u8BF7\u8F93\u5165\u5E76\u6309 Enter \u7ED3\u675F"),list:d.arrayOf(d.object).def([]),disabled:d.bool.def(!1),tooltipKey:d.string.def(""),saveKey:d.string.def("id"),displayKey:d.string.def("name"),hasDeleteIcon:d.bool.def(!1),clearable:d.bool.def(!0),trigger:d.commonType(["focus","search"]).def("search"),searchKey:d.oneOfType([d.string,d.arrayOf(d.string)]).def("name"),useGroup:d.bool.def(!1),allowCreate:d.bool.def(!1),maxData:d.number.def(-1),maxResult:d.number.def(10),contentMaxHeight:d.number.def(300),contentWidth:d.number.def(190),separator:d.string.def(""),allowNextFocus:d.bool.def(!0),allowAutoMatch:d.bool.def(!1),showClearOnlyHover:d.bool.def(!1),leftSpace:d.number.def(0),createTagValidator:{type:Function,default:null},filterCallback:{type:Function,default:null},tagTpl:{type:Function,default:null},tpl:{type:Function,default:null},pasteFn:{type:Function,default:null}});var dg=a.defineComponent({name:"TagRender",props:{node:d.object,displayKey:d.string,tpl:{type:Function,default:null}},render(){return this.tpl?this.tpl(this.node,a.h,this):a.createVNode("div",{class:"tag"},[a.createVNode("span",{class:"text"},[this.node[this.displayKey]])])}}),nr=a.defineComponent({name:"BkTagInput",directives:{bkTooltips:Kc},props:ug(),emits:["update:modelValue","change","select","blur","remove","removeAll"],setup(e,{emit:n}){const i=a.reactive({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),s=a.reactive({isShow:!1,width:190,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),{maxResult:l}=a.toRefs(e),{pageState:c,initPage:f,pageChange:h}=lg(l),g=og("",150),m=a.ref(null),M=a.ref(null),C=a.ref(null),b=a.ref(null),N=a.ref(null),k=a.ref(null),S=a.ref(null),J=a.computed(()=>!e.disabled&&e.hasDeleteIcon),D=a.computed(()=>e.maxData===1),E=a.computed(()=>G.selectedTagList.length===0&&g.value===""&&!i.isEdit),z=a.computed(()=>e.clearable&&!e.disabled&&G.selectedTagList.length!==0&&(e.showClearOnlyHover?i.isHover:!0)),U=a.computed(()=>({"bk-tag-input-trigger":!0,active:i.isEdit,disabled:e.disabled}));a.watch([()=>[...e.modelValue],()=>[...e.list]],()=>{Z()}),a.watch(g,W=>{const X=c.curPageList.length!==0;W!==""&&X||W===""&&e.trigger==="focus"?s.isShow=!0:(e.trigger!=="focus"||!X)&&(s.isShow=!1)}),a.watch(()=>s.isShow,W=>{Q(),W&&N.value&&(a.nextTick(()=>{N.value.scrollTop=0}),N.value.removeEventListener("scroll",H),N.value.addEventListener("scroll",H))});const Q=()=>{var X,ae;const W=D.value?0:(X=b.value)==null?void 0:X.offsetLeft;s.modifiers=[{name:"offset",options:{offset:[W,4]}}],(ae=k.value)==null||ae.update()},H=()=>{if(c.isPageLoading||N.value.scrollTop===0)return;const{scrollTop:W,offsetHeight:X,scrollHeight:ae}=N.value;if(W+X>=ae){const Me=c.curPage+1;Me<=c.totalPage&&(c.isPageLoading=!0,setTimeout(()=>{h(Me)},500))}},F=()=>{var X;return Array.from(((X=C.value)==null?void 0:X.childNodes)||[]).filter(ae=>ae.nodeType!==Node.TEXT_NODE)},ne=W=>{if(!e.disabled){if(W!=null&&W.target){const{className:X}=W.target;(X.indexOf("bk-tag-input-trigger")>-1||X.indexOf("tag-list")>-1)&&C.value.appendChild(b.value)}clearTimeout(S.value),D.value&&le.value.length&&(G.tagListCache=[...le.value],G.selectedTagListCache=[...G.selectedTagList],g.value=G.selectedTagListCache[0][e.saveKey],Ee(G.selectedTagList[0],0),de()),i.isEdit=!0,a.nextTick(()=>{var X;(X=m.value)==null||X.focus(),e.trigger==="focus"&&G.localList.length!==0&&(x(),s.isShow?Q():s.isShow=!0)})}},G=a.reactive({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),le=a.computed(()=>G.selectedTagList.map(W=>W[e.saveKey])),_=cg(e),q=a.computed(()=>{if(e.useGroup){const W={};return c.curPageList.forEach((X,ae)=>{X.__index__=ae,W[X.group.groupId]||(W[X.group.groupId]={id:X.group.groupId,name:X.group.groupName,children:[]}),W[X.group.groupId].children.push(X)}),Object.keys(W).map(X=>W[X])}return c.curPageList}),Z=()=>{const{saveKey:W,modelValue:X,displayKey:ae,allowCreate:Me,trigger:Le}=e;G.selectedTagList=[],G.localList=[..._],X.length&&(X.forEach(ve=>{const ie=G.localList.find(Qe=>ve===Qe[W]);ie!==void 0?G.selectedTagList.push(ie):Me&&!le.value.includes(ve)&&G.selectedTagList.push({[W]:ve,[ae]:ve})}),D.value||(G.localList=G.localList.filter(ve=>!X.includes(ve[W])))),Le==="focus"&&x()},x=(W="")=>{const{searchKey:X,filterCallback:ae}=e,Me=W.toLowerCase();let Le=[];if(typeof ae=="function")Le=ae(Me,X,G.localList)||[];else if(Array.isArray(X)){const ve=X.map(ie=>G.localList.filter(Qe=>Qe[ie].toLowerCase().indexOf(Me)!==-1));Le=Array.from(new Set(ve.flat()))}else Le=G.localList.filter(ve=>ve[X].toLowerCase().indexOf(Me)!==-1);f(Le)},R=(W,X)=>{const ae={"bk-selector-actived":!1,"bk-selector-selected":le.value.includes(W[e.saveKey])};return e.useGroup?ae["bk-selector-actived"]=W.__index__===i.focusItemIndex:ae["bk-selector-actived"]=X===i.focusItemIndex,ae};a.onMounted(()=>{Z()});const te=()=>{G.tagListCache=[],G.selectedTagListCache=[],G.selectedTagList=[]},se=()=>{g.value=""},$=()=>{if(D.value)return 0;const X=F().findIndex(({id:ae})=>ae==="tagInputItem");return X>=0?X:0},ce=(W,X,ae=!1)=>{if(!X||!W)return;let Me=X;ae&&(Me=X.nextElementSibling||null),X.parentNode.insertBefore(W,Me)},de=W=>{const{maxData:X,trigger:ae,allowCreate:Me}=e;if(X===-1||X>le.value.length){const{value:Le}=W!=null&&W.target?W.target:g,ve=du(Le);ve?(x(Le),m.value.style.width=`${ve*ki}px`):ae==="focus"&&x()}else De(),g.value="",s.isShow=!1;i.isEdit=!0,i.focusItemIndex=Me?-1:0},me=()=>{var W;s.width=D.value?(W=M.value)==null?void 0:W.clientWidth:e.contentWidth},De=()=>{S.value=setTimeout(()=>{const W=g.value;if(se(),i.isEdit=!1,D.value){const[X]=G.tagListCache;W&&W===X&&G.selectedTagListCache.length?Tt(G.selectedTagListCache[0],"select"):K("remove")}else if(e.allowAutoMatch&&W){const X=c.curPageList.find(ae=>Array.isArray(e.searchKey)?e.searchKey.map(Le=>ae[Le]).includes(W):ae[e.searchKey]===W);X?xe(X,"select"):e.allowCreate&&xe(W,"custom")}s.isShow=!1,n("blur",W,le.value)},50)},xe=(W,X,ae)=>{ae==null||ae.stopPropagation(),!(!W||W.disabled)&&(D.value&&te(),Tt(W,X),K("select"),se(),s.isShow=!1)},Y=(W,X,ae)=>{ae==null||ae.stopPropagation(),Ee(W,X),se(),K("remove"),m.value.style.width=`${ki}px`},K=W=>{n("change",le.value),n(W),n("update:modelValue",le.value)},he=W=>{W.stopPropagation();const X=G.selectedTagList;G.selectedTagList=[];const ae=_.filter(Me=>X.some(Le=>Le[e.saveKey]===Me[e.saveKey]));(e.allowCreate&&ae.length!==0||!e.allowCreate)&&!D.value&&G.localList.push(...ae),K("removeAll")},nt=()=>{const W={height:N.value.clientHeight,yAxis:N.value.getBoundingClientRect().y};a.nextTick(()=>{const X=N.value.querySelector(".bk-selector-actived");if(!X)return;const ae={height:X.clientHeight,yAxis:X.getBoundingClientRect().y};ae.yAxis<W.yAxis&&(N.value.scrollTop=N.value.scrollTop-(W.yAxis-ae.yAxis));const Me=ae.yAxis+ae.height-W.yAxis;Me>W.height&&(N.value.scrollTop=N.value.scrollTop+Me-W.height)})},Je=(W,X)=>{const ae=F();ce(b.value,ae[W-1]),G.selectedTagList.splice(W-1,1),ne();const Me=_.some(Le=>Le===X[e.saveKey]);(e.allowCreate&&Me||!e.allowCreate)&&!D.value&&G.localList.push(X),m.value=`${ki}px`,K("remove")},$e=W=>{if(c.isPageLoading)return;let X;const ae=W.target.value,Me=du(ae),Le=$(),ve=F();switch(W.code){case"ArrowUp":if(W.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex-1,i.focusItemIndex=i.focusItemIndex<0?-1:i.focusItemIndex,i.focusItemIndex===-1&&(i.focusItemIndex=c.curPageList.length-1),nt();break;case"ArrowDown":if(W.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex+1,i.focusItemIndex=i.focusItemIndex>c.curPageList.length-1?c.curPageList.length:i.focusItemIndex,i.focusItemIndex===c.curPageList.length&&(i.focusItemIndex=0),nt();break;case"ArrowLeft":if(i.isEdit=!0,!Me){if(Le<1)return;ce(b.value,ve[Le-1]),ne()}break;case"ArrowRight":if(i.isEdit=!0,!Me){if(Le===ve.length-1)return;ce(ve[Le+1],b.value),ne()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&s.isShow||e.allowCreate&&i.focusItemIndex>=0&&s.isShow?xe(c.curPageList[i.focusItemIndex],"select",W):e.allowCreate&&xe(g.value,"custom",W),W.preventDefault();break;case"Backspace":Le!==0&&!g.value&&(X=G.selectedTagList[Le-1],Je(Le,X));break}},dt=W=>{const X=[];return W.split(";").forEach(Me=>{if(Me.match(/^[a-zA-Z][a-zA-Z_]+/g)){const Le=Me.match(/^[a-zA-Z][a-zA-Z_]+/g).join("");X.push({[e.saveKey]:Le,[e.displayKey]:Le})}}),X},st=W=>{if(W.preventDefault(),D.value)return!1;const{maxData:X,saveKey:ae,pasteFn:Me}=e,Le=W.clipboardData.getData("text");let ie=(Me?Me(Le):dt(Le)).map(Qe=>Qe[ae]);if(ie.length){const Qe=F(),it=$(),_e=G.localList.map(Xe=>Xe[ae]);if(ie=ie.filter(Xe=>(Xe==null?void 0:Xe.trim())&&!le.value.includes(Xe)&&_e.includes(Xe)),X!==-1){const Xe=G.selectedTagList.length;if(Xe<X){const Ve=X-Xe;ie.length>Ve&&(ie=[...ie.slice(0,Ve)])}else ie=[]}const zt=G.localList.filter(Xe=>ie.includes(Xe[ae]));ie.length&&(G.selectedTagList.splice(it,0,...zt),ce(b.value,Qe[it]),m.value.style.width=`${ki}px`,G.localList=G.localList.filter(Xe=>!ie.includes(Xe[ae])),K("select"),ne())}},ft=W=>{e.disabled||(ce(b.value,W.currentTarget,!0),m.value.style.width=`${ki}px`,s.isShow&&Q())},Tt=(W,X)=>{if(G.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:ae,saveKey:Me,displayKey:Le,createTagValidator:ve}=e,ie=$();let Qe=1,it=!1,_e;const zt=Ve=>typeof ve=="function"?ve(Ve):!0,Xe=Ve=>G.localList.find(ht=>ht[Me]===Ve);if(X==="custom")if(ae){let Ve=W.split(ae);Ve=Ve.filter(Ct=>(Ct==null?void 0:Ct.trim())&&!le.value.includes(Ct)&&zt(Ct));const ht=Ve.map(Ct=>Xe(Ct)||{[Me]:Ct,[Le]:Ct});Ve.length&&(G.selectedTagList.splice(ie,0,...ht),Qe=ht.length,it=!0)}else{const Ve=typeof W=="object";if(_e=Ve?W[Me]:W.trim(),_e=_e.replace(/\s+/g,""),_e!==void 0&&!le.value.includes(_e)&&zt(_e)){const ht=Xe(_e)||(Ve?W:{[Me]:_e,[Le]:_e});G.selectedTagList.splice(ie,0,ht),it=!0}}else W&&(_e=W[Me],_e!==void 0&&!le.value.includes(_e)&&(G.selectedTagList.splice(ie,0,W),it=!0));it&&a.nextTick(()=>{for(let Ve=1;Ve<=Qe;Ve++){const Ct=F()[ie+Ve];ce(Ct,b.value)}m.value.style.width=`${ki}px`,D.value||(e.allowNextFocus&&ne(),G.localList=G.localList.filter(Ve=>!le.value.includes(Ve[Me])))})},Ee=(W,X)=>{G.selectedTagList.splice(X,1);const ae=_.some(Me=>Me===W[e.saveKey]);(e.allowCreate&&ae||!e.allowCreate)&&!D.value&&G.localList.push(W)};return ze(O(O(O({popoverProps:s},a.toRefs(i)),a.toRefs(G)),a.toRefs(c)),{isShowPlaceholder:E,isShowClear:z,curInputValue:g,formatList:_,renderList:q,showTagClose:J,tagInputRef:m,bkTagSelectorRef:M,tagListRef:C,tagInputItemRef:b,selectorListRef:N,popoverRef:k,triggerClass:U,focusInputTrigger:ne,activeClass:R,handleInput:de,handleFocus:me,handleBlur:De,handleTagSelected:xe,handleTagRemove:Y,handleClear:he,tagFocus:ft,handleKeydown:$e,handlePaste:st})},render(){const e=()=>this.useGroup?this.renderList.map(n=>a.createVNode("li",{class:"bk-selector-group-item"},[a.createVNode("span",{class:"group-name"},[n.name,a.createTextVNode(" ("),n.children.length,a.createTextVNode(")")]),a.createVNode("ul",{class:"bk-selector-group-list-item"},[n.children.map((i,s)=>a.createVNode("li",{class:["bk-selector-list-item",{disabled:i.disabled},this.activeClass(i,s)],onClick:this.handleTagSelected.bind(this,i,"select")},[a.createVNode(fu,{node:i,displayKey:this.displayKey,tpl:this.tpl,searchKey:this.searchKey,searchKeyword:this.curInputValue},null)]))])])):this.renderList.map((n,i)=>a.createVNode("li",{class:["bk-selector-list-item",{disabled:n.disabled},this.activeClass(n,i)],onClick:this.handleTagSelected.bind(this,n,"select")},[a.createVNode(fu,{node:n,displayKey:this.displayKey,tpl:this.tpl,searchKey:this.searchKey,searchKeyword:this.curInputValue},null)]));return a.createVNode("div",{class:"bk-tag-input",ref:"bkTagSelectorRef",onClick:this.focusInputTrigger,onMouseenter:()=>this.isHover=!0,onMouseleave:()=>this.isHover=!1},[a.createVNode(Ni,{ref:"popoverRef",theme:"light",trigger:"manual",placement:"bottom-start",arrow:!1,width:this.popoverProps.width,isShow:this.popoverProps.isShow,modifiers:this.popoverProps.modifiers},{default:()=>a.createVNode("div",{class:this.triggerClass},[a.createVNode("ul",{class:"tag-list",ref:"tagListRef",style:{marginLeft:`${this.leftSpace}px`}},[this.selectedTagList.map((n,i)=>{const s={boundary:"window",theme:"light",distance:12,content:n[this.tooltipKey],disabled:!this.tooltipKey};return a.withDirectives(a.createVNode("li",{class:"tag-item",onClick:this.tagFocus},[a.createVNode(dg,{node:n,tpl:this.tagTpl,displayKey:this.displayKey},null),this.showTagClose?a.createVNode(jn,{class:"remove-tag",onClick:this.handleTagRemove.bind(this,n,i)},null):null]),[[a.resolveDirective("bk-tooltips"),s]])}),a.withDirectives(a.createVNode("li",{ref:"tagInputItemRef",id:"tagInputItem",class:"tag-input-item",role:"input"},[a.withDirectives(a.createVNode("input",{type:"text",class:"tag-input",ref:"tagInputRef","onUpdate:modelValue":n=>this.curInputValue=n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeydown,onPaste:this.handlePaste},null),[[a.vModelText,this.curInputValue]])]),[[a.vShow,this.isEdit]])]),a.withDirectives(a.createVNode("p",{class:"placeholder"},[this.placeholder]),[[a.vShow,this.isShowPlaceholder]]),this.isShowClear?a.createVNode(Dn,{class:"clear-icon",onClick:this.handleClear},null):null]),content:()=>a.createVNode("div",{class:"bk-selector-list"},[a.createVNode("ul",{ref:"selectorListRef",style:{"max-height":`${this.contentMaxHeight}px`},class:"outside-ul"},[e(),this.isPageLoading?a.createVNode("li",{class:"bk-selector-list-item loading"},[a.createVNode(_n,{theme:"primary",size:In.Small},null)]):null])])})])}});nr.install=e=>{e.component(nr.name,nr)};const fg={direction:d.commonType(["horizontal","vertical"],"direction").def("horizontal"),align:d.commonType(["left","center","right"],"align").def("center"),color:d.string.def("#dde4eb"),width:d.number.def(1),type:d.commonType(["dashed","solid"],"lineType").def("dashed")};var hg=a.defineComponent({name:"Divider",props:fg,render(){const e=()=>this.direction==="vertical"?{borderRight:`${this.width}px ${this.type} ${this.color}`}:{borderBottom:`${this.width}px ${this.type} ${this.color}`};let n;return this.$slots.default&&(n=a.createVNode("div",{class:["bk-divider-info",`bk-divider-info-${this.align}`]},[this.$slots.default()])),a.createVNode("div",{class:["bk-divider",`bk-divider-${this.direction}`],style:e()},[n])}});const hu=Re(hg),gg={tabAdd:{type:Function,default:()=>({})},tabChange:{type:Function,default:e=>e},tabRemove:{type:Function,default:e=>e},tabSort:{type:Function,default:()=>({})},tabDrag:{type:Function,default:()=>({})}},pg={active:d.oneOfType([d.number,d.string]).def(""),type:d.commonType(["card","border-card","unborder-card"],"type").def("border-card"),tabPosition:d.commonType(["left","right","top"],"position").def("top"),closable:Boolean,addable:Boolean,sortable:Boolean,sortType:d.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:d.number.def(50),scrollStep:d.number.def(200),extCls:d.string.def(""),validateActive:d.bool.def(!0),showHeader:d.bool.def(!0),changeOnHover:d.bool.def(!1),changeOnHoverDelay:d.number.def(1e3)},mg=O({active:d.oneOfType([d.number,d.string]).def(""),panels:{type:Array,default:()=>[]},closable:Boolean,addable:Boolean,sortable:Boolean,sortType:d.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:d.number.def(50),scrollStep:d.number.def(200),validateActive:d.bool.def(!0),changeOnHover:d.bool.def(!1),changeOnHoverDelay:d.number.def(1e3)},gg),Mg={name:d.oneOfType([d.number,d.string]).def(""),label:d.string||d.func,closable:d.bool,visible:d.bool.def(!0),disabled:d.bool,sortable:d.bool,renderDirective:d.commonType(["if","show"],"render").def("show"),panel:d.string||d.func};var gu=a.defineComponent({name:"TabNav",props:mg,setup(e){const n=a.computed(()=>{if(!Array.isArray(e.panels)||!e.panels.length)return[];const c=[];let f=!1;return e.panels.filter((h,g)=>{if(!h.props)return null;const{name:m,label:M,closable:C,visible:b,disabled:N,sortable:k}=h.props;if(!b)return!1;e.active===m&&(f=!0);const S=J=>h.slots.label?a.h(h.slots.label):[void 0,""].includes(J)?`\u9009\u9879\u5361${g+1}`:typeof J=="string"?J:typeof J=="function"?a.h(J):J;return c.push({name:m,closable:C,visible:b,disabled:N,sortable:k,tabLabel:S(M)}),!0}),!f&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),c}),i=a.ref(-1),s=a.ref(-1),l=a.ref("");return{navs:n,dragenterIndex:i,dragStartIndex:s,draggingEle:l,guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4)}},methods:{distinctRoots(e,n){return e===n},handleTabAdd(e){this.tabAdd(e)},dragstart(e,n){this.dragStartIndex=e,this.draggingEle=this.guid,Object.assign(n.dataTransfer,{effectAllowed:"move"}),this.tabDrag(e,n)},dragenter(e){this.distinctRoots(this.draggingEle,this.guid)&&(this.dragenterIndex=e)},dragend(){this.dragenterIndex=-1,this.dragStartIndex=-1,this.draggingEle=null},drop(e,n){if(!this.distinctRoots(this.draggingEle,this.guid))return!1;this.tabSort(this.dragStartIndex,e,n)},handleTabChange(e){this.tabChange(e)},handleTabRemove(e,n){this.tabRemove(e,n)}},render(){const{active:e,closable:n,addable:i,sortable:s,sortType:l,labelHeight:c,dragstart:f,dragenter:h,dragend:g,drop:m}=this,M=()=>this.navs.map((b,N)=>{if(!b)return null;const{name:k,disabled:S,tabLabel:J}=b,D=()=>{const z=["bk-tab-header-item"];return S&&z.push("bk-tab-header--disabled"),e===k&&z.push("bk-tab-header--active"),z.join(" ")},E=(z,U)=>z||U;return a.createVNode("div",{key:k,onClick:()=>this.handleTabChange(k),draggable:E(b.sortable,s),onDragstart:z=>f(N,z),onDragenter:z=>{z.preventDefault(),h(N)},onDragleave:z=>{z.preventDefault()},onDragover:z=>{z.preventDefault()},onDragend:z=>{z.preventDefault(),g()},onDrop:z=>{z.preventDefault(),m(N,l)},class:D()},[a.createVNode("div",null,[J]),E(b.closable,n)&&a.createVNode(Dn,{class:"bk-tab-header-item-close",onClick:()=>this.handleTabRemove(N,b)},null)])}),C=()=>{var N,k,S,J;const b=[];return typeof this.$slots.add=="function"?b.push((k=(N=this.$slots).add)==null?void 0:k.call(N,a.h)):i&&b.push(a.createVNode("div",{onClick:this.handleTabAdd},[a.createVNode(ms,{width:26,height:26},null)])),typeof this.$slots.setting=="function"&&b.push((J=(S=this.$slots).setting)==null?void 0:J.call(S,a.h)),b.length?a.createVNode("div",{class:"bk-tab-header-operation"},[b.map((D,E)=>a.createVNode("div",{class:"bk-tab-header-item",key:E},[D]))]):null};return a.createVNode("div",{style:{lineHeight:`${c}px`},class:"bk-tab-header"},[a.createVNode("div",{class:"bk-tab-header-nav"},[M()]),C()])}}),Ig=a.defineComponent({name:"Tab",components:{TabNav:gu},props:pg,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup(e,{slots:n}){const i=a.ref(!1),s=a.ref([]),l=a.getCurrentInstance();typeof n.panel=="function"&&(s.value=n.panel()),typeof n.default=="function"&&(s.value=n.default());const c=(h,g=[])=>{const{children:m}=h;return(m||[]).forEach(M=>{let{type:C}=M;C=C.name||C,C==="TabPanel"&&M.component?g.push(M.component):(C===a.Fragment||C==="template")&&c(M,g)}),g},f=()=>{if(n.default){const{children:h}=l.subTree.children[1];if(!h)return;const g=h[0],m=c(g);!(m.length===s.value.length&&m.every((C,b)=>C.uid===s.value[b].uid))&&(s.value=m)}};return a.onMounted(()=>{f(),i.value=!0}),a.onUpdated(()=>{f()}),{isMounted:i,panels:s}},methods:{tabAdd(e){this.$emit("add",{e}),this.$emit("add-panel",{e})},tabChange(e){this.$emit("change",e),this.$emit("tab-change",e),this.$emit("update:active",e)},tabRemove(e,n){this.$emit("remove",e,n),this.$emit("remove-panel",e,n)},tabSort(e,n,i){if(i==="insert")if(e<n)this.panels.splice(n+1,0,this.panels[e]),this.panels.splice(e,1);else if(e>n)this.panels.splice(n,0,this.panels[e]),this.panels.splice(e+1,1);else return!1;else{const s=this.panels[n];this.panels[n]=this.panels[e],this.panels[e]=s}this.$emit("sort",e,n,i),this.$emit("sort-change",e,n,i)},tabDrag(e,n){this.$emit("drag",e,n),this.$emit("on-drag-tab",e,n)}},render(){var i,s;const e=()=>this.tabPosition==="top"?`bk-tab bk-tab--${this.tabPosition} bk-tab--${this.type} ${this.extCls}`:`bk-tab bk-tab--${this.tabPosition} ${this.extCls}`,n=()=>{const{panels:l,active:c,type:f,closable:h,addable:g,sortable:m,sortType:M,labelHeight:C,scrollStep:b,validateActive:N,changeOnHover:k,changeOnHoverDelay:S,tabAdd:J,tabChange:D,tabRemove:E,tabSort:z,tabDrag:U}=this,Q={panels:l,active:c,type:f,closable:h,addable:g,sortable:m,sortType:M,labelHeight:C,scrollStep:b,validateActive:N,changeOnHover:k,changeOnHoverDelay:S,tabAdd:J,tabChange:D,tabRemove:E,tabSort:z,tabDrag:U};return!l||!Array.isArray(l)?null:a.createVNode(gu,Q,this.$slots)};return a.createVNode("div",{class:e()},[n(),a.createVNode("div",{class:"bk-tab-content"},[(s=(i=this.$slots).default)==null?void 0:s.call(i)])])}}),_s=a.defineComponent({name:"TabPanel",props:Mg,render(){const e=this.name===this.$parent.active,n=()=>!this.visible||this.renderDirective==="if"&&!e?null:typeof this.panel=="function"?this.panel(a.h):typeof this.$slots.default=="function"?this.$slots.default(null):typeof this.$slots.panel=="function"?this.$slots.panel(null):null;return a.withDirectives(a.createVNode("div",{ref:"content",class:"bk-tab-panel"},[n()]),[[a.vShow,e]])}});const pu=en(Ig,{TabPanel:_s}),Jn={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let mu=1;const Mu=(e,n)=>{let i=n;const s=i.position||"top-right";typeof n=="string"&&(i={message:n});const l=n.onClose;let c=i.offsetY||30;const{spacing:f=10}=i;Jn[s].forEach(M=>{c+=(M.el.offsetHeight||0)+f}),mu+=1;const h=`message_${mu}`;i=ze(O({},i),{offsetY:c,id:h});const g=document.createElement("div"),m=a.createVNode(e,i);m.props.onDestory=M=>{yg(M,s,f,l),a.render(null,g)},a.render(m,g),Jn[s].push(m),document.body.appendChild(g.firstElementChild)};function yg(e,n,i,s){s==null||s();const l=n.startsWith("top")?"top":"bottom";let c=-1;Jn[n].forEach((m,M)=>{m.props.id===e&&(c=M)});const h=Jn[n][c].el.offsetHeight,g=Jn[n].length;for(let m=c;m<g;m++){const M=parseInt(Jn[n][m].el.style[l],10)-h-i;Jn[n][m].component.props.offsetY=M}Jn[n].splice(c,1)}const Cg={id:d.string.def(""),message:d.string.def(""),theme:d.theme(["primary","warning","success","error"]).def("primary"),delay:d.number.def(3e3),dismissable:d.bool.def(!0),offsetY:d.number.def(30),spacing:d.number.def(10),extCls:d.string.def(""),onClose:d.func};var bg=a.defineComponent({name:"Message",props:Cg,emits:["destory"],setup(e,{emit:n}){const i=a.computed(()=>["bk-message",`bk-message-${e.theme}`,`${e.extCls}`]),s=on.getMessageNextIndex(),l=a.computed(()=>({top:`${e.offsetY}px`,zIndex:s})),c=a.ref(!1);let f=null;const h=()=>{f=setTimeout(()=>{c.value=!1},e.delay)},g=()=>{c.value=!1};return a.onMounted(()=>{e.delay&&h(),c.value=!0}),a.onUnmounted(()=>{clearTimeout(f)}),a.watch(c,()=>{c.value||n("destory",e.id)}),{classNames:i,styles:l,visible:c,close:g}},render(){const e=()=>({primary:a.createVNode(Qr,null,null),warning:a.createVNode(Ar,null,null),success:a.createVNode(Or,null,null),error:a.createVNode(Dn,null,null)})[this.theme];return a.createVNode(a.Transition,{name:"bk-fade"},{default:()=>[a.withDirectives(a.createVNode("div",{class:this.classNames,style:this.styles},[a.createVNode("div",{class:"bk-message-content"},[a.createVNode("div",{class:"bk-message-icon"},[e()]),this.message]),this.dismissable&&a.createVNode(jn,{class:"bk-message-icon bk-message-close",onClick:this.close},null)]),[[a.vShow,this.visible]])]})}});const Iu=e=>{Mu(bg,e)},Ng={id:d.string.def(""),title:d.string.def(""),message:d.string.def(""),theme:d.theme(["primary","warning","success","danger"]).def("primary"),position:d.position().def("top-right"),delay:d.number.def(3e3),offset:d.number.def(0),onClose:d.func};var wg=a.defineComponent({name:"Notify",props:Ng,emits:["destory"],setup(e,{emit:n}){const i=a.computed(()=>["bk-notify",`bk-notify-${e.theme}`]),s=on.getMessageNextIndex(),l=a.computed(()=>e.position.indexOf("right")>1?"right":"left"),c=a.computed(()=>e.position.startsWith("top")?"top":"bottom"),f=a.computed(()=>({[l.value]:"10px",[c.value]:`${e.offset}px`,zIndex:s})),h=a.ref(!1);let g=null;const m=()=>{g=setTimeout(()=>{h.value=!1},e.delay)},M=()=>{h.value=!1};return a.onMounted(()=>{m(),h.value=!0}),a.onUnmounted(()=>{clearTimeout(g)}),a.watch(h,()=>{h.value||n("destory",e.id)}),{classNames:i,styles:f,visible:h,handleClose:M}},render(){const e=()=>({primary:a.createVNode(Qr,null,null),warning:a.createVNode(Ar,null,null),success:a.createVNode(Or,null,null),danger:a.createVNode(Dn,null,null)})[this.theme];return a.createVNode(a.Transition,{name:"bk-notify-fade"},{default:()=>[a.withDirectives(a.createVNode("div",{class:this.classNames,style:this.styles},[a.createVNode("div",{class:"bk-notify-content"},[a.createVNode("div",{class:"bk-notify-icon"},[e()]),this.title?a.createVNode("h3",{class:"bk-notify-content-header"},[this.title]):"",a.createVNode("div",{class:"bk-notify-content-text"},[this.message])]),a.createVNode(jn,{class:"bk-notify-icon bk-notify-close",onClick:this.handleClose},null)]),[[a.vShow,this.visible]])]})}});const yu=e=>{Mu(wg,e)},Cu=Symbol("MENU_PROVIDER_KEY"),Xs=Symbol("MENU_PROVIDER_KEY_PATH"),Lg=e=>{a.provide(Cu,e)},kg=e=>{const{parentKeys:n,parentInfo:i}=Ks(),s=a.computed(()=>[...n.value,e]);a.provide(Xs,{parentInfo:{key:e,parentKey:i==null?void 0:i.key},parentKeys:s})},bu=()=>a.inject(Cu),Ks=()=>{var i;const e=a.getCurrentInstance(),n=e.parent?e.parent.provides:(i=e.vnode.appContext)==null?void 0:i.provides;return n&&Xs in n?a.inject(Xs):{parentInfo:void 0,parentKeys:a.ref([])}},$s=function(e){return(e||"").split(" ").filter(n=>!!n.trim())};function Nu(e,n){if(!e||!n)return;const i=$s(n);let s=e.getAttribute("class")||"";if(e.classList){e.classList.remove(...i);return}i.forEach(c=>{s=s.replace(` ${c} `," ")});const l=$s(s).join(" ");e.setAttribute("class",l)}function wu(e,n){if(!e)return;let i=e.getAttribute("class")||"";const s=$s(i),l=(n||"").split(" ").filter(c=>!s.includes(c)&&!!c.trim());e.classList?e.classList.add(...l):(i+=` ${l.join(" ")}`,e.setAttribute("class",i))}const vg=()=>({css:!0,onBeforeEnter:e=>{wu(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:e=>{e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=`${e.scrollHeight}px`,e.style.maxHeight=`${e.scrollHeight}px`):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:e=>{e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,Nu(e,"collapse-transition")},onBeforeLeave:e=>{e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height=`${e.scrollHeight}px`,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},onLeave:e=>{e.scrollHeight!==0&&(wu(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:e=>{Nu(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),Tg={activeKey:String,collapse:{type:Boolean,default:!1},OpenedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}};var xg=a.defineComponent({name:"Menu",props:Tg,emits:["update:activeKey","update:openKeys","click","openChange"],setup(e,{slots:n,emit:i}){const s=a.ref(""),l=a.ref([]),c=a.ref({}),f=a.computed(()=>e.mode),h=a.ref(e.collapse),g=a.ref([]);a.watch(()=>e.OpenedKeys,(N=l.value)=>{l.value=N},{immediate:!0}),a.watchEffect(()=>{e.activeKey!==void 0&&(s.value=e.activeKey)}),a.watch(()=>e.collapse,()=>{h.value=e.collapse;const N=[...g.value],k=[...l.value];l.value=h.value?[]:N,g.value=h.value?k:[]},{immediate:!0});const m=(N,k)=>{c.value=ze(O({},c.value),{[N]:k})},M=N=>{delete c.value[N],c.value=O({},c.value)},C=(N,k)=>{k?e.uniqueOpen?l.value=[N]:l.value.push(N):l.value=l.value.filter(S=>S!==N),i("openChange",k,c.value[N]),i("update:openKeys",[...l.value])},b=N=>{s.value=N,i("click",c.value[N]),i("update:activeKey",N,c.value[N])};return Lg({activeKey:s,menuStore:c,registerMenuInfo:m,unregisterMenuInfo:M,mode:f.value,openedKeys:l,collapse:h,handleOpenChange:C,handleActiveChange:b}),()=>{var N;return a.createVNode("div",{class:{"bk-menu":!0,"is-collapse":h.value}},[(N=n==null?void 0:n.default)==null?void 0:N.call(n)])}}}),Sg=a.defineComponent({name:"MenuGroup",props:{name:{type:String,default:""}},setup(e,{slots:n}){return()=>{var i;return a.createVNode("div",{class:"bk-menu-group"},[a.createVNode("div",{class:"group-name"},[e.name]),a.createVNode("ul",{class:"group-wrap"},[(i=n.default)==null?void 0:i.call(n)])])}}}),Dg=a.defineComponent({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:["icon"],setup(e,{slots:n,emit:i}){var N,k;const{registerMenuInfo:s,unregisterMenuInfo:l,activeKey:c,handleActiveChange:f}=bu(),h=a.getCurrentInstance(),{parentInfo:g}=Ks(),m=((k=(N=h.vnode.key)==null?void 0:N.toString)==null?void 0:k.call(N))||String(h.uid),M=a.computed(()=>c.value===m),C=a.computed(()=>e.needIcon);s(m,{key:m,parentKey:g==null?void 0:g.key});const b=S=>{f(m),i("click",S)};return a.onBeforeUnmount(()=>l(m)),()=>{var S,J;return a.createVNode("li",{class:{"bk-menu-item":!0,"is-active":M.value},onClick:b},[C.value&&a.createVNode("span",{class:"item-icon"},[((S=n==null?void 0:n.icon)==null?void 0:S.call(n))||a.createVNode("i",{class:"default-icon"},null)]),a.createVNode("span",{class:"item-content"},[(J=n.default)==null?void 0:J.call(n)])])}}});const jg={title:{type:String,default:"title"}};var zg=a.defineComponent({name:"Submenu",props:jg,emits:["collapse"],slots:["icon"],setup(e,{slots:n,emit:i}){var D,E;const{registerMenuInfo:s,unregisterMenuInfo:l,openedKeys:c,handleOpenChange:f,collapse:h,activeKey:g,menuStore:m}=bu(),{parentInfo:M}=Ks(),C=a.getCurrentInstance(),b=((E=(D=C.vnode.key)==null?void 0:D.toString)==null?void 0:E.call(D))||String(C.uid),N=a.ref(vg()),k=a.computed(()=>c.value.includes(b)),S=a.computed(()=>{var U,Q;const z=(Q=(U=m.value)==null?void 0:U[g.value])==null?void 0:Q.parentKey;return h.value&&z===b&&k});kg(b),s(b,{key:b,parentKey:M==null?void 0:M.key}),a.onBeforeUnmount(()=>l(b));const J=()=>{f(b,!k.value),i("collapse",!k.value,C)};return()=>{var z;return a.createVNode("li",{class:{"bk-menu-submenu":!0,"is-opened":k.value}},[a.createVNode("div",{class:{"submenu-header":!0,"is-collapse":S.value},onClick:J},[a.createVNode("span",{class:"submenu-header-icon"},[((z=n.icon)==null?void 0:z.call(n))||a.createVNode(bs,{class:"menu-icon"},null)]),a.createVNode("span",{class:"submenu-header-content"},[e.title]),a.createVNode(Sr,{class:{"submenu-header-collapse":!0,"is-collapse":c.value.includes(b)}},null)]),a.createVNode(a.Transition,N.value,{default:()=>{var U;return[a.withDirectives(a.createVNode("ul",{class:"submenu-list"},[(U=n.default)==null?void 0:U.call(n)]),[[a.vShow,k.value]])]}})])}}});const Lu=en(xg,{Item:Dg,Submenu:zg,Group:Sg}),Jg={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}};var ku=a.defineComponent({props:Jg,slots:["side-icon"],setup(e,{slots:n}){return()=>{var i,s;return a.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:e.navigationType==="left-right"?"0":"1px"}},[((i=n.default)==null?void 0:i.call(n))||[a.createVNode("span",{class:"title-icon"},[((s=n["side-icon"])==null?void 0:s.call(n))||a.createVNode("i",{class:"bk-icon icon-rtx"},null)]),a.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}});const Qg={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}};var ir=a.defineComponent({name:"Navigation",props:Qg,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup(e,{emit:n}){const i=a.ref(e.headerTitle),s=a.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(s.click=!s.click,s.hover=s.click,n("toggle",s.hover)),a.onBeforeUnmount(()=>{s.timer&&window.clearTimeout(s.timer)});const l=()=>{s.click||(s.enterTimer=setTimeout(()=>{s.hover=!0,s.enterTimer&&window.clearTimeout(s.enterTimer),s.timer&&window.clearTimeout(s.timer),n("hover",s.hover),n("toggle",s.hover)},e.hoverEnterDelay))},c=()=>{s.click||(s.enterTimer&&window.clearTimeout(s.enterTimer),s.timer=setTimeout(()=>{s.hover=!1,window.clearTimeout(s.timer),n("leave",s.hover),n("toggle",s.hover)},e.hoverLeaveDelay))},f=()=>{s.click=!s.click,s.hover=s.click,n("toggle",s.hover),n("toggle-click",s.hover)};return{defaultHeaderTitle:i,nav:s,onBeforeUnmount:a.onBeforeUnmount,handleMouseOver:l,handleMouseLeave:c,handleClick:f}},render(){var e,n,i,s,l,c,f,h,g,m,M,C;return a.createVNode("div",{class:"bk-navigation"},[this.navigationType==="top-bottom"&&a.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:`${this.headHeight}px`}},[a.createVNode(ku,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),a.createVNode("div",{class:"header-right"},[(n=(e=this.$slots).header)==null?void 0:n.call(e)])]),a.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&a.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?`${this.hoverWidth}px`:`${this.navWidth}px`}},[a.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?`${this.hoverWidth}px`:`${this.navWidth}px`,borderRight:this.navigationType!=="top-bottom"?"none":"1px solid #DCDEE5"}},[this.navigationType!=="top-bottom"&&a.createVNode(ku,{style:{flexBasis:`${this.headHeight}px`},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),a.createVNode("div",{class:"nav-slider-list",style:{height:`calc(100vh - ${+this.headHeight+56}px)`}},[(s=(i=this.$slots).menu)==null?void 0:s.call(i)]),a.createVNode("div",{class:"nav-slider-footer"},[a.createVNode("div",{class:{"is-left":this.navigationType!=="top-bottom","footer-icon":!0},onClick:this.handleClick},[a.createVNode(ls,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),a.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},[this.navigationType!=="top-bottom"&&a.createVNode("div",{class:"container-header",style:{flexBasis:`${this.headHeight}px`}},[((c=(l=this.$slots).header)==null?void 0:c.call(l))||[a.createVNode("div",{class:"container-header-title"},[this.headerTitle]),a.createVNode("div",{class:"container-header-sets"},[(h=(f=this.$slots)["header-set"])==null?void 0:h.call(f)])]]),a.createVNode("div",{class:"container-content",style:{maxHeight:`calc(100vh - ${this.headHeight}px)`}},[(m=(g=this.$slots).default)==null?void 0:m.call(g),a.createVNode("div",{class:"container-footer"},[(C=(M=this.$slots).footer)==null?void 0:C.call(M)])])])])])}});ir.install=e=>{e.component(ir.name,ir)};const Pg={placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0?(console.error(`placement property is not valid: '${e}'`),!1):!0},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function};var Og=a.defineComponent({props:Pg,emits:["changeVisible"],setup(e,{emit:n}){let i=Object.create(null);const s=a.ref(null);a.onMounted(()=>{c()}),a.onBeforeUnmount(()=>{l()});const l=()=>{if(i&&Object.keys(i).length!==0){const g=i;g.isShow&&g.hide(),g.destroy(),i=null,n("changeVisible",!1)}},c=()=>{i&&Object.keys(i).length!==0?a.nextTick(()=>{i.update()}):a.nextTick(()=>{i=new es(e.triggerRef,s.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})})},f=a.computed(()=>{const g={};return e.appendToBody&&(g["z-index"]=1060+on.getModalNextIndex()),g}),h=a.reactive({styles:f});return ze(O({},a.toRefs(h)),{refContentRef:s,updateDropdown:c,destoryDropdown:l})},render(){var e,n,i;return a.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[(i=(n=(e=this.$slots).default)==null?void 0:n.call(e))!=null?i:""])}}),vu=1e3*60*60*24;function Tu(e,n){return new Date(e,n+1,0).getDate()}function xu(e,n,i){return n===0&&i>50?e-1:n===11&&i<10?e+1:e}function Su(e,n,i,s){n>11&&(n=0,e++);var l=new Date(e,n,i);s&&l.setDate(l.getDate()+4-(l.getDay()||7));var c=s?l.getFullYear():e,f=new Date(c,0,1),h=1+Math.round((l-f)/vu);s||(h+=f.getDay());var g=Math.ceil(h/7);if(!s){var m=new Date(e,n,i),M=new Date(e+1,0,1),C=M.getDay();m.getTime()>=M.getTime()-vu*C&&(g=1)}return g}function Ag(e,n,i){for(var s=this.lang||"en",l=this.onlyDays,c=typeof this.weekStart=="undefined"?1:this.weekStart,f=c===1,h=[],g=new Date(e,n,1),m=g.getDay()||(f?7:0),M=c-m,C=Su(e,n,1,f),b=Tu(e,n),N=Tu(e,n-1),k,S,J,D=xu(e,n,C),E={month:n,year:e,daysInMonth:b},z=0;z<7;z++){J=M;for(var U=0;U<8;U++){z>0&&U>0&&M++,M>b||M<1?(S=M>b?M-b:N+M,k=M>b?n+1:n-1):(S=M,k=n);var Q=function(){return U===0?"weekLabel":z===0?"dayLabel":M<1?"prevMonth":M>b?"nextMonth":"monthDay"}(),H=J!==M&&z>0,F={desc:H?S:C,week:C,type:Q,format:f?"ISO 8601":"US",date:H?new Date(Date.UTC(e,k,S)):!1,year:D,index:h.length};i&&(typeof i=="function"?F=i.call(E,F,s):i.forEach(function(ne){F=ne.call(E,F,s)})),l&&H?h.push(F):l||h.push(F)}z>0&&(C=Su(e,k,S+1,f)),D=xu(e,n,C)}return E.cells=h,E}var Eg=function(e){return Ag.bind(e)},Vg={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"m\xE5ndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"l\xF6rdag",7:"s\xF6ndag"},pt:{0:"s",1:"segunda",2:"ter\xE7a",3:"quarta",4:"quinta",5:"sexta",6:"s\xE1bado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}},dn=Vg;function Wg(e){return e==null?!1:e.constructor===Array||e.constructor===Object}function Du(e,n){for(var i in e)n[i]?Wg(e[i])&&Du(e[i],n[i]):n[i]=e[i]}function ju(e,n){var i=[dn.classes[e.type]];return e.class?e.class=(typeof e.class=="string"?[e.class]:e.class).concat(i):e.class=i,e.type.indexOf("Label")>0&&(e.index==0&&dn.weekPlaceholder?e.desc=dn.weekPlaceholder:e.index<8?e.desc=dn.columnNames[n][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=dn.monthNames[n][e.date.getMonth()]),this.monthName||(this.monthName=dn.monthNames[n][this.month]),this.labels||(this.labels={monthNames:dn.monthNames[n],columnNames:dn.columnNames[n],classes:dn.classes}),e}ju.setLabels=function(e){Du(e,dn)};var Zg=ju,Rg={Generator:Eg,addLabels:Zg};function Rt(e){if(e===null||e===!0||e===!1)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function yt(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function tn(e){yt(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new Date(e.getTime()):typeof e=="number"||n==="[object Number]"?new Date(e):((typeof e=="string"||n==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Gg(e,n){yt(2,arguments);var i=tn(e).getTime(),s=Rt(n);return new Date(i+s)}function Yg(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function Bg(e){return yt(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hg(e){if(yt(1,arguments),!Bg(e)&&typeof e!="number")return!1;var n=tn(e);return!isNaN(Number(n))}var Fg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ug=function(e,n,i){var s,l=Fg[e];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",n.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},_g=Ug;function qs(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width?String(n.width):e.defaultWidth,s=e.formats[i]||e.formats[e.defaultWidth];return s}}var Xg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qg={date:qs({formats:Xg,defaultWidth:"full"}),time:qs({formats:Kg,defaultWidth:"full"}),dateTime:qs({formats:$g,defaultWidth:"full"})},e4=qg,t4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n4=function(e,n,i,s){return t4[e]},i4=n4;function rr(e){return function(n,i){var s=i||{},l=s.context?String(s.context):"standalone",c;if(l==="formatting"&&e.formattingValues){var f=e.defaultFormattingWidth||e.defaultWidth,h=s.width?String(s.width):f;c=e.formattingValues[h]||e.formattingValues[f]}else{var g=e.defaultWidth,m=s.width?String(s.width):e.defaultWidth;c=e.values[m]||e.values[g]}var M=e.argumentCallback?e.argumentCallback(n):n;return c[M]}}var r4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},u4=function(e,n){var i=Number(e),s=i%100;if(s>20||s<10)switch(s%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},d4={ordinalNumber:u4,era:rr({values:r4,defaultWidth:"wide"}),quarter:rr({values:a4,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:rr({values:s4,defaultWidth:"wide"}),day:rr({values:o4,defaultWidth:"wide"}),dayPeriod:rr({values:l4,defaultWidth:"wide",formattingValues:c4,defaultFormattingWidth:"wide"})},f4=d4;function ar(e){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.width,l=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],c=n.match(l);if(!c)return null;var f=c[0],h=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],g=Array.isArray(h)?g4(h,function(C){return C.test(f)}):h4(h,function(C){return C.test(f)}),m;m=e.valueCallback?e.valueCallback(g):g,m=i.valueCallback?i.valueCallback(m):m;var M=n.slice(f.length);return{value:m,rest:M}}}function h4(e,n){for(var i in e)if(e.hasOwnProperty(i)&&n(e[i]))return i}function g4(e,n){for(var i=0;i<e.length;i++)if(n(e[i]))return i}function p4(e){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.match(e.matchPattern);if(!s)return null;var l=s[0],c=n.match(e.parsePattern);if(!c)return null;var f=e.valueCallback?e.valueCallback(c[0]):c[0];f=i.valueCallback?i.valueCallback(f):f;var h=n.slice(l.length);return{value:f,rest:h}}}var m4=/^(\d+)(th|st|nd|rd)?/i,M4=/\d+/i,I4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y4={any:[/^b/i,/^(a|c)/i]},C4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b4={any:[/1/i,/2/i,/3/i,/4/i]},N4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},k4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},x4={ordinalNumber:p4({matchPattern:m4,parsePattern:M4,valueCallback:function(e){return parseInt(e,10)}}),era:ar({matchPatterns:I4,defaultMatchWidth:"wide",parsePatterns:y4,defaultParseWidth:"any"}),quarter:ar({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:b4,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ar({matchPatterns:N4,defaultMatchWidth:"wide",parsePatterns:w4,defaultParseWidth:"any"}),day:ar({matchPatterns:L4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any"}),dayPeriod:ar({matchPatterns:v4,defaultMatchWidth:"any",parsePatterns:T4,defaultParseWidth:"any"})},S4=x4,D4={code:"en-US",formatDistance:_g,formatLong:e4,formatRelative:i4,localize:f4,match:S4,options:{weekStartsOn:0,firstWeekContainsDate:1}},j4=D4;function z4(e,n){yt(2,arguments);var i=Rt(n);return Gg(e,-i)}var J4=864e5;function Q4(e){yt(1,arguments);var n=tn(e),i=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var s=n.getTime(),l=i-s;return Math.floor(l/J4)+1}function Ur(e){yt(1,arguments);var n=1,i=tn(e),s=i.getUTCDay(),l=(s<n?7:0)+s-n;return i.setUTCDate(i.getUTCDate()-l),i.setUTCHours(0,0,0,0),i}function zu(e){yt(1,arguments);var n=tn(e),i=n.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var l=Ur(s),c=new Date(0);c.setUTCFullYear(i,0,4),c.setUTCHours(0,0,0,0);var f=Ur(c);return n.getTime()>=l.getTime()?i+1:n.getTime()>=f.getTime()?i:i-1}function P4(e){yt(1,arguments);var n=zu(e),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=Ur(i);return s}var O4=6048e5;function A4(e){yt(1,arguments);var n=tn(e),i=Ur(n).getTime()-P4(n).getTime();return Math.round(i/O4)+1}function _r(e,n){yt(1,arguments);var i=n||{},s=i.locale,l=s&&s.options&&s.options.weekStartsOn,c=l==null?0:Rt(l),f=i.weekStartsOn==null?c:Rt(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=tn(e),g=h.getUTCDay(),m=(g<f?7:0)+g-f;return h.setUTCDate(h.getUTCDate()-m),h.setUTCHours(0,0,0,0),h}function Ju(e,n){yt(1,arguments);var i=tn(e),s=i.getUTCFullYear(),l=n||{},c=l.locale,f=c&&c.options&&c.options.firstWeekContainsDate,h=f==null?1:Rt(f),g=l.firstWeekContainsDate==null?h:Rt(l.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(s+1,0,g),m.setUTCHours(0,0,0,0);var M=_r(m,n),C=new Date(0);C.setUTCFullYear(s,0,g),C.setUTCHours(0,0,0,0);var b=_r(C,n);return i.getTime()>=M.getTime()?s+1:i.getTime()>=b.getTime()?s:s-1}function E4(e,n){yt(1,arguments);var i=n||{},s=i.locale,l=s&&s.options&&s.options.firstWeekContainsDate,c=l==null?1:Rt(l),f=i.firstWeekContainsDate==null?c:Rt(i.firstWeekContainsDate),h=Ju(e,n),g=new Date(0);g.setUTCFullYear(h,0,f),g.setUTCHours(0,0,0,0);var m=_r(g,n);return m}var V4=6048e5;function W4(e,n){yt(1,arguments);var i=tn(e),s=_r(i,n).getTime()-E4(i,n).getTime();return Math.round(s/V4)+1}function Ae(e,n){for(var i=e<0?"-":"",s=Math.abs(e).toString();s.length<n;)s="0"+s;return i+s}var Z4={y:function(e,n){var i=e.getUTCFullYear(),s=i>0?i:1-i;return Ae(n==="yy"?s%100:s,n.length)},M:function(e,n){var i=e.getUTCMonth();return n==="M"?String(i+1):Ae(i+1,2)},d:function(e,n){return Ae(e.getUTCDate(),n.length)},a:function(e,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(e,n){return Ae(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ae(e.getUTCHours(),n.length)},m:function(e,n){return Ae(e.getUTCMinutes(),n.length)},s:function(e,n){return Ae(e.getUTCSeconds(),n.length)},S:function(e,n){var i=n.length,s=e.getUTCMilliseconds(),l=Math.floor(s*Math.pow(10,i-3));return Ae(l,n.length)}},Qn=Z4,vi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R4={G:function(e,n,i){var s=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});case"GGGG":default:return i.era(s,{width:"wide"})}},y:function(e,n,i){if(n==="yo"){var s=e.getUTCFullYear(),l=s>0?s:1-s;return i.ordinalNumber(l,{unit:"year"})}return Qn.y(e,n)},Y:function(e,n,i,s){var l=Ju(e,s),c=l>0?l:1-l;if(n==="YY"){var f=c%100;return Ae(f,2)}return n==="Yo"?i.ordinalNumber(c,{unit:"year"}):Ae(c,n.length)},R:function(e,n){var i=zu(e);return Ae(i,n.length)},u:function(e,n){var i=e.getUTCFullYear();return Ae(i,n.length)},Q:function(e,n,i){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return Ae(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,n,i){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return Ae(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,n,i){var s=e.getUTCMonth();switch(n){case"M":case"MM":return Qn.M(e,n);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(e,n,i){var s=e.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return Ae(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(e,n,i,s){var l=W4(e,s);return n==="wo"?i.ordinalNumber(l,{unit:"week"}):Ae(l,n.length)},I:function(e,n,i){var s=A4(e);return n==="Io"?i.ordinalNumber(s,{unit:"week"}):Ae(s,n.length)},d:function(e,n,i){return n==="do"?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qn.d(e,n)},D:function(e,n,i){var s=Q4(e);return n==="Do"?i.ordinalNumber(s,{unit:"dayOfYear"}):Ae(s,n.length)},E:function(e,n,i){var s=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});case"EEEE":default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(e,n,i,s){var l=e.getUTCDay(),c=(l-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return Ae(c,2);case"eo":return i.ordinalNumber(c,{unit:"day"});case"eee":return i.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(l,{width:"short",context:"formatting"});case"eeee":default:return i.day(l,{width:"wide",context:"formatting"})}},c:function(e,n,i,s){var l=e.getUTCDay(),c=(l-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return Ae(c,n.length);case"co":return i.ordinalNumber(c,{unit:"day"});case"ccc":return i.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(l,{width:"narrow",context:"standalone"});case"cccccc":return i.day(l,{width:"short",context:"standalone"});case"cccc":default:return i.day(l,{width:"wide",context:"standalone"})}},i:function(e,n,i){var s=e.getUTCDay(),l=s===0?7:s;switch(n){case"i":return String(l);case"ii":return Ae(l,n.length);case"io":return i.ordinalNumber(l,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});case"iiii":default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(e,n,i){var s=e.getUTCHours(),l=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,n,i){var s=e.getUTCHours(),l;switch(s===12?l=vi.noon:s===0?l=vi.midnight:l=s/12>=1?"pm":"am",n){case"b":case"bb":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,n,i){var s=e.getUTCHours(),l;switch(s>=17?l=vi.evening:s>=12?l=vi.afternoon:s>=4?l=vi.morning:l=vi.night,n){case"B":case"BB":case"BBB":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,n,i){if(n==="ho"){var s=e.getUTCHours()%12;return s===0&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Qn.h(e,n)},H:function(e,n,i){return n==="Ho"?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qn.H(e,n)},K:function(e,n,i){var s=e.getUTCHours()%12;return n==="Ko"?i.ordinalNumber(s,{unit:"hour"}):Ae(s,n.length)},k:function(e,n,i){var s=e.getUTCHours();return s===0&&(s=24),n==="ko"?i.ordinalNumber(s,{unit:"hour"}):Ae(s,n.length)},m:function(e,n,i){return n==="mo"?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qn.m(e,n)},s:function(e,n,i){return n==="so"?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qn.s(e,n)},S:function(e,n){return Qn.S(e,n)},X:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();if(c===0)return"Z";switch(n){case"X":return Pu(c);case"XXXX":case"XX":return qn(c);case"XXXXX":case"XXX":default:return qn(c,":")}},x:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"x":return Pu(c);case"xxxx":case"xx":return qn(c);case"xxxxx":case"xxx":default:return qn(c,":")}},O:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qu(c,":");case"OOOO":default:return"GMT"+qn(c,":")}},z:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qu(c,":");case"zzzz":default:return"GMT"+qn(c,":")}},t:function(e,n,i,s){var l=s._originalDate||e,c=Math.floor(l.getTime()/1e3);return Ae(c,n.length)},T:function(e,n,i,s){var l=s._originalDate||e,c=l.getTime();return Ae(c,n.length)}};function Qu(e,n){var i=e>0?"-":"+",s=Math.abs(e),l=Math.floor(s/60),c=s%60;if(c===0)return i+String(l);var f=n||"";return i+String(l)+f+Ae(c,2)}function Pu(e,n){if(e%60===0){var i=e>0?"-":"+";return i+Ae(Math.abs(e)/60,2)}return qn(e,n)}function qn(e,n){var i=n||"",s=e>0?"-":"+",l=Math.abs(e),c=Ae(Math.floor(l/60),2),f=Ae(l%60,2);return s+c+i+f}var G4=R4;function Ou(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}}function Au(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}}function Y4(e,n){var i=e.match(/(P+)(p+)?/)||[],s=i[1],l=i[2];if(!l)return Ou(e,n);var c;switch(s){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",Ou(s,n)).replace("{{time}}",Au(l,n))}var B4={p:Au,P:Y4},H4=B4,F4=["D","DD"],U4=["YY","YYYY"];function _4(e){return F4.indexOf(e)!==-1}function X4(e){return U4.indexOf(e)!==-1}function Eu(e,n,i){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}var K4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q4=/^'([^]*?)'?$/,ep=/''/g,tp=/[a-zA-Z]/;function np(e,n,i){yt(2,arguments);var s=String(n),l=i||{},c=l.locale||j4,f=c.options&&c.options.firstWeekContainsDate,h=f==null?1:Rt(f),g=l.firstWeekContainsDate==null?h:Rt(l.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=c.options&&c.options.weekStartsOn,M=m==null?0:Rt(m),C=l.weekStartsOn==null?M:Rt(l.weekStartsOn);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var b=tn(e);if(!Hg(b))throw new RangeError("Invalid time value");var N=Yg(b),k=z4(b,N),S={firstWeekContainsDate:g,weekStartsOn:C,locale:c,_originalDate:b},J=s.match($4).map(function(D){var E=D[0];if(E==="p"||E==="P"){var z=H4[E];return z(D,c.formatLong,S)}return D}).join("").match(K4).map(function(D){if(D==="''")return"'";var E=D[0];if(E==="'")return ip(D);var z=G4[E];if(z)return!l.useAdditionalWeekYearTokens&&X4(D)&&Eu(D,n,e),!l.useAdditionalDayOfYearTokens&&_4(D)&&Eu(D,n,e),z(k,D,c.localize,S);if(E.match(tp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return D}).join("");return J}function ip(e){return e.match(q4)[1].replace(ep,"'")}const ut={},Vu=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ei=/\d\d?/,rp=/\d{3}/,ap=/\d{4}/,Xr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wu=function(){};function Zu(e,n){const i=[];for(let s=0,l=e.length;s<l;s++)i.push(e[s].substr(0,n));return i}function Ru(e){return(n,i,s)=>{const l=s[e].indexOf(i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());~l&&(n.month=l)}}function fn(e,n=2){let i=String(e);for(;i.length<n;)i=`0${i}`;return i}const Gu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Yu=["January","February","March","April","May","June","July","August","September","October","November","December"],sp=Zu(Yu,3),op=Zu(Gu,3);ut.i18n={dayNamesShort:op,dayNames:Gu,monthNamesShort:sp,monthNames:Yu,amPm:["am","pm"],DoFn(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};const Bu={D(e){return e.getDay()},DD(e){return fn(e.getDay())},Do(e,n){return n.DoFn(e.getDate())},d(e){return e.getDate()},dd(e){return fn(e.getDate())},ddd(e,n){return n.dayNamesShort[e.getDay()]},dddd(e,n){return n.dayNames[e.getDay()]},M(e){return e.getMonth()+1},MM(e){return fn(e.getMonth()+1)},MMM(e,n){return n.monthNamesShort[e.getMonth()]},MMMM(e,n){return n.monthNames[e.getMonth()]},yy(e){return String(e.getFullYear()).substr(2)},yyyy(e){return e.getFullYear()},h(e){return e.getHours()%12||12},hh(e){return fn(e.getHours()%12||12)},H(e){return e.getHours()},HH(e){return fn(e.getHours())},m(e){return e.getMinutes()},mm(e){return fn(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return fn(e.getSeconds())},S(e){return Math.round(e.getMilliseconds()/100)},SS(e){return fn(Math.round(e.getMilliseconds()/10),2)},SSS(e){return fn(e.getMilliseconds(),3)},a(e,n){return e.getHours()<12?n.amPm[0]:n.amPm[1]},A(e,n){return e.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ(e){const n=e.getTimezoneOffset();return(n>0?"-":"+")+fn(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)}},Ue={d:[ei,(e,n)=>{e.day=n}],M:[ei,(e,n)=>{e.month=n-1}],yy:[ei,(e,n)=>{const s=+`${new Date().getFullYear()}`.substr(0,2);e.year=`${n>68?s-1:s}${n}`}],h:[ei,(e,n)=>{e.hour=n}],m:[ei,(e,n)=>{e.minute=n}],s:[ei,(e,n)=>{e.second=n}],yyyy:[ap,(e,n)=>{e.year=n}],S:[/\d/,(e,n)=>{e.millisecond=n*100}],SS:[/\d{2}/,(e,n)=>{e.millisecond=n*10}],SSS:[rp,(e,n)=>{e.millisecond=n}],D:[ei,Wu],ddd:[Xr,Wu],MMM:[Xr,Ru("monthNamesShort")],MMMM:[Xr,Ru("monthNames")],a:[Xr,(e,n,i)=>{const s=n.toLowerCase();s===i.amPm[0]?e.isPm=!1:s===i.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,(e,n)=>{const i=`${n}`.match(/([\\+\\-]|\d\d)/gi);let s;i&&(s=+(i[1]*60)+parseInt(i[2],10),e.timezoneOffset=i[0]==="+"?s:-s)}]};Ue.DD=Ue.D,Ue.dddd=Ue.ddd,Ue.Do=Ue.dd=Ue.d,Ue.mm=Ue.m,Ue.hh=Ue.H=Ue.HH=Ue.h,Ue.MM=Ue.M,Ue.ss=Ue.s,Ue.A=Ue.a,ut.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ut.format=(e,n,i)=>{const s=i||ut.i18n;if(typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return n=ut.masks[n]||n||ut.masks.default,n.replace(Vu,l=>l in Bu?Bu[l](e,s):l.slice(1,l.length-1))},ut.parse=(e,n,i)=>{const s=i||ut.i18n;if(typeof n!="string")throw new Error("Invalid format in fecha.parse");if(n=ut.masks[n]||n,e.length>1e3)return!1;let l=!0;const c={};if(n.replace(Vu,g=>{if(Ue[g]){const m=Ue[g],M=e.search(m[0]);~M?e.replace(m[0],C=>(m[1](c,C,s),e=e.substr(M+C.length),C)):l=!1}return Ue[g]?"":g.slice(1,g.length-1)}),!l)return!1;const f=new Date;c.isPm===!0&&c.hour!==null&&+c.hour!=12?c.hour=+c.hour+12:c.isPm===!1&&+c.hour==12&&(c.hour=0);let h;return c.timezoneOffset!==null&&c.timezoneOffset!==void 0?(c.minute=+(c.minute||0)-+c.timezoneOffset,h=new Date(Date.UTC(c.year||f.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0))):h=new Date(c.year||f.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0),h};const eo=" - ",yn=(e,n)=>{const i=tn(new Date(e));return!i||isNaN(i.getTime())?"":np(i,n||"yyyy-MM-dd")},to=(e,n)=>{if(Array.isArray(e)&&e.length===2){const i=e[0],s=e[1];if(i&&s)return yn(i,n)+eo+yn(s,n)}else if(!Array.isArray(e)&&e instanceof Date)return yn(e,n);return""},no=(e,n)=>{const i=Array.isArray(e)?e:e.split(eo);if(i.length===2){const s=i[0],l=i[1];return[s instanceof Date?s:ut.parse(s,n||"yyyy-MM-dd"),l instanceof Date?l:ut.parse(l,n||"yyyy-MM-dd")]}return[]},Ti={default:{formatter(e){return e?`${e}`:""},parser(e){return e===void 0||e===""?null:e}},date:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},datetime:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},daterange:{formatter:to,parser:no},datetimerange:{formatter:to,parser:no},timerange:{formatter:to,parser:no},time:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},month:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},year:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},multiple:{formatter(e,n){return e.filter(Boolean).map(i=>yn(i,n)).join(",")},parser(e,n){return(typeof e=="string"?e.split(","):e).map(s=>{if(s instanceof Date)return s;let l=s;return typeof s=="string"?l=s.trim():typeof s!="number"&&!s&&(l=""),ut.parse(l,n||"yyyy-MM-dd")})}},number:{formatter(e){return e?`${e}`:""},parser(e){const n=Number(e);return isNaN(e)?null:n}}},lp=()=>{const e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e},cp=e=>e.every(n=>!n||typeof n=="string"&&n.trim()===""),Hu=e=>e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0],Fu={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Kr=(e,n,i,s)=>{const l=n.includes("range"),{parser:c}=Ti[n]||Ti.default,f=s||Fu[n],h=Ti.multiple.parser;let g=e;if(e&&n==="time"&&!(e instanceof Date))g=c(e,f);else if(i&&e)g=h(e,f);else if(l)if(!e)g=[null,null];else if(typeof e=="string")g=c(e,f);else if(n==="timerange")g=c(e,f).map(m=>m||"");else{const[m,M]=e;m instanceof Date&&M instanceof Date?g=e.map(C=>new Date(C)):typeof m=="string"&&typeof M=="string"?g=c(e.join(eo),f):(!m||!M)&&(g=[null,null])}else typeof e=="string"&&n.indexOf("time")!==0&&(g=c(e,f)||null);return l||i?g||[]:[g]},sr=(e,n,i,s)=>{const l=Fu[n];if(i){const{formatter:f}=Ti.multiple;return f(e,s||l)}const{formatter:c}=Ti[n]||Ti.default;return c(e,s||l)},up=Symbol("date-picker");function Gt(e,n=""){return["bk-picker-panel-icon-btn",`bk-date-picker-${e}-btn`,`bk-date-picker-${e}-btn-arrow${n}`]}const dp=(e,n)=>new Date(e,n+1,0).getDate(),Uu=(e,n)=>{const i=new Date(e),s=i.getMonth()+n,l=dp(i.getFullYear(),s);return l<i.getDate()&&i.setDate(l),i.setMonth(s),i},_u=(()=>{const e={yyyy:i=>i.getFullYear(),m:i=>i.getMonth()+1,mm:i=>`0${i.getMonth()+1}`.slice(-2),mmm:(i,s)=>i.toLocaleDateString(s,{month:"long"}).slice(0,3),Mmm:(i,s)=>{const l=i.toLocaleDateString(s,{month:"long"});return(l[0].toUpperCase()+l.slice(1).toLowerCase()).slice(0,3)},mmmm:(i,s)=>i.toLocaleDateString(s,{month:"long"}),Mmmm:(i,s)=>{const l=i.toLocaleDateString(s,{month:"long"});return l[0].toUpperCase()+l.slice(1).toLowerCase()}},n=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g");return(i,s,l)=>{const c=/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/,f=s.match(c).slice(1),h=f[1],g=[f[0],f[2]].map(m=>({label:m.replace(/\[[^\]]+\]/,C=>C.slice(1,-1).replace(n,b=>e[b](l,i))),type:m.indexOf("yy")!==-1?"year":"month"}));return{separator:h,labels:g}}})(),ti=e=>{const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()},fp=(e,n,i)=>{if(!n||!i)return!1;const[s,l]=[n,i].sort();return e>=s&&e<=l},hp={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:()=>({from:null,to:null,selecting:!1})},focusedDate:{type:Date,required:!0}};var io=a.defineComponent({props:hp,emits:["pick","pick-click","changeRange"],setup(e,{emit:n}){const i=a.computed(()=>new Rg.Generator({onlyDays:!0,weekStart:0})),s=a.computed(()=>{const m=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"];return m.splice(0,7-0).concat(m.splice(0,0))}),l=a.computed(()=>e.selectionMode==="range"&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue),c=a.computed(()=>{const m=e.tableDate.getFullYear(),M=e.tableDate.getMonth(),C=ti(new Date),b=l.value.filter(Boolean).map(ti),[N,k]=l.value.map(ti),S=e.rangeState.from&&ti(e.rangeState.from),J=e.rangeState.to&&ti(e.rangeState.to),D=e.selectionMode==="range",E=typeof e.disableDate=="function"&&e.disableDate;return i.value(m,M,z=>{z.date instanceof Date&&z.date.setTime(z.date.getTime()+z.date.getTimezoneOffset()*6e4);const U=z.date&&ti(z.date),Q=z.date&&M===z.date.getMonth();return ze(O({},z),{type:U===C?"today":z.type,selected:Q&&b.includes(U),disabled:z.date&&E&&E(new Date(U)),range:Q&&D&&fp(U,S,J),start:Q&&D&&U===N,end:Q&&D&&U===k})}).cells.slice(0)});return{headerDays:s,cells:c,getCellCls:m=>["bk-date-picker-cells-cell",{["bk-date-picker-cells-cell-selected"]:m.selected||m.start||m.end,["bk-date-picker-cells-cell-disabled"]:m.disabled,["bk-date-picker-cells-cell-today"]:m.type==="today",["bk-date-picker-cells-cell-prev-month"]:m.type==="prevMonth",["bk-date-picker-cells-cell-next-month"]:m.type==="nextMonth",["bk-date-picker-cells-cell-week-label"]:m.type==="weekLabel",["bk-date-picker-cells-cell-range"]:m.range&&!m.start&&!m.end}],handleClick:m=>{if(m.disabled||m.type==="weekLabel")return;const M=new Date(ti(m.date));n("pick",M),n("pick-click")},handleMouseMove:m=>{if(!e.rangeState.selecting||m.disabled)return;const M=m.date;n("changeRange",M)}}},render(){return a.createVNode("div",{class:"bk-date-picker-cells"},[a.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map(e=>a.createVNode("span",null,[e]))]),this.cells.map(e=>a.createVNode("span",{class:this.getCellCls(e),onClick:()=>this.handleClick(e),onMouseenter:()=>this.handleMouseMove(e)},[a.createVNode("em",null,[e.desc])]))])}});const gp={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator(e){return["year","month","date","time"].indexOf(e)<0?(console.error(`selectionMode property is not valid: '${e}'`),!1):!0}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}};var pp=a.defineComponent({props:gp,emits:["pick","pick-success"],setup(e,{emit:n}){const i=Q=>Q.match(/^time/)?"time-picker":`${Q}-table`,s=e.modelValue.slice().sort(),l=a.reactive({currentView:e.selectionMode||"date",pickerTable:i(e.selectionMode),dates:s,panelDate:e.startDate||s[0]||new Date}),c=()=>{setTimeout(()=>{l.currentView=e.selectionMode},500)},f=Q=>{l.panelDate=Q,l.pickerTable==="year-table"?l.pickerTable="month-table":l.pickerTable=i(l.currentView)},h=(Q,H)=>{console.warn("handlePick");let F=Q;e.selectionMode==="year"?F=new Date(Q.getFullYear(),0,1):e.selectionMode==="month"?F=new Date(l.panelDate.getFullYear(),Q.getMonth(),1):F=new Date(Q),l.dates=[F],n("pick",F,!1,H||e.selectionMode)},g=()=>{c(),n("pick-success")},m=Q=>{Q.value&&n("pick",Q.value(),!1,void 0,Q),Q.onClick&&Q.onClick(this),e.shortcutClose&&g()},M=()=>{l.currentView=e.selectionMode,l.pickerTable=i(l.currentView)},C=Q=>{e.selectionMode==="year"||l.pickerTable==="year-table"?l.panelDate=new Date(l.panelDate.getFullYear()+Q*10,0,1):l.panelDate=Uu(l.panelDate,Q*12)},b=Q=>{l.panelDate=Uu(l.panelDate,Q)},N=a.ref(null),k=a.ref(null),S=Q=>{var H,F;Q&&((H=N==null?void 0:N.value)==null||H.updateScroll(),(F=k==null?void 0:k.value)==null||F.updateScroll())},J=a.computed(()=>l.pickerTable===`${l.currentView}-table`?h:f),D=a.computed(()=>{const Q="zh-CN",H="[yyyy]-[mm]",F=l.panelDate,{labels:ne,separator:G}=_u(Q,H,F),le=_=>()=>{l.pickerTable=i(_)};return{separator:G,labels:ne.map(_=>{const q=_;return q.handler=le(_.type),q})}}),E=a.computed(()=>D.value.labels[0].type==="year"||l.currentView==="date"),z=a.computed(()=>D.value.labels[1].type==="year"||l.currentView==="date"),U=a.computed(()=>l.currentView==="time");return console.warn("panelDatepanelDate",l.panelDate),ze(O({},a.toRefs(l)),{panelPickerHandlers:J,datePanelLabel:D,showLabelFirst:E,showLabelSecond:z,handleShortcutClick:m,changeYear:C,changeMonth:b,reset:M,isTime:U,onToggleVisibility:S})},render(){return a.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:e=>{e.preventDefault()}},[this.shortcuts.length?a.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map(e=>a.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:()=>this.handleShortcutClick(e)},[e.text]))]):"",a.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.changeYear(-1)},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]),this.pickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev"),onClick:()=>this.changeMonth(-1)},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.datePanelLabel.labels[0].handler},[this.datePanelLabel.labels[0].label]),[[a.vShow,this.showLabelFirst]]),this.currentView==="date"?` ${this.datePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.datePanelLabel.labels[1].handler},[this.datePanelLabel.labels[1].label]),[[a.vShow,this.showLabelSecond]])]):"",a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.changeYear(1)},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]),this.pickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.changeMonth(1)},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),a.createVNode("div",{class:"bk-picker-panel-content"},[this.currentView!=="time"?(()=>{switch(this.pickerTable){case"date-table":return a.createVNode(io,{tableDate:this.panelDate,disableDate:this.disableDate,selectionMode:this.selectionMode,modelValue:this.dates,focusedDate:this.focusedDate,onPick:this.panelPickerHandlers},null);default:return null}})():""])])])}});const mp={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator(e){return["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0?(console.error(`type property is not valid: '${e}'`),!1):!0}},shortcuts:{type:Array,default:()=>[]},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator(e){return["year","month","date","time"].indexOf(e)<0?(console.error(`selectionMode property is not valid: '${e}'`),!1):!0}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}};var Mp=a.defineComponent({props:mp,emits:["pick"],setup(e,{emit:n}){const[i,s]=e.modelValue.map($=>$||lp()),l=e.startDate?e.startDate:i,c=a.reactive({currentView:e.selectionMode||"date",leftPickerTable:`${e.selectionMode}-table`,rightPickerTable:`${e.selectionMode}-table`,leftPanelDate:l,rightPanelDate:new Date(l.getFullYear(),l.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:i&&!s},upToNowEnable:!1,dates:e.modelValue}),f=($,ce)=>!$||!ce?0:$.getTime()-ce.getTime(),h=()=>{c.currentView=e.selectionMode,c.leftPickerTable=`${c.currentView}-table`,c.rightPickerTable=`${c.currentView}-table`},g=a.ref(null),m=a.ref(null),M=$=>{var ce,de;$&&((ce=g==null?void 0:g.value)==null||ce.updateScroll(),(de=m==null?void 0:m.value)==null||de.updateScroll())},C=($,ce,de,me=!0)=>{const De=new Date(c[`${$}PanelDate`]);if(De[`set${ce}`](De[`get${ce}`]()+de),c[`${$}PanelDate`]=De,!!me)if(e.splitPanels){const xe=$==="left"?"right":"left";$==="left"&&c.leftPanelDate>=c.rightPanelDate&&C(xe,ce,1),$==="right"&&c.rightPanelDate<=c.leftPanelDate&&C(xe,ce,-1)}else{const xe=$==="left"?"right":"left",Y=c[`${xe}PanelDate`],K=new Date(Y);if(ce==="Month"){const he=new Date(K.getFullYear(),K.getMonth()+de+1,0).getDate();K.setDate(Math.min(he,K.getDate()))}K[`set${ce}`](K[`get${ce}`]()+de),c[`${xe}PanelDate`]=K}},b=$=>{const ce=c.currentView==="year"?-10:-1;C($,"FullYear",ce)},N=$=>{const ce=c.currentView==="year"?10:1;C($,"FullYear",ce)},k=$=>{C($,"Month",-1)},S=$=>{C($,"Month",1)},J=$=>{c[`${$}PickerTable`]="year-table"},D=$=>{c[`${$}PickerTable`]="month-table"},E=$=>{const ce="zh-CN",de="[yyyy]-[mm]",me=c[`${$}PanelDate`],{labels:De,separator:xe}=_u(ce,de,me),Y=K=>{const he=K==="month"?D:J;return()=>he($)};return{separator:xe,labels:De.map(K=>{const he=K;return he.handler=Y(K.type),he})}},z=($,ce)=>{n("pick",c.dates,$,ce||e.type)},U=($,ce)=>{if(console.warn("handleRangePick"),c.rangeState.selecting||c.currentView==="time"){if(c.currentView==="time")c.dates=$;else{const[de,me]=[c.rangeState.from,$].sort(f),De=ce==="upToNow"?new Date:new Date(new Date(new Date(me.setHours(23)).setMinutes(59)).setSeconds(59));c.dates=[de,De],c.rangeState={from:de,to:De,selecting:!1}}z(!1,ce||"date")}else c.upToNowEnable=new Date($).getTime()<new Date().getTime(),c.rangeState={from:$,to:null,selecting:!0}},Q=($,ce)=>{if(c[`${$}PanelDate`]=ce,c[`${$}PickerTable`]==="year-table"?c[`${$}PickerTable`]="month-table":c[`${$}PickerTable`]=`${c.currentView}-table`,!e.splitPanels){const me=$==="left"?"right":"left";c[`${me}PanelDate`]=ce,C(me,"Month",me==="left"?-1:1,!1)}},H=$=>{c.rangeState.to=$};a.watch(()=>e.selectionMode,$=>{c.currentView=$||"range"});const F=a.computed(()=>c.currentView==="time"),ne=a.computed(()=>E("left")),G=a.computed(()=>E("right")),le=a.computed(()=>c.leftPickerTable.split("-").shift()),_=a.computed(()=>c.rightPickerTable.split("-").shift()),q=a.computed(()=>ne.value.labels[0].type==="year"||c.currentView==="date"),Z=a.computed(()=>ne.value.labels[1].type==="year"||c.currentView==="date"),x=a.computed(()=>G.value.labels[0].type==="year"||c.currentView==="date"),R=a.computed(()=>G.value.labels[1].type==="year"||c.currentView==="date"),te=a.computed(()=>{const $=`${c.currentView}-table`;return{left:c.leftPickerTable!==$,right:c.rightPickerTable!==$}}),se=a.computed(()=>({left:te.value.left?Q.bind("left"):U,right:te.value.right?Q.bind("right"):U}));return ze(O({},a.toRefs(c)),{isTime:F,prevYear:b,nextYear:N,prevMonth:k,nextMonth:S,leftDatePanelLabel:ne,rightDatePanelLabel:G,leftDatePanelView:le,rightDatePanelView:_,leftShowLabelFirst:q,leftShowLabelSecond:Z,rightShowLabelFirst:x,rightShowLabelSecond:R,preSelecting:te,panelPickerHandlers:se,reset:h,onToggleVisibility:M,handleRangePick:U,handleChangeRange:H})},render(){return a.createVNode("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:e=>{e.preventDefault()}},[a.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[a.withDirectives(a.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevYear("left")},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]),this.leftPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev"),onClick:()=>this.prevMonth("left")},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.leftDatePanelLabel.labels[0].handler},[this.leftDatePanelLabel.labels[0].label]),[[a.vShow,this.leftShowLabelFirst]]),this.leftDatePanelView==="date"?` ${this.leftDatePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.leftDatePanelLabel.labels[1].handler},[this.leftDatePanelLabel.labels[1].label]),[[a.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||this.leftPickerTable!=="date-table"?a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.nextYear("left")},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||this.leftPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.nextMonth("left")},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),this.currentView!=="time"?(()=>{switch(this.leftPickerTable){case"date-table":return a.createVNode(io,{selectionMode:"range",tableDate:this.leftPanelDate,disableDate:this.disableDate,rangeState:this.rangeState,modelValue:this.preSelecting.left?[this.dates[0]]:this.dates,focusedDate:this.focusedDate,onChangeRange:this.handleChangeRange,onPick:this.panelPickerHandlers.left},null);default:return null}})():""]),[[a.vShow,!this.isTime]]),a.withDirectives(a.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||this.rightPickerTable!=="date-table"?a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevYear("right")},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&this.rightPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevMonth("right")},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.rightDatePanelLabel.labels[0].handler},[this.rightDatePanelLabel.labels[0].label]),[[a.vShow,this.rightShowLabelFirst]]),this.rightDatePanelView==="date"?` ${this.rightDatePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.rightDatePanelLabel.labels[1].handler},[this.rightDatePanelLabel.labels[1].label]),[[a.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(()=>(this.rangeState.selecting||this.currentView==="time")&&this.upToNowEnable?a.createVNode("span",{class:"up-to-now",onClick:()=>this.handleRangePick(new Date,"upToNow")},[a.createTextVNode("\u81F3\u4ECA")]):a.createVNode("span",{class:"up-to-now disabled"},[a.createTextVNode("\u81F3\u4ECA")]))():"",a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.nextYear("right")},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]),this.rightPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.nextMonth("right")},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),this.currentView!=="time"?(()=>{switch(this.rightPickerTable){case"date-table":return a.createVNode(io,{selectionMode:"range",tableDate:this.rightPanelDate,disableDate:this.disableDate,rangeState:this.rangeState,modelValue:this.preSelecting.right?[this.dates[this.dates.length-1]]:this.dates,focusedDate:this.focusedDate,onChangeRange:this.handleChangeRange,onPick:this.panelPickerHandlers.right},null);default:return null}})():""]),[[a.vShow,!this.isTime]])])])}});const Ip={type:{type:String,default:"date",validator(e){return["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0?(console.error(`type property is not valid: '${e}'`),!1):!0}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:()=>({})},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0?(console.error(`placement property is not valid: '${e}'`),!1):!0},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:()=>[]},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},options:{type:Object,default:()=>({})},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function};var yp=a.defineComponent({name:"DatePicker",directives:{clickoutside:Rs},props:Ip,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup(e,{slots:n,emit:i}){const s=e.type.includes("range"),l=s?[null,null]:[null];let c=cp((s?e.modelValue:[e.modelValue])||[])?l:Kr(e.modelValue,e.type,e.multiple,e.format),f=null;e.shortcutSelectedIndex!==-1&&(f=e.shortcuts[e.shortcutSelectedIndex]||null,f&&(c=f.value()));const h=a.reactive({showClose:!1,visible:!1,internalValue:c,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:c[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:c.map(Hu),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:f,onSelectionModeChange:g});function g(Y){let K=Y;return Y.match(/^date/)&&(K="date"),h.selectionMode=["year","month","date","time"].indexOf(K)>-1&&K,h.selectionMode}const m=a.computed(()=>{if(e.multiple)return h.internalValue.slice();const Y=e.type.includes("range");let K=h.internalValue.map(he=>he instanceof Date?new Date(he):he||"");return e.type.match(/^time/)&&(K=K.map(he=>sr(he,e.type,e.multiple,e.format))),Y||e.multiple?K:K[0]}),M=a.computed(()=>e.type.match(/^time/)?m.value:e.multiple?sr(m.value,e.type,e.multiple,e.format):Array.isArray(m.value)?m.value.map(Y=>sr(Y,e.type,e.multiple,e.format)):sr(m.value,e.type,e.multiple,e.format)),C=a.computed(()=>e.type==="daterange"||e.type==="datetimerange"?"DateRangePanel":"DatePanel"),b=a.computed(()=>e.open===null?h.visible:e.open),N=a.computed(()=>(console.warn("state.internalValue",h.internalValue),sr(h.internalValue,e.type,e.multiple,e.format))),k=a.computed(()=>{var Y;return((Y=h.shortcut)==null?void 0:Y.text)&&e.useShortcutText?h.shortcut.text:N.value}),S=a.computed(()=>!!n.trigger||e.type==="datetime"||e.type==="datetimerange"||e.multiple),J=a.computed(()=>{let Y="";return e.fontSize==="medium"?Y="medium-font":e.fontSize==="large"&&(Y="large-font"),Y}),D=a.computed(()=>{let Y="";return e.fontSize==="medium"?Y="medium-width":e.fontSize==="large"&&(Y="large-width"),Y}),E=a.computed(()=>{var Y;return((Y=h.shortcut)==null?void 0:Y.text)&&e.useShortcutText?!0:!e.editable||e.readonly}),z=a.computed(()=>!!n.footer),U=a.computed(()=>C.value==="RangeTimePickerPanel"?e.allowCrossDay:!1),Q=a.ref(null),H=()=>{var Y;(Y=Q==null?void 0:Q.value)==null||Y.focus()};a.watch(()=>h.visible,Y=>{var K,he;console.error(123),Y===!1&&((K=F.value)==null||K.destoryDropdown()),(he=F.value)==null||he.updateDropdown(),i("open-change",Y)});const F=a.ref(null);a.watch(()=>e.modelValue,Y=>{h.internalValue=Kr(Y,e.type,e.multiple,e.format)}),a.watch(()=>e.open,Y=>{h.visible=Y===!0}),a.watch(()=>e.type,Y=>{g(Y)}),a.watch(()=>m,(Y,K)=>{const he=JSON.stringify(Y),nt=JSON.stringify(K);(he!==nt||typeof Y!=typeof K)&&i("input",Y)}),a.onMounted(()=>{e.type.indexOf("date")>-1,h.timeEnterMode=!0;const Y=e.modelValue,K=m.value;(typeof Y!=typeof K||JSON.stringify(Y)!==JSON.stringify(K))&&i("input",m.value),e.open!==null&&(h.visible=e.open),a.provide(up,{props:e,focus:()=>H()})});const ne=a.ref(null),G=Y=>{var K;if(h.disableCloseUnderTransfer)return h.disableCloseUnderTransfer=!1,!1;if(Y&&Y.type==="mousedown"&&h.visible){Y.preventDefault(),Y.stopPropagation();return}if(h.visible){const he=(K=ne==null?void 0:ne.value)==null?void 0:K.$el;if(Y&&he&&he.contains(Y.target))return;h.visible=!1,Y==null||Y.preventDefault(),Y==null||Y.stopPropagation();return}h.isFocused=!1,h.disableClickOutSide=!1},le=()=>{var Y,K;(Y=Q==null?void 0:Q.value)==null||Y.focus(),(K=Q==null?void 0:Q.value)==null||K.click()},_=()=>{e.readonly||e.disabled||N!=null&&N.value&&(h.showClose=!0)},q=Y=>{var K;(K=Y.toElement)!=null&&K.classList.contains("clear-action")||(h.showClose=!1)},Z=Y=>{a.nextTick(()=>{var K;i("change",M.value,Y),i("update:modelValue",m.value),e.type.indexOf("time")<0&&((K=Q==null?void 0:Q.value)==null||K.blur())})},x=Y=>{var ft;const K=e.type.includes("range")||e.multiple,he=N.value,nt=Y.target.value,Je=Kr(nt,e.type,e.multiple,e.format),$e=K?Je:Je[0],dt=(ft=e.disableDate)==null?void 0:ft.call(e,$e),st=Je.reduce((Tt,Ee)=>Tt&&Ee instanceof Date,!0);nt!==he&&!dt&&st?(Z(e.type),h.internalValue=Je):h.forceInputRerender=h.forceInputRerender+1},R=Y=>{e.readonly||(h.isFocused=!0,!(Y&&Y.type==="focus")&&(e.disabled||(h.visible=!0)))},te=()=>{var Y;(Y=ne==null?void 0:ne.value)==null||Y.reset()},se=Y=>{var K;if(h.internalFocus){h.internalFocus=!1;return}if(h.visible){Y.preventDefault();return}h.isFocused=!1,g(e.type),h.internalValue=h.internalValue.slice(),te(),(K=ne==null?void 0:ne.value)==null||K.onToggleVisibility(!1)},$=Y=>{const{keyCode:K}=Y;if(K===9&&h.visible)if(Y.stopPropagation(),Y.preventDefault(),S.value){const nt=".bk-picker-confirm > *",Je=F.value.$el.querySelectorAll(nt);h.internalFocus=!0,[...Je][Y.shiftKey?"pop":"shift"]().focus()}else G();const he=[37,38,39,40];if(!h.visible&&he.includes(K)){h.visible=!0;return}K===27&&h.visible&&(Y.stopPropagation(),G()),!!he.includes(K)&&h.focusedTime.active&&Y.preventDefault()},ce=()=>{h.visible=!1,h.internalValue=h.internalValue.map(()=>null),i("clear"),Z(e.type),te(),h.showClose=!1,h.shortcut=null,setTimeout(()=>g(e.type),500)},de=()=>{e.appendToBody&&(h.disableCloseUnderTransfer=!0)},me=()=>{var Y;h.visible=!1,a.nextTick(()=>{i("pick-success")}),(Y=Q==null?void 0:Q.value)==null||Y.blur(),te()},De=(Y,K=!1,he,nt)=>{let Je=Y;if(e.multiple){const dt=Je.getTime(),st=h.internalValue.findIndex(Ee=>Ee&&Ee.getTime()===dt),Tt=[...h.internalValue,Je].filter(Boolean).map(Ee=>Ee.getTime()).filter((Ee,W,X)=>X.indexOf(Ee)===W&&W!==st);h.internalValue=Tt.map(Ee=>new Date(Ee))}else Je=Kr(Y,e.type,e.multiple,e.format),h.internalValue=Array.isArray(Je)?Je:[Je];if(h.internalValue[0]){const[dt]=h.internalValue;h.focusedDate=dt}h.focusedTime=ze(O({},h.focusedTime),{time:h.internalValue.map(Hu)}),S.value||(g(e.type),h.visible=K),he==="upToNow"&&e.type==="daterange"&&me(),h.shortcut=nt,Z(he);const $e=e.shortcuts.findIndex(dt=>dt===h.shortcut);i("shortcut-change",h.shortcut,$e)},xe=a.ref(null);return ze(O({},a.toRefs(h)),{panel:C,publicStringValue:M,opened:b,visualValue:N,displayValue:k,isConfirm:S,fontSizeCls:J,longWidthCls:D,localReadonly:E,hasFooter:z,allowCrossDayProp:U,pickerDropdownRef:F,inputRef:Q,triggerRef:xe,pickerPanelRef:ne,handleClose:G,handleIconClick:le,handleInputMouseenter:_,handleInputMouseleave:q,handleFocus:R,handleBlur:se,handleKeydown:$,handleInputChange:x,handleClear:ce,handleTransferClick:de,onPick:De})},render(){var n,i,s;const e=a.createVNode("div",null,[a.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},[this.type==="time"||this.type==="timerange"?a.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[a.createVNode("g",{id:"time"},[a.createVNode("path",{fill:"#c4c6cc",d:"M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"},null),a.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):a.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[a.createVNode("g",{id:"date"},[a.createVNode("path",{fill:"#c4c6cc",d:"M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"},null),a.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),a.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),a.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),a.createVNode("polygon",{fill:"#c4c6cc",points:"403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"},null)])])]),a.createVNode("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,this.behavior==="simplicity"?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?a.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return a.withDirectives(a.createVNode("div",{class:["bk-date-picker",this.type==="datetimerange"?"long":"",this.longWidthCls]},[a.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[(s=(i=(n=this.$slots).header)==null?void 0:i.call(n))!=null?s:e]),a.createVNode(a.Teleport,{to:"body",disabled:!this.appendToBody},{default:()=>[a.createVNode(a.Transition,{name:"bk-fade-down-transition"},{default:()=>[a.withDirectives(a.createVNode(Og,{class:[this.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:this.triggerRef,placement:this.placement,extPopoverCls:this.extPopoverCls,appendToBody:this.appendToBody,onClick:this.handleTransferClick},{default:()=>[this.panel==="DateRangePanel"?a.createVNode(Mp,{ref:"pickerPanelRef",shortcuts:this.shortcuts,modelValue:this.internalValue,type:this.type,selectionMode:this.selectionMode,startDate:this.startDate,disableDate:this.disableDate,focusedDate:this.focusedDate,onPick:this.onPick},null):a.createVNode(pp,{ref:"pickerPanelRef",shortcuts:this.shortcuts,multiple:this.multiple,clearable:this.clearable,shortcutClose:this.shortcutClose,selectionMode:this.selectionMode,modelValue:this.internalValue,startDate:this.startDate,disableDate:this.disableDate,focusedDate:this.focusedDate,onPick:this.onPick},null)]}),[[a.vShow,this.opened]])]})]})]),[[a.resolveDirective("clickoutside"),this.handleClose]])}});const Xu=Re(yp);d.string,d.string,d.string,d.string,d.bool,d.bool,d.string,d.bool;var Cp=a.defineComponent({name:"Transfer",props:{title:{type:Array,default:()=>[]},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:()=>[]},targetList:{type:Array,default:()=>[]},emptyContent:{type:Array,default:()=>[]}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup(e,{emit:n}){let i=[],s=e.sortKey,l=e.sortable;const c=a.ref(""),f=a.ref(null),h=a.ref([]),g=a.ref([]),m=a.ref(-1),M=a.ref(-1),C=a.computed(()=>!e.sourceList||!Array.isArray(e.sourceList)?"empty":e.sourceList.toString().indexOf("[object Object]")!==-1),b=a.computed(()=>C.value?e.settingKey:"index"),N=a.computed(()=>C.value?e.displayKey:"value"),k=a.computed(()=>c.value?h.value.filter(_=>!ef(_[N.value])&&String(_[N.value]).indexOf(c.value)>-1):h.value);a.watch(()=>e.sourceList,()=>{C.value!=="empty"&&(S(),E())},{deep:!0}),a.watch(()=>e.targetList,()=>{S(),E()},{deep:!0}),a.watch(()=>[N.value,b.value],()=>{S()}),a.watch(()=>e.sortKey,_=>{s=_,E()}),a.watch(()=>e.sortable,_=>{l=_,E()});const S=()=>{C.value!=="empty"&&(C.value?D():J())},J=()=>{if(!e.targetList.length||e.targetList.length>e.sourceList.length){const _=[];for(let q=0;q<e.sourceList.length;q++)_.push({index:q,value:e.sourceList[q]});h.value=[..._],g.value.splice(0,g.value.length),n("change",h.value,[],[])}else{const _=[],q=[];for(let x=0;x<e.sourceList.length;x++)_.push({index:x,value:e.sourceList[x]});e.targetList.forEach(x=>{const R=_.find(te=>te.value===x);R&&q.push(R)}),g.value=[...q];const Z=_.filter(x=>q.every(R=>R.index!==x.index));h.value=[...Z],n("change",h.value,[...U(g.value,!1)],[])}},D=()=>{if(!e.targetList.length||e.targetList.length>e.sourceList.length)h.value.splice(0,h.value.length,...e.sourceList),g.value=[],n("change",h.value,[],[]);else{const _=e.sourceList.filter(x=>e.targetList.every(R=>R!==x[b.value])),q=[];e.sourceList.forEach(x=>{e.targetList.forEach(R=>{x[b.value]===R&&q.push(x)})}),g.value=[...q],h.value=[..._];const Z=[...U(g.value)];n("change",h.value,g.value,Z)}},E=()=>{let _=[];if(C.value)l||(s=""),_=[...e.sourceList];else{s=l?"index":"";for(let q=0;q<e.sourceList.length;q++)_.push({index:q,value:e.sourceList[q]})}if(s){const q=[];if(_.forEach(Z=>{q.push(Z[s])}),i=[...q],i.length===e.sourceList.length){const Z=[...h.value];h.value=[...F(Z,s,i)]}}},z=()=>{const _=h.value,q=C.value?g.value:[...U(g.value,!1)],Z=C.value?[...U(g.value)]:[];n("change",_,q,Z)},U=(_,q=!0)=>{const Z=[];return _.length?([..._].forEach(R=>{if(q)for(const[te,se]of Object.entries(R))te===b.value&&Z.push(se);else Z.push(R.value)}),Z):[]},Q=()=>{m.value=-1;const _=k.value,q=g.value;_.forEach(Z=>{q.push(Z),ne(Z)}),i.length===e.sourceList.length?g.value=[...F(q,s,i)]:g.value=[...q],z()},H=()=>{M.value=-1;const _=g.value,q=h.value;for(;_.length;){const Z=_.shift();q.push(Z),i.length===e.sourceList.length?h.value=[...F(q,s,i)]:h.value=[...q]}z()},F=(_,q,Z)=>{const x=Z;return _.sort((R,te)=>x.indexOf(R[q])-x.indexOf(te[q])>=0)},ne=_=>{h.value=h.value.filter(q=>q[b.value]!==_[b.value])},G=(_,q,Z,x)=>{q.preventDefault(),q.stopPropagation();const R=_==="over"?x:-1;Z?m.value=R:M.value=R},le=(_,q,Z)=>{_.preventDefault(),_.stopPropagation(),Z?m.value=-1:M.value=-1;const x=Z?k.value[q]:g.value.splice(q,1)[0],R=Z?g.value:h.value;R.push(x),Z&&ne(x);const te=i.length===e.sourceList.length?[...F(R,s,i)]:[...R];Z?g.value=[...te]:h.value=[...te],z()};return C.value!=="empty"&&(C.value?D():J(),E()),{keyword:c,transferRef:f,dataList:h,allToRight:Q,allToLeft:H,displayDataList:k,displayCode:N,leftHoverIndex:m,rightHoverIndex:M,handleItemMouseEvent:G,handleItemClick:le,hasSelectedList:g}},render(){const{extCls:e,title:n,emptyContent:i,searchable:s,searchPlaceholder:l}=this.$props,c=m=>{var k,S;const M=m==="left-header",C=M?`${(k=n[0])!=null?k:"\u5DE6\u4FA7\u5217\u8868"}`:`${(S=n[1])!=null?S:"\u53F3\u4FA7\u5217\u8868"}`,b=M?!this.dataList.length:!this.hasSelectedList.length,N=()=>{M&&this.dataList.length&&this.allToRight(),!M&&this.hasSelectedList.length&&this.allToLeft()};return this.$slots[m]?a.createVNode("div",{class:"slot-header"},[a.createVNode("div",{class:"slot-content"},[this.$slots[m]()])]):a.createVNode("div",{class:"header"},[`${C}\uFF08\u5171${this.dataList.length}\u6761\uFF09`,a.createVNode("span",{class:{disabled:b},onClick:()=>N()},[M?"\u5168\u90E8\u6DFB\u52A0":"\u6E05\u7A7A"])])},f=m=>{var b;const M=m==="left-empty-content",C=(b=M?i[0]:i[1])!=null?b:M?"\u65E0\u6570\u636E":"\u672A\u9009\u62E9\u4EFB\u4F55\u9879";return this.$slots[m]?a.createVNode("div",null,[this.$slots[m]()]):a.createVNode("div",{class:"empty"},[C])},h=(m,M,C=!0)=>{const b=C?this.leftHoverIndex:this.rightHoverIndex;return a.createVNode("div",{class:"item-content"},[a.createVNode("span",{class:"content-text",title:m[this.displayCode]},[m[this.displayCode]]),a.createVNode("span",{class:["icon-wrapper",M===b?"hover":""]},[C?a.createVNode(ss,{class:"bk-icon"},null):a.createVNode(jn,{class:"bk-icon"},null)])])},g=m=>{const M=m==="left",C=M?this.displayDataList:this.hasSelectedList,b=M?"source-option":"target-option",N=M?"left-empty-content":"right-empty-content";return C.length?a.createVNode("ul",{class:["content",s&&M?"is-search":""]},[C.map((k,S)=>{var J,D,E;return a.createVNode("li",{key:S,class:[this.$slots[b]?"custom-item":""],onClick:z=>this.handleItemClick(z,S,M),onMouseover:z=>this.handleItemMouseEvent("over",z,M,S),onMouseleave:z=>this.handleItemMouseEvent("leave",z,M,S)},[(E=(D=(J=this.$slots)[b])==null?void 0:D.call(J,k))!=null?E:h(k,S,M)])})]):f(N)};return a.createVNode("div",{class:["bk-transfer",e],ref:"transferRef"},[a.createVNode("div",{class:"source-list"},[c("left-header"),s&&a.createVNode(xs,{modelValue:this.keyword,"onUpdate:modelValue":m=>this.keyword=m,class:"transfer-search-input",clearable:!0,placeholder:l||"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",type:"search","left-icon":"bk-icon icon-search"},null),g("left")]),a.createVNode("div",{class:"transfer"},null),a.createVNode("div",{class:"target-list"},[c("right-header"),g("right")])])}});const Ku=Re(Cp),bp={data:d.arrayOf(d.any).def([]),label:d.oneOfType([d.func.def(void 0),d.string.def("label")]),children:d.string.def("children"),indent:d.number.def(18),lineHeight:d.number.def(32),levelLine:d.oneOfType([d.bool.def(!1),d.func.def(void 0),d.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:d.bool.def(!1),prefixIcon:d.oneOfType([d.func.def(()=>{}),d.bool.def(!1)]).def(!0),async:d.shape({callback:d.func.def(null),cache:d.bool.def(!0)}),offsetLeft:d.number.def(5)};var $r={exports:{}},$u=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if($u){var qu=new Uint8Array(16);$r.exports=function(){return $u(qu),qu}}else{var ed=new Array(16);$r.exports=function(){for(var n=0,i;n<16;n++)(n&3)===0&&(i=Math.random()*4294967296),ed[n]=i>>>((n&3)<<3)&255;return ed}}for(var td=[],qr=0;qr<256;++qr)td[qr]=(qr+256).toString(16).substr(1);function Np(e,n){var i=n||0,s=td;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}var nd=Np,wp=$r.exports,Lp=nd,id,ro,ao=0,so=0;function kp(e,n,i){var s=n&&i||0,l=n||[];e=e||{};var c=e.node||id,f=e.clockseq!==void 0?e.clockseq:ro;if(c==null||f==null){var h=wp();c==null&&(c=id=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),f==null&&(f=ro=(h[6]<<8|h[7])&16383)}var g=e.msecs!==void 0?e.msecs:new Date().getTime(),m=e.nsecs!==void 0?e.nsecs:so+1,M=g-ao+(m-so)/1e4;if(M<0&&e.clockseq===void 0&&(f=f+1&16383),(M<0||g>ao)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ao=g,so=m,ro=f,g+=122192928e5;var C=((g&268435455)*1e4+m)%4294967296;l[s++]=C>>>24&255,l[s++]=C>>>16&255,l[s++]=C>>>8&255,l[s++]=C&255;var b=g/4294967296*1e4&268435455;l[s++]=b>>>8&255,l[s++]=b&255,l[s++]=b>>>24&15|16,l[s++]=b>>>16&255,l[s++]=f>>>8|128,l[s++]=f&255;for(var N=0;N<6;++N)l[s+N]=c[N];return n||Lp(l)}var vp=kp,Tp=$r.exports,xp=nd;function Sp(e,n,i){var s=n&&i||0;typeof e=="string"&&(n=e==="binary"?new Array(16):null,e=null),e=e||{};var l=e.random||(e.rng||Tp)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,n)for(var c=0;c<16;++c)n[s+c]=l[c];return n||xp(l)}var Dp=Sp,jp=vp,rd=Dp,oo=rd;oo.v1=jp,oo.v4=rd;var zp=oo;const ad="1px dashed #c3cdd7",sd=(e,n=void 0,i=[])=>{const{data:s,children:l}=e,c=[];let f=0;const h=new Map;function g(b,N,k,S){const J=(i||[]).find(D=>D.__uuid===b);return J?J[S]:N[k]}function m(b,N){return g(b,N,"isOpen","__isOpen")}function M(b,N){return g(b,N,"checked","__checked")}function C(b,N=0,k=null,S=null){const J=b.length;for(let D=0;D<J;D++){const E=b[D];if(Array.isArray(E))C(E,N,k,S);else if(typeof E=="object"&&E!==null){const z=E.__uuid||zp.v4(),U=S!==null?`${S}-${D}`:`${D}`,Q=!!(E[l]||[]).length,H={__depth:N,__index:D,__uuid:z,__parentId:k,__hasChild:Q,__path:U,__isRoot:k===null,__order:f,__isOpen:m(z,E)&&Q,__checked:M(z,E),[l]:null};Object.assign(E,{__uuid:z}),h.set(z,H),f+=1,c.push(ze(O({},E),{[l]:null})),Object.prototype.hasOwnProperty.call(E,l)&&C(E[l]||[],N+1,z,U)}}}return C(n||s),[c,h]},od=(e,n,i=null,s=null,l=null,c=[])=>{const f=e[n];return typeof f=="boolean"?f?s:l:ld(i,e,n,c)},ld=(e,n,i,s=[])=>{const l=n[i];if(typeof l=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,l)||console.error(`cannot find node label with key ${l}`),e[l]):l;if(typeof l=="function"){const c=l.apply(globalThis,[e,...s]);if(typeof c=="string")return c;console.error("props label with function return value is not string, please check and return string");return}},Jp=(e,n)=>ld(e,n,"label"),lo=(e,n)=>e.get(n)||{},Qp=(e,n,i)=>{var s;return(s=lo(e,n))==null?void 0:s[i]},Pp=(e,n)=>({"--level-line":od(n,"levelLine",e,ad,null,["tree"]),"--lineHeight":`${n.lineHeight}px`,"--indent":`${n.indent}px`,"--offset-left":`${n.offsetLeft}px`}),Op=(e,n,i={})=>{const{schema:s}=i,l=Qp(s,e.__uuid,"__depth");return O({"--depth":l},typeof n.levelLine=="function"?{"--level-line":od(n,"levelLine",e,ad,null,["node"])}:{})},Ap=(e,n,i)=>{const{__isRoot:s,__isOpen:l}=lo(n,e.__uuid)||{};return{"is-root":s,"bk-tree-node":!0,"is-open":l,"is-virtual-render":i.virtualRender,"level-line":i.levelLine}},Ep=(e,n)=>{const{__checked:i}=lo(n,e.__uuid)||{};return{"is-checked":i,[tt("node-row")]:!0}},Vp=(e,n,i,s,l)=>{cd(e,n,i,{[s]:l})},cd=(e,n,i,s)=>{const c=e.split("-").reduce((f,h)=>{const g=Number(h);return Array.isArray(f)?f[g]:f[i][g]},n);Object.assign(c,s||{})};var Wp=a.defineComponent({name:"Tree",props:bp,emits:["check"],setup(e,n){const i=sd(e),s=[],l=a.reactive({data:i[0],schema:i[1],levelLineSchema:{}});a.watch(()=>[e.data],x=>{const R=sd(e,x,c.value);l.data=R[0],l.schema=R[1]},{deep:!0});const c=a.computed(()=>Array.from(l.schema.values())),f=x=>l.schema.get(x),h=(x,R)=>{var te;return(te=f(x.__uuid))==null?void 0:te[R]},g=(x,R,te)=>l.schema.set(x.__uuid,ze(O({},f(x.__uuid)),{[R]:te})),m=x=>h(x,"__path"),M=x=>h(x,"__isRoot"),C=x=>h(x,"__isOpen"),b=x=>h(x,"__hasChild"),N=a.computed(()=>l.data.filter(x=>G(x))),k=x=>{var R;return typeof x=="object"?C(x):typeof x=="string"?(R=f(x))==null?void 0:R.__isOpen:!1},S=x=>k(x)?a.createVNode(fs,{class:tt("tree-icon")},null):a.createVNode(hs,{class:tt("tree-icon")},null),J=x=>{if(typeof x=="string")return x;if(typeof x=="object"&&x!==null){if(x.__v_isVNode)return x;const{node:R,className:te,text:se,style:$}=x;return a.h(R,{class:te,style:$},se)}return null},D=x=>{let R=null;return typeof e.prefixIcon=="function"&&(R=e.prefixIcon(M(x),b(x)||x.async,k(x),"action",x),R!=="default")?J(R):(R==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon)&&(b(x)||x.async)?k(x)?a.createVNode(us,null,null):a.createVNode(Pr,null,null):null},E=x=>{let R=null;return typeof e.prefixIcon=="function"&&(R=e.prefixIcon(M(x),b(x)||x.async,k(x),"node_type",x),R!=="default")?J(R):R==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?M(x)||b(x)?S(x):a.createVNode(Cs,{class:tt("tree-icon")},null):null},z=x=>x.loading?a.createVNode(Is,null,null):"",U=x=>{const R=!k(x);g(x,"__isOpen",R),!R&&N.value.filter(te=>String.prototype.startsWith.call(m(te),m(x))).forEach(te=>g(te,"__isOpen",R))},Q=(x,R)=>{if(typeof x=="object"&&x!==null){g(R,"__isOpen",!0);const te=Array.isArray(x)?x:[x];Vp(m(R),e.data,e.children,e.children,te)}},H=x=>{if(x.async){const{callback:R=null,cache:te=!0}=e.async||{};if(typeof R=="function"){if(x.cached)return;Object.assign(x,{loading:!0}),R(x,se=>Q(se,x)).then(se=>Q(se,x)).catch(se=>console.error("load remote data error:",se)).finally(()=>{cd(m(x),e.data,e.children,O({loading:!1},te?{cached:!0}:{}))})}else console.error("async need to set prop: asyncLoad with function wich will return promise object")}b(x)&&U(x)},F=(x,R)=>{x.stopImmediatePropagation(),x.stopPropagation(),x.preventDefault(),H(R)},ne=x=>{s.includes(x.__uuid)||(s.forEach(R=>g({__uuid:R},"__checked",!1)),s.length=0,g(x,"__checked",!0),s.push(x.__uuid),C(x)||H(x),n.emit("check",x,f(x.__uuid)))},G=x=>M(x)||k(x)||k(h(x,"__parentId")),le=(x,R)=>{if(M(R))return!1;const te=m(R),se=`${te}`.split("-").slice(0,x+1);if(se.join("-")===te)return!0;const ce=se.pop(),de=parseInt(ce,10);se.push(`${de+1}`);const me=se.join("-");return c.value.some(De=>De.__path===me)},_=x=>{if(!e.levelLine)return null;const R=se=>({"--depth":se}),te=h(x,"__depth")+1;return new Array(te).fill("").map((se,$)=>$).filter(se=>le(se,x)).filter(se=>se>0).map(se=>a.createVNode("span",{class:"node-virtual-line",style:R(te-se)},null))},q=a.ref(),Z=()=>{var x;if((x=q.value)!=null&&x.$el){const R=`.${tt("tree-node")}`,te=`.${tt("node-content")}`;Array.prototype.forEach.call(q.value.$el.querySelectorAll(R),se=>{const $=se.querySelectorAll(`${te} span`),ce=Array.prototype.slice.call($,-1)[0];if(ce){const de=se.offsetWidth-ce.offsetLeft;ce.style.setProperty("max-width",`${de}px`)}})}};return a.onMounted(()=>{Z()}),a.onUpdated(()=>{Z()}),{renderData:N,flatData:l,root:q,hanldeTreeNodeClick:H,handleNodeContentClick:ne,handleNodeActionClick:F,getActionIcon:D,getRootIcon:S,getVirtualLines:_,getNodePrefixIcon:E,getLoadingIcon:z}},render(){const e=this.$props,n=i=>a.createVNode("div",{class:Ep(i,this.flatData.schema)},[a.createVNode("div",{class:Ap(i,this.flatData.schema,e),style:Op(i,e,this.flatData),onClick:()=>this.handleNodeContentClick(i)},[a.createVNode("span",{class:tt("node-action"),onClick:s=>this.handleNodeActionClick(s,i)},[this.getActionIcon(i)]),a.createVNode("span",{class:tt("node-content")},[[this.getNodePrefixIcon(i),this.getLoadingIcon(i)],a.createVNode("span",{class:tt("node-text")},[Jp(i,e)])]),this.getVirtualLines(i)])]);return a.createVNode(Hr,{class:tt("tree"),style:Pp(null,e),list:this.renderData,lineHeight:e.lineHeight,enabled:e.virtualRender,contentClassName:tt("container"),throttleDelay:0,ref:"root"},{default:i=>(i.data||[]).map(n)})}});const ud=Re(Wp),dd=e=>e.__v_isVNode;var Zp=a.defineComponent({name:"ComposeFormItem",props:{headBackgroundColor:{type:String,default:"#FAFBFD"},tailBackgroundColor:String},render(){if(!this.$slots.default)return null;const e=this.$slots.default();if(console.log("from render = ",e),e.length>1){const n=e.length;let i=0,s=null;for(;i<n;){if(dd(e[i])){s=e[i];break}i=i+1}let l=n-1,c=null;for(;l>=0&&l>i;){if(dd(e[l])){c=e[l];break}l=l-1}if(s&&c){s.props||(s.props={});let f="bk-compose-form-item-head";s.props.class&&(f+=` ${s.props.class}`),this.headBackgroundColor&&(s.props.style=Object.assign(s.props.style||{},{"background-color":this.headBackgroundColor})),s.props.class=f,c.props||(c.props={});let h="bk-compose-form-item-tail";c.props.class&&(h+=` ${c.props.class}`),this.tailBackgroundColor&&(c.props.style=Object.assign(c.props.style||{},{"background-color":this.tailBackgroundColor})),c.props.class=h}}return a.h("div",{class:"bk-compose-form-item"},e)}});const Rp=Symbol("form"),fd=(()=>Rp)(),Gp={formType:d.oneOf(["default","vertical"]).def("default"),labelWidth:d.oneOfType([Number,String]),labelPosition:d.oneOf(["left","center","right"]),model:d.object,rules:d.array};var Yp=a.defineComponent({name:"BKForm",props:Gp,setup(e){let n=[];const i=f=>{n.push(f)},s=f=>{n=n.reduce((h,g)=>(g!==f&&h.push(g),h),[])};return a.provide(fd,{props:e,register:i,unregister:s}),{validate:f=>{let h={};return f?h=(typeof f=="string"?[f]:f).reduce((m,M)=>ze(O({},m),{[M]:!0}),{}):h=n.reduce((g,m)=>m.property?ze(O({},g),{[m.property]:!0}):g,{}),Promise.all(n.reduce((g,m)=>(h[m.property]&&g.push(m.validate()),g),[])).then(()=>Promise.resolve(e.model))},clearValidate:f=>{let h={};f?h=(typeof f=="string"?[f]:f).reduce((m,M)=>ze(O({},m),{[M]:!0}),{}):h=n.reduce((g,m)=>ze(O({},g),{[m.property]:!0}),{}),n.forEach(g=>h[g.property]&&g.clearValidate())}}},render(){var n,i;const e=Ne({"bk-form":!0,[`bk-form--${this.formType}`]:!0});return a.createVNode("form",{class:e},[(i=(n=this.$slots).default)==null?void 0:i.call(n)])}}),hn={required:e=>(console.log("required"),e!==""&&e!==void 0&&e!==null),min:(e,n)=>(console.log("min"),e>=n),max:(e,n)=>(console.log("max"),n>=e),email:e=>(console.log("email"),/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(e)),maxlength:(e,n)=>(console.log("maxlength"),e.length<=n)};const Bp={label:d.string,labelWidth:d.oneOfType([Number,String]),labelPosition:d.oneOf(["left","center","right"]),property:d.string.def(""),required:d.bool.def(!1),email:d.bool.def(!1),max:d.number,min:d.number,maxlength:d.number,rules:d.array,autoCheck:d.bool.def(!1),description:d.string},Hp=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Fp=(e,n)=>{const i=e.map(s=>{let l;return s.required?l=hn.required:s.email?l=hn.email:Number(s.max)>-1?l=c=>hn.max(c,s.max):Number(s.min)>-1?l=c=>hn.min(c,s.max):Number(s.maxlength)>-1?l=c=>hn.min(c,s.max):l=()=>!0,{validator:l,message:s.message,trigger:s.trigger}});return[...n,...i]},Up=e=>{const n=[];return e.required&&n.push({validator:hn.required,message:`${e.label}\u4E0D\u80FD\u4E3A\u7A7A`,trigger:"blur"}),e.email&&n.push({validator:hn.email,message:`${e.label}\u683C\u5F0F\u4E0D\u6B63\u786E`,trigger:"blur"}),Number(e.max)>-1&&n.push({validator:i=>hn.max(i,e.max),message:`${e.label}\u6700\u5927\u503C${e.max}`,trigger:"blur"}),Number(e.min)>-1&&n.push({validator:i=>hn.min(i,e.min),message:`${e.label}\u6700\u5C0F\u503C${e.min}`,trigger:"blur"}),Number(e.maxlength)>-1&&n.push({validator:i=>hn.maxlength(i,e.maxlength),message:`${e.label}\u6700\u5927\u957F\u5EA6${e.maxlength}`,trigger:"blur"}),n},hd=e=>e!==void 0;var co=a.defineComponent({name:"BKFormItem",props:Bp,setup(e){const n=a.getCurrentInstance(),i=a.reactive({isError:!1,errorMessage:""}),s=a.inject(fd),l=Boolean(s),c=a.computed(()=>{const g={width:"",paddingRight:"",textAlign:""},m=hd(e.labelWidth)?e.labelWidth:l&&s.props.labelWidth;hd(m)&&(g.width=`${m}px`,g.paddingRight=m?"":"0px");const M=e.labelPosition||l&&s.props.labelPosition;return M&&(g["text-align"]=M),g}),f=()=>{if(!e.property||l&&!s.props.model)return Promise.resolve();let g=[];l&&s.props.rules&&Hp(s.props.rules,e.property)&&(g=s.props.rules[e.property]),e.rules&&(g=e.rules),g=Fp(g,Up(e));const m=s.props.model[e.property],M=(()=>{let C=-1;return()=>{if(C=C+1,C>=g.length)return Promise.resolve();const b=g[C];return Promise.resolve().then(()=>{const N=b.validator(m);return typeof N!="boolean"&&typeof N.then=="function"?N.then(()=>M,()=>(i.isError=!0,i.errorMessage=b.message,Promise.reject(b.message))):N?M():(i.isError=!0,i.errorMessage=b.message,Promise.reject(b.message))})}})();return M()},h=()=>{i.isError=!1,i.errorMessage=""};return a.onMounted(()=>{l&&s.register(n.proxy)}),a.onBeforeUnmount(()=>{l&&s.unregister(n.proxy)}),ze(O({},a.toRefs(i)),{labelStyles:c,validate:f,clearValidate:h})},render(){var n,i;const e=Ne({"bk-form-item":!0,"is-error":this.isError,"is-required":this.required});return a.createVNode("div",{class:e},[a.createVNode("div",{class:"bk-form-label",style:this.labelStyles},[this.$slots.label?this.$slots.label():this.label]),a.createVNode("div",{class:"bk-form-content"},[(i=(n=this.$slots).default)==null?void 0:i.call(n),this.isError&&a.createVNode("div",{class:"bk-form-error"},[this.$slots.error?this.$slots.error(this.errorMessage):this.errorMessage])])])}});const gd=en(Yp,{FormItem:co,ComposeFormItem:Zp});var _p=a.defineComponent({name:"BkDropdown",props:{isShow:d.bool.def(!1),placement:d.commonType(["auto","auto-start","auto-end","top","right","bottom","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],"placement").def("bottom"),trigger:d.commonType(["hover","click","manual"],"trigger").def("hover"),disabled:d.bool.def(!1),extCls:d.string},emits:["showChange","show","hide"],setup(e,{emit:n}){let i=Object.create(null);const s=a.ref(null),l=a.ref(null);a.onMounted(()=>{h()}),a.onBeforeUnmount(()=>{g()}),a.watch(()=>e.isShow,M=>{a.nextTick(()=>{e.trigger==="manual"&&i&&!e.disabled&&(M?i.show():i.hide())})}),a.watch(()=>e.disabled,M=>m(M));const c=()=>{n("show")},f=()=>{n("hide")},h=()=>{e.disabled||(i=new es(s.value,l.value,{placement:e.placement,trigger:e.trigger,afterShow:c,afterHidden:f}),e.trigger==="manual"&&e.isShow&&i.show())},g=()=>{if(i){const M=i;M.isShow&&M.hide(),M.destroy(),i=null,e.trigger==="manual"&&n("showChange",!1)}},m=M=>{const C=i;e.trigger==="manual"&&!M&&n("showChange",!1),C.updateDisabled(M)};return{reference:s,refContent:l}},render(){var n,i,s,l;const e=Ne({"bk-dropdown":!0},this.$props.extCls);return a.createVNode("div",{class:e},[a.createVNode("div",{ref:"reference",class:"bk-dropdown-reference"},[(i=(n=this.$slots).default)==null?void 0:i.call(n)]),a.createVNode("div",{ref:"refContent",class:"bk-dropdown-content"},[(l=(s=this.$slots).content)==null?void 0:l.call(s)])])}}),uo=a.defineComponent({name:"BkDropdownItem",props:{extCls:d.string},emits:["click"],setup(e,{emit:n}){const i=l=>{n("click",l)};return{wrapperCLasses:a.computed(()=>["bk-dropdown-item",e.extCls]),handleClick:i}},render(){var e,n;return a.createVNode("li",{class:this.wrapperCLasses,onClick:this.handleClick},[(n=(e=this.$slots).default)==null?void 0:n.call(e)])}}),fo=a.defineComponent({name:"BkDropdownMenu",props:{extCls:d.string},setup(e){return{wrapperCLasses:a.computed(()=>["bk-dropdown-menu",e.extCls])}},render(){var e,n;return a.createVNode("ul",{class:this.wrapperCLasses},[(n=(e=this.$slots).default)==null?void 0:n.call(e)])}});const pd=en(_p,{DropdownMenu:fo,DropdownItem:uo});var ho=Object.freeze(Object.defineProperty({__proto__:null,Alert:gc,AnimateNumber:pc,Backtop:mc,Badge:Mc,Breadcrumb:Ic,BreadcrumbItem:ws,Button:bi,ButtonGroup:ks,Card:Cc,Checkbox:vs,CheckboxGroup:Er,Collapse:Nc,Dialog:wc,Exception:Lc,FixedNavbar:kc,Input:xs,Link:Tc,Loading:_n,Modal:Xn,Popover:Ni,Progress:Sc,Radio:Jc,RadioButton:Ss,RadioGroup:Ds,Rate:Qc,Swiper:Pc,Select:Ys,BkOption:Wr,BkOptionGroup:Js,Sideslider:$c,Steps:qc,Switcher:eu,Table:uu,Tag:Gs,TagInput:nr,Divider:hu,Tab:pu,TabPanel:_s,Message:Iu,Notify:yu,Menu:Lu,Navigation:ir,DatePicker:Xu,Transfer:Ku,Tree:ud,VirtualRender:Hr,Form:gd,FormItem:co,Pagination:Us,Dropdown:pd,DropdownMenu:fo,DropdownItem:uo},Symbol.toStringTag,{value:"Module"}));const md=(e="Bk")=>n=>{const i=n.config.globalProperties.bkUIPrefix||e;Object.keys(ho).forEach(s=>{const l=ho[s];"install"in l?n.use(l,{prefix:i}):n.component(i+s,ho[s])})};var Xp={createInstall:md,install:md(),version:"0.0.1"};ee.Alert=gc,ee.AnimateNumber=pc,ee.Backtop=mc,ee.Badge=Mc,ee.BkOption=Wr,ee.BkOptionGroup=Js,ee.Breadcrumb=Ic,ee.BreadcrumbItem=ws,ee.Button=bi,ee.ButtonGroup=ks,ee.Card=Cc,ee.Checkbox=vs,ee.CheckboxGroup=Er,ee.Collapse=Nc,ee.DatePicker=Xu,ee.Dialog=wc,ee.Divider=hu,ee.Dropdown=pd,ee.DropdownItem=uo,ee.DropdownMenu=fo,ee.Exception=Lc,ee.FixedNavbar=kc,ee.Form=gd,ee.FormItem=co,ee.Input=xs,ee.Link=Tc,ee.Loading=_n,ee.Menu=Lu,ee.Message=Iu,ee.Modal=Xn,ee.Navigation=ir,ee.Notify=yu,ee.Pagination=Us,ee.Popover=Ni,ee.Progress=Sc,ee.Radio=Jc,ee.RadioButton=Ss,ee.RadioGroup=Ds,ee.Rate=Qc,ee.Select=Ys,ee.Sideslider=$c,ee.Steps=qc,ee.Swiper=Pc,ee.Switcher=eu,ee.Tab=pu,ee.TabPanel=_s,ee.Table=uu,ee.Tag=Gs,ee.TagInput=nr,ee.Transfer=Ku,ee.Tree=ud,ee.VirtualRender=Hr,ee.bkTooltips=Kc,ee.clickoutside=Rs,ee.default=Xp,ee.mousewheel=C6,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
57
|
+
*/function f6(e,n){if(!Gc.canUseDOM||n&&!("addEventListener"in document))return!1;var i="on"+e,s=i in document;if(!s){var l=document.createElement("div");l.setAttribute(i,"return;"),s=typeof l[i]=="function"}return!s&&Yc&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var h6=f6,g6=c6,p6=h6,Bc=10,Hc=40,Fc=800;function Uc(e){var n=0,i=0,s=0,l=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=i,i=0),s=n*Bc,l=i*Bc,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||l)&&e.deltaMode&&(e.deltaMode==1?(s*=Hc,l*=Hc):(s*=Fc,l*=Fc)),s&&!n&&(n=s<1?-1:1),l&&!i&&(i=l<1?-1:1),{spinX:n,spinY:i,pixelX:s,pixelY:l}}Uc.getEventType=function(){return g6.firefox()?"DOMMouseScroll":p6("wheel")?"wheel":"mousewheel"};var m6=Uc,M6=m6;const I6=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,y6=function(e,n){e!=null&&e.addEventListener&&e.addEventListener(I6?"DOMMouseScroll":"mousewheel",function(i){const s=M6(i);n==null||n.apply(this,[i,s])})},C6={beforeMount(e,n){console.error(e,n),y6(e,n.value)}},b6=e=>typeof Element=="undefined"?!1:e instanceof Element,zn=new Map;let _c;document.addEventListener("mousedown",e=>_c=e),document.addEventListener("mouseup",e=>{for(const n of zn.values())for(const{documentHandler:i}of n)i(e,_c)});function Xc(e,n){let i=[];return Array.isArray(n.arg)?i=n.arg:b6(n.arg)&&i.push(n.arg),function(s,l){const{popperRef:c}=n.instance,f=s.target,h=l==null?void 0:l.target,g=!n||!n.instance,m=!f||!h,M=e.contains(f)||e.contains(h),C=e===f,b=i.length&&i.some(k=>k==null?void 0:k.contains(f))||i.length&&i.includes(h),N=c&&(c.contains(f)||c.contains(h));g||m||M||C||b||N||n.value(s,l)}}const Rs={beforeMount(e,n){zn.has(e)||zn.set(e,[]),zn.get(e).push({documentHandler:Xc(e,n),bindingFn:n.value})},updated(e,n){zn.has(e)||zn.set(e,[]);const i=zn.get(e),s=i.findIndex(c=>c.bindingFn===n.oldValue),l={documentHandler:Xc(e,n),bindingFn:n.value};s>=0?i.splice(s,1,l):i.push(l)},unmounted(e){zn.delete(e)}};var Pb="";const Kc={mounted(e,n){const i=N6();typeof n.value=="object"?Object.assign(i,n.value):i.content=n.value;const{disabled:s,arrow:l,theme:c}=i;if(s)return;const f=w6(i.content,l,c==="light");k6(e,f,i)}};function N6(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:()=>{},onHide:()=>{}}}function w6(e,n,i){const s=on.getPopperIndex(),l=document.createElement("div");if(l.className=`bk-popper ${i?"light":"dark"}`,l.innerText=e,l.style.zIndex=String(s),n){const c=L6();l.appendChild(c)}return document.body.appendChild(l),l}function L6(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function k6(e,n,i){const{placement:s,distance:l,trigger:c,showOnInit:f,onShow:h,onHide:g}=i,m=ql(e,n,{placement:s,modifiers:[{name:"offset",options:{offset:[0,l]}}]});if(c==="hover"){const b=["mouseenter","focus"],N=["mouseleave","blur"];b.forEach(k=>{e.addEventListener(k,M)}),N.forEach(k=>{e.addEventListener(k,C)})}else c==="click"&&document.body.addEventListener("click",b=>{e.contains(b.target)&&!n.hasAttribute("data-show")?M():n.hasAttribute("data-show")&&C()});f&&M();function M(){n.setAttribute("data-show",""),h(),m.setOptions(b=>ze(O({},b),{modifiers:[...b.modifiers,{name:"eventListeners",enabled:!0}]})),m.update()}function C(){n.removeAttribute("data-show"),g(),m.setOptions(b=>ze(O({},b),{modifiers:[...b.modifiers,{name:"eventListeners",enabled:!1}]}))}}var v6=a.defineComponent({name:"Tag",props:{theme:d.theme(["success","info","warning","danger"]).def(""),closable:d.bool.def(!1),type:d.commonType(["","filled","stroke"]).def(""),checkable:d.bool.def(!1),checked:d.bool.def(!1),radius:d.string.def("2px"),extCls:d.string.def("")},emits:["change","close"],slots:["icon"],setup(e,{emit:n}){const i=a.computed(()=>Ne({"bk-tag-closable":e.closable,"bk-tag-checkable":e.checkable,"bk-tag-check":e.checked,[`bk-tag-${e.type}`]:e.type,[`bk-tag-${e.theme}`]:e.theme,[e.extCls]:!!e.extCls},"bk-tag")),s=a.computed(()=>({borderRadius:e.radius}));return{wrapperCls:i,wrapperStyle:s,handleClose:f=>{f.preventDefault(),f.stopPropagation(),n("close",f)},handleClick:f=>{f.preventDefault(),f.stopPropagation(),e.checkable&&n("change",!e.checked)}}},render(){var e,n;return a.createVNode("div",{class:this.wrapperCls,style:this.wrapperStyle,onClick:this.handleClick},[this.$slots.icon?a.createVNode("span",{class:"bk-tag-icon"},[this.$slots.icon()]):"",a.createVNode("span",{class:"bk-tag-text"},[(n=(e=this.$slots).default)==null?void 0:n.call(e)]),this.closable?a.createVNode(jn,{class:"bk-tag-close",onClick:this.handleClose},null):""])}});const Gs=Re(v6);var T6=a.defineComponent({name:"Select",directives:{clickoutside:Rs},props:{modelValue:d.any,multiple:d.bool.def(!1),disabled:d.bool.def(!1),size:d.size().def("default"),clearable:d.bool.def(!0),loading:d.bool.def(!1),filterable:d.bool.def(!1),remoteMethod:d.func,scrollHeight:d.number.def(216),showSelectAll:d.bool.def(!1),popoverMinWidth:d.number.def(0),showOnInit:d.bool.def(!1),multipleMode:d.oneOf(["default","tag"]).def("default"),tagTheme:d.theme(["success","info","warning","danger"]).def(""),behavior:d.oneOf(["normal","simplicity"]).def("normal"),collapseTags:d.bool.def(!1),noDataText:d.string.def("\u65E0\u6570\u636E"),noMatchText:d.string.def("\u65E0\u5339\u914D\u6570\u636E"),loadingText:d.string.def("\u52A0\u8F7D\u4E2D..."),placeholder:d.string.def("\u8BF7\u9009\u62E9"),selectAllText:d.string.def("\u5168\u90E8"),scrollLoading:d.bool.def(!1)},emits:["update:modelValue","change","toggle","clear","scroll-end"],setup(e,{emit:n}){const{modelValue:i,disabled:s,filterable:l,placeholder:c,multiple:f,remoteMethod:h,loading:g,loadingText:m,noDataText:M,noMatchText:C,popoverMinWidth:b,showOnInit:N}=a.toRefs(e),k=a.reactive({currentPlaceholder:c.value,selectedOptions:new Set,currentSelectedLabel:""}),S=a.ref(),J=a.ref(),D=a.ref(new Set),E=a.ref(new Set),z=a.computed(()=>s.value||g.value),U=a.computed(()=>[...k.selectedOptions.values()].map(ie=>ie.label)),Q=a.computed(()=>[...D.value.values()].filter(ie=>!ie.disabled).every(ie=>k.selectedOptions.has(ie))),H=a.computed(()=>!!E.value.size),F=a.computed(()=>!D.value.size),ne=a.computed(()=>{const ie=[...D.value.values()];return ie.length&&ie.every(Qe=>!Qe.visible)}),G=a.computed(()=>typeof h.value=="function"),le=a.computed(()=>!(dt.value||F.value||ne.value)),_=a.computed(()=>dt.value?m.value:F.value?M.value:ne.value?C.value:""),{register:q,unregister:Z}=zs(D),{register:x,unregister:R}=zs(E),{isHover:te,setHover:se,cancelHover:$}=a6(),{isFocus:ce,handleFocus:de,handleBlur:me}=r6(),{popperWidth:De,isPopoverShow:xe,onPopoverFirstUpdate:Y,hidePopover:K,showPopover:he,togglePopover:nt}=o6({popoverMinWidth:b.value}),Je=ie=>{D.value.forEach(Qe=>{var it;Qe.visible=(it=Ac(String(Qe.label)))==null?void 0:it.includes(Ac(ie))})},{searchKey:$e,searchLoading:dt}=l6(G.value?h.value:Je),st=()=>{const ie=U.value.join(",");l.value&&xe.value?(k.currentPlaceholder=ie||c.value,k.currentSelectedLabel=""):(k.currentPlaceholder=c.value,k.currentSelectedLabel=ie,$e.value="")};a.watch(xe,()=>{st()});const ft=ie=>{ie!==i.value&&(n("change",ie),n("update:modelValue",ie))},Tt=()=>{z.value||(nt(),n("toggle",xe.value))},Ee=ie=>{$e.value=ie.target.value},W=()=>{S.value.focus(),J.value.update(),!$e.value&&st()},X=ie=>{z.value||!ie||(f.value?(k.selectedOptions.has(ie)?k.selectedOptions.delete(ie):k.selectedOptions.add(ie),ft([...k.selectedOptions.values()].map(Qe=>Qe.value))):(k.selectedOptions.clear(),k.selectedOptions.add(ie),ft(ie.value),K()),W())},ae=ie=>{ie.stopPropagation(),k.selectedOptions.clear(),K(),st(),ft(f.value?[]:""),n("clear",f.value?[]:"")},Me=()=>{Q.value?k.selectedOptions.clear():D.value.forEach(ie=>{ie.disabled||k.selectedOptions.has(ie)||k.selectedOptions.add(ie)}),W(),ft([...k.selectedOptions.values()].map(ie=>ie.value))},Le=ie=>{const{scrollTop:Qe,clientHeight:it,scrollHeight:_e}=ie.target;Qe+it===_e&&n("scroll-end")},ve=()=>{K(),me()};return a.provide(js,a.reactive({props:e,selectedOptions:a.unref(k.selectedOptions),register:q,unregister:Z,registerGroup:x,unregisterGroup:R,handleOptionSelected:X})),a.onMounted(()=>{const ie=Array.isArray(i.value)?i.value:[i.value];D.value.forEach(Qe=>{ie.includes(Qe.value)&&k.selectedOptions.add(Qe)}),st(),setTimeout(()=>{N.value&&he()})}),ze(O({},a.toRefs(k)),{options:D,isDisabled:z,selectedLabel:U,isPopoverShow:xe,isHover:te,popperWidth:De,popoverRef:J,inputRef:S,searchLoading:dt,isOptionsEmpty:F,isSearchEmpty:ne,isFocus:ce,isShowSelectContent:le,curContentText:_,isGroup:H,searchKey:$e,setHover:se,cancelHover:$,handleFocus:de,handleInput:Ee,handleTogglePopover:Tt,handleClear:ae,onPopoverFirstUpdate:Y,hidePopover:K,showPopover:he,handleToggleAll:Me,handleOptionSelected:X,handleClickOutside:ve,handleScroll:Le})},render(){const e=Ne({"bk-select":!0,"popover-show":this.isPopoverShow,"is-disabled":this.isDisabled,"is-focus":this.isFocus,"is-filterable":this.filterable,[this.size]:!0,[this.behavior]:!0}),n=[{name:"offset",options:{offset:[0,4]}}],i=()=>{var f,h;const l=()=>this.loading?a.createVNode(_n,{loading:!0,class:"spinner",mode:"spin",size:"mini"},null):this.clearable&&this.isHover?a.createVNode(Dn,{class:"clear-icon",onClick:this.handleClear},null):a.createVNode(jr,{class:"angle-up"},null),c=()=>this.multipleMode==="tag"?a.createVNode("div",{class:"bk-select-tag"},[[...this.selectedOptions.values()].map(g=>a.createVNode(Gs,{closable:!0,style:{marginTop:"3px"},theme:this.tagTheme,onClose:()=>this.handleOptionSelected(g)},{default:()=>[g.label]})),a.withDirectives(a.createVNode("input",{class:"bk-select-tag-input",ref:"inputRef",type:"text",placeholder:this.selectedOptions.size?"":this.placeholder,readonly:!this.filterable||!this.isPopoverShow,"onUpdate:modelValue":g=>this.searchKey=g,onFocus:this.handleFocus},null),[[a.vModelText,this.searchKey]])]):a.withDirectives(a.createVNode("input",{ref:"inputRef",type:"text",class:"bk-select-input",style:{paddingLeft:this.$slots.prefixIcon?"20px":"10px"},"onUpdate:modelValue":g=>this.currentSelectedLabel=g,placeholder:this.currentPlaceholder,readonly:!this.filterable||!this.isPopoverShow,onFocus:this.handleFocus,onInput:this.handleInput},null),[[a.vModelText,this.currentSelectedLabel]]);return a.createVNode("div",{class:"bk-select-trigger",onClick:this.handleTogglePopover,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[this.$slots.prefixIcon?a.createVNode("span",{class:"bk-select-prefix"},[(h=(f=this.$slots).prefixIcon)==null?void 0:h.call(f)]):null,c(),l()])},s=()=>{var l,c;return a.createVNode("div",null,[!this.isShowSelectContent&&a.createVNode("div",{class:"bk-select-empty"},[this.searchLoading&&a.createVNode(_n,{class:"mr5",loading:!0,mode:"spin",size:"mini"},null),this.curContentText]),a.createVNode("div",{class:"bk-select-content"},[a.createVNode("div",{class:"bk-select-dropdown",style:{maxHeight:`${this.scrollHeight}px`},onScroll:this.handleScroll},[a.withDirectives(a.createVNode("ul",{class:"bk-select-options"},[this.multiple&&this.showSelectAll&&!this.searchKey&&a.createVNode("li",{class:"bk-select-option",onClick:this.handleToggleAll},[this.selectAllText]),(c=(l=this.$slots).default)==null?void 0:c.call(l),this.scrollLoading&&a.createVNode("li",{class:"bk-select-options-loading"},[a.createVNode(_n,{class:"spinner mr5",theme:"primary",loading:!0,mode:"spin",size:"mini"},null),this.loadingText])]),[[a.vShow,this.isShowSelectContent]])]),this.$slots.extension&&a.createVNode("div",{class:"bk-select-extension"},[this.$slots.extension()])])])};return a.withDirectives(a.createVNode("div",{class:e},[a.createVNode(Ni,{ref:"popoverRef",theme:"light",trigger:"manual",width:this.popperWidth,arrow:!1,placement:"bottom",isShow:this.isPopoverShow,modifiers:n,handleFirstUpdate:this.onPopoverFirstUpdate},{default:()=>i(),content:()=>s()})]),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])}});const Ys=en(T6,{Option:Wr,Group:Js});function x6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}const{propsMixin:S6}=Xn,Bs=Object.assign({},S6);Bs.width.default="400",Bs.height.default="100%";var D6=a.defineComponent({name:"Sideslider",components:{BkModal:Xn,BkButton:bi},props:ze(O({},Bs),{direction:{type:String,default:"right",validator:e=>{const n=["left","right"];return n.indexOf(e)<0?(console.error(`direction property is not valid: '${e}',\u3010${n.join(" | ")}\u3011`),!1):!0}}}),emits:["closed","update:isShow"],methods:{handleClose(){this.$emit("update:isShow",!1),this.$emit("closed")}},render(){const e={header:()=>{var i,s,l;return[a.createVNode("div",{class:"bk-sideslider-header"},[a.createVNode("span",{class:`bk-sideslider-close ${this.direction}`,onClick:this.handleClose},null),a.createVNode("span",{class:`bk-sideslider-title ${this.direction}`},[(l=(s=(i=this.$slots).header)==null?void 0:s.call(i))!=null?l:"Header"])])]},default:()=>{var i,s,l;return(l=(s=(i=this.$slots).default)==null?void 0:s.call(i))!=null?l:"Content"},footer:()=>a.createVNode("div",{class:"bk-sideslider-footer"},null)},n=`bk-sideslider-wrapper ${this.scrollable?"scroll-able":""}`;return a.createVNode(Xn,a.mergeProps(this.$props,{class:n,style:`${this.direction}: 0`}),x6(e)?e:{default:()=>[e]})}});const $c=Re(D6),j6={theme:d.theme().def("primary"),size:d.size(),curStep:d.number.def(1),controllable:d.bool.def(!1),direction:d.commonType(["horizontal","vertical"],"direction").def("horizontal"),status:d.commonType(["","error","loading"],"status").def(""),lineType:d.commonType(["dashed","solid"],"lineType").def("dashed"),text:d.bool,extCls:d.string,steps:d.array.def([]),beforeChange:d.func};var z6=a.defineComponent({name:"Steps",props:j6,emits:["update:curStep","click"],setup(e,{emit:n}){const i=a.ref([]),s=f=>{const h=[];f.forEach(g=>{typeof g=="string"?h.push(g):h.push({title:g.title,icon:g.icon,description:g.description,status:g.status})}),i.value.splice(0,i.value.length,...h)},l=()=>{var f;i.value.splice(0,i.value.length,{title:"\u6B65\u9AA41",icon:1},{title:"\u6B65\u9AA42",icon:2},{title:"\u6B65\u9AA43",icon:3}),(f=e.steps)!=null&&f.length&&s(e.steps)},c=async f=>{try{e.controllable&&f!==e.curStep&&(typeof e.beforeChange=="function"&&await new Promise(async(h,g)=>{const m=await e.beforeChange(f);m?h(m):g(m)}),n("update:curStep",f),n("click",f))}catch(h){console.warn(h)}};return a.onMounted(l),{defaultSteps:i,jumpTo:c}},render(){const e="bk-steps",n=this.theme?`${e}-${this.theme}`:"",i=this.size?`${e}-${this.size}`:"",s=Ne({[`${this.extCls}`]:!!this.extCls,[`bk-steps-${this.direction}`]:this.direction,[`bk-steps-${this.lineType}`]:this.lineType},`${n} ${e} ${i}`),l=C=>this.curStep>C+1||this.defaultSteps[C].status==="done",c=C=>this.curStep===C+1,f=C=>{const{icon:b}=C;return b?Object.prototype.toString.call(b)==="[object Object]":typeof C=="string"},h=(C,b)=>b.icon?b.icon:C+1,g=C=>C.status==="loading",m=C=>C.status==="error",M=(C,b)=>c(C)&&this.status==="loading"||g(b)?a.createVNode(os,{class:"bk-icon bk-steps-icon icon-loading"},null):c(C)&&this.status==="error"||m(b)?a.createVNode(jn,{class:"bk-steps-icon"},null):l(C)?a.createVNode(cs,{class:"bk-steps-icon"},null):a.createVNode("span",{class:"number"},[h(C,b)]);return a.createVNode("div",{class:s},[this.defaultSteps.map((C,b)=>{var N,k,S;return a.createVNode("div",{class:["bk-step",C.title?"":"bk-step-no-content",l(b)?"done":"",c(b)?"current":"",C.status&&c(b)?[`bk-step-${C.status}`]:""]},[a.createVNode("span",{class:["bk-step-indicator",`bk-step-${f(C)?"icon":"number"}`],style:{cursor:this.controllable?"pointer":""},onClick:()=>{this.jumpTo(b+1)}},[(S=(k=(N=this.$slots)[b+1])==null?void 0:k.call(N))!=null?S:M(b,C)]),C.title?a.createVNode("div",{class:"bk-step-content"},[a.createVNode("div",{class:"bk-step-title",style:{cursor:this.controllable?"pointer":""},onClick:()=>{this.jumpTo(b+1)}},[C.title]),C.description&&a.createVNode("div",{class:"bk-step-description",title:C.description},[C.description])]):""])})])}});const qc=Re(z6);var J6=a.defineComponent({name:"Switcher",props:{theme:d.theme().def(""),size:d.size(),disabled:d.bool,showText:d.bool,isOutline:d.bool,onText:d.string.def("ON"),offText:d.string.def("OFF"),isSquare:d.bool,extCls:d.string,preCheck:d.func.def(void 0),trueValue:d.oneOfType([d.string,d.number,d.bool]).def(!0),falseValue:d.oneOfType([d.string,d.number,d.bool]).def(!1),value:d.oneOfType([d.string,d.number,d.bool]).def(!1),modelValue:d.oneOfType([d.string,d.number,d.bool]).def(!1)},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=a.ref(!1),s=a.computed(()=>e.trueValue===c.value),l=a.ref(e.modelValue!==!1),c=a.computed(()=>l.value?e.modelValue:e.value),f=a.computed(()=>{const g={[e.extCls]:!!e.extCls,"bk-switcher":!0,"bk-switcher-outline":e.isOutline,"bk-switcher-square":e.isSquare,"show-label":e.showText,"is-disabled":e.disabled,"is-checked":s.value,"is-unchecked":!s.value,"is-loading":i.value,primary:e.theme==="primary"};if(e.size&&!e.showText){const m=`bk-switcher-${e.size}`;g[m]=!0}return e.size||(g["bk-switcher-nomal"]=!0),g});a.watch(()=>e.modelValue,()=>{l.value=!0}),a.watch(()=>e.value,()=>{l.value=!1});const h=g=>{if(g.stopPropagation(),g.preventDefault(),e.disabled||i.value)return;const m=s.value?e.falseValue:e.trueValue,M=!s.value,C=()=>{n("update:modelValue",m),n("change",M)};let b=!0;if(typeof e.preCheck=="function"&&(b=e.preCheck(m),typeof b.then=="function"))return i.value=!0,b.then(()=>{C()}).finally(()=>{i.value=!1});b&&C()};return()=>a.createVNode("div",{class:f.value,onClick:h,tabindex:"0",onKeydown:h},[i.value?a.createVNode(ys,{class:"bk-switcher-loading"},null):"",e.showText?a.createVNode("span",{class:"switcher-text"},[s.value?e.onText:e.offText]):""])}});const eu=Re(J6),Q6={onContentScroll:Function},P6=O({list:d.array.def([]),enabled:d.bool.def(!0),lineHeight:d.oneOfType([d.number,d.func]).def(30),minHeight:d.number.def(30),height:d.oneOfType([d.string.def("100%"),d.number]).def("100%"),width:d.oneOfType([d.string.def("100%"),d.number]).def("100%"),className:d.oneOfType([d.arrayOf(d.string),d.object,d.arrayOf(d.object),d.string]).def(""),contentClassName:d.oneOfType([d.arrayOf(d.string),d.object,d.arrayOf(d.object),d.string]).def(""),contentStyle:d.object.def({}),scrollXName:d.string.def("bk-scroll-x"),scrollYName:d.string.def("bk-scroll-y"),groupItemCount:d.number.def(1),preloadItemCount:d.number.def(1),renderAs:d.string.def("div"),contentAs:d.string.def("div"),scrollOffsetTop:d.number.def(0),scrollPosition:d.string.def("content"),abosuteHeight:d.oneOfType([d.string.def("auto"),d.number]).def("auto"),throttleDelay:d.number.def(60)},Q6);function tu(e,n,i,s){let l=0,c=0,f=0,h=0;for(;l<e;l++){if(h=s(l,[l*i,(l+1)*i]),c+h>n){f=n-c;break}c+=h}return{startIndex:l,height:c,diffHeight:f}}function nu(e,n,i,s,l){if(!s)return;const c=s.scrollTop,{scrollTop:f,count:h,groupItemCount:g,startIndex:m,endIndex:M}=i,{offsetHeight:C}=s;let b=0,N=0,k=0;if(typeof e=="number"&&(b=Math.floor(c/e),N=Math.ceil(C/e)+b,k=c%e),typeof e=="function"){const S=tu(h,c,g,e);b=S.startIndex>0?S.startIndex:0,k=S.diffHeight,N=tu(h,C,g,e).startIndex+b+1}(c!==f||b!==m||N!==M)&&typeof n=="function"&&n(l,b,N,c,k)}function O6(e,n,i){const{lineHeight:s=30,handleScrollCallback:l,pagination:c={}}=i.value,{startIndex:f,endIndex:h,groupItemCount:g,count:m,scrollTop:M}=c;nu(s,l,{scrollTop:M,startIndex:f,endIndex:h,groupItemCount:g,count:m},n,e)}const iu=(e=60)=>er.exports.throttle((n,i,s)=>O6(n,i,s),e);let Br=null;const ru=(e,n,i,s=60)=>{Br||(Br=iu(s)),typeof Br=="function"&&Br.call(globalThis,e,n,i)};var A6={mounted(e,n){const i=e.parentNode,{throttleDelay:s}=n.value;i.addEventListener("scroll",l=>{ru(l,i,n,s)})},updated(e,n){const i=e.parentNode,{throttleDelay:s}=n.value;ru(null,i,n,s)},unbind(e){if(e){const n=e.parentNode;if(!n)return;n.removeEventListener("scroll",iu)}}},E6=a.defineComponent({name:"VirtualRender",directives:{bkVirtualRender:A6},props:P6,emits:["content-scroll"],setup(e,n){const{renderAs:i,contentAs:s}=e,l=H=>typeof H=="string"?[H]:typeof H=="object"&&!Array.isArray(H)?[H]:H;if(!e.enabled)return()=>{var H,F,ne,G,le,_,q,Z,x;return a.h(i,{class:l(e.className)},[(ne=(F=(H=n.slots).beforeContent)==null?void 0:F.call(H))!=null?ne:"",a.h(s,{class:l(e.contentClassName),style:e.contentStyle},[(_=(le=(G=n.slots).default)==null?void 0:le.call(G,{data:e.list}))!=null?_:""]),(x=(Z=(q=n.slots).afterContent)==null?void 0:Z.call(q))!=null?x:""])};const c=a.ref(null),f=a.reactive({startIndex:0,endIndex:0,scrollTop:1,translateY:0,count:0,groupItemCount:e.groupItemCount}),h=(H,F,ne,G,le)=>{f.startIndex=F,f.endIndex=ne,f.scrollTop=G,f.translateY=le,n.emit("content-scroll",[H,f])};a.onMounted(()=>{a.nextTick(()=>{C(e.list),b()})}),a.watch(()=>e.list,()=>{g(),b()},{deep:!0}),a.watch(()=>e.lineHeight,()=>{g(),b()});const g=()=>{C(e.list)},m=a.ref(0),M=a.ref(0),C=H=>{if(m.value=Math.ceil((H||[]).length/e.groupItemCount),f.count=m.value,f.startIndex=0,f.endIndex=0,f.translateY=0,f.scrollTop=0,typeof e.abosuteHeight=="string"&&e.abosuteHeight==="auto")if(typeof e.lineHeight=="function"){M.value=0;let ne=0;for(let G=0;G<m.value;G++){const le=e.lineHeight.call(this,G,H.slice(G*e.groupItemCount,e.groupItemCount));ne+=typeof le=="number"?le:0}M.value=ne}else M.value=e.lineHeight*m.value;else M.value=e.abosuteHeight},b=()=>{var F;const H=(F=c.value)==null?void 0:F.parentNode;nu(e.lineHeight,h,f,H,null)},N=a.computed(()=>(e.list||[]).map((H,F)=>ze(O({},H),{$index:F}))),k=a.computed(()=>N.value.slice(f.startIndex*e.groupItemCount,(f.endIndex+e.preloadItemCount)*e.groupItemCount)),S=a.computed(()=>e.scrollPosition==="content"?{top:`${f.scrollTop+e.scrollOffsetTop}px`,transform:`translateY(-${f.translateY}px)`}:{}),J=a.computed(()=>O({height:typeof e.height=="number"?`${e.height}px`:e.height,width:typeof e.width=="number"?`${e.width}px`:e.width,display:"inline-block"},e.scrollPosition==="container"?S.value:{})),D=a.computed(()=>{const H=typeof e.abosuteHeight=="number"&&e.abosuteHeight===0;return{height:`${M.value<e.minHeight?e.minHeight:M.value}px`,display:H?"none":"block"}}),E=a.computed(()=>["bk-virtual-render",e.scrollXName,e.scrollYName,...l(e.className),e.scrollPosition==="container"?"bk-virtual-content":""]),z=a.computed(()=>[e.scrollPosition==="content"?"bk-virtual-content":"",...l(e.contentClassName)]),U=a.resolveDirective("bkVirtualRender"),Q={lineHeight:e.lineHeight,handleScrollCallback:h,pagination:f,throttleDelay:e.throttleDelay};return()=>{var H,F,ne,G,le,_,q,Z,x;return a.h(i||"div",{ref:c,class:E.value,style:J.value},[(ne=(F=(H=n.slots).beforeContent)==null?void 0:F.call(H))!=null?ne:"",a.withDirectives(a.h(s||"div",{class:z.value,style:O(O({},S.value),e.contentStyle)},[(_=(le=(G=n.slots).default)==null?void 0:le.call(G,{data:k.value}))!=null?_:""]),[[U,Q]]),(x=(Z=(q=n.slots).afterContent)==null?void 0:Z.call(q))!=null?x:"",a.h("div",{class:["bk-virtual-section"],style:D.value})])}}});const Hr=Re(E6),au=["none","row","col","outer"],tr=(e,n,i)=>{if(Object.prototype.hasOwnProperty.call(e,n))return typeof e[n]=="function"?e[n].call(globalThis,...i):e[n]},Hs=e=>/^\d+$/.test(`${e}`)?[parseInt(`${e}`,10)]:[],V6=e=>Fr(e,"auto"),Fr=(e,n="100%",i=null)=>{let s="";return/^auto|null|undefined$/ig.test(`${e}`)?s=n:s=/^\d+\.?\d+$/.test(`${e}`)?`${e}px`:e,i&&(s=`calc(${s} - ${i})`),s},W6=e=>{const n=["row"];return typeof e=="string"&&n.push(e),Array.isArray(e)&&n.push(...e.filter(i=>au.includes(i))),[...new Set(n)].map(i=>`bordered-${i}`).join(" ")},Z6=(e,n,i=20)=>{const{width:s}=e.getBoundingClientRect()||{};let l=s-4;const c=[],f=(h,g,m=!0)=>{Object.assign(h,{calcWidth:g}),m&&(l=l-g,l<0&&(l=0))};if(n.forEach((h,g)=>{const m=String(h.width);let M=!0;if(/^\d+\.?\d*(px)?$/.test(m)){const C=Number(m.replace("px",""));f(h,C),M=!1}if(/^\d+\.?\d*%$/.test(m)){let C=i;if(l>0){const b=Number(m.replace("%",""));C=l*b/100}f(h,C),M=!1}M&&c.push(g)}),c.length>0){let h=i;l>0&&(h=l/c.length,c.forEach(g=>f(n[g],h,!1)))}},R6=(e,n,i=60,s=!1)=>{const l=er.exports.throttle(()=>{typeof n=="function"&&n()},i),c=new ResizeObserver(()=>{l()});return s&&typeof n=="function"&&n(),{start:()=>{c.observe(e)},stop:()=>{c.disconnect(),c.unobserve(e)}}},G6=e=>/^\d+\.?\d*(px|%)?$/.test(`${e}`),su=e=>{const{showHead:n,headHeight:i,thead:s={}}=e;return Object.assign({},{isShow:n,height:i},O({},s))},Fs=(e,n,i)=>i.type==="index"?e.__$table_row_index:e[n],ou=e=>e.columnPick!=="disabled"?e.columnPick==="multi"?Array.isArray(e.activeColumn)?e.activeColumn:Hs(e.activeColumn):Array.isArray(e.activeColumn)?Hs(e.activeColumn[0]):Hs(e.activeColumn):[];var Y6=e=>{let n=a.reactive([]);if(e.columnPick==="disabled")return{activeColumns:n};const i=a.reactive(ou(e)),s=()=>(e.columns||[]).map((l,c)=>({index:c,active:i.some(f=>f===c),_column:l}));return a.watchEffect(()=>{n=s();const l=ou(e);n.forEach((c,f)=>{Object.assign(c,{active:l.some(h=>h===f)})})}),{activeColumns:n}};const lu=(e,n)=>{if(e){if(typeof e=="object"){let i=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(i)||(i=1),ze(O(O({},n),e),{current:i})}return n}return{}};var B6=e=>{const n=a.ref(0),i=a.ref(0),s=a.computed(()=>e.data.map((b,N)=>ze(O({},b),{__$table_row_index:N+1})));let l=a.reactive({count:0,limit:10,current:1});l=lu(e.pagination,l);const c=()=>{if(!e.pagination||e.remotePagination){n.value=0,i.value=e.data.length;return}n.value=(l.current-1)*l.limit,i.value=l.current*l.limit};c();const f=a.reactive([]),h=b=>{typeof b=="function"&&f.sort(b)},g=b=>{if(typeof b=="function"){const N=f.filter((k,S)=>b(k,S,e.data));f.splice(0,f.length,...N)}},m=(b,N)=>{f.splice(0,f.length,...s.value.slice(n.value,i.value)),g(b),h(N)},M=(b,N)=>{l=lu(e.pagination,l),c(),m(b,N)},C=a.computed(()=>e.pagination?e.remotePagination?l:ze(O({},l),{count:e.data.length}):null);return{pageData:f,localPagination:C,resolvePageData:m,watchEffectFn:M}},cu=(e=>(e.CURRENT="current",e.ALL="all",e))(cu||{});const H6={data:d.arrayOf(d.any).def([]),columns:d.arrayOf(d.shape({label:d.oneOfType([d.func.def(()=>""),d.string.def("")]),field:d.oneOfType([d.func.def(()=>""),d.string.def("")]),render:d.oneOfType([d.func.def(()=>""),d.string.def("")]),width:d.oneOfType([d.number.def(void 0),d.string.def("auto")]),type:d.commonType(["selection","index","expand","none"],"columnType").def("none"),sort:d.oneOfType([d.shape({sortFn:d.func.def(null),sortScope:d.commonType(Object.values(cu)).def("current")}),d.bool]).def(!1),filter:d.oneOfType([d.shape({list:d.arrayOf(d.any).def([]),filterFn:d.func.def(null)}),d.bool]).def(!1)})),activeColumn:d.oneOfType([d.number.def(-1),d.arrayOf(d.number.def(-1))]),columnPick:d.commonType(["multi","single","disabled"],"columnPick").def("disabled"),height:d.oneOfType([d.number,d.string]).def("auto"),minHeight:d.oneOfType([d.number,d.string]).def("auto"),rowHeight:d.oneOfType([d.number,d.func]).def(40),headHeight:d.number.def(40),showHead:d.bool.def(!0),thead:d.shape({height:d.number.def(40),isShow:d.bool.def(!0),cellFn:d.func.def(null)}),virtualEnabled:d.bool.def(!1),border:d.arrayOf(d.commonType(au,"border")).def(["row"]),pagination:d.oneOfType([d.bool.def(!1),d.object.def({})]).def(!1),remotePagination:d.bool.def(!1)};function F6(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}var U6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(e.limit);a.watch(()=>e.limit,l=>{n.value=l}),a.watch(()=>e.limitList,l=>{a.nextTick(()=>{l.includes(n.value)||([n.value]=l)})},{immediate:!0});const i=l=>{n.value=l};return{limit:n,render:({isFirst:l,isLast:c})=>{let f;return e.showLimit?a.createVNode("div",a.mergeProps({class:{"bk-pagination-limit":!0,"is-first":l,"is-last":c}},{disabled:e.disabled}),[a.createVNode("div",null,[a.createTextVNode("\u6BCF\u9875")]),a.createVNode(Ys,{class:"bk-pagination-limit-select",clearable:!1,modelValue:n.value,onChange:i,disabled:e.disabled},F6(f=e.limitList.map((h,g)=>a.createVNode(Wr,{value:h,label:h,key:`${g}_${h}`},null)))?f:{default:()=>[f]}),a.createVNode("div",null,[a.createTextVNode("\u6761")])]):null}}};const $n=5;var _6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(1),i=a.computed(()=>n.value===1),s=a.computed(()=>n.value===e.totalPageNum),l=a.ref(!1),c=a.ref(!1),f=a.computed(()=>{l.value=!1,c.value=!1;const N=[];if(e.totalPageNum<=$n){for(let J=2;J<=e.totalPageNum-1;J++)N.push(J);return N}const k=Math.floor($n/2);e.totalPageNum>$n&&(l.value=n.value-k>2,c.value=n.value+k<e.totalPageNum-1);const S=Math.min(e.totalPageNum-$n,Math.max(2,n.value-k));for(let J=S;J<S+$n;J++)N.push(J);return N});a.watch(()=>e.modelValue,N=>{a.nextTick(()=>{N>=1&&N<=e.totalPageNum?n.value=N:N<1?n.value=1:n.value=e.totalPageNum})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,N=>{n.value>N&&(n.value=N)})});const h=()=>{i.value||(n.value=n.value-1)},g=()=>{s.value||(n.value=n.value+1)},m=N=>{N!==n.value&&(n.value=N)},M=()=>{n.value=Math.max(1,n.value-$n)},C=()=>{n.value=Math.min(e.totalPageNum,n.value+$n)};return{current:n,render:({isFirst:N,isLast:k})=>a.createVNode("div",{class:{"bk-pagination-list":!0,"is-first":N,"is-last":k}},[a.createVNode("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":i.value},onClick:h},[e.prevText||a.createVNode(yi,null,null)]),a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===1},key:"1",onClick:()=>m(1)},[a.createTextVNode("1")]),l.value&&a.createVNode("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:M},[a.createVNode(Jr,null,null)]),f.value.map(S=>a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===S},key:S,onClick:()=>m(S)},[S])),c.value&&a.createVNode("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:C},[a.createVNode(Jr,null,null)]),e.totalPageNum>1&&a.createVNode("div",{class:{"bk-pagination-list-item":!0,"is-active":n.value===e.totalPageNum},key:"last",onClick:()=>m(e.totalPageNum)},[e.totalPageNum]),a.createVNode("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":s.value},onClick:g},[e.nextText||a.createVNode(Un,null,null)])])}},X6=()=>{const{proxy:e}=a.getCurrentInstance(),n=a.ref(null),i=a.ref(!1),s=a.ref(1),l=a.computed(()=>s.value===1),c=a.computed(()=>s.value===e.totalPageNum);let f=0;const h=a.computed(()=>{const D=[];for(let E=1;E<=e.totalPageNum;E++)D.push(E);return D});a.watch(()=>e.modelValue,D=>{a.nextTick(()=>{D>=1&&D<=e.totalPageNum?s.value=D:D<1?s.value=1:s.value=e.totalPageNum,f=s.value})},{immediate:!0}),a.nextTick(()=>{a.watch(()=>e.totalPageNum,D=>{s.value>D&&(s.value=D)})});const g=()=>{l.value||(s.value=s.value-1)},m=()=>{c.value||(s.value=s.value+1)},M=()=>{a.nextTick(()=>{n.value.focus();const D=window.getSelection();D.selectAllChildren(n.value),D.collapseToEnd()})},C=()=>{i.value=!0},b=()=>{i.value=!1,n.value.textContent=`${f}`,f!==s.value&&(s.value=f)},N=D=>{const E=D.target,z=Number(E.textContent);!z||z<1||z>e.totalPageNum||z===s.value||(f=z,M())},k=D=>{["Enter","NumpadEnter"].includes(D.code)&&(D.preventDefault(),b(),M())},S=D=>{f=D,b()};return{current:s,render:()=>a.createVNode("div",{class:"bk-pagination-small-list"},[a.createVNode("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":l.value},onClick:g},[a.createVNode(ps,null,null)]),a.createVNode(Ni,{theme:"light",trigger:"click",arrow:!1,boundary:"body",placement:"bottom"},{default:()=>a.createVNode("div",{class:{"bk-pagination-picker":!0,"is-focused":i.value}},[a.createVNode("span",{ref:n,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:C,onBlur:b,onInput:N,onKeydown:k},[s.value]),a.createVNode("span",null,[a.createTextVNode("/")]),a.createVNode("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])]),content:()=>a.createVNode("div",{class:"bk-pagination-picker-list"},[h.value.map(D=>a.createVNode("div",{class:{item:!0,"is-actived":D===s.value},key:D,onClick:()=>S(D)},[D]))])}),a.createVNode("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":c.value},onClick:m},[a.createVNode(Pr,null,null)])])}},K6=()=>({isFirst:e,isLast:n})=>{const{props:i}=a.getCurrentInstance();return i.showTotalCount?a.createVNode("div",a.mergeProps({class:{"bk-pagination-total":!0,"is-first":e,"is-last":n}},{disabled:i.disabled}),[a.createTextVNode("\u5171\u8BA1"),a.createVNode("div",{class:"bk-pagination-total-num"},[i.count]),a.createTextVNode("\u6761")]):null};const $6={modelValue:d.number.def(1),count:d.number.def(0).isRequired,limit:d.number.def(10),limitList:d.arrayOf(Number).def([10,20,50,100]),showLimit:d.bool.def(!0),type:d.oneOf(["default","compact"]).def("default"),location:d.oneOf(["left","right"]).def("right"),align:d.oneOf(["left","center","right"]).def("left"),size:d.size(),small:d.bool.def(!1),showTotalCount:d.bool.def(!0),prevText:d.string,nextText:d.string,disabled:d.bool.def(!1),layout:d.custom(e=>{const n={total:!0,list:!0,limit:!0};return e.some(i=>n[i])},"layout \u7684\u503C\u53EA\u652F\u6301 * total\u3001list\u3001limit *").def(["total","list","limit"])};var q6=a.defineComponent({name:"Pagination",props:$6,emits:["update:modelValue","change","update:limit","limitChange"],setup(e,n){const i=a.ref(0),{count:s,limit:l}=a.toRefs(e),c=K6(),{current:f,render:h}=_6(),{current:g,render:m}=X6(),{limit:M,render:C}=U6();return a.watch([s,M,l],([b,N])=>{const k=Math.ceil(b/N);i.value=k<1?1:k},{immediate:!0}),a.watch(f,b=>{n.emit("update:modelValue",b),n.emit("change",b)}),a.watch(g,b=>{n.emit("update:modelValue",b),n.emit("change",b)}),a.watch(M,b=>{n.emit("limitChange",b)}),{totalPageNum:i,renderTotal:c,renderList:h,renderLimit:C,renderSmallList:m}},render(){const e=Ne({"bk-pagination":!0,[`bk-pagination--${this.size}`]:!0,[`is-align-${this.align}`]:!0}),n={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return a.createVNode("div",{class:e},[this.layout.map((i,s)=>n[i]({isFirst:s===0,isLast:s===this.layout.length-1}))])}});const Us=Re(q6);function eg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!a.isVNode(e)}var tg=a.defineComponent({name:"HeadFilter",props:{column:d.any.def({}),height:d.number.def(40)},emits:["change"],setup(e,{emit:n}){const{column:i}=e,s=a.ref(!1),l=a.reactive({isOpen:!1,checked:[]}),c=a.computed(()=>Ne({[tt("table-head-action")]:!0,"column-filter":!0,"--row-height":`${e.height}px`,active:l.checked.length,opened:l.isOpen})),f=Ne({[tt("table-head-filter")]:!0}),h=k=>{l.isOpen=k},g=[{name:"offset",options:{offset:[0,0]}}],m=`light ${tt("table-head-filter")}`,M=a.computed(()=>{const{list:k=[]}=i.filter;return k.map(S=>ze(O({},S),{checked:l.checked.includes(S.value)}))}),C=typeof i.filter.filterFn=="function"?(k,S,J,D)=>i.filter.filterFn(k,S,e.column,J,D):(k,S)=>k.length?k.includes(Fs(S,tr(i,"field",[i,S]),i)):!0,b=()=>{n("change",[...l.checked],C),s.value=!1},N=()=>{l.checked.length&&(l.checked.splice(0,l.checked.length),s.value=!1,a.nextTick(()=>n("change",l.checked,C)))};return()=>a.createVNode(Ni,a.mergeProps({trigger:"click",isShow:s.value,placement:"bottom-end",stopBehaviors:["stopPropagation"],arrow:!1},{modifiers:g,theme:m},{boundary:document.body,onAfterShow:()=>h(!0),onAfterHidden:()=>h(!1)}),{default:()=>a.createVNode(rs,{class:c.value,onClick:()=>s.value=!0},null),content:()=>{let k;return a.createVNode("div",{class:f},[a.createVNode(Er,{class:"content-list",modelValue:l.checked,"onUpdate:modelValue":S=>l.checked=S},eg(k=M.value.map(S=>a.createVNode("div",{class:"list-item"},[a.createVNode(vs,{label:S.value},{default:()=>[S.text]})])))?k:{default:()=>[k]}),a.createVNode("div",{class:"content-footer"},[a.createVNode("span",{class:"btn-filter-save",onClick:b},[a.createTextVNode("\u786E\u5B9A")]),a.createVNode("span",{class:"btn-filter-split"},null),a.createVNode("span",{class:["btn-filter-reset",l.checked.length?"":"disable"],onClick:N},[a.createTextVNode("\u91CD\u7F6E")])])])}})}}),wi=(e=>(e.ASC="asc",e.DESC="desc",e))(wi||{}),ng=a.defineComponent({name:"HeadSort",props:{column:d.any.def({})},emits:["change"],setup(e,{emit:n}){const i=a.ref(""),s=(l,c)=>{var C,b;l.stopImmediatePropagation(),l.stopPropagation(),l.preventDefault(),i.value=c;const f=e.column.field,h=N=>Fs(N,f,e.column),g=(N,k)=>{const S=h(N),J=h(k);return typeof S=="number"&&typeof J=="number"?S-J:String.prototype.localeCompare.call(S,J)},m=typeof((C=e.column.sort)==null?void 0:C.sortFn)=="function"?(b=e.column.sort)==null?void 0:b.sortFn:g;n("change",(N,k)=>m(N,k)*(c===wi.DESC?-1:1),c)};return()=>a.createVNode("span",{class:tt("head-cell-sort")},[a.createVNode(is,{class:["sort-action","sort-asc",i.value===wi.ASC?"active":""],onClick:l=>s(l,wi.ASC)},null),a.createVNode(Dr,{class:["sort-action","sort-desc",i.value===wi.DESC?"active":""],onClick:l=>s(l,wi.DESC)},null)])}});class ig{constructor(n,i){Ga(this,"props",null);Ga(this,"ctx",null);this.props=n,this.ctx=i}}let Li;(function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick"})(Li||(Li={}));class rg{constructor(n,i,s,l){Ga(this,"getColumnClass",n=>`${this.uuid}-column-${n}`);this.props=n,this.context=i,this.reactiveProp=s,this.colgroups=l,this.plugins=new ig(n,i),this.uuid=vr(8),this.events=new Map}get propActiveCols(){return this.reactiveProp.activeColumns}renderTableHeadSchema(){const{isShow:n=!0}=su(this.props);return n?a.createVNode("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()]):null}renderTableBodySchema(n){return a.createVNode("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderTBody(n)])}renderTableFooter(n){return a.createVNode(Us,a.mergeProps(n,{modelValue:n.current,onLimitChange:i=>this.handlePageLimitChange(i),onChange:i=>this.hanlePageChange(i)}),null)}on(n,i){return this.events.has(n)||this.events.set(n,[]),this.events.get(n).push(i),this}destroy(){this.events.clear(),this.events=null}emitEvent(n,i){this.events.has(n)&&this.events.get(n).forEach(s=>{typeof s=="function"&&Reflect.apply(s,this,i)})}handlePageLimitChange(n){Object.assign(this.props.pagination,{limit:n}),this.context.emit("pageLimitChange",n)}hanlePageChange(n){Object.assign(this.props.pagination,{current:n,value:n}),this.context.emit("pageValueChange",n)}setColumnActive(n,i=!1){const s=this.propActiveCols.find(l=>l.index===n);Object.assign(s,{active:!s.active}),i&&this.propActiveCols.filter(l=>l.index!==n&&l.active).forEach(l=>{Object.assign(l,{active:!1})})}handleColumnHeadClick(n){this.props.columnPick!=="disabled"&&(this.setColumnActive(n,this.props.columnPick==="single"),this.context.emit("column-pick",this.propActiveCols))}getSortCell(n,i){const s=(l,c)=>{this.emitEvent(Li.ON_SORT_BY_CLICK,[{sortFn:l,column:n,index:i,type:c}])};return a.createVNode(ng,{column:n,onChange:s},null)}getFilterCell(n,i){const s=(l,c)=>{const f=(h,g)=>c(l,h,g);this.emitEvent(Li.ON_FILTER_CLICK,[{filterFn:f,checked:l,column:n,index:i}])};return a.createVNode(tg,{column:n,height:this.props.headHeight,onChange:s},null)}renderHeader(){const n=su(this.props),{cellFn:i}=n,s={"--row-height":`${tr(n,"height",["thead"])}px`},l=(c,f)=>{const h=[];return c.sort&&h.push(this.getSortCell(c,f)),c.filter&&h.push(this.getFilterCell(c,f)),typeof i=="function"?(h.unshift(i(c,f)),h):(h.unshift(tr(c,"label",[c,f])),h)};return a.createVNode("thead",{style:s},[a.createVNode("tr",null,[this.props.columns.map((c,f)=>a.createVNode("th",{colspan:1,rowspan:1,class:Ne({active:this.isColActive(f)}),onClick:()=>this.handleColumnHeadClick(f)},[a.createVNode("div",{class:"cell"},[l(c,f)])]))])])}renderTBody(n){return a.createVNode("tbody",null,[n.map((i,s)=>{const l={"--row-height":`${tr(this.props,"rowHeight",["tbody",i,s])}px`};return a.createVNode("tr",{style:l,onClick:c=>this.handleRowClick(c,i,s,n),onDblclick:c=>this.handleRowDblClick(c,i,s,n)},[this.props.columns.map((c,f)=>a.createVNode("td",{class:this.getColumnClass(f),colspan:1,rowspan:1},[a.createVNode("div",{class:"cell"},[this.renderCell(i,c,s,n)])]))])})])}handleRowClick(n,i,s,l){this.context.emit("rowClick",n,i,s,l,this)}handleRowDblClick(n,i,s,l){this.context.emit("rowDblClick",n,i,s,l,this)}renderCell(n,i,s,l){const c=Fs(n,tr(i,"field",[i,n]),i);return typeof i.render=="function"?i.render(c,n,s,l):c}isColActive(n){return this.props.columnPick!=="disabled"&&this.propActiveCols.some(i=>i.index===n&&i.active)}renderColGroup(){return a.createVNode("colgroup",null,[(this.colgroups||[]).map((n,i)=>{const s=Ne({active:this.isColActive(i)}),l=`${V6(n.calcWidth)}`.replace(/px$/i,"");return a.createVNode("col",{class:s,width:l},null)})])}}const ag=(e,n)=>{const i=a.ref("auto"),s=a.computed(()=>Ne({[tt("table")]:!0},W6(e.border))),l=Ne({[tt("table-head")]:!0}),c=Ne({[tt("table-body")]:!0}),f=Ne({[tt("table-footer")]:!0,["is-hidden"]:!e.pagination}),h=a.computed(()=>({minHeight:Fr(e.minHeight,"auto")})),g=a.computed(()=>{const M=!G6(e.height),C=Fr(e.height),b=e.showHead?Fr(e.headHeight):"0",N=e.pagination?40:0,k=`calc(${C} - ${b} - ${N}px - 2px)`;return O({display:"block"},M?{maxHeight:k}:{height:k})});a.onMounted(()=>{m(n==null?void 0:n.value)});const m=M=>{if(M){const{height:C}=n.value.parentElement.getBoundingClientRect();i.value=`${C}px`}};return{tableClass:s,headClass:l,contentClass:c,footerClass:f,wrapperStyle:h,contentStyle:g,resetTableHeight:m}};var sg=a.defineComponent({name:"Table",props:H6,emits:["columnPick","rowClick","rowDblClick","pageLimitChange","pageValueChange"],setup(e,n){const i=a.reactive(e.columns.map(Q=>ze(O({},Q),{calcWidth:null})));let s=null,l=null,c=null;const f=a.ref(),{activeColumns:h}=Y6(e),{pageData:g,localPagination:m,resolvePageData:M,watchEffectFn:C}=B6(e),{tableClass:b,headClass:N,contentClass:k,footerClass:S,wrapperStyle:J,contentStyle:D}=ag(e),E=a.reactive({scrollTranslateY:0,activeColumns:h}),z=new rg(e,n,E,i);a.watchEffect(()=>{C(l,s)}),z.on(Li.ON_SORT_BY_CLICK,Q=>{const{sortFn:H}=Q;s=H,g.sort(s)}).on(Li.ON_FILTER_CLICK,Q=>{const{filterFn:H}=Q;l=H,M(l,s)});const U=Q=>{const H=Q[1];E.scrollTranslateY=H.translateY};return a.onMounted(()=>{c=R6(f.value,()=>{Z6(f.value,i,20)},60,!0),c.start()}),a.onBeforeUnmount(()=>{c.stop(),c=null,z.destroy()}),n.expose({plugins:z.plugins}),()=>a.createVNode("div",{class:b.value,style:J.value,ref:f},[a.createVNode("div",{class:N},[z.renderTableHeadSchema()]),a.createVNode(Hr,{lineHeight:e.rowHeight,class:k,style:D.value,list:g,onContentScroll:U,throttleDelay:0,enabled:e.virtualEnabled},{default:Q=>z.renderTableBodySchema(Q.data||e.data),afterContent:()=>a.createVNode("div",{class:tt("table-fixed")},null)}),a.createVNode("div",{class:S},[e.pagination&&z.renderTableFooter(m.value)])])}});const uu=Re(sg),ki=12;function og(e,n=200){let i,s=e;return a.customRef((l,c)=>({get(){return l(),s},set(f){clearTimeout(i),i=setTimeout(()=>{s=f,c()},n)}}))}function lg(e){const n=a.reactive({curPage:1,totalSize:0,totalPage:0,pageSize:e,isPageLoading:!1,curPageList:[],renderListPaged:[]});return{pageState:n,initPage:(l=[])=>{n.curPage=1,n.totalSize=l.length,n.totalPage=Math.ceil(n.totalSize/n.pageSize)||1;const c=[];if(n.pageSize>0)for(let f=0;f<n.totalSize;f+=n.pageSize)c.push(l.slice(f,f+n.pageSize));n.renderListPaged.splice(0,n.renderListPaged.length,...c),n.curPageList.splice(0,n.curPageList.length,...n.renderListPaged[n.curPage-1]||[])},pageChange:l=>{n.curPage=l,n.curPageList.splice(n.curPageList.length,0,...n.renderListPaged[n.curPage-1]||[]),n.isPageLoading=!1}}}function cg(e){const{useGroup:n,saveKey:i,displayKey:s,list:l}=a.toRefs(e),c=a.reactive([]);return a.watch([n,i,s,l],()=>{let f=l.value;n.value&&(f=l.value.reduce((h,g)=>{let m=[];return g.children&&(m=g.children.map(M=>O({group:{groupId:g[i.value],groupName:g[s.value]}},M))),h.concat(m)},[])),c.splice(0,c.length,...f)},{immediate:!0,deep:!0}),c}const du=e=>{const n=e.length;let i=0;for(let s=0;s<n;s++)(e.charCodeAt(s)&65280)!==0&&(i+=1),i+=1;return i};var fu=a.defineComponent({name:"ListTagRender",props:{node:d.object,searchKey:d.oneOfType([d.string,d.arrayOf(d.string)]),displayKey:d.string,searchKeyword:d.string,tpl:{type:Function,default:null}},render(){const e=i=>{if(this.searchKeyword){const s=new RegExp(`(${this.searchKeyword})`,"i");return i.replace(s,'<strong class="highlight-text">$1</strong>')}return i};if(this.tpl)return this.tpl(this.node,e,a.h,this);const n=this.node[this.displayKey];return a.createVNode("div",{class:"bk-selector-node"},[a.createVNode("span",{class:"text",innerHTML:e(n)},[n])])}});const ug=()=>({modelValue:d.arrayOf(d.string).def([]),placeholder:d.string.def("\u8BF7\u8F93\u5165\u5E76\u6309 Enter \u7ED3\u675F"),list:d.arrayOf(d.object).def([]),disabled:d.bool.def(!1),tooltipKey:d.string.def(""),saveKey:d.string.def("id"),displayKey:d.string.def("name"),hasDeleteIcon:d.bool.def(!1),clearable:d.bool.def(!0),trigger:d.commonType(["focus","search"]).def("search"),searchKey:d.oneOfType([d.string,d.arrayOf(d.string)]).def("name"),useGroup:d.bool.def(!1),allowCreate:d.bool.def(!1),maxData:d.number.def(-1),maxResult:d.number.def(10),contentMaxHeight:d.number.def(300),contentWidth:d.number.def(190),separator:d.string.def(""),allowNextFocus:d.bool.def(!0),allowAutoMatch:d.bool.def(!1),showClearOnlyHover:d.bool.def(!1),leftSpace:d.number.def(0),createTagValidator:{type:Function,default:null},filterCallback:{type:Function,default:null},tagTpl:{type:Function,default:null},tpl:{type:Function,default:null},pasteFn:{type:Function,default:null}});var dg=a.defineComponent({name:"TagRender",props:{node:d.object,displayKey:d.string,tpl:{type:Function,default:null}},render(){return this.tpl?this.tpl(this.node,a.h,this):a.createVNode("div",{class:"tag"},[a.createVNode("span",{class:"text"},[this.node[this.displayKey]])])}}),nr=a.defineComponent({name:"BkTagInput",directives:{bkTooltips:Kc},props:ug(),emits:["update:modelValue","change","select","blur","remove","removeAll"],setup(e,{emit:n}){const i=a.reactive({isEdit:!1,isHover:!1,focusItemIndex:e.allowCreate?-1:0}),s=a.reactive({isShow:!1,width:190,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),{maxResult:l}=a.toRefs(e),{pageState:c,initPage:f,pageChange:h}=lg(l),g=og("",150),m=a.ref(null),M=a.ref(null),C=a.ref(null),b=a.ref(null),N=a.ref(null),k=a.ref(null),S=a.ref(null),J=a.computed(()=>!e.disabled&&e.hasDeleteIcon),D=a.computed(()=>e.maxData===1),E=a.computed(()=>G.selectedTagList.length===0&&g.value===""&&!i.isEdit),z=a.computed(()=>e.clearable&&!e.disabled&&G.selectedTagList.length!==0&&(e.showClearOnlyHover?i.isHover:!0)),U=a.computed(()=>({"bk-tag-input-trigger":!0,active:i.isEdit,disabled:e.disabled}));a.watch([()=>[...e.modelValue],()=>[...e.list]],()=>{Z()}),a.watch(g,W=>{const X=c.curPageList.length!==0;W!==""&&X||W===""&&e.trigger==="focus"?s.isShow=!0:(e.trigger!=="focus"||!X)&&(s.isShow=!1)}),a.watch(()=>s.isShow,W=>{Q(),W&&N.value&&(a.nextTick(()=>{N.value.scrollTop=0}),N.value.removeEventListener("scroll",H),N.value.addEventListener("scroll",H))});const Q=()=>{var X,ae;const W=D.value?0:(X=b.value)==null?void 0:X.offsetLeft;s.modifiers=[{name:"offset",options:{offset:[W,4]}}],(ae=k.value)==null||ae.update()},H=()=>{if(c.isPageLoading||N.value.scrollTop===0)return;const{scrollTop:W,offsetHeight:X,scrollHeight:ae}=N.value;if(W+X>=ae){const Me=c.curPage+1;Me<=c.totalPage&&(c.isPageLoading=!0,setTimeout(()=>{h(Me)},500))}},F=()=>{var X;return Array.from(((X=C.value)==null?void 0:X.childNodes)||[]).filter(ae=>ae.nodeType!==Node.TEXT_NODE)},ne=W=>{if(!e.disabled){if(W!=null&&W.target){const{className:X}=W.target;(X.indexOf("bk-tag-input-trigger")>-1||X.indexOf("tag-list")>-1)&&C.value.appendChild(b.value)}clearTimeout(S.value),D.value&&le.value.length&&(G.tagListCache=[...le.value],G.selectedTagListCache=[...G.selectedTagList],g.value=G.selectedTagListCache[0][e.saveKey],Ee(G.selectedTagList[0],0),de()),i.isEdit=!0,a.nextTick(()=>{var X;(X=m.value)==null||X.focus(),e.trigger==="focus"&&G.localList.length!==0&&(x(),s.isShow?Q():s.isShow=!0)})}},G=a.reactive({localList:[],tagListCache:[],selectedTagList:[],selectedTagListCache:[]}),le=a.computed(()=>G.selectedTagList.map(W=>W[e.saveKey])),_=cg(e),q=a.computed(()=>{if(e.useGroup){const W={};return c.curPageList.forEach((X,ae)=>{X.__index__=ae,W[X.group.groupId]||(W[X.group.groupId]={id:X.group.groupId,name:X.group.groupName,children:[]}),W[X.group.groupId].children.push(X)}),Object.keys(W).map(X=>W[X])}return c.curPageList}),Z=()=>{const{saveKey:W,modelValue:X,displayKey:ae,allowCreate:Me,trigger:Le}=e;G.selectedTagList=[],G.localList=[..._],X.length&&(X.forEach(ve=>{const ie=G.localList.find(Qe=>ve===Qe[W]);ie!==void 0?G.selectedTagList.push(ie):Me&&!le.value.includes(ve)&&G.selectedTagList.push({[W]:ve,[ae]:ve})}),D.value||(G.localList=G.localList.filter(ve=>!X.includes(ve[W])))),Le==="focus"&&x()},x=(W="")=>{const{searchKey:X,filterCallback:ae}=e,Me=W.toLowerCase();let Le=[];if(typeof ae=="function")Le=ae(Me,X,G.localList)||[];else if(Array.isArray(X)){const ve=X.map(ie=>G.localList.filter(Qe=>Qe[ie].toLowerCase().indexOf(Me)!==-1));Le=Array.from(new Set(ve.flat()))}else Le=G.localList.filter(ve=>ve[X].toLowerCase().indexOf(Me)!==-1);f(Le)},R=(W,X)=>{const ae={"bk-selector-actived":!1,"bk-selector-selected":le.value.includes(W[e.saveKey])};return e.useGroup?ae["bk-selector-actived"]=W.__index__===i.focusItemIndex:ae["bk-selector-actived"]=X===i.focusItemIndex,ae};a.onMounted(()=>{Z()});const te=()=>{G.tagListCache=[],G.selectedTagListCache=[],G.selectedTagList=[]},se=()=>{g.value=""},$=()=>{if(D.value)return 0;const X=F().findIndex(({id:ae})=>ae==="tagInputItem");return X>=0?X:0},ce=(W,X,ae=!1)=>{if(!X||!W)return;let Me=X;ae&&(Me=X.nextElementSibling||null),X.parentNode.insertBefore(W,Me)},de=W=>{const{maxData:X,trigger:ae,allowCreate:Me}=e;if(X===-1||X>le.value.length){const{value:Le}=W!=null&&W.target?W.target:g,ve=du(Le);ve?(x(Le),m.value.style.width=`${ve*ki}px`):ae==="focus"&&x()}else De(),g.value="",s.isShow=!1;i.isEdit=!0,i.focusItemIndex=Me?-1:0},me=()=>{var W;s.width=D.value?(W=M.value)==null?void 0:W.clientWidth:e.contentWidth},De=()=>{S.value=setTimeout(()=>{const W=g.value;if(se(),i.isEdit=!1,D.value){const[X]=G.tagListCache;W&&W===X&&G.selectedTagListCache.length?Tt(G.selectedTagListCache[0],"select"):K("remove")}else if(e.allowAutoMatch&&W){const X=c.curPageList.find(ae=>Array.isArray(e.searchKey)?e.searchKey.map(Le=>ae[Le]).includes(W):ae[e.searchKey]===W);X?xe(X,"select"):e.allowCreate&&xe(W,"custom")}s.isShow=!1,n("blur",W,le.value)},50)},xe=(W,X,ae)=>{ae==null||ae.stopPropagation(),!(!W||W.disabled)&&(D.value&&te(),Tt(W,X),K("select"),se(),s.isShow=!1)},Y=(W,X,ae)=>{ae==null||ae.stopPropagation(),Ee(W,X),se(),K("remove"),m.value.style.width=`${ki}px`},K=W=>{n("change",le.value),n(W),n("update:modelValue",le.value)},he=W=>{W.stopPropagation();const X=G.selectedTagList;G.selectedTagList=[];const ae=_.filter(Me=>X.some(Le=>Le[e.saveKey]===Me[e.saveKey]));(e.allowCreate&&ae.length!==0||!e.allowCreate)&&!D.value&&G.localList.push(...ae),K("removeAll")},nt=()=>{const W={height:N.value.clientHeight,yAxis:N.value.getBoundingClientRect().y};a.nextTick(()=>{const X=N.value.querySelector(".bk-selector-actived");if(!X)return;const ae={height:X.clientHeight,yAxis:X.getBoundingClientRect().y};ae.yAxis<W.yAxis&&(N.value.scrollTop=N.value.scrollTop-(W.yAxis-ae.yAxis));const Me=ae.yAxis+ae.height-W.yAxis;Me>W.height&&(N.value.scrollTop=N.value.scrollTop+Me-W.height)})},Je=(W,X)=>{const ae=F();ce(b.value,ae[W-1]),G.selectedTagList.splice(W-1,1),ne();const Me=_.some(Le=>Le===X[e.saveKey]);(e.allowCreate&&Me||!e.allowCreate)&&!D.value&&G.localList.push(X),m.value=`${ki}px`,K("remove")},$e=W=>{if(c.isPageLoading)return;let X;const ae=W.target.value,Me=du(ae),Le=$(),ve=F();switch(W.code){case"ArrowUp":if(W.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex-1,i.focusItemIndex=i.focusItemIndex<0?-1:i.focusItemIndex,i.focusItemIndex===-1&&(i.focusItemIndex=c.curPageList.length-1),nt();break;case"ArrowDown":if(W.preventDefault(),!s.isShow)return;i.focusItemIndex=i.focusItemIndex+1,i.focusItemIndex=i.focusItemIndex>c.curPageList.length-1?c.curPageList.length:i.focusItemIndex,i.focusItemIndex===c.curPageList.length&&(i.focusItemIndex=0),nt();break;case"ArrowLeft":if(i.isEdit=!0,!Me){if(Le<1)return;ce(b.value,ve[Le-1]),ne()}break;case"ArrowRight":if(i.isEdit=!0,!Me){if(Le===ve.length-1)return;ce(ve[Le+1],b.value),ne()}break;case"Enter":case"NumpadEnter":!e.allowCreate&&s.isShow||e.allowCreate&&i.focusItemIndex>=0&&s.isShow?xe(c.curPageList[i.focusItemIndex],"select",W):e.allowCreate&&xe(g.value,"custom",W),W.preventDefault();break;case"Backspace":Le!==0&&!g.value&&(X=G.selectedTagList[Le-1],Je(Le,X));break}},dt=W=>{const X=[];return W.split(";").forEach(Me=>{if(Me.match(/^[a-zA-Z][a-zA-Z_]+/g)){const Le=Me.match(/^[a-zA-Z][a-zA-Z_]+/g).join("");X.push({[e.saveKey]:Le,[e.displayKey]:Le})}}),X},st=W=>{if(W.preventDefault(),D.value)return!1;const{maxData:X,saveKey:ae,pasteFn:Me}=e,Le=W.clipboardData.getData("text");let ie=(Me?Me(Le):dt(Le)).map(Qe=>Qe[ae]);if(ie.length){const Qe=F(),it=$(),_e=G.localList.map(Xe=>Xe[ae]);if(ie=ie.filter(Xe=>(Xe==null?void 0:Xe.trim())&&!le.value.includes(Xe)&&_e.includes(Xe)),X!==-1){const Xe=G.selectedTagList.length;if(Xe<X){const Ve=X-Xe;ie.length>Ve&&(ie=[...ie.slice(0,Ve)])}else ie=[]}const zt=G.localList.filter(Xe=>ie.includes(Xe[ae]));ie.length&&(G.selectedTagList.splice(it,0,...zt),ce(b.value,Qe[it]),m.value.style.width=`${ki}px`,G.localList=G.localList.filter(Xe=>!ie.includes(Xe[ae])),K("select"),ne())}},ft=W=>{e.disabled||(ce(b.value,W.currentTarget,!0),m.value.style.width=`${ki}px`,s.isShow&&Q())},Tt=(W,X)=>{if(G.selectedTagList.length>=e.maxData&&e.maxData!==-1)return;const{separator:ae,saveKey:Me,displayKey:Le,createTagValidator:ve}=e,ie=$();let Qe=1,it=!1,_e;const zt=Ve=>typeof ve=="function"?ve(Ve):!0,Xe=Ve=>G.localList.find(ht=>ht[Me]===Ve);if(X==="custom")if(ae){let Ve=W.split(ae);Ve=Ve.filter(Ct=>(Ct==null?void 0:Ct.trim())&&!le.value.includes(Ct)&&zt(Ct));const ht=Ve.map(Ct=>Xe(Ct)||{[Me]:Ct,[Le]:Ct});Ve.length&&(G.selectedTagList.splice(ie,0,...ht),Qe=ht.length,it=!0)}else{const Ve=typeof W=="object";if(_e=Ve?W[Me]:W.trim(),_e=_e.replace(/\s+/g,""),_e!==void 0&&!le.value.includes(_e)&&zt(_e)){const ht=Xe(_e)||(Ve?W:{[Me]:_e,[Le]:_e});G.selectedTagList.splice(ie,0,ht),it=!0}}else W&&(_e=W[Me],_e!==void 0&&!le.value.includes(_e)&&(G.selectedTagList.splice(ie,0,W),it=!0));it&&a.nextTick(()=>{for(let Ve=1;Ve<=Qe;Ve++){const Ct=F()[ie+Ve];ce(Ct,b.value)}m.value.style.width=`${ki}px`,D.value||(e.allowNextFocus&&ne(),G.localList=G.localList.filter(Ve=>!le.value.includes(Ve[Me])))})},Ee=(W,X)=>{G.selectedTagList.splice(X,1);const ae=_.some(Me=>Me===W[e.saveKey]);(e.allowCreate&&ae||!e.allowCreate)&&!D.value&&G.localList.push(W)};return ze(O(O(O({popoverProps:s},a.toRefs(i)),a.toRefs(G)),a.toRefs(c)),{isShowPlaceholder:E,isShowClear:z,curInputValue:g,formatList:_,renderList:q,showTagClose:J,tagInputRef:m,bkTagSelectorRef:M,tagListRef:C,tagInputItemRef:b,selectorListRef:N,popoverRef:k,triggerClass:U,focusInputTrigger:ne,activeClass:R,handleInput:de,handleFocus:me,handleBlur:De,handleTagSelected:xe,handleTagRemove:Y,handleClear:he,tagFocus:ft,handleKeydown:$e,handlePaste:st})},render(){const e=()=>this.useGroup?this.renderList.map(n=>a.createVNode("li",{class:"bk-selector-group-item"},[a.createVNode("span",{class:"group-name"},[n.name,a.createTextVNode(" ("),n.children.length,a.createTextVNode(")")]),a.createVNode("ul",{class:"bk-selector-group-list-item"},[n.children.map((i,s)=>a.createVNode("li",{class:["bk-selector-list-item",{disabled:i.disabled},this.activeClass(i,s)],onClick:this.handleTagSelected.bind(this,i,"select")},[a.createVNode(fu,{node:i,displayKey:this.displayKey,tpl:this.tpl,searchKey:this.searchKey,searchKeyword:this.curInputValue},null)]))])])):this.renderList.map((n,i)=>a.createVNode("li",{class:["bk-selector-list-item",{disabled:n.disabled},this.activeClass(n,i)],onClick:this.handleTagSelected.bind(this,n,"select")},[a.createVNode(fu,{node:n,displayKey:this.displayKey,tpl:this.tpl,searchKey:this.searchKey,searchKeyword:this.curInputValue},null)]));return a.createVNode("div",{class:"bk-tag-input",ref:"bkTagSelectorRef",onClick:this.focusInputTrigger,onMouseenter:()=>this.isHover=!0,onMouseleave:()=>this.isHover=!1},[a.createVNode(Ni,{ref:"popoverRef",theme:"light",trigger:"manual",placement:"bottom-start",arrow:!1,width:this.popoverProps.width,isShow:this.popoverProps.isShow,modifiers:this.popoverProps.modifiers},{default:()=>a.createVNode("div",{class:this.triggerClass},[a.createVNode("ul",{class:"tag-list",ref:"tagListRef",style:{marginLeft:`${this.leftSpace}px`}},[this.selectedTagList.map((n,i)=>{const s={boundary:"window",theme:"light",distance:12,content:n[this.tooltipKey],disabled:!this.tooltipKey};return a.withDirectives(a.createVNode("li",{class:"tag-item",onClick:this.tagFocus},[a.createVNode(dg,{node:n,tpl:this.tagTpl,displayKey:this.displayKey},null),this.showTagClose?a.createVNode(jn,{class:"remove-tag",onClick:this.handleTagRemove.bind(this,n,i)},null):null]),[[a.resolveDirective("bk-tooltips"),s]])}),a.withDirectives(a.createVNode("li",{ref:"tagInputItemRef",id:"tagInputItem",class:"tag-input-item",role:"input"},[a.withDirectives(a.createVNode("input",{type:"text",class:"tag-input",ref:"tagInputRef","onUpdate:modelValue":n=>this.curInputValue=n,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeydown,onPaste:this.handlePaste},null),[[a.vModelText,this.curInputValue]])]),[[a.vShow,this.isEdit]])]),a.withDirectives(a.createVNode("p",{class:"placeholder"},[this.placeholder]),[[a.vShow,this.isShowPlaceholder]]),this.isShowClear?a.createVNode(Dn,{class:"clear-icon",onClick:this.handleClear},null):null]),content:()=>a.createVNode("div",{class:"bk-selector-list"},[a.createVNode("ul",{ref:"selectorListRef",style:{"max-height":`${this.contentMaxHeight}px`},class:"outside-ul"},[e(),this.isPageLoading?a.createVNode("li",{class:"bk-selector-list-item loading"},[a.createVNode(_n,{theme:"primary",size:In.Small},null)]):null])])})])}});nr.install=e=>{e.component(nr.name,nr)};const fg={direction:d.commonType(["horizontal","vertical"],"direction").def("horizontal"),align:d.commonType(["left","center","right"],"align").def("center"),color:d.string.def("#dde4eb"),width:d.number.def(1),type:d.commonType(["dashed","solid"],"lineType").def("dashed")};var hg=a.defineComponent({name:"Divider",props:fg,render(){const e=()=>this.direction==="vertical"?{borderRight:`${this.width}px ${this.type} ${this.color}`}:{borderBottom:`${this.width}px ${this.type} ${this.color}`};let n;return this.$slots.default&&(n=a.createVNode("div",{class:["bk-divider-info",`bk-divider-info-${this.align}`]},[this.$slots.default()])),a.createVNode("div",{class:["bk-divider",`bk-divider-${this.direction}`],style:e()},[n])}});const hu=Re(hg),gg={tabAdd:{type:Function,default:()=>({})},tabChange:{type:Function,default:e=>e},tabRemove:{type:Function,default:e=>e},tabSort:{type:Function,default:()=>({})},tabDrag:{type:Function,default:()=>({})}},pg={active:d.oneOfType([d.number,d.string]).def(""),type:d.commonType(["card","border-card","unborder-card"],"type").def("border-card"),tabPosition:d.commonType(["left","right","top"],"position").def("top"),closable:Boolean,addable:Boolean,sortable:Boolean,sortType:d.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:d.number.def(50),scrollStep:d.number.def(200),extCls:d.string.def(""),validateActive:d.bool.def(!0),showHeader:d.bool.def(!0),changeOnHover:d.bool.def(!1),changeOnHoverDelay:d.number.def(1e3)},mg=O({active:d.oneOfType([d.number,d.string]).def(""),panels:{type:Array,default:()=>[]},closable:Boolean,addable:Boolean,sortable:Boolean,sortType:d.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:d.number.def(50),scrollStep:d.number.def(200),validateActive:d.bool.def(!0),changeOnHover:d.bool.def(!1),changeOnHoverDelay:d.number.def(1e3)},gg),Mg={name:d.oneOfType([d.number,d.string]).def(""),label:d.string||d.func,closable:d.bool,visible:d.bool.def(!0),disabled:d.bool,sortable:d.bool,renderDirective:d.commonType(["if","show"],"render").def("show"),panel:d.string||d.func};var gu=a.defineComponent({name:"TabNav",props:mg,setup(e){const n=a.computed(()=>{if(!Array.isArray(e.panels)||!e.panels.length)return[];const c=[];let f=!1;return e.panels.filter((h,g)=>{if(!h.props)return null;const{name:m,label:M,closable:C,visible:b,disabled:N,sortable:k}=h.props;if(!b)return!1;e.active===m&&(f=!0);const S=J=>h.slots.label?a.h(h.slots.label):[void 0,""].includes(J)?`\u9009\u9879\u5361${g+1}`:typeof J=="string"?J:typeof J=="function"?a.h(J):J;return c.push({name:m,closable:C,visible:b,disabled:N,sortable:k,tabLabel:S(M)}),!0}),!f&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),c}),i=a.ref(-1),s=a.ref(-1),l=a.ref("");return{navs:n,dragenterIndex:i,dragStartIndex:s,draggingEle:l,guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4)}},methods:{distinctRoots(e,n){return e===n},handleTabAdd(e){this.tabAdd(e)},dragstart(e,n){this.dragStartIndex=e,this.draggingEle=this.guid,Object.assign(n.dataTransfer,{effectAllowed:"move"}),this.tabDrag(e,n)},dragenter(e){this.distinctRoots(this.draggingEle,this.guid)&&(this.dragenterIndex=e)},dragend(){this.dragenterIndex=-1,this.dragStartIndex=-1,this.draggingEle=null},drop(e,n){if(!this.distinctRoots(this.draggingEle,this.guid))return!1;this.tabSort(this.dragStartIndex,e,n)},handleTabChange(e){this.tabChange(e)},handleTabRemove(e,n){this.tabRemove(e,n)}},render(){const{active:e,closable:n,addable:i,sortable:s,sortType:l,labelHeight:c,dragstart:f,dragenter:h,dragend:g,drop:m}=this,M=()=>this.navs.map((b,N)=>{if(!b)return null;const{name:k,disabled:S,tabLabel:J}=b,D=()=>{const z=["bk-tab-header-item"];return S&&z.push("bk-tab-header--disabled"),e===k&&z.push("bk-tab-header--active"),z.join(" ")},E=(z,U)=>z||U;return a.createVNode("div",{key:k,onClick:()=>this.handleTabChange(k),draggable:E(b.sortable,s),onDragstart:z=>f(N,z),onDragenter:z=>{z.preventDefault(),h(N)},onDragleave:z=>{z.preventDefault()},onDragover:z=>{z.preventDefault()},onDragend:z=>{z.preventDefault(),g()},onDrop:z=>{z.preventDefault(),m(N,l)},class:D()},[a.createVNode("div",null,[J]),E(b.closable,n)&&a.createVNode(Dn,{class:"bk-tab-header-item-close",onClick:()=>this.handleTabRemove(N,b)},null)])}),C=()=>{var N,k,S,J;const b=[];return typeof this.$slots.add=="function"?b.push((k=(N=this.$slots).add)==null?void 0:k.call(N,a.h)):i&&b.push(a.createVNode("div",{onClick:this.handleTabAdd},[a.createVNode(ms,{width:26,height:26},null)])),typeof this.$slots.setting=="function"&&b.push((J=(S=this.$slots).setting)==null?void 0:J.call(S,a.h)),b.length?a.createVNode("div",{class:"bk-tab-header-operation"},[b.map((D,E)=>a.createVNode("div",{class:"bk-tab-header-item",key:E},[D]))]):null};return a.createVNode("div",{style:{lineHeight:`${c}px`},class:"bk-tab-header"},[a.createVNode("div",{class:"bk-tab-header-nav"},[M()]),C()])}}),Ig=a.defineComponent({name:"Tab",components:{TabNav:gu},props:pg,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup(e,{slots:n}){const i=a.ref(!1),s=a.ref([]),l=a.getCurrentInstance();typeof n.panel=="function"&&(s.value=n.panel()),typeof n.default=="function"&&(s.value=n.default());const c=(h,g=[])=>{const{children:m}=h;return(m||[]).forEach(M=>{let{type:C}=M;C=C.name||C,C==="TabPanel"&&M.component?g.push(M.component):(C===a.Fragment||C==="template")&&c(M,g)}),g},f=()=>{if(n.default){const{children:h}=l.subTree.children[1];if(!h)return;const g=h[0],m=c(g);!(m.length===s.value.length&&m.every((C,b)=>C.uid===s.value[b].uid))&&(s.value=m)}};return a.onMounted(()=>{f(),i.value=!0}),a.onUpdated(()=>{f()}),{isMounted:i,panels:s}},methods:{tabAdd(e){this.$emit("add",{e}),this.$emit("add-panel",{e})},tabChange(e){this.$emit("change",e),this.$emit("tab-change",e),this.$emit("update:active",e)},tabRemove(e,n){this.$emit("remove",e,n),this.$emit("remove-panel",e,n)},tabSort(e,n,i){if(i==="insert")if(e<n)this.panels.splice(n+1,0,this.panels[e]),this.panels.splice(e,1);else if(e>n)this.panels.splice(n,0,this.panels[e]),this.panels.splice(e+1,1);else return!1;else{const s=this.panels[n];this.panels[n]=this.panels[e],this.panels[e]=s}this.$emit("sort",e,n,i),this.$emit("sort-change",e,n,i)},tabDrag(e,n){this.$emit("drag",e,n),this.$emit("on-drag-tab",e,n)}},render(){var i,s;const e=()=>this.tabPosition==="top"?`bk-tab bk-tab--${this.tabPosition} bk-tab--${this.type} ${this.extCls}`:`bk-tab bk-tab--${this.tabPosition} ${this.extCls}`,n=()=>{const{panels:l,active:c,type:f,closable:h,addable:g,sortable:m,sortType:M,labelHeight:C,scrollStep:b,validateActive:N,changeOnHover:k,changeOnHoverDelay:S,tabAdd:J,tabChange:D,tabRemove:E,tabSort:z,tabDrag:U}=this,Q={panels:l,active:c,type:f,closable:h,addable:g,sortable:m,sortType:M,labelHeight:C,scrollStep:b,validateActive:N,changeOnHover:k,changeOnHoverDelay:S,tabAdd:J,tabChange:D,tabRemove:E,tabSort:z,tabDrag:U};return!l||!Array.isArray(l)?null:a.createVNode(gu,Q,this.$slots)};return a.createVNode("div",{class:e()},[n(),a.createVNode("div",{class:"bk-tab-content"},[(s=(i=this.$slots).default)==null?void 0:s.call(i)])])}}),_s=a.defineComponent({name:"TabPanel",props:Mg,render(){const e=this.name===this.$parent.active,n=()=>!this.visible||this.renderDirective==="if"&&!e?null:typeof this.panel=="function"?this.panel(a.h):typeof this.$slots.default=="function"?this.$slots.default(null):typeof this.$slots.panel=="function"?this.$slots.panel(null):null;return a.withDirectives(a.createVNode("div",{ref:"content",class:"bk-tab-panel"},[n()]),[[a.vShow,e]])}});const pu=en(Ig,{TabPanel:_s}),Jn={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]};let mu=1;const Mu=(e,n)=>{let i=n;const s=i.position||"top-right";typeof n=="string"&&(i={message:n});const l=n.onClose;let c=i.offsetY||30;const{spacing:f=10}=i;Jn[s].forEach(M=>{c+=(M.el.offsetHeight||0)+f}),mu+=1;const h=`message_${mu}`;i=ze(O({},i),{offsetY:c,id:h});const g=document.createElement("div"),m=a.createVNode(e,i);m.props.onDestory=M=>{yg(M,s,f,l),a.render(null,g)},a.render(m,g),Jn[s].push(m),document.body.appendChild(g.firstElementChild)};function yg(e,n,i,s){s==null||s();const l=n.startsWith("top")?"top":"bottom";let c=-1;Jn[n].forEach((m,M)=>{m.props.id===e&&(c=M)});const h=Jn[n][c].el.offsetHeight,g=Jn[n].length;for(let m=c;m<g;m++){const M=parseInt(Jn[n][m].el.style[l],10)-h-i;Jn[n][m].component.props.offsetY=M}Jn[n].splice(c,1)}const Cg={id:d.string.def(""),message:d.string.def(""),theme:d.theme(["primary","warning","success","error"]).def("primary"),delay:d.number.def(3e3),dismissable:d.bool.def(!0),offsetY:d.number.def(30),spacing:d.number.def(10),extCls:d.string.def(""),onClose:d.func};var bg=a.defineComponent({name:"Message",props:Cg,emits:["destory"],setup(e,{emit:n}){const i=a.computed(()=>["bk-message",`bk-message-${e.theme}`,`${e.extCls}`]),s=on.getMessageNextIndex(),l=a.computed(()=>({top:`${e.offsetY}px`,zIndex:s})),c=a.ref(!1);let f=null;const h=()=>{f=setTimeout(()=>{c.value=!1},e.delay)},g=()=>{c.value=!1};return a.onMounted(()=>{e.delay&&h(),c.value=!0}),a.onUnmounted(()=>{clearTimeout(f)}),a.watch(c,()=>{c.value||n("destory",e.id)}),{classNames:i,styles:l,visible:c,close:g}},render(){const e=()=>({primary:a.createVNode(Qr,null,null),warning:a.createVNode(Ar,null,null),success:a.createVNode(Or,null,null),error:a.createVNode(Dn,null,null)})[this.theme];return a.createVNode(a.Transition,{name:"bk-fade"},{default:()=>[a.withDirectives(a.createVNode("div",{class:this.classNames,style:this.styles},[a.createVNode("div",{class:"bk-message-content"},[a.createVNode("div",{class:"bk-message-icon"},[e()]),this.message]),this.dismissable&&a.createVNode(jn,{class:"bk-message-icon bk-message-close",onClick:this.close},null)]),[[a.vShow,this.visible]])]})}});const Iu=e=>{Mu(bg,e)},Ng={id:d.string.def(""),title:d.string.def(""),message:d.string.def(""),theme:d.theme(["primary","warning","success","danger"]).def("primary"),position:d.position().def("top-right"),delay:d.number.def(3e3),offset:d.number.def(0),onClose:d.func};var wg=a.defineComponent({name:"Notify",props:Ng,emits:["destory"],setup(e,{emit:n}){const i=a.computed(()=>["bk-notify",`bk-notify-${e.theme}`]),s=on.getMessageNextIndex(),l=a.computed(()=>e.position.indexOf("right")>1?"right":"left"),c=a.computed(()=>e.position.startsWith("top")?"top":"bottom"),f=a.computed(()=>({[l.value]:"10px",[c.value]:`${e.offset}px`,zIndex:s})),h=a.ref(!1);let g=null;const m=()=>{g=setTimeout(()=>{h.value=!1},e.delay)},M=()=>{h.value=!1};return a.onMounted(()=>{m(),h.value=!0}),a.onUnmounted(()=>{clearTimeout(g)}),a.watch(h,()=>{h.value||n("destory",e.id)}),{classNames:i,styles:f,visible:h,handleClose:M}},render(){const e=()=>({primary:a.createVNode(Qr,null,null),warning:a.createVNode(Ar,null,null),success:a.createVNode(Or,null,null),danger:a.createVNode(Dn,null,null)})[this.theme];return a.createVNode(a.Transition,{name:"bk-notify-fade"},{default:()=>[a.withDirectives(a.createVNode("div",{class:this.classNames,style:this.styles},[a.createVNode("div",{class:"bk-notify-content"},[a.createVNode("div",{class:"bk-notify-icon"},[e()]),this.title?a.createVNode("h3",{class:"bk-notify-content-header"},[this.title]):"",a.createVNode("div",{class:"bk-notify-content-text"},[this.message])]),a.createVNode(jn,{class:"bk-notify-icon bk-notify-close",onClick:this.handleClose},null)]),[[a.vShow,this.visible]])]})}});const yu=e=>{Mu(wg,e)},Cu=Symbol("MENU_PROVIDER_KEY"),Xs=Symbol("MENU_PROVIDER_KEY_PATH"),Lg=e=>{a.provide(Cu,e)},kg=e=>{const{parentKeys:n,parentInfo:i}=Ks(),s=a.computed(()=>[...n.value,e]);a.provide(Xs,{parentInfo:{key:e,parentKey:i==null?void 0:i.key},parentKeys:s})},bu=()=>a.inject(Cu),Ks=()=>{var i;const e=a.getCurrentInstance(),n=e.parent?e.parent.provides:(i=e.vnode.appContext)==null?void 0:i.provides;return n&&Xs in n?a.inject(Xs):{parentInfo:void 0,parentKeys:a.ref([])}},$s=function(e){return(e||"").split(" ").filter(n=>!!n.trim())};function Nu(e,n){if(!e||!n)return;const i=$s(n);let s=e.getAttribute("class")||"";if(e.classList){e.classList.remove(...i);return}i.forEach(c=>{s=s.replace(` ${c} `," ")});const l=$s(s).join(" ");e.setAttribute("class",l)}function wu(e,n){if(!e)return;let i=e.getAttribute("class")||"";const s=$s(i),l=(n||"").split(" ").filter(c=>!s.includes(c)&&!!c.trim());e.classList?e.classList.add(...l):(i+=` ${l.join(" ")}`,e.setAttribute("class",i))}const vg=()=>({css:!0,onBeforeEnter:e=>{wu(e,"collapse-transition"),e.dataset||(e.dataset={}),e.style.height="0px",e.style.maxHeight="0px"},onEnter:e=>{e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?(e.style.height=`${e.scrollHeight}px`,e.style.maxHeight=`${e.scrollHeight}px`):(e.style.height="0px",e.style.maxHeight="0px"),e.style.overflow="hidden"},onAfterEnter:e=>{e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,Nu(e,"collapse-transition")},onBeforeLeave:e=>{e.dataset||(e.dataset={}),e.dataset.oldOverflow=e.style.overflow,e.style.height=`${e.scrollHeight}px`,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},onLeave:e=>{e.scrollHeight!==0&&(wu(e,"collapse-transition"),e.style.transitionProperty="height",e.style.height="0px",e.style.maxHeight="0px")},onAfterLeave:e=>{Nu(e,"collapse-transition"),e.style.height="",e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow}}),Tg={activeKey:String,collapse:{type:Boolean,default:!1},OpenedKeys:{type:Array},mode:{type:String,default:"vertical"},uniqueOpen:{type:Boolean,default:!0}};var xg=a.defineComponent({name:"Menu",props:Tg,emits:["update:activeKey","update:openKeys","click","openChange"],setup(e,{slots:n,emit:i}){const s=a.ref(""),l=a.ref([]),c=a.ref({}),f=a.computed(()=>e.mode),h=a.ref(e.collapse),g=a.ref([]);a.watch(()=>e.OpenedKeys,(N=l.value)=>{l.value=N},{immediate:!0}),a.watchEffect(()=>{e.activeKey!==void 0&&(s.value=e.activeKey)}),a.watch(()=>e.collapse,()=>{h.value=e.collapse;const N=[...g.value],k=[...l.value];l.value=h.value?[]:N,g.value=h.value?k:[]},{immediate:!0});const m=(N,k)=>{c.value=ze(O({},c.value),{[N]:k})},M=N=>{delete c.value[N],c.value=O({},c.value)},C=(N,k)=>{k?e.uniqueOpen?l.value=[N]:l.value.push(N):l.value=l.value.filter(S=>S!==N),i("openChange",k,c.value[N]),i("update:openKeys",[...l.value])},b=N=>{s.value=N,i("click",c.value[N]),i("update:activeKey",N,c.value[N])};return Lg({activeKey:s,menuStore:c,registerMenuInfo:m,unregisterMenuInfo:M,mode:f.value,openedKeys:l,collapse:h,handleOpenChange:C,handleActiveChange:b}),()=>{var N;return a.createVNode("div",{class:{"bk-menu":!0,"is-collapse":h.value}},[(N=n==null?void 0:n.default)==null?void 0:N.call(n)])}}}),Sg=a.defineComponent({name:"MenuGroup",props:{name:{type:String,default:""}},setup(e,{slots:n}){return()=>{var i;return a.createVNode("div",{class:"bk-menu-group"},[a.createVNode("div",{class:"group-name"},[e.name]),a.createVNode("ul",{class:"group-wrap"},[(i=n.default)==null?void 0:i.call(n)])])}}}),Dg=a.defineComponent({name:"MenuItem",props:{needIcon:{type:Boolean,default:!0}},emits:["click"],slots:["icon"],setup(e,{slots:n,emit:i}){var N,k;const{registerMenuInfo:s,unregisterMenuInfo:l,activeKey:c,handleActiveChange:f}=bu(),h=a.getCurrentInstance(),{parentInfo:g}=Ks(),m=((k=(N=h.vnode.key)==null?void 0:N.toString)==null?void 0:k.call(N))||String(h.uid),M=a.computed(()=>c.value===m),C=a.computed(()=>e.needIcon);s(m,{key:m,parentKey:g==null?void 0:g.key});const b=S=>{f(m),i("click",S)};return a.onBeforeUnmount(()=>l(m)),()=>{var S,J;return a.createVNode("li",{class:{"bk-menu-item":!0,"is-active":M.value},onClick:b},[C.value&&a.createVNode("span",{class:"item-icon"},[((S=n==null?void 0:n.icon)==null?void 0:S.call(n))||a.createVNode("i",{class:"default-icon"},null)]),a.createVNode("span",{class:"item-content"},[(J=n.default)==null?void 0:J.call(n)])])}}});const jg={title:{type:String,default:"title"}};var zg=a.defineComponent({name:"Submenu",props:jg,emits:["collapse"],slots:["icon"],setup(e,{slots:n,emit:i}){var D,E;const{registerMenuInfo:s,unregisterMenuInfo:l,openedKeys:c,handleOpenChange:f,collapse:h,activeKey:g,menuStore:m}=bu(),{parentInfo:M}=Ks(),C=a.getCurrentInstance(),b=((E=(D=C.vnode.key)==null?void 0:D.toString)==null?void 0:E.call(D))||String(C.uid),N=a.ref(vg()),k=a.computed(()=>c.value.includes(b)),S=a.computed(()=>{var U,Q;const z=(Q=(U=m.value)==null?void 0:U[g.value])==null?void 0:Q.parentKey;return h.value&&z===b&&k});kg(b),s(b,{key:b,parentKey:M==null?void 0:M.key}),a.onBeforeUnmount(()=>l(b));const J=()=>{f(b,!k.value),i("collapse",!k.value,C)};return()=>{var z;return a.createVNode("li",{class:{"bk-menu-submenu":!0,"is-opened":k.value}},[a.createVNode("div",{class:{"submenu-header":!0,"is-collapse":S.value},onClick:J},[a.createVNode("span",{class:"submenu-header-icon"},[((z=n.icon)==null?void 0:z.call(n))||a.createVNode(bs,{class:"menu-icon"},null)]),a.createVNode("span",{class:"submenu-header-content"},[e.title]),a.createVNode(Sr,{class:{"submenu-header-collapse":!0,"is-collapse":c.value.includes(b)}},null)]),a.createVNode(a.Transition,N.value,{default:()=>{var U;return[a.withDirectives(a.createVNode("ul",{class:"submenu-list"},[(U=n.default)==null?void 0:U.call(n)]),[[a.vShow,k.value]])]}})])}}});const Lu=en(xg,{Item:Dg,Submenu:zg,Group:Sg}),Jg={sideTitle:{type:String,default:""},navigationType:{type:String,default:"left-right"}};var ku=a.defineComponent({props:Jg,slots:["side-icon"],setup(e,{slots:n}){return()=>{var i,s;return a.createVNode("div",{class:"bk-navigation-title",style:{borderBottomWidth:e.navigationType==="left-right"?"0":"1px"}},[((i=n.default)==null?void 0:i.call(n))||[a.createVNode("span",{class:"title-icon"},[((s=n["side-icon"])==null?void 0:s.call(n))||a.createVNode("i",{class:"bk-icon icon-rtx"},null)]),a.createVNode("span",{class:"title-desc"},[e.sideTitle])]])}}});const Qg={navWidth:{type:[Number,String],default:60},hoverWidth:{type:[Number,String],default:260},sideTitle:{type:String,default:""},headerTitle:{type:String,default:""},hoverLeaveDelay:{type:Number,default:0},hoverEnterDelay:{type:Number,default:100},defaultOpen:Boolean,headHeight:{type:[Number,String],default:52},navigationType:{type:String,default:"left-right",validator(e){return["top-bottom","left-right"].includes(e)}},needMenu:{type:Boolean,default:!0}};var ir=a.defineComponent({name:"Navigation",props:Qg,emits:["leave","toggle","hover","toggle-click"],slots:["header","menu","footer","side-icon","side-header"],setup(e,{emit:n}){const i=a.ref(e.headerTitle),s=a.reactive({click:!1,hover:!1,delay:!1,timer:null,enterTimer:null});e.defaultOpen&&(s.click=!s.click,s.hover=s.click,n("toggle",s.hover)),a.onBeforeUnmount(()=>{s.timer&&window.clearTimeout(s.timer)});const l=()=>{s.click||(s.enterTimer=setTimeout(()=>{s.hover=!0,s.enterTimer&&window.clearTimeout(s.enterTimer),s.timer&&window.clearTimeout(s.timer),n("hover",s.hover),n("toggle",s.hover)},e.hoverEnterDelay))},c=()=>{s.click||(s.enterTimer&&window.clearTimeout(s.enterTimer),s.timer=setTimeout(()=>{s.hover=!1,window.clearTimeout(s.timer),n("leave",s.hover),n("toggle",s.hover)},e.hoverLeaveDelay))},f=()=>{s.click=!s.click,s.hover=s.click,n("toggle",s.hover),n("toggle-click",s.hover)};return{defaultHeaderTitle:i,nav:s,onBeforeUnmount:a.onBeforeUnmount,handleMouseOver:l,handleMouseLeave:c,handleClick:f}},render(){var e,n,i,s,l,c,f,h,g,m,M,C;return a.createVNode("div",{class:"bk-navigation"},[this.navigationType==="top-bottom"&&a.createVNode("div",{class:"bk-navigation-header",style:{flexBasis:`${this.headHeight}px`}},[a.createVNode(ku,{sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),a.createVNode("div",{class:"header-right"},[(n=(e=this.$slots).header)==null?void 0:n.call(e)])]),a.createVNode("div",{class:"bk-navigation-wrapper"},[this.needMenu&&a.createVNode("div",{class:"navigation-nav",style:{width:this.nav.click?`${this.hoverWidth}px`:`${this.navWidth}px`}},[a.createVNode("div",{class:"nav-slider",onMouseenter:this.handleMouseOver,onMouseleave:this.handleMouseLeave,style:{width:this.nav.hover?`${this.hoverWidth}px`:`${this.navWidth}px`,borderRight:this.navigationType!=="top-bottom"?"none":"1px solid #DCDEE5"}},[this.navigationType!=="top-bottom"&&a.createVNode(ku,{style:{flexBasis:`${this.headHeight}px`},sideTitle:this.sideTitle},{default:this.$slots["side-header"],"side-icon":this.$slots["side-header"]?void 0:this.$slots["side-icon"]}),a.createVNode("div",{class:"nav-slider-list",style:{height:`calc(100vh - ${+this.headHeight+56}px)`}},[(s=(i=this.$slots).menu)==null?void 0:s.call(i)]),a.createVNode("div",{class:"nav-slider-footer"},[a.createVNode("div",{class:{"is-left":this.navigationType!=="top-bottom","footer-icon":!0},onClick:this.handleClick},[a.createVNode(ls,{class:"footer-icon-svg",style:{transform:this.nav.click?"rotate(180deg)":"rotate(0deg)"}},null)])])])]),a.createVNode("div",{class:"navigation-container",style:{maxWidth:this.needMenu?"calc(100vw - 60px)":"100vw"}},[this.navigationType!=="top-bottom"&&a.createVNode("div",{class:"container-header",style:{flexBasis:`${this.headHeight}px`}},[((c=(l=this.$slots).header)==null?void 0:c.call(l))||[a.createVNode("div",{class:"container-header-title"},[this.headerTitle]),a.createVNode("div",{class:"container-header-sets"},[(h=(f=this.$slots)["header-set"])==null?void 0:h.call(f)])]]),a.createVNode("div",{class:"container-content",style:{maxHeight:`calc(100vh - ${this.headHeight}px)`}},[(m=(g=this.$slots).default)==null?void 0:m.call(g),a.createVNode("div",{class:"container-footer"},[(C=(M=this.$slots).footer)==null?void 0:C.call(M)])])])])])}});ir.install=e=>{e.component(ir.name,ir)};const Pg={placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0?(console.error(`placement property is not valid: '${e}'`),!1):!0},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function};var Og=a.defineComponent({props:Pg,emits:["changeVisible"],setup(e,{emit:n}){let i=Object.create(null);const s=a.ref(null);a.onMounted(()=>{c()}),a.onBeforeUnmount(()=>{l()});const l=()=>{if(i&&Object.keys(i).length!==0){const g=i;g.isShow&&g.hide(),g.destroy(),i=null,n("changeVisible",!1)}},c=()=>{i&&Object.keys(i).length!==0?a.nextTick(()=>{i.update()}):a.nextTick(()=>{i=new es(e.triggerRef,s.value,{placement:e.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})})},f=a.computed(()=>{const g={};return e.appendToBody&&(g["z-index"]=1060+on.getModalNextIndex()),g}),h=a.reactive({styles:f});return ze(O({},a.toRefs(h)),{refContentRef:s,updateDropdown:c,destoryDropdown:l})},render(){var e,n,i;return a.createVNode("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[(i=(n=(e=this.$slots).default)==null?void 0:n.call(e))!=null?i:""])}}),vu=1e3*60*60*24;function Tu(e,n){return new Date(e,n+1,0).getDate()}function xu(e,n,i){return n===0&&i>50?e-1:n===11&&i<10?e+1:e}function Su(e,n,i,s){n>11&&(n=0,e++);var l=new Date(e,n,i);s&&l.setDate(l.getDate()+4-(l.getDay()||7));var c=s?l.getFullYear():e,f=new Date(c,0,1),h=1+Math.round((l-f)/vu);s||(h+=f.getDay());var g=Math.ceil(h/7);if(!s){var m=new Date(e,n,i),M=new Date(e+1,0,1),C=M.getDay();m.getTime()>=M.getTime()-vu*C&&(g=1)}return g}function Ag(e,n,i){for(var s=this.lang||"en",l=this.onlyDays,c=typeof this.weekStart=="undefined"?1:this.weekStart,f=c===1,h=[],g=new Date(e,n,1),m=g.getDay()||(f?7:0),M=c-m,C=Su(e,n,1,f),b=Tu(e,n),N=Tu(e,n-1),k,S,J,D=xu(e,n,C),E={month:n,year:e,daysInMonth:b},z=0;z<7;z++){J=M;for(var U=0;U<8;U++){z>0&&U>0&&M++,M>b||M<1?(S=M>b?M-b:N+M,k=M>b?n+1:n-1):(S=M,k=n);var Q=function(){return U===0?"weekLabel":z===0?"dayLabel":M<1?"prevMonth":M>b?"nextMonth":"monthDay"}(),H=J!==M&&z>0,F={desc:H?S:C,week:C,type:Q,format:f?"ISO 8601":"US",date:H?new Date(Date.UTC(e,k,S)):!1,year:D,index:h.length};i&&(typeof i=="function"?F=i.call(E,F,s):i.forEach(function(ne){F=ne.call(E,F,s)})),l&&H?h.push(F):l||h.push(F)}z>0&&(C=Su(e,k,S+1,f)),D=xu(e,n,C)}return E.cells=h,E}var Eg=function(e){return Ag.bind(e)},Vg={weekPlaceholder:"",columnNames:{en:{0:"w",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday",7:"sunday"},sv:{0:"v",1:"m\xE5ndag",2:"tisdag",3:"onsdag",4:"torsdag",5:"fredag",6:"l\xF6rdag",7:"s\xF6ndag"},pt:{0:"s",1:"segunda",2:"ter\xE7a",3:"quarta",4:"quinta",5:"sexta",6:"s\xE1bado",7:"domingo"}},monthNames:{en:["January","February","March","April","May","June","July","August","September","October","November","December"],sv:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],pt:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},classes:{dayLabel:"day-of-week",weekLabel:"week-number",prevMonth:"inactive",nextMonth:"inactive",monthDay:"day-in-month"}},dn=Vg;function Wg(e){return e==null?!1:e.constructor===Array||e.constructor===Object}function Du(e,n){for(var i in e)n[i]?Wg(e[i])&&Du(e[i],n[i]):n[i]=e[i]}function ju(e,n){var i=[dn.classes[e.type]];return e.class?e.class=(typeof e.class=="string"?[e.class]:e.class).concat(i):e.class=i,e.type.indexOf("Label")>0&&(e.index==0&&dn.weekPlaceholder?e.desc=dn.weekPlaceholder:e.index<8?e.desc=dn.columnNames[n][e.index]:e.index%8==0&&(e.desc=e.week)),e.date&&(e.monthName=dn.monthNames[n][e.date.getMonth()]),this.monthName||(this.monthName=dn.monthNames[n][this.month]),this.labels||(this.labels={monthNames:dn.monthNames[n],columnNames:dn.columnNames[n],classes:dn.classes}),e}ju.setLabels=function(e){Du(e,dn)};var Zg=ju,Rg={Generator:Eg,addLabels:Zg};function Rt(e){if(e===null||e===!0||e===!1)return NaN;var n=Number(e);return isNaN(n)?n:n<0?Math.ceil(n):Math.floor(n)}function yt(e,n){if(n.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+n.length+" present")}function tn(e){yt(1,arguments);var n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new Date(e.getTime()):typeof e=="number"||n==="[object Number]"?new Date(e):((typeof e=="string"||n==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn(new Error().stack)),new Date(NaN))}function Gg(e,n){yt(2,arguments);var i=tn(e).getTime(),s=Rt(n);return new Date(i+s)}function Yg(e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),e.getTime()-n.getTime()}function Bg(e){return yt(1,arguments),e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Hg(e){if(yt(1,arguments),!Bg(e)&&typeof e!="number")return!1;var n=tn(e);return!isNaN(Number(n))}var Fg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ug=function(e,n,i){var s,l=Fg[e];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",n.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+s:s+" ago":s},_g=Ug;function qs(e){return function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width?String(n.width):e.defaultWidth,s=e.formats[i]||e.formats[e.defaultWidth];return s}}var Xg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Kg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},$g={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qg={date:qs({formats:Xg,defaultWidth:"full"}),time:qs({formats:Kg,defaultWidth:"full"}),dateTime:qs({formats:$g,defaultWidth:"full"})},e4=qg,t4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n4=function(e,n,i,s){return t4[e]},i4=n4;function rr(e){return function(n,i){var s=i||{},l=s.context?String(s.context):"standalone",c;if(l==="formatting"&&e.formattingValues){var f=e.defaultFormattingWidth||e.defaultWidth,h=s.width?String(s.width):f;c=e.formattingValues[h]||e.formattingValues[f]}else{var g=e.defaultWidth,m=s.width?String(s.width):e.defaultWidth;c=e.values[m]||e.values[g]}var M=e.argumentCallback?e.argumentCallback(n):n;return c[M]}}var r4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},o4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},c4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},u4=function(e,n){var i=Number(e),s=i%100;if(s>20||s<10)switch(s%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},d4={ordinalNumber:u4,era:rr({values:r4,defaultWidth:"wide"}),quarter:rr({values:a4,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:rr({values:s4,defaultWidth:"wide"}),day:rr({values:o4,defaultWidth:"wide"}),dayPeriod:rr({values:l4,defaultWidth:"wide",formattingValues:c4,defaultFormattingWidth:"wide"})},f4=d4;function ar(e){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.width,l=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],c=n.match(l);if(!c)return null;var f=c[0],h=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],g=Array.isArray(h)?g4(h,function(C){return C.test(f)}):h4(h,function(C){return C.test(f)}),m;m=e.valueCallback?e.valueCallback(g):g,m=i.valueCallback?i.valueCallback(m):m;var M=n.slice(f.length);return{value:m,rest:M}}}function h4(e,n){for(var i in e)if(e.hasOwnProperty(i)&&n(e[i]))return i}function g4(e,n){for(var i=0;i<e.length;i++)if(n(e[i]))return i}function p4(e){return function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=n.match(e.matchPattern);if(!s)return null;var l=s[0],c=n.match(e.parsePattern);if(!c)return null;var f=e.valueCallback?e.valueCallback(c[0]):c[0];f=i.valueCallback?i.valueCallback(f):f;var h=n.slice(l.length);return{value:f,rest:h}}}var m4=/^(\d+)(th|st|nd|rd)?/i,M4=/\d+/i,I4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},y4={any:[/^b/i,/^(a|c)/i]},C4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},b4={any:[/1/i,/2/i,/3/i,/4/i]},N4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},w4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},L4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},k4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},v4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},x4={ordinalNumber:p4({matchPattern:m4,parsePattern:M4,valueCallback:function(e){return parseInt(e,10)}}),era:ar({matchPatterns:I4,defaultMatchWidth:"wide",parsePatterns:y4,defaultParseWidth:"any"}),quarter:ar({matchPatterns:C4,defaultMatchWidth:"wide",parsePatterns:b4,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:ar({matchPatterns:N4,defaultMatchWidth:"wide",parsePatterns:w4,defaultParseWidth:"any"}),day:ar({matchPatterns:L4,defaultMatchWidth:"wide",parsePatterns:k4,defaultParseWidth:"any"}),dayPeriod:ar({matchPatterns:v4,defaultMatchWidth:"any",parsePatterns:T4,defaultParseWidth:"any"})},S4=x4,D4={code:"en-US",formatDistance:_g,formatLong:e4,formatRelative:i4,localize:f4,match:S4,options:{weekStartsOn:0,firstWeekContainsDate:1}},j4=D4;function z4(e,n){yt(2,arguments);var i=Rt(n);return Gg(e,-i)}var J4=864e5;function Q4(e){yt(1,arguments);var n=tn(e),i=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var s=n.getTime(),l=i-s;return Math.floor(l/J4)+1}function Ur(e){yt(1,arguments);var n=1,i=tn(e),s=i.getUTCDay(),l=(s<n?7:0)+s-n;return i.setUTCDate(i.getUTCDate()-l),i.setUTCHours(0,0,0,0),i}function zu(e){yt(1,arguments);var n=tn(e),i=n.getUTCFullYear(),s=new Date(0);s.setUTCFullYear(i+1,0,4),s.setUTCHours(0,0,0,0);var l=Ur(s),c=new Date(0);c.setUTCFullYear(i,0,4),c.setUTCHours(0,0,0,0);var f=Ur(c);return n.getTime()>=l.getTime()?i+1:n.getTime()>=f.getTime()?i:i-1}function P4(e){yt(1,arguments);var n=zu(e),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=Ur(i);return s}var O4=6048e5;function A4(e){yt(1,arguments);var n=tn(e),i=Ur(n).getTime()-P4(n).getTime();return Math.round(i/O4)+1}function _r(e,n){yt(1,arguments);var i=n||{},s=i.locale,l=s&&s.options&&s.options.weekStartsOn,c=l==null?0:Rt(l),f=i.weekStartsOn==null?c:Rt(i.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=tn(e),g=h.getUTCDay(),m=(g<f?7:0)+g-f;return h.setUTCDate(h.getUTCDate()-m),h.setUTCHours(0,0,0,0),h}function Ju(e,n){yt(1,arguments);var i=tn(e),s=i.getUTCFullYear(),l=n||{},c=l.locale,f=c&&c.options&&c.options.firstWeekContainsDate,h=f==null?1:Rt(f),g=l.firstWeekContainsDate==null?h:Rt(l.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(s+1,0,g),m.setUTCHours(0,0,0,0);var M=_r(m,n),C=new Date(0);C.setUTCFullYear(s,0,g),C.setUTCHours(0,0,0,0);var b=_r(C,n);return i.getTime()>=M.getTime()?s+1:i.getTime()>=b.getTime()?s:s-1}function E4(e,n){yt(1,arguments);var i=n||{},s=i.locale,l=s&&s.options&&s.options.firstWeekContainsDate,c=l==null?1:Rt(l),f=i.firstWeekContainsDate==null?c:Rt(i.firstWeekContainsDate),h=Ju(e,n),g=new Date(0);g.setUTCFullYear(h,0,f),g.setUTCHours(0,0,0,0);var m=_r(g,n);return m}var V4=6048e5;function W4(e,n){yt(1,arguments);var i=tn(e),s=_r(i,n).getTime()-E4(i,n).getTime();return Math.round(s/V4)+1}function Ae(e,n){for(var i=e<0?"-":"",s=Math.abs(e).toString();s.length<n;)s="0"+s;return i+s}var Z4={y:function(e,n){var i=e.getUTCFullYear(),s=i>0?i:1-i;return Ae(n==="yy"?s%100:s,n.length)},M:function(e,n){var i=e.getUTCMonth();return n==="M"?String(i+1):Ae(i+1,2)},d:function(e,n){return Ae(e.getUTCDate(),n.length)},a:function(e,n){var i=e.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(e,n){return Ae(e.getUTCHours()%12||12,n.length)},H:function(e,n){return Ae(e.getUTCHours(),n.length)},m:function(e,n){return Ae(e.getUTCMinutes(),n.length)},s:function(e,n){return Ae(e.getUTCSeconds(),n.length)},S:function(e,n){var i=n.length,s=e.getUTCMilliseconds(),l=Math.floor(s*Math.pow(10,i-3));return Ae(l,n.length)}},Qn=Z4,vi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R4={G:function(e,n,i){var s=e.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(s,{width:"abbreviated"});case"GGGGG":return i.era(s,{width:"narrow"});case"GGGG":default:return i.era(s,{width:"wide"})}},y:function(e,n,i){if(n==="yo"){var s=e.getUTCFullYear(),l=s>0?s:1-s;return i.ordinalNumber(l,{unit:"year"})}return Qn.y(e,n)},Y:function(e,n,i,s){var l=Ju(e,s),c=l>0?l:1-l;if(n==="YY"){var f=c%100;return Ae(f,2)}return n==="Yo"?i.ordinalNumber(c,{unit:"year"}):Ae(c,n.length)},R:function(e,n){var i=zu(e);return Ae(i,n.length)},u:function(e,n){var i=e.getUTCFullYear();return Ae(i,n.length)},Q:function(e,n,i){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return Ae(s,2);case"Qo":return i.ordinalNumber(s,{unit:"quarter"});case"QQQ":return i.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,n,i){var s=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return Ae(s,2);case"qo":return i.ordinalNumber(s,{unit:"quarter"});case"qqq":return i.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,n,i){var s=e.getUTCMonth();switch(n){case"M":case"MM":return Qn.M(e,n);case"Mo":return i.ordinalNumber(s+1,{unit:"month"});case"MMM":return i.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(s,{width:"wide",context:"formatting"})}},L:function(e,n,i){var s=e.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return Ae(s+1,2);case"Lo":return i.ordinalNumber(s+1,{unit:"month"});case"LLL":return i.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(s,{width:"wide",context:"standalone"})}},w:function(e,n,i,s){var l=W4(e,s);return n==="wo"?i.ordinalNumber(l,{unit:"week"}):Ae(l,n.length)},I:function(e,n,i){var s=A4(e);return n==="Io"?i.ordinalNumber(s,{unit:"week"}):Ae(s,n.length)},d:function(e,n,i){return n==="do"?i.ordinalNumber(e.getUTCDate(),{unit:"date"}):Qn.d(e,n)},D:function(e,n,i){var s=Q4(e);return n==="Do"?i.ordinalNumber(s,{unit:"dayOfYear"}):Ae(s,n.length)},E:function(e,n,i){var s=e.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(s,{width:"short",context:"formatting"});case"EEEE":default:return i.day(s,{width:"wide",context:"formatting"})}},e:function(e,n,i,s){var l=e.getUTCDay(),c=(l-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(c);case"ee":return Ae(c,2);case"eo":return i.ordinalNumber(c,{unit:"day"});case"eee":return i.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(l,{width:"short",context:"formatting"});case"eeee":default:return i.day(l,{width:"wide",context:"formatting"})}},c:function(e,n,i,s){var l=e.getUTCDay(),c=(l-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(c);case"cc":return Ae(c,n.length);case"co":return i.ordinalNumber(c,{unit:"day"});case"ccc":return i.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(l,{width:"narrow",context:"standalone"});case"cccccc":return i.day(l,{width:"short",context:"standalone"});case"cccc":default:return i.day(l,{width:"wide",context:"standalone"})}},i:function(e,n,i){var s=e.getUTCDay(),l=s===0?7:s;switch(n){case"i":return String(l);case"ii":return Ae(l,n.length);case"io":return i.ordinalNumber(l,{unit:"day"});case"iii":return i.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(s,{width:"short",context:"formatting"});case"iiii":default:return i.day(s,{width:"wide",context:"formatting"})}},a:function(e,n,i){var s=e.getUTCHours(),l=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,n,i){var s=e.getUTCHours(),l;switch(s===12?l=vi.noon:s===0?l=vi.midnight:l=s/12>=1?"pm":"am",n){case"b":case"bb":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,n,i){var s=e.getUTCHours(),l;switch(s>=17?l=vi.evening:s>=12?l=vi.afternoon:s>=4?l=vi.morning:l=vi.night,n){case"B":case"BB":case"BBB":return i.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,n,i){if(n==="ho"){var s=e.getUTCHours()%12;return s===0&&(s=12),i.ordinalNumber(s,{unit:"hour"})}return Qn.h(e,n)},H:function(e,n,i){return n==="Ho"?i.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Qn.H(e,n)},K:function(e,n,i){var s=e.getUTCHours()%12;return n==="Ko"?i.ordinalNumber(s,{unit:"hour"}):Ae(s,n.length)},k:function(e,n,i){var s=e.getUTCHours();return s===0&&(s=24),n==="ko"?i.ordinalNumber(s,{unit:"hour"}):Ae(s,n.length)},m:function(e,n,i){return n==="mo"?i.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Qn.m(e,n)},s:function(e,n,i){return n==="so"?i.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Qn.s(e,n)},S:function(e,n){return Qn.S(e,n)},X:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();if(c===0)return"Z";switch(n){case"X":return Pu(c);case"XXXX":case"XX":return qn(c);case"XXXXX":case"XXX":default:return qn(c,":")}},x:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"x":return Pu(c);case"xxxx":case"xx":return qn(c);case"xxxxx":case"xxx":default:return qn(c,":")}},O:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Qu(c,":");case"OOOO":default:return"GMT"+qn(c,":")}},z:function(e,n,i,s){var l=s._originalDate||e,c=l.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Qu(c,":");case"zzzz":default:return"GMT"+qn(c,":")}},t:function(e,n,i,s){var l=s._originalDate||e,c=Math.floor(l.getTime()/1e3);return Ae(c,n.length)},T:function(e,n,i,s){var l=s._originalDate||e,c=l.getTime();return Ae(c,n.length)}};function Qu(e,n){var i=e>0?"-":"+",s=Math.abs(e),l=Math.floor(s/60),c=s%60;if(c===0)return i+String(l);var f=n||"";return i+String(l)+f+Ae(c,2)}function Pu(e,n){if(e%60===0){var i=e>0?"-":"+";return i+Ae(Math.abs(e)/60,2)}return qn(e,n)}function qn(e,n){var i=n||"",s=e>0?"-":"+",l=Math.abs(e),c=Ae(Math.floor(l/60),2),f=Ae(l%60,2);return s+c+i+f}var G4=R4;function Ou(e,n){switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}}function Au(e,n){switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}}function Y4(e,n){var i=e.match(/(P+)(p+)?/)||[],s=i[1],l=i[2];if(!l)return Ou(e,n);var c;switch(s){case"P":c=n.dateTime({width:"short"});break;case"PP":c=n.dateTime({width:"medium"});break;case"PPP":c=n.dateTime({width:"long"});break;case"PPPP":default:c=n.dateTime({width:"full"});break}return c.replace("{{date}}",Ou(s,n)).replace("{{time}}",Au(l,n))}var B4={p:Au,P:Y4},H4=B4,F4=["D","DD"],U4=["YY","YYYY"];function _4(e){return F4.indexOf(e)!==-1}function X4(e){return U4.indexOf(e)!==-1}function Eu(e,n,i){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(n,"`) for formatting years to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(n,"`) for formatting days of the month to the input `").concat(i,"`; see: https://git.io/fxCyr"))}var K4=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$4=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q4=/^'([^]*?)'?$/,ep=/''/g,tp=/[a-zA-Z]/;function np(e,n,i){yt(2,arguments);var s=String(n),l=i||{},c=l.locale||j4,f=c.options&&c.options.firstWeekContainsDate,h=f==null?1:Rt(f),g=l.firstWeekContainsDate==null?h:Rt(l.firstWeekContainsDate);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=c.options&&c.options.weekStartsOn,M=m==null?0:Rt(m),C=l.weekStartsOn==null?M:Rt(l.weekStartsOn);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!c.localize)throw new RangeError("locale must contain localize property");if(!c.formatLong)throw new RangeError("locale must contain formatLong property");var b=tn(e);if(!Hg(b))throw new RangeError("Invalid time value");var N=Yg(b),k=z4(b,N),S={firstWeekContainsDate:g,weekStartsOn:C,locale:c,_originalDate:b},J=s.match($4).map(function(D){var E=D[0];if(E==="p"||E==="P"){var z=H4[E];return z(D,c.formatLong,S)}return D}).join("").match(K4).map(function(D){if(D==="''")return"'";var E=D[0];if(E==="'")return ip(D);var z=G4[E];if(z)return!l.useAdditionalWeekYearTokens&&X4(D)&&Eu(D,n,e),!l.useAdditionalDayOfYearTokens&&_4(D)&&Eu(D,n,e),z(k,D,c.localize,S);if(E.match(tp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return D}).join("");return J}function ip(e){return e.match(q4)[1].replace(ep,"'")}const ut={},Vu=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,ei=/\d\d?/,rp=/\d{3}/,ap=/\d{4}/,Xr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wu=function(){};function Zu(e,n){const i=[];for(let s=0,l=e.length;s<l;s++)i.push(e[s].substr(0,n));return i}function Ru(e){return(n,i,s)=>{const l=s[e].indexOf(i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());~l&&(n.month=l)}}function fn(e,n=2){let i=String(e);for(;i.length<n;)i=`0${i}`;return i}const Gu=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Yu=["January","February","March","April","May","June","July","August","September","October","November","December"],sp=Zu(Yu,3),op=Zu(Gu,3);ut.i18n={dayNamesShort:op,dayNames:Gu,monthNamesShort:sp,monthNames:Yu,amPm:["am","pm"],DoFn(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};const Bu={D(e){return e.getDay()},DD(e){return fn(e.getDay())},Do(e,n){return n.DoFn(e.getDate())},d(e){return e.getDate()},dd(e){return fn(e.getDate())},ddd(e,n){return n.dayNamesShort[e.getDay()]},dddd(e,n){return n.dayNames[e.getDay()]},M(e){return e.getMonth()+1},MM(e){return fn(e.getMonth()+1)},MMM(e,n){return n.monthNamesShort[e.getMonth()]},MMMM(e,n){return n.monthNames[e.getMonth()]},yy(e){return String(e.getFullYear()).substr(2)},yyyy(e){return e.getFullYear()},h(e){return e.getHours()%12||12},hh(e){return fn(e.getHours()%12||12)},H(e){return e.getHours()},HH(e){return fn(e.getHours())},m(e){return e.getMinutes()},mm(e){return fn(e.getMinutes())},s(e){return e.getSeconds()},ss(e){return fn(e.getSeconds())},S(e){return Math.round(e.getMilliseconds()/100)},SS(e){return fn(Math.round(e.getMilliseconds()/10),2)},SSS(e){return fn(e.getMilliseconds(),3)},a(e,n){return e.getHours()<12?n.amPm[0]:n.amPm[1]},A(e,n){return e.getHours()<12?n.amPm[0].toUpperCase():n.amPm[1].toUpperCase()},ZZ(e){const n=e.getTimezoneOffset();return(n>0?"-":"+")+fn(Math.floor(Math.abs(n)/60)*100+Math.abs(n)%60,4)}},Ue={d:[ei,(e,n)=>{e.day=n}],M:[ei,(e,n)=>{e.month=n-1}],yy:[ei,(e,n)=>{const s=+`${new Date().getFullYear()}`.substr(0,2);e.year=`${n>68?s-1:s}${n}`}],h:[ei,(e,n)=>{e.hour=n}],m:[ei,(e,n)=>{e.minute=n}],s:[ei,(e,n)=>{e.second=n}],yyyy:[ap,(e,n)=>{e.year=n}],S:[/\d/,(e,n)=>{e.millisecond=n*100}],SS:[/\d{2}/,(e,n)=>{e.millisecond=n*10}],SSS:[rp,(e,n)=>{e.millisecond=n}],D:[ei,Wu],ddd:[Xr,Wu],MMM:[Xr,Ru("monthNamesShort")],MMMM:[Xr,Ru("monthNames")],a:[Xr,(e,n,i)=>{const s=n.toLowerCase();s===i.amPm[0]?e.isPm=!1:s===i.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,(e,n)=>{const i=`${n}`.match(/([\\+\\-]|\d\d)/gi);let s;i&&(s=+(i[1]*60)+parseInt(i[2],10),e.timezoneOffset=i[0]==="+"?s:-s)}]};Ue.DD=Ue.D,Ue.dddd=Ue.ddd,Ue.Do=Ue.dd=Ue.d,Ue.mm=Ue.m,Ue.hh=Ue.H=Ue.HH=Ue.h,Ue.MM=Ue.M,Ue.ss=Ue.s,Ue.A=Ue.a,ut.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},ut.format=(e,n,i)=>{const s=i||ut.i18n;if(typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return n=ut.masks[n]||n||ut.masks.default,n.replace(Vu,l=>l in Bu?Bu[l](e,s):l.slice(1,l.length-1))},ut.parse=(e,n,i)=>{const s=i||ut.i18n;if(typeof n!="string")throw new Error("Invalid format in fecha.parse");if(n=ut.masks[n]||n,e.length>1e3)return!1;let l=!0;const c={};if(n.replace(Vu,g=>{if(Ue[g]){const m=Ue[g],M=e.search(m[0]);~M?e.replace(m[0],C=>(m[1](c,C,s),e=e.substr(M+C.length),C)):l=!1}return Ue[g]?"":g.slice(1,g.length-1)}),!l)return!1;const f=new Date;c.isPm===!0&&c.hour!==null&&+c.hour!=12?c.hour=+c.hour+12:c.isPm===!1&&+c.hour==12&&(c.hour=0);let h;return c.timezoneOffset!==null&&c.timezoneOffset!==void 0?(c.minute=+(c.minute||0)-+c.timezoneOffset,h=new Date(Date.UTC(c.year||f.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0))):h=new Date(c.year||f.getFullYear(),c.month||0,c.day||1,c.hour||0,c.minute||0,c.second||0,c.millisecond||0),h};const eo=" - ",yn=(e,n)=>{const i=tn(new Date(e));return!i||isNaN(i.getTime())?"":np(i,n||"yyyy-MM-dd")},to=(e,n)=>{if(Array.isArray(e)&&e.length===2){const i=e[0],s=e[1];if(i&&s)return yn(i,n)+eo+yn(s,n)}else if(!Array.isArray(e)&&e instanceof Date)return yn(e,n);return""},no=(e,n)=>{const i=Array.isArray(e)?e:e.split(eo);if(i.length===2){const s=i[0],l=i[1];return[s instanceof Date?s:ut.parse(s,n||"yyyy-MM-dd"),l instanceof Date?l:ut.parse(l,n||"yyyy-MM-dd")]}return[]},Ti={default:{formatter(e){return e?`${e}`:""},parser(e){return e===void 0||e===""?null:e}},date:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},datetime:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},daterange:{formatter:to,parser:no},datetimerange:{formatter:to,parser:no},timerange:{formatter:to,parser:no},time:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},month:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},year:{formatter:(e,n)=>yn(e,n),parser:(e,n)=>ut.parse(e,n||"yyyy-MM-dd")},multiple:{formatter(e,n){return e.filter(Boolean).map(i=>yn(i,n)).join(",")},parser(e,n){return(typeof e=="string"?e.split(","):e).map(s=>{if(s instanceof Date)return s;let l=s;return typeof s=="string"?l=s.trim():typeof s!="number"&&!s&&(l=""),ut.parse(l,n||"yyyy-MM-dd")})}},number:{formatter(e){return e?`${e}`:""},parser(e){const n=Number(e);return isNaN(e)?null:n}}},lp=()=>{const e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e},cp=e=>e.every(n=>!n||typeof n=="string"&&n.trim()===""),Hu=e=>e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0],Fu={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Kr=(e,n,i,s)=>{const l=n.includes("range"),{parser:c}=Ti[n]||Ti.default,f=s||Fu[n],h=Ti.multiple.parser;let g=e;if(e&&n==="time"&&!(e instanceof Date))g=c(e,f);else if(i&&e)g=h(e,f);else if(l)if(!e)g=[null,null];else if(typeof e=="string")g=c(e,f);else if(n==="timerange")g=c(e,f).map(m=>m||"");else{const[m,M]=e;m instanceof Date&&M instanceof Date?g=e.map(C=>new Date(C)):typeof m=="string"&&typeof M=="string"?g=c(e.join(eo),f):(!m||!M)&&(g=[null,null])}else typeof e=="string"&&n.indexOf("time")!==0&&(g=c(e,f)||null);return l||i?g||[]:[g]},sr=(e,n,i,s)=>{const l=Fu[n];if(i){const{formatter:f}=Ti.multiple;return f(e,s||l)}const{formatter:c}=Ti[n]||Ti.default;return c(e,s||l)},up=Symbol("date-picker");function Gt(e,n=""){return["bk-picker-panel-icon-btn",`bk-date-picker-${e}-btn`,`bk-date-picker-${e}-btn-arrow${n}`]}const dp=(e,n)=>new Date(e,n+1,0).getDate(),Uu=(e,n)=>{const i=new Date(e),s=i.getMonth()+n,l=dp(i.getFullYear(),s);return l<i.getDate()&&i.setDate(l),i.setMonth(s),i},_u=(()=>{const e={yyyy:i=>i.getFullYear(),m:i=>i.getMonth()+1,mm:i=>`0${i.getMonth()+1}`.slice(-2),mmm:(i,s)=>i.toLocaleDateString(s,{month:"long"}).slice(0,3),Mmm:(i,s)=>{const l=i.toLocaleDateString(s,{month:"long"});return(l[0].toUpperCase()+l.slice(1).toLowerCase()).slice(0,3)},mmmm:(i,s)=>i.toLocaleDateString(s,{month:"long"}),Mmmm:(i,s)=>{const l=i.toLocaleDateString(s,{month:"long"});return l[0].toUpperCase()+l.slice(1).toLowerCase()}},n=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g");return(i,s,l)=>{const c=/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/,f=s.match(c).slice(1),h=f[1],g=[f[0],f[2]].map(m=>({label:m.replace(/\[[^\]]+\]/,C=>C.slice(1,-1).replace(n,b=>e[b](l,i))),type:m.indexOf("yy")!==-1?"year":"month"}));return{separator:h,labels:g}}})(),ti=e=>{const n=new Date(e);return n.setHours(0,0,0,0),n.getTime()},fp=(e,n,i)=>{if(!n||!i)return!1;const[s,l]=[n,i].sort();return e>=s&&e<=l},hp={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:()=>({from:null,to:null,selecting:!1})},focusedDate:{type:Date,required:!0}};var io=a.defineComponent({props:hp,emits:["pick","pick-click","changeRange"],setup(e,{emit:n}){const i=a.computed(()=>new Rg.Generator({onlyDays:!0,weekStart:0})),s=a.computed(()=>{const m=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"];return m.splice(0,7-0).concat(m.splice(0,0))}),l=a.computed(()=>e.selectionMode==="range"&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue),c=a.computed(()=>{const m=e.tableDate.getFullYear(),M=e.tableDate.getMonth(),C=ti(new Date),b=l.value.filter(Boolean).map(ti),[N,k]=l.value.map(ti),S=e.rangeState.from&&ti(e.rangeState.from),J=e.rangeState.to&&ti(e.rangeState.to),D=e.selectionMode==="range",E=typeof e.disableDate=="function"&&e.disableDate;return i.value(m,M,z=>{z.date instanceof Date&&z.date.setTime(z.date.getTime()+z.date.getTimezoneOffset()*6e4);const U=z.date&&ti(z.date),Q=z.date&&M===z.date.getMonth();return ze(O({},z),{type:U===C?"today":z.type,selected:Q&&b.includes(U),disabled:z.date&&E&&E(new Date(U)),range:Q&&D&&fp(U,S,J),start:Q&&D&&U===N,end:Q&&D&&U===k})}).cells.slice(0)});return{headerDays:s,cells:c,getCellCls:m=>["bk-date-picker-cells-cell",{["bk-date-picker-cells-cell-selected"]:m.selected||m.start||m.end,["bk-date-picker-cells-cell-disabled"]:m.disabled,["bk-date-picker-cells-cell-today"]:m.type==="today",["bk-date-picker-cells-cell-prev-month"]:m.type==="prevMonth",["bk-date-picker-cells-cell-next-month"]:m.type==="nextMonth",["bk-date-picker-cells-cell-week-label"]:m.type==="weekLabel",["bk-date-picker-cells-cell-range"]:m.range&&!m.start&&!m.end}],handleClick:m=>{if(m.disabled||m.type==="weekLabel")return;const M=new Date(ti(m.date));n("pick",M),n("pick-click")},handleMouseMove:m=>{if(!e.rangeState.selecting||m.disabled)return;const M=m.date;n("changeRange",M)}}},render(){return a.createVNode("div",{class:"bk-date-picker-cells"},[a.createVNode("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map(e=>a.createVNode("span",null,[e]))]),this.cells.map(e=>a.createVNode("span",{class:this.getCellCls(e),onClick:()=>this.handleClick(e),onMouseenter:()=>this.handleMouseMove(e)},[a.createVNode("em",null,[e.desc])]))])}});const gp={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator(e){return["year","month","date","time"].indexOf(e)<0?(console.error(`selectionMode property is not valid: '${e}'`),!1):!0}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0}};var pp=a.defineComponent({props:gp,emits:["pick","pick-success"],setup(e,{emit:n}){const i=Q=>Q.match(/^time/)?"time-picker":`${Q}-table`,s=e.modelValue.slice().sort(),l=a.reactive({currentView:e.selectionMode||"date",pickerTable:i(e.selectionMode),dates:s,panelDate:e.startDate||s[0]||new Date}),c=()=>{setTimeout(()=>{l.currentView=e.selectionMode},500)},f=Q=>{l.panelDate=Q,l.pickerTable==="year-table"?l.pickerTable="month-table":l.pickerTable=i(l.currentView)},h=(Q,H)=>{console.warn("handlePick");let F=Q;e.selectionMode==="year"?F=new Date(Q.getFullYear(),0,1):e.selectionMode==="month"?F=new Date(l.panelDate.getFullYear(),Q.getMonth(),1):F=new Date(Q),l.dates=[F],n("pick",F,!1,H||e.selectionMode)},g=()=>{c(),n("pick-success")},m=Q=>{Q.value&&n("pick",Q.value(),!1,void 0,Q),Q.onClick&&Q.onClick(this),e.shortcutClose&&g()},M=()=>{l.currentView=e.selectionMode,l.pickerTable=i(l.currentView)},C=Q=>{e.selectionMode==="year"||l.pickerTable==="year-table"?l.panelDate=new Date(l.panelDate.getFullYear()+Q*10,0,1):l.panelDate=Uu(l.panelDate,Q*12)},b=Q=>{l.panelDate=Uu(l.panelDate,Q)},N=a.ref(null),k=a.ref(null),S=Q=>{var H,F;Q&&((H=N==null?void 0:N.value)==null||H.updateScroll(),(F=k==null?void 0:k.value)==null||F.updateScroll())},J=a.computed(()=>l.pickerTable===`${l.currentView}-table`?h:f),D=a.computed(()=>{const Q="zh-CN",H="[yyyy]-[mm]",F=l.panelDate,{labels:ne,separator:G}=_u(Q,H,F),le=_=>()=>{l.pickerTable=i(_)};return{separator:G,labels:ne.map(_=>{const q=_;return q.handler=le(_.type),q})}}),E=a.computed(()=>D.value.labels[0].type==="year"||l.currentView==="date"),z=a.computed(()=>D.value.labels[1].type==="year"||l.currentView==="date"),U=a.computed(()=>l.currentView==="time");return console.warn("panelDatepanelDate",l.panelDate),ze(O({},a.toRefs(l)),{panelPickerHandlers:J,datePanelLabel:D,showLabelFirst:E,showLabelSecond:z,handleShortcutClick:m,changeYear:C,changeMonth:b,reset:M,isTime:U,onToggleVisibility:S})},render(){return a.createVNode("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length?"bk-picker-panel-with-sidebar":""],onMousedown:e=>{e.preventDefault()}},[this.shortcuts.length?a.createVNode("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map(e=>a.createVNode("div",{class:"bk-picker-panel-shortcut",onClick:()=>this.handleShortcutClick(e)},[e.text]))]):"",a.createVNode("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.changeYear(-1)},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]),this.pickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev"),onClick:()=>this.changeMonth(-1)},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.datePanelLabel.labels[0].handler},[this.datePanelLabel.labels[0].label]),[[a.vShow,this.showLabelFirst]]),this.currentView==="date"?` ${this.datePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.datePanelLabel.labels[1].handler},[this.datePanelLabel.labels[1].label]),[[a.vShow,this.showLabelSecond]])]):"",a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.changeYear(1)},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]),this.pickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.changeMonth(1)},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),a.createVNode("div",{class:"bk-picker-panel-content"},[this.currentView!=="time"?(()=>{switch(this.pickerTable){case"date-table":return a.createVNode(io,{tableDate:this.panelDate,disableDate:this.disableDate,selectionMode:this.selectionMode,modelValue:this.dates,focusedDate:this.focusedDate,onPick:this.panelPickerHandlers},null);default:return null}})():""])])])}});const mp={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator(e){return["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0?(console.error(`type property is not valid: '${e}'`),!1):!0}},shortcuts:{type:Array,default:()=>[]},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator(e){return["year","month","date","time"].indexOf(e)<0?(console.error(`selectionMode property is not valid: '${e}'`),!1):!0}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0}};var Mp=a.defineComponent({props:mp,emits:["pick"],setup(e,{emit:n}){const[i,s]=e.modelValue.map($=>$||lp()),l=e.startDate?e.startDate:i,c=a.reactive({currentView:e.selectionMode||"date",leftPickerTable:`${e.selectionMode}-table`,rightPickerTable:`${e.selectionMode}-table`,leftPanelDate:l,rightPanelDate:new Date(l.getFullYear(),l.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:i&&!s},upToNowEnable:!1,dates:e.modelValue}),f=($,ce)=>!$||!ce?0:$.getTime()-ce.getTime(),h=()=>{c.currentView=e.selectionMode,c.leftPickerTable=`${c.currentView}-table`,c.rightPickerTable=`${c.currentView}-table`},g=a.ref(null),m=a.ref(null),M=$=>{var ce,de;$&&((ce=g==null?void 0:g.value)==null||ce.updateScroll(),(de=m==null?void 0:m.value)==null||de.updateScroll())},C=($,ce,de,me=!0)=>{const De=new Date(c[`${$}PanelDate`]);if(De[`set${ce}`](De[`get${ce}`]()+de),c[`${$}PanelDate`]=De,!!me)if(e.splitPanels){const xe=$==="left"?"right":"left";$==="left"&&c.leftPanelDate>=c.rightPanelDate&&C(xe,ce,1),$==="right"&&c.rightPanelDate<=c.leftPanelDate&&C(xe,ce,-1)}else{const xe=$==="left"?"right":"left",Y=c[`${xe}PanelDate`],K=new Date(Y);if(ce==="Month"){const he=new Date(K.getFullYear(),K.getMonth()+de+1,0).getDate();K.setDate(Math.min(he,K.getDate()))}K[`set${ce}`](K[`get${ce}`]()+de),c[`${xe}PanelDate`]=K}},b=$=>{const ce=c.currentView==="year"?-10:-1;C($,"FullYear",ce)},N=$=>{const ce=c.currentView==="year"?10:1;C($,"FullYear",ce)},k=$=>{C($,"Month",-1)},S=$=>{C($,"Month",1)},J=$=>{c[`${$}PickerTable`]="year-table"},D=$=>{c[`${$}PickerTable`]="month-table"},E=$=>{const ce="zh-CN",de="[yyyy]-[mm]",me=c[`${$}PanelDate`],{labels:De,separator:xe}=_u(ce,de,me),Y=K=>{const he=K==="month"?D:J;return()=>he($)};return{separator:xe,labels:De.map(K=>{const he=K;return he.handler=Y(K.type),he})}},z=($,ce)=>{n("pick",c.dates,$,ce||e.type)},U=($,ce)=>{if(console.warn("handleRangePick"),c.rangeState.selecting||c.currentView==="time"){if(c.currentView==="time")c.dates=$;else{const[de,me]=[c.rangeState.from,$].sort(f),De=ce==="upToNow"?new Date:new Date(new Date(new Date(me.setHours(23)).setMinutes(59)).setSeconds(59));c.dates=[de,De],c.rangeState={from:de,to:De,selecting:!1}}z(!1,ce||"date")}else c.upToNowEnable=new Date($).getTime()<new Date().getTime(),c.rangeState={from:$,to:null,selecting:!0}},Q=($,ce)=>{if(c[`${$}PanelDate`]=ce,c[`${$}PickerTable`]==="year-table"?c[`${$}PickerTable`]="month-table":c[`${$}PickerTable`]=`${c.currentView}-table`,!e.splitPanels){const me=$==="left"?"right":"left";c[`${me}PanelDate`]=ce,C(me,"Month",me==="left"?-1:1,!1)}},H=$=>{c.rangeState.to=$};a.watch(()=>e.selectionMode,$=>{c.currentView=$||"range"});const F=a.computed(()=>c.currentView==="time"),ne=a.computed(()=>E("left")),G=a.computed(()=>E("right")),le=a.computed(()=>c.leftPickerTable.split("-").shift()),_=a.computed(()=>c.rightPickerTable.split("-").shift()),q=a.computed(()=>ne.value.labels[0].type==="year"||c.currentView==="date"),Z=a.computed(()=>ne.value.labels[1].type==="year"||c.currentView==="date"),x=a.computed(()=>G.value.labels[0].type==="year"||c.currentView==="date"),R=a.computed(()=>G.value.labels[1].type==="year"||c.currentView==="date"),te=a.computed(()=>{const $=`${c.currentView}-table`;return{left:c.leftPickerTable!==$,right:c.rightPickerTable!==$}}),se=a.computed(()=>({left:te.value.left?Q.bind("left"):U,right:te.value.right?Q.bind("right"):U}));return ze(O({},a.toRefs(c)),{isTime:F,prevYear:b,nextYear:N,prevMonth:k,nextMonth:S,leftDatePanelLabel:ne,rightDatePanelLabel:G,leftDatePanelView:le,rightDatePanelView:_,leftShowLabelFirst:q,leftShowLabelSecond:Z,rightShowLabelFirst:x,rightShowLabelSecond:R,preSelecting:te,panelPickerHandlers:se,reset:h,onToggleVisibility:M,handleRangePick:U,handleChangeRange:H})},render(){return a.createVNode("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:e=>{e.preventDefault()}},[a.createVNode("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[a.withDirectives(a.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevYear("left")},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]),this.leftPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev"),onClick:()=>this.prevMonth("left")},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.leftDatePanelLabel.labels[0].handler},[this.leftDatePanelLabel.labels[0].label]),[[a.vShow,this.leftShowLabelFirst]]),this.leftDatePanelView==="date"?` ${this.leftDatePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.leftDatePanelLabel.labels[1].handler},[this.leftDatePanelLabel.labels[1].label]),[[a.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||this.leftPickerTable!=="date-table"?a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.nextYear("left")},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||this.leftPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.nextMonth("left")},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),this.currentView!=="time"?(()=>{switch(this.leftPickerTable){case"date-table":return a.createVNode(io,{selectionMode:"range",tableDate:this.leftPanelDate,disableDate:this.disableDate,rangeState:this.rangeState,modelValue:this.preSelecting.left?[this.dates[0]]:this.dates,focusedDate:this.focusedDate,onChangeRange:this.handleChangeRange,onPick:this.panelPickerHandlers.left},null);default:return null}})():""]),[[a.vShow,!this.isTime]]),a.withDirectives(a.createVNode("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[a.withDirectives(a.createVNode("div",{class:"bk-date-picker-header"},[this.splitPanels||this.rightPickerTable!=="date-table"?a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevYear("right")},[a.createVNode(Ki,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&this.rightPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("prev","-double"),onClick:()=>this.prevMonth("right")},[a.createVNode(yi,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?a.createVNode("span",null,[a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.rightDatePanelLabel.labels[0].handler},[this.rightDatePanelLabel.labels[0].label]),[[a.vShow,this.rightShowLabelFirst]]),this.rightDatePanelView==="date"?` ${this.rightDatePanelLabel.separator} `:" ",a.withDirectives(a.createVNode("span",{class:"bk-date-picker-header-label",onClick:()=>this.rightDatePanelLabel.labels[1].handler},[this.rightDatePanelLabel.labels[1].label]),[[a.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(()=>(this.rangeState.selecting||this.currentView==="time")&&this.upToNowEnable?a.createVNode("span",{class:"up-to-now",onClick:()=>this.handleRangePick(new Date,"upToNow")},[a.createTextVNode("\u81F3\u4ECA")]):a.createVNode("span",{class:"up-to-now disabled"},[a.createTextVNode("\u81F3\u4ECA")]))():"",a.createVNode("span",{class:Gt("next","-double"),onClick:()=>this.nextYear("right")},[a.createVNode($i,{style:{fontSize:"20px",lineHeight:1}},null)]),this.rightPickerTable==="date-table"?a.withDirectives(a.createVNode("span",{class:Gt("next"),onClick:()=>this.nextMonth("right")},[a.createVNode(Un,{style:{fontSize:"20px",lineHeight:1}},null)]),[[a.vShow,this.currentView==="date"]]):""]),[[a.vShow,this.currentView!=="time"]]),this.currentView!=="time"?(()=>{switch(this.rightPickerTable){case"date-table":return a.createVNode(io,{selectionMode:"range",tableDate:this.rightPanelDate,disableDate:this.disableDate,rangeState:this.rangeState,modelValue:this.preSelecting.right?[this.dates[this.dates.length-1]]:this.dates,focusedDate:this.focusedDate,onChangeRange:this.handleChangeRange,onPick:this.panelPickerHandlers.right},null);default:return null}})():""]),[[a.vShow,!this.isTime]])])])}});const Ip={type:{type:String,default:"date",validator(e){return["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0?(console.error(`type property is not valid: '${e}'`),!1):!0}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:()=>({})},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0?(console.error(`placement property is not valid: '${e}'`),!1):!0},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:()=>[]},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},options:{type:Object,default:()=>({})},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function};var yp=a.defineComponent({name:"DatePicker",directives:{clickoutside:Rs},props:Ip,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup(e,{slots:n,emit:i}){const s=e.type.includes("range"),l=s?[null,null]:[null];let c=cp((s?e.modelValue:[e.modelValue])||[])?l:Kr(e.modelValue,e.type,e.multiple,e.format),f=null;e.shortcutSelectedIndex!==-1&&(f=e.shortcuts[e.shortcutSelectedIndex]||null,f&&(c=f.value()));const h=a.reactive({showClose:!1,visible:!1,internalValue:c,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:c[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:c.map(Hu),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:f,onSelectionModeChange:g});function g(Y){let K=Y;return Y.match(/^date/)&&(K="date"),h.selectionMode=["year","month","date","time"].indexOf(K)>-1&&K,h.selectionMode}const m=a.computed(()=>{if(e.multiple)return h.internalValue.slice();const Y=e.type.includes("range");let K=h.internalValue.map(he=>he instanceof Date?new Date(he):he||"");return e.type.match(/^time/)&&(K=K.map(he=>sr(he,e.type,e.multiple,e.format))),Y||e.multiple?K:K[0]}),M=a.computed(()=>e.type.match(/^time/)?m.value:e.multiple?sr(m.value,e.type,e.multiple,e.format):Array.isArray(m.value)?m.value.map(Y=>sr(Y,e.type,e.multiple,e.format)):sr(m.value,e.type,e.multiple,e.format)),C=a.computed(()=>e.type==="daterange"||e.type==="datetimerange"?"DateRangePanel":"DatePanel"),b=a.computed(()=>e.open===null?h.visible:e.open),N=a.computed(()=>(console.warn("state.internalValue",h.internalValue),sr(h.internalValue,e.type,e.multiple,e.format))),k=a.computed(()=>{var Y;return((Y=h.shortcut)==null?void 0:Y.text)&&e.useShortcutText?h.shortcut.text:N.value}),S=a.computed(()=>!!n.trigger||e.type==="datetime"||e.type==="datetimerange"||e.multiple),J=a.computed(()=>{let Y="";return e.fontSize==="medium"?Y="medium-font":e.fontSize==="large"&&(Y="large-font"),Y}),D=a.computed(()=>{let Y="";return e.fontSize==="medium"?Y="medium-width":e.fontSize==="large"&&(Y="large-width"),Y}),E=a.computed(()=>{var Y;return((Y=h.shortcut)==null?void 0:Y.text)&&e.useShortcutText?!0:!e.editable||e.readonly}),z=a.computed(()=>!!n.footer),U=a.computed(()=>C.value==="RangeTimePickerPanel"?e.allowCrossDay:!1),Q=a.ref(null),H=()=>{var Y;(Y=Q==null?void 0:Q.value)==null||Y.focus()};a.watch(()=>h.visible,Y=>{var K,he;console.error(123),Y===!1&&((K=F.value)==null||K.destoryDropdown()),(he=F.value)==null||he.updateDropdown(),i("open-change",Y)});const F=a.ref(null);a.watch(()=>e.modelValue,Y=>{h.internalValue=Kr(Y,e.type,e.multiple,e.format)}),a.watch(()=>e.open,Y=>{h.visible=Y===!0}),a.watch(()=>e.type,Y=>{g(Y)}),a.watch(()=>m,(Y,K)=>{const he=JSON.stringify(Y),nt=JSON.stringify(K);(he!==nt||typeof Y!=typeof K)&&i("input",Y)}),a.onMounted(()=>{e.type.indexOf("date")>-1,h.timeEnterMode=!0;const Y=e.modelValue,K=m.value;(typeof Y!=typeof K||JSON.stringify(Y)!==JSON.stringify(K))&&i("input",m.value),e.open!==null&&(h.visible=e.open),a.provide(up,{props:e,focus:()=>H()})});const ne=a.ref(null),G=Y=>{var K;if(h.disableCloseUnderTransfer)return h.disableCloseUnderTransfer=!1,!1;if(Y&&Y.type==="mousedown"&&h.visible){Y.preventDefault(),Y.stopPropagation();return}if(h.visible){const he=(K=ne==null?void 0:ne.value)==null?void 0:K.$el;if(Y&&he&&he.contains(Y.target))return;h.visible=!1,Y==null||Y.preventDefault(),Y==null||Y.stopPropagation();return}h.isFocused=!1,h.disableClickOutSide=!1},le=()=>{var Y,K;(Y=Q==null?void 0:Q.value)==null||Y.focus(),(K=Q==null?void 0:Q.value)==null||K.click()},_=()=>{e.readonly||e.disabled||N!=null&&N.value&&(h.showClose=!0)},q=Y=>{var K;(K=Y.toElement)!=null&&K.classList.contains("clear-action")||(h.showClose=!1)},Z=Y=>{a.nextTick(()=>{var K;i("change",M.value,Y),i("update:modelValue",m.value),e.type.indexOf("time")<0&&((K=Q==null?void 0:Q.value)==null||K.blur())})},x=Y=>{var ft;const K=e.type.includes("range")||e.multiple,he=N.value,nt=Y.target.value,Je=Kr(nt,e.type,e.multiple,e.format),$e=K?Je:Je[0],dt=(ft=e.disableDate)==null?void 0:ft.call(e,$e),st=Je.reduce((Tt,Ee)=>Tt&&Ee instanceof Date,!0);nt!==he&&!dt&&st?(Z(e.type),h.internalValue=Je):h.forceInputRerender=h.forceInputRerender+1},R=Y=>{e.readonly||(h.isFocused=!0,!(Y&&Y.type==="focus")&&(e.disabled||(h.visible=!0)))},te=()=>{var Y;(Y=ne==null?void 0:ne.value)==null||Y.reset()},se=Y=>{var K;if(h.internalFocus){h.internalFocus=!1;return}if(h.visible){Y.preventDefault();return}h.isFocused=!1,g(e.type),h.internalValue=h.internalValue.slice(),te(),(K=ne==null?void 0:ne.value)==null||K.onToggleVisibility(!1)},$=Y=>{const{keyCode:K}=Y;if(K===9&&h.visible)if(Y.stopPropagation(),Y.preventDefault(),S.value){const nt=".bk-picker-confirm > *",Je=F.value.$el.querySelectorAll(nt);h.internalFocus=!0,[...Je][Y.shiftKey?"pop":"shift"]().focus()}else G();const he=[37,38,39,40];if(!h.visible&&he.includes(K)){h.visible=!0;return}K===27&&h.visible&&(Y.stopPropagation(),G()),!!he.includes(K)&&h.focusedTime.active&&Y.preventDefault()},ce=()=>{h.visible=!1,h.internalValue=h.internalValue.map(()=>null),i("clear"),Z(e.type),te(),h.showClose=!1,h.shortcut=null,setTimeout(()=>g(e.type),500)},de=()=>{e.appendToBody&&(h.disableCloseUnderTransfer=!0)},me=()=>{var Y;h.visible=!1,a.nextTick(()=>{i("pick-success")}),(Y=Q==null?void 0:Q.value)==null||Y.blur(),te()},De=(Y,K=!1,he,nt)=>{let Je=Y;if(e.multiple){const dt=Je.getTime(),st=h.internalValue.findIndex(Ee=>Ee&&Ee.getTime()===dt),Tt=[...h.internalValue,Je].filter(Boolean).map(Ee=>Ee.getTime()).filter((Ee,W,X)=>X.indexOf(Ee)===W&&W!==st);h.internalValue=Tt.map(Ee=>new Date(Ee))}else Je=Kr(Y,e.type,e.multiple,e.format),h.internalValue=Array.isArray(Je)?Je:[Je];if(h.internalValue[0]){const[dt]=h.internalValue;h.focusedDate=dt}h.focusedTime=ze(O({},h.focusedTime),{time:h.internalValue.map(Hu)}),S.value||(g(e.type),h.visible=K),he==="upToNow"&&e.type==="daterange"&&me(),h.shortcut=nt,Z(he);const $e=e.shortcuts.findIndex(dt=>dt===h.shortcut);i("shortcut-change",h.shortcut,$e)},xe=a.ref(null);return ze(O({},a.toRefs(h)),{panel:C,publicStringValue:M,opened:b,visualValue:N,displayValue:k,isConfirm:S,fontSizeCls:J,longWidthCls:D,localReadonly:E,hasFooter:z,allowCrossDayProp:U,pickerDropdownRef:F,inputRef:Q,triggerRef:xe,pickerPanelRef:ne,handleClose:G,handleIconClick:le,handleInputMouseenter:_,handleInputMouseleave:q,handleFocus:R,handleBlur:se,handleKeydown:$,handleInputChange:x,handleClear:ce,handleTransferClick:de,onPick:De})},render(){var n,i,s;const e=a.createVNode("div",null,[a.createVNode("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},[this.type==="time"||this.type==="timerange"?a.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[a.createVNode("g",{id:"time"},[a.createVNode("path",{fill:"#c4c6cc",d:"M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"},null),a.createVNode("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):a.createVNode("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[a.createVNode("g",{id:"date"},[a.createVNode("path",{fill:"#c4c6cc",d:"M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"},null),a.createVNode("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),a.createVNode("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),a.createVNode("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),a.createVNode("polygon",{fill:"#c4c6cc",points:"403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"},null)])])]),a.createVNode("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,this.behavior==="simplicity"?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?a.createVNode("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]);return a.withDirectives(a.createVNode("div",{class:["bk-date-picker",this.type==="datetimerange"?"long":"",this.longWidthCls]},[a.createVNode("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[(s=(i=(n=this.$slots).header)==null?void 0:i.call(n))!=null?s:e]),a.createVNode(a.Teleport,{to:"body",disabled:!this.appendToBody},{default:()=>[a.createVNode(a.Transition,{name:"bk-fade-down-transition"},{default:()=>[a.withDirectives(a.createVNode(Og,{class:[this.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:this.triggerRef,placement:this.placement,extPopoverCls:this.extPopoverCls,appendToBody:this.appendToBody,onClick:this.handleTransferClick},{default:()=>[this.panel==="DateRangePanel"?a.createVNode(Mp,{ref:"pickerPanelRef",shortcuts:this.shortcuts,modelValue:this.internalValue,type:this.type,selectionMode:this.selectionMode,startDate:this.startDate,disableDate:this.disableDate,focusedDate:this.focusedDate,onPick:this.onPick},null):a.createVNode(pp,{ref:"pickerPanelRef",shortcuts:this.shortcuts,multiple:this.multiple,clearable:this.clearable,shortcutClose:this.shortcutClose,selectionMode:this.selectionMode,modelValue:this.internalValue,startDate:this.startDate,disableDate:this.disableDate,focusedDate:this.focusedDate,onPick:this.onPick},null)]}),[[a.vShow,this.opened]])]})]})]),[[a.resolveDirective("clickoutside"),this.handleClose]])}});const Xu=Re(yp);d.string,d.string,d.string,d.string,d.bool,d.bool,d.string,d.bool;var Cp=a.defineComponent({name:"Transfer",props:{title:{type:Array,default:()=>[]},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:()=>[]},targetList:{type:Array,default:()=>[]},emptyContent:{type:Array,default:()=>[]}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup(e,{emit:n}){let i=[],s=e.sortKey,l=e.sortable;const c=a.ref(""),f=a.ref(null),h=a.ref([]),g=a.ref([]),m=a.ref(-1),M=a.ref(-1),C=a.computed(()=>!e.sourceList||!Array.isArray(e.sourceList)?"empty":e.sourceList.toString().indexOf("[object Object]")!==-1),b=a.computed(()=>C.value?e.settingKey:"index"),N=a.computed(()=>C.value?e.displayKey:"value"),k=a.computed(()=>c.value?h.value.filter(_=>!ef(_[N.value])&&String(_[N.value]).indexOf(c.value)>-1):h.value);a.watch(()=>e.sourceList,()=>{C.value!=="empty"&&(S(),E())},{deep:!0}),a.watch(()=>e.targetList,()=>{S(),E()},{deep:!0}),a.watch(()=>[N.value,b.value],()=>{S()}),a.watch(()=>e.sortKey,_=>{s=_,E()}),a.watch(()=>e.sortable,_=>{l=_,E()});const S=()=>{C.value!=="empty"&&(C.value?D():J())},J=()=>{if(!e.targetList.length||e.targetList.length>e.sourceList.length){const _=[];for(let q=0;q<e.sourceList.length;q++)_.push({index:q,value:e.sourceList[q]});h.value=[..._],g.value.splice(0,g.value.length),n("change",h.value,[],[])}else{const _=[],q=[];for(let x=0;x<e.sourceList.length;x++)_.push({index:x,value:e.sourceList[x]});e.targetList.forEach(x=>{const R=_.find(te=>te.value===x);R&&q.push(R)}),g.value=[...q];const Z=_.filter(x=>q.every(R=>R.index!==x.index));h.value=[...Z],n("change",h.value,[...U(g.value,!1)],[])}},D=()=>{if(!e.targetList.length||e.targetList.length>e.sourceList.length)h.value.splice(0,h.value.length,...e.sourceList),g.value=[],n("change",h.value,[],[]);else{const _=e.sourceList.filter(x=>e.targetList.every(R=>R!==x[b.value])),q=[];e.sourceList.forEach(x=>{e.targetList.forEach(R=>{x[b.value]===R&&q.push(x)})}),g.value=[...q],h.value=[..._];const Z=[...U(g.value)];n("change",h.value,g.value,Z)}},E=()=>{let _=[];if(C.value)l||(s=""),_=[...e.sourceList];else{s=l?"index":"";for(let q=0;q<e.sourceList.length;q++)_.push({index:q,value:e.sourceList[q]})}if(s){const q=[];if(_.forEach(Z=>{q.push(Z[s])}),i=[...q],i.length===e.sourceList.length){const Z=[...h.value];h.value=[...F(Z,s,i)]}}},z=()=>{const _=h.value,q=C.value?g.value:[...U(g.value,!1)],Z=C.value?[...U(g.value)]:[];n("change",_,q,Z)},U=(_,q=!0)=>{const Z=[];return _.length?([..._].forEach(R=>{if(q)for(const[te,se]of Object.entries(R))te===b.value&&Z.push(se);else Z.push(R.value)}),Z):[]},Q=()=>{m.value=-1;const _=k.value,q=g.value;_.forEach(Z=>{q.push(Z),ne(Z)}),i.length===e.sourceList.length?g.value=[...F(q,s,i)]:g.value=[...q],z()},H=()=>{M.value=-1;const _=g.value,q=h.value;for(;_.length;){const Z=_.shift();q.push(Z),i.length===e.sourceList.length?h.value=[...F(q,s,i)]:h.value=[...q]}z()},F=(_,q,Z)=>{const x=Z;return _.sort((R,te)=>x.indexOf(R[q])-x.indexOf(te[q])>=0)},ne=_=>{h.value=h.value.filter(q=>q[b.value]!==_[b.value])},G=(_,q,Z,x)=>{q.preventDefault(),q.stopPropagation();const R=_==="over"?x:-1;Z?m.value=R:M.value=R},le=(_,q,Z)=>{_.preventDefault(),_.stopPropagation(),Z?m.value=-1:M.value=-1;const x=Z?k.value[q]:g.value.splice(q,1)[0],R=Z?g.value:h.value;R.push(x),Z&&ne(x);const te=i.length===e.sourceList.length?[...F(R,s,i)]:[...R];Z?g.value=[...te]:h.value=[...te],z()};return C.value!=="empty"&&(C.value?D():J(),E()),{keyword:c,transferRef:f,dataList:h,allToRight:Q,allToLeft:H,displayDataList:k,displayCode:N,leftHoverIndex:m,rightHoverIndex:M,handleItemMouseEvent:G,handleItemClick:le,hasSelectedList:g}},render(){const{extCls:e,title:n,emptyContent:i,searchable:s,searchPlaceholder:l}=this.$props,c=m=>{var k,S;const M=m==="left-header",C=M?`${(k=n[0])!=null?k:"\u5DE6\u4FA7\u5217\u8868"}`:`${(S=n[1])!=null?S:"\u53F3\u4FA7\u5217\u8868"}`,b=M?!this.dataList.length:!this.hasSelectedList.length,N=()=>{M&&this.dataList.length&&this.allToRight(),!M&&this.hasSelectedList.length&&this.allToLeft()};return this.$slots[m]?a.createVNode("div",{class:"slot-header"},[a.createVNode("div",{class:"slot-content"},[this.$slots[m]()])]):a.createVNode("div",{class:"header"},[`${C}\uFF08\u5171${this.dataList.length}\u6761\uFF09`,a.createVNode("span",{class:{disabled:b},onClick:()=>N()},[M?"\u5168\u90E8\u6DFB\u52A0":"\u6E05\u7A7A"])])},f=m=>{var b;const M=m==="left-empty-content",C=(b=M?i[0]:i[1])!=null?b:M?"\u65E0\u6570\u636E":"\u672A\u9009\u62E9\u4EFB\u4F55\u9879";return this.$slots[m]?a.createVNode("div",null,[this.$slots[m]()]):a.createVNode("div",{class:"empty"},[C])},h=(m,M,C=!0)=>{const b=C?this.leftHoverIndex:this.rightHoverIndex;return a.createVNode("div",{class:"item-content"},[a.createVNode("span",{class:"content-text",title:m[this.displayCode]},[m[this.displayCode]]),a.createVNode("span",{class:["icon-wrapper",M===b?"hover":""]},[C?a.createVNode(ss,{class:"bk-icon"},null):a.createVNode(jn,{class:"bk-icon"},null)])])},g=m=>{const M=m==="left",C=M?this.displayDataList:this.hasSelectedList,b=M?"source-option":"target-option",N=M?"left-empty-content":"right-empty-content";return C.length?a.createVNode("ul",{class:["content",s&&M?"is-search":""]},[C.map((k,S)=>{var J,D,E;return a.createVNode("li",{key:S,class:[this.$slots[b]?"custom-item":""],onClick:z=>this.handleItemClick(z,S,M),onMouseover:z=>this.handleItemMouseEvent("over",z,M,S),onMouseleave:z=>this.handleItemMouseEvent("leave",z,M,S)},[(E=(D=(J=this.$slots)[b])==null?void 0:D.call(J,k))!=null?E:h(k,S,M)])})]):f(N)};return a.createVNode("div",{class:["bk-transfer",e],ref:"transferRef"},[a.createVNode("div",{class:"source-list"},[c("left-header"),s&&a.createVNode(xs,{modelValue:this.keyword,"onUpdate:modelValue":m=>this.keyword=m,class:"transfer-search-input",clearable:!0,placeholder:l||"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u5B57",type:"search","left-icon":"bk-icon icon-search"},null),g("left")]),a.createVNode("div",{class:"transfer"},null),a.createVNode("div",{class:"target-list"},[c("right-header"),g("right")])])}});const Ku=Re(Cp),bp={data:d.arrayOf(d.any).def([]),label:d.oneOfType([d.func.def(void 0),d.string.def("label")]),children:d.string.def("children"),indent:d.number.def(18),lineHeight:d.number.def(32),levelLine:d.oneOfType([d.bool.def(!1),d.func.def(void 0),d.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:d.bool.def(!1),prefixIcon:d.oneOfType([d.func.def(()=>{}),d.bool.def(!1)]).def(!0),async:d.shape({callback:d.func.def(null),cache:d.bool.def(!0)}),offsetLeft:d.number.def(5)};var $r={exports:{}},$u=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if($u){var qu=new Uint8Array(16);$r.exports=function(){return $u(qu),qu}}else{var ed=new Array(16);$r.exports=function(){for(var n=0,i;n<16;n++)(n&3)===0&&(i=Math.random()*4294967296),ed[n]=i>>>((n&3)<<3)&255;return ed}}for(var td=[],qr=0;qr<256;++qr)td[qr]=(qr+256).toString(16).substr(1);function Np(e,n){var i=n||0,s=td;return[s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],"-",s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]],s[e[i++]]].join("")}var nd=Np,wp=$r.exports,Lp=nd,id,ro,ao=0,so=0;function kp(e,n,i){var s=n&&i||0,l=n||[];e=e||{};var c=e.node||id,f=e.clockseq!==void 0?e.clockseq:ro;if(c==null||f==null){var h=wp();c==null&&(c=id=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),f==null&&(f=ro=(h[6]<<8|h[7])&16383)}var g=e.msecs!==void 0?e.msecs:new Date().getTime(),m=e.nsecs!==void 0?e.nsecs:so+1,M=g-ao+(m-so)/1e4;if(M<0&&e.clockseq===void 0&&(f=f+1&16383),(M<0||g>ao)&&e.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ao=g,so=m,ro=f,g+=122192928e5;var C=((g&268435455)*1e4+m)%4294967296;l[s++]=C>>>24&255,l[s++]=C>>>16&255,l[s++]=C>>>8&255,l[s++]=C&255;var b=g/4294967296*1e4&268435455;l[s++]=b>>>8&255,l[s++]=b&255,l[s++]=b>>>24&15|16,l[s++]=b>>>16&255,l[s++]=f>>>8|128,l[s++]=f&255;for(var N=0;N<6;++N)l[s+N]=c[N];return n||Lp(l)}var vp=kp,Tp=$r.exports,xp=nd;function Sp(e,n,i){var s=n&&i||0;typeof e=="string"&&(n=e==="binary"?new Array(16):null,e=null),e=e||{};var l=e.random||(e.rng||Tp)();if(l[6]=l[6]&15|64,l[8]=l[8]&63|128,n)for(var c=0;c<16;++c)n[s+c]=l[c];return n||xp(l)}var Dp=Sp,jp=vp,rd=Dp,oo=rd;oo.v1=jp,oo.v4=rd;var zp=oo;const ad="1px dashed #c3cdd7",sd=(e,n=void 0,i=[])=>{const{data:s,children:l}=e,c=[];let f=0;const h=new Map;function g(b,N,k,S){const J=(i||[]).find(D=>D.__uuid===b);return J?J[S]:N[k]}function m(b,N){return g(b,N,"isOpen","__isOpen")}function M(b,N){return g(b,N,"checked","__checked")}function C(b,N=0,k=null,S=null){const J=b.length;for(let D=0;D<J;D++){const E=b[D];if(Array.isArray(E))C(E,N,k,S);else if(typeof E=="object"&&E!==null){const z=E.__uuid||zp.v4(),U=S!==null?`${S}-${D}`:`${D}`,Q=!!(E[l]||[]).length,H={__depth:N,__index:D,__uuid:z,__parentId:k,__hasChild:Q,__path:U,__isRoot:k===null,__order:f,__isOpen:m(z,E)&&Q,__checked:M(z,E),[l]:null};Object.assign(E,{__uuid:z}),h.set(z,H),f+=1,c.push(ze(O({},E),{[l]:null})),Object.prototype.hasOwnProperty.call(E,l)&&C(E[l]||[],N+1,z,U)}}}return C(n||s),[c,h]},od=(e,n,i=null,s=null,l=null,c=[])=>{const f=e[n];return typeof f=="boolean"?f?s:l:ld(i,e,n,c)},ld=(e,n,i,s=[])=>{const l=n[i];if(typeof l=="string")return typeof e=="object"&&e!==null?(Object.prototype.hasOwnProperty.call(e,l)||console.error(`cannot find node label with key ${l}`),e[l]):l;if(typeof l=="function"){const c=l.apply(globalThis,[e,...s]);if(typeof c=="string")return c;console.error("props label with function return value is not string, please check and return string");return}},Jp=(e,n)=>ld(e,n,"label"),lo=(e,n)=>e.get(n)||{},Qp=(e,n,i)=>{var s;return(s=lo(e,n))==null?void 0:s[i]},Pp=(e,n)=>({"--level-line":od(n,"levelLine",e,ad,null,["tree"]),"--lineHeight":`${n.lineHeight}px`,"--indent":`${n.indent}px`,"--offset-left":`${n.offsetLeft}px`}),Op=(e,n,i={})=>{const{schema:s}=i,l=Qp(s,e.__uuid,"__depth");return O({"--depth":l},typeof n.levelLine=="function"?{"--level-line":od(n,"levelLine",e,ad,null,["node"])}:{})},Ap=(e,n,i)=>{const{__isRoot:s,__isOpen:l}=lo(n,e.__uuid)||{};return{"is-root":s,"bk-tree-node":!0,"is-open":l,"is-virtual-render":i.virtualRender,"level-line":i.levelLine}},Ep=(e,n)=>{const{__checked:i}=lo(n,e.__uuid)||{};return{"is-checked":i,[tt("node-row")]:!0}},Vp=(e,n,i,s,l)=>{cd(e,n,i,{[s]:l})},cd=(e,n,i,s)=>{const c=e.split("-").reduce((f,h)=>{const g=Number(h);return Array.isArray(f)?f[g]:f[i][g]},n);Object.assign(c,s||{})};var Wp=a.defineComponent({name:"Tree",props:bp,emits:["check"],setup(e,n){const i=sd(e),s=[],l=a.reactive({data:i[0],schema:i[1],levelLineSchema:{}});a.watch(()=>[e.data],x=>{const R=sd(e,x,c.value);l.data=R[0],l.schema=R[1]},{deep:!0});const c=a.computed(()=>Array.from(l.schema.values())),f=x=>l.schema.get(x),h=(x,R)=>{var te;return(te=f(x.__uuid))==null?void 0:te[R]},g=(x,R,te)=>l.schema.set(x.__uuid,ze(O({},f(x.__uuid)),{[R]:te})),m=x=>h(x,"__path"),M=x=>h(x,"__isRoot"),C=x=>h(x,"__isOpen"),b=x=>h(x,"__hasChild"),N=a.computed(()=>l.data.filter(x=>G(x))),k=x=>{var R;return typeof x=="object"?C(x):typeof x=="string"?(R=f(x))==null?void 0:R.__isOpen:!1},S=x=>k(x)?a.createVNode(fs,{class:tt("tree-icon")},null):a.createVNode(hs,{class:tt("tree-icon")},null),J=x=>{if(typeof x=="string")return x;if(typeof x=="object"&&x!==null){if(x.__v_isVNode)return x;const{node:R,className:te,text:se,style:$}=x;return a.h(R,{class:te,style:$},se)}return null},D=x=>{let R=null;return typeof e.prefixIcon=="function"&&(R=e.prefixIcon(M(x),b(x)||x.async,k(x),"action",x),R!=="default")?J(R):(R==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon)&&(b(x)||x.async)?k(x)?a.createVNode(us,null,null):a.createVNode(Pr,null,null):null},E=x=>{let R=null;return typeof e.prefixIcon=="function"&&(R=e.prefixIcon(M(x),b(x)||x.async,k(x),"node_type",x),R!=="default")?J(R):R==="default"||typeof e.prefixIcon=="boolean"&&e.prefixIcon?M(x)||b(x)?S(x):a.createVNode(Cs,{class:tt("tree-icon")},null):null},z=x=>x.loading?a.createVNode(Is,null,null):"",U=x=>{const R=!k(x);g(x,"__isOpen",R),!R&&N.value.filter(te=>String.prototype.startsWith.call(m(te),m(x))).forEach(te=>g(te,"__isOpen",R))},Q=(x,R)=>{if(typeof x=="object"&&x!==null){g(R,"__isOpen",!0);const te=Array.isArray(x)?x:[x];Vp(m(R),e.data,e.children,e.children,te)}},H=x=>{if(x.async){const{callback:R=null,cache:te=!0}=e.async||{};if(typeof R=="function"){if(x.cached)return;Object.assign(x,{loading:!0}),R(x,se=>Q(se,x)).then(se=>Q(se,x)).catch(se=>console.error("load remote data error:",se)).finally(()=>{cd(m(x),e.data,e.children,O({loading:!1},te?{cached:!0}:{}))})}else console.error("async need to set prop: asyncLoad with function wich will return promise object")}b(x)&&U(x)},F=(x,R)=>{x.stopImmediatePropagation(),x.stopPropagation(),x.preventDefault(),H(R)},ne=x=>{s.includes(x.__uuid)||(s.forEach(R=>g({__uuid:R},"__checked",!1)),s.length=0,g(x,"__checked",!0),s.push(x.__uuid),C(x)||H(x),n.emit("check",x,f(x.__uuid)))},G=x=>M(x)||k(x)||k(h(x,"__parentId")),le=(x,R)=>{if(M(R))return!1;const te=m(R),se=`${te}`.split("-").slice(0,x+1);if(se.join("-")===te)return!0;const ce=se.pop(),de=parseInt(ce,10);se.push(`${de+1}`);const me=se.join("-");return c.value.some(De=>De.__path===me)},_=x=>{if(!e.levelLine)return null;const R=se=>({"--depth":se}),te=h(x,"__depth")+1;return new Array(te).fill("").map((se,$)=>$).filter(se=>le(se,x)).filter(se=>se>0).map(se=>a.createVNode("span",{class:"node-virtual-line",style:R(te-se)},null))},q=a.ref(),Z=()=>{var x;if((x=q.value)!=null&&x.$el){const R=`.${tt("tree-node")}`,te=`.${tt("node-content")}`;Array.prototype.forEach.call(q.value.$el.querySelectorAll(R),se=>{const $=se.querySelectorAll(`${te} span`),ce=Array.prototype.slice.call($,-1)[0];if(ce){const de=se.offsetWidth-ce.offsetLeft;ce.style.setProperty("max-width",`${de}px`)}})}};return a.onMounted(()=>{Z()}),a.onUpdated(()=>{Z()}),{renderData:N,flatData:l,root:q,hanldeTreeNodeClick:H,handleNodeContentClick:ne,handleNodeActionClick:F,getActionIcon:D,getRootIcon:S,getVirtualLines:_,getNodePrefixIcon:E,getLoadingIcon:z}},render(){const e=this.$props,n=i=>a.createVNode("div",{class:Ep(i,this.flatData.schema)},[a.createVNode("div",{class:Ap(i,this.flatData.schema,e),style:Op(i,e,this.flatData),onClick:()=>this.handleNodeContentClick(i)},[a.createVNode("span",{class:tt("node-action"),onClick:s=>this.handleNodeActionClick(s,i)},[this.getActionIcon(i)]),a.createVNode("span",{class:tt("node-content")},[[this.getNodePrefixIcon(i),this.getLoadingIcon(i)],a.createVNode("span",{class:tt("node-text")},[Jp(i,e)])]),this.getVirtualLines(i)])]);return a.createVNode(Hr,{class:tt("tree"),style:Pp(null,e),list:this.renderData,lineHeight:e.lineHeight,enabled:e.virtualRender,contentClassName:tt("container"),throttleDelay:0,ref:"root"},{default:i=>(i.data||[]).map(n)})}});const ud=Re(Wp),dd=e=>e.__v_isVNode;var Zp=a.defineComponent({name:"ComposeFormItem",props:{headBackgroundColor:{type:String,default:"#FAFBFD"},tailBackgroundColor:String},render(){if(!this.$slots.default)return null;const e=this.$slots.default();if(console.log("from render = ",e),e.length>1){const n=e.length;let i=0,s=null;for(;i<n;){if(dd(e[i])){s=e[i];break}i=i+1}let l=n-1,c=null;for(;l>=0&&l>i;){if(dd(e[l])){c=e[l];break}l=l-1}if(s&&c){s.props||(s.props={});let f="bk-compose-form-item-head";s.props.class&&(f+=` ${s.props.class}`),this.headBackgroundColor&&(s.props.style=Object.assign(s.props.style||{},{"background-color":this.headBackgroundColor})),s.props.class=f,c.props||(c.props={});let h="bk-compose-form-item-tail";c.props.class&&(h+=` ${c.props.class}`),this.tailBackgroundColor&&(c.props.style=Object.assign(c.props.style||{},{"background-color":this.tailBackgroundColor})),c.props.class=h}}return a.h("div",{class:"bk-compose-form-item"},e)}});const Rp=Symbol("form"),fd=(()=>Rp)(),Gp={formType:d.oneOf(["default","vertical"]).def("default"),labelWidth:d.oneOfType([Number,String]),labelPosition:d.oneOf(["left","center","right"]),model:d.object,rules:d.array};var Yp=a.defineComponent({name:"BKForm",props:Gp,setup(e){let n=[];const i=f=>{n.push(f)},s=f=>{n=n.reduce((h,g)=>(g!==f&&h.push(g),h),[])};return a.provide(fd,{props:e,register:i,unregister:s}),{validate:f=>{let h={};return f?h=(typeof f=="string"?[f]:f).reduce((m,M)=>ze(O({},m),{[M]:!0}),{}):h=n.reduce((g,m)=>m.property?ze(O({},g),{[m.property]:!0}):g,{}),Promise.all(n.reduce((g,m)=>(h[m.property]&&g.push(m.validate()),g),[])).then(()=>Promise.resolve(e.model))},clearValidate:f=>{let h={};f?h=(typeof f=="string"?[f]:f).reduce((m,M)=>ze(O({},m),{[M]:!0}),{}):h=n.reduce((g,m)=>ze(O({},g),{[m.property]:!0}),{}),n.forEach(g=>h[g.property]&&g.clearValidate())}}},render(){var n,i;const e=Ne({"bk-form":!0,[`bk-form--${this.formType}`]:!0});return a.createVNode("form",{class:e},[(i=(n=this.$slots).default)==null?void 0:i.call(n)])}}),hn={required:e=>(console.log("required"),e!==""&&e!==void 0&&e!==null),min:(e,n)=>(console.log("min"),e>=n),max:(e,n)=>(console.log("max"),n>=e),email:e=>(console.log("email"),/^[A-Za-z\d]+([-_.][A-Za-z\d]+)*@([A-Za-z\d]+[-.])+[A-Za-z\d]{2,4}$/.test(e)),maxlength:(e,n)=>(console.log("maxlength"),e.length<=n)};const Bp={label:d.string,labelWidth:d.oneOfType([Number,String]),labelPosition:d.oneOf(["left","center","right"]),property:d.string.def(""),required:d.bool.def(!1),email:d.bool.def(!1),max:d.number,min:d.number,maxlength:d.number,rules:d.array,autoCheck:d.bool.def(!1),description:d.string},Hp=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),Fp=(e,n)=>{const i=e.map(s=>{let l;return s.required?l=hn.required:s.email?l=hn.email:Number(s.max)>-1?l=c=>hn.max(c,s.max):Number(s.min)>-1?l=c=>hn.min(c,s.max):Number(s.maxlength)>-1?l=c=>hn.min(c,s.max):l=()=>!0,{validator:l,message:s.message,trigger:s.trigger}});return[...n,...i]},Up=e=>{const n=[];return e.required&&n.push({validator:hn.required,message:`${e.label}\u4E0D\u80FD\u4E3A\u7A7A`,trigger:"blur"}),e.email&&n.push({validator:hn.email,message:`${e.label}\u683C\u5F0F\u4E0D\u6B63\u786E`,trigger:"blur"}),Number(e.max)>-1&&n.push({validator:i=>hn.max(i,e.max),message:`${e.label}\u6700\u5927\u503C${e.max}`,trigger:"blur"}),Number(e.min)>-1&&n.push({validator:i=>hn.min(i,e.min),message:`${e.label}\u6700\u5C0F\u503C${e.min}`,trigger:"blur"}),Number(e.maxlength)>-1&&n.push({validator:i=>hn.maxlength(i,e.maxlength),message:`${e.label}\u6700\u5927\u957F\u5EA6${e.maxlength}`,trigger:"blur"}),n},hd=e=>e!==void 0;var co=a.defineComponent({name:"BKFormItem",props:Bp,setup(e){const n=a.getCurrentInstance(),i=a.reactive({isError:!1,errorMessage:""}),s=a.inject(fd),l=Boolean(s),c=a.computed(()=>{const g={width:"",paddingRight:"",textAlign:""},m=hd(e.labelWidth)?e.labelWidth:l&&s.props.labelWidth;hd(m)&&(g.width=`${m}px`,g.paddingRight=m?"":"0px");const M=e.labelPosition||l&&s.props.labelPosition;return M&&(g["text-align"]=M),g}),f=()=>{if(!e.property||l&&!s.props.model)return Promise.resolve();let g=[];l&&s.props.rules&&Hp(s.props.rules,e.property)&&(g=s.props.rules[e.property]),e.rules&&(g=e.rules),g=Fp(g,Up(e));const m=s.props.model[e.property],M=(()=>{let C=-1;return()=>{if(C=C+1,C>=g.length)return Promise.resolve();const b=g[C];return Promise.resolve().then(()=>{const N=b.validator(m);return typeof N!="boolean"&&typeof N.then=="function"?N.then(()=>M,()=>(i.isError=!0,i.errorMessage=b.message,Promise.reject(b.message))):N?M():(i.isError=!0,i.errorMessage=b.message,Promise.reject(b.message))})}})();return M()},h=()=>{i.isError=!1,i.errorMessage=""};return a.onMounted(()=>{l&&s.register(n.proxy)}),a.onBeforeUnmount(()=>{l&&s.unregister(n.proxy)}),ze(O({},a.toRefs(i)),{labelStyles:c,validate:f,clearValidate:h})},render(){var n,i;const e=Ne({"bk-form-item":!0,"is-error":this.isError,"is-required":this.required});return a.createVNode("div",{class:e},[a.createVNode("div",{class:"bk-form-label",style:this.labelStyles},[this.$slots.label?this.$slots.label():this.label]),a.createVNode("div",{class:"bk-form-content"},[(i=(n=this.$slots).default)==null?void 0:i.call(n),this.isError&&a.createVNode("div",{class:"bk-form-error"},[this.$slots.error?this.$slots.error(this.errorMessage):this.errorMessage])])])}});const gd=en(Yp,{FormItem:co,ComposeFormItem:Zp});var _p=a.defineComponent({name:"BkDropdown",props:{isShow:d.bool.def(!1),placement:d.commonType(["auto","auto-start","auto-end","top","right","bottom","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end"],"placement").def("bottom"),trigger:d.commonType(["hover","click","manual"],"trigger").def("hover"),disabled:d.bool.def(!1),extCls:d.string},emits:["showChange","show","hide"],setup(e,{emit:n}){let i=Object.create(null);const s=a.ref(null),l=a.ref(null);a.onMounted(()=>{h()}),a.onBeforeUnmount(()=>{g()}),a.watch(()=>e.isShow,M=>{a.nextTick(()=>{e.trigger==="manual"&&i&&!e.disabled&&(M?i.show():i.hide())})}),a.watch(()=>e.disabled,M=>m(M));const c=()=>{n("show")},f=()=>{n("hide")},h=()=>{e.disabled||(i=new es(s.value,l.value,{placement:e.placement,trigger:e.trigger,afterShow:c,afterHidden:f}),e.trigger==="manual"&&e.isShow&&i.show())},g=()=>{if(i){const M=i;M.isShow&&M.hide(),M.destroy(),i=null,e.trigger==="manual"&&n("showChange",!1)}},m=M=>{const C=i;e.trigger==="manual"&&!M&&n("showChange",!1),C.updateDisabled(M)};return{reference:s,refContent:l}},render(){var n,i,s,l;const e=Ne({"bk-dropdown":!0},this.$props.extCls);return a.createVNode("div",{class:e},[a.createVNode("div",{ref:"reference",class:"bk-dropdown-reference"},[(i=(n=this.$slots).default)==null?void 0:i.call(n)]),a.createVNode("div",{ref:"refContent",class:"bk-dropdown-content"},[(l=(s=this.$slots).content)==null?void 0:l.call(s)])])}}),uo=a.defineComponent({name:"BkDropdownItem",props:{extCls:d.string},emits:["click"],setup(e,{emit:n}){const i=l=>{n("click",l)};return{wrapperCLasses:a.computed(()=>["bk-dropdown-item",e.extCls]),handleClick:i}},render(){var e,n;return a.createVNode("li",{class:this.wrapperCLasses,onClick:this.handleClick},[(n=(e=this.$slots).default)==null?void 0:n.call(e)])}}),fo=a.defineComponent({name:"BkDropdownMenu",props:{extCls:d.string},setup(e){return{wrapperCLasses:a.computed(()=>["bk-dropdown-menu",e.extCls])}},render(){var e,n;return a.createVNode("ul",{class:this.wrapperCLasses},[(n=(e=this.$slots).default)==null?void 0:n.call(e)])}});const pd=en(_p,{DropdownMenu:fo,DropdownItem:uo});var ho=Object.freeze(Object.defineProperty({__proto__:null,Alert:gc,AnimateNumber:pc,Backtop:mc,Badge:Mc,Breadcrumb:Ic,BreadcrumbItem:ws,Button:bi,ButtonGroup:ks,Card:Cc,Checkbox:vs,CheckboxGroup:Er,Collapse:Nc,Dialog:wc,Exception:Lc,FixedNavbar:kc,Input:xs,Link:Tc,Loading:_n,Modal:Xn,Popover:Ni,Progress:Sc,Radio:Jc,RadioButton:Ss,RadioGroup:Ds,Rate:Qc,Swiper:Pc,Select:Ys,BkOption:Wr,BkOptionGroup:Js,Sideslider:$c,Steps:qc,Switcher:eu,Table:uu,Tag:Gs,TagInput:nr,Divider:hu,Tab:pu,TabPanel:_s,Message:Iu,Notify:yu,Menu:Lu,Navigation:ir,DatePicker:Xu,Transfer:Ku,Tree:ud,VirtualRender:Hr,Form:gd,FormItem:co,Pagination:Us,Dropdown:pd,DropdownMenu:fo,DropdownItem:uo},Symbol.toStringTag,{value:"Module"}));const md=(e="Bk")=>n=>{const i=n.config.globalProperties.bkUIPrefix||e;Object.keys(ho).forEach(s=>{const l=ho[s];"install"in l?n.use(l,{prefix:i}):n.component(i+s,ho[s])})};var Xp={createInstall:md,install:md(),version:"0.0.1"};ee.Alert=gc,ee.AnimateNumber=pc,ee.Backtop=mc,ee.Badge=Mc,ee.BkOption=Wr,ee.BkOptionGroup=Js,ee.Breadcrumb=Ic,ee.BreadcrumbItem=ws,ee.Button=bi,ee.ButtonGroup=ks,ee.Card=Cc,ee.Checkbox=vs,ee.CheckboxGroup=Er,ee.Collapse=Nc,ee.DatePicker=Xu,ee.Dialog=wc,ee.Divider=hu,ee.Dropdown=pd,ee.DropdownItem=uo,ee.DropdownMenu=fo,ee.Exception=Lc,ee.FixedNavbar=kc,ee.Form=gd,ee.FormItem=co,ee.Input=xs,ee.Link=Tc,ee.Loading=_n,ee.Menu=Lu,ee.Message=Iu,ee.Modal=Xn,ee.Navigation=ir,ee.Notify=yu,ee.Pagination=Us,ee.Popover=Ni,ee.Progress=Sc,ee.Radio=Jc,ee.RadioButton=Ss,ee.RadioGroup=Ds,ee.Rate=Qc,ee.Select=Ys,ee.Sideslider=$c,ee.Steps=qc,ee.Swiper=Pc,ee.Switcher=eu,ee.Tab=pu,ee.TabPanel=_s,ee.Table=uu,ee.Tag=Gs,ee.TagInput=nr,ee.Transfer=Ku,ee.Tree=ud,ee.VirtualRender=Hr,ee.bkTooltips=Kc,ee.clickoutside=Rs,ee.default=Xp,ee.mousewheel=C6,Object.defineProperties(ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|