@quoreadmin/ui 0.24.21 → 0.24.23
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.js +1137 -1125
- package/dist/index.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/scss/transitions.scss +14 -0
package/dist/index.umd.cjs
CHANGED
|
@@ -116,7 +116,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
116
116
|
flex: 1 0 `).concat(100/i.numVisible,`%
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
`)}}this.thumbnailsStyle.innerHTML=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var o=this.sortedResponsiveOptions[r];parseInt(o.breakpoint,10)>=e&&(n=o)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:Gc,ChevronRightIcon:ys,ChevronUpIcon:kg,ChevronDownIcon:bs},directives:{ripple:wt}};function vs(t){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(t)}function Og(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Cl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Og(Object(n),!0).forEach(function(r){UO(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UO(t,e,n){return e=WO(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function WO(t){var e=KO(t,"string");return vs(e)=="symbol"?e:String(e)}function KO(t,e){if(vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var GO=["disabled","aria-label"],qO=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],YO=["tabindex","aria-label","aria-current","onClick"],JO=["disabled","aria-label"];function QO(t,e,n,r,o,i){var a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("thumbnailWrapper")},t.ptm("thumbnailWrapper")),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailContainer")},t.ptm("thumbnailContainer")),[n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("previousThumbnailButton"),disabled:i.isNavBackwardDisabled(),type:"button","aria-label":i.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(l){return i.navBackward(l)})},Cl(Cl({},n.prevButtonProps),t.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),s.mergeProps({class:t.cx("previousThumbnailIcon")},t.ptm("previousThumbnailIcon")),null,16,["class"]))],16,GO)),[[a]]):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemsContainer"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailItemsContainer")),[s.createElementVNode("div",s.mergeProps({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(l){return i.onTransitionEnd(l)}),onTouchstart:e[2]||(e[2]=function(l){return i.onTouchStart(l)}),onTouchmove:e[3]||(e[3]=function(l){return i.onTouchMove(l)}),onTouchend:e[4]||(e[4]=function(l){return i.onTouchEnd(l)})},t.ptm("thumbnailItems")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,function(l,c){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:t.cx("thumbnailItem",{index:c,activeIndex:n.activeIndex}),role:"tab","data-p-active":n.activeIndex===c,"aria-selected":n.activeIndex===c,"aria-controls":n.containerId+"_item_"+c,onKeydown:function(d){return i.onThumbnailKeydown(d,c)}},t.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":n.activeIndex===c,"data-p-galleria-thumbnail-item-active":i.isItemActive(c),"data-p-galleria-thumbnail-item-start":i.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":i.lastItemActiveIndex()===c}),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemContent"),tabindex:n.activeIndex===c?"0":"-1","aria-label":i.ariaPageLabel(c+1),"aria-current":n.activeIndex===c?"page":void 0,onClick:function(d){return i.onItemClick(c)}},t.ptm("thumbnailItemContent")),[n.templates.thumbnail?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.thumbnail),{key:0,item:l},null,8,["item"])):s.createCommentVNode("",!0)],16,YO)],16,qO)}),128))],16)],16),n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:1,class:t.cx("nextThumbnailButton"),disabled:i.isNavForwardDisabled(),type:"button","aria-label":i.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(l){return i.navForward(l)})},Cl(Cl({},n.nextButtonProps),t.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),s.mergeProps({class:t.cx("nextThumbnailIcon")},t.ptm("nextThumbnailIcon")),null,16,["class"]))],16,JO)),[[a]]):s.createCommentVNode("",!0)],16)],16)}Eg.render=QO;function Cs(t){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Mg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tg(Object(n),!0).forEach(function(r){XO(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XO(t,e,n){return e=eT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eT(t){var e=tT(t,"string");return Cs(e)=="symbol"?e:String(e)}function tT(t,e){if(Cs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ig={name:"GalleriaContent",hostName:"Galleria",extends:J,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||Qt(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||Qt()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||Qt()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:Mg(Mg({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var n=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=n},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,n){var r=["top","left","bottom","right"],o=r.find(function(i){return i===n});return o?"".concat(e,"-").concat(o):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:Sg,GalleriaThumbnails:Eg,TimesIcon:to},directives:{ripple:wt}};function ks(t){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(t)}function xg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Pg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xg(Object(n),!0).forEach(function(r){nT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nT(t,e,n){return e=rT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rT(t){var e=oT(t,"string");return ks(e)=="symbol"?e:String(e)}function oT(t,e){if(ks(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var iT=["id","aria-label","aria-roledescription"],sT=["aria-label"],aT=["aria-live"];function lT(t,e,n,r,o,i){var a=s.resolveComponent("GalleriaItem"),l=s.resolveComponent("GalleriaThumbnails"),c=s.resolveDirective("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,id:o.id,role:"region",class:[t.cx("root"),t.$attrs.containerClass],style:t.$attrs.containerStyle,"aria-label":t.$attrs.ariaLabel,"aria-roledescription":t.$attrs.ariaRoledescription},Pg(Pg({},t.$attrs.containerProps),i.getPTOptions("root"))),[t.$attrs.fullScreen?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":i.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return t.$emit("mask-hide")})},i.getPTOptions("closeButton")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.closeicon||"TimesIcon"),s.mergeProps({class:t.cx("closeIcon")},i.getPTOptions("closeIcon")),null,16,["class"]))],16,sT)),[[c]]):s.createCommentVNode("",!0),t.$attrs.templates&&t.$attrs.templates.header?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("header")},i.getPTOptions("header")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.header)))],16)):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},i.getPTOptions("content")),[s.createVNode(a,{id:o.id,activeIndex:o.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return o.activeIndex=u}),slideShowActive:o.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return o.slideShowActive=u}),value:t.$attrs.value,circular:t.$attrs.circular,templates:t.$attrs.templates,showIndicators:t.$attrs.showIndicators,changeItemOnIndicatorHover:t.$attrs.changeItemOnIndicatorHover,showItemNavigators:t.$attrs.showItemNavigators,autoPlay:t.$attrs.autoPlay,onStartSlideshow:i.startSlideShow,onStopSlideshow:i.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),t.$attrs.showThumbnails?(s.openBlock(),s.createBlock(l,{key:0,activeIndex:o.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return o.activeIndex=u}),slideShowActive:o.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return o.slideShowActive=u}),containerId:o.id,value:t.$attrs.value,templates:t.$attrs.templates,numVisible:o.numVisible,responsiveOptions:t.$attrs.responsiveOptions,circular:t.$attrs.circular,isVertical:i.isVertical(),contentHeight:t.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:t.$attrs.showThumbnailNavigators,prevButtonProps:t.$attrs.prevButtonProps,nextButtonProps:t.$attrs.nextButtonProps,onStopSlideshow:i.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):s.createCommentVNode("",!0)],16,aT),t.$attrs.templates&&t.$attrs.templates.footer?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:2,class:t.cx("footer")},i.getPTOptions("footer")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.footer)))],16)):s.createCommentVNode("",!0)],16,iT)):s.createCommentVNode("",!0)}Ig.render=lT;var Bg={name:"Galleria",extends:PO,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&E.unblockBodyScroll(),this.mask=null,this.container&&(An.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){An.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),E.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&E.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){An.clear(e),this.containerVisible=!1,E.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:Ig,Portal:vl},directives:{focustrap:wg}},cT=["aria-modal"];function uT(t,e,n,r,o,i){var a=s.resolveComponent("GalleriaContent"),l=s.resolveComponent("Portal"),c=s.resolveDirective("focustrap");return t.fullScreen?(s.openBlock(),s.createBlock(l,{key:0},{default:s.withCtx(function(){return[o.containerVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:i.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[s.createVNode(s.Transition,s.mergeProps({name:"p-galleria",onBeforeEnter:i.onBeforeEnter,onEnter:i.onEnter,onBeforeLeave:i.onBeforeLeave,onAfterLeave:i.onAfterLeave,appear:""},t.ptm("transition")),{default:s.withCtx(function(){return[t.visible?s.withDirectives((s.openBlock(),s.createBlock(a,s.mergeProps({key:0,ref:i.containerRef,onMaskHide:i.maskHide,templates:t.$slots,onActiveitemChange:i.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):s.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,cT)):s.createCommentVNode("",!0)]}),_:1})):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,templates:t.$slots,onActiveitemChange:i.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}Bg.render=uT;const dT=s.defineComponent({name:"ImageGallery",components:{Galleria:Bg,QBadge:Hr},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showOnHover:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!1},baseZIndex:{type:Number,default:1e3}},emits:["update:model-value","update:activeIndex","click:file"],setup(t,{emit:e}){const n=s.ref(null),r=s.computed(()=>{var k;return(k=n.value)==null?void 0:k.offsetWidth}),o=s.ref(null),i=s.ref("0"),a=s.ref(1),l=s.ref(rn.md?1:.9),c=s.ref(0),u=s.ref(t.files),d=s.ref(!1),f=s.computed(()=>[`z-[${t.baseZIndex+1}]`]),p=s.computed(()=>t.files.filter(k=>k.type.startsWith("image"))),h=s.computed(()=>["rounded-lg relative mx-auto object-cover grow-1","md:w-full md:h-full md:min-h-[592px] md:min-w-[592px]",{animated:!b}]),m=(k,w)=>{const M=S=>"original"in S&&"original"in w?S.original.url===(w==null?void 0:w.original.url):w instanceof File?S.name===(w==null?void 0:w.name):!1,C=p.value.findIndex(M);c.value=C!==-1?C:k,d.value=!0},y=k=>{e("update:model-value",k)},g=k=>{const{keyCode:w}=k;if(d.value)switch(w){case 37:c.value=c.value?c.value-1:p.value.length-1,e("update:activeIndex",c.value);break;case 39:c.value=c.value<p.value.length-1?c.value+1:0,e("update:activeIndex",c.value);break;case 27:d.value=!1;break}},{isSwiping:b,lengthX:v}=E8(o,{passive:!1,onSwipe(){const k=Math.abs(v.value);r.value&&(a.value=1.1-k/r.value,i.value=v.value<0?`${k/4}px`:`-${k/4}px`)},onSwipeEnd(){const k=c.value<=0,w=c.value>=p.value.length-1,M=Math.abs(v.value);r.value&&M/r.value>=.5?(v.value<0?c.value=k?p.value.length-1:c.value-1:c.value=w?0:c.value+1,i.value="0",a.value=1):(i.value="0",a.value=1)}});return s.onMounted(()=>{window.addEventListener("keyup",g)}),{container:n,containerWidth:r,featuredPhoto:o,isSwiping:b,lengthX:v,left:i,opacity:a,scale:l,showCarousel:d,active:c,fileList:u,closeIconClasses:f,itemClasses:h,images:p,onOpenCarousel:m,onRemoveFile:y,onKeyboardNavigation:g,mq:rn}}}),fT={class:"flex",ref:"container"},pT={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},hT=["src","alt"],mT=["src","alt"],gT={key:0,class:"flex flex-wrap"},yT=["onMouseover","onMouseleave"],bT=["src","alt","onClick"],wT=["onClick"],vT=["title"];function CT(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("Galleria"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",fT,[s.createVNode(l,{activeIndex:t.active,"onUpdate:activeIndex":e[0]||(e[0]=u=>t.active=u),visible:t.showCarousel,"onUpdate:visible":e[1]||(e[1]=u=>t.showCarousel=u),value:t.images,numVisible:t.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:t.mq.md,showThumbnailNavigators:!0,showThumbnails:t.showThumbnails&&t.mq.md,showIndicators:!t.mq.md,containerStyle:[{height:"100vh"}],"base-z-index":t.baseZIndex},{closeicon:s.withCtx(()=>[s.createVNode(a,{class:s.normalizeClass(t.closeIconClasses),icon:"times-circle",type:"outline",size:"lg",color:"white"},null,8,["class"])]),item:s.withCtx(({item:u})=>[s.createElementVNode("div",pT,[s.createElementVNode("img",{src:(u==null?void 0:u.itemImageSrc)||(u==null?void 0:u.objectURL)||(u==null?void 0:u.original.url),alt:u==null?void 0:u.alt,class:s.normalizeClass(t.itemClasses),style:s.normalizeStyle([{left:t.left,opacity:t.opacity},`transform: scale(${t.scale})`])},null,14,hT)],512)]),thumbnail:s.withCtx(({item:u})=>[s.createElementVNode("img",{src:u.thumbnailImageSrc||(u==null?void 0:u.objectURL)||(u==null?void 0:u.thumbnail.url),alt:u.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,mT)]),previousitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),nextthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators","base-z-index"]),t.files?(s.openBlock(),s.createElementBlock("div",gT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.files,(u,d)=>{var f;return s.openBlock(),s.createElementBlock("div",{key:u.name||((f=u.original)==null?void 0:f.name)||d,class:"py-3 pr-4 relative",onMouseover:p=>u.isHovered=!0,onMouseleave:p=>u.isHovered=!1},[u.type&&u.type.includes("image")?(s.openBlock(),s.createElementBlock("img",{key:0,src:(u==null?void 0:u.thumbnailImageSrc)||(u==null?void 0:u.objectURL)||(u==null?void 0:u.thumbnail.url),alt:u==null?void 0:u.alt,class:"rounded-lg cursor-pointer w-20 h-20 object-cover",onClick:p=>t.onOpenCarousel(d,u)},null,8,bT)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"bg-gray-00 cursor-pointer p-3 w-20 h-20 max-w-20 rounded-lg border border-gray-20 flex flex-col flex-nowrap justify-center",onClick:p=>t.$emit("click:file",u)},[s.createVNode(a,{icon:"file-document",size:"md",color:"inkwell-30",class:"mx-auto"}),s.createElementVNode("p",{class:"text-inkwell-30 text-sm leading-normal text-ellipsis overflow-hidden max-h-5 text-center",title:u.name||u.original.name},s.toDisplayString(u.name||u.original.name),9,vT)],8,wT)),t.showRemove||t.showOnHover&&(u.isHovered||!t.mq.md)?(s.openBlock(),s.createBlock(c,{key:2,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute top-1 right-2 shadow-solid",onClick:p=>t.onRemoveFile(u)},{icon:s.withCtx(()=>[s.createVNode(a,{icon:"close",size:"sm",type:"line",color:"white"})]),_:2},1032,["onClick"])):s.createCommentVNode("",!0)],40,yT)}),128))])):s.createCommentVNode("",!0)],512)}const Qc=oe(dT,[["render",CT],["__scopeId","data-v-e35ab0c4"]]),kT=s.defineComponent({name:"QMenu",props:{modelValue:{type:Boolean,default:!1},actions:{type:Array},dismissibleOverlay:{type:Boolean,default:!0},links:{type:Array,required:!0},linksBackground:{type:String,default:"bg-white"},overlay:{type:String,default:"black-transparent"}},emits:["click:link","click:action"],setup(){return s.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),s.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{}}}),ST=t=>(s.pushScopeId("data-v-bd24b7a3"),t=t(),s.popScopeId(),t),ET=["value"],OT=ST(()=>s.createElementVNode("div",{class:"overlay"},null,-1)),TT={class:"q-menu-content px-4 pb-10"},MT=["onClick"],IT={class:"actions"},xT=["onClick"];function PT(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["q-menu",t.overlay]),value:t.modelValue},[OT,s.createElementVNode("div",TT,[s.renderSlot(t.$slots,"links",{},()=>[s.createElementVNode("ul",{class:s.normalizeClass(["links rounded-[0.8125rem] mb-2",t.linksBackground])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.links,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.createElementVNode("a",{class:s.normalizeClass(["px-4 py-[1.125rem] flex items-center justify-center cursor-pointer text-inkwell-00 text-md",a.classes]),onClick:c=>t.$emit("click:link",a)},s.toDisplayString(a.text),11,MT)]))),128))],2)],!0),s.renderSlot(t.$slots,"actions",{},()=>[s.createElementVNode("ul",IT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.actions,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.createElementVNode("a",{class:"bg-white px-4 py-[1.125rem] rounded-[0.8125rem] flex items-center justify-center cursor-pointer text-blue-20 text-md font-semibold",onClick:c=>t.$emit("click:action",a)},s.toDisplayString(a.text),9,xT)]))),128))])],!0)])],10,ET)}const Ag=oe(kT,[["render",PT],["__scopeId","data-v-bd24b7a3"]]),BT=s.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.ref(!1),r=s.ref(""),o=s.ref(null),i=s.computed(()=>n.value===!0&&t.reposition===!0?l(t.align):t.align),a=s.computed(()=>n.value===!0&&t.reposition===!0?c(t.position):t.position),l=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),v=o.value.children[1].getBoundingClientRect();if(g==="left"||g==="right"||g==="center"){const k=b.left;return window.innerWidth-k<v.width?"right":"left"}else{const k=b.top;return window.innerHeight-k<v.height?"bottom":"top"}},c=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),v=o.value.children[1].getBoundingClientRect();if(g==="top"||g==="bottom"){const k=b.top;return window.innerHeight-k<v.height?"top":"bottom"}else{const k=b.left;return window.innerWidth-k<v.width?"left":"right"}},u=g=>{const b=g.getBoundingClientRect();return b?b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(t.trigger==="click"||t.trigger==="both")&&e("update:modelValue",!t.modelValue)},f=()=>{t.trigger!=="click"&&e("update:modelValue",!1)},p=()=>{t.trigger!=="click"&&e("update:modelValue",!0)},h=()=>{var b;const g=(b=o.value)==null?void 0:b.children[0];if(g){const v=g.clientWidth,k=g.clientHeight;switch(i.value){case"left":r.value=`margin-left: ${v/2-10}px;`;break;case"right":r.value=`margin-right: ${v/2-10}px;`;break;case"top":r.value=`margin-top: ${k/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${k/2-10}px;`;break}}};k1(o,()=>{e("update:modelValue",!1)});function m(){n.value=!1}function y(){var g;n.value=!0,!u((g=o.value)==null?void 0:g.children[1])&&t.reposition===!0&&h()}return{entered:n,offsetStyle:r,popover:o,alignment:i,positioning:a,getAlignment:l,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:k1,onEnter:y,onMouseLeave:f,onMouseOver:p}}});function AT(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...a)=>t.onMouseLeave&&t.onMouseLeave(...a))},[s.renderSlot(t.$slots,"trigger",{onClick:t.onClick,onMouseOver:t.onMouseOver},void 0,!0),s.createVNode(s.Transition,{name:"fade",onEnter:t.onEnter,onAfterLeave:t.onAfterLeave},{default:s.withCtx(()=>[t.modelValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["popover","popover-"+t.alignment,"popover-"+t.size,"popover-on-"+t.positioning,{"has-caret":t.hasCaret}]),style:s.normalizeStyle(t.offsetStyle)},[s.renderSlot(t.$slots,"content",{},void 0,!0)],6)):s.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const Dg=oe(BT,[["render",AT],["__scopeId","data-v-86f2575d"]]),DT={id:{type:[Number,String],default:null},attachments:{type:Array,default:[]},attachmentClickEvent:{type:Function,default:()=>{}},attachmentRemoveEvent:{type:Function,default:()=>{}},deleteOption:{type:Object,default:null},editOption:{type:Object,default:null},user:{type:Object,default:null},comment:{type:String,default:""},dateUtc:{type:String,default:null},dateLocal:{type:String,default:""},showAvatar:{type:Boolean,default:!0}},NT=s.defineComponent({name:"QComment",components:{QAvatar:Ff,QImageGallery:Qc,QMenu:Ag,QPopover:Dg},props:DT,setup(t){const{t:e}=eo(),n=[{text:e("HC_CANCEL")}],r=s.ref(!1),o=s.ref(!1),i=s.computed(()=>{const f=[];return t.editOption&&f.push(t.editOption),t.deleteOption&&f.push(t.deleteOption),f}),a=s.computed(()=>t.user.firstName+" "+t.user.lastName.substring(0,1)),l=s.computed(()=>Ce.fromISO(t.dateUtc).toLocaleString(Ce.DATETIME_MED)),c=s.computed(()=>t.user.name.split(" ").map(f=>f.trim().charAt(0)).join("").toUpperCase());return{menuActions:n,showControls:r,showRemoveButton:o,allowedActions:i,displayName:a,formatDate:l,userInitials:c,onClick:()=>{r.value=!r.value},onClickLink:(f,p)=>{f.click(p),f.text===e("HC_EDIT_COMMENT")&&(o.value=!0),r.value=!r.value},mq:rn}}}),LT={key:0,class:"comment-container flex flex-col mb-5"},RT={class:"flex mb-1"},VT={class:"grow"},$T={class:"w-full block text-sm leading-4 font-bold"},FT={class:"text-inkwell-0 text-xs leading-4 block"},HT={class:"w-full"},zT=["onClick"],_T={key:2};function jT(t,e,n,r,o,i){const a=s.resolveComponent("q-avatar"),l=s.resolveComponent("q-icon"),c=s.resolveComponent("q-popover"),u=s.resolveComponent("q-menu"),d=s.resolveComponent("q-image-gallery");return t.comment||t.attachments.length>0?(s.openBlock(),s.createElementBlock("div",LT,[s.createElementVNode("div",RT,[t.showAvatar?(s.openBlock(),s.createBlock(a,{key:0,src:t.user.profileImg,text:t.userInitials,class:"mr-4"},null,8,["src","text"])):s.createCommentVNode("",!0),s.createElementVNode("div",VT,[s.createElementVNode("span",$T,s.toDisplayString(t.user.name),1),s.createElementVNode("span",FT,s.toDisplayString(t.dateLocal||t.formatDate),1)]),t.allowedActions.length&&t.mq.md?(s.openBlock(),s.createBlock(c,{key:1,modelValue:t.showControls,"onUpdate:modelValue":e[0]||(e[0]=f=>t.showControls=f),align:"right",position:"bottom",size:"sm"},{trigger:s.withCtx(({onClick:f})=>[s.createVNode(l,{icon:"ellipsis-h",type:"fill",class:s.normalizeClass(["shrink-0 cursor-pointer",t.showControls&&"!text-blue-20"]),color:"gray-40",onClick:f},null,8,["class","onClick"])]),content:s.withCtx(()=>[s.createElementVNode("ul",HT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.allowedActions,(f,p)=>(s.openBlock(),s.createElementBlock("li",{key:p,class:s.normalizeClass(f.classes),onClick:h=>t.onClickLink(f,t.id)},s.toDisplayString(f.text),11,zT))),128))])]),_:1},8,["modelValue"])):s.createCommentVNode("",!0),t.allowedActions.length&&!t.mq.md?(s.openBlock(),s.createElementBlock("div",_T,[s.createVNode(l,{icon:"ellipsis-h",type:"fill",class:"shrink-0 cursor-pointer",color:"gray-40",onClick:t.onClick},null,8,["onClick"]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[t.showControls?(s.openBlock(),s.createBlock(u,{key:0,modelValue:t.showControls,"onUpdate:modelValue":e[1]||(e[1]=f=>t.showControls=f),actions:t.menuActions,links:t.allowedActions,"links-background":"light-gray","onClick:link":e[2]||(e[2]=f=>t.onClickLink(f,t.id)),"onClick:action":e[3]||(e[3]=f=>{t.onClick(),t.showRemoveButton=!1})},null,8,["modelValue","actions","links"])):s.createCommentVNode("",!0)]),_:1})])):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass(["leading-normal text-sm",{"ml-12":t.showAvatar}])},[s.createElementVNode("p",null,s.toDisplayString(t.comment),1)],2),t.attachments.length>0?(s.openBlock(),s.createBlock(d,{key:0,class:s.normalizeClass({"ml-12":t.showAvatar}),files:t.attachments,"show-on-hover":!1,"show-remove":t.showRemoveButton,"onClick:file":t.attachmentClickEvent,"onUpdate:modelValue":t.attachmentRemoveEvent},null,8,["class","files","show-remove","onClick:file","onUpdate:modelValue"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}const Ng=oe(NT,[["render",jT],["__scopeId","data-v-1041354f"]]),ZT=s.defineComponent({name:"QCommentSection",components:{QComment:Ng},props:{comments:{type:Array,default:()=>[]},attachmentClickEvent:{type:Function,default:()=>{}},attachmentRemoveEvent:{type:Function,default:()=>{}},deleteClickEvent:{type:Function,default:()=>{}},editClickEvent:{type:Function,default:()=>{}}},setup(t){const{t:e}=eo(),n=s.ref({text:e("HC_DELETE_COMMENT"),classes:"!text-red-20",click:t.deleteClickEvent}),r=s.ref({text:e("HC_EDIT_COMMENT"),classes:"!text-blue-20 md:!text-inkwell-0",click:t.editClickEvent});return{deleteOption:n,editOption:r}}}),UT={class:"comment-section"},WT={key:0,class:"comments"},KT={key:1,class:"no-comments text-center mb-6 mt-4"},GT={class:"text-md mb-2 leading-6 font-bold text-inkwell-30"},qT={class:"text-sm text-inkwell-0"};function YT(t,e,n,r,o,i){const a=s.resolveComponent("q-comment");return s.openBlock(),s.createElementBlock("div",UT,[t.comments&&t.comments.length?(s.openBlock(),s.createElementBlock("div",WT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.comments,(l,c)=>(s.openBlock(),s.createBlock(a,s.mergeProps({key:c},l,{"attachment-click-event":t.attachmentClickEvent,"attachment-remove-event":t.attachmentRemoveEvent,"delete-click-event":t.deleteClickEvent,"edit-click-event":t.editClickEvent,"delete-option":l.canDelete?t.deleteOption:null,"edit-option":l.canEdit?t.editOption:null}),null,16,["attachment-click-event","attachment-remove-event","delete-click-event","edit-click-event","delete-option","edit-option"]))),128))])):(s.openBlock(),s.createElementBlock("div",KT,[s.createElementVNode("h4",GT,s.toDisplayString(t.$t("HC_NO_COMMENTS_YET")),1),s.createElementVNode("p",qT,s.toDisplayString(t.$t("HC_START_THE_CONVERSATION")),1)])),s.renderSlot(t.$slots,"default",{},void 0,!0)])}const JT=oe(ZT,[["render",YT],["__scopeId","data-v-8ed65462"]]),QT=s.defineComponent({name:"QCounter",props:{modelValue:{type:Number,default:0},max:{type:Number,default:100}},emits:["update:modelValue"],setup(t,{emit:e}){return{updateCount:r=>{const o=t.modelValue+r,i=o>=t.max?t.max:o;return e("update:modelValue",i<0?0:i),i}}}}),XT={class:"counter flex items-center"},eM={class:"grow text-center"};function tM(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",XT,[s.createVNode(a,{icon:"minus-circle",type:"outline",size:"sm",color:"inkwell-30",class:"cursor-pointer mr-1",onClick:e[0]||(e[0]=l=>t.updateCount(-1))}),s.createElementVNode("span",eM,s.toDisplayString(t.modelValue),1),s.createVNode(a,{icon:"circle-plus",type:"outline",size:"sm",color:"inkwell-30",class:"cursor-pointer ml-1",onClick:e[1]||(e[1]=l=>t.updateCount(1))})])}const nM=oe(QT,[["render",tM]]);function Lg(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function kl(t){return Lg(t)?new Date(t.getTime()):t==null?new Date(NaN):new Date(t)}function rM(t){return Lg(t)&&!isNaN(t.getTime())}function Rg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(e>=0&&e<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var n=kl(t),r=n.getDay(),o=(r+7-e)%7;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function Vg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.firstDayOfWeek,r=n===void 0?0:n,o=e.firstWeekContainsDate,i=o===void 0?1:o;if(!(i>=1&&i<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var a=kl(t),l=a.getFullYear(),c=new Date(0),u=l+1;u>=l-1&&(c.setFullYear(u,0,i),c.setHours(0,0,0,0),c=Rg(c,r),!(a.getTime()>=c.getTime()));u--);return c}function Xc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.firstDayOfWeek,r=n===void 0?0:n,o=e.firstWeekContainsDate,i=o===void 0?1:o,a=kl(t),l=Rg(a,r),c=Vg(a,{firstDayOfWeek:r,firstWeekContainsDate:i}),u=l.getTime()-c.getTime();return Math.round(u/(7*24*3600*1e3))+1}var eu={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},oM=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function It(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n="".concat(Math.abs(t)),r=t<0?"-":"";n.length<e;)n="0".concat(n);return r+n}function $g(t){return Math.round(t.getTimezoneOffset()/15)*15}function Fg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=r%60;return n+It(o,2)+e+It(i,2)}var Hg=function(e,n,r){var o=e<12?"AM":"PM";return r?o.toLocaleLowerCase():o},Ss={Y:function(e){var n=e.getFullYear();return n<=9999?"".concat(n):"+".concat(n)},YY:function(e){return It(e.getFullYear(),4).substr(2)},YYYY:function(e){return It(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return It(e.getMonth()+1,2)},MMM:function(e,n){return n.monthsShort[e.getMonth()]},MMMM:function(e,n){return n.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return It(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return It(e.getHours(),2)},h:function(e){var n=e.getHours();return n===0?12:n>12?n%12:n},hh:function(){var e=Ss.h.apply(Ss,arguments);return It(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return It(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return It(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return It(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return It(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,n){return n.weekdaysMin[e.getDay()]},ddd:function(e,n){return n.weekdaysShort[e.getDay()]},dddd:function(e,n){return n.weekdays[e.getDay()]},A:function(e,n){var r=n.meridiem||Hg;return r(e.getHours(),e.getMinutes(),!1)},a:function(e,n){var r=n.meridiem||Hg;return r(e.getHours(),e.getMinutes(),!0)},Z:function(e){return Fg($g(e),":")},ZZ:function(e){return Fg($g(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,n){return Xc(e,{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate})},ww:function(e,n){return It(Ss.w(e,n),2)}};function tu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=kl(t);if(!rM(o))return"Invalid Date";var i=n.locale||eu;return r.replace(oM,function(a,l){return l||(typeof Ss[a]=="function"?"".concat(Ss[a](o,i)):a)})}function zg(t){return aM(t)||sM(t)||iM()}function iM(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function sM(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function aM(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function _g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_g(n,!0).forEach(function(r){lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_g(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cM(t,e){return fM(t)||dM(t,e)||uM()}function uM(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function dM(t,e){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]"){var n=[],r=!0,o=!1,i=void 0;try{for(var a=t[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(e&&n.length===e));r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function fM(t){if(Array.isArray(t))return t}function lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pM=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,jg=/\d/,cr=/\d\d/,hM=/\d{3}/,mM=/\d{4}/,Wo=/\d\d?/,gM=/[+-]\d\d:?\d\d/,Zg=/[+-]?\d+/,yM=/[+-]?\d+(\.\d{1,3})?/,nu="year",Sl="month",Ug="day",Wg="hour",Kg="minute",Gg="second",ru="millisecond",qg={},me=function(e,n,r){var o=Array.isArray(e)?e:[e],i;typeof r=="string"?i=function(l){var c=parseInt(l,10);return lr({},r,c)}:i=r,o.forEach(function(a){qg[a]=[n,i]})},bM=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Es=function(e){return function(n){var r=n[e];if(!Array.isArray(r))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(r.map(bM).join("|"))}},Os=function(e,n){return function(r,o){var i=o[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));var a=i.indexOf(r);if(a<0)throw new Error("Invalid Word");return lr({},n,a)}};me("Y",Zg,nu),me("YY",cr,function(t){var e=new Date().getFullYear(),n=Math.floor(e/100),r=parseInt(t,10);return r=(r>68?n-1:n)*100+r,lr({},nu,r)}),me("YYYY",mM,nu),me("M",Wo,function(t){return lr({},Sl,parseInt(t,10)-1)}),me("MM",cr,function(t){return lr({},Sl,parseInt(t,10)-1)}),me("MMM",Es("monthsShort"),Os("monthsShort",Sl)),me("MMMM",Es("months"),Os("months",Sl)),me("D",Wo,Ug),me("DD",cr,Ug),me(["H","h"],Wo,Wg),me(["HH","hh"],cr,Wg),me("m",Wo,Kg),me("mm",cr,Kg),me("s",Wo,Gg),me("ss",cr,Gg),me("S",jg,function(t){return lr({},ru,parseInt(t,10)*100)}),me("SS",cr,function(t){return lr({},ru,parseInt(t,10)*10)}),me("SSS",hM,ru);function wM(t){return t.meridiemParse||/[ap]\.?m?\.?/i}function vM(t){return"".concat(t).toLowerCase().charAt(0)==="p"}me(["A","a"],wM,function(t,e){var n=typeof e.isPM=="function"?e.isPM(t):vM(t);return{isPM:n}});function CM(t){var e=t.match(/([+-]|\d\d)/g)||["-","0","0"],n=cM(e,3),r=n[0],o=n[1],i=n[2],a=parseInt(o,10)*60+parseInt(i,10);return a===0?0:r==="+"?-a:+a}me(["Z","ZZ"],gM,function(t){return{offset:CM(t)}}),me("x",Zg,function(t){return{date:new Date(parseInt(t,10))}}),me("X",yM,function(t){return{date:new Date(parseFloat(t)*1e3)}}),me("d",jg,"weekday"),me("dd",Es("weekdaysMin"),Os("weekdaysMin","weekday")),me("ddd",Es("weekdaysShort"),Os("weekdaysShort","weekday")),me("dddd",Es("weekdays"),Os("weekdays","weekday")),me("w",Wo,"week"),me("ww",cr,"week");function kM(t,e){if(t!==void 0&&e!==void 0){if(e){if(t<12)return t+12}else if(t===12)return 0}return t}function SM(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,n=[0,0,1,0,0,0,0],r=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],o=!0,i=0;i<7;i++)t[i]===void 0?n[i]=o?r[i]:n[i]:(n[i]=t[i],o=!1);return n}function EM(t,e,n,r,o,i,a){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,o,i,a),l}function OM(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return o<100&&o>=0?(n[0]+=400,t=new Date(Date.UTC.apply(Date,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(o)):t=new Date(Date.UTC.apply(Date,n)),t}function TM(t,e,n){var r=e.match(pM);if(!r)throw new Error;for(var o=r.length,i={},a=0;a<o;a+=1){var l=r[a],c=qg[l];if(c){var d=typeof c[0]=="function"?c[0](n):c[0],f=c[1],p=(d.exec(t)||[])[0],h=f(p,n);i=lM({},i,{},h),t=t.replace(p,"")}else{var u=l.replace(/^\[|\]$/g,"");if(t.indexOf(u)===0)t=t.substr(u.length);else throw new Error("not match")}}return i}function MM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var r=n.locale,o=r===void 0?eu:r,i=n.backupDate,a=i===void 0?new Date:i,l=TM(t,e,o),c=l.year,u=l.month,d=l.day,f=l.hour,p=l.minute,h=l.second,m=l.millisecond,y=l.isPM,g=l.date,b=l.offset,v=l.weekday,k=l.week;if(g)return g;var w=[c,u,d,f,p,h,m];if(w[3]=kM(w[3],y),k!==void 0&&u===void 0&&d===void 0){var M=Vg(c===void 0?a:new Date(c,3),{firstDayOfWeek:o.firstDayOfWeek,firstWeekContainsDate:o.firstWeekContainsDate});return new Date(M.getTime()+(k-1)*7*24*3600*1e3)}var C,S=SM(w,a);return b!==void 0?(S[6]+=b*60*1e3,C=OM.apply(void 0,zg(S))):C=EM.apply(void 0,zg(S)),v!==void 0&&C.getDay()!==v?new Date(NaN):C}catch{return new Date(NaN)}}var IM=Object.defineProperty,xM=Object.defineProperties,PM=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Yg=Object.prototype.hasOwnProperty,Jg=Object.prototype.propertyIsEnumerable,Qg=(t,e,n)=>e in t?IM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fe=(t,e)=>{for(var n in e||(e={}))Yg.call(e,n)&&Qg(t,n,e[n]);if(El)for(var n of El(e))Jg.call(e,n)&&Qg(t,n,e[n]);return t},_t=(t,e)=>xM(t,PM(e)),BM=(t,e)=>{var n={};for(var r in t)Yg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&El)for(var r of El(t))e.indexOf(r)<0&&Jg.call(t,r)&&(n[r]=t[r]);return n};const AM={formatLocale:eu,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let Ts="en";const Ko={};Ko[Ts]=AM;function Xg(t,e,n=!1){if(typeof t!="string")return Ko[Ts];let r=Ts;return Ko[t]&&(r=t),e&&(Ko[t]=e,r=t),n||(Ts=r),Ko[t]||Ko[Ts]}function ou(t){return Xg(t,void 0,!0)}function iu(t,e){if(!Array.isArray(t))return[];const n=[],r=t.length;let o=0;for(e=e||r;o<r;)n.push(t.slice(o,o+=e));return n}function e5(t){return Array.isArray(t)?t[t.length-1]:void 0}function ur(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vn(t,e){const n={};return ur(t)&&(Array.isArray(e)||(e=[e]),e.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])})),n}function t5(t,e){if(!ur(t))return{};let n=t;return ur(e)&&Object.keys(e).forEach(r=>{let o=e[r];const i=t[r];ur(o)&&ur(i)&&(o=t5(i,o)),n=_t(Fe({},n),{[r]:o})}),n}function su(t){const e=parseInt(String(t),10);return e<10?`0${e}`:`${e}`}function DM(t){const e=/-(\w)/g;return t.replace(e,(n,r)=>r?r.toUpperCase():"")}const n5="datepicker_locale",r5="datepicker_prefixClass",o5="datepicker_getWeek";function au(){return s.inject(n5,s.shallowRef(ou()))}function NM(t){const e=s.computed(()=>ur(t.value)?t5(ou(),t.value):ou(t.value));return s.provide(n5,e),e}function LM(t){s.provide(r5,t)}function ut(){return s.inject(r5,"mx")}function RM(t){s.provide(o5,t)}function VM(){return s.inject(o5,Xc)}function $M(t){const e=t.style.display,n=t.style.visibility;t.style.display="block",t.style.visibility="hidden";const r=window.getComputedStyle(t),o=t.offsetWidth+parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),i=t.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10);return t.style.display=e,t.style.visibility=n,{width:o,height:i}}function FM(t,e,n,r){let o=0,i=0,a=0,l=0;const c=t.getBoundingClientRect(),u=document.documentElement.clientWidth,d=document.documentElement.clientHeight;return r&&(a=window.pageXOffset+c.left,l=window.pageYOffset+c.top),u-c.left<e&&c.right<e?o=a-c.left+1:c.left+c.width/2<=u/2?o=a:o=a+c.width-e,c.top<=n&&d-c.bottom<=n?i=l+d-c.top-n:c.top+c.height/2<=d/2?i=l+c.height:i=l-n,{left:`${o}px`,top:`${i}px`}}function lu(t,e=document.body){if(!t||t===e)return null;const n=(i,a)=>getComputedStyle(i,null).getPropertyValue(a);return/(auto|scroll)/.test(n(t,"overflow")+n(t,"overflow-y")+n(t,"overflow-x"))?t:lu(t.parentElement,e)}let Ol;function HM(){if(typeof window>"u")return 0;if(Ol!==void 0)return Ol;const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=document.createElement("div");return e.style.width="100%",t.appendChild(e),Ol=t.offsetWidth-e.offsetWidth,t.parentNode.removeChild(t),Ol}const i5="ontouchend"in document?"touchstart":"mousedown";function zM(t){let e=!1;return function(...r){e||(e=!0,requestAnimationFrame(()=>{e=!1,t.apply(this,r)}))}}function $n(t,e){return{setup:t,name:t.name,props:e}}function Fn(t,e){return new Proxy(t,{get(r,o){const i=r[o];return i!==void 0?i:e[o]}})}const dr=()=>t=>t,_M=(t,e)=>{const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=DM(r);let i=t[r];e.indexOf(o)!==-1&&i===""&&(i=!0),n[o]=i}return n};function jM(t,{slots:e}){const n=Fn(t,{appendToBody:!0}),r=ut(),o=s.ref(null),i=s.ref({left:"",top:""}),a=()=>{if(!n.visible||!o.value)return;const c=n.getRelativeElement();if(!c)return;const{width:u,height:d}=$M(o.value);i.value=FM(c,u,d,n.appendToBody)};s.watchEffect(a,{flush:"post"}),s.watchEffect(c=>{const u=n.getRelativeElement();if(!u)return;const d=lu(u)||window,f=zM(a);d.addEventListener("scroll",f),window.addEventListener("resize",f),c(()=>{d.removeEventListener("scroll",f),window.removeEventListener("resize",f)})},{flush:"post"});const l=c=>{if(!n.visible)return;const u=c.target,d=o.value,f=n.getRelativeElement();d&&!d.contains(u)&&f&&!f.contains(u)&&n.onClickOutside(c)};return s.watchEffect(c=>{document.addEventListener(i5,l),c(()=>{document.removeEventListener(i5,l)})}),()=>s.createVNode(s.Teleport,{to:"body",disabled:!n.appendToBody},{default:()=>[s.createVNode(s.Transition,{name:`${r}-zoom-in-down`},{default:()=>{var c;return[n.visible&&s.createVNode("div",{ref:o,class:`${r}-datepicker-main ${r}-datepicker-popup ${n.className}`,style:[Fe({position:"absolute"},i.value),n.style||{}]},[(c=e.default)==null?void 0:c.call(e)])]}})]})}const ZM=dr()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var UM=$n(jM,ZM);const WM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},KM=[s.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1)];function s5(t,e){return s.openBlock(),s.createElementBlock("svg",WM,KM)}const GM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},qM=[s.createElementVNode("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1)];function YM(t,e){return s.openBlock(),s.createElementBlock("svg",GM,qM)}const JM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},QM=[s.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),s.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)];function XM(t,e){return s.openBlock(),s.createElementBlock("svg",JM,QM)}function no(t,e=0,n=1,r=0,o=0,i=0,a=0){const l=new Date(t,e,n,r,o,i,a);return t<100&&t>=0&&l.setFullYear(t),l}function Hn(t){return t instanceof Date&&!isNaN(t.getTime())}function ro(t){return Array.isArray(t)&&t.length===2&&t.every(Hn)&&t[0]<=t[1]}function eI(t){return Array.isArray(t)&&t.every(Hn)}function Tl(...t){if(t[0]!==void 0&&t[0]!==null){const n=new Date(t[0]);if(Hn(n))return n}const e=t.slice(1);return e.length?Tl(...e):new Date}function tI(t){const e=new Date(t);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function a5(t){const e=new Date(t);return e.setDate(1),e.setHours(0,0,0,0),e}function fr(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function nI({firstDayOfWeek:t,year:e,month:n}){const r=[],o=no(e,n,0),i=o.getDate(),a=i-(o.getDay()+7-t)%7;for(let d=a;d<=i;d++)r.push(no(e,n,d-i));o.setMonth(n+1,0);const l=o.getDate();for(let d=1;d<=l;d++)r.push(no(e,n,d));const c=i-a+1,u=6*7-c-l;for(let d=1;d<=u;d++)r.push(no(e,n,l+d));return r}function Ml(t,e){const n=new Date(t),r=typeof e=="function"?e(n.getMonth()):Number(e),o=n.getFullYear(),i=no(o,r+1,0).getDate(),a=n.getDate();return n.setMonth(r,Math.min(a,i)),n}function Go(t,e){const n=new Date(t),r=typeof e=="function"?e(n.getFullYear()):e;return n.setFullYear(r),n}function rI(t,e){const n=new Date(e),r=new Date(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function Il(t,e){const n=new Date(t),r=new Date(e);return n.setHours(r.getHours(),r.getMinutes(),r.getSeconds()),n}function oI(t,{slots:e}){const n=Fn(t,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),r=ut(),o=s.ref(null),i=s.computed(()=>n.separator||(n.range?" ~ ":",")),a=h=>n.range?ro(h):n.multiple?eI(h):Hn(h),l=h=>Array.isArray(h)?h.some(m=>n.disabledDate(m)):n.disabledDate(h),c=s.computed(()=>o.value!==null?o.value:typeof n.renderInputText=="function"?n.renderInputText(n.value):a(n.value)?Array.isArray(n.value)?n.value.map(h=>n.formatDate(h)).join(i.value):n.formatDate(n.value):""),u=h=>{var m;h&&h.stopPropagation(),n.onChange(n.range?[null,null]:null),(m=n.onClear)==null||m.call(n)},d=()=>{var h;if(!n.editable||o.value===null)return;const m=o.value.trim();if(o.value=null,m===""){u();return}let y;if(n.range){let g=m.split(i.value);g.length!==2&&(g=m.split(i.value.trim())),y=g.map(b=>n.parseDate(b.trim()))}else n.multiple?y=m.split(i.value).map(g=>n.parseDate(g.trim())):y=n.parseDate(m);a(y)&&!l(y)?n.onChange(y):(h=n.onInputError)==null||h.call(n,m)},f=h=>{o.value=typeof h=="string"?h:h.target.value},p=h=>{const{keyCode:m}=h;m===9?n.onBlur():m===13&&d()};return()=>{var h,m,y;const g=!n.disabled&&n.clearable&&c.value,b=_t(Fe({name:"date",type:"text",autocomplete:"off",value:c.value,class:n.inputClass||`${r}-input`,readonly:!n.editable,disabled:n.disabled,placeholder:n.placeholder},n.inputAttr),{onFocus:n.onFocus,onKeydown:p,onInput:f,onChange:d});return s.createVNode("div",{class:`${r}-input-wrapper`,onClick:n.onClick},[((h=e.input)==null?void 0:h.call(e,b))||s.createVNode("input",b,null),g?s.createVNode("i",{class:`${r}-icon-clear`,onClick:u},[((m=e["icon-clear"])==null?void 0:m.call(e))||s.createVNode(YM,null,null)]):null,s.createVNode("i",{class:`${r}-icon-calendar`},[((y=e["icon-calendar"])==null?void 0:y.call(e))||s.createVNode(s5,null,null)])])}}const cu=dr()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),iI=dr()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...cu]);var sI=$n(oI,iI);function aI(t,{slots:e}){var n;const r=Fn(t,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});LM(r.prefixClass),RM(((n=r.formatter)==null?void 0:n.getWeek)||Xc);const o=NM(s.toRef(t,"lang")),i=s.ref(),a=()=>i.value,l=s.ref(!1),c=s.computed(()=>!r.disabled&&(typeof r.open=="boolean"?r.open:l.value)),u=()=>{var C,S;r.disabled||c.value||(l.value=!0,(C=r["onUpdate:open"])==null||C.call(r,!0),(S=r.onOpen)==null||S.call(r))},d=()=>{var C,S;c.value&&(l.value=!1,(C=r["onUpdate:open"])==null||C.call(r,!1),(S=r.onClose)==null||S.call(r))},f=(C,S)=>(S=S||r.format,ur(r.formatter)&&typeof r.formatter.stringify=="function"?r.formatter.stringify(C,S):tu(C,S,{locale:o.value.formatLocale})),p=(C,S)=>{if(S=S||r.format,ur(r.formatter)&&typeof r.formatter.parse=="function")return r.formatter.parse(C,S);const O=new Date;return MM(C,S,{locale:o.value.formatLocale,backupDate:O})},h=C=>{switch(r.valueType){case"date":return C instanceof Date?new Date(C.getTime()):new Date(NaN);case"timestamp":return typeof C=="number"?new Date(C):new Date(NaN);case"format":return typeof C=="string"?p(C):new Date(NaN);default:return typeof C=="string"?p(C,r.valueType):new Date(NaN)}},m=C=>{if(!Hn(C))return null;switch(r.valueType){case"date":return C;case"timestamp":return C.getTime();case"format":return f(C);default:return f(C,r.valueType)}},y=s.computed(()=>{const C=r.value;return r.range?(Array.isArray(C)?C.slice(0,2):[null,null]).map(h):r.multiple?(Array.isArray(C)?C:[]).map(h):h(C)}),g=(C,S,O=!0)=>{var T,B;const A=Array.isArray(C)?C.map(m):m(C);return(T=r["onUpdate:value"])==null||T.call(r,A),(B=r.onChange)==null||B.call(r,A,S),O&&d(),A},b=s.ref(new Date);s.watchEffect(()=>{c.value&&(b.value=y.value)});const v=(C,S)=>{r.confirm?b.value=C:g(C,S,!r.multiple&&(S===r.type||S==="time"))},k=()=>{var C;const S=g(b.value);(C=r.onConfirm)==null||C.call(r,S)},w=C=>r.disabledDate(C)||r.disabledTime(C),M=C=>{var S;const{prefixClass:O}=r;return s.createVNode("div",{class:`${O}-datepicker-sidebar`},[(S=e.sidebar)==null?void 0:S.call(e,C),(r.shortcuts||[]).map((T,B)=>s.createVNode("button",{key:B,"data-index":B,type:"button",class:`${O}-btn ${O}-btn-text ${O}-btn-shortcut`,onClick:()=>{var A;const D=(A=T.onClick)==null?void 0:A.call(T);D&&g(D)}},[T.text]))])};return()=>{var C,S;const{prefixClass:O,disabled:T,confirm:B,range:A,popupClass:D,popupStyle:F,appendToBody:W}=r,V={value:b.value,"onUpdate:value":v,emit:g},Z=e.header&&s.createVNode("div",{class:`${O}-datepicker-header`},[e.header(V)]),Y=(e.footer||B)&&s.createVNode("div",{class:`${O}-datepicker-footer`},[(C=e.footer)==null?void 0:C.call(e,V),B&&s.createVNode("button",{type:"button",class:`${O}-btn ${O}-datepicker-btn-confirm`,onClick:k},[r.confirmText])]),ae=(S=e.content)==null?void 0:S.call(e,V),Ye=(e.sidebar||r.shortcuts)&&M(V);return s.createVNode("div",{ref:i,class:{[`${O}-datepicker`]:!0,[`${O}-datepicker-range`]:A,disabled:T}},[s.createVNode(sI,_t(Fe({},Vn(r,cu)),{value:y.value,formatDate:f,parseDate:p,disabledDate:w,onChange:g,onClick:u,onFocus:u,onBlur:d}),Vn(e,["icon-calendar","icon-clear","input"])),s.createVNode(UM,{className:D,style:F,visible:c.value,appendToBody:W,getRelativeElement:a,onClickOutside:d},{default:()=>[Ye,s.createVNode("div",{class:`${O}-datepicker-content`},[Z,ae,Y])]})])}}const lI=[...dr()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),...cu];var l5=$n(aI,lI);function xl(t){var e=t,{value:n}=e,r=BM(e,["value"]);const o=ut();return s.createVNode("button",_t(Fe({},r),{type:"button",class:`${o}-btn ${o}-btn-text ${o}-btn-icon-${n}`}),[s.createVNode("i",{class:`${o}-icon-${n}`},null)])}function uu({type:t,calendar:e,onUpdateCalendar:n},{slots:r}){var o;const i=ut(),a=()=>{n(Ml(e,p=>p-1))},l=()=>{n(Ml(e,p=>p+1))},c=()=>{n(Go(e,p=>p-1))},u=()=>{n(Go(e,p=>p+1))},d=()=>{n(Go(e,p=>p-10))},f=()=>{n(Go(e,p=>p+10))};return s.createVNode("div",{class:`${i}-calendar-header`},[s.createVNode(xl,{value:"double-left",onClick:t==="year"?d:c},null),t==="date"&&s.createVNode(xl,{value:"left",onClick:a},null),s.createVNode(xl,{value:"double-right",onClick:t==="year"?f:u},null),t==="date"&&s.createVNode(xl,{value:"right",onClick:l},null),s.createVNode("span",{class:`${i}-calendar-header-label`},[(o=r.default)==null?void 0:o.call(r)])])}function cI({calendar:t,isWeekMode:e,showWeekNumber:n,titleFormat:r,getWeekActive:o,getCellClasses:i,onSelect:a,onUpdatePanel:l,onUpdateCalendar:c,onDateMouseEnter:u,onDateMouseLeave:d}){const f=ut(),p=VM(),h=au().value,{yearFormat:m,monthBeforeYear:y,monthFormat:g="MMM",formatLocale:b}=h,v=b.firstDayOfWeek||0;let k=h.days||b.weekdaysMin;k=k.concat(k).slice(v,v+7);const w=t.getFullYear(),M=t.getMonth(),C=iu(nI({firstDayOfWeek:v,year:w,month:M}),7),S=(V,Z)=>tu(V,Z,{locale:h.formatLocale}),O=V=>{l(V)},T=V=>{const Z=V.getAttribute("data-index"),[Y,ae]=Z.split(",").map(mt=>parseInt(mt,10)),Ye=C[Y][ae];return new Date(Ye)},B=V=>{a(T(V.currentTarget))},A=V=>{u&&u(T(V.currentTarget))},D=V=>{d&&d(T(V.currentTarget))},F=s.createVNode("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-year`,onClick:()=>O("year")},[S(t,m)]),W=s.createVNode("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-month`,onClick:()=>O("month")},[S(t,g)]);return n=typeof n=="boolean"?n:e,s.createVNode("div",{class:[`${f}-calendar ${f}-calendar-panel-date`,{[`${f}-calendar-week-mode`]:e}]},[s.createVNode(uu,{type:"date",calendar:t,onUpdateCalendar:c},{default:()=>[y?[W,F]:[F,W]]}),s.createVNode("div",{class:`${f}-calendar-content`},[s.createVNode("table",{class:`${f}-table ${f}-table-date`},[s.createVNode("thead",null,[s.createVNode("tr",null,[n&&s.createVNode("th",{class:`${f}-week-number-header`},null),k.map(V=>s.createVNode("th",{key:V},[V]))])]),s.createVNode("tbody",null,[C.map((V,Z)=>s.createVNode("tr",{key:Z,class:[`${f}-date-row`,{[`${f}-active-week`]:o(V)}]},[n&&s.createVNode("td",{class:`${f}-week-number`,"data-index":`${Z},0`,onClick:B},[s.createVNode("div",null,[p(V[0])])]),V.map((Y,ae)=>s.createVNode("td",{key:ae,class:["cell",i(Y)],title:S(Y,r),"data-index":`${Z},${ae}`,onClick:B,onMouseenter:A,onMouseleave:D},[s.createVNode("div",null,[Y.getDate()])]))]))])])])])}function uI({calendar:t,getCellClasses:e,onSelect:n,onUpdateCalendar:r,onUpdatePanel:o}){const i=ut(),a=au().value,l=a.months||a.formatLocale.monthsShort,c=d=>no(t.getFullYear(),d),u=d=>{const p=d.currentTarget.getAttribute("data-month");n(c(parseInt(p,10)))};return s.createVNode("div",{class:`${i}-calendar ${i}-calendar-panel-month`},[s.createVNode(uu,{type:"month",calendar:t,onUpdateCalendar:r},{default:()=>[s.createVNode("button",{type:"button",class:`${i}-btn ${i}-btn-text ${i}-btn-current-year`,onClick:()=>o("year")},[t.getFullYear()])]}),s.createVNode("div",{class:`${i}-calendar-content`},[s.createVNode("table",{class:`${i}-table ${i}-table-month`},[iu(l,3).map((d,f)=>s.createVNode("tr",{key:f},[d.map((p,h)=>{const m=f*3+h;return s.createVNode("td",{key:h,class:["cell",e(c(m))],"data-month":m,onClick:u},[s.createVNode("div",null,[p])])})]))])])])}const dI=t=>{const e=Math.floor(t.getFullYear()/10)*10,n=[];for(let r=0;r<10;r++)n.push(e+r);return iu(n,2)};function fI({calendar:t,getCellClasses:e=()=>[],getYearPanel:n=dI,onSelect:r,onUpdateCalendar:o}){const i=ut(),a=f=>no(f,0),l=f=>{const h=f.currentTarget.getAttribute("data-year");r(a(parseInt(h,10)))},c=n(new Date(t)),u=c[0][0],d=e5(e5(c));return s.createVNode("div",{class:`${i}-calendar ${i}-calendar-panel-year`},[s.createVNode(uu,{type:"year",calendar:t,onUpdateCalendar:o},{default:()=>[s.createVNode("span",null,[u]),s.createVNode("span",{class:`${i}-calendar-decade-separator`},null),s.createVNode("span",null,[d])]}),s.createVNode("div",{class:`${i}-calendar-content`},[s.createVNode("table",{class:`${i}-table ${i}-table-year`},[c.map((f,p)=>s.createVNode("tr",{key:p},[f.map((h,m)=>s.createVNode("td",{key:m,class:["cell",e(a(h))],"data-year":h,onClick:l},[s.createVNode("div",null,[h])]))]))])])])}function pI(t){const e=Fn(t,{defaultValue:fr(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),n=s.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Hn).map(v=>e.type==="year"?tI(v):e.type==="month"?a5(v):fr(v))),r=s.ref(new Date);s.watchEffect(()=>{let b=e.calendar;if(!Hn(b)){const{length:v}=n.value;b=Tl(v>0?n.value[v-1]:e.defaultValue)}r.value=a5(b)});const o=b=>{var v;r.value=b,(v=e.onCalendarChange)==null||v.call(e,b)},i=s.ref("date");s.watchEffect(()=>{const b=["date","month","year"],v=Math.max(b.indexOf(e.type),b.indexOf(e.defaultPanel));i.value=v!==-1?b[v]:"date"});const a=b=>{var v;const k=i.value;i.value=b,(v=e.onPanelChange)==null||v.call(e,b,k)},l=b=>e.disabledDate(new Date(b),n.value),c=(b,v)=>{var k,w,M;if(!l(b))if((k=e.onPick)==null||k.call(e,b),e.multiple===!0){const C=n.value.filter(S=>S.getTime()!==b.getTime());C.length===n.value.length&&C.push(b),(w=e["onUpdate:value"])==null||w.call(e,C,v)}else(M=e["onUpdate:value"])==null||M.call(e,b,v)},u=b=>{c(b,e.type==="week"?"week":"date")},d=b=>{if(e.type==="year")c(b,"year");else if(o(b),a("month"),e.partialUpdate&&n.value.length===1){const v=Go(n.value[0],b.getFullYear());c(v,"year")}},f=b=>{if(e.type==="month")c(b,"month");else if(o(b),a("date"),e.partialUpdate&&n.value.length===1){const v=Ml(Go(n.value[0],b.getFullYear()),b.getMonth());c(v,"month")}},p=(b,v=[])=>(l(b)?v.push("disabled"):n.value.some(k=>k.getTime()===b.getTime())&&v.push("active"),v.concat(e.getClasses(b,n.value,v.join(" ")))),h=b=>{const v=b.getMonth()!==r.value.getMonth(),k=[];return b.getTime()===new Date().setHours(0,0,0,0)&&k.push("today"),v&&k.push("not-current-month"),p(b,k)},m=b=>e.type!=="month"?r.value.getMonth()===b.getMonth()?"active":"":p(b),y=b=>e.type!=="year"?r.value.getFullYear()===b.getFullYear()?"active":"":p(b),g=b=>{if(e.type!=="week")return!1;const v=b[0].getTime(),k=b[6].getTime();return n.value.some(w=>{const M=w.getTime();return M>=v&&M<=k})};return()=>i.value==="year"?s.createVNode(fI,{calendar:r.value,getCellClasses:y,getYearPanel:e.getYearPanel,onSelect:d,onUpdateCalendar:o},null):i.value==="month"?s.createVNode(uI,{calendar:r.value,getCellClasses:m,onSelect:f,onUpdatePanel:a,onUpdateCalendar:o},null):s.createVNode(cI,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:r.value,getCellClasses:h,getWeekActive:g,onSelect:u,onUpdatePanel:a,onUpdateCalendar:o,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const Pl=dr()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var Bl=$n(pI,Pl);const c5=(t,e)=>{const n=t.getTime();let[r,o]=e.map(i=>i.getTime());return r>o&&([r,o]=[o,r]),n>r&&n<o};function hI(t){const e=Fn(t,{defaultValue:new Date,type:"date"}),n=ut(),r=s.computed(()=>{let g=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return g=g.map(b=>fr(b)),ro(g)?g:[new Date,new Date].map(b=>fr(b))}),o=s.ref([new Date(NaN),new Date(NaN)]);s.watchEffect(()=>{ro(e.value)&&(o.value=e.value)});const i=(g,b)=>{var v;const[k,w]=o.value;Hn(k)&&!Hn(w)?(k.getTime()>g.getTime()?o.value=[g,k]:o.value=[k,g],(v=e["onUpdate:value"])==null||v.call(e,o.value,b)):o.value=[g,new Date(NaN)]},a=s.ref([new Date,new Date]),l=s.computed(()=>ro(e.calendar)?e.calendar:a.value),c=s.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),u=(g,b)=>{var v;const k=rI(g[0],g[1]),w=c.value-k;if(w>0){const M=b===1?0:1;g[M]=Ml(g[M],C=>C+(M===0?-w:w))}a.value=g,(v=e.onCalendarChange)==null||v.call(e,g,b)},d=g=>{u([g,l.value[1]],0)},f=g=>{u([l.value[0],g],1)};s.watchEffect(()=>{const g=ro(e.value)?e.value:r.value;u(g.slice(0,2))});const p=s.ref(null),h=g=>p.value=g,m=()=>p.value=null,y=(g,b,v)=>{const k=e.getClasses?e.getClasses(g,b,v):[],w=Array.isArray(k)?k:[k];return/disabled|active/.test(v)?w:(b.length===2&&c5(g,b)&&w.push("in-range"),b.length===1&&p.value&&c5(g,[b[0],p.value])?w.concat("hover-in-range"):w)};return()=>{const g=l.value.map((b,v)=>{const k=_t(Fe({},e),{calendar:b,value:o.value,defaultValue:r.value[v],getClasses:y,partialUpdate:!1,multiple:!1,"onUpdate:value":i,onCalendarChange:v===0?d:f,onDateMouseLeave:m,onDateMouseEnter:h});return s.createVNode(Bl,k,null)});return s.createVNode("div",{class:`${n}-calendar-range`},[g])}}const du=Pl;var fu=$n(hI,du);const u5=s.defineComponent({setup(t,{slots:e}){const n=ut(),r=s.ref(),o=s.ref(""),i=s.ref(""),a=()=>{if(!r.value)return;const m=r.value,y=m.clientHeight*100/m.scrollHeight;o.value=y<100?`${y}%`:""};s.onMounted(a);const l=HM(),c=m=>{const y=m.currentTarget,{scrollHeight:g,scrollTop:b}=y;i.value=`${b*100/g}%`};let u=!1,d=0;const f=m=>{m.stopImmediatePropagation();const y=m.currentTarget,{offsetTop:g}=y;u=!0,d=m.clientY-g},p=m=>{if(!u||!r.value)return;const{clientY:y}=m,{scrollHeight:g,clientHeight:b}=r.value,k=(y-d)*g/b;r.value.scrollTop=k},h=()=>{u=!1};return s.onMounted(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)}),s.onUnmounted(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)}),()=>{var m;return s.createVNode("div",{class:`${n}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[s.createVNode("div",{ref:r,class:`${n}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:c},[(m=e.default)==null?void 0:m.call(e)]),s.createVNode("div",{class:`${n}-scrollbar-track`},[s.createVNode("div",{class:`${n}-scrollbar-thumb`,style:{height:o.value,top:i.value},onMousedown:f},null)])])}}});function mI({options:t,getClasses:e,onSelect:n}){const r=ut(),o=i=>{const a=i.target,l=i.currentTarget;if(a.tagName.toUpperCase()!=="LI")return;const c=l.getAttribute("data-type"),u=parseInt(l.getAttribute("data-index"),10),d=parseInt(a.getAttribute("data-index"),10),f=t[u].list[d].value;n(f,c)};return s.createVNode("div",{class:`${r}-time-columns`},[t.map((i,a)=>s.createVNode(u5,{key:i.type,class:`${r}-time-column`},{default:()=>[s.createVNode("ul",{class:`${r}-time-list`,"data-index":a,"data-type":i.type,onClick:o},[i.list.map((l,c)=>s.createVNode("li",{key:l.text,"data-index":c,class:[`${r}-time-item`,e(l.value,i.type)]},[l.text]))])]}))])}function gI(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!s.isVNode(t)}function yI(t){let e;const n=ut();return s.createVNode(u5,null,gI(e=t.options.map(r=>s.createVNode("div",{key:r.text,class:[`${n}-time-option`,t.getClasses(r.value,"time")],onClick:()=>t.onSelect(r.value,"time")},[r.text])))?e:{default:()=>[e]})}function pu({length:t,step:e=1,options:n}){if(Array.isArray(n))return n.filter(o=>o>=0&&o<t);e<=0&&(e=1);const r=[];for(let o=0;o<t;o+=e)r.push(o);return r}function bI(t,e){let{showHour:n,showMinute:r,showSecond:o,use12h:i}=e;const a=e.format||"HH:mm:ss";n=typeof n=="boolean"?n:/[HhKk]/.test(a),r=typeof r=="boolean"?r:/m/.test(a),o=typeof o=="boolean"?o:/s/.test(a),i=typeof i=="boolean"?i:/a/i.test(a);const l=[],c=i&&t.getHours()>=12;return n&&l.push({type:"hour",list:pu({length:i?12:24,step:e.hourStep,options:e.hourOptions}).map(u=>{const d=u===0&&i?"12":su(u),f=new Date(t);return f.setHours(c?u+12:u),{value:f,text:d}})}),r&&l.push({type:"minute",list:pu({length:60,step:e.minuteStep,options:e.minuteOptions}).map(u=>{const d=new Date(t);return d.setMinutes(u),{value:d,text:su(u)}})}),o&&l.push({type:"second",list:pu({length:60,step:e.secondStep,options:e.secondOptions}).map(u=>{const d=new Date(t);return d.setSeconds(u),{value:d,text:su(u)}})}),i&&l.push({type:"ampm",list:["AM","PM"].map((u,d)=>{const f=new Date(t);return f.setHours(f.getHours()%12+d*12),{text:u,value:f}})}),l}function hu(t=""){const e=t.split(":");if(e.length>=2){const n=parseInt(e[0],10),r=parseInt(e[1],10);return{hours:n,minutes:r}}return null}function wI({date:t,option:e,format:n,formatDate:r}){const o=[];if(typeof e=="function")return e()||[];const i=hu(e.start),a=hu(e.end),l=hu(e.step),c=e.format||n;if(i&&a&&l){const u=i.minutes+i.hours*60,d=a.minutes+a.hours*60,f=l.minutes+l.hours*60,p=Math.floor((d-u)/f);for(let h=0;h<=p;h++){const m=u+h*f,y=Math.floor(m/60),g=m%60,b=new Date(t);b.setHours(y,g,0),o.push({value:b,text:r(b,c)})}}return o}const d5=(t,e,n=0)=>{if(n<=0){requestAnimationFrame(()=>{t.scrollTop=e});return}const o=(e-t.scrollTop)/n*10;requestAnimationFrame(()=>{const i=t.scrollTop+o;if(i>=e){t.scrollTop=e;return}t.scrollTop=i,d5(t,e,n-10)})};function vI(t){const e=Fn(t,{defaultValue:fr(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),n=ut(),r=au(),o=(y,g)=>tu(y,g,{locale:r.value.formatLocale}),i=s.ref(new Date);s.watchEffect(()=>{i.value=Tl(e.value,e.defaultValue)});const a=y=>Array.isArray(y)?y.every(g=>e.disabledTime(new Date(g))):e.disabledTime(new Date(y)),l=y=>{const g=new Date(y);return a([g.getTime(),g.setMinutes(0,0,0),g.setMinutes(59,59,999)])},c=y=>{const g=new Date(y);return a([g.getTime(),g.setSeconds(0,0),g.setSeconds(59,999)])},u=y=>{const g=new Date(y),b=g.getHours()<12?0:12,v=b+11;return a([g.getTime(),g.setHours(b,0,0,0),g.setHours(v,59,59,999)])},d=(y,g)=>g==="hour"?l(y):g==="minute"?c(y):g==="ampm"?u(y):a(y),f=(y,g)=>{var b;if(!d(y,g)){const v=new Date(y);i.value=v,a(v)||(b=e["onUpdate:value"])==null||b.call(e,v,g)}},p=(y,g)=>d(y,g)?"disabled":y.getTime()===i.value.getTime()?"active":"",h=s.ref(),m=y=>{if(!h.value)return;const g=h.value.querySelectorAll(".active");for(let b=0;b<g.length;b++){const v=g[b],k=lu(v,h.value);if(k){const w=v.offsetTop;d5(k,w,y)}}};return s.onMounted(()=>m(0)),s.watch(i,()=>m(e.scrollDuration),{flush:"post"}),()=>{let y;return e.timePickerOptions?y=s.createVNode(yI,{onSelect:f,getClasses:p,options:wI({date:i.value,format:e.format,option:e.timePickerOptions,formatDate:o})},null):y=s.createVNode(mI,{options:bI(i.value,e),onSelect:f,getClasses:p},null),s.createVNode("div",{class:`${n}-time`,ref:h},[e.showTimeHeader&&s.createVNode("div",{class:`${n}-time-header`},[s.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-time-header-title`,onClick:e.onClickTitle},[o(i.value,e.timeTitleFormat)])]),s.createVNode("div",{class:`${n}-time-content`},[y])])}}const Al=dr()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var Ms=$n(vI,Al);function CI(t){const e=Fn(t,{defaultValue:fr(new Date),disabledTime:()=>!1}),n=ut(),r=s.ref([new Date(NaN),new Date(NaN)]);s.watchEffect(()=>{ro(e.value)?r.value=e.value:r.value=[new Date(NaN),new Date(NaN)]});const o=(u,d)=>{var f;(f=e["onUpdate:value"])==null||f.call(e,r.value,u==="time"?"time-range":u,d)},i=(u,d)=>{r.value[0]=u,r.value[1].getTime()>=u.getTime()||(r.value[1]=u),o(d,0)},a=(u,d)=>{r.value[1]=u,r.value[0].getTime()<=u.getTime()||(r.value[0]=u),o(d,1)},l=u=>e.disabledTime(u,0),c=u=>u.getTime()<r.value[0].getTime()||e.disabledTime(u,1);return()=>{const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return s.createVNode("div",{class:`${n}-time-range`},[s.createVNode(Ms,_t(Fe({},e),{"onUpdate:value":i,value:r.value[0],defaultValue:u[0],disabledTime:l}),null),s.createVNode(Ms,_t(Fe({},e),{"onUpdate:value":a,value:r.value[1],defaultValue:u[1],disabledTime:c}),null)])}}const mu=Al;var gu=$n(CI,mu);function f5(t){const e=s.ref(!1),n=()=>{var i;e.value=!1,(i=t.onShowTimePanelChange)==null||i.call(t,!1)},r=()=>{var i;e.value=!0,(i=t.onShowTimePanelChange)==null||i.call(t,!0)};return{timeVisible:s.computed(()=>typeof t.showTimePanel=="boolean"?t.showTimePanel:e.value),openTimePanel:r,closeTimePanel:n}}function kI(t){const e=Fn(t,{disabledTime:()=>!1,defaultValue:fr(new Date)}),n=s.ref(e.value);s.watchEffect(()=>{n.value=e.value});const{openTimePanel:r,closeTimePanel:o,timeVisible:i}=f5(e),a=(l,c)=>{var u;c==="date"&&r();let d=Il(l,Tl(e.value,e.defaultValue));if(e.disabledTime(new Date(d))&&(d=Il(l,e.defaultValue),e.disabledTime(new Date(d)))){n.value=d;return}(u=e["onUpdate:value"])==null||u.call(e,d,c)};return()=>{const l=ut(),c=_t(Fe({},Vn(e,Pl)),{multiple:!1,type:"date",value:n.value,"onUpdate:value":a}),u=_t(Fe({},Vn(e,Al)),{showTimeHeader:!0,value:n.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:o});return s.createVNode("div",{class:`${l}-date-time`},[s.createVNode(Bl,c,null),i.value&&s.createVNode(Ms,u,null)])}}const p5=dr()(["showTimePanel","onShowTimePanelChange"]),SI=[...p5,...Pl,...Al];var h5=$n(kI,SI);function EI(t){const e=Fn(t,{defaultValue:fr(new Date),disabledTime:()=>!1}),n=s.ref(e.value);s.watchEffect(()=>{n.value=e.value});const{openTimePanel:r,closeTimePanel:o,timeVisible:i}=f5(e),a=(l,c)=>{var u;c==="date"&&r();const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let f=l.map((p,h)=>{const m=ro(e.value)?e.value[h]:d[h];return Il(p,m)});if(f[1].getTime()<f[0].getTime()&&(f=[f[0],f[0]]),f.some(e.disabledTime)&&(f=l.map((p,h)=>Il(p,d[h])),f.some(e.disabledTime))){n.value=f;return}(u=e["onUpdate:value"])==null||u.call(e,f,c)};return()=>{const l=ut(),c=_t(Fe({},Vn(e,du)),{type:"date",value:n.value,"onUpdate:value":a}),u=_t(Fe({},Vn(e,mu)),{showTimeHeader:!0,value:n.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:o});return s.createVNode("div",{class:`${l}-date-time-range`},[s.createVNode(fu,c,null),i.value&&s.createVNode(gu,u,null)])}}const OI=[...p5,...mu,...du];var m5=$n(EI,OI);const TI=dr()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),g5={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function y5(t,{slots:e}){const n=t.type||"date",r=t.format||g5[n]||g5.date,o=_t(Fe({},_M(t,TI)),{type:n,format:r});return s.createVNode(l5,Vn(o,l5.props),Fe({content:i=>{if(o.range){const a=n==="time"?gu:n==="datetime"?m5:fu;return s.h(a,Vn(Fe(Fe({},o),i),a.props))}else{const a=n==="time"?Ms:n==="datetime"?h5:Bl;return s.h(a,Vn(Fe(Fe({},o),i),a.props))}},"icon-calendar":()=>n==="time"?s.createVNode(XM,null,null):s.createVNode(s5,null,null)},e))}var qo=Object.assign(y5,{locale:Xg,install:t=>{t.component("DatePicker",y5)}},{Calendar:Bl,CalendarRange:fu,TimePanel:Ms,TimeRange:gu,DateTime:h5,DateTimeRange:m5}),MI={months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthsShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],weekdays:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],weekdaysShort:["dom","lun","mar","mié","jue","vie","sáb"],weekdaysMin:["do","lu","ma","mi","ju","vi","sá"],firstDayOfWeek:1,firstWeekContainsDate:1};const II={formatLocale:MI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("es",II);var xI={months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","März","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"],weekdays:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],weekdaysShort:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],weekdaysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],firstDayOfWeek:1,firstWeekContainsDate:4};const PI={formatLocale:xI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("de",PI);var BI={months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],weekdays:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],weekdaysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],weekdaysMin:["di","lu","ma","me","je","ve","sa"],firstDayOfWeek:1,firstWeekContainsDate:1};const AI={formatLocale:BI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("fr",AI);var DI={months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],weekdays:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],weekdaysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekdaysMin:["Do","2ª","3ª","4ª","5ª","6ª","Sá"],firstDayOfWeek:1,firstWeekContainsDate:4};const NI={formatLocale:DI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("pt",NI);var LI={months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],weekdays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],weekdaysShort:["周日","周一","周二","周三","周四","周五","周六"],weekdaysMin:["日","一","二","三","四","五","六"],firstDayOfWeek:1,firstWeekContainsDate:4,meridiemParse:/上午|下午/,meridiem:function(e){return e<12?"上午":"下午"},isPM:function(e){return e==="下午"}};const RI={formatLocale:LI,yearFormat:"YYYY年",monthFormat:"MMM",monthBeforeYear:!1};qo.locale("zh-cn",RI);const VI=s.defineComponent({name:"QDatePicker",components:{DatePicker:qo},props:{id:{type:String,default:""},modelValue:{type:[Date,String],deafult:""},disabled:{type:Boolean,default:!1},disabledDate:{type:Function,default:()=>{}},disabledBeforeToday:{type:Boolean,default:!1},disabledAfterToday:{type:Boolean,default:!1},format:{type:String,default:""},locale:{type:String,default:"en"},placeholder:{type:String,default:""},range:{type:Boolean,default:!1},size:{type:String,default:"lg"},type:{type:String,default:"date"}},emits:["update:modelValue"],setup(t){const e=s.ref("bottom"),n=s.ref(),r=s.ref(!1),o=s.ref(t.modelValue||""),i=s.computed(()=>t.disabledAfterToday?a:t.disabledBeforeToday?l:t.disabledDate),a=u=>u>new Date,l=u=>{const d=new Date;return d.setHours(0,0,0,0),u<d},c=()=>{const u=document.querySelector(".mx-datepicker-main");u&&(e.value=parseInt(u.style.top)<0?"top":"bottom")};return s.watch(r,async u=>{u?window.addEventListener("scroll",c):window.removeEventListener("scroll",c),await s.nextTick(),c()}),{calendarPosition:e,datePicker:n,isOpen:r,value:o,disabledDates:i,disableDatesAfterToday:a,disableDatesBeforeToday:l,getCalendarPosition:c}}}),$I={class:"q-date-picker"};function FI(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("date-picker",!0);return s.openBlock(),s.createElementBlock("div",$I,[s.createVNode(l,{id:t.id,value:t.value,"onUpdate:value":e[0]||(e[0]=c=>t.value=c),"append-to-body":!1,class:s.normalizeClass([`date-picker-${t.size}`,`date-picker-on-${t.calendarPosition}`,{open:t.isOpen}]),disabled:t.disabled,"disabled-date":t.disabledDates,format:t.format,lang:t.locale,placeholder:t.placeholder,range:t.range,type:t.type,ref:"datePicker",onChange:e[1]||(e[1]=c=>t.$emit("update:modelValue",c)),onClose:e[2]||(e[2]=c=>t.isOpen=!1),onOpen:e[3]||(e[3]=c=>t.isOpen=!0)},{"icon-clear":s.withCtx(()=>[s.createVNode(a,{icon:"close",type:"",color:"inkwell-0",size:"sm"})]),"icon-calendar":s.withCtx(()=>[s.createVNode(a,{icon:"calendar",color:"inkwell-0"})]),_:1},8,["id","value","class","disabled","disabled-date","format","lang","placeholder","range","type"])])}const HI=oe(VI,[["render",FI],["__scopeId","data-v-65350518"]]),zI=s.defineComponent({name:"QDivider",props:{borderStyle:{type:String,default:"solid"},borderColor:{type:String,default:"gray-20"},textClass:{type:String,default:""}},emits:["update:modelValue"],setup(t,{slots:e}){return{hasSlotContent:s.computed(()=>!!e.default)}}}),_I={class:"divider relative flex items-center w-full"};function jI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",_I,[s.createElementVNode("div",{class:s.normalizeClass(["flex-grow border-t",["border-"+t.borderStyle,"border-"+t.borderColor]])},null,2),t.hasSlotContent?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["flex-shrink flex items-center px-4 text-center",t.textClass])},[s.renderSlot(t.$slots,"default")],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["flex-grow border-t",["border-"+t.borderStyle,"border-"+t.borderColor]])},null,2)])}const ZI=oe(zI,[["render",jI]]);var UI={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-no-gutter":I.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":I.isEmpty(n.value)&&!r.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},WI=xe.extend({name:"badge",classes:UI}),KI={name:"BaseBadge",extends:J,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:WI,provide:function(){return{$parentInstance:this}}},yu={name:"Badge",extends:KI,inheritAttrs:!1};function GI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("span",s.mergeProps({class:t.cx("root")},t.ptmi("root")),[s.renderSlot(t.$slots,"default",{},function(){return[s.createTextVNode(s.toDisplayString(t.value),1)]})],16)}yu.render=GI;var Is={name:"SpinnerIcon",extends:fe},qI=s.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1),YI=[qI];function JI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),YI,16)}Is.render=JI;function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function pr(t,e,n){return e=QI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QI(t){var e=XI(t,"string");return xs(e)=="symbol"?e:String(e)}function XI(t,e){if(xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ex={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",pr(pr(pr(pr(pr(pr(pr(pr({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":n.$attrs.disabled||n.$attrs.disabled===""||r.loading,"p-button-loading":r.loading,"p-button-loading-label-only":r.loading&&!n.hasIcon&&r.label,"p-button-link":r.link},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text),"p-button-outlined",r.outlined),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var n=e.props;return["p-button-icon",{"p-button-icon-left":n.iconPos==="left"&&n.label,"p-button-icon-right":n.iconPos==="right"&&n.label,"p-button-icon-top":n.iconPos==="top"&&n.label,"p-button-icon-bottom":n.iconPos==="bottom"&&n.label}]},label:"p-button-label"},tx=xe.extend({name:"button",classes:ex}),nx={name:"BaseButton",extends:J,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:tx,provide:function(){return{$parentInstance:this}}},Ps={name:"Button",extends:nx,inheritAttrs:!1,methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:Is,Badge:yu},directives:{ripple:wt}},rx=["aria-label","disabled","data-p-severity"];function ox(t,e,n,r,o,i){var a=s.resolveComponent("SpinnerIcon"),l=s.resolveComponent("Badge"),c=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({class:t.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-p-severity":t.severity}),[s.renderSlot(t.$slots,"default",{},function(){return[t.loading?s.renderSlot(t.$slots,"loadingicon",{key:0,class:s.normalizeClass([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):s.renderSlot(t.$slots,"icon",{key:1,class:s.normalizeClass([t.cx("icon")])},function(){return[t.icon?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):s.createCommentVNode("",!0)]}),s.createElementVNode("span",s.mergeProps({class:t.cx("label")},t.ptm("label")),s.toDisplayString(t.label||" "),17),t.badge?(s.openBlock(),s.createBlock(l,s.mergeProps({key:2,value:t.badge,class:t.badgeClass,severity:t.badgeSeverity,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","severity","unstyled"])):s.createCommentVNode("",!0)]})],16,rx)),[[c]])}Ps.render=ox;var bu={name:"PlusIcon",extends:fe},ix=s.createElementVNode("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1),sx=[ix];function ax(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),sx,16)}bu.render=ax;var b5={name:"UploadIcon",extends:fe},lx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z",fill:"currentColor"},null,-1),cx=[lx];function ux(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),cx,16)}b5.render=ux;var hr={name:"CheckIcon",extends:fe},dx=s.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),fx=[dx];function px(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),fx,16)}hr.render=px;var wu={name:"ExclamationTriangleIcon",extends:fe},hx=s.createElementVNode("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"},null,-1),mx=s.createElementVNode("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"},null,-1),gx=s.createElementVNode("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"},null,-1),yx=[hx,mx,gx];function bx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),yx,16)}wu.render=bx;var vu={name:"InfoCircleIcon",extends:fe},wx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"},null,-1),vx=[wx];function Cx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),vx,16)}vu.render=Cx;var Cu={name:"TimesCircleIcon",extends:fe},kx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"},null,-1),Sx=[kx];function Ex(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Sx,16)}Cu.render=Ex;var Ox={root:function(e){var n=e.props;return"p-message p-component p-message-"+n.severity},wrapper:"p-message-wrapper",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close p-link",closeIcon:"p-message-close-icon"},Tx=xe.extend({name:"message",classes:Ox}),Mx={name:"BaseMessage",extends:J,props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null}},style:Tx,provide:function(){return{$parentInstance:this}}},w5={name:"Message",extends:Mx,inheritAttrs:!1,emits:["close","life-end"],timeout:null,data:function(){return{visible:!0}},watch:{sticky:function(e){e||this.closeAfterDelay()}},mounted:function(){this.sticky||this.closeAfterDelay()},methods:{close:function(e){this.visible=!1,this.$emit("close",e)},closeAfterDelay:function(){var e=this;setTimeout(function(){e.visible=!1,e.$emit("life-end")},this.life)}},computed:{iconComponent:function(){return{info:vu,success:hr,warn:wu,error:Cu}[this.severity]},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:wt},components:{TimesIcon:to,InfoCircleIcon:vu,CheckIcon:hr,ExclamationTriangleIcon:wu,TimesCircleIcon:Cu}};function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function v5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v5(Object(n),!0).forEach(function(r){Ix(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ix(t,e,n){return e=xx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xx(t){var e=Px(t,"string");return Bs(e)=="symbol"?e:String(e)}function Px(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bx=["aria-label"];function Ax(t,e,n,r,o,i){var a=s.resolveComponent("TimesIcon"),l=s.resolveDirective("ripple");return s.openBlock(),s.createBlock(s.Transition,s.mergeProps({name:"p-message",appear:""},t.ptmi("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("root"),role:"alert","aria-live":"assertive","aria-atomic":"true"},t.ptm("root")),[t.$slots.container?s.renderSlot(t.$slots,"container",{key:0,onClose:i.close,closeCallback:i.close}):(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("wrapper")},t.ptm("wrapper")),[s.renderSlot(t.$slots,"messageicon",{class:"p-message-icon"},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.icon?"span":i.iconComponent),s.mergeProps({class:[t.cx("icon"),t.icon]},t.ptm("icon")),null,16,["class"]))]}),s.createElementVNode("div",s.mergeProps({class:["p-message-text",t.cx("text")]},t.ptm("text")),[s.renderSlot(t.$slots,"default")],16),t.closable?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("closeButton"),"aria-label":i.closeAriaLabel,type:"button",onClick:e[0]||(e[0]=function(c){return i.close(c)})},oo(oo(oo({},t.closeButtonProps),t.ptm("button")),t.ptm("closeButton"))),[s.renderSlot(t.$slots,"closeicon",{},function(){return[t.closeIcon?(s.openBlock(),s.createElementBlock("i",s.mergeProps({key:0,class:[t.cx("closeIcon"),t.closeIcon]},oo(oo({},t.ptm("buttonIcon")),t.ptm("closeIcon"))),null,16)):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,class:[t.cx("closeIcon"),t.closeIcon]},oo(oo({},t.ptm("buttonIcon")),t.ptm("closeIcon"))),null,16,["class"]))]})],16,Bx)),[[l]]):s.createCommentVNode("",!0)],16))],16),[[s.vShow,o.visible]])]}),_:3},16)}w5.render=Ax;var Dx={root:function(e){var n=e.instance;return["p-progressbar p-component",{"p-progressbar-determinate":n.determinate,"p-progressbar-indeterminate":n.indeterminate}]},container:"p-progressbar-indeterminate-container",value:"p-progressbar-value p-progressbar-value-animate",label:"p-progressbar-label"},Nx=xe.extend({name:"progressbar",classes:Dx}),Lx={name:"BaseProgressBar",extends:J,props:{value:{type:Number,default:null},mode:{type:String,default:"determinate"},showValue:{type:Boolean,default:!0}},style:Nx,provide:function(){return{$parentInstance:this}}},C5={name:"ProgressBar",extends:Lx,inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+"%",display:"flex"}},indeterminate:function(){return this.mode==="indeterminate"},determinate:function(){return this.mode==="determinate"}}},Rx=["aria-valuenow"];function Vx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",s.mergeProps({role:"progressbar",class:t.cx("root"),"aria-valuemin":"0","aria-valuenow":t.value,"aria-valuemax":"100"},t.ptmi("root")),[i.determinate?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("value"),style:i.progressStyle},t.ptm("value")),[t.value!=null&&t.value!==0&&t.showValue?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("label")},t.ptm("label")),[s.renderSlot(t.$slots,"default",{},function(){return[s.createTextVNode(s.toDisplayString(t.value+"%"),1)]})],16)):s.createCommentVNode("",!0)],16)):s.createCommentVNode("",!0),i.indeterminate?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("container")},t.ptm("container")),[s.createElementVNode("div",s.mergeProps({class:t.cx("value")},t.ptm("value")),null,16)],16)):s.createCommentVNode("",!0)],16,Rx)}C5.render=Vx;var $x={root:function(e){var n=e.props;return["p-fileupload p-fileupload-".concat(n.mode," p-component")]},buttonbar:"p-fileupload-buttonbar",chooseButton:function(e){var n=e.instance,r=e.props;return["p-button p-component p-fileupload-choose",{"p-fileupload-choose-selected":r.mode==="basic"&&n.hasFiles,"p-disabled":r.disabled,"p-focus":n.focused}]},chooseIcon:"p-button-icon p-button-icon-left",chooseButtonLabel:"p-button-label",content:"p-fileupload-content",empty:"p-fileupload-empty",uploadIcon:"p-button-icon p-button-icon-left",label:"p-button-label",file:"p-fileupload-file",thumbnail:"p-fileupload-file-thumbnail",details:"p-fileupload-file-details",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",badge:"p-fileupload-file-badge",actions:"p-fileupload-file-actions",removeButton:"p-fileupload-file-remove"},Fx=xe.extend({name:"fileupload",classes:$x}),Hx={name:"BaseFileUpload",extends:J,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:"advanced"},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:"{0}: Invalid file size, file size should be smaller than {1}."},invalidFileTypeMessage:{type:String,default:"{0}: Invalid file type, allowed file types: {1}."},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:"Maximum number of files exceeded, limit is {0} at most."},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null},style:Fx,provide:function(){return{$parentInstance:this}}},k5={name:"FileContent",hostName:"FileUpload",extends:J,emits:["remove"],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:"warning"},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var n,r=1024,o=3,i=((n=this.$primevue.config.locale)===null||n===void 0?void 0:n.fileSizeTypes)||["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e===0)return"0 ".concat(i[0]);var a=Math.floor(Math.log(e)/Math.log(r)),l=parseFloat((e/Math.pow(r,a)).toFixed(o));return"".concat(l," ").concat(i[a])}},components:{FileUploadButton:Ps,FileUploadBadge:yu,TimesIcon:to}},zx=["alt","src","width"];function _x(t,e,n,r,o,i){var a=s.resolveComponent("FileUploadBadge"),l=s.resolveComponent("TimesIcon"),c=s.resolveComponent("FileUploadButton");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.files,function(u,d){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:u.name+u.type+u.size,class:t.cx("file")},t.ptm("file")),[s.createElementVNode("img",s.mergeProps({role:"presentation",class:t.cx("thumbnail"),alt:u.name,src:u.objectURL,width:n.previewWidth},t.ptm("thumbnail")),null,16,zx),s.createElementVNode("div",s.mergeProps({class:t.cx("details")},t.ptm("details")),[s.createElementVNode("div",s.mergeProps({class:t.cx("fileName")},t.ptm("fileName")),s.toDisplayString(u.name),17),s.createElementVNode("span",s.mergeProps({class:t.cx("fileSize")},t.ptm("fileSize")),s.toDisplayString(i.formatSize(u.size)),17),s.createVNode(a,{value:n.badgeValue,class:s.normalizeClass(t.cx("badge")),severity:n.badgeSeverity,unstyled:t.unstyled,pt:t.ptm("badge")},null,8,["value","class","severity","unstyled","pt"])],16),s.createElementVNode("div",s.mergeProps({class:t.cx("actions")},t.ptm("actions")),[s.createVNode(c,{onClick:function(p){return t.$emit("remove",d)},text:"",rounded:"",severity:"danger",class:s.normalizeClass(t.cx("removeButton")),unstyled:t.unstyled,pt:t.ptm("removeButton")},{icon:s.withCtx(function(f){return[n.templates.fileremoveicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.fileremoveicon),{key:0,class:s.normalizeClass(f.class),file:u,index:d},null,8,["class","file","index"])):(s.openBlock(),s.createBlock(l,s.mergeProps({key:1,class:f.class,"aria-hidden":"true"},t.ptm("removeButton").icon),null,16,["class"]))]}),_:2},1032,["onClick","class","unstyled","pt"])],16)],16)}),128)}k5.render=_x;function ku(t){return Ux(t)||Zx(t)||S5(t)||jx()}function jx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
119
|
+
`)}}this.thumbnailsStyle.innerHTML=n},calculatePosition:function(){if(this.$refs.itemsContainer&&this.sortedResponsiveOptions){for(var e=window.innerWidth,n={numVisible:this.numVisible},r=0;r<this.sortedResponsiveOptions.length;r++){var o=this.sortedResponsiveOptions[r];parseInt(o.breakpoint,10)>=e&&(n=o)}this.d_numVisible!==n.numVisible&&(this.d_numVisible=n.numVisible)}},bindDocumentListeners:function(){var e=this;this.documentResizeListener||(this.documentResizeListener=function(){e.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))},unbindDocumentListeners:function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},isNavBackwardDisabled:function(){return!this.circular&&this.d_activeIndex===0||this.value.length<=this.d_numVisible},isNavForwardDisabled:function(){return!this.circular&&this.d_activeIndex===this.value.length-1||this.value.length<=this.d_numVisible},firstItemAciveIndex:function(){return this.totalShiftedItems*-1},lastItemActiveIndex:function(){return this.firstItemAciveIndex()+this.d_numVisible-1},isItemActive:function(e){return this.firstItemAciveIndex()<=e&&this.lastItemActiveIndex()>=e},ariaPageLabel:function(e){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.pageLabel.replace(/{page}/g,e):void 0}},computed:{ariaPrevButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.prevPageLabel:void 0},ariaNextButtonLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.nextPageLabel:void 0}},components:{ChevronLeftIcon:Gc,ChevronRightIcon:ys,ChevronUpIcon:kg,ChevronDownIcon:bs},directives:{ripple:wt}};function vs(t){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vs(t)}function Og(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Cl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Og(Object(n),!0).forEach(function(r){UO(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UO(t,e,n){return e=WO(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function WO(t){var e=KO(t,"string");return vs(e)=="symbol"?e:String(e)}function KO(t,e){if(vs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var GO=["disabled","aria-label"],qO=["data-p-active","aria-selected","aria-controls","onKeydown","data-p-galleria-thumbnail-item-current","data-p-galleria-thumbnail-item-active","data-p-galleria-thumbnail-item-start","data-p-galleria-thumbnail-item-end"],YO=["tabindex","aria-label","aria-current","onClick"],JO=["disabled","aria-label"];function QO(t,e,n,r,o,i){var a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("thumbnailWrapper")},t.ptm("thumbnailWrapper")),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailContainer")},t.ptm("thumbnailContainer")),[n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("previousThumbnailButton"),disabled:i.isNavBackwardDisabled(),type:"button","aria-label":i.ariaPrevButtonLabel,onClick:e[0]||(e[0]=function(l){return i.navBackward(l)})},Cl(Cl({},n.prevButtonProps),t.ptm("previousThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.previousthumbnailicon||(n.isVertical?"ChevronUpIcon":"ChevronLeftIcon")),s.mergeProps({class:t.cx("previousThumbnailIcon")},t.ptm("previousThumbnailIcon")),null,16,["class"]))],16,GO)),[[a]]):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemsContainer"),style:{height:n.isVertical?n.contentHeight:""}},t.ptm("thumbnailItemsContainer")),[s.createElementVNode("div",s.mergeProps({ref:"itemsContainer",class:t.cx("thumbnailItems"),role:"tablist",onTransitionend:e[1]||(e[1]=function(l){return i.onTransitionEnd(l)}),onTouchstart:e[2]||(e[2]=function(l){return i.onTouchStart(l)}),onTouchmove:e[3]||(e[3]=function(l){return i.onTouchMove(l)}),onTouchend:e[4]||(e[4]=function(l){return i.onTouchEnd(l)})},t.ptm("thumbnailItems")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.value,function(l,c){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:"p-galleria-thumbnail-item-".concat(c),class:t.cx("thumbnailItem",{index:c,activeIndex:n.activeIndex}),role:"tab","data-p-active":n.activeIndex===c,"aria-selected":n.activeIndex===c,"aria-controls":n.containerId+"_item_"+c,onKeydown:function(d){return i.onThumbnailKeydown(d,c)}},t.ptm("thumbnailItem"),{"data-p-galleria-thumbnail-item-current":n.activeIndex===c,"data-p-galleria-thumbnail-item-active":i.isItemActive(c),"data-p-galleria-thumbnail-item-start":i.firstItemAciveIndex()===c,"data-p-galleria-thumbnail-item-end":i.lastItemActiveIndex()===c}),[s.createElementVNode("div",s.mergeProps({class:t.cx("thumbnailItemContent"),tabindex:n.activeIndex===c?"0":"-1","aria-label":i.ariaPageLabel(c+1),"aria-current":n.activeIndex===c?"page":void 0,onClick:function(d){return i.onItemClick(c)}},t.ptm("thumbnailItemContent")),[n.templates.thumbnail?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.thumbnail),{key:0,item:l},null,8,["item"])):s.createCommentVNode("",!0)],16,YO)],16,qO)}),128))],16)],16),n.showThumbnailNavigators?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:1,class:t.cx("nextThumbnailButton"),disabled:i.isNavForwardDisabled(),type:"button","aria-label":i.ariaNextButtonLabel,onClick:e[5]||(e[5]=function(l){return i.navForward(l)})},Cl(Cl({},n.nextButtonProps),t.ptm("nextThumbnailButton")),{"data-pc-group-section":"thumbnailnavigator"}),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.nextthumbnailicon||(n.isVertical?"ChevronDownIcon":"ChevronRightIcon")),s.mergeProps({class:t.cx("nextThumbnailIcon")},t.ptm("nextThumbnailIcon")),null,16,["class"]))],16,JO)),[[a]]):s.createCommentVNode("",!0)],16)],16)}Eg.render=QO;function Cs(t){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(t)}function Tg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Mg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Tg(Object(n),!0).forEach(function(r){XO(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function XO(t,e,n){return e=eT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eT(t){var e=tT(t,"string");return Cs(e)=="symbol"?e:String(e)}function tT(t,e){if(Cs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ig={name:"GalleriaContent",hostName:"Galleria",extends:J,inheritAttrs:!1,interval:null,emits:["activeitem-change","mask-hide"],data:function(){return{id:this.$attrs.id||Qt(),activeIndex:this.$attrs.activeIndex,numVisible:this.$attrs.numVisible,slideShowActive:!1}},watch:{"$attrs.id":function(e){this.id=e||Qt()},"$attrs.value":function(e){e&&e.length<this.numVisible&&(this.numVisible=e.length)},"$attrs.activeIndex":function(e){this.activeIndex=e},"$attrs.numVisible":function(e){this.numVisible=e},"$attrs.autoPlay":function(e){e?this.startSlideShow():this.stopSlideShow()}},mounted:function(){this.id=this.id||Qt()},updated:function(){this.$emit("activeitem-change",this.activeIndex)},beforeUnmount:function(){this.slideShowActive&&this.stopSlideShow()},methods:{getPTOptions:function(e){return this.ptm(e,{props:Mg(Mg({},this.$attrs),{},{pt:this.pt,unstyled:this.unstyled})})},isAutoPlayActive:function(){return this.slideShowActive},startSlideShow:function(){var e=this;this.interval=setInterval(function(){var n=e.$attrs.circular&&e.$attrs.value.length-1===e.activeIndex?0:e.activeIndex+1;e.activeIndex=n},this.$attrs.transitionInterval),this.slideShowActive=!0},stopSlideShow:function(){this.interval&&clearInterval(this.interval),this.slideShowActive=!1},getPositionClass:function(e,n){var r=["top","left","bottom","right"],o=r.find(function(i){return i===n});return o?"".concat(e,"-").concat(o):""},isVertical:function(){return this.$attrs.thumbnailsPosition==="left"||this.$attrs.thumbnailsPosition==="right"}},computed:{closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},components:{GalleriaItem:Sg,GalleriaThumbnails:Eg,TimesIcon:to},directives:{ripple:wt}};function ks(t){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ks(t)}function xg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Pg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xg(Object(n),!0).forEach(function(r){nT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nT(t,e,n){return e=rT(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rT(t){var e=oT(t,"string");return ks(e)=="symbol"?e:String(e)}function oT(t,e){if(ks(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var iT=["id","aria-label","aria-roledescription"],sT=["aria-label"],aT=["aria-live"];function lT(t,e,n,r,o,i){var a=s.resolveComponent("GalleriaItem"),l=s.resolveComponent("GalleriaThumbnails"),c=s.resolveDirective("ripple");return t.$attrs.value&&t.$attrs.value.length>0?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,id:o.id,role:"region",class:[t.cx("root"),t.$attrs.containerClass],style:t.$attrs.containerStyle,"aria-label":t.$attrs.ariaLabel,"aria-roledescription":t.$attrs.ariaRoledescription},Pg(Pg({},t.$attrs.containerProps),i.getPTOptions("root"))),[t.$attrs.fullScreen?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,autofocus:"",type:"button",class:t.cx("closeButton"),"aria-label":i.closeAriaLabel,onClick:e[0]||(e[0]=function(u){return t.$emit("mask-hide")})},i.getPTOptions("closeButton")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.closeicon||"TimesIcon"),s.mergeProps({class:t.cx("closeIcon")},i.getPTOptions("closeIcon")),null,16,["class"]))],16,sT)),[[c]]):s.createCommentVNode("",!0),t.$attrs.templates&&t.$attrs.templates.header?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("header")},i.getPTOptions("header")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.header)))],16)):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("content"),"aria-live":t.$attrs.autoPlay?"polite":"off"},i.getPTOptions("content")),[s.createVNode(a,{id:o.id,activeIndex:o.activeIndex,"onUpdate:activeIndex":e[1]||(e[1]=function(u){return o.activeIndex=u}),slideShowActive:o.slideShowActive,"onUpdate:slideShowActive":e[2]||(e[2]=function(u){return o.slideShowActive=u}),value:t.$attrs.value,circular:t.$attrs.circular,templates:t.$attrs.templates,showIndicators:t.$attrs.showIndicators,changeItemOnIndicatorHover:t.$attrs.changeItemOnIndicatorHover,showItemNavigators:t.$attrs.showItemNavigators,autoPlay:t.$attrs.autoPlay,onStartSlideshow:i.startSlideShow,onStopSlideshow:i.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["id","activeIndex","slideShowActive","value","circular","templates","showIndicators","changeItemOnIndicatorHover","showItemNavigators","autoPlay","onStartSlideshow","onStopSlideshow","pt","unstyled"]),t.$attrs.showThumbnails?(s.openBlock(),s.createBlock(l,{key:0,activeIndex:o.activeIndex,"onUpdate:activeIndex":e[3]||(e[3]=function(u){return o.activeIndex=u}),slideShowActive:o.slideShowActive,"onUpdate:slideShowActive":e[4]||(e[4]=function(u){return o.slideShowActive=u}),containerId:o.id,value:t.$attrs.value,templates:t.$attrs.templates,numVisible:o.numVisible,responsiveOptions:t.$attrs.responsiveOptions,circular:t.$attrs.circular,isVertical:i.isVertical(),contentHeight:t.$attrs.verticalThumbnailViewPortHeight,showThumbnailNavigators:t.$attrs.showThumbnailNavigators,prevButtonProps:t.$attrs.prevButtonProps,nextButtonProps:t.$attrs.nextButtonProps,onStopSlideshow:i.stopSlideShow,pt:t.pt,unstyled:t.unstyled},null,8,["activeIndex","slideShowActive","containerId","value","templates","numVisible","responsiveOptions","circular","isVertical","contentHeight","showThumbnailNavigators","prevButtonProps","nextButtonProps","onStopSlideshow","pt","unstyled"])):s.createCommentVNode("",!0)],16,aT),t.$attrs.templates&&t.$attrs.templates.footer?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:2,class:t.cx("footer")},i.getPTOptions("footer")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$attrs.templates.footer)))],16)):s.createCommentVNode("",!0)],16,iT)):s.createCommentVNode("",!0)}Ig.render=lT;var Bg={name:"Galleria",extends:PO,inheritAttrs:!1,emits:["update:activeIndex","update:visible"],container:null,mask:null,data:function(){return{containerVisible:this.visible}},updated:function(){this.fullScreen&&this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.fullScreen&&E.unblockBodyScroll(),this.mask=null,this.container&&(An.clear(this.container),this.container=null)},methods:{onBeforeEnter:function(e){An.set("modal",e,this.baseZIndex||this.$primevue.config.zIndex.modal)},onEnter:function(e){this.mask.style.zIndex=String(parseInt(e.style.zIndex,10)-1),E.blockBodyScroll(),this.focus()},onBeforeLeave:function(){!this.isUnstyled&&E.addClass(this.mask,"p-component-overlay-leave")},onAfterLeave:function(e){An.clear(e),this.containerVisible=!1,E.unblockBodyScroll()},onActiveItemChange:function(e){this.activeIndex!==e&&this.$emit("update:activeIndex",e)},maskHide:function(){this.$emit("update:visible",!1)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},focus:function(){var e=this.container.$el.querySelector("[autofocus]");e&&e.focus()}},components:{GalleriaContent:Ig,Portal:vl},directives:{focustrap:wg}},cT=["aria-modal"];function uT(t,e,n,r,o,i){var a=s.resolveComponent("GalleriaContent"),l=s.resolveComponent("Portal"),c=s.resolveDirective("focustrap");return t.fullScreen?(s.openBlock(),s.createBlock(l,{key:0},{default:s.withCtx(function(){return[o.containerVisible?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,ref:i.maskRef,class:[t.cx("mask"),t.maskClass],role:"dialog","aria-modal":t.fullScreen?"true":void 0},t.ptm("mask")),[s.createVNode(s.Transition,s.mergeProps({name:"p-galleria",onBeforeEnter:i.onBeforeEnter,onEnter:i.onEnter,onBeforeLeave:i.onBeforeLeave,onAfterLeave:i.onAfterLeave,appear:""},t.ptm("transition")),{default:s.withCtx(function(){return[t.visible?s.withDirectives((s.openBlock(),s.createBlock(a,s.mergeProps({key:0,ref:i.containerRef,onMaskHide:i.maskHide,templates:t.$slots,onActiveitemChange:i.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["onMaskHide","templates","onActiveitemChange","pt","unstyled"])),[[c]]):s.createCommentVNode("",!0)]}),_:1},16,["onBeforeEnter","onEnter","onBeforeLeave","onAfterLeave"])],16,cT)):s.createCommentVNode("",!0)]}),_:1})):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,templates:t.$slots,onActiveitemChange:i.onActiveItemChange,pt:t.pt,unstyled:t.unstyled},t.$props),null,16,["templates","onActiveitemChange","pt","unstyled"]))}Bg.render=uT;const dT=s.defineComponent({name:"ImageGallery",components:{Galleria:Bg,QBadge:Hr},props:{files:{type:Array,default:()=>[]},thumbnailsVisible:{type:Number,default:4},showOnHover:{type:Boolean,default:!0},showThumbnails:{type:Boolean,default:!0},showRemove:{type:Boolean,default:!1},baseZIndex:{type:Number,default:1e3}},emits:["update:model-value","update:activeIndex","click:file"],setup(t,{emit:e}){const n=s.ref(null),r=s.computed(()=>{var k;return(k=n.value)==null?void 0:k.offsetWidth}),o=s.ref(null),i=s.ref("0"),a=s.ref(1),l=s.ref(rn.md?1:.9),c=s.ref(0),u=s.ref(t.files),d=s.ref(!1),f=s.computed(()=>[`z-[${t.baseZIndex+1}]`]),p=s.computed(()=>t.files.filter(k=>k.type.startsWith("image"))),h=s.computed(()=>["rounded-lg relative mx-auto object-cover grow-1","md:w-full md:h-full md:min-h-[592px] md:min-w-[592px]",{animated:!b}]),m=(k,w)=>{const M=S=>"original"in S&&"original"in w?S.original.url===(w==null?void 0:w.original.url):w instanceof File?S.name===(w==null?void 0:w.name):!1,C=p.value.findIndex(M);c.value=C!==-1?C:k,d.value=!0},y=k=>{e("update:model-value",k)},g=k=>{const{keyCode:w}=k;if(d.value)switch(w){case 37:c.value=c.value?c.value-1:p.value.length-1,e("update:activeIndex",c.value);break;case 39:c.value=c.value<p.value.length-1?c.value+1:0,e("update:activeIndex",c.value);break;case 27:d.value=!1;break}},{isSwiping:b,lengthX:v}=E8(o,{passive:!1,onSwipe(){const k=Math.abs(v.value);r.value&&(a.value=1.1-k/r.value,i.value=v.value<0?`${k/4}px`:`-${k/4}px`)},onSwipeEnd(){const k=c.value<=0,w=c.value>=p.value.length-1,M=Math.abs(v.value);r.value&&M/r.value>=.5?(v.value<0?c.value=k?p.value.length-1:c.value-1:c.value=w?0:c.value+1,i.value="0",a.value=1):(i.value="0",a.value=1)}});return s.onMounted(()=>{window.addEventListener("keyup",g)}),{container:n,containerWidth:r,featuredPhoto:o,isSwiping:b,lengthX:v,left:i,opacity:a,scale:l,showCarousel:d,active:c,fileList:u,closeIconClasses:f,itemClasses:h,images:p,onOpenCarousel:m,onRemoveFile:y,onKeyboardNavigation:g,mq:rn}}}),fT={class:"flex",ref:"container"},pT={ref:"featuredPhoto",class:"featured-image h-[80vh] overflow-hidden flex max-w-screen relative md:h-full w-screen items-center"},hT=["src","alt"],mT=["src","alt"],gT={key:0,class:"flex flex-wrap"},yT=["onMouseover","onMouseleave"],bT=["src","alt","onClick"],wT=["onClick"],vT=["title"];function CT(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("Galleria"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",fT,[s.createVNode(l,{activeIndex:t.active,"onUpdate:activeIndex":e[0]||(e[0]=u=>t.active=u),visible:t.showCarousel,"onUpdate:visible":e[1]||(e[1]=u=>t.showCarousel=u),value:t.images,numVisible:t.thumbnailsVisible,circular:!0,fullScreen:!0,showItemNavigators:t.mq.md,showThumbnailNavigators:!0,showThumbnails:t.showThumbnails&&t.mq.md,showIndicators:!t.mq.md,containerStyle:[{height:"100vh"}],"base-z-index":t.baseZIndex},{closeicon:s.withCtx(()=>[s.createVNode(a,{class:s.normalizeClass(t.closeIconClasses),icon:"times-circle",type:"outline",size:"lg",color:"white"},null,8,["class"])]),item:s.withCtx(({item:u})=>[s.createElementVNode("div",pT,[s.createElementVNode("img",{src:(u==null?void 0:u.itemImageSrc)||(u==null?void 0:u.objectURL)||(u==null?void 0:u.original.url),alt:u==null?void 0:u.alt,class:s.normalizeClass(t.itemClasses),style:s.normalizeStyle([{left:t.left,opacity:t.opacity},`transform: scale(${t.scale})`])},null,14,hT)],512)]),thumbnail:s.withCtx(({item:u})=>[s.createElementVNode("img",{src:u.thumbnailImageSrc||(u==null?void 0:u.objectURL)||(u==null?void 0:u.thumbnail.url),alt:u.alt,class:"rounded-lg block min-h-24 min-w-24 max-w-24 max-h-24 object-cover"},null,8,mT)]),previousitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-left",type:"outline",size:"md",color:"white"})]),nextitemicon:s.withCtx(()=>[s.createVNode(a,{icon:"chevron-circle-right",type:"outline",size:"md",color:"white"})]),previousthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-left",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),nextthumbnailicon:s.withCtx(()=>[t.images.length>t.thumbnailsVisible?(s.openBlock(),s.createBlock(a,{key:0,icon:"chevron-right",type:"line",size:"sm",color:"white"})):s.createCommentVNode("",!0)]),_:1},8,["activeIndex","visible","value","numVisible","showItemNavigators","showThumbnails","showIndicators","base-z-index"]),t.files?(s.openBlock(),s.createElementBlock("div",gT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.files,(u,d)=>{var f;return s.openBlock(),s.createElementBlock("div",{key:u.name||((f=u.original)==null?void 0:f.name)||d,class:"py-3 pr-4 relative",onMouseover:p=>u.isHovered=!0,onMouseleave:p=>u.isHovered=!1},[u.type&&u.type.includes("image")?(s.openBlock(),s.createElementBlock("img",{key:0,src:(u==null?void 0:u.thumbnailImageSrc)||(u==null?void 0:u.objectURL)||(u==null?void 0:u.thumbnail.url),alt:u==null?void 0:u.alt,class:"rounded-lg cursor-pointer w-20 h-20 object-cover",onClick:p=>t.onOpenCarousel(d,u)},null,8,bT)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"bg-gray-00 cursor-pointer p-3 w-20 h-20 max-w-20 rounded-lg border border-gray-20 flex flex-col flex-nowrap justify-center",onClick:p=>t.$emit("click:file",u)},[s.createVNode(a,{icon:"file-document",size:"md",color:"inkwell-30",class:"mx-auto"}),s.createElementVNode("p",{class:"text-inkwell-30 text-sm leading-normal text-ellipsis overflow-hidden max-h-5 text-center",title:u.name||u.original.name},s.toDisplayString(u.name||u.original.name),9,vT)],8,wT)),t.showRemove||t.showOnHover&&(u.isHovered||!t.mq.md)?(s.openBlock(),s.createBlock(c,{key:2,color:"inkwell-30",shape:"circle",class:"cursor-pointer absolute top-1 right-2 shadow-solid",onClick:p=>t.onRemoveFile(u)},{icon:s.withCtx(()=>[s.createVNode(a,{icon:"close",size:"sm",type:"line",color:"white"})]),_:2},1032,["onClick"])):s.createCommentVNode("",!0)],40,yT)}),128))])):s.createCommentVNode("",!0)],512)}const Qc=oe(dT,[["render",CT],["__scopeId","data-v-e35ab0c4"]]),kT=s.defineComponent({name:"QMenu",props:{modelValue:{type:Boolean,default:!1},actions:{type:Array},dismissibleOverlay:{type:Boolean,default:!0},links:{type:Array,required:!0},linksBackground:{type:String,default:"bg-white"},overlay:{type:String,default:"black-transparent"}},emits:["click:link","click:action"],setup(){return s.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),s.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{}}}),ST=t=>(s.pushScopeId("data-v-bd24b7a3"),t=t(),s.popScopeId(),t),ET=["value"],OT=ST(()=>s.createElementVNode("div",{class:"overlay"},null,-1)),TT={class:"q-menu-content px-4 pb-10"},MT=["onClick"],IT={class:"actions"},xT=["onClick"];function PT(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["q-menu",t.overlay]),value:t.modelValue},[OT,s.createElementVNode("div",TT,[s.renderSlot(t.$slots,"links",{},()=>[s.createElementVNode("ul",{class:s.normalizeClass(["links rounded-[0.8125rem] mb-2",t.linksBackground])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.links,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.createElementVNode("a",{class:s.normalizeClass(["px-4 py-[1.125rem] flex items-center justify-center cursor-pointer text-inkwell-00 text-md",a.classes]),onClick:c=>t.$emit("click:link",a)},s.toDisplayString(a.text),11,MT)]))),128))],2)],!0),s.renderSlot(t.$slots,"actions",{},()=>[s.createElementVNode("ul",IT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.actions,(a,l)=>(s.openBlock(),s.createElementBlock("li",{key:l},[s.createElementVNode("a",{class:"bg-white px-4 py-[1.125rem] rounded-[0.8125rem] flex items-center justify-center cursor-pointer text-blue-20 text-md font-semibold",onClick:c=>t.$emit("click:action",a)},s.toDisplayString(a.text),9,xT)]))),128))])],!0)])],10,ET)}const Ag=oe(kT,[["render",PT],["__scopeId","data-v-bd24b7a3"]]),BT=s.defineComponent({name:"QPopover",props:{align:{type:String,default:"left"},hasCaret:{type:Boolean,default:!0},modelValue:{type:Boolean,default:!1},position:{type:String,default:"bottom"},reposition:{type:Boolean,default:!0},size:{type:String,default:"md"},trigger:{type:String,default:"click"}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.ref(!1),r=s.ref(""),o=s.ref(null),i=s.computed(()=>n.value===!0&&t.reposition===!0?l(t.align):t.align),a=s.computed(()=>n.value===!0&&t.reposition===!0?c(t.position):t.position),l=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),v=o.value.children[1].getBoundingClientRect();if(g==="left"||g==="right"||g==="center"){const k=b.left;return window.innerWidth-k<v.width?"right":"left"}else{const k=b.top;return window.innerHeight-k<v.height?"bottom":"top"}},c=g=>{if(!o.value||u(o.value.children[1]))return g;const b=o.value.children[0].getBoundingClientRect(),v=o.value.children[1].getBoundingClientRect();if(g==="top"||g==="bottom"){const k=b.top;return window.innerHeight-k<v.height?"top":"bottom"}else{const k=b.left;return window.innerWidth-k<v.width?"left":"right"}},u=g=>{const b=g.getBoundingClientRect();return b?b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth):!1},d=()=>{(t.trigger==="click"||t.trigger==="both")&&e("update:modelValue",!t.modelValue)},f=()=>{t.trigger!=="click"&&e("update:modelValue",!1)},p=()=>{t.trigger!=="click"&&e("update:modelValue",!0)},h=()=>{var b;const g=(b=o.value)==null?void 0:b.children[0];if(g){const v=g.clientWidth,k=g.clientHeight;switch(i.value){case"left":r.value=`margin-left: ${v/2-10}px;`;break;case"right":r.value=`margin-right: ${v/2-10}px;`;break;case"top":r.value=`margin-top: ${k/2-10}px;`;break;case"bottom":r.value=`margin-bottom: ${k/2-10}px;`;break}}};k1(o,()=>{e("update:modelValue",!1)});function m(){n.value=!1}function y(){var g;n.value=!0,!u((g=o.value)==null?void 0:g.children[1])&&t.reposition===!0&&h()}return{entered:n,offsetStyle:r,popover:o,alignment:i,positioning:a,getAlignment:l,getPositioning:c,isElementInView:u,onAfterLeave:m,onClick:d,onClickOutside:k1,onEnter:y,onMouseLeave:f,onMouseOver:p}}});function AT(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{ref:"popover",class:"popover-container",onMouseleave:e[0]||(e[0]=(...a)=>t.onMouseLeave&&t.onMouseLeave(...a))},[s.renderSlot(t.$slots,"trigger",{onClick:t.onClick,onMouseOver:t.onMouseOver},void 0,!0),s.createVNode(s.Transition,{name:"fade",onEnter:t.onEnter,onAfterLeave:t.onAfterLeave},{default:s.withCtx(()=>[t.modelValue?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["popover","popover-"+t.alignment,"popover-"+t.size,"popover-on-"+t.positioning,{"has-caret":t.hasCaret}]),style:s.normalizeStyle(t.offsetStyle)},[s.renderSlot(t.$slots,"content",{},void 0,!0)],6)):s.createCommentVNode("",!0)]),_:3},8,["onEnter","onAfterLeave"])],544)}const Dg=oe(BT,[["render",AT],["__scopeId","data-v-86f2575d"]]),DT={id:{type:[Number,String],default:null},attachments:{type:Array,default:[]},attachmentClickEvent:{type:Function,default:()=>{}},attachmentRemoveEvent:{type:Function,default:()=>{}},deleteOption:{type:Object,default:null},editOption:{type:Object,default:null},user:{type:Object,default:null},comment:{type:String,default:""},dateUtc:{type:String,default:null},dateLocal:{type:String,default:""},showAvatar:{type:Boolean,default:!0}},NT=s.defineComponent({name:"QComment",components:{QAvatar:Ff,QImageGallery:Qc,QMenu:Ag,QPopover:Dg},props:DT,setup(t){const{t:e}=eo(),n=[{text:e("HC_CANCEL")}],r=s.ref(!1),o=s.ref(!1),i=s.computed(()=>{const f=[];return t.editOption&&f.push(t.editOption),t.deleteOption&&f.push(t.deleteOption),f}),a=s.computed(()=>t.user.firstName+" "+t.user.lastName.substring(0,1)),l=s.computed(()=>Ce.fromISO(t.dateUtc).toLocaleString(Ce.DATETIME_MED)),c=s.computed(()=>t.user.name.split(" ").map(f=>f.trim().charAt(0)).join("").toUpperCase());return{menuActions:n,showControls:r,showRemoveButton:o,allowedActions:i,displayName:a,formatDate:l,userInitials:c,onClick:()=>{r.value=!r.value},onClickLink:(f,p)=>{f.click(p),f.text===e("HC_EDIT_COMMENT")&&(o.value=!0),r.value=!r.value},mq:rn}}}),LT={key:0,class:"comment-container flex flex-col mb-5"},RT={class:"flex mb-1"},VT={class:"grow"},$T={class:"w-full block text-sm leading-4 font-bold"},FT={class:"text-inkwell-0 text-xs leading-4 block"},HT={class:"w-full"},zT=["onClick"],_T={key:2};function jT(t,e,n,r,o,i){const a=s.resolveComponent("q-avatar"),l=s.resolveComponent("q-icon"),c=s.resolveComponent("q-popover"),u=s.resolveComponent("q-menu"),d=s.resolveComponent("q-image-gallery");return t.comment||t.attachments.length>0?(s.openBlock(),s.createElementBlock("div",LT,[s.createElementVNode("div",RT,[t.showAvatar?(s.openBlock(),s.createBlock(a,{key:0,src:t.user.profileImg,text:t.userInitials,class:"mr-4"},null,8,["src","text"])):s.createCommentVNode("",!0),s.createElementVNode("div",VT,[s.createElementVNode("span",$T,s.toDisplayString(t.user.name),1),s.createElementVNode("span",FT,s.toDisplayString(t.dateLocal||t.formatDate),1)]),t.allowedActions.length&&t.mq.md?(s.openBlock(),s.createBlock(c,{key:1,modelValue:t.showControls,"onUpdate:modelValue":e[0]||(e[0]=f=>t.showControls=f),align:"right",position:"bottom",size:"sm"},{trigger:s.withCtx(({onClick:f})=>[s.createVNode(l,{icon:"ellipsis-h",type:"fill",class:s.normalizeClass(["shrink-0 cursor-pointer",t.showControls&&"!text-blue-20"]),color:"gray-40",onClick:f},null,8,["class","onClick"])]),content:s.withCtx(()=>[s.createElementVNode("ul",HT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.allowedActions,(f,p)=>(s.openBlock(),s.createElementBlock("li",{key:p,class:s.normalizeClass(f.classes),onClick:h=>t.onClickLink(f,t.id)},s.toDisplayString(f.text),11,zT))),128))])]),_:1},8,["modelValue"])):s.createCommentVNode("",!0),t.allowedActions.length&&!t.mq.md?(s.openBlock(),s.createElementBlock("div",_T,[s.createVNode(l,{icon:"ellipsis-h",type:"fill",class:"shrink-0 cursor-pointer",color:"gray-40",onClick:t.onClick},null,8,["onClick"]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[t.showControls?(s.openBlock(),s.createBlock(u,{key:0,modelValue:t.showControls,"onUpdate:modelValue":e[1]||(e[1]=f=>t.showControls=f),actions:t.menuActions,links:t.allowedActions,"links-background":"light-gray","onClick:link":e[2]||(e[2]=f=>t.onClickLink(f,t.id)),"onClick:action":e[3]||(e[3]=f=>{t.onClick(),t.showRemoveButton=!1})},null,8,["modelValue","actions","links"])):s.createCommentVNode("",!0)]),_:1})])):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass(["leading-normal text-sm",{"ml-12":t.showAvatar}])},[s.createElementVNode("p",null,s.toDisplayString(t.comment),1)],2),t.attachments.length>0?(s.openBlock(),s.createBlock(d,{key:0,class:s.normalizeClass({"ml-12":t.showAvatar}),files:t.attachments,"show-on-hover":!1,"show-remove":t.showRemoveButton,"onClick:file":t.attachmentClickEvent,"onUpdate:modelValue":t.attachmentRemoveEvent},null,8,["class","files","show-remove","onClick:file","onUpdate:modelValue"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)}const Ng=oe(NT,[["render",jT],["__scopeId","data-v-1041354f"]]),ZT=s.defineComponent({name:"QCommentSection",components:{QComment:Ng},props:{comments:{type:Array,default:()=>[]},attachmentClickEvent:{type:Function,default:()=>{}},attachmentRemoveEvent:{type:Function,default:()=>{}},deleteClickEvent:{type:Function,default:()=>{}},editClickEvent:{type:Function,default:()=>{}}},setup(t){const{t:e}=eo(),n=s.ref({text:e("HC_DELETE_COMMENT"),classes:"!text-red-20",click:t.deleteClickEvent}),r=s.ref({text:e("HC_EDIT_COMMENT"),classes:"!text-blue-20 md:!text-inkwell-0",click:t.editClickEvent});return{deleteOption:n,editOption:r}}}),UT={class:"comment-section"},WT={key:0,class:"comments"},KT={key:1,class:"no-comments text-center mb-6 mt-4"},GT={class:"text-md mb-2 leading-6 font-bold text-inkwell-30"},qT={class:"text-sm text-inkwell-0"};function YT(t,e,n,r,o,i){const a=s.resolveComponent("q-comment");return s.openBlock(),s.createElementBlock("div",UT,[t.comments&&t.comments.length?(s.openBlock(),s.createElementBlock("div",WT,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.comments,(l,c)=>(s.openBlock(),s.createBlock(a,s.mergeProps({key:c},l,{"attachment-click-event":t.attachmentClickEvent,"attachment-remove-event":t.attachmentRemoveEvent,"delete-click-event":t.deleteClickEvent,"edit-click-event":t.editClickEvent,"delete-option":l.canDelete?t.deleteOption:null,"edit-option":l.canEdit?t.editOption:null}),null,16,["attachment-click-event","attachment-remove-event","delete-click-event","edit-click-event","delete-option","edit-option"]))),128))])):(s.openBlock(),s.createElementBlock("div",KT,[s.createElementVNode("h4",GT,s.toDisplayString(t.$t("HC_NO_COMMENTS_YET")),1),s.createElementVNode("p",qT,s.toDisplayString(t.$t("HC_START_THE_CONVERSATION")),1)])),s.renderSlot(t.$slots,"default",{},void 0,!0)])}const JT=oe(ZT,[["render",YT],["__scopeId","data-v-8ed65462"]]),QT=s.defineComponent({name:"QCounter",props:{modelValue:{type:Number,default:0},max:{type:Number,default:100},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:e}){return{updateCount:r=>{const o=t.modelValue+r,i=o>=t.max?t.max:o;return e("update:modelValue",i<0?0:i),i}}}}),XT={class:"counter flex items-center"},eM={class:"grow text-center"};function tM(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",XT,[s.createVNode(a,s.mergeProps({icon:"minus-circle",type:"outline",size:"sm",color:"inkwell-30",class:"cursor-pointer mr-1"},{[s.toHandlerKey(!t.disabled&&"click")]:e[0]||(e[0]=l=>t.updateCount(-1))}),null,16),s.createElementVNode("span",eM,s.toDisplayString(t.modelValue),1),s.createVNode(a,s.mergeProps({icon:"circle-plus",type:"outline",size:"sm",color:"inkwell-30",class:"cursor-pointer ml-1"},{[s.toHandlerKey(!t.disabled&&"click")]:e[1]||(e[1]=l=>t.updateCount(1))}),null,16)])}const nM=oe(QT,[["render",tM]]);function Lg(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function kl(t){return Lg(t)?new Date(t.getTime()):t==null?new Date(NaN):new Date(t)}function rM(t){return Lg(t)&&!isNaN(t.getTime())}function Rg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(e>=0&&e<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var n=kl(t),r=n.getDay(),o=(r+7-e)%7;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function Vg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.firstDayOfWeek,r=n===void 0?0:n,o=e.firstWeekContainsDate,i=o===void 0?1:o;if(!(i>=1&&i<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var a=kl(t),l=a.getFullYear(),c=new Date(0),u=l+1;u>=l-1&&(c.setFullYear(u,0,i),c.setHours(0,0,0,0),c=Rg(c,r),!(a.getTime()>=c.getTime()));u--);return c}function Xc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.firstDayOfWeek,r=n===void 0?0:n,o=e.firstWeekContainsDate,i=o===void 0?1:o,a=kl(t),l=Rg(a,r),c=Vg(a,{firstDayOfWeek:r,firstWeekContainsDate:i}),u=l.getTime()-c.getTime();return Math.round(u/(7*24*3600*1e3))+1}var eu={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},oM=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function It(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n="".concat(Math.abs(t)),r=t<0?"-":"";n.length<e;)n="0".concat(n);return r+n}function $g(t){return Math.round(t.getTimezoneOffset()/15)*15}function Fg(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),i=r%60;return n+It(o,2)+e+It(i,2)}var Hg=function(e,n,r){var o=e<12?"AM":"PM";return r?o.toLocaleLowerCase():o},Ss={Y:function(e){var n=e.getFullYear();return n<=9999?"".concat(n):"+".concat(n)},YY:function(e){return It(e.getFullYear(),4).substr(2)},YYYY:function(e){return It(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return It(e.getMonth()+1,2)},MMM:function(e,n){return n.monthsShort[e.getMonth()]},MMMM:function(e,n){return n.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return It(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return It(e.getHours(),2)},h:function(e){var n=e.getHours();return n===0?12:n>12?n%12:n},hh:function(){var e=Ss.h.apply(Ss,arguments);return It(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return It(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return It(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return It(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return It(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,n){return n.weekdaysMin[e.getDay()]},ddd:function(e,n){return n.weekdaysShort[e.getDay()]},dddd:function(e,n){return n.weekdays[e.getDay()]},A:function(e,n){var r=n.meridiem||Hg;return r(e.getHours(),e.getMinutes(),!1)},a:function(e,n){var r=n.meridiem||Hg;return r(e.getHours(),e.getMinutes(),!0)},Z:function(e){return Fg($g(e),":")},ZZ:function(e){return Fg($g(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,n){return Xc(e,{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate})},ww:function(e,n){return It(Ss.w(e,n),2)}};function tu(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=kl(t);if(!rM(o))return"Invalid Date";var i=n.locale||eu;return r.replace(oM,function(a,l){return l||(typeof Ss[a]=="function"?"".concat(Ss[a](o,i)):a)})}function zg(t){return aM(t)||sM(t)||iM()}function iM(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function sM(t){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]")return Array.from(t)}function aM(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function _g(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function lM(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_g(n,!0).forEach(function(r){lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_g(n).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cM(t,e){return fM(t)||dM(t,e)||uM()}function uM(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function dM(t,e){if(Symbol.iterator in Object(t)||Object.prototype.toString.call(t)==="[object Arguments]"){var n=[],r=!0,o=!1,i=void 0;try{for(var a=t[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(e&&n.length===e));r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function fM(t){if(Array.isArray(t))return t}function lr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pM=/(\[[^\[]*\])|(MM?M?M?|Do|DD?|ddd?d?|w[o|w]?|YYYY|YY|a|A|hh?|HH?|mm?|ss?|S{1,3}|x|X|ZZ?|.)/g,jg=/\d/,cr=/\d\d/,hM=/\d{3}/,mM=/\d{4}/,Wo=/\d\d?/,gM=/[+-]\d\d:?\d\d/,Zg=/[+-]?\d+/,yM=/[+-]?\d+(\.\d{1,3})?/,nu="year",Sl="month",Ug="day",Wg="hour",Kg="minute",Gg="second",ru="millisecond",qg={},me=function(e,n,r){var o=Array.isArray(e)?e:[e],i;typeof r=="string"?i=function(l){var c=parseInt(l,10);return lr({},r,c)}:i=r,o.forEach(function(a){qg[a]=[n,i]})},bM=function(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Es=function(e){return function(n){var r=n[e];if(!Array.isArray(r))throw new Error("Locale[".concat(e,"] need an array"));return new RegExp(r.map(bM).join("|"))}},Os=function(e,n){return function(r,o){var i=o[e];if(!Array.isArray(i))throw new Error("Locale[".concat(e,"] need an array"));var a=i.indexOf(r);if(a<0)throw new Error("Invalid Word");return lr({},n,a)}};me("Y",Zg,nu),me("YY",cr,function(t){var e=new Date().getFullYear(),n=Math.floor(e/100),r=parseInt(t,10);return r=(r>68?n-1:n)*100+r,lr({},nu,r)}),me("YYYY",mM,nu),me("M",Wo,function(t){return lr({},Sl,parseInt(t,10)-1)}),me("MM",cr,function(t){return lr({},Sl,parseInt(t,10)-1)}),me("MMM",Es("monthsShort"),Os("monthsShort",Sl)),me("MMMM",Es("months"),Os("months",Sl)),me("D",Wo,Ug),me("DD",cr,Ug),me(["H","h"],Wo,Wg),me(["HH","hh"],cr,Wg),me("m",Wo,Kg),me("mm",cr,Kg),me("s",Wo,Gg),me("ss",cr,Gg),me("S",jg,function(t){return lr({},ru,parseInt(t,10)*100)}),me("SS",cr,function(t){return lr({},ru,parseInt(t,10)*10)}),me("SSS",hM,ru);function wM(t){return t.meridiemParse||/[ap]\.?m?\.?/i}function vM(t){return"".concat(t).toLowerCase().charAt(0)==="p"}me(["A","a"],wM,function(t,e){var n=typeof e.isPM=="function"?e.isPM(t):vM(t);return{isPM:n}});function CM(t){var e=t.match(/([+-]|\d\d)/g)||["-","0","0"],n=cM(e,3),r=n[0],o=n[1],i=n[2],a=parseInt(o,10)*60+parseInt(i,10);return a===0?0:r==="+"?-a:+a}me(["Z","ZZ"],gM,function(t){return{offset:CM(t)}}),me("x",Zg,function(t){return{date:new Date(parseInt(t,10))}}),me("X",yM,function(t){return{date:new Date(parseFloat(t)*1e3)}}),me("d",jg,"weekday"),me("dd",Es("weekdaysMin"),Os("weekdaysMin","weekday")),me("ddd",Es("weekdaysShort"),Os("weekdaysShort","weekday")),me("dddd",Es("weekdays"),Os("weekdays","weekday")),me("w",Wo,"week"),me("ww",cr,"week");function kM(t,e){if(t!==void 0&&e!==void 0){if(e){if(t<12)return t+12}else if(t===12)return 0}return t}function SM(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,n=[0,0,1,0,0,0,0],r=[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()],o=!0,i=0;i<7;i++)t[i]===void 0?n[i]=o?r[i]:n[i]:(n[i]=t[i],o=!1);return n}function EM(t,e,n,r,o,i,a){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,o,i,a),l}function OM(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0];return o<100&&o>=0?(n[0]+=400,t=new Date(Date.UTC.apply(Date,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(o)):t=new Date(Date.UTC.apply(Date,n)),t}function TM(t,e,n){var r=e.match(pM);if(!r)throw new Error;for(var o=r.length,i={},a=0;a<o;a+=1){var l=r[a],c=qg[l];if(c){var d=typeof c[0]=="function"?c[0](n):c[0],f=c[1],p=(d.exec(t)||[])[0],h=f(p,n);i=lM({},i,{},h),t=t.replace(p,"")}else{var u=l.replace(/^\[|\]$/g,"");if(t.indexOf(u)===0)t=t.substr(u.length);else throw new Error("not match")}}return i}function MM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{var r=n.locale,o=r===void 0?eu:r,i=n.backupDate,a=i===void 0?new Date:i,l=TM(t,e,o),c=l.year,u=l.month,d=l.day,f=l.hour,p=l.minute,h=l.second,m=l.millisecond,y=l.isPM,g=l.date,b=l.offset,v=l.weekday,k=l.week;if(g)return g;var w=[c,u,d,f,p,h,m];if(w[3]=kM(w[3],y),k!==void 0&&u===void 0&&d===void 0){var M=Vg(c===void 0?a:new Date(c,3),{firstDayOfWeek:o.firstDayOfWeek,firstWeekContainsDate:o.firstWeekContainsDate});return new Date(M.getTime()+(k-1)*7*24*3600*1e3)}var C,S=SM(w,a);return b!==void 0?(S[6]+=b*60*1e3,C=OM.apply(void 0,zg(S))):C=EM.apply(void 0,zg(S)),v!==void 0&&C.getDay()!==v?new Date(NaN):C}catch{return new Date(NaN)}}var IM=Object.defineProperty,xM=Object.defineProperties,PM=Object.getOwnPropertyDescriptors,El=Object.getOwnPropertySymbols,Yg=Object.prototype.hasOwnProperty,Jg=Object.prototype.propertyIsEnumerable,Qg=(t,e,n)=>e in t?IM(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fe=(t,e)=>{for(var n in e||(e={}))Yg.call(e,n)&&Qg(t,n,e[n]);if(El)for(var n of El(e))Jg.call(e,n)&&Qg(t,n,e[n]);return t},_t=(t,e)=>xM(t,PM(e)),BM=(t,e)=>{var n={};for(var r in t)Yg.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&El)for(var r of El(t))e.indexOf(r)<0&&Jg.call(t,r)&&(n[r]=t[r]);return n};const AM={formatLocale:eu,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let Ts="en";const Ko={};Ko[Ts]=AM;function Xg(t,e,n=!1){if(typeof t!="string")return Ko[Ts];let r=Ts;return Ko[t]&&(r=t),e&&(Ko[t]=e,r=t),n||(Ts=r),Ko[t]||Ko[Ts]}function ou(t){return Xg(t,void 0,!0)}function iu(t,e){if(!Array.isArray(t))return[];const n=[],r=t.length;let o=0;for(e=e||r;o<r;)n.push(t.slice(o,o+=e));return n}function e5(t){return Array.isArray(t)?t[t.length-1]:void 0}function ur(t){return Object.prototype.toString.call(t)==="[object Object]"}function Vn(t,e){const n={};return ur(t)&&(Array.isArray(e)||(e=[e]),e.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])})),n}function t5(t,e){if(!ur(t))return{};let n=t;return ur(e)&&Object.keys(e).forEach(r=>{let o=e[r];const i=t[r];ur(o)&&ur(i)&&(o=t5(i,o)),n=_t(Fe({},n),{[r]:o})}),n}function su(t){const e=parseInt(String(t),10);return e<10?`0${e}`:`${e}`}function DM(t){const e=/-(\w)/g;return t.replace(e,(n,r)=>r?r.toUpperCase():"")}const n5="datepicker_locale",r5="datepicker_prefixClass",o5="datepicker_getWeek";function au(){return s.inject(n5,s.shallowRef(ou()))}function NM(t){const e=s.computed(()=>ur(t.value)?t5(ou(),t.value):ou(t.value));return s.provide(n5,e),e}function LM(t){s.provide(r5,t)}function ut(){return s.inject(r5,"mx")}function RM(t){s.provide(o5,t)}function VM(){return s.inject(o5,Xc)}function $M(t){const e=t.style.display,n=t.style.visibility;t.style.display="block",t.style.visibility="hidden";const r=window.getComputedStyle(t),o=t.offsetWidth+parseInt(r.marginLeft,10)+parseInt(r.marginRight,10),i=t.offsetHeight+parseInt(r.marginTop,10)+parseInt(r.marginBottom,10);return t.style.display=e,t.style.visibility=n,{width:o,height:i}}function FM(t,e,n,r){let o=0,i=0,a=0,l=0;const c=t.getBoundingClientRect(),u=document.documentElement.clientWidth,d=document.documentElement.clientHeight;return r&&(a=window.pageXOffset+c.left,l=window.pageYOffset+c.top),u-c.left<e&&c.right<e?o=a-c.left+1:c.left+c.width/2<=u/2?o=a:o=a+c.width-e,c.top<=n&&d-c.bottom<=n?i=l+d-c.top-n:c.top+c.height/2<=d/2?i=l+c.height:i=l-n,{left:`${o}px`,top:`${i}px`}}function lu(t,e=document.body){if(!t||t===e)return null;const n=(i,a)=>getComputedStyle(i,null).getPropertyValue(a);return/(auto|scroll)/.test(n(t,"overflow")+n(t,"overflow-y")+n(t,"overflow-x"))?t:lu(t.parentElement,e)}let Ol;function HM(){if(typeof window>"u")return 0;if(Ol!==void 0)return Ol;const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=document.createElement("div");return e.style.width="100%",t.appendChild(e),Ol=t.offsetWidth-e.offsetWidth,t.parentNode.removeChild(t),Ol}const i5="ontouchend"in document?"touchstart":"mousedown";function zM(t){let e=!1;return function(...r){e||(e=!0,requestAnimationFrame(()=>{e=!1,t.apply(this,r)}))}}function $n(t,e){return{setup:t,name:t.name,props:e}}function Fn(t,e){return new Proxy(t,{get(r,o){const i=r[o];return i!==void 0?i:e[o]}})}const dr=()=>t=>t,_M=(t,e)=>{const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=DM(r);let i=t[r];e.indexOf(o)!==-1&&i===""&&(i=!0),n[o]=i}return n};function jM(t,{slots:e}){const n=Fn(t,{appendToBody:!0}),r=ut(),o=s.ref(null),i=s.ref({left:"",top:""}),a=()=>{if(!n.visible||!o.value)return;const c=n.getRelativeElement();if(!c)return;const{width:u,height:d}=$M(o.value);i.value=FM(c,u,d,n.appendToBody)};s.watchEffect(a,{flush:"post"}),s.watchEffect(c=>{const u=n.getRelativeElement();if(!u)return;const d=lu(u)||window,f=zM(a);d.addEventListener("scroll",f),window.addEventListener("resize",f),c(()=>{d.removeEventListener("scroll",f),window.removeEventListener("resize",f)})},{flush:"post"});const l=c=>{if(!n.visible)return;const u=c.target,d=o.value,f=n.getRelativeElement();d&&!d.contains(u)&&f&&!f.contains(u)&&n.onClickOutside(c)};return s.watchEffect(c=>{document.addEventListener(i5,l),c(()=>{document.removeEventListener(i5,l)})}),()=>s.createVNode(s.Teleport,{to:"body",disabled:!n.appendToBody},{default:()=>[s.createVNode(s.Transition,{name:`${r}-zoom-in-down`},{default:()=>{var c;return[n.visible&&s.createVNode("div",{ref:o,class:`${r}-datepicker-main ${r}-datepicker-popup ${n.className}`,style:[Fe({position:"absolute"},i.value),n.style||{}]},[(c=e.default)==null?void 0:c.call(e)])]}})]})}const ZM=dr()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var UM=$n(jM,ZM);const WM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},KM=[s.createElementVNode("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1)];function s5(t,e){return s.openBlock(),s.createElementBlock("svg",WM,KM)}const GM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},qM=[s.createElementVNode("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1)];function YM(t,e){return s.openBlock(),s.createElementBlock("svg",GM,qM)}const JM={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},QM=[s.createElementVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),s.createElementVNode("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),s.createElementVNode("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1)];function XM(t,e){return s.openBlock(),s.createElementBlock("svg",JM,QM)}function no(t,e=0,n=1,r=0,o=0,i=0,a=0){const l=new Date(t,e,n,r,o,i,a);return t<100&&t>=0&&l.setFullYear(t),l}function Hn(t){return t instanceof Date&&!isNaN(t.getTime())}function ro(t){return Array.isArray(t)&&t.length===2&&t.every(Hn)&&t[0]<=t[1]}function eI(t){return Array.isArray(t)&&t.every(Hn)}function Tl(...t){if(t[0]!==void 0&&t[0]!==null){const n=new Date(t[0]);if(Hn(n))return n}const e=t.slice(1);return e.length?Tl(...e):new Date}function tI(t){const e=new Date(t);return e.setMonth(0,1),e.setHours(0,0,0,0),e}function a5(t){const e=new Date(t);return e.setDate(1),e.setHours(0,0,0,0),e}function fr(t){const e=new Date(t);return e.setHours(0,0,0,0),e}function nI({firstDayOfWeek:t,year:e,month:n}){const r=[],o=no(e,n,0),i=o.getDate(),a=i-(o.getDay()+7-t)%7;for(let d=a;d<=i;d++)r.push(no(e,n,d-i));o.setMonth(n+1,0);const l=o.getDate();for(let d=1;d<=l;d++)r.push(no(e,n,d));const c=i-a+1,u=6*7-c-l;for(let d=1;d<=u;d++)r.push(no(e,n,l+d));return r}function Ml(t,e){const n=new Date(t),r=typeof e=="function"?e(n.getMonth()):Number(e),o=n.getFullYear(),i=no(o,r+1,0).getDate(),a=n.getDate();return n.setMonth(r,Math.min(a,i)),n}function Go(t,e){const n=new Date(t),r=typeof e=="function"?e(n.getFullYear()):e;return n.setFullYear(r),n}function rI(t,e){const n=new Date(e),r=new Date(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function Il(t,e){const n=new Date(t),r=new Date(e);return n.setHours(r.getHours(),r.getMinutes(),r.getSeconds()),n}function oI(t,{slots:e}){const n=Fn(t,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),r=ut(),o=s.ref(null),i=s.computed(()=>n.separator||(n.range?" ~ ":",")),a=h=>n.range?ro(h):n.multiple?eI(h):Hn(h),l=h=>Array.isArray(h)?h.some(m=>n.disabledDate(m)):n.disabledDate(h),c=s.computed(()=>o.value!==null?o.value:typeof n.renderInputText=="function"?n.renderInputText(n.value):a(n.value)?Array.isArray(n.value)?n.value.map(h=>n.formatDate(h)).join(i.value):n.formatDate(n.value):""),u=h=>{var m;h&&h.stopPropagation(),n.onChange(n.range?[null,null]:null),(m=n.onClear)==null||m.call(n)},d=()=>{var h;if(!n.editable||o.value===null)return;const m=o.value.trim();if(o.value=null,m===""){u();return}let y;if(n.range){let g=m.split(i.value);g.length!==2&&(g=m.split(i.value.trim())),y=g.map(b=>n.parseDate(b.trim()))}else n.multiple?y=m.split(i.value).map(g=>n.parseDate(g.trim())):y=n.parseDate(m);a(y)&&!l(y)?n.onChange(y):(h=n.onInputError)==null||h.call(n,m)},f=h=>{o.value=typeof h=="string"?h:h.target.value},p=h=>{const{keyCode:m}=h;m===9?n.onBlur():m===13&&d()};return()=>{var h,m,y;const g=!n.disabled&&n.clearable&&c.value,b=_t(Fe({name:"date",type:"text",autocomplete:"off",value:c.value,class:n.inputClass||`${r}-input`,readonly:!n.editable,disabled:n.disabled,placeholder:n.placeholder},n.inputAttr),{onFocus:n.onFocus,onKeydown:p,onInput:f,onChange:d});return s.createVNode("div",{class:`${r}-input-wrapper`,onClick:n.onClick},[((h=e.input)==null?void 0:h.call(e,b))||s.createVNode("input",b,null),g?s.createVNode("i",{class:`${r}-icon-clear`,onClick:u},[((m=e["icon-clear"])==null?void 0:m.call(e))||s.createVNode(YM,null,null)]):null,s.createVNode("i",{class:`${r}-icon-calendar`},[((y=e["icon-calendar"])==null?void 0:y.call(e))||s.createVNode(s5,null,null)])])}}const cu=dr()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),iI=dr()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...cu]);var sI=$n(oI,iI);function aI(t,{slots:e}){var n;const r=Fn(t,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});LM(r.prefixClass),RM(((n=r.formatter)==null?void 0:n.getWeek)||Xc);const o=NM(s.toRef(t,"lang")),i=s.ref(),a=()=>i.value,l=s.ref(!1),c=s.computed(()=>!r.disabled&&(typeof r.open=="boolean"?r.open:l.value)),u=()=>{var C,S;r.disabled||c.value||(l.value=!0,(C=r["onUpdate:open"])==null||C.call(r,!0),(S=r.onOpen)==null||S.call(r))},d=()=>{var C,S;c.value&&(l.value=!1,(C=r["onUpdate:open"])==null||C.call(r,!1),(S=r.onClose)==null||S.call(r))},f=(C,S)=>(S=S||r.format,ur(r.formatter)&&typeof r.formatter.stringify=="function"?r.formatter.stringify(C,S):tu(C,S,{locale:o.value.formatLocale})),p=(C,S)=>{if(S=S||r.format,ur(r.formatter)&&typeof r.formatter.parse=="function")return r.formatter.parse(C,S);const O=new Date;return MM(C,S,{locale:o.value.formatLocale,backupDate:O})},h=C=>{switch(r.valueType){case"date":return C instanceof Date?new Date(C.getTime()):new Date(NaN);case"timestamp":return typeof C=="number"?new Date(C):new Date(NaN);case"format":return typeof C=="string"?p(C):new Date(NaN);default:return typeof C=="string"?p(C,r.valueType):new Date(NaN)}},m=C=>{if(!Hn(C))return null;switch(r.valueType){case"date":return C;case"timestamp":return C.getTime();case"format":return f(C);default:return f(C,r.valueType)}},y=s.computed(()=>{const C=r.value;return r.range?(Array.isArray(C)?C.slice(0,2):[null,null]).map(h):r.multiple?(Array.isArray(C)?C:[]).map(h):h(C)}),g=(C,S,O=!0)=>{var T,B;const A=Array.isArray(C)?C.map(m):m(C);return(T=r["onUpdate:value"])==null||T.call(r,A),(B=r.onChange)==null||B.call(r,A,S),O&&d(),A},b=s.ref(new Date);s.watchEffect(()=>{c.value&&(b.value=y.value)});const v=(C,S)=>{r.confirm?b.value=C:g(C,S,!r.multiple&&(S===r.type||S==="time"))},k=()=>{var C;const S=g(b.value);(C=r.onConfirm)==null||C.call(r,S)},w=C=>r.disabledDate(C)||r.disabledTime(C),M=C=>{var S;const{prefixClass:O}=r;return s.createVNode("div",{class:`${O}-datepicker-sidebar`},[(S=e.sidebar)==null?void 0:S.call(e,C),(r.shortcuts||[]).map((T,B)=>s.createVNode("button",{key:B,"data-index":B,type:"button",class:`${O}-btn ${O}-btn-text ${O}-btn-shortcut`,onClick:()=>{var A;const D=(A=T.onClick)==null?void 0:A.call(T);D&&g(D)}},[T.text]))])};return()=>{var C,S;const{prefixClass:O,disabled:T,confirm:B,range:A,popupClass:D,popupStyle:F,appendToBody:W}=r,V={value:b.value,"onUpdate:value":v,emit:g},Z=e.header&&s.createVNode("div",{class:`${O}-datepicker-header`},[e.header(V)]),Y=(e.footer||B)&&s.createVNode("div",{class:`${O}-datepicker-footer`},[(C=e.footer)==null?void 0:C.call(e,V),B&&s.createVNode("button",{type:"button",class:`${O}-btn ${O}-datepicker-btn-confirm`,onClick:k},[r.confirmText])]),ae=(S=e.content)==null?void 0:S.call(e,V),Ye=(e.sidebar||r.shortcuts)&&M(V);return s.createVNode("div",{ref:i,class:{[`${O}-datepicker`]:!0,[`${O}-datepicker-range`]:A,disabled:T}},[s.createVNode(sI,_t(Fe({},Vn(r,cu)),{value:y.value,formatDate:f,parseDate:p,disabledDate:w,onChange:g,onClick:u,onFocus:u,onBlur:d}),Vn(e,["icon-calendar","icon-clear","input"])),s.createVNode(UM,{className:D,style:F,visible:c.value,appendToBody:W,getRelativeElement:a,onClickOutside:d},{default:()=>[Ye,s.createVNode("div",{class:`${O}-datepicker-content`},[Z,ae,Y])]})])}}const lI=[...dr()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),...cu];var l5=$n(aI,lI);function xl(t){var e=t,{value:n}=e,r=BM(e,["value"]);const o=ut();return s.createVNode("button",_t(Fe({},r),{type:"button",class:`${o}-btn ${o}-btn-text ${o}-btn-icon-${n}`}),[s.createVNode("i",{class:`${o}-icon-${n}`},null)])}function uu({type:t,calendar:e,onUpdateCalendar:n},{slots:r}){var o;const i=ut(),a=()=>{n(Ml(e,p=>p-1))},l=()=>{n(Ml(e,p=>p+1))},c=()=>{n(Go(e,p=>p-1))},u=()=>{n(Go(e,p=>p+1))},d=()=>{n(Go(e,p=>p-10))},f=()=>{n(Go(e,p=>p+10))};return s.createVNode("div",{class:`${i}-calendar-header`},[s.createVNode(xl,{value:"double-left",onClick:t==="year"?d:c},null),t==="date"&&s.createVNode(xl,{value:"left",onClick:a},null),s.createVNode(xl,{value:"double-right",onClick:t==="year"?f:u},null),t==="date"&&s.createVNode(xl,{value:"right",onClick:l},null),s.createVNode("span",{class:`${i}-calendar-header-label`},[(o=r.default)==null?void 0:o.call(r)])])}function cI({calendar:t,isWeekMode:e,showWeekNumber:n,titleFormat:r,getWeekActive:o,getCellClasses:i,onSelect:a,onUpdatePanel:l,onUpdateCalendar:c,onDateMouseEnter:u,onDateMouseLeave:d}){const f=ut(),p=VM(),h=au().value,{yearFormat:m,monthBeforeYear:y,monthFormat:g="MMM",formatLocale:b}=h,v=b.firstDayOfWeek||0;let k=h.days||b.weekdaysMin;k=k.concat(k).slice(v,v+7);const w=t.getFullYear(),M=t.getMonth(),C=iu(nI({firstDayOfWeek:v,year:w,month:M}),7),S=(V,Z)=>tu(V,Z,{locale:h.formatLocale}),O=V=>{l(V)},T=V=>{const Z=V.getAttribute("data-index"),[Y,ae]=Z.split(",").map(mt=>parseInt(mt,10)),Ye=C[Y][ae];return new Date(Ye)},B=V=>{a(T(V.currentTarget))},A=V=>{u&&u(T(V.currentTarget))},D=V=>{d&&d(T(V.currentTarget))},F=s.createVNode("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-year`,onClick:()=>O("year")},[S(t,m)]),W=s.createVNode("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-month`,onClick:()=>O("month")},[S(t,g)]);return n=typeof n=="boolean"?n:e,s.createVNode("div",{class:[`${f}-calendar ${f}-calendar-panel-date`,{[`${f}-calendar-week-mode`]:e}]},[s.createVNode(uu,{type:"date",calendar:t,onUpdateCalendar:c},{default:()=>[y?[W,F]:[F,W]]}),s.createVNode("div",{class:`${f}-calendar-content`},[s.createVNode("table",{class:`${f}-table ${f}-table-date`},[s.createVNode("thead",null,[s.createVNode("tr",null,[n&&s.createVNode("th",{class:`${f}-week-number-header`},null),k.map(V=>s.createVNode("th",{key:V},[V]))])]),s.createVNode("tbody",null,[C.map((V,Z)=>s.createVNode("tr",{key:Z,class:[`${f}-date-row`,{[`${f}-active-week`]:o(V)}]},[n&&s.createVNode("td",{class:`${f}-week-number`,"data-index":`${Z},0`,onClick:B},[s.createVNode("div",null,[p(V[0])])]),V.map((Y,ae)=>s.createVNode("td",{key:ae,class:["cell",i(Y)],title:S(Y,r),"data-index":`${Z},${ae}`,onClick:B,onMouseenter:A,onMouseleave:D},[s.createVNode("div",null,[Y.getDate()])]))]))])])])])}function uI({calendar:t,getCellClasses:e,onSelect:n,onUpdateCalendar:r,onUpdatePanel:o}){const i=ut(),a=au().value,l=a.months||a.formatLocale.monthsShort,c=d=>no(t.getFullYear(),d),u=d=>{const p=d.currentTarget.getAttribute("data-month");n(c(parseInt(p,10)))};return s.createVNode("div",{class:`${i}-calendar ${i}-calendar-panel-month`},[s.createVNode(uu,{type:"month",calendar:t,onUpdateCalendar:r},{default:()=>[s.createVNode("button",{type:"button",class:`${i}-btn ${i}-btn-text ${i}-btn-current-year`,onClick:()=>o("year")},[t.getFullYear()])]}),s.createVNode("div",{class:`${i}-calendar-content`},[s.createVNode("table",{class:`${i}-table ${i}-table-month`},[iu(l,3).map((d,f)=>s.createVNode("tr",{key:f},[d.map((p,h)=>{const m=f*3+h;return s.createVNode("td",{key:h,class:["cell",e(c(m))],"data-month":m,onClick:u},[s.createVNode("div",null,[p])])})]))])])])}const dI=t=>{const e=Math.floor(t.getFullYear()/10)*10,n=[];for(let r=0;r<10;r++)n.push(e+r);return iu(n,2)};function fI({calendar:t,getCellClasses:e=()=>[],getYearPanel:n=dI,onSelect:r,onUpdateCalendar:o}){const i=ut(),a=f=>no(f,0),l=f=>{const h=f.currentTarget.getAttribute("data-year");r(a(parseInt(h,10)))},c=n(new Date(t)),u=c[0][0],d=e5(e5(c));return s.createVNode("div",{class:`${i}-calendar ${i}-calendar-panel-year`},[s.createVNode(uu,{type:"year",calendar:t,onUpdateCalendar:o},{default:()=>[s.createVNode("span",null,[u]),s.createVNode("span",{class:`${i}-calendar-decade-separator`},null),s.createVNode("span",null,[d])]}),s.createVNode("div",{class:`${i}-calendar-content`},[s.createVNode("table",{class:`${i}-table ${i}-table-year`},[c.map((f,p)=>s.createVNode("tr",{key:p},[f.map((h,m)=>s.createVNode("td",{key:m,class:["cell",e(a(h))],"data-year":h,onClick:l},[s.createVNode("div",null,[h])]))]))])])])}function pI(t){const e=Fn(t,{defaultValue:fr(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),n=s.computed(()=>(Array.isArray(e.value)?e.value:[e.value]).filter(Hn).map(v=>e.type==="year"?tI(v):e.type==="month"?a5(v):fr(v))),r=s.ref(new Date);s.watchEffect(()=>{let b=e.calendar;if(!Hn(b)){const{length:v}=n.value;b=Tl(v>0?n.value[v-1]:e.defaultValue)}r.value=a5(b)});const o=b=>{var v;r.value=b,(v=e.onCalendarChange)==null||v.call(e,b)},i=s.ref("date");s.watchEffect(()=>{const b=["date","month","year"],v=Math.max(b.indexOf(e.type),b.indexOf(e.defaultPanel));i.value=v!==-1?b[v]:"date"});const a=b=>{var v;const k=i.value;i.value=b,(v=e.onPanelChange)==null||v.call(e,b,k)},l=b=>e.disabledDate(new Date(b),n.value),c=(b,v)=>{var k,w,M;if(!l(b))if((k=e.onPick)==null||k.call(e,b),e.multiple===!0){const C=n.value.filter(S=>S.getTime()!==b.getTime());C.length===n.value.length&&C.push(b),(w=e["onUpdate:value"])==null||w.call(e,C,v)}else(M=e["onUpdate:value"])==null||M.call(e,b,v)},u=b=>{c(b,e.type==="week"?"week":"date")},d=b=>{if(e.type==="year")c(b,"year");else if(o(b),a("month"),e.partialUpdate&&n.value.length===1){const v=Go(n.value[0],b.getFullYear());c(v,"year")}},f=b=>{if(e.type==="month")c(b,"month");else if(o(b),a("date"),e.partialUpdate&&n.value.length===1){const v=Ml(Go(n.value[0],b.getFullYear()),b.getMonth());c(v,"month")}},p=(b,v=[])=>(l(b)?v.push("disabled"):n.value.some(k=>k.getTime()===b.getTime())&&v.push("active"),v.concat(e.getClasses(b,n.value,v.join(" ")))),h=b=>{const v=b.getMonth()!==r.value.getMonth(),k=[];return b.getTime()===new Date().setHours(0,0,0,0)&&k.push("today"),v&&k.push("not-current-month"),p(b,k)},m=b=>e.type!=="month"?r.value.getMonth()===b.getMonth()?"active":"":p(b),y=b=>e.type!=="year"?r.value.getFullYear()===b.getFullYear()?"active":"":p(b),g=b=>{if(e.type!=="week")return!1;const v=b[0].getTime(),k=b[6].getTime();return n.value.some(w=>{const M=w.getTime();return M>=v&&M<=k})};return()=>i.value==="year"?s.createVNode(fI,{calendar:r.value,getCellClasses:y,getYearPanel:e.getYearPanel,onSelect:d,onUpdateCalendar:o},null):i.value==="month"?s.createVNode(uI,{calendar:r.value,getCellClasses:m,onSelect:f,onUpdatePanel:a,onUpdateCalendar:o},null):s.createVNode(cI,{isWeekMode:e.type==="week",showWeekNumber:e.showWeekNumber,titleFormat:e.titleFormat,calendar:r.value,getCellClasses:h,getWeekActive:g,onSelect:u,onUpdatePanel:a,onUpdateCalendar:o,onDateMouseEnter:e.onDateMouseEnter,onDateMouseLeave:e.onDateMouseLeave},null)}const Pl=dr()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var Bl=$n(pI,Pl);const c5=(t,e)=>{const n=t.getTime();let[r,o]=e.map(i=>i.getTime());return r>o&&([r,o]=[o,r]),n>r&&n<o};function hI(t){const e=Fn(t,{defaultValue:new Date,type:"date"}),n=ut(),r=s.computed(()=>{let g=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return g=g.map(b=>fr(b)),ro(g)?g:[new Date,new Date].map(b=>fr(b))}),o=s.ref([new Date(NaN),new Date(NaN)]);s.watchEffect(()=>{ro(e.value)&&(o.value=e.value)});const i=(g,b)=>{var v;const[k,w]=o.value;Hn(k)&&!Hn(w)?(k.getTime()>g.getTime()?o.value=[g,k]:o.value=[k,g],(v=e["onUpdate:value"])==null||v.call(e,o.value,b)):o.value=[g,new Date(NaN)]},a=s.ref([new Date,new Date]),l=s.computed(()=>ro(e.calendar)?e.calendar:a.value),c=s.computed(()=>e.type==="year"?10*12:e.type==="month"?1*12:1),u=(g,b)=>{var v;const k=rI(g[0],g[1]),w=c.value-k;if(w>0){const M=b===1?0:1;g[M]=Ml(g[M],C=>C+(M===0?-w:w))}a.value=g,(v=e.onCalendarChange)==null||v.call(e,g,b)},d=g=>{u([g,l.value[1]],0)},f=g=>{u([l.value[0],g],1)};s.watchEffect(()=>{const g=ro(e.value)?e.value:r.value;u(g.slice(0,2))});const p=s.ref(null),h=g=>p.value=g,m=()=>p.value=null,y=(g,b,v)=>{const k=e.getClasses?e.getClasses(g,b,v):[],w=Array.isArray(k)?k:[k];return/disabled|active/.test(v)?w:(b.length===2&&c5(g,b)&&w.push("in-range"),b.length===1&&p.value&&c5(g,[b[0],p.value])?w.concat("hover-in-range"):w)};return()=>{const g=l.value.map((b,v)=>{const k=_t(Fe({},e),{calendar:b,value:o.value,defaultValue:r.value[v],getClasses:y,partialUpdate:!1,multiple:!1,"onUpdate:value":i,onCalendarChange:v===0?d:f,onDateMouseLeave:m,onDateMouseEnter:h});return s.createVNode(Bl,k,null)});return s.createVNode("div",{class:`${n}-calendar-range`},[g])}}const du=Pl;var fu=$n(hI,du);const u5=s.defineComponent({setup(t,{slots:e}){const n=ut(),r=s.ref(),o=s.ref(""),i=s.ref(""),a=()=>{if(!r.value)return;const m=r.value,y=m.clientHeight*100/m.scrollHeight;o.value=y<100?`${y}%`:""};s.onMounted(a);const l=HM(),c=m=>{const y=m.currentTarget,{scrollHeight:g,scrollTop:b}=y;i.value=`${b*100/g}%`};let u=!1,d=0;const f=m=>{m.stopImmediatePropagation();const y=m.currentTarget,{offsetTop:g}=y;u=!0,d=m.clientY-g},p=m=>{if(!u||!r.value)return;const{clientY:y}=m,{scrollHeight:g,clientHeight:b}=r.value,k=(y-d)*g/b;r.value.scrollTop=k},h=()=>{u=!1};return s.onMounted(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)}),s.onUnmounted(()=>{document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)}),()=>{var m;return s.createVNode("div",{class:`${n}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[s.createVNode("div",{ref:r,class:`${n}-scrollbar-wrap`,style:{marginRight:`-${l}px`},onScroll:c},[(m=e.default)==null?void 0:m.call(e)]),s.createVNode("div",{class:`${n}-scrollbar-track`},[s.createVNode("div",{class:`${n}-scrollbar-thumb`,style:{height:o.value,top:i.value},onMousedown:f},null)])])}}});function mI({options:t,getClasses:e,onSelect:n}){const r=ut(),o=i=>{const a=i.target,l=i.currentTarget;if(a.tagName.toUpperCase()!=="LI")return;const c=l.getAttribute("data-type"),u=parseInt(l.getAttribute("data-index"),10),d=parseInt(a.getAttribute("data-index"),10),f=t[u].list[d].value;n(f,c)};return s.createVNode("div",{class:`${r}-time-columns`},[t.map((i,a)=>s.createVNode(u5,{key:i.type,class:`${r}-time-column`},{default:()=>[s.createVNode("ul",{class:`${r}-time-list`,"data-index":a,"data-type":i.type,onClick:o},[i.list.map((l,c)=>s.createVNode("li",{key:l.text,"data-index":c,class:[`${r}-time-item`,e(l.value,i.type)]},[l.text]))])]}))])}function gI(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!s.isVNode(t)}function yI(t){let e;const n=ut();return s.createVNode(u5,null,gI(e=t.options.map(r=>s.createVNode("div",{key:r.text,class:[`${n}-time-option`,t.getClasses(r.value,"time")],onClick:()=>t.onSelect(r.value,"time")},[r.text])))?e:{default:()=>[e]})}function pu({length:t,step:e=1,options:n}){if(Array.isArray(n))return n.filter(o=>o>=0&&o<t);e<=0&&(e=1);const r=[];for(let o=0;o<t;o+=e)r.push(o);return r}function bI(t,e){let{showHour:n,showMinute:r,showSecond:o,use12h:i}=e;const a=e.format||"HH:mm:ss";n=typeof n=="boolean"?n:/[HhKk]/.test(a),r=typeof r=="boolean"?r:/m/.test(a),o=typeof o=="boolean"?o:/s/.test(a),i=typeof i=="boolean"?i:/a/i.test(a);const l=[],c=i&&t.getHours()>=12;return n&&l.push({type:"hour",list:pu({length:i?12:24,step:e.hourStep,options:e.hourOptions}).map(u=>{const d=u===0&&i?"12":su(u),f=new Date(t);return f.setHours(c?u+12:u),{value:f,text:d}})}),r&&l.push({type:"minute",list:pu({length:60,step:e.minuteStep,options:e.minuteOptions}).map(u=>{const d=new Date(t);return d.setMinutes(u),{value:d,text:su(u)}})}),o&&l.push({type:"second",list:pu({length:60,step:e.secondStep,options:e.secondOptions}).map(u=>{const d=new Date(t);return d.setSeconds(u),{value:d,text:su(u)}})}),i&&l.push({type:"ampm",list:["AM","PM"].map((u,d)=>{const f=new Date(t);return f.setHours(f.getHours()%12+d*12),{text:u,value:f}})}),l}function hu(t=""){const e=t.split(":");if(e.length>=2){const n=parseInt(e[0],10),r=parseInt(e[1],10);return{hours:n,minutes:r}}return null}function wI({date:t,option:e,format:n,formatDate:r}){const o=[];if(typeof e=="function")return e()||[];const i=hu(e.start),a=hu(e.end),l=hu(e.step),c=e.format||n;if(i&&a&&l){const u=i.minutes+i.hours*60,d=a.minutes+a.hours*60,f=l.minutes+l.hours*60,p=Math.floor((d-u)/f);for(let h=0;h<=p;h++){const m=u+h*f,y=Math.floor(m/60),g=m%60,b=new Date(t);b.setHours(y,g,0),o.push({value:b,text:r(b,c)})}}return o}const d5=(t,e,n=0)=>{if(n<=0){requestAnimationFrame(()=>{t.scrollTop=e});return}const o=(e-t.scrollTop)/n*10;requestAnimationFrame(()=>{const i=t.scrollTop+o;if(i>=e){t.scrollTop=e;return}t.scrollTop=i,d5(t,e,n-10)})};function vI(t){const e=Fn(t,{defaultValue:fr(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),n=ut(),r=au(),o=(y,g)=>tu(y,g,{locale:r.value.formatLocale}),i=s.ref(new Date);s.watchEffect(()=>{i.value=Tl(e.value,e.defaultValue)});const a=y=>Array.isArray(y)?y.every(g=>e.disabledTime(new Date(g))):e.disabledTime(new Date(y)),l=y=>{const g=new Date(y);return a([g.getTime(),g.setMinutes(0,0,0),g.setMinutes(59,59,999)])},c=y=>{const g=new Date(y);return a([g.getTime(),g.setSeconds(0,0),g.setSeconds(59,999)])},u=y=>{const g=new Date(y),b=g.getHours()<12?0:12,v=b+11;return a([g.getTime(),g.setHours(b,0,0,0),g.setHours(v,59,59,999)])},d=(y,g)=>g==="hour"?l(y):g==="minute"?c(y):g==="ampm"?u(y):a(y),f=(y,g)=>{var b;if(!d(y,g)){const v=new Date(y);i.value=v,a(v)||(b=e["onUpdate:value"])==null||b.call(e,v,g)}},p=(y,g)=>d(y,g)?"disabled":y.getTime()===i.value.getTime()?"active":"",h=s.ref(),m=y=>{if(!h.value)return;const g=h.value.querySelectorAll(".active");for(let b=0;b<g.length;b++){const v=g[b],k=lu(v,h.value);if(k){const w=v.offsetTop;d5(k,w,y)}}};return s.onMounted(()=>m(0)),s.watch(i,()=>m(e.scrollDuration),{flush:"post"}),()=>{let y;return e.timePickerOptions?y=s.createVNode(yI,{onSelect:f,getClasses:p,options:wI({date:i.value,format:e.format,option:e.timePickerOptions,formatDate:o})},null):y=s.createVNode(mI,{options:bI(i.value,e),onSelect:f,getClasses:p},null),s.createVNode("div",{class:`${n}-time`,ref:h},[e.showTimeHeader&&s.createVNode("div",{class:`${n}-time-header`},[s.createVNode("button",{type:"button",class:`${n}-btn ${n}-btn-text ${n}-time-header-title`,onClick:e.onClickTitle},[o(i.value,e.timeTitleFormat)])]),s.createVNode("div",{class:`${n}-time-content`},[y])])}}const Al=dr()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var Ms=$n(vI,Al);function CI(t){const e=Fn(t,{defaultValue:fr(new Date),disabledTime:()=>!1}),n=ut(),r=s.ref([new Date(NaN),new Date(NaN)]);s.watchEffect(()=>{ro(e.value)?r.value=e.value:r.value=[new Date(NaN),new Date(NaN)]});const o=(u,d)=>{var f;(f=e["onUpdate:value"])==null||f.call(e,r.value,u==="time"?"time-range":u,d)},i=(u,d)=>{r.value[0]=u,r.value[1].getTime()>=u.getTime()||(r.value[1]=u),o(d,0)},a=(u,d)=>{r.value[1]=u,r.value[0].getTime()<=u.getTime()||(r.value[0]=u),o(d,1)},l=u=>e.disabledTime(u,0),c=u=>u.getTime()<r.value[0].getTime()||e.disabledTime(u,1);return()=>{const u=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];return s.createVNode("div",{class:`${n}-time-range`},[s.createVNode(Ms,_t(Fe({},e),{"onUpdate:value":i,value:r.value[0],defaultValue:u[0],disabledTime:l}),null),s.createVNode(Ms,_t(Fe({},e),{"onUpdate:value":a,value:r.value[1],defaultValue:u[1],disabledTime:c}),null)])}}const mu=Al;var gu=$n(CI,mu);function f5(t){const e=s.ref(!1),n=()=>{var i;e.value=!1,(i=t.onShowTimePanelChange)==null||i.call(t,!1)},r=()=>{var i;e.value=!0,(i=t.onShowTimePanelChange)==null||i.call(t,!0)};return{timeVisible:s.computed(()=>typeof t.showTimePanel=="boolean"?t.showTimePanel:e.value),openTimePanel:r,closeTimePanel:n}}function kI(t){const e=Fn(t,{disabledTime:()=>!1,defaultValue:fr(new Date)}),n=s.ref(e.value);s.watchEffect(()=>{n.value=e.value});const{openTimePanel:r,closeTimePanel:o,timeVisible:i}=f5(e),a=(l,c)=>{var u;c==="date"&&r();let d=Il(l,Tl(e.value,e.defaultValue));if(e.disabledTime(new Date(d))&&(d=Il(l,e.defaultValue),e.disabledTime(new Date(d)))){n.value=d;return}(u=e["onUpdate:value"])==null||u.call(e,d,c)};return()=>{const l=ut(),c=_t(Fe({},Vn(e,Pl)),{multiple:!1,type:"date",value:n.value,"onUpdate:value":a}),u=_t(Fe({},Vn(e,Al)),{showTimeHeader:!0,value:n.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:o});return s.createVNode("div",{class:`${l}-date-time`},[s.createVNode(Bl,c,null),i.value&&s.createVNode(Ms,u,null)])}}const p5=dr()(["showTimePanel","onShowTimePanelChange"]),SI=[...p5,...Pl,...Al];var h5=$n(kI,SI);function EI(t){const e=Fn(t,{defaultValue:fr(new Date),disabledTime:()=>!1}),n=s.ref(e.value);s.watchEffect(()=>{n.value=e.value});const{openTimePanel:r,closeTimePanel:o,timeVisible:i}=f5(e),a=(l,c)=>{var u;c==="date"&&r();const d=Array.isArray(e.defaultValue)?e.defaultValue:[e.defaultValue,e.defaultValue];let f=l.map((p,h)=>{const m=ro(e.value)?e.value[h]:d[h];return Il(p,m)});if(f[1].getTime()<f[0].getTime()&&(f=[f[0],f[0]]),f.some(e.disabledTime)&&(f=l.map((p,h)=>Il(p,d[h])),f.some(e.disabledTime))){n.value=f;return}(u=e["onUpdate:value"])==null||u.call(e,f,c)};return()=>{const l=ut(),c=_t(Fe({},Vn(e,du)),{type:"date",value:n.value,"onUpdate:value":a}),u=_t(Fe({},Vn(e,mu)),{showTimeHeader:!0,value:n.value,"onUpdate:value":e["onUpdate:value"],onClickTitle:o});return s.createVNode("div",{class:`${l}-date-time-range`},[s.createVNode(fu,c,null),i.value&&s.createVNode(gu,u,null)])}}const OI=[...p5,...mu,...du];var m5=$n(EI,OI);const TI=dr()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),g5={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function y5(t,{slots:e}){const n=t.type||"date",r=t.format||g5[n]||g5.date,o=_t(Fe({},_M(t,TI)),{type:n,format:r});return s.createVNode(l5,Vn(o,l5.props),Fe({content:i=>{if(o.range){const a=n==="time"?gu:n==="datetime"?m5:fu;return s.h(a,Vn(Fe(Fe({},o),i),a.props))}else{const a=n==="time"?Ms:n==="datetime"?h5:Bl;return s.h(a,Vn(Fe(Fe({},o),i),a.props))}},"icon-calendar":()=>n==="time"?s.createVNode(XM,null,null):s.createVNode(s5,null,null)},e))}var qo=Object.assign(y5,{locale:Xg,install:t=>{t.component("DatePicker",y5)}},{Calendar:Bl,CalendarRange:fu,TimePanel:Ms,TimeRange:gu,DateTime:h5,DateTimeRange:m5}),MI={months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],monthsShort:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],weekdays:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],weekdaysShort:["dom","lun","mar","mié","jue","vie","sáb"],weekdaysMin:["do","lu","ma","mi","ju","vi","sá"],firstDayOfWeek:1,firstWeekContainsDate:1};const II={formatLocale:MI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("es",II);var xI={months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","März","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"],weekdays:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],weekdaysShort:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],weekdaysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],firstDayOfWeek:1,firstWeekContainsDate:4};const PI={formatLocale:xI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("de",PI);var BI={months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],monthsShort:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],weekdays:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],weekdaysShort:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],weekdaysMin:["di","lu","ma","me","je","ve","sa"],firstDayOfWeek:1,firstWeekContainsDate:1};const AI={formatLocale:BI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("fr",AI);var DI={months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthsShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],weekdays:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],weekdaysShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekdaysMin:["Do","2ª","3ª","4ª","5ª","6ª","Sá"],firstDayOfWeek:1,firstWeekContainsDate:4};const NI={formatLocale:DI,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};qo.locale("pt",NI);var LI={months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],weekdays:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],weekdaysShort:["周日","周一","周二","周三","周四","周五","周六"],weekdaysMin:["日","一","二","三","四","五","六"],firstDayOfWeek:1,firstWeekContainsDate:4,meridiemParse:/上午|下午/,meridiem:function(e){return e<12?"上午":"下午"},isPM:function(e){return e==="下午"}};const RI={formatLocale:LI,yearFormat:"YYYY年",monthFormat:"MMM",monthBeforeYear:!1};qo.locale("zh-cn",RI);const VI=s.defineComponent({name:"QDatePicker",components:{DatePicker:qo},props:{id:{type:String,default:""},modelValue:{type:[Date,String],deafult:""},disabled:{type:Boolean,default:!1},disabledDate:{type:Function,default:()=>{}},disabledBeforeToday:{type:Boolean,default:!1},disabledAfterToday:{type:Boolean,default:!1},format:{type:String,default:""},locale:{type:String,default:"en"},placeholder:{type:String,default:""},range:{type:Boolean,default:!1},size:{type:String,default:"lg"},type:{type:String,default:"date"}},emits:["update:modelValue"],setup(t){const e=s.ref("bottom"),n=s.ref(),r=s.ref(!1),o=s.ref(t.modelValue||""),i=s.computed(()=>t.disabledAfterToday?a:t.disabledBeforeToday?l:t.disabledDate),a=u=>u>new Date,l=u=>{const d=new Date;return d.setHours(0,0,0,0),u<d},c=()=>{const u=document.querySelector(".mx-datepicker-main");u&&(e.value=parseInt(u.style.top)<0?"top":"bottom")};return s.watch(r,async u=>{u?window.addEventListener("scroll",c):window.removeEventListener("scroll",c),await s.nextTick(),c()}),{calendarPosition:e,datePicker:n,isOpen:r,value:o,disabledDates:i,disableDatesAfterToday:a,disableDatesBeforeToday:l,getCalendarPosition:c}}}),$I={class:"q-date-picker"};function FI(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("date-picker",!0);return s.openBlock(),s.createElementBlock("div",$I,[s.createVNode(l,{id:t.id,value:t.value,"onUpdate:value":e[0]||(e[0]=c=>t.value=c),"append-to-body":!1,class:s.normalizeClass([`date-picker-${t.size}`,`date-picker-on-${t.calendarPosition}`,{open:t.isOpen}]),disabled:t.disabled,"disabled-date":t.disabledDates,format:t.format,lang:t.locale,placeholder:t.placeholder,range:t.range,type:t.type,ref:"datePicker",onChange:e[1]||(e[1]=c=>t.$emit("update:modelValue",c)),onClose:e[2]||(e[2]=c=>t.isOpen=!1),onOpen:e[3]||(e[3]=c=>t.isOpen=!0)},{"icon-clear":s.withCtx(()=>[s.createVNode(a,{icon:"close",type:"",color:"inkwell-0",size:"sm"})]),"icon-calendar":s.withCtx(()=>[s.createVNode(a,{icon:"calendar",color:"inkwell-0"})]),_:1},8,["id","value","class","disabled","disabled-date","format","lang","placeholder","range","type"])])}const HI=oe(VI,[["render",FI],["__scopeId","data-v-65350518"]]),zI=s.defineComponent({name:"QDivider",props:{borderStyle:{type:String,default:"solid"},borderColor:{type:String,default:"gray-20"},textClass:{type:String,default:""}},emits:["update:modelValue"],setup(t,{slots:e}){return{hasSlotContent:s.computed(()=>!!e.default)}}}),_I={class:"divider relative flex items-center w-full"};function jI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",_I,[s.createElementVNode("div",{class:s.normalizeClass(["flex-grow border-t",["border-"+t.borderStyle,"border-"+t.borderColor]])},null,2),t.hasSlotContent?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["flex-shrink flex items-center px-4 text-center",t.textClass])},[s.renderSlot(t.$slots,"default")],2)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["flex-grow border-t",["border-"+t.borderStyle,"border-"+t.borderColor]])},null,2)])}const ZI=oe(zI,[["render",jI]]);var UI={root:function(e){var n=e.props,r=e.instance;return["p-badge p-component",{"p-badge-no-gutter":I.isNotEmpty(n.value)&&String(n.value).length===1,"p-badge-dot":I.isEmpty(n.value)&&!r.$slots.default,"p-badge-lg":n.size==="large","p-badge-xl":n.size==="xlarge","p-badge-info":n.severity==="info","p-badge-success":n.severity==="success","p-badge-warning":n.severity==="warning","p-badge-danger":n.severity==="danger","p-badge-secondary":n.severity==="secondary","p-badge-contrast":n.severity==="contrast"}]}},WI=xe.extend({name:"badge",classes:UI}),KI={name:"BaseBadge",extends:J,props:{value:{type:[String,Number],default:null},severity:{type:String,default:null},size:{type:String,default:null}},style:WI,provide:function(){return{$parentInstance:this}}},yu={name:"Badge",extends:KI,inheritAttrs:!1};function GI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("span",s.mergeProps({class:t.cx("root")},t.ptmi("root")),[s.renderSlot(t.$slots,"default",{},function(){return[s.createTextVNode(s.toDisplayString(t.value),1)]})],16)}yu.render=GI;var Is={name:"SpinnerIcon",extends:fe},qI=s.createElementVNode("path",{d:"M6.99701 14C5.85441 13.999 4.72939 13.7186 3.72012 13.1832C2.71084 12.6478 1.84795 11.8737 1.20673 10.9284C0.565504 9.98305 0.165424 8.89526 0.041387 7.75989C-0.0826496 6.62453 0.073125 5.47607 0.495122 4.4147C0.917119 3.35333 1.59252 2.4113 2.46241 1.67077C3.33229 0.930247 4.37024 0.413729 5.4857 0.166275C6.60117 -0.0811796 7.76026 -0.0520535 8.86188 0.251112C9.9635 0.554278 10.9742 1.12227 11.8057 1.90555C11.915 2.01493 11.9764 2.16319 11.9764 2.31778C11.9764 2.47236 11.915 2.62062 11.8057 2.73C11.7521 2.78503 11.688 2.82877 11.6171 2.85864C11.5463 2.8885 11.4702 2.90389 11.3933 2.90389C11.3165 2.90389 11.2404 2.8885 11.1695 2.85864C11.0987 2.82877 11.0346 2.78503 10.9809 2.73C9.9998 1.81273 8.73246 1.26138 7.39226 1.16876C6.05206 1.07615 4.72086 1.44794 3.62279 2.22152C2.52471 2.99511 1.72683 4.12325 1.36345 5.41602C1.00008 6.70879 1.09342 8.08723 1.62775 9.31926C2.16209 10.5513 3.10478 11.5617 4.29713 12.1803C5.48947 12.7989 6.85865 12.988 8.17414 12.7157C9.48963 12.4435 10.6711 11.7264 11.5196 10.6854C12.3681 9.64432 12.8319 8.34282 12.8328 7C12.8328 6.84529 12.8943 6.69692 13.0038 6.58752C13.1132 6.47812 13.2616 6.41667 13.4164 6.41667C13.5712 6.41667 13.7196 6.47812 13.8291 6.58752C13.9385 6.69692 14 6.84529 14 7C14 8.85651 13.2622 10.637 11.9489 11.9497C10.6356 13.2625 8.85432 14 6.99701 14Z",fill:"currentColor"},null,-1),YI=[qI];function JI(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),YI,16)}Is.render=JI;function xs(t){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xs(t)}function pr(t,e,n){return e=QI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QI(t){var e=XI(t,"string");return xs(e)=="symbol"?e:String(e)}function XI(t,e){if(xs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ex={root:function(e){var n=e.instance,r=e.props;return["p-button p-component",pr(pr(pr(pr(pr(pr(pr(pr({"p-button-icon-only":n.hasIcon&&!r.label&&!r.badge,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":n.$attrs.disabled||n.$attrs.disabled===""||r.loading,"p-button-loading":r.loading,"p-button-loading-label-only":r.loading&&!n.hasIcon&&r.label,"p-button-link":r.link},"p-button-".concat(r.severity),r.severity),"p-button-raised",r.raised),"p-button-rounded",r.rounded),"p-button-text",r.text),"p-button-outlined",r.outlined),"p-button-sm",r.size==="small"),"p-button-lg",r.size==="large"),"p-button-plain",r.plain)]},loadingIcon:"p-button-loading-icon pi-spin",icon:function(e){var n=e.props;return["p-button-icon",{"p-button-icon-left":n.iconPos==="left"&&n.label,"p-button-icon-right":n.iconPos==="right"&&n.label,"p-button-icon-top":n.iconPos==="top"&&n.label,"p-button-icon-bottom":n.iconPos==="bottom"&&n.label}]},label:"p-button-label"},tx=xe.extend({name:"button",classes:ex}),nx={name:"BaseButton",extends:J,props:{label:{type:String,default:null},icon:{type:String,default:null},iconPos:{type:String,default:"left"},iconClass:{type:String,default:null},badge:{type:String,default:null},badgeClass:{type:String,default:null},badgeSeverity:{type:String,default:null},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:void 0},link:{type:Boolean,default:!1},severity:{type:String,default:null},raised:{type:Boolean,default:!1},rounded:{type:Boolean,default:!1},text:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},size:{type:String,default:null},plain:{type:Boolean,default:!1}},style:tx,provide:function(){return{$parentInstance:this}}},Ps={name:"Button",extends:nx,inheritAttrs:!1,methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{disabled:this.disabled}})}},computed:{disabled:function(){return this.$attrs.disabled||this.$attrs.disabled===""||this.loading},defaultAriaLabel:function(){return this.label?this.label+(this.badge?" "+this.badge:""):this.$attrs.ariaLabel},hasIcon:function(){return this.icon||this.$slots.icon}},components:{SpinnerIcon:Is,Badge:yu},directives:{ripple:wt}},rx=["aria-label","disabled","data-p-severity"];function ox(t,e,n,r,o,i){var a=s.resolveComponent("SpinnerIcon"),l=s.resolveComponent("Badge"),c=s.resolveDirective("ripple");return s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({class:t.cx("root"),type:"button","aria-label":i.defaultAriaLabel,disabled:i.disabled},i.getPTOptions("root"),{"data-p-severity":t.severity}),[s.renderSlot(t.$slots,"default",{},function(){return[t.loading?s.renderSlot(t.$slots,"loadingicon",{key:0,class:s.normalizeClass([t.cx("loadingIcon"),t.cx("icon")])},function(){return[t.loadingIcon?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:0,class:[t.cx("loadingIcon"),t.cx("icon"),t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,class:[t.cx("loadingIcon"),t.cx("icon")],spin:""},t.ptm("loadingIcon")),null,16,["class"]))]}):s.renderSlot(t.$slots,"icon",{key:1,class:s.normalizeClass([t.cx("icon")])},function(){return[t.icon?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:0,class:[t.cx("icon"),t.icon,t.iconClass]},t.ptm("icon")),null,16)):s.createCommentVNode("",!0)]}),s.createElementVNode("span",s.mergeProps({class:t.cx("label")},t.ptm("label")),s.toDisplayString(t.label||" "),17),t.badge?(s.openBlock(),s.createBlock(l,s.mergeProps({key:2,value:t.badge,class:t.badgeClass,severity:t.badgeSeverity,unstyled:t.unstyled},t.ptm("badge")),null,16,["value","class","severity","unstyled"])):s.createCommentVNode("",!0)]})],16,rx)),[[c]])}Ps.render=ox;var bu={name:"PlusIcon",extends:fe},ix=s.createElementVNode("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"},null,-1),sx=[ix];function ax(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),sx,16)}bu.render=ax;var b5={name:"UploadIcon",extends:fe},lx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.58942 9.82197C6.70165 9.93405 6.85328 9.99793 7.012 10C7.17071 9.99793 7.32234 9.93405 7.43458 9.82197C7.54681 9.7099 7.61079 9.55849 7.61286 9.4V2.04798L9.79204 4.22402C9.84752 4.28011 9.91365 4.32457 9.98657 4.35479C10.0595 4.38502 10.1377 4.40039 10.2167 4.40002C10.2956 4.40039 10.3738 4.38502 10.4467 4.35479C10.5197 4.32457 10.5858 4.28011 10.6413 4.22402C10.7538 4.11152 10.817 3.95902 10.817 3.80002C10.817 3.64102 10.7538 3.48852 10.6413 3.37602L7.45127 0.190618C7.44656 0.185584 7.44176 0.180622 7.43687 0.175736C7.32419 0.063214 7.17136 0 7.012 0C6.85264 0 6.69981 0.063214 6.58712 0.175736C6.58181 0.181045 6.5766 0.186443 6.5715 0.191927L3.38282 3.37602C3.27669 3.48976 3.2189 3.6402 3.22165 3.79564C3.2244 3.95108 3.28746 4.09939 3.39755 4.20932C3.50764 4.31925 3.65616 4.38222 3.81182 4.38496C3.96749 4.3877 4.11814 4.33001 4.23204 4.22402L6.41113 2.04807V9.4C6.41321 9.55849 6.47718 9.7099 6.58942 9.82197ZM11.9952 14H2.02883C1.751 13.9887 1.47813 13.9228 1.22584 13.8061C0.973545 13.6894 0.746779 13.5241 0.558517 13.3197C0.370254 13.1154 0.22419 12.876 0.128681 12.6152C0.0331723 12.3545 -0.00990605 12.0775 0.0019109 11.8V9.40005C0.0019109 9.24092 0.065216 9.08831 0.1779 8.97579C0.290584 8.86326 0.443416 8.80005 0.602775 8.80005C0.762134 8.80005 0.914966 8.86326 1.02765 8.97579C1.14033 9.08831 1.20364 9.24092 1.20364 9.40005V11.8C1.18295 12.0376 1.25463 12.274 1.40379 12.4602C1.55296 12.6463 1.76817 12.7681 2.00479 12.8H11.9952C12.2318 12.7681 12.447 12.6463 12.5962 12.4602C12.7453 12.274 12.817 12.0376 12.7963 11.8V9.40005C12.7963 9.24092 12.8596 9.08831 12.9723 8.97579C13.085 8.86326 13.2378 8.80005 13.3972 8.80005C13.5565 8.80005 13.7094 8.86326 13.8221 8.97579C13.9347 9.08831 13.998 9.24092 13.998 9.40005V11.8C14.022 12.3563 13.8251 12.8996 13.45 13.3116C13.0749 13.7236 12.552 13.971 11.9952 14Z",fill:"currentColor"},null,-1),cx=[lx];function ux(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),cx,16)}b5.render=ux;var hr={name:"CheckIcon",extends:fe},dx=s.createElementVNode("path",{d:"M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",fill:"currentColor"},null,-1),fx=[dx];function px(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),fx,16)}hr.render=px;var wu={name:"ExclamationTriangleIcon",extends:fe},hx=s.createElementVNode("path",{d:"M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z",fill:"currentColor"},null,-1),mx=s.createElementVNode("path",{d:"M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z",fill:"currentColor"},null,-1),gx=s.createElementVNode("path",{d:"M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z",fill:"currentColor"},null,-1),yx=[hx,mx,gx];function bx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),yx,16)}wu.render=bx;var vu={name:"InfoCircleIcon",extends:fe},wx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z",fill:"currentColor"},null,-1),vx=[wx];function Cx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),vx,16)}vu.render=Cx;var Cu={name:"TimesCircleIcon",extends:fe},kx=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z",fill:"currentColor"},null,-1),Sx=[kx];function Ex(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Sx,16)}Cu.render=Ex;var Ox={root:function(e){var n=e.props;return"p-message p-component p-message-"+n.severity},wrapper:"p-message-wrapper",icon:"p-message-icon",text:"p-message-text",closeButton:"p-message-close p-link",closeIcon:"p-message-close-icon"},Tx=xe.extend({name:"message",classes:Ox}),Mx={name:"BaseMessage",extends:J,props:{severity:{type:String,default:"info"},closable:{type:Boolean,default:!0},sticky:{type:Boolean,default:!0},life:{type:Number,default:3e3},icon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},closeButtonProps:{type:null,default:null}},style:Tx,provide:function(){return{$parentInstance:this}}},w5={name:"Message",extends:Mx,inheritAttrs:!1,emits:["close","life-end"],timeout:null,data:function(){return{visible:!0}},watch:{sticky:function(e){e||this.closeAfterDelay()}},mounted:function(){this.sticky||this.closeAfterDelay()},methods:{close:function(e){this.visible=!1,this.$emit("close",e)},closeAfterDelay:function(){var e=this;setTimeout(function(){e.visible=!1,e.$emit("life-end")},this.life)}},computed:{iconComponent:function(){return{info:vu,success:hr,warn:wu,error:Cu}[this.severity]},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0}},directives:{ripple:wt},components:{TimesIcon:to,InfoCircleIcon:vu,CheckIcon:hr,ExclamationTriangleIcon:wu,TimesCircleIcon:Cu}};function Bs(t){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function v5(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?v5(Object(n),!0).forEach(function(r){Ix(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v5(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ix(t,e,n){return e=xx(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xx(t){var e=Px(t,"string");return Bs(e)=="symbol"?e:String(e)}function Px(t,e){if(Bs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Bx=["aria-label"];function Ax(t,e,n,r,o,i){var a=s.resolveComponent("TimesIcon"),l=s.resolveDirective("ripple");return s.openBlock(),s.createBlock(s.Transition,s.mergeProps({name:"p-message",appear:""},t.ptmi("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("root"),role:"alert","aria-live":"assertive","aria-atomic":"true"},t.ptm("root")),[t.$slots.container?s.renderSlot(t.$slots,"container",{key:0,onClose:i.close,closeCallback:i.close}):(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("wrapper")},t.ptm("wrapper")),[s.renderSlot(t.$slots,"messageicon",{class:"p-message-icon"},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.icon?"span":i.iconComponent),s.mergeProps({class:[t.cx("icon"),t.icon]},t.ptm("icon")),null,16,["class"]))]}),s.createElementVNode("div",s.mergeProps({class:["p-message-text",t.cx("text")]},t.ptm("text")),[s.renderSlot(t.$slots,"default")],16),t.closable?s.withDirectives((s.openBlock(),s.createElementBlock("button",s.mergeProps({key:0,class:t.cx("closeButton"),"aria-label":i.closeAriaLabel,type:"button",onClick:e[0]||(e[0]=function(c){return i.close(c)})},oo(oo(oo({},t.closeButtonProps),t.ptm("button")),t.ptm("closeButton"))),[s.renderSlot(t.$slots,"closeicon",{},function(){return[t.closeIcon?(s.openBlock(),s.createElementBlock("i",s.mergeProps({key:0,class:[t.cx("closeIcon"),t.closeIcon]},oo(oo({},t.ptm("buttonIcon")),t.ptm("closeIcon"))),null,16)):(s.openBlock(),s.createBlock(a,s.mergeProps({key:1,class:[t.cx("closeIcon"),t.closeIcon]},oo(oo({},t.ptm("buttonIcon")),t.ptm("closeIcon"))),null,16,["class"]))]})],16,Bx)),[[l]]):s.createCommentVNode("",!0)],16))],16),[[s.vShow,o.visible]])]}),_:3},16)}w5.render=Ax;var Dx={root:function(e){var n=e.instance;return["p-progressbar p-component",{"p-progressbar-determinate":n.determinate,"p-progressbar-indeterminate":n.indeterminate}]},container:"p-progressbar-indeterminate-container",value:"p-progressbar-value p-progressbar-value-animate",label:"p-progressbar-label"},Nx=xe.extend({name:"progressbar",classes:Dx}),Lx={name:"BaseProgressBar",extends:J,props:{value:{type:Number,default:null},mode:{type:String,default:"determinate"},showValue:{type:Boolean,default:!0}},style:Nx,provide:function(){return{$parentInstance:this}}},C5={name:"ProgressBar",extends:Lx,inheritAttrs:!1,computed:{progressStyle:function(){return{width:this.value+"%",display:"flex"}},indeterminate:function(){return this.mode==="indeterminate"},determinate:function(){return this.mode==="determinate"}}},Rx=["aria-valuenow"];function Vx(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",s.mergeProps({role:"progressbar",class:t.cx("root"),"aria-valuemin":"0","aria-valuenow":t.value,"aria-valuemax":"100"},t.ptmi("root")),[i.determinate?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("value"),style:i.progressStyle},t.ptm("value")),[t.value!=null&&t.value!==0&&t.showValue?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("label")},t.ptm("label")),[s.renderSlot(t.$slots,"default",{},function(){return[s.createTextVNode(s.toDisplayString(t.value+"%"),1)]})],16)):s.createCommentVNode("",!0)],16)):s.createCommentVNode("",!0),i.indeterminate?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("container")},t.ptm("container")),[s.createElementVNode("div",s.mergeProps({class:t.cx("value")},t.ptm("value")),null,16)],16)):s.createCommentVNode("",!0)],16,Rx)}C5.render=Vx;var $x={root:function(e){var n=e.props;return["p-fileupload p-fileupload-".concat(n.mode," p-component")]},buttonbar:"p-fileupload-buttonbar",chooseButton:function(e){var n=e.instance,r=e.props;return["p-button p-component p-fileupload-choose",{"p-fileupload-choose-selected":r.mode==="basic"&&n.hasFiles,"p-disabled":r.disabled,"p-focus":n.focused}]},chooseIcon:"p-button-icon p-button-icon-left",chooseButtonLabel:"p-button-label",content:"p-fileupload-content",empty:"p-fileupload-empty",uploadIcon:"p-button-icon p-button-icon-left",label:"p-button-label",file:"p-fileupload-file",thumbnail:"p-fileupload-file-thumbnail",details:"p-fileupload-file-details",fileName:"p-fileupload-file-name",fileSize:"p-fileupload-file-size",badge:"p-fileupload-file-badge",actions:"p-fileupload-file-actions",removeButton:"p-fileupload-file-remove"},Fx=xe.extend({name:"fileupload",classes:$x}),Hx={name:"BaseFileUpload",extends:J,props:{name:{type:String,default:null},url:{type:String,default:null},mode:{type:String,default:"advanced"},multiple:{type:Boolean,default:!1},accept:{type:String,default:null},disabled:{type:Boolean,default:!1},auto:{type:Boolean,default:!1},maxFileSize:{type:Number,default:null},invalidFileSizeMessage:{type:String,default:"{0}: Invalid file size, file size should be smaller than {1}."},invalidFileTypeMessage:{type:String,default:"{0}: Invalid file type, allowed file types: {1}."},fileLimit:{type:Number,default:null},invalidFileLimitMessage:{type:String,default:"Maximum number of files exceeded, limit is {0} at most."},withCredentials:{type:Boolean,default:!1},previewWidth:{type:Number,default:50},chooseLabel:{type:String,default:null},uploadLabel:{type:String,default:null},cancelLabel:{type:String,default:null},customUpload:{type:Boolean,default:!1},showUploadButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},chooseIcon:{type:String,default:void 0},uploadIcon:{type:String,default:void 0},cancelIcon:{type:String,default:void 0},style:null,class:null},style:Fx,provide:function(){return{$parentInstance:this}}},k5={name:"FileContent",hostName:"FileUpload",extends:J,emits:["remove"],props:{files:{type:Array,default:function(){return[]}},badgeSeverity:{type:String,default:"warning"},badgeValue:{type:String,default:null},previewWidth:{type:Number,default:50},templates:{type:null,default:null}},methods:{formatSize:function(e){var n,r=1024,o=3,i=((n=this.$primevue.config.locale)===null||n===void 0?void 0:n.fileSizeTypes)||["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e===0)return"0 ".concat(i[0]);var a=Math.floor(Math.log(e)/Math.log(r)),l=parseFloat((e/Math.pow(r,a)).toFixed(o));return"".concat(l," ").concat(i[a])}},components:{FileUploadButton:Ps,FileUploadBadge:yu,TimesIcon:to}},zx=["alt","src","width"];function _x(t,e,n,r,o,i){var a=s.resolveComponent("FileUploadBadge"),l=s.resolveComponent("TimesIcon"),c=s.resolveComponent("FileUploadButton");return s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.files,function(u,d){return s.openBlock(),s.createElementBlock("div",s.mergeProps({key:u.name+u.type+u.size,class:t.cx("file")},t.ptm("file")),[s.createElementVNode("img",s.mergeProps({role:"presentation",class:t.cx("thumbnail"),alt:u.name,src:u.objectURL,width:n.previewWidth},t.ptm("thumbnail")),null,16,zx),s.createElementVNode("div",s.mergeProps({class:t.cx("details")},t.ptm("details")),[s.createElementVNode("div",s.mergeProps({class:t.cx("fileName")},t.ptm("fileName")),s.toDisplayString(u.name),17),s.createElementVNode("span",s.mergeProps({class:t.cx("fileSize")},t.ptm("fileSize")),s.toDisplayString(i.formatSize(u.size)),17),s.createVNode(a,{value:n.badgeValue,class:s.normalizeClass(t.cx("badge")),severity:n.badgeSeverity,unstyled:t.unstyled,pt:t.ptm("badge")},null,8,["value","class","severity","unstyled","pt"])],16),s.createElementVNode("div",s.mergeProps({class:t.cx("actions")},t.ptm("actions")),[s.createVNode(c,{onClick:function(p){return t.$emit("remove",d)},text:"",rounded:"",severity:"danger",class:s.normalizeClass(t.cx("removeButton")),unstyled:t.unstyled,pt:t.ptm("removeButton")},{icon:s.withCtx(function(f){return[n.templates.fileremoveicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.fileremoveicon),{key:0,class:s.normalizeClass(f.class),file:u,index:d},null,8,["class","file","index"])):(s.openBlock(),s.createBlock(l,s.mergeProps({key:1,class:f.class,"aria-hidden":"true"},t.ptm("removeButton").icon),null,16,["class"]))]}),_:2},1032,["onClick","class","unstyled","pt"])],16)],16)}),128)}k5.render=_x;function ku(t){return Ux(t)||Zx(t)||S5(t)||jx()}function jx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
120
120
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zx(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ux(t){if(Array.isArray(t))return Su(t)}function Dl(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=S5(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
121
121
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){a=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function S5(t,e){if(t){if(typeof t=="string")return Su(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Su(t,e)}}function Su(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var E5={name:"FileUpload",extends:Hx,inheritAttrs:!1,emits:["select","uploader","before-upload","progress","upload","error","before-send","clear","remove","remove-uploaded-file"],duplicateIEEvent:!1,data:function(){return{uploadedFileCount:0,files:[],messages:[],focused:!1,progress:null,uploadedFiles:[]}},methods:{onFileSelect:function(e){if(e.type!=="drop"&&this.isIE11()&&this.duplicateIEEvent){this.duplicateIEEvent=!1;return}this.messages=[],this.files=this.files||[];var n=e.dataTransfer?e.dataTransfer.files:e.target.files,r=Dl(n),o;try{for(r.s();!(o=r.n()).done;){var i=o.value;this.isFileSelected(i)||this.validate(i)&&(this.isImage(i)&&(i.objectURL=window.URL.createObjectURL(i)),this.files.push(i))}}catch(a){r.e(a)}finally{r.f()}this.$emit("select",{originalEvent:e,files:this.files}),this.fileLimit&&this.checkFileLimit(),this.auto&&this.hasFiles&&!this.isFileLimitExceeded()&&this.upload(),e.type!=="drop"&&this.isIE11()?this.clearIEInput():this.clearInputElement()},choose:function(){this.$refs.fileInput.click()},upload:function(){var e=this;if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.$emit("uploader",{files:this.files}),this.clear();else{var n=new XMLHttpRequest,r=new FormData;this.$emit("before-upload",{xhr:n,formData:r});var o=Dl(this.files),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;r.append(this.name,a,a.name)}}catch(l){o.e(l)}finally{o.f()}n.upload.addEventListener("progress",function(l){l.lengthComputable&&(e.progress=Math.round(l.loaded*100/l.total)),e.$emit("progress",{originalEvent:l,progress:e.progress})}),n.onreadystatechange=function(){if(n.readyState===4){var l;e.progress=0,n.status>=200&&n.status<300?(e.fileLimit&&(e.uploadedFileCount+=e.files.length),e.$emit("upload",{xhr:n,files:e.files})):e.$emit("error",{xhr:n,files:e.files}),(l=e.uploadedFiles).push.apply(l,ku(e.files)),e.clear()}},n.open("POST",this.url,!0),this.$emit("before-send",{xhr:n,formData:r}),n.withCredentials=this.withCredentials,n.send(r)}},clear:function(){this.files=[],this.messages=null,this.$emit("clear"),this.isAdvanced&&this.clearInputElement()},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},isFileSelected:function(e){if(this.files&&this.files.length){var n=Dl(this.files),r;try{for(n.s();!(r=n.n()).done;){var o=r.value;if(o.name+o.type+o.size===e.name+e.type+e.size)return!0}}catch(i){n.e(i)}finally{n.f()}}return!1},isIE11:function(){return!!window.MSInputMethodContext&&!!document.documentMode},validate:function(e){return this.accept&&!this.isFileTypeValid(e)?(this.messages.push(this.invalidFileTypeMessage.replace("{0}",e.name).replace("{1}",this.accept)),!1):this.maxFileSize&&e.size>this.maxFileSize?(this.messages.push(this.invalidFileSizeMessage.replace("{0}",e.name).replace("{1}",this.formatSize(this.maxFileSize))),!1):!0},isFileTypeValid:function(e){var n=this.accept.split(",").map(function(l){return l.trim()}),r=Dl(n),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,a=this.isWildcard(i)?this.getTypeClass(e.type)===this.getTypeClass(i):e.type==i||this.getFileExtension(e).toLowerCase()===i.toLowerCase();if(a)return!0}}catch(l){r.e(l)}finally{r.f()}return!1},getTypeClass:function(e){return e.substring(0,e.indexOf("/"))},isWildcard:function(e){return e.indexOf("*")!==-1},getFileExtension:function(e){return"."+e.name.split(".").pop()},isImage:function(e){return/^image\//.test(e.type)},onDragEnter:function(e){this.disabled||(e.stopPropagation(),e.preventDefault())},onDragOver:function(e){this.disabled||(!this.isUnstyled&&E.addClass(this.$refs.content,"p-fileupload-highlight"),this.$refs.content.setAttribute("data-p-highlight",!0),e.stopPropagation(),e.preventDefault())},onDragLeave:function(){this.disabled||(!this.isUnstyled&&E.removeClass(this.$refs.content,"p-fileupload-highlight"),this.$refs.content.setAttribute("data-p-highlight",!1))},onDrop:function(e){if(!this.disabled){!this.isUnstyled&&E.removeClass(this.$refs.content,"p-fileupload-highlight"),this.$refs.content.setAttribute("data-p-highlight",!1),e.stopPropagation(),e.preventDefault();var n=e.dataTransfer?e.dataTransfer.files:e.target.files,r=this.multiple||n&&n.length===1;r&&this.onFileSelect(e)}},onBasicUploaderClick:function(e){this.hasFiles?this.upload():e.button===0&&this.$refs.fileInput.click()},remove:function(e){this.clearInputElement();var n=this.files.splice(e,1)[0];this.files=ku(this.files),this.$emit("remove",{file:n,files:this.files})},removeUploadedFile:function(e){var n=this.uploadedFiles.splice(e,1)[0];this.uploadedFiles=ku(this.uploadedFiles),this.$emit("remove-uploaded-file",{file:n,files:this.uploadedFiles})},clearInputElement:function(){this.$refs.fileInput.value=""},clearIEInput:function(){this.$refs.fileInput&&(this.duplicateIEEvent=!0,this.$refs.fileInput.value="")},formatSize:function(e){var n,r=1024,o=3,i=((n=this.$primevue.config.locale)===null||n===void 0?void 0:n.fileSizeTypes)||["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(e===0)return"0 ".concat(i[0]);var a=Math.floor(Math.log(e)/Math.log(r)),l=parseFloat((e/Math.pow(r,a)).toFixed(o));return"".concat(l," ").concat(i[a])},isFileLimitExceeded:function(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focused&&(this.focused=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount},checkFileLimit:function(){this.isFileLimitExceeded()&&this.messages.push(this.invalidFileLimitMessage.replace("{0}",this.fileLimit.toString()))},onMessageClose:function(){this.messages=null}},computed:{isAdvanced:function(){return this.mode==="advanced"},isBasic:function(){return this.mode==="basic"},chooseButtonClass:function(){return[this.cx("chooseButton"),this.class]},basicChooseButtonLabel:function(){return this.auto?this.chooseButtonLabel:this.hasFiles?this.files.map(function(e){return e.name}).join(", "):this.chooseButtonLabel},hasFiles:function(){return this.files&&this.files.length>0},hasUploadedFiles:function(){return this.uploadedFiles&&this.uploadedFiles.length>0},chooseDisabled:function(){return this.disabled||this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount},uploadDisabled:function(){return this.disabled||!this.hasFiles||this.fileLimit&&this.fileLimit<this.files.length},cancelDisabled:function(){return this.disabled||!this.hasFiles},chooseButtonLabel:function(){return this.chooseLabel||this.$primevue.config.locale.choose},uploadButtonLabel:function(){return this.uploadLabel||this.$primevue.config.locale.upload},cancelButtonLabel:function(){return this.cancelLabel||this.$primevue.config.locale.cancel},completedLabel:function(){return this.$primevue.config.locale.completed},pendingLabel:function(){return this.$primevue.config.locale.pending}},components:{FileUploadButton:Ps,FileUploadProgressBar:C5,FileUploadMessage:w5,FileContent:k5,PlusIcon:bu,UploadIcon:b5,TimesIcon:to},directives:{ripple:wt}},Wx=["multiple","accept","disabled"],Kx=["accept","disabled","multiple"];function Gx(t,e,n,r,o,i){var a=s.resolveComponent("FileUploadButton"),l=s.resolveComponent("FileUploadProgressBar"),c=s.resolveComponent("FileUploadMessage"),u=s.resolveComponent("FileContent"),d=s.resolveDirective("ripple");return i.isAdvanced?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("root")},t.ptmi("root")),[s.createElementVNode("input",s.mergeProps({ref:"fileInput",type:"file",onChange:e[0]||(e[0]=function(){return i.onFileSelect&&i.onFileSelect.apply(i,arguments)}),multiple:t.multiple,accept:t.accept,disabled:i.chooseDisabled},t.ptm("input")),null,16,Wx),s.createElementVNode("div",s.mergeProps({class:t.cx("buttonbar")},t.ptm("buttonbar")),[s.renderSlot(t.$slots,"header",{files:o.files,uploadedFiles:o.uploadedFiles,chooseCallback:i.choose,uploadCallback:i.upload,clearCallback:i.clear},function(){return[s.withDirectives((s.openBlock(),s.createElementBlock("span",s.mergeProps({class:i.chooseButtonClass,style:t.style,onClick:e[1]||(e[1]=function(){return i.choose&&i.choose.apply(i,arguments)}),onKeydown:e[2]||(e[2]=s.withKeys(function(){return i.choose&&i.choose.apply(i,arguments)},["enter"])),onFocus:e[3]||(e[3]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[4]||(e[4]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),tabindex:"0"},t.ptm("chooseButton")),[s.renderSlot(t.$slots,"chooseicon",{class:s.normalizeClass(t.cx("chooseIcon"))},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.chooseIcon?"span":"PlusIcon"),s.mergeProps({class:[t.cx("chooseIcon"),t.chooseIcon],"aria-hidden":"true"},t.ptm("chooseIcon")),null,16,["class"]))]}),s.createElementVNode("span",s.mergeProps({class:t.cx("chooseButtonLabel")},t.ptm("chooseButtonLabel")),s.toDisplayString(i.chooseButtonLabel),17)],16)),[[d]]),t.showUploadButton?(s.openBlock(),s.createBlock(a,{key:0,label:i.uploadButtonLabel,onClick:i.upload,disabled:i.uploadDisabled,unstyled:t.unstyled,pt:t.ptm("uploadButton")},{icon:s.withCtx(function(f){return[s.renderSlot(t.$slots,"uploadicon",{},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.uploadIcon?"span":"UploadIcon"),s.mergeProps({class:[f.class,t.uploadIcon],"aria-hidden":"true"},t.ptm("uploadButton").icon,{"data-pc-section":"uploadbuttonicon"}),null,16,["class"]))]})]}),_:3},8,["label","onClick","disabled","unstyled","pt"])):s.createCommentVNode("",!0),t.showCancelButton?(s.openBlock(),s.createBlock(a,{key:1,label:i.cancelButtonLabel,onClick:i.clear,disabled:i.cancelDisabled,unstyled:t.unstyled,pt:t.ptm("cancelButton")},{icon:s.withCtx(function(f){return[s.renderSlot(t.$slots,"cancelicon",{},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.cancelIcon?"span":"TimesIcon"),s.mergeProps({class:[f.class,t.cancelIcon],"aria-hidden":"true"},t.ptm("cancelButton").icon,{"data-pc-section":"cancelbuttonicon"}),null,16,["class"]))]})]}),_:3},8,["label","onClick","disabled","unstyled","pt"])):s.createCommentVNode("",!0)]})],16),s.createElementVNode("div",s.mergeProps({ref:"content",class:t.cx("content"),onDragenter:e[5]||(e[5]=function(){return i.onDragEnter&&i.onDragEnter.apply(i,arguments)}),onDragover:e[6]||(e[6]=function(){return i.onDragOver&&i.onDragOver.apply(i,arguments)}),onDragleave:e[7]||(e[7]=function(){return i.onDragLeave&&i.onDragLeave.apply(i,arguments)}),onDrop:e[8]||(e[8]=function(){return i.onDrop&&i.onDrop.apply(i,arguments)})},t.ptm("content"),{"data-p-highlight":!1}),[s.renderSlot(t.$slots,"content",{files:o.files,uploadedFiles:o.uploadedFiles,removeUploadedFileCallback:i.removeUploadedFile,removeFileCallback:i.remove,progress:o.progress,messages:o.messages},function(){return[i.hasFiles?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{value:o.progress,showValue:!1,unstyled:t.unstyled,pt:t.ptm("progressbar")},null,8,["value","unstyled","pt"]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.messages,function(f){return s.openBlock(),s.createBlock(c,{key:f,severity:"error",onClose:i.onMessageClose,unstyled:t.unstyled,pt:t.ptm("message")},{default:s.withCtx(function(){return[s.createTextVNode(s.toDisplayString(f),1)]}),_:2},1032,["onClose","unstyled","pt"])}),128)),s.createVNode(u,{files:o.files,onRemove:i.remove,badgeValue:i.pendingLabel,previewWidth:t.previewWidth,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["files","onRemove","badgeValue","previewWidth","templates","unstyled","pt"])],64)):s.createCommentVNode("",!0),s.createVNode(u,{files:o.uploadedFiles,onRemove:i.removeUploadedFile,badgeValue:i.completedLabel,badgeSeverity:"success",previewWidth:t.previewWidth,templates:t.$slots,unstyled:t.unstyled,pt:t.pt},null,8,["files","onRemove","badgeValue","previewWidth","templates","unstyled","pt"])]}),t.$slots.empty&&!i.hasFiles&&!i.hasUploadedFiles?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("empty")},t.ptm("empty")),[s.renderSlot(t.$slots,"empty")],16)):s.createCommentVNode("",!0)],16)],16)):i.isBasic?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.messages,function(f){return s.openBlock(),s.createBlock(c,{key:f,severity:"error",onClose:i.onMessageClose,unstyled:t.unstyled,pt:t.ptm("messages")},{default:s.withCtx(function(){return[s.createTextVNode(s.toDisplayString(f),1)]}),_:2},1032,["onClose","unstyled","pt"])}),128)),s.withDirectives((s.openBlock(),s.createElementBlock("span",s.mergeProps({class:i.chooseButtonClass,style:t.style,onMouseup:e[12]||(e[12]=function(){return i.onBasicUploaderClick&&i.onBasicUploaderClick.apply(i,arguments)}),onKeydown:e[13]||(e[13]=s.withKeys(function(){return i.choose&&i.choose.apply(i,arguments)},["enter"])),onFocus:e[14]||(e[14]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[15]||(e[15]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),tabindex:"0"},t.ptm("chooseButton")),[!i.hasFiles||t.auto?s.renderSlot(t.$slots,"uploadicon",{key:0,class:s.normalizeClass(t.cx("uploadIcon"))},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.uploadIcon?"span":"UploadIcon"),s.mergeProps({class:[t.cx("uploadIcon"),t.uploadIcon],"aria-hidden":"true"},t.ptm("uploadIcon")),null,16,["class"]))]}):s.renderSlot(t.$slots,"chooseicon",{key:1,class:s.normalizeClass(t.cx("chooseIcon"))},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.chooseIcon?"span":"PlusIcon"),s.mergeProps({class:[t.cx("chooseIcon"),t.chooseIcon],"aria-hidden":"true"},t.ptm("chooseIcon")),null,16,["class"]))]}),s.createElementVNode("span",s.mergeProps({class:t.cx("label")},t.ptm("label")),s.toDisplayString(i.basicChooseButtonLabel),17),i.hasFiles?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("input",s.mergeProps({key:2,ref:"fileInput",type:"file",accept:t.accept,disabled:t.disabled,multiple:t.multiple,onChange:e[9]||(e[9]=function(){return i.onFileSelect&&i.onFileSelect.apply(i,arguments)}),onFocus:e[10]||(e[10]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[11]||(e[11]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)})},t.ptm("input")),null,16,Kx))],16)),[[d]])],16)):s.createCommentVNode("",!0)}E5.render=Gx;const qx=s.defineComponent({name:"QFileUpload",components:{FileUpload:E5,QBadge:Hr,QImageGallery:Qc},props:{name:{type:Array,default:null},files:{type:Array,default:()=>[]},url:{type:String,default:""},multiple:{type:Boolean,default:!0},filesAllowed:{type:String,default:"image/*,.pdf"},maxFileSize:{type:Number,default:8388608},autoUpload:{type:Boolean,default:!1},customUpload:{type:Boolean,default:!1}},emits:["file-list","upload-error","uploading"],setup(t,{emit:e}){const n=s.ref(null),r=s.ref(t.files);return{fileUpload:n,allFiles:r,onUpload:u=>{console.log("onUpload",u)},onUploadError:u=>{e("upload-error",u)},onUploading:u=>{e("uploading",u)},onRemoveFile:u=>{const d=r.value.findIndex(f=>JSON.stringify(f)===JSON.stringify(u));d!==-1&&r.value.splice(d,1)},onSelectedFiles:u=>{r.value=u.files,e("file-list",r.value)},mq:rn}}}),Yx={class:"file-upload-container w-fit md:w-full"},Jx={key:0,class:"flex flex-col"},Qx={key:0},Xx={class:"rounded-full bg-white border border-gray-40 border-dashed flex justify-center items-center h-28 w-28"},eP={class:"mt-4 mb-0 text-inkwell-0"},tP={key:1};function nP(t,e,n,r,o,i){const a=s.resolveComponent("q-image-gallery"),l=s.resolveComponent("q-icon"),c=s.resolveComponent("FileUpload",!0);return s.openBlock(),s.createElementBlock("div",Yx,[s.createVNode(c,{ref:"fileUpload",name:t.name,url:t.url,multiple:t.multiple,accept:t.filesAllowed,invalidFileSizeMessage:t.$t("HC_ATTACHMENTS_MUST_BE_LESS_THAN_X_MB",{size:t.maxFileSize/1024/1024}),maxFileSize:t.maxFileSize,auto:t.autoUpload,"custom-upload":t.customUpload,onError:e[2]||(e[2]=u=>t.onUploadError(u)),onUpload:e[3]||(e[3]=u=>t.onUpload(u)),onUploader:e[4]||(e[4]=u=>t.onUploading(u)),onSelect:t.onSelectedFiles,pt:{root:{class:"flex flex-col"},content:"!py-0 !px-1 !border-none",buttonbar:{class:"order-last hidden"}},ptOptions:{mergeProps:!0}},{content:s.withCtx(u=>[t.mq.md?(s.openBlock(),s.createElementBlock("div",Jx,[u.files.length>0?(s.openBlock(),s.createElementBlock("div",Qx,[s.createVNode(a,{files:t.allFiles,"show-remove":!0,"onUpdate:modelValue":t.onRemoveFile},null,8,["files","onUpdate:modelValue"])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["flex flex-col items-center justify-center mt-8 bg-gray-0 border border-gray-20 border-dashed rounded-lg min-h-[320px] cursor-pointer",{"border-red-30":u.messages&&u.messages.length>0}]),onClick:e[0]||(e[0]=d=>{var f;return(f=t.fileUpload)==null?void 0:f.choose()})},[s.createElementVNode("div",Xx,[s.createVNode(l,{icon:"paperclip",size:"xl",type:"line",color:"gray-40"})]),s.createElementVNode("div",eP,s.toDisplayString(t.$t("HC_CLICK_DRAG_FILES_HERE")),1)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u.messages,d=>(s.openBlock(),s.createElementBlock("p",{class:"text-red-30 mt-2 text-sm leading-5",key:d},s.toDisplayString(d),1))),128))])):(s.openBlock(),s.createElementBlock("div",tP,[s.createVNode(l,{icon:"paperclip",color:"inkwell-0",size:"md",type:"line",class:"cursor-pointer",onClick:e[1]||(e[1]=d=>{var f;return(f=t.fileUpload)==null?void 0:f.choose()})})]))]),_:1},8,["name","url","multiple","accept","invalidFileSizeMessage","maxFileSize","auto","custom-upload","onSelect"])])}const rP=oe(qx,[["render",nP]]),oP=s.defineComponent({name:"QIcon",props:{},setup(){}}),iP={class:"footer-actions"};function sP(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",iP,[s.renderSlot(t.$slots,"default",{},void 0,!0)])}const aP=oe(oP,[["render",sP],["__scopeId","data-v-ca1eb5be"]]),lP=s.defineComponent({name:"QFormGroup",props:{labelFor:{type:String,required:!0},required:{type:Boolean,default:!1},status:{type:String,default:""}},setup(){return{}}}),cP={class:"form-group"},uP=["for"],dP={class:"label-text"},fP={key:0,class:"required"};function pP(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",cP,[s.createElementVNode("label",{for:t.labelFor},[s.createElementVNode("div",dP,[s.renderSlot(t.$slots,"label",{},void 0,!0)]),t.required?(s.openBlock(),s.createElementBlock("div",fP," *"+s.toDisplayString(t.$t("HC_REQUIRED")),1)):s.createCommentVNode("",!0)],8,uP),s.renderSlot(t.$slots,"default",{},void 0,!0),s.createElementVNode("div",{class:s.normalizeClass(["message",{"text-red-30":t.status==="error"},{"text-green-20":t.status==="success"}])},[t.status==="error"?(s.openBlock(),s.createBlock(a,{key:0,class:"message-icon",color:"red-30",icon:"exclamation-circle",type:"fill"})):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"message",{},void 0,!0)],2)])}const hP=oe(lP,[["render",pP],["__scopeId","data-v-f2d32e20"]]),Eu=(t,e,n,r,o,i=[])=>{if(e||n&&n.length){let a=!0;t=t.filter(l=>{if(n&&n.length){const c=[];n.forEach(d=>{let f=d.selected;if(!f)return;const p=d.key;Array.isArray(f)||(f=[f]);let h=!1;f.forEach(m=>{const y=m&&m.key?m.key:p,g=m&&y;let b,v="",k=null;g&&(b=y.split(/\./),v=b[0],k=b[1]||null,!k&&(typeof m.value!="boolean"&&l[v]!==m.value||typeof m.value=="boolean"&&typeof l[v]!="boolean"&&!!l[v]!==m.value||typeof m.value=="boolean"&&typeof l[v]=="boolean"&&l[v]!==m.value)||k&&(typeof m.value!="boolean"&&l[v][k]!==m.value||typeof m.value=="boolean"&&typeof l[v][k]!="boolean"&&!!l[v][k]!==m.value||typeof m.value=="boolean"&&typeof l[v][k]=="boolean"&&l[v][k]!==m.value)||(h=!0))}),c.push(h)});const u=c.filter(d=>!!d).length;if(c.length>0&&u!==c.length)return!1}if(e){if(typeof l=="string")return String(l).toLocaleLowerCase().includes(e.toLocaleLowerCase());a=Object.keys(l).some(c=>i.includes(c)?!1:typeof l[c]=="object"&&l[c]?Object.keys(l[c]).some(u=>i.includes(u)?!1:String(l[c][u]).toLocaleLowerCase().includes(e.toLocaleLowerCase())):String(l[c]).toLocaleLowerCase().includes(e.toLocaleLowerCase()))}return a})}return r&&(t=t.sort((a,l)=>{if(a===null||a==="")return 1;if(l===null||l==="")return-1;if(r.includes(".")){const c=r.split(".")[0],u=r.split(".")[1];if(a[c]===null||a[c]==="")return 1;if(l[c]===null||l[c]==="")return-1;a=a[c][u],l=l[c][u]}else a=a[r],l=l[r];return typeof a=="string"&&typeof l=="string"&&(a=a.toLowerCase(),l=l.toLowerCase()),typeof a!="string"&&typeof l!="string"&&(a=parseInt(a),l=parseInt(l)),(a===l?0:a>l?1:-1)*o})),t},mP=s.defineComponent({name:"QGrid",components:{QBadge:Hr},props:{id:{type:String,default:""},columns:{type:Number,default:4},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},gridData:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},statusClasses:{type:Object}},emits:["select-grid-item","filters-updated"],setup(t,{emit:e}){const{t:n}=eo(),r=s.ref(""),o=s.computed(()=>{const f=t.filters,p=Eu(t.gridData,r.value,f,void 0,void 0,t.exclude);return e("filters-updated",p),p}),i=s.computed(()=>t.columns?`q-grid-cols-${t.columns}`:""),a=s.computed(()=>o.value.length%t.columns===0),l=s.computed(()=>t.noResultMessage||n("HC_NO_RESULTS_FOUND")),c=s.computed(()=>{const f=[],p={};return[...Array(t.skeletonRows*t.columns)].forEach(()=>{f.push(p)}),f});return{searchBy:r,filteredGridData:o,gridColumnCount:i,lastRowWillBeFilled:a,noResultsText:l,skeletonData:c,getCellClasses:f=>{const p=o.value.length?o.value:c.value,h=Math.ceil(p.length/t.columns),m=Math.floor(f/t.columns),y=m===0,g=m===h-1,b=f===p.length-1,v=m===h-2,k=f+t.columns>=p.length;return{"!border-t-[0.09375rem]":y,"!border-b-[0.09375rem]":g||k&&v,"!border-l-[0.09375rem]":f%t.columns===0,"!border-r-[0.09375rem]":f%t.columns===t.columns-1||b,"!rounded-tl-md":y&&f%t.columns===0,"!rounded-tr-md":y&&(f%t.columns===t.columns-1||b),"!rounded-bl-md":g&&f%t.columns===0,"!rounded-br-md":b||v&&p.length%t.columns!==0&&f%t.columns===t.columns-1}},selectGridItem:f=>{o.value.find(p=>{p.active&&(p.active=!1)}),f.active=!0,e("select-grid-item",f)},mq:rn}}}),gP=["id"],yP={key:0,class:"grid-filters"},bP={class:"grid-search"},wP={for:"grid-search",class:"search-label"},vP={key:0,class:"grid-filter-actions"},CP={class:"relative flex"},kP={class:"grid-wrapper"},SP=["onClick"],EP={key:1,class:"no-grid-result"};function OP(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("q-input"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",{id:t.id,class:s.normalizeClass(["grid-container h-full w-full",{"is-loading":t.loading}])},[t.hasSearch?s.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[s.createElementVNode("div",{class:s.normalizeClass(["search-and-filters !pr-0",{"bg-gray-30 animate-shimmer":t.loading}])},[t.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",yP,[s.createElementVNode("div",bP,[t.hasSearch?s.renderSlot(t.$slots,"grid-search",{key:0},()=>[s.createElementVNode("label",wP,[s.createVNode(l,{id:"grid-search",modelValue:t.searchBy,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchBy=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0","icon-position":"left"},{default:s.withCtx(()=>[s.createVNode(a,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])])],!0):s.createCommentVNode("",!0)]),Object.keys(t.filters).length?(s.openBlock(),s.createElementBlock("div",vP,[s.renderSlot(t.$slots,"filters",{},()=>[s.createElementVNode("div",CP,[s.createVNode(a,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(s.openBlock(),s.createBlock(c,{key:0,class:"filters-count",color:t.mq.md?"white":"gray-0"},{text:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.filtersCount),1)]),_:1},8,["color"])):s.createCommentVNode("",!0)])],!0)])):s.createCommentVNode("",!0)]))],2)],!0):s.createCommentVNode("",!0),s.createElementVNode("div",kP,[t.filteredGridData.length||t.loading?(s.openBlock(),s.createElementBlock("ul",{key:0,class:s.normalizeClass(["grid mb-4 md:mb-0",t.gridColumnCount])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.loading?t.skeletonData:t.filteredGridData,(u,d)=>(s.openBlock(),s.createElementBlock("li",{key:u.id,class:s.normalizeClass(["cursor-pointer truncate","cell",t.statusClasses&&t.statusClasses[u.status],u.active==!0?"active":"",t.mq.md&&t.getCellClasses(d),{"bg-gray-10 animate-shimmer":t.loading}]),onClick:s.withModifiers(f=>t.selectGridItem(u),["prevent"])},s.toDisplayString(u.name),11,SP))),128))],2)):(s.openBlock(),s.createElementBlock("p",EP,s.toDisplayString(t.noResultsText),1))])],10,gP)}const TP=oe(mP,[["render",OP],["__scopeId","data-v-cfe195f6"]]),MP=s.defineComponent({name:"QIconActionGroup",components:{QButton:Ep,QIcon:Ua},props:{modelValue:{type:String,default:null},isActionable:{type:Boolean,default:!0},isChecklist:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},showStatus:{type:Boolean,default:!1},toggle:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=s.ref(null),r=s.computed(()=>t.isChecklist?t.options.filter(i=>i.state==="pass"):t.options);return{selectedOption:n,filteredOptions:r,onButtonClick:i=>{n.value=i;const l=i.state===t.modelValue&&t.toggle?"default":i.state;e("update:modelValue",l)},mq:rn}}}),IP=["value"],xP={key:1},PP={class:"flex justify-center actions absolute z-0 right-0 inset-y-0 cursor-pointer"},BP={class:"flex items-center justify-center"};function AP(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("q-button");return t.mq.lg?(s.openBlock(),s.createElementBlock("div",{key:0,value:t.modelValue,class:s.normalizeClass(["flex text-right gap-4 justify-end mr-4 py-4",t.isActionable?"":"pointer-events-none"])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.filteredOptions,c=>(s.openBlock(),s.createElementBlock("div",{key:c.state},[s.createVNode(l,s.mergeProps({class:[c.state===t.modelValue?c.activeClass:c.idleClass,c.btnClasses],loading:c.loading,"is-fab":"",size:"sm"},{[s.toHandlerKey(t.isActionable&&!c.loading&&"click")]:u=>t.onButtonClick(c)}),{default:s.withCtx(()=>[s.createVNode(a,{icon:c.icon,class:s.normalizeClass(c.iconClasses||"!p-[0.3rem]"),type:c.iconType||"line",size:"sm",color:"white"},null,8,["icon","class","type"])]),_:2},1040,["class","loading"])]))),128))],10,IP)):(s.openBlock(),s.createElementBlock("div",xP,[s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>[t.selectedOption&&t.showStatus?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["status w-2 h-full absolute right-0 inset-y-0 z-20",t.selectedOption.activeClass])},null,2)):s.createCommentVNode("",!0)]),_:1}),s.createElementVNode("div",PP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.filteredOptions,c=>(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:c.state,class:`flex items-center justify-center w-14 h-full ${c.activeClass}`},{[s.toHandlerKey(t.isActionable&&!c.loading&&"click")]:u=>t.onButtonClick(c)}),[s.createVNode(a,{icon:c.icon,type:c.iconType||"line",size:"lg",color:"white"},null,8,["icon","type"])],16))),128))]),s.createVNode(s.Transition,{name:"fade"},{default:s.withCtx(()=>{var c,u,d,f;return[(c=t.selectedOption)!=null&&c.loading?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["absolute flex items-center justify-center inset-0 text-white z-10",(u=t.selectedOption)==null?void 0:u.activeClass])},[s.createElementVNode("div",BP,[s.createVNode(a,{icon:(d=t.selectedOption)==null?void 0:d.icon,type:((f=t.selectedOption)==null?void 0:f.iconType)||"line",size:"lg",color:"white"},null,8,["icon","type"])])],2)):s.createCommentVNode("",!0)]}),_:1})]))}const DP=oe(MP,[["render",AP],["__scopeId","data-v-80f2446a"]]),O5="eye",T5="eye-slash",NP=s.defineComponent({name:"QInput",inheritAttrs:!1,props:{modelValue:{type:[Number,Object,String],default:""},type:{type:String,default:"text",validator:t=>["email","number","password","phone","search","text"].includes(t)},placeholder:{type:String,default:""},maxlength:{type:Number,default:null},size:{type:String,default:"md"},status:{type:String,default:""},controlClass:{type:String,default:""},inputClass:{type:String,default:""},disabled:{type:Boolean,default:!1},autocomplete:{type:String,default:"off"},hideClear:{type:Boolean,default:!1},iconPosition:{type:String,default:"right"}},emits:["update:model-value","update-type"],setup(t,{emit:e}){const n=s.useSlots(),r=s.ref(null),o=s.ref(!1),i=s.ref(t.type==="password"?O5:""),a=s.computed(()=>!!t.disabled),l=s.computed(()=>{const m=i.value;return!!t.modelValue&&!a.value&&(d.value&&t.iconPosition==="left"||!m)}),c=s.computed(()=>["control flex items-center",{focused:!!o.value},{disabled:a.value},{[`has-icon-${t.iconPosition}`]:!!t.iconPosition},t.controlClass,{["size-"+t.size]:t.size}]),u=s.computed(()=>["input",{[t.status]:t.status&&!a.value},{[t.inputClass]:!!t.inputClass},{populated:!!t.modelValue}]),d=s.computed(()=>!!(n!=null&&n.default)),f=()=>{const m=t.type==="password",y=t.type==="text"&&i.value===T5;(m||y)&&p()},p=()=>{const m=t.type==="text"?"password":"text";i.value=m==="text"?T5:O5,e("update-type",m)};return{currentInput:r,focused:o,icon:i,rootClasses:c,inputClasses:u,isDisabled:a,showClearIcon:l,isSlotAvailable:d,onClickIcon:f,togglePasswordVisibility:p,updateValue:m=>{e("update:model-value",m.target.value)},mq:rn}}}),LP=["id","type","disabled","autocomplete","maxlength","value","placeholder"];function RP(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",{ref:"currentInput",class:s.normalizeClass(t.rootClasses)},[s.createElementVNode("input",s.mergeProps({id:String(t.$attrs.id),ref:String(t.$attrs.id),type:t.type,disabled:t.isDisabled,class:t.inputClasses,autocomplete:t.autocomplete,maxlength:t.maxlength,value:t.modelValue,placeholder:t.placeholder},t.$attrs,{onInput:e[0]||(e[0]=l=>t.updateValue(l)),onFocusin:e[1]||(e[1]=l=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=l=>t.focused=!t.focused),onBlur:e[3]||(e[3]=l=>t.focused=!0)}),null,16,LP),t.isSlotAvailable||t.icon?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["flex",{"order-first pr-2":t.iconPosition==="left"}])},[s.renderSlot(t.$slots,"default",s.normalizeProps(s.guardReactiveProps({icon:t.icon,onClickIcon:t.onClickIcon})),()=>[s.createVNode(a,{icon:t.icon,size:"md",class:"cursor-pointer",onClick:t.onClickIcon},null,8,["icon","onClick"])],!0)],2)):s.createCommentVNode("",!0),t.showClearIcon&&!t.hideClear?(s.openBlock(),s.createElementBlock("div",{key:1,class:"close cursor-pointer flex order-3",onClick:e[4]||(e[4]=l=>t.$emit("update:model-value","")),onMousedown:e[5]||(e[5]=s.withModifiers(()=>{},["prevent"]))},[t.mq.md?(s.openBlock(),s.createBlock(a,{key:0,icon:"close",size:"sm",type:"line"})):(s.openBlock(),s.createBlock(a,{key:1,icon:"delete-circle",color:"inkwell-0",size:"md",type:"fill"}))],32)):s.createCommentVNode("",!0)],2)}const VP=oe(NP,[["render",RP],["__scopeId","data-v-320db1d7"]]),$P=s.defineComponent({name:"QList",components:{QBadge:Hr},props:{id:{type:String,default:""},data:{type:Array,default:()=>[]},hideSearch:{type:Boolean,default:!1},exclude:{type:Array,default:()=>[]},filters:{type:Array,default:()=>[]},filtersCount:{type:Number,default:0},hasSearch:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},noResultMessage:{type:String,default:""},searchText:{type:String,default:""},searchPlaceholder:{type:String,default:""},skeletonRows:{type:Number,default:6},type:{type:String,default:"row"}},emits:["filters-action","filters-updated","click:list-item"],setup(t,{emit:e}){const{y:n}=T8(),{y:r}=S8(window,{behavior:"smooth"}),o=s.ref(0),i=s.ref("down"),a=s.ref(0),l=s.ref(!1),c=s.ref(!0),u=s.ref(rn.md?!1:t.hideSearch),d=s.ref(!u.value),f={type:"keyframe",ease:"linear",duration:0,delay:0},p=s.ref(null),h=s.ref(null),m=s.ref(""),{motionProperties:y}=q2(p),{push:g}=U2(),b=s.computed(()=>{const T=Eu(t.data,v.value,t.filters,void 0,void 0,t.exclude);return e("filters-updated",T),T}),v=s.computed(()=>t.searchText||m.value),k=s.computed(()=>n.value<=0?70:n.value>70?0:70-n.value),w=T=>{!T.dragging&&n.value<=24&&n.value>=0&&(r.value=0),!T.dragging&&n.value>24&&n.value<70&&(r.value=70),!(n.value>0)&&(l.value?C(T):M(T))};u.value&&r1(w,{domTarget:p,filterTaps:!0,useTouch:!0,delay:100});const M=T=>{T.tap||T.axis==="x"||(l.value=!0)},C=T=>{if(T.tap||T.axis==="x")return;const B=T.direction[1],A=B>=0,D=B<=0&&n.value<=0;!d.value&&(A||D)&&S(!D,"drag"),l.value=!1},S=async(T,B)=>{if(d.value=T,await s.nextTick(),c.value&&i.value==="up"&&n.value<=0||B==="drag"){const A=k.value?k.value:0;g("y",A,y,f),c.value=!1}},O=()=>{const T=Math.max(0,n.value)>o.value?"down":"up";T!==i.value&&(i.value=T),n.value<70&&S(!0,"scroll"),o.value=Math.max(0,n.value)};return s.onMounted(()=>{u.value&&(a.value=p.value.offsetTop-16,window.addEventListener("scroll",O))}),s.onUnmounted(()=>{u.value&&window.removeEventListener("scroll",O)}),{defaultSearchTop:a,isDragging:l,isSearchVisible:d,hiddenSearch:u,listRef:p,prevScrollY:o,scrollY:n,scrollToY:r,searchRef:h,searchValue:m,direction:i,filteredData:b,searchBy:v,searchHeight:k,onScroll:O,toggleSearch:S,mq:rn}}}),Nl=t=>(s.pushScopeId("data-v-7f414e39"),t=t(),s.popScopeId(),t),FP=["id"],HP={key:0},zP={key:0,class:"list-filters"},_P={class:"relative flex"},jP={key:1,class:"search-and-filters loading-state"},ZP=[Nl(()=>s.createElementVNode("div",{class:"loading-search animate-shimmer bg-gray-10"},null,-1)),Nl(()=>s.createElementVNode("div",{class:"loading-filters animate-shimmer bg-gray-30"},null,-1))],UP={ref:"listRef",class:"outer-list-wrapper select-none"},WP={key:0},KP={key:0,class:"list-wrapper"},GP=["onClick"],qP={key:1,class:"list ordered-list"},YP=["onClick"],JP={key:1,class:"no-results"},QP={key:1,class:"list-wrapper"},XP={class:"list loading-list"},eB=[Nl(()=>s.createElementVNode("div",{class:"animate-shimmer bg-gray-30 loading-top mb-3"},null,-1)),Nl(()=>s.createElementVNode("div",{class:"animate-shimmer bg-gray-10 loading-bottom"},null,-1))];function tB(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("q-input"),c=s.resolveComponent("q-badge");return s.openBlock(),s.createElementBlock("div",{id:t.id,class:"q-list"},[t.hasSearch||t.filters.length?s.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[s.createElementVNode("div",{ref:"searchRef",class:s.normalizeClass(["search-and-filter-wrapper",{"fixed right-0 left-0 top-0 pt-4 pl-4 pr-4 z-10 bg-white overflow-hidden":t.hiddenSearch},{"is-shown border-b border-gray-20":t.hiddenSearch&&t.isSearchVisible},{"!hidden h-px":t.hiddenSearch&&t.searchHeight<=16}]),style:s.normalizeStyle([t.hiddenSearch&&t.searchHeight>=0?`height: ${t.searchHeight}px;`:"",`top: ${t.defaultSearchTop}px;`])},[t.loading?(s.openBlock(),s.createElementBlock("div",jP,ZP)):(s.openBlock(),s.createElementBlock("div",HP,[s.createElementVNode("div",{class:"search-and-filters",style:s.normalizeStyle(t.hiddenSearch&&t.searchHeight>=0?`height: ${t.searchHeight-32}px;`:"")},[s.createElementVNode("div",{class:"list-search",style:s.normalizeStyle(t.hiddenSearch&&t.searchHeight-32<38?"opacity: "+(t.searchHeight-56)/14+";":t.hiddenSearch&&t.searchHeight-32<24?"opacity; 0;":"")},[t.hasSearch?s.renderSlot(t.$slots,"list-search",{key:0},()=>[s.createElementVNode("label",{for:"list-search",class:s.normalizeClass(["search-label",{"!hidden":t.hiddenSearch&&t.searchHeight-32<=0}])},[s.createVNode(l,{id:"list-search",modelValue:t.searchValue,"onUpdate:modelValue":e[0]||(e[0]=u=>t.searchValue=u),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base placeholder-inkwell-0","control-class":"!border-0 !pl-2 !pr-1.5 md:!px-3","icon-position":"left",size:"xs"},{default:s.withCtx(()=>[s.createVNode(a,{color:"inkwell-0",icon:"search",size:"md",type:"",class:"cursor-default"})]),_:1},8,["modelValue","hide-clear","placeholder"])],2)],!0):s.createCommentVNode("",!0)],4),t.filters.length&&t.type==="row"?(s.openBlock(),s.createElementBlock("div",zP,[s.renderSlot(t.$slots,"list-filters",{},()=>[s.createElementVNode("div",_P,[s.createVNode(a,{class:"filters-icon",color:"inkwell-0",icon:"filter",size:"md",onClick:e[1]||(e[1]=u=>t.$emit("filters-action"))}),t.filtersCount?(s.openBlock(),s.createBlock(c,{key:0,class:"filters-count",color:"gray-0"},{text:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.filtersCount),1)]),_:1})):s.createCommentVNode("",!0)])],!0)])):s.createCommentVNode("",!0)],4)])),s.renderSlot(t.$slots,"search-separator",{},()=>[s.createElementVNode("hr",{class:s.normalizeClass(["search-separator",{"!mb-0 hidden":t.hiddenSearch}])},null,2)],!0)],6)],!0):s.createCommentVNode("",!0),s.createElementVNode("div",UP,[t.loading?(s.openBlock(),s.createElementBlock("div",QP,[s.createElementVNode("ul",XP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.skeletonRows,u=>(s.openBlock(),s.createElementBlock("li",{key:u,class:"list-item"},eB))),128))])])):(s.openBlock(),s.createElementBlock("div",WP,[t.filteredData.length?(s.openBlock(),s.createElementBlock("div",KP,[t.type!=="ordered"?(s.openBlock(),s.createElementBlock("ul",{key:0,class:s.normalizeClass(["list",`${t.type}-list`])},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.filteredData,(u,d)=>(s.openBlock(),s.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[s.renderSlot(t.$slots,"list-item",s.normalizeProps(s.guardReactiveProps({item:u})),()=>[s.createTextVNode(s.toDisplayString(u),1)],!0)],8,GP))),128))],2)):(s.openBlock(),s.createElementBlock("ol",qP,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.filteredData,(u,d)=>(s.openBlock(),s.createElementBlock("li",{key:d,class:"list-item",onClick:f=>t.$emit("click:list-item",u)},[s.renderSlot(t.$slots,"list-item",s.normalizeProps(s.guardReactiveProps({item:u})),()=>[s.createTextVNode(s.toDisplayString(u),1)],!0)],8,YP))),128))]))])):(s.openBlock(),s.createElementBlock("div",JP,[s.renderSlot(t.$slots,"no-results",{},()=>[s.createElementVNode("p",null,s.toDisplayString(t.noResultMessage||t.$t("HC_NO_RESULTS_FOUND")),1)],!0)]))]))],512)],8,FP)}const nB=oe($P,[["render",tB],["__scopeId","data-v-7f414e39"]]),rB=s.defineComponent({name:"QModal",components:{QIcon:Ua},props:{id:{type:String,default:"q-modal"},closeButtonClass:{type:String,default:""},containerClass:{type:String,default:"h-fit min-h-fit"},dismissible:{type:Boolean,default:!0},dismissibleOverlay:{type:Boolean,default:!0},dismissText:{type:String,default:""},overlay:{type:String,default:"white-transparent"},size:{type:String,default:"md"},showCancelLink:{type:Boolean,default:!1},hasBuildingBg:{type:Boolean,default:!1}},emits:["close"],setup(t,{emit:e}){s.provide("size",t.size);const n=()=>{t.dismissible&&e("close")};return s.onUnmounted(()=>{document.body.classList.remove("scroll-disabled")}),s.onMounted(()=>{document.body.classList.add("scroll-disabled")}),{onCloseModal:n}}});function oB(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createElementBlock("div",{ref:"currentModal",class:s.normalizeClass(["q-modal",t.overlay]),onKeydown:e[3]||(e[3]=s.withKeys((...l)=>t.onCloseModal&&t.onCloseModal(...l),["escape"]))},[s.createElementVNode("div",s.mergeProps({class:"overlay"},{[s.toHandlerKey(t.dismissibleOverlay&&"click")]:e[0]||(e[0]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))}),null,16),s.createElementVNode("div",{class:s.normalizeClass(["modal-container flex flex-col relative","modal-"+t.size,t.containerClass,{"building-background":t.hasBuildingBg}])},[t.dismissible?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["modal-close-button",t.closeButtonClass]),onClick:e[1]||(e[1]=(...l)=>t.onCloseModal&&t.onCloseModal(...l))},[s.createVNode(a,{icon:"close",type:"line",color:"gray-40"})],2)):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0),t.showCancelLink?(s.openBlock(),s.createElementBlock("a",{key:1,class:"modal-close-link",href:"#",onClick:e[2]||(e[2]=s.withModifiers(l=>t.$emit("close"),["prevent"]))},s.toDisplayString(t.$t("HC_CANCEL")),1)):s.createCommentVNode("",!0)],2)],34)}const iB=oe(rB,[["render",oB],["__scopeId","data-v-8867a052"]]),sB=s.defineComponent({name:"QModalContent",props:{useFlex:{type:Boolean,default:!1},contentClass:{type:String,default:""},footerClass:{type:String,default:""}},setup(t,{slots:e}){const n=s.inject("size"),r=s.computed(()=>!!e.header),o=s.computed(()=>!!e.footer);return{modalSize:n,hasHeader:r,hasFooter:o}}}),aB={key:0,class:"modal-title mb-2"},lB={class:"text-lg pb-4 font-bold leading-6"};function cB(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["modal-content",t.useFlex?"flex flex-col min-h-full":"","modal-"+t.modalSize])},[t.hasHeader?(s.openBlock(),s.createElementBlock("div",aB,[s.createElementVNode("h2",lB,[s.renderSlot(t.$slots,"header",{},void 0,!0)])])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["modal-body",t.useFlex?"flex-grow":"",t.contentClass])},[s.renderSlot(t.$slots,"body",{},void 0,!0)],2),t.hasFooter?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["modal-actions",t.footerClass])},[s.renderSlot(t.$slots,"footer",{},void 0,!0)],2)):s.createCommentVNode("",!0)],2)}const uB=oe(sB,[["render",cB],["__scopeId","data-v-01edcc7b"]]),dB=s.defineComponent({name:"QPageHeading",props:{backgroundColor:{type:String,default:"green-20"},color:{type:String,default:"white"},fixedTopOffset:{type:Number,default:0}},setup(t){const e=s.ref(!1),n=s.ref(),r=s.ref(),o=()=>{if(r.value){const i=r.value.offsetTop-t.fixedTopOffset;e.value=!!t.fixedTopOffset&&r.value&&window.scrollY>=i,n.value.style.top=e.value?`${t.fixedTopOffset}px`:"",n.value.style.width=e.value?`${r.value.clientWidth}px`:""}};return s.onMounted(()=>{window.addEventListener("resize",o),window.addEventListener("scroll",o)}),{isFixed:e,pageHeading:n,pageHeadingContainer:r,determineFixed:o}}}),fB={class:"flex-grow mb-0"};function pB(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["page-heading-container",{"pt-[3.5rem]":t.isFixed}]),ref:"pageHeadingContainer"},[s.createElementVNode("div",{class:s.normalizeClass(["page-heading flex items-center text-left",`background-${t.backgroundColor}`,`text-${t.color}`,{fixed:t.isFixed}]),ref:"pageHeading"},[s.createElementVNode("h1",fB,[s.renderSlot(t.$slots,"default",{},void 0,!0)]),s.renderSlot(t.$slots,"actions",{},void 0,!0)],2)],2)}const hB=oe(dB,[["render",pB],["__scopeId","data-v-99e0d86b"]]),mB=s.defineComponent({name:"QPageNavigation",props:{fixedTopOffset:{type:Number,default:0}},setup(){return{}}}),gB={class:"navigation-links"};function yB(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{id:"page-navigation",style:s.normalizeStyle(`top: ${t.fixedTopOffset}px;`)},[s.createElementVNode("div",gB,[s.renderSlot(t.$slots,"default",{},void 0,!0)])],4)}const bB=oe(mB,[["render",yB],["__scopeId","data-v-bddbe9bd"]]);function Ou(t){return t===0?!1:Array.isArray(t)&&t.length===0?!0:!t}function wB(t){return(...e)=>!t(...e)}function vB(t,e){return t===void 0&&(t="undefined"),t===null&&(t="null"),t===!1&&(t="false"),t.toString().toLowerCase().indexOf(e.trim())!==-1}function M5(t,e,n,r){return e?t.filter(o=>vB(r(o,n),e)).sort((o,i)=>r(o,n).length-r(i,n).length):t}function CB(t){return t.filter(e=>!e.$isLabel)}function Tu(t,e){return n=>n.reduce((r,o)=>o[t]&&o[t].length?(r.push({$groupLabel:o[e],$isLabel:!0}),r.concat(o[t])):r,[])}function kB(t,e,n,r,o){return i=>i.map(a=>{if(!a[n])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const l=M5(a[n],t,e,o);return l.length?{[r]:a[r],[n]:l}:[]})}const I5=(...t)=>e=>t.reduce((n,r)=>r(n),e);var SB={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(t,e){return Ou(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const t=this.search||"",e=t.toLowerCase().trim();let n=this.options.concat();return this.internalSearch?n=this.groupValues?this.filterAndFlat(n,e,this.label):M5(n,e,this.label,this.customLabel):n=this.groupValues?Tu(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(wB(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&(this.tagPosition==="bottom"?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(t=>t[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(e=>this.customLabel(e,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(t,e,n){return I5(kB(e,n,this.groupValues,this.groupLabel,this.customLabel),Tu(this.groupValues,this.groupLabel))(t)},flatAndStrip(t){return I5(Tu(this.groupValues,this.groupLabel),CB)(t)},updateSearch(t){this.search=t},isExistingOption(t){return this.options?this.optionKeys.indexOf(t)>-1:!1},isSelected(t){const e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled(t){return!!t.$isDisabled},getOptionLabel(t){if(Ou(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;const e=this.customLabel(t,this.label);return Ou(e)?"":e},select(t,e){if(t.$isLabel&&this.groupSelect){this.selectGroup(t);return}if(!(this.blockKeys.indexOf(e)!==-1||this.disabled||t.$isDisabled||t.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(e==="Tab"&&!this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t)){e!=="Tab"&&this.removeElement(t);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([t])):this.$emit("update:modelValue",t),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(t){const e=this.options.find(n=>n[this.groupLabel]===t.$groupLabel);if(e){if(this.wholeGroupSelected(e)){this.$emit("remove",e[this.groupValues],this.id);const n=this.internalValue.filter(r=>e[this.groupValues].indexOf(r)===-1);this.$emit("update:modelValue",n)}else{let n=e[this.groupValues].filter(r=>!(this.isOptionDisabled(r)||this.isSelected(r)));this.max&&n.splice(this.max-this.internalValue.length),this.$emit("select",n,this.id),this.$emit("update:modelValue",this.internalValue.concat(n))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(t){return t[this.groupValues].every(e=>this.isSelected(e)||this.isOptionDisabled(e))},wholeGroupDisabled(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement(t,e=!0){if(this.disabled||t.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const n=typeof t=="object"?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){const r=this.internalValue.slice(0,n).concat(this.internalValue.slice(n+1));this.$emit("update:modelValue",r)}else this.$emit("update:modelValue",null);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}},EB={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight(t,e){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];const n=this.options.find(r=>r[this.groupLabel]===e.$groupLabel);return n&&!this.wholeGroupDisabled(n)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(n)}]:"multiselect__option--disabled"},addPointerElement({key:t}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(t){this.pointer=t,this.pointerDirty=!0}}},x5={name:"vue-multiselect",mixins:[SB,EB],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:t=>`and ${t} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)}}};const OB={ref:"tags",class:"multiselect__tags"},TB={class:"multiselect__tags-wrap"},MB={class:"multiselect__spinner"},IB={key:0},xB={class:"multiselect__option"},PB={class:"multiselect__option"},BB=s.createTextVNode("No elements found. Consider changing the search query."),AB={class:"multiselect__option"},DB=s.createTextVNode("List is empty.");function NB(t,e,n,r,o,i){return s.openBlock(),s.createBlock("div",{tabindex:t.searchable?-1:n.tabindex,class:[{"multiselect--active":t.isOpen,"multiselect--disabled":n.disabled,"multiselect--above":i.isAbove,"multiselect--has-options-group":i.hasOptionGroup},"multiselect"],onFocus:e[14]||(e[14]=a=>t.activate()),onBlur:e[15]||(e[15]=a=>t.searchable?!1:t.deactivate()),onKeydown:[e[16]||(e[16]=s.withKeys(s.withModifiers(a=>t.pointerForward(),["self","prevent"]),["down"])),e[17]||(e[17]=s.withKeys(s.withModifiers(a=>t.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:e[18]||(e[18]=s.withKeys(s.withModifiers(a=>t.addPointerElement(a),["stop","self"]),["enter","tab"])),onKeyup:e[19]||(e[19]=s.withKeys(a=>t.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+t.id},[s.renderSlot(t.$slots,"caret",{toggle:t.toggle},()=>[s.createVNode("div",{onMousedown:e[1]||(e[1]=s.withModifiers(a=>t.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),s.renderSlot(t.$slots,"clear",{search:t.search}),s.createVNode("div",OB,[s.renderSlot(t.$slots,"selection",{search:t.search,remove:t.removeElement,values:i.visibleValues,isOpen:t.isOpen},()=>[s.withDirectives(s.createVNode("div",TB,[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(i.visibleValues,(a,l)=>s.renderSlot(t.$slots,"tag",{option:a,search:t.search,remove:t.removeElement},()=>[(s.openBlock(),s.createBlock("span",{class:"multiselect__tag",key:l},[s.createVNode("span",{textContent:s.toDisplayString(t.getOptionLabel(a))},null,8,["textContent"]),s.createVNode("i",{tabindex:"1",onKeypress:s.withKeys(s.withModifiers(c=>t.removeElement(a),["prevent"]),["enter"]),onMousedown:s.withModifiers(c=>t.removeElement(a),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[s.vShow,i.visibleValues.length>0]]),t.internalValue&&t.internalValue.length>n.limit?s.renderSlot(t.$slots,"limit",{key:0},()=>[s.createVNode("strong",{class:"multiselect__strong",textContent:s.toDisplayString(n.limitText(t.internalValue.length-n.limit))},null,8,["textContent"])]):s.createCommentVNode("v-if",!0)]),s.createVNode(s.Transition,{name:"multiselect__loading"},{default:s.withCtx(()=>[s.renderSlot(t.$slots,"loading",{},()=>[s.withDirectives(s.createVNode("div",MB,null,512),[[s.vShow,n.loading]])])]),_:3}),t.searchable?(s.openBlock(),s.createBlock("input",{key:0,ref:"search",name:n.name,id:t.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:t.placeholder,style:i.inputStyle,value:t.search,disabled:n.disabled,tabindex:n.tabindex,onInput:e[2]||(e[2]=a=>t.updateSearch(a.target.value)),onFocus:e[3]||(e[3]=s.withModifiers(a=>t.activate(),["prevent"])),onBlur:e[4]||(e[4]=s.withModifiers(a=>t.deactivate(),["prevent"])),onKeyup:e[5]||(e[5]=s.withKeys(a=>t.deactivate(),["esc"])),onKeydown:[e[6]||(e[6]=s.withKeys(s.withModifiers(a=>t.pointerForward(),["prevent"]),["down"])),e[7]||(e[7]=s.withKeys(s.withModifiers(a=>t.pointerBackward(),["prevent"]),["up"])),e[9]||(e[9]=s.withKeys(s.withModifiers(a=>t.removeLastElement(),["stop"]),["delete"]))],onKeypress:e[8]||(e[8]=s.withKeys(s.withModifiers(a=>t.addPointerElement(a),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+t.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):s.createCommentVNode("v-if",!0),i.isSingleLabelVisible?(s.openBlock(),s.createBlock("span",{key:1,class:"multiselect__single",onMousedown:e[10]||(e[10]=s.withModifiers((...a)=>t.toggle&&t.toggle(...a),["prevent"]))},[s.renderSlot(t.$slots,"singleLabel",{option:i.singleValue},()=>[s.createTextVNode(s.toDisplayString(t.currentOptionLabel),1)])],32)):s.createCommentVNode("v-if",!0),i.isPlaceholderVisible?(s.openBlock(),s.createBlock("span",{key:2,class:"multiselect__placeholder",onMousedown:e[11]||(e[11]=s.withModifiers((...a)=>t.toggle&&t.toggle(...a),["prevent"]))},[s.renderSlot(t.$slots,"placeholder",{},()=>[s.createTextVNode(s.toDisplayString(t.placeholder),1)])],32)):s.createCommentVNode("v-if",!0)],512),s.createVNode(s.Transition,{name:"multiselect"},{default:s.withCtx(()=>[s.withDirectives(s.createVNode("div",{class:"multiselect__content-wrapper",onFocus:e[12]||(e[12]=(...a)=>t.activate&&t.activate(...a)),tabindex:"-1",onMousedown:e[13]||(e[13]=s.withModifiers(()=>{},["prevent"])),style:{maxHeight:t.optimizedHeight+"px"},ref:"list"},[s.createVNode("ul",{class:"multiselect__content",style:i.contentStyle,role:"listbox",id:"listbox-"+t.id},[s.renderSlot(t.$slots,"beforeList"),t.multiple&&t.max===t.internalValue.length?(s.openBlock(),s.createBlock("li",IB,[s.createVNode("span",xB,[s.renderSlot(t.$slots,"maxElements",{},()=>[s.createTextVNode("Maximum of "+s.toDisplayString(t.max)+" options selected. First remove a selected option to select another.",1)])])])):s.createCommentVNode("v-if",!0),!t.max||t.internalValue.length<t.max?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(t.filteredOptions,(a,l)=>(s.openBlock(),s.createBlock("li",{class:"multiselect__element",key:l,id:t.id+"-"+l,role:a&&(a.$isLabel||a.$isDisabled)?null:"option"},[a&&(a.$isLabel||a.$isDisabled)?s.createCommentVNode("v-if",!0):(s.openBlock(),s.createBlock("span",{key:0,class:[t.optionHighlight(l,a),"multiselect__option"],onClick:s.withModifiers(c=>t.select(a),["stop"]),onMouseenter:s.withModifiers(c=>t.pointerSet(l),["self"]),"data-select":a&&a.isTag?t.tagPlaceholder:i.selectLabelText,"data-selected":i.selectedLabelText,"data-deselect":i.deselectLabelText},[s.renderSlot(t.$slots,"option",{option:a,search:t.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(t.getOptionLabel(a)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),a&&(a.$isLabel||a.$isDisabled)?(s.openBlock(),s.createBlock("span",{key:1,"data-select":t.groupSelect&&i.selectGroupLabelText,"data-deselect":t.groupSelect&&i.deselectGroupLabelText,class:[t.groupHighlight(l,a),"multiselect__option"],onMouseenter:s.withModifiers(c=>t.groupSelect&&t.pointerSet(l),["self"]),onMousedown:s.withModifiers(c=>t.selectGroup(a),["prevent"])},[s.renderSlot(t.$slots,"option",{option:a,search:t.search,index:l},()=>[s.createVNode("span",null,s.toDisplayString(t.getOptionLabel(a)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):s.createCommentVNode("v-if",!0)],8,["id","role"]))),128)):s.createCommentVNode("v-if",!0),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",PB,[s.renderSlot(t.$slots,"noResult",{search:t.search},()=>[BB])])],512),[[s.vShow,n.showNoResults&&t.filteredOptions.length===0&&t.search&&!n.loading]]),s.withDirectives(s.createVNode("li",null,[s.createVNode("span",AB,[s.renderSlot(t.$slots,"noOptions",{},()=>[DB])])],512),[[s.vShow,n.showNoOptions&&(t.options.length===0||i.hasOptionGroup===!0&&t.filteredOptions.length===0)&&!t.search&&!n.loading]]),s.renderSlot(t.$slots,"afterList")],12,["id"])],36),[[s.vShow,t.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}x5.render=NB;const LB=s.defineComponent({name:"QSelect",components:{QBadge:Hr,VueMultiselect:x5},props:{id:{type:String,default:""},options:{type:[Array,Object],required:!0},modelValue:{type:[String,Number,Array,Object],default:""},trackBy:{type:String,default:"id"},label:{type:String,default:"label"},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},taggable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},groupValues:{type:String,default:""},groupLabel:{type:String,default:""},groupSelectable:{type:Boolean,default:!0},hasCheckboxes:{type:Boolean,default:!1},size:{type:String,default:"lg"},info:{type:String,default:""},allowEmpty:{type:Boolean,default:!0},noResultMessage:{type:String,default:""},selectionControl:{type:Boolean,default:!1},showExpanded:{type:Boolean,default:!1},showPlaceholderImage:{type:Boolean,default:!0},showSelectAll:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:""},expand:{type:Boolean,default:!1},showSelectedCount:{type:Boolean,default:!1},truncateTag:{type:Boolean,default:!1},limitShown:{type:Number,default:null},validationMethod:{type:Function,default:()=>!0},showOptionDescription:{type:Boolean,default:!1},showTags:{type:Boolean,default:!1},openDirection:{type:String,default:"bottom"},useAddTagsOnly:{type:Boolean,default:!1}},emits:["update:model-value"],setup(t,{slots:e,emit:n}){const{t:r}=eo(),o=s.ref(null),i=s.ref(null),a=s.ref(t.modelValue),l=s.ref(""),c=s.computed(()=>t.options.length+t.options.reduce((C,S)=>S.libs?C+S.libs.length:0,0)),u=s.computed(()=>!!e.action),d=s.computed(()=>t.noResultMessage||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),f=s.computed(()=>t.tagPlaceholder||r("HC_PRESS_ENTER_TO_CREATE_A_TAG")),p=s.computed(()=>c.value===a.value.length?r("HC_ALL"):a.value.length>1?r("HC_MULTIPLE_SELECTED"):a.value[0].label||a.value[0].name||""),h=s.computed(()=>t.taggable||t.showTags),m=C=>{n("update:model-value",C)},y=C=>{l.value=C},g=async C=>{const S={label:C,name:C,added:!0};if(!t.validationMethod(S)){await s.nextTick(),o.value.search=C;return}},b=()=>{a.value=[],n("update:model-value",a.value)},v=C=>{typeof C=="number"&&C>=0?a.value.splice(C,1):a.value=[],s.nextTick(()=>{n("update:model-value",a.value)})},k=C=>{t.multiple&&a.value&&C.length===a.value.length&&s.nextTick(()=>{a.value=[],n("update:model-value",a.value)})},w=async()=>{if(i.value&&t.searchable){await s.nextTick();const C=i.value.querySelector(".multiselect__content-wrapper"),S=i.value.querySelector(".multiselect__input");S.style.width=C.clientWidth+"px"}},M=async()=>{if(!o.value)return;const C=o.value;a.value=[],t.groupValues?C.filteredOptions.forEach(S=>{a.value.push(S)}):a.value=C.filteredOptions,n("update:model-value",a.value)};return s.watch(()=>t.modelValue,C=>{a.value=C}),{currentSelect:o,search:l,selected:a,hasAction:u,noResultsText:d,noTagFound:f,selectedCount:c,selectedText:p,useTags:h,addTag:g,clearAll:b,onOpen:w,onRemove:k,onUpdateValue:m,removeElement:v,searchChange:y,selectAll:M}}}),RB=["id"],VB=["onMousedown"],$B={key:1,class:"searchable-placeholder"},FB={class:"flex gap-2 px-4 py-3"},HB={key:0,class:"tag-container"},zB={key:0},_B={class:s.normalizeClass(["tag-name text-sm leading-normal pr-2 capitalize"])},jB={key:1},ZB=["onClick"],UB={key:0,class:"text-blue-20 text-xs count"},WB={key:0,class:"text-inkwell-10 text-right truncate font-normal"},KB={key:1,class:"text-blue-20 text-xs ml-2"},GB={class:"text-inkwell-40"},qB={class:"text-inkwell-10 text-right truncate"},YB={key:1,class:"option-selected text-gray-40"},JB={key:3,class:"flex w-full justify-between"},QB={class:"text-inkwell-40 pl-1 text-base font-medium"},XB=["title"],eA={key:2,class:"option-description text-xs pt-0.5 truncate"};function tA(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("q-button"),c=s.resolveComponent("q-badge"),u=s.resolveComponent("vue-multiselect");return s.openBlock(),s.createElementBlock("div",{id:t.id+"-containers",class:"control custom-select",ref:"currentContainer"},[s.createVNode(u,{id:t.id,ref:"currentSelect",modelValue:t.selected,"onUpdate:modelValue":[e[1]||(e[1]=d=>t.selected=d),e[4]||(e[4]=d=>t.onUpdateValue(d))],options:t.options,searchable:t.searchable,multiple:t.multiple,taggable:t.taggable||t.useAddTagsOnly,label:t.label,"track-by":t.trackBy,"group-values":t.groupValues,"group-label":t.groupLabel,"group-select":t.groupSelectable,class:s.normalizeClass([{"has-checkboxes":t.hasCheckboxes},{"selection-control":t.selectionControl},{"select-multiple":!!t.multiple},{"select-taggable":!!t.taggable||!!t.showTags||!!t.useAddTagsOnly},{"select-expand":t.expand},{"select-show-count":!!t.showSelectedCount},{"select-search":!!t.search},{"select-searchable":t.searchable},t.searchable?"cursor-text":"cursor-default","q-select rounded","select-"+t.size]),disabled:t.disabled,"allow-empty":t.allowEmpty,"clear-on-select":!0,"close-on-select":!t.hasCheckboxes&&!t.multiple,"show-tags":t.showTags,"tag-placeholder":t.noTagFound,placeholder:t.placeholder,"preserve-search":!0,"reset-after":!1,"max-height":280,"open-direction":t.openDirection,"select-label":"","deselect-label":"","selected-label":"","select-group-label":"","deselect-group-label":"",onOpen:t.onOpen,onRemove:e[2]||(e[2]=d=>t.onRemove(d)),onTag:t.addTag,onSearchChange:e[3]||(e[3]=d=>t.searchChange(d))},s.createSlots({caret:s.withCtx(({toggle:d})=>[s.createElementVNode("div",{class:s.normalizeClass(["h-full w-full","absolute left-0 top-0","z-[1] cursor-pointer","flex justify-end"]),onMousedown:s.withModifiers(d,["prevent"])},[s.createVNode(a,{icon:"chevron-down",type:"line"})],40,VB),t.searchable?(s.openBlock(),s.createBlock(a,{key:0,class:"search-icon",color:[t.selectionControl?"inkwell-0":"gray-40"],icon:"search",type:""},null,8,["color"])):s.createCommentVNode("",!0),t.searchable&&(t.multiple&&!t.selected.length||!t.multiple&&!t.selected)&&!t.selectionControl?(s.openBlock(),s.createElementBlock("div",$B,s.toDisplayString(t.placeholder),1)):s.createCommentVNode("",!0)]),noResult:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.noResultsText),1)]),singleLabel:s.withCtx(({option:d})=>[d.icon?(s.openBlock(),s.createBlock(a,{key:0,icon:d.icon},null,8,["icon"])):s.createCommentVNode("",!0),d&&t.showPlaceholderImage?s.renderSlot(t.$slots,"optionPrefix",s.normalizeProps(s.mergeProps({key:1},d)),void 0,!0):s.createCommentVNode("",!0),t.selectionControl?s.renderSlot(t.$slots,"controlPlaceholder",{key:2},()=>[s.createTextVNode(s.toDisplayString(t.placeholder),1)],!0):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["option-name",{"text-inkwell-10 text-right truncate":t.selectionControl}])},s.toDisplayString(d.label||d.name||d),3)]),selection:s.withCtx(({values:d,isOpen:f})=>{var p,h,m,y;return[t.useTags?(s.openBlock(),s.createElementBlock("div",HB,[t.groupValues&&t.options[0][t.groupValues].length===d.length?(s.openBlock(),s.createElementBlock("div",zB,[s.createElementVNode("div",{class:s.normalizeClass(["multiselect__tag inline-flex items-center justify-center rounded me-2 z-[1]",{"tag-gray":!!t.showTags}])},[s.createElementVNode("span",_B,s.toDisplayString(t.groupLabel),1),s.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onMousedown:e[0]||(e[0]=s.withModifiers(g=>t.removeElement(t.options[0][t.groupValues]),["prevent","stop"]))},[s.createVNode(a,{icon:"close",color:"white",class:s.normalizeClass(["tag-close flex rounded-full p-1",t.showTags?"bg-inkwell-30":"bg-blue-40"]),type:"line"},null,8,["class"])],32)],2)])):(s.openBlock(),s.createElementBlock("div",jB,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(!t.expand&&t.limitShown?d.slice(0,t.limitShown):d,(g,b)=>(s.openBlock(),s.createElementBlock("div",{key:b,class:s.normalizeClass(["multiselect__tag !inline-flex items-center justify-center rounded mr-2 z-[1]",{"tag-added":g.added},{"tag-gray":!!t.showTags},g.tagClass?g.tagClass:""])},[g.icon?(s.openBlock(),s.createBlock(a,{key:0,icon:g.icon,class:"tag-icon"},null,8,["icon"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass(["tag-name text-sm leading-normal pr-2",{"tag-truncate":t.truncateTag}])},s.toDisplayString(g.label||g.name),3),s.createElementVNode("span",{class:"tag-remove cursor-pointer shrink",tabindex:"1",onClick:v=>t.removeElement(b)},[s.createVNode(a,{icon:"close-thick",color:"white",size:"sm",class:s.normalizeClass(["!p-[0.3rem] tag-close flex rounded-full p-1",g.closeTagClass?g.closeTagClass:t.showTags?"bg-inkwell-30":t.taggable&&g.added?"bg-green-40":"bg-blue-40"]),type:"line"},null,8,["class"])],8,ZB)],2))),128)),!t.expand&&t.showSelectedCount&&t.multiple&&d.length>t.limitShown?(s.openBlock(),s.createElementBlock("span",UB," + "+s.toDisplayString(d.length-t.limitShown)+" more... ",1)):s.createCommentVNode("",!0)]))])):s.createCommentVNode("",!0),!t.showTags&&!t.taggable&&t.multiple&&d.length?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["multiselect__single flex w-full",t.selectionControl?"whitespace-nowrap justify-between":"items-center"])},[s.createElementVNode("span",{class:s.normalizeClass(["option-selected",{capitalize:t.groupValues&&t.options[0][t.groupValues].length===d.length}])},s.toDisplayString(t.selectionControl?t.placeholder:t.groupValues&&t.options[0][t.groupValues].length===d.length?t.groupLabel:d[0].label),3),t.selectionControl?(s.openBlock(),s.createElementBlock("span",WB,s.toDisplayString(t.selectedText),1)):s.createCommentVNode("",!0),t.limitShown&&t.limitShown<d.length&&(!t.groupValues&&d.length!==t.limitShown||t.groupValues&&t.options[0][t.groupValues].length!==d.length)?(s.openBlock(),s.createElementBlock("span",KB," + "+s.toDisplayString(d.length-t.limitShown)+" more... ",1)):s.createCommentVNode("",!0)],2)):f&&!t.useTags&&!t.multiple?(s.openBlock(),s.createElementBlock("div",{key:2,class:s.normalizeClass(["multiselect__single flex w-full",t.selectionControl?"justify-between":"items-center"])},[t.selectionControl?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("span",GB,s.toDisplayString(t.placeholder||""),1),s.createElementVNode("span",qB,s.toDisplayString(((p=t.selected)==null?void 0:p.label)||((h=t.selected)==null?void 0:h.name)||""),1)],64)):(s.openBlock(),s.createElementBlock("span",YB,s.toDisplayString(((m=t.selected)==null?void 0:m.label)||((y=t.selected)==null?void 0:y.name)||""),1))],2)):f&&!t.useTags&&t.multiple&&t.selectionControl?(s.openBlock(),s.createElementBlock("div",JB,[s.createElementVNode("span",QB,s.toDisplayString(t.placeholder||""),1)])):s.createCommentVNode("",!0)]}),option:s.withCtx(({option:d,search:f})=>[s.createElementVNode("div",{class:s.normalizeClass(["flex items-center w-full",{"option-search":d.label===f},{"option-disabled":d.isDisabled}]),title:d.label?d.label:""},[t.multiple&&t.hasCheckboxes?(s.openBlock(),s.createBlock(c,{key:0,"has-icon":!0,class:"selected-checkbox mr-2",shape:"square"},{icon:s.withCtx(()=>[s.createVNode(a,{icon:"check",color:"white",type:"line"})]),_:1})):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["option-icon-name flex items-center",!d.$groupLabel&&t.groupLabel?"pl-0":""])},[d.icon?(s.openBlock(),s.createBlock(a,{key:0,icon:d.icon,class:"mr-1"},null,8,["icon"])):s.createCommentVNode("",!0),d?s.renderSlot(t.$slots,"optionPrefix",s.normalizeProps(s.mergeProps({key:1},d)),void 0,!0):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["option-name",[d.optionClass?d.optionClass:""]])},s.toDisplayString(d.$groupLabel||d.label||d.name||d),3),d.description&&t.showOptionDescription?(s.openBlock(),s.createElementBlock("div",eA,s.toDisplayString(d.description),1)):s.createCommentVNode("",!0),t.multiple&&t.hasCheckboxes?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(a,{key:3,icon:"check",size:"sm",type:"line",color:"inkwell-30",class:"selected-icon"}))],2)],10,XB)]),_:2},[t.showSelectAll?{name:"beforeList",fn:s.withCtx(()=>[s.createElementVNode("div",FB,[s.createVNode(l,{disabled:t.selectedCount===t.selected.length,"no-min-width":!0,class:"!text-sm !font-normal !leading-4",status:"link",onClick:t.selectAll},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.$t("HC_SELECT_ALL")),1)]),_:1},8,["disabled","onClick"]),s.createVNode(l,{disabled:!t.selected.length,"no-min-width":!0,class:"!text-sm !font-normal !leading-4",status:"link",onClick:t.clearAll},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.$t("HC_CLEAR_ALL")),1)]),_:1},8,["disabled","onClick"])])]),key:"0"}:void 0]),1032,["id","modelValue","options","searchable","multiple","taggable","label","track-by","group-values","group-label","group-select","class","disabled","allow-empty","close-on-select","show-tags","tag-placeholder","placeholder","open-direction","onOpen","onTag"])],8,RB)}const nA=oe(LB,[["render",tA],["__scopeId","data-v-db743cbd"]]);var Ve={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Ll={AND:"and",OR:"or"};function P5(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=rA(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
122
122
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,l;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){a=!0,l=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}}}function rA(t,e){if(t){if(typeof t=="string")return B5(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B5(t,e)}}function B5(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mu={filter:function(e,n,r,o,i){var a=[];if(!e)return a;var l=P5(e),c;try{for(l.s();!(c=l.n()).done;){var u=c.value;if(typeof u=="string"){if(this.filters[o](u,r,i)){a.push(u);continue}}else{var d=P5(n),f;try{for(d.s();!(f=d.n()).done;){var p=f.value,h=I.resolveFieldData(u,p);if(this.filters[o](h,r,i)){a.push(u);break}}}catch(m){d.e(m)}finally{d.f()}}}}catch(m){l.e(m)}finally{l.f()}return a},filters:{startsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=I.removeAccents(n.toString()).toLocaleLowerCase(r),i=I.removeAccents(e.toString()).toLocaleLowerCase(r);return i.slice(0,o.length)===o},contains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=I.removeAccents(n.toString()).toLocaleLowerCase(r),i=I.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)!==-1},notContains:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=I.removeAccents(n.toString()).toLocaleLowerCase(r),i=I.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)===-1},endsWith:function(e,n,r){if(n==null||n==="")return!0;if(e==null)return!1;var o=I.removeAccents(n.toString()).toLocaleLowerCase(r),i=I.removeAccents(e.toString()).toLocaleLowerCase(r);return i.indexOf(o,i.length-o.length)!==-1},equals:function(e,n,r){return n==null||n===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():I.removeAccents(e.toString()).toLocaleLowerCase(r)==I.removeAccents(n.toString()).toLocaleLowerCase(r)},notEquals:function(e,n,r){return n==null||n===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():I.removeAccents(e.toString()).toLocaleLowerCase(r)!=I.removeAccents(n.toString()).toLocaleLowerCase(r)},in:function(e,n){if(n==null||n.length===0)return!0;for(var r=0;r<n.length;r++)if(I.equals(e,n[r]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}},A5={name:"ArrowDownIcon",extends:fe},oA=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"},null,-1),iA=[oA];function sA(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),iA,16)}A5.render=sA;var D5={name:"ArrowUpIcon",extends:fe},aA=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"},null,-1),lA=[aA];function cA(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),lA,16)}D5.render=cA;function As(t){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},As(t)}function uA(t,e,n){return e=dA(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dA(t){var e=fA(t,"string");return As(e)=="symbol"?e:String(e)}function fA(t,e){if(As(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var pA={paginator:function(e){var n=e.instance,r=e.key;return["p-paginator p-component",uA({"p-paginator-default":!n.hasBreakpoints()},"p-paginator-".concat(r),n.hasBreakpoints())]},start:"p-paginator-left-content",end:"p-paginator-right-content",firstPageButton:function(e){var n=e.instance;return["p-paginator-first p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},firstPageIcon:"p-paginator-icon",previousPageButton:function(e){var n=e.instance;return["p-paginator-prev p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},previousPageIcon:"p-paginator-icon",nextPageButton:function(e){var n=e.instance;return["p-paginator-next p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},nextPageIcon:"p-paginator-icon",lastPageButton:function(e){var n=e.instance;return["p-paginator-last p-paginator-element p-link",{"p-disabled":n.$attrs.disabled}]},lastPageIcon:"p-paginator-icon",pages:"p-paginator-pages",pageButton:function(e){var n=e.props,r=e.pageLink;return["p-paginator-page p-paginator-element p-link",{"p-highlight":r-1===n.page}]},current:"p-paginator-current",rowPerPageDropdown:"p-paginator-rpp-options",jumpToPageDropdown:"p-paginator-page-options",jumpToPageInput:"p-paginator-page-input"},hA=xe.extend({name:"paginator",classes:pA}),N5={name:"AngleDoubleLeftIcon",extends:fe},mA=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"},null,-1),gA=[mA];function yA(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),gA,16)}N5.render=yA;var L5={name:"BlankIcon",extends:fe},bA=s.createElementVNode("rect",{width:"1",height:"1",fill:"currentColor","fill-opacity":"0"},null,-1),wA=[bA];function vA(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),wA,16)}L5.render=vA;var R5={name:"SearchIcon",extends:fe},CA=s.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z",fill:"currentColor"},null,-1),kA=[CA];function SA(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),kA,16)}R5.render=SA;var mr=o9(),EA=`
|
|
@@ -255,7 +255,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
`);this.responsiveStyleElement.innerHTML=i}},destroyResponsiveStyle:function(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)},destroyStyleElement:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},dataToRender:function(e){var n=e||this.processedData;if(n&&this.paginator){var r=this.lazy?0:this.d_first;return n.slice(r,r+this.d_rows)}return n},getVirtualScrollerRef:function(){return this.$refs.virtualScroller},hasSpacerStyle:function(e){return I.isNotEmpty(e)}},computed:{columns:function(){var e=this.d_columns.get(this);if(this.reorderableColumns&&this.d_columnOrder){var n=[],r=Gs(this.d_columnOrder),o;try{for(r.s();!(o=r.n()).done;){var i=o.value,a=this.findColumnByKey(e,i);a&&!this.columnProp(a,"hidden")&&n.push(a)}}catch(l){r.e(l)}finally{r.f()}return[].concat(n,we(e.filter(function(l){return n.indexOf(l)<0})))}return e},columnGroups:function(){return this.d_columnGroups.get(this)},headerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="header"})},footerColumnGroup:function(){var e,n=this;return(e=this.columnGroups)===null||e===void 0?void 0:e.find(function(r){return n.columnProp(r,"type")==="footer"})},hasFilters:function(){return this.filters&&Object.keys(this.filters).length>0&&this.filters.constructor===Object},processedData:function(){var e,n=this.value||[];return!this.lazy&&!((e=this.virtualScrollerOptions)!==null&&e!==void 0&&e.lazy)&&n&&n.length&&(this.hasFilters&&(n=this.filter(n)),this.sorted&&(this.sortMode==="single"?n=this.sortSingle(n):this.sortMode==="multiple"&&(n=this.sortMultiple(n)))),n},totalRecordsLength:function(){if(this.lazy)return this.totalRecords;var e=this.processedData;return e?e.length:0},empty:function(){var e=this.processedData;return!e||e.length===0},paginatorTop:function(){return this.paginator&&(this.paginatorPosition!=="bottom"||this.paginatorPosition==="both")},paginatorBottom:function(){return this.paginator&&(this.paginatorPosition!=="top"||this.paginatorPosition==="both")},sorted:function(){return this.d_sortField||this.d_multiSortMeta&&this.d_multiSortMeta.length>0},allRowsSelected:function(){var e=this;if(this.selectAll!==null)return this.selectAll;var n=this.frozenValue?[].concat(we(this.frozenValue),we(this.processedData)):this.processedData;return I.isNotEmpty(n)&&this.selection&&Array.isArray(this.selection)&&n.every(function(r){return e.selection.some(function(o){return e.equals(o,r)})})},attributeSelector:function(){return Qt()},groupRowSortField:function(){return this.sortMode==="single"?this.sortField:this.d_groupRowsSortMeta?this.d_groupRowsSortMeta.field:null},virtualScrollerDisabled:function(){return I.isEmpty(this.virtualScrollerOptions)||!this.scrollable}},components:{DTPaginator:u3,DTTableHeader:F3,DTTableBody:T3,DTTableFooter:B3,DTVirtualScroller:Iu,ArrowDownIcon:A5,ArrowUpIcon:D5,SpinnerIcon:Is}};function qs(t){"@babel/helpers - typeof";return qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qs(t)}function Z3(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function U3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Z3(Object(n),!0).forEach(function(r){oR(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z3(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oR(t,e,n){return e=iR(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function iR(t){var e=sR(t,"string");return qs(e)=="symbol"?e:String(e)}function sR(t,e){if(qs(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function aR(t,e,n,r,o,i){var a=s.resolveComponent("SpinnerIcon"),l=s.resolveComponent("DTPaginator"),c=s.resolveComponent("DTTableHeader"),u=s.resolveComponent("DTTableBody"),d=s.resolveComponent("DTTableFooter"),f=s.resolveComponent("DTVirtualScroller");return s.openBlock(),s.createElementBlock("div",s.mergeProps({class:t.cx("root"),"data-scrollselectors":".p-datatable-wrapper"},t.ptmi("root")),[s.renderSlot(t.$slots,"default"),t.loading?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("loadingOverlay")},t.ptm("loadingOverlay")),[t.$slots.loading?s.renderSlot(t.$slots,"loading",{key:0}):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[t.$slots.loadingicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.loadingicon),{key:0,class:s.normalizeClass(t.cx("loadingIcon"))},null,8,["class"])):t.loadingIcon?(s.openBlock(),s.createElementBlock("i",s.mergeProps({key:1,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon]},t.ptm("loadingIcon")),null,16)):(s.openBlock(),s.createBlock(a,s.mergeProps({key:2,spin:"",class:t.cx("loadingIcon")},t.ptm("loadingIcon")),null,16,["class"]))],64))],16)):s.createCommentVNode("",!0),t.$slots.header?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:1,class:t.cx("header")},t.ptm("header")),[s.renderSlot(t.$slots,"header")],16)):s.createCommentVNode("",!0),i.paginatorTop?(s.openBlock(),s.createBlock(l,{key:2,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:s.normalizeClass(t.cx("paginator")),onPage:e[0]||(e[0]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},s.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:s.withCtx(function(){return[s.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:s.withCtx(function(){return[s.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:s.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:s.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({class:t.cx("wrapper"),style:[t.sx("wrapper"),{maxHeight:i.virtualScrollerDisabled?t.scrollHeight:""}]},t.ptm("wrapper")),[s.createVNode(f,s.mergeProps({ref:"virtualScroller"},t.virtualScrollerOptions,{items:i.processedData,columns:i.columns,style:t.scrollHeight!=="flex"?{height:t.scrollHeight}:void 0,scrollHeight:t.scrollHeight!=="flex"?void 0:"100%",disabled:i.virtualScrollerDisabled,loaderDisabled:"",inline:"",autoSize:"",showSpacer:!1,pt:t.ptm("virtualScroller")}),{content:s.withCtx(function(p){return[s.createElementVNode("table",s.mergeProps({ref:"table",role:"table",class:[t.cx("table"),t.tableClass],style:[t.tableStyle,p.spacerStyle]},U3(U3({},t.tableProps),t.ptm("table"))),[s.createVNode(c,{columnGroup:i.headerColumnGroup,columns:p.columns,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,groupRowSortField:i.groupRowSortField,reorderableColumns:t.reorderableColumns,resizableColumns:t.resizableColumns,allRowsSelected:i.allRowsSelected,empty:i.empty,sortMode:t.sortMode,sortField:o.d_sortField,sortOrder:o.d_sortOrder,multiSortMeta:o.d_multiSortMeta,filters:o.d_filters,filtersStore:t.filters,filterDisplay:t.filterDisplay,filterInputProps:t.filterInputProps,onColumnClick:e[1]||(e[1]=function(h){return i.onColumnHeaderClick(h)}),onColumnMousedown:e[2]||(e[2]=function(h){return i.onColumnHeaderMouseDown(h)}),onFilterChange:i.onFilterChange,onFilterApply:i.onFilterApply,onColumnDragstart:e[3]||(e[3]=function(h){return i.onColumnHeaderDragStart(h)}),onColumnDragover:e[4]||(e[4]=function(h){return i.onColumnHeaderDragOver(h)}),onColumnDragleave:e[5]||(e[5]=function(h){return i.onColumnHeaderDragLeave(h)}),onColumnDrop:e[6]||(e[6]=function(h){return i.onColumnHeaderDrop(h)}),onColumnResizestart:e[7]||(e[7]=function(h){return i.onColumnResizeStart(h)}),onCheckboxChange:e[8]||(e[8]=function(h){return i.toggleRowsWithCheckbox(h)}),unstyled:t.unstyled,pt:t.pt},null,8,["columnGroup","columns","rowGroupMode","groupRowsBy","groupRowSortField","reorderableColumns","resizableColumns","allRowsSelected","empty","sortMode","sortField","sortOrder","multiSortMeta","filters","filtersStore","filterDisplay","filterInputProps","onFilterChange","onFilterApply","unstyled","pt"]),t.frozenValue?(s.openBlock(),s.createBlock(u,{key:0,ref:"frozenBodyRef",value:t.frozenValue,frozenRow:!0,columns:p.columns,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,isVirtualScrollerDisabled:!0,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[9]||(e[9]=function(h){return i.onRowClick(h)}),onRowDblclick:e[10]||(e[10]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[11]||(e[11]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:i.onRowKeyDown,onRowMousedown:i.onRowMouseDown,onRowDragstart:e[12]||(e[12]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[13]||(e[13]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[14]||(e[14]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[15]||(e[15]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[16]||(e[16]=function(h){return i.onRowDrop(h)}),onRowToggle:e[17]||(e[17]=function(h){return i.toggleRow(h)}),onRadioChange:e[18]||(e[18]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[19]||(e[19]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[20]||(e[20]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[21]||(e[21]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[22]||(e[22]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[23]||(e[23]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[24]||(e[24]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[25]||(e[25]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","columns","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"])):s.createCommentVNode("",!0),s.createVNode(u,{ref:"bodyRef",value:i.dataToRender(p.rows),class:s.normalizeClass(p.styleClass),columns:p.columns,empty:i.empty,first:o.d_first,dataKey:t.dataKey,selection:t.selection,selectionKeys:o.d_selectionKeys,selectionMode:t.selectionMode,contextMenu:t.contextMenu,contextMenuSelection:t.contextMenuSelection,rowGroupMode:t.rowGroupMode,groupRowsBy:t.groupRowsBy,expandableRowGroups:t.expandableRowGroups,rowClass:t.rowClass,rowStyle:t.rowStyle,editMode:t.editMode,compareSelectionBy:t.compareSelectionBy,scrollable:t.scrollable,expandedRowIcon:t.expandedRowIcon,collapsedRowIcon:t.collapsedRowIcon,expandedRows:t.expandedRows,expandedRowGroups:t.expandedRowGroups,editingRows:t.editingRows,editingRowKeys:o.d_editingRowKeys,templates:t.$slots,responsiveLayout:t.responsiveLayout,virtualScrollerContentProps:p,isVirtualScrollerDisabled:i.virtualScrollerDisabled,onRowgroupToggle:i.toggleRowGroup,onRowClick:e[26]||(e[26]=function(h){return i.onRowClick(h)}),onRowDblclick:e[27]||(e[27]=function(h){return i.onRowDblClick(h)}),onRowRightclick:e[28]||(e[28]=function(h){return i.onRowRightClick(h)}),onRowTouchend:i.onRowTouchEnd,onRowKeydown:function(m){return i.onRowKeyDown(m,p)},onRowMousedown:i.onRowMouseDown,onRowDragstart:e[29]||(e[29]=function(h){return i.onRowDragStart(h)}),onRowDragover:e[30]||(e[30]=function(h){return i.onRowDragOver(h)}),onRowDragleave:e[31]||(e[31]=function(h){return i.onRowDragLeave(h)}),onRowDragend:e[32]||(e[32]=function(h){return i.onRowDragEnd(h)}),onRowDrop:e[33]||(e[33]=function(h){return i.onRowDrop(h)}),onRowToggle:e[34]||(e[34]=function(h){return i.toggleRow(h)}),onRadioChange:e[35]||(e[35]=function(h){return i.toggleRowWithRadio(h)}),onCheckboxChange:e[36]||(e[36]=function(h){return i.toggleRowWithCheckbox(h)}),onCellEditInit:e[37]||(e[37]=function(h){return i.onCellEditInit(h)}),onCellEditComplete:e[38]||(e[38]=function(h){return i.onCellEditComplete(h)}),onCellEditCancel:e[39]||(e[39]=function(h){return i.onCellEditCancel(h)}),onRowEditInit:e[40]||(e[40]=function(h){return i.onRowEditInit(h)}),onRowEditSave:e[41]||(e[41]=function(h){return i.onRowEditSave(h)}),onRowEditCancel:e[42]||(e[42]=function(h){return i.onRowEditCancel(h)}),editingMeta:o.d_editingMeta,onEditingMetaChange:i.onEditingMetaChange,unstyled:t.unstyled,pt:t.pt},null,8,["value","class","columns","empty","first","dataKey","selection","selectionKeys","selectionMode","contextMenu","contextMenuSelection","rowGroupMode","groupRowsBy","expandableRowGroups","rowClass","rowStyle","editMode","compareSelectionBy","scrollable","expandedRowIcon","collapsedRowIcon","expandedRows","expandedRowGroups","editingRows","editingRowKeys","templates","responsiveLayout","virtualScrollerContentProps","isVirtualScrollerDisabled","onRowgroupToggle","onRowTouchend","onRowKeydown","onRowMousedown","editingMeta","onEditingMetaChange","unstyled","pt"]),i.hasSpacerStyle(p.spacerStyle)?(s.openBlock(),s.createElementBlock("tbody",s.mergeProps({key:1,class:t.cx("virtualScrollerSpacer"),style:{height:"calc(".concat(p.spacerStyle.height," - ").concat(p.rows.length*p.itemSize,"px)")}},t.ptm("virtualScrollerSpacer")),null,16)):s.createCommentVNode("",!0),s.createVNode(d,{columnGroup:i.footerColumnGroup,columns:p.columns,pt:t.pt},null,8,["columnGroup","columns","pt"])],16)]}),_:1},16,["items","columns","style","scrollHeight","disabled","pt"])],16),t.$slots.footer?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:3,class:t.cx("footer")},t.ptm("footer")),[s.renderSlot(t.$slots,"footer")],16)):s.createCommentVNode("",!0),i.paginatorBottom?(s.openBlock(),s.createBlock(l,{key:4,rows:o.d_rows,first:o.d_first,totalRecords:i.totalRecordsLength,pageLinkSize:t.pageLinkSize,template:t.paginatorTemplate,rowsPerPageOptions:t.rowsPerPageOptions,currentPageReportTemplate:t.currentPageReportTemplate,class:s.normalizeClass(t.cx("paginator")),onPage:e[43]||(e[43]=function(p){return i.onPage(p)}),alwaysShow:t.alwaysShowPaginator,unstyled:t.unstyled,pt:t.ptm("paginator")},s.createSlots({_:2},[t.$slots.paginatorstart?{name:"start",fn:s.withCtx(function(){return[s.renderSlot(t.$slots,"paginatorstart")]}),key:"0"}:void 0,t.$slots.paginatorend?{name:"end",fn:s.withCtx(function(){return[s.renderSlot(t.$slots,"paginatorend")]}),key:"1"}:void 0,t.$slots.paginatorfirstpagelinkicon?{name:"firstpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorfirstpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"2"}:void 0,t.$slots.paginatorprevpagelinkicon?{name:"prevpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorprevpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"3"}:void 0,t.$slots.paginatornextpagelinkicon?{name:"nextpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatornextpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"4"}:void 0,t.$slots.paginatorlastpagelinkicon?{name:"lastpagelinkicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorlastpagelinkicon",{class:s.normalizeClass(p.class)})]}),key:"5"}:void 0,t.$slots.paginatorjumptopagedropdownicon?{name:"jumptopagedropdownicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorjumptopagedropdownicon",{class:s.normalizeClass(p.class)})]}),key:"6"}:void 0,t.$slots.paginatorrowsperpagedropdownicon?{name:"rowsperpagedropdownicon",fn:s.withCtx(function(p){return[s.renderSlot(t.$slots,"paginatorrowsperpagedropdownicon",{class:s.normalizeClass(p.class)})]}),key:"7"}:void 0]),1032,["rows","first","totalRecords","pageLinkSize","template","rowsPerPageOptions","currentPageReportTemplate","class","alwaysShow","unstyled","pt"])):s.createCommentVNode("",!0),s.createElementVNode("div",s.mergeProps({ref:"resizeHelper",class:t.cx("resizeHelper"),style:{display:"none"}},t.ptm("resizeHelper")),null,16),t.reorderableColumns?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:5,ref:"reorderIndicatorUp",class:t.cx("reorderIndicatorUp"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorUp")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.reorderindicatorupicon||"ArrowDownIcon")))],16)):s.createCommentVNode("",!0),t.reorderableColumns?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:6,ref:"reorderIndicatorDown",class:t.cx("reorderIndicatorDown"),style:{position:"absolute",display:"none"}},t.ptm("reorderIndicatorDown")),[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.reorderindicatordownicon||"ArrowUpIcon")))],16)):s.createCommentVNode("",!0)],16)}j3.render=aR;var lR={},cR={name:"BaseColumn",extends:J,props:{columnKey:{type:null,default:null},field:{type:[String,Function],default:null},sortField:{type:[String,Function],default:null},filterField:{type:[String,Function],default:null},dataType:{type:String,default:"text"},sortable:{type:Boolean,default:!1},header:{type:null,default:null},footer:{type:null,default:null},style:{type:null,default:null},class:{type:String,default:null},headerStyle:{type:null,default:null},headerClass:{type:String,default:null},bodyStyle:{type:null,default:null},bodyClass:{type:String,default:null},footerStyle:{type:null,default:null},footerClass:{type:String,default:null},showFilterMenu:{type:Boolean,default:!0},showFilterOperator:{type:Boolean,default:!0},showClearButton:{type:Boolean,default:!0},showApplyButton:{type:Boolean,default:!0},showFilterMatchModes:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},filterMatchModeOptions:{type:Array,default:null},maxConstraints:{type:Number,default:2},excludeGlobalFilter:{type:Boolean,default:!1},filterHeaderClass:{type:String,default:null},filterHeaderStyle:{type:null,default:null},filterMenuClass:{type:String,default:null},filterMenuStyle:{type:null,default:null},selectionMode:{type:String,default:null},expander:{type:Boolean,default:!1},colspan:{type:Number,default:null},rowspan:{type:Number,default:null},rowReorder:{type:Boolean,default:!1},rowReorderIcon:{type:String,default:void 0},reorderableColumn:{type:Boolean,default:!0},rowEditor:{type:Boolean,default:!1},frozen:{type:Boolean,default:!1},alignFrozen:{type:String,default:"left"},exportable:{type:Boolean,default:!0},exportHeader:{type:String,default:null},exportFooter:{type:String,default:null},filterMatchMode:{type:String,default:null},hidden:{type:Boolean,default:!1}},style:lR,provide:function(){return{$parentInstance:this}}},uR={name:"Column",extends:cR,inheritAttrs:!1,inject:["$columns"],mounted:function(){var e;(e=this.$columns)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columns)===null||e===void 0||e.delete(this.$)},render:function(){return null}},dR={},fR={name:"BaseColumnGroup",extends:J,props:{type:{type:String,default:null}},style:dR,provide:function(){return{$parentInstance:this}}},pR={name:"ColumnGroup",extends:fR,inheritAttrs:!1,inject:["$columnGroups"],mounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$columnGroups)===null||e===void 0||e.delete(this.$)},render:function(){return null}},hR={name:"Row",extends:J,inject:["$rows"],mounted:function(){var e;(e=this.$rows)===null||e===void 0||e.add(this.$)},unmounted:function(){var e;(e=this.$rows)===null||e===void 0||e.delete(this.$)},render:function(){return null}};const mR=s.defineComponent({name:"QTooltip",props:{id:{type:String,default:"tooltip"},color:{type:String,default:"inkwell-30"},noWrap:{type:Boolean,default:!0},position:{type:String,default:"bottom"},relative:{type:Boolean,default:!1}}}),gR=["aria-describedby"],yR=["id"];function bR(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:"tooltip-container","aria-describedby":t.id},[s.renderSlot(t.$slots,"trigger",{},void 0,!0),s.createElementVNode("div",{id:t.id,class:s.normalizeClass(["tooltip",t.color?"bg-"+t.color+" border-"+t.color:"",t.position,t.noWrap?"no-wrap":"",t.relative?"relative":""]),role:"tooltip"},[s.renderSlot(t.$slots,"content",{},void 0,!0)],10,yR)],8,gR)}const W3=oe(mR,[["render",bR],["__scopeId","data-v-9d861ae7"]]),wR="data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%200%20118%2099'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M104.165%2059.815C107.107%2062.7762%20108.893%2066.692%20109.201%2070.8549C109.508%2075.0179%20108.317%2079.1536%20105.842%2082.515L105.642%2082.782L105.412%2083.082L117.521%2095.245C117.828%2095.5546%20118%2095.973%20118%2096.409C118%2096.845%20117.828%2097.2634%20117.521%2097.573C117.232%2097.8651%20116.844%2098.0376%20116.434%2098.0561C116.023%2098.0746%20115.621%2097.9378%20115.307%2097.673L115.207%2097.573L103.122%2085.438L102.822%2085.682C99.4939%2088.3942%2095.2763%2089.772%2090.9889%2089.5476C86.7016%2089.3233%2082.6508%2087.5127%2079.624%2084.468C76.3686%2081.1921%2074.5414%2076.7614%2074.5414%2072.143C74.5414%2067.5247%2076.3686%2063.0939%2079.624%2059.818C81.2316%2058.2001%2083.1433%2056.916%2085.2491%2056.0397C87.3548%2055.1634%2089.6131%2054.7121%2091.8939%2054.7118C94.1747%2054.7115%2096.4331%2055.1622%2098.539%2056.0381C100.645%2056.9139%20102.557%2058.1975%20104.165%2059.815ZM81.935%2062.131C79.2951%2064.7964%2077.8142%2068.3961%2077.8142%2072.1475C77.8142%2075.8989%2079.2951%2079.4986%2081.935%2082.164C83.2368%2083.4792%2084.7865%2084.5233%2086.4944%2085.2358C88.2022%2085.9484%2090.0344%2086.3153%2091.885%2086.3153C93.7355%2086.3153%2095.5678%2085.9484%2097.2756%2085.2358C98.9835%2084.5233%20100.533%2083.4792%20101.835%2082.164C104.475%2079.4986%20105.956%2075.8989%20105.956%2072.1475C105.956%2068.3961%20104.475%2064.7964%20101.835%2062.131C100.533%2060.8158%2098.9835%2059.7717%2097.2756%2059.0592C95.5678%2058.3466%2093.7355%2057.9797%2091.885%2057.9797C90.0344%2057.9797%2088.2022%2058.3466%2086.4944%2059.0592C84.7865%2059.7717%2083.2368%2060.8158%2081.935%2062.131ZM31.4%2075.042V76.442C31.4001%2076.5544%2031.4224%2076.6656%2031.4656%2076.7694C31.5087%2076.8731%2031.5719%2076.9673%2031.6515%2077.0466C31.7311%2077.126%2031.8255%2077.1888%2031.9294%2077.2316C32.0333%2077.2744%2032.1446%2077.2963%2032.257%2077.296H72.357C72.5818%2078.1673%2072.8638%2079.0228%2073.201%2079.857H32.258C31.3506%2079.8589%2030.4796%2079.5003%2029.8366%2078.86C29.1935%2078.2198%2028.8311%2077.3504%2028.829%2076.443V75.043L31.4%2075.042ZM86.162%2022C87.0694%2021.9981%2087.9404%2022.3568%2088.5834%2022.997C89.2265%2023.6372%2089.5889%2024.5066%2089.591%2025.414V51.808C88.7243%2051.9101%2087.8652%2052.0684%2087.019%2052.282V25.414C87.0189%2025.3016%2086.9966%2025.1904%2086.9534%2025.0867C86.9103%2024.9829%2086.8471%2024.8887%2086.7675%2024.8094C86.6879%2024.7301%2086.5935%2024.6672%2086.4896%2024.6244C86.3857%2024.5816%2086.2744%2024.5597%2086.162%2024.56H25.429C25.3166%2024.5597%2025.2053%2024.5816%2025.1014%2024.6244C24.9975%2024.6672%2024.9031%2024.7301%2024.8235%2024.8094C24.7439%2024.8887%2024.6807%2024.9829%2024.6376%2025.0867C24.5944%2025.1904%2024.5721%2025.3016%2024.572%2025.414V69.587C24.5721%2069.6994%2024.5944%2069.8106%2024.6376%2069.9144C24.6807%2070.0181%2024.7439%2070.1123%2024.8235%2070.1916C24.9031%2070.271%2024.9975%2070.3338%2025.1014%2070.3766C25.2053%2070.4194%2025.3166%2070.4413%2025.429%2070.441H71.766C71.697%2071.2932%2071.6806%2072.1488%2071.717%2073.003H25.429C24.5216%2073.0049%2023.6506%2072.6463%2023.0076%2072.006C22.3645%2071.3658%2022.0021%2070.4964%2022%2069.589V25.414C22.0021%2024.5066%2022.3645%2023.6372%2023.0076%2022.997C23.6506%2022.3568%2024.5216%2021.9981%2025.429%2022H86.162ZM77.701%2054.948C77.8695%2054.9484%2078.0362%2054.982%2078.1918%2055.0468C78.3473%2055.1117%2078.4885%2055.2065%2078.6073%2055.3259C78.7262%2055.4453%2078.8204%2055.587%2078.8845%2055.7428C78.9486%2055.8986%2078.9814%2056.0655%2078.981%2056.234C78.9811%2056.2983%2078.9764%2056.3624%2078.967%2056.426C78.557%2056.7693%2078.159%2057.1327%2077.773%2057.516H77.701H34.374C34.0329%2057.516%2033.7058%2057.3805%2033.4647%2057.1393C33.2235%2056.8982%2033.088%2056.5711%2033.088%2056.23C33.088%2055.8889%2033.2235%2055.5618%2033.4647%2055.3207C33.7058%2055.0795%2034.0329%2054.944%2034.374%2054.944L77.701%2054.948ZM92.991%2028.859C93.8984%2028.8571%2094.7694%2029.2158%2095.4124%2029.856C96.0555%2030.4962%2096.4179%2031.3656%2096.42%2032.273V52.168C95.5725%2051.9753%2094.7133%2051.8377%2093.848%2051.756V32.273C93.8479%2032.1606%2093.8256%2032.0494%2093.7824%2031.9457C93.7393%2031.8419%2093.6761%2031.7477%2093.5965%2031.6684C93.5169%2031.5891%2093.4225%2031.5262%2093.3186%2031.4834C93.2147%2031.4406%2093.1034%2031.4187%2092.991%2031.419H91.291V28.858L92.991%2028.859ZM77.701%2046.375C78.0421%2046.375%2078.3692%2046.5105%2078.6103%2046.7517C78.8515%2046.9928%2078.987%2047.3199%2078.987%2047.661C78.987%2048.0021%2078.8515%2048.3292%2078.6103%2048.5703C78.3692%2048.8115%2078.0421%2048.947%2077.701%2048.947H34.374C34.0329%2048.947%2033.7058%2048.8115%2033.4647%2048.5703C33.2235%2048.3292%2033.088%2048.0021%2033.088%2047.661C33.088%2047.3199%2033.2235%2046.9928%2033.4647%2046.7517C33.7058%2046.5105%2034.0329%2046.375%2034.374%2046.375H77.701ZM59.983%2037.801C60.3241%2037.801%2060.6512%2037.9365%2060.8923%2038.1777C61.1335%2038.4188%2061.269%2038.7459%2061.269%2039.087C61.269%2039.4281%2061.1335%2039.7552%2060.8923%2039.9963C60.6512%2040.2375%2060.3241%2040.373%2059.983%2040.373H34.374C34.0329%2040.373%2033.7058%2040.2375%2033.4647%2039.9963C33.2235%2039.7552%2033.088%2039.4281%2033.088%2039.087C33.088%2038.7459%2033.2235%2038.4188%2033.4647%2038.1777C33.7058%2037.9365%2034.0329%2037.801%2034.374%2037.801H59.983Z'%20fill='%238D9AA5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4%200C4.2066%200%204.40475%200.0820729%204.55084%200.228164C4.69693%200.374255%204.779%200.572397%204.779%200.779V3.221H7.221C7.41393%203.221%207.6%203.29258%207.74317%203.4219C7.88634%203.55122%207.97643%203.72907%207.996%203.921V4.001C7.996%204.2076%207.91393%204.40575%207.76784%204.55184C7.62175%204.69793%207.4236%204.78%207.217%204.78H4.779V7.222C4.779%207.41493%204.70742%207.601%204.5781%207.74417C4.44878%207.88734%204.27093%207.97744%204.079%207.997H3.999C3.7924%207.997%203.59425%207.91493%203.44816%207.76884C3.30207%207.62275%203.22%207.4246%203.22%207.218V4.779H0.779C0.585538%204.78002%200.398617%204.70902%200.254623%204.57981C0.110629%204.45061%200.0198653%204.27244%200%204.08V4C0%203.7934%200.082073%203.59526%200.228164%203.44916C0.374255%203.30307%200.572396%203.221%200.779%203.221H3.221V0.779C3.221%200.586071%203.29258%200.400004%203.4219%200.256831C3.55122%200.113658%203.72907%200.023565%203.921%200.00399971L4%200Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M11%2099C11.5304%2099%2012.0391%2098.7893%2012.4142%2098.4142C12.7893%2098.0391%2013%2097.5304%2013%2097C13%2096.4696%2012.7893%2095.9609%2012.4142%2095.5858C12.0391%2095.2107%2011.5304%2095%2011%2095C10.4696%2095%209.96086%2095.2107%209.58579%2095.5858C9.21071%2095.9609%209%2096.4696%209%2097C9%2097.5304%209.21071%2098.0391%209.58579%2098.4142C9.96086%2098.7893%2010.4696%2099%2011%2099Z'%20fill='%238D9AA5'/%3e%3cpath%20d='M104.518%2015.035C103.055%2015.035%20101.651%2014.4538%20100.617%2013.4192C99.5817%2012.3846%2099.0003%2010.9813%2099%209.518C99%208.05454%2099.5814%206.65101%20100.616%205.61619C101.651%204.58136%20103.055%204%20104.518%204C105.981%204%20107.385%204.58136%20108.42%205.61619C109.455%206.65101%20110.036%208.05454%20110.036%209.518C110.036%2010.9813%20109.454%2012.3846%20108.419%2013.4192C107.385%2014.4538%20105.981%2015.035%20104.518%2015.035ZM104.518%2013.035C105.451%2013.035%20106.346%2012.6645%20107.005%2012.005C107.665%2011.3454%20108.036%2010.4509%20108.036%209.518C108.036%209.05601%20107.945%208.59854%20107.768%208.17172C107.591%207.7449%20107.332%207.35707%20107.006%207.0304C106.679%206.70372%20106.291%206.44459%20105.864%206.26779C105.437%206.091%20104.98%206%20104.518%206C103.585%206%20102.69%206.37065%20102.03%207.0304C101.371%207.69015%20101%208.58497%20101%209.518C101%2010.4509%20101.371%2011.3454%20102.031%2012.005C102.69%2012.6645%20103.585%2013.035%20104.518%2013.035Z'%20fill='%238D9AA5'/%3e%3c/svg%3e",vR=s.defineComponent({name:"QTable",components:{Column:uR,ColumnGroup:pR,DataTable:j3,Row:hR,QBadge:Hr,QTooltip:W3},props:{id:{type:String,default:""},modelValue:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},hasSearch:{type:Boolean,default:!0},sortBy:{type:String,default:""},itemsPerPage:{type:Number,default:20},currentPage:{type:Number,default:1},searchPlaceholder:{type:String,default:""},filters:{type:Object,default:()=>({})},filtersAction:{type:Function,default:()=>{}},filtersCount:{type:Number,default:0},globalFilters:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},isMultiSort:{type:Boolean,default:!1},isMultiSelect:{type:Boolean,default:!1},rowSelect:{type:Function,default:()=>{}},rowUnselect:{type:Function,default:()=>{}},fixedTopOffset:{type:Number,default:0},skeletonRows:{type:Number,default:6}},emits:["is-empty"],setup(t,{emit:e}){const n=s.ref(),r=s.ref(!1),o=s.ref(!1),i=s.ref(!1),a=s.ref(!0),l=s.ref(wR),c=s.ref(),u=s.ref(""),d=s.ref([]),f=s.ref(),p=s.ref(0),h=s.ref({global:{matchMode:Ve.CONTAINS,value:null},...t.filters}),m=s.computed(()=>{var S;const C=!t.loading&&((S=n.value)==null?void 0:S.empty);return e("is-empty",C),C}),y=s.computed(()=>{const C=[],S={};let O=0;return t.columns.forEach(T=>{S[T.key]=""}),[...Array(t.skeletonRows)].forEach(()=>{C.push({...S,shimmer:O%2?"bg-gray-10":"bg-gray-30"}),O++}),C}),g=()=>{var C,S;c.value.scrollWidth>c.value.clientWidth?(r.value=!0,(C=c.value)==null||C.classList.add("is-scrolled")):(r.value=!1,(S=c.value)==null||S.classList.remove("is-scrolled")),M()},b=C=>{t.rowSelect(C)},v=C=>{t.rowUnselect(C)},k=()=>{var T,B;const C=f.value.offsetTop-t.fixedTopOffset,S=document.querySelector('div[data-pc-section="header"]'),O=(T=c.value)==null?void 0:T.querySelector("thead");if(o.value=!!t.fixedTopOffset&&f.value&&window.scrollY>=C,o.value){if(S.style.top=t.fixedTopOffset+"px",!r.value){const A=t.fixedTopOffset+S.clientHeight+1;O.style.top=A+"px"}}else S.style.top="",r.value||(O.style.top="");if(o.value&&r.value){const A=document.querySelector('div[data-pc-section="header"] > div[data-pc-section="wrapper"]');(B=A==null?void 0:A.querySelectorAll("th"))==null||B.forEach((D,F)=>{var Z;const W=(Z=c.value)==null?void 0:Z.querySelector(`th:nth-child(${F+1})`),V=W==null?void 0:W.getAttribute("aria-sort");D==null||D.setAttribute("aria-sort",V),D.classList.contains("actions")&&(D.style.minWidth=(W==null?void 0:W.clientWidth)+"px")})}M()},w=()=>{var S,O,T,B;const C=(S=c.value)==null?void 0:S.cloneNode(!0);if(C){const A=document.querySelector('div[data-pc-section="header"]');A==null||A.append(C);const D=A==null?void 0:A.querySelector('div[data-pc-section="wrapper"]');(O=D==null?void 0:D.querySelector("tbody"))==null||O.remove(),D==null||D.addEventListener("scroll",()=>{c.value.scrollLeft=D.scrollLeft;const F=c.value.scrollWidth-c.value.clientWidth;a.value=c.value.scrollLeft===0,i.value=c.value.scrollLeft===F}),(T=c.value)==null||T.addEventListener("scroll",()=>{D.scrollLeft=c.value.scrollLeft;const F=c.value.scrollWidth-c.value.clientWidth;a.value=c.value.scrollLeft===0,i.value=c.value.scrollLeft===F}),(B=D==null?void 0:D.querySelectorAll("th"))==null||B.forEach((F,W)=>{F==null||F.addEventListener("click",async()=>{var V;if(o.value&&r.value){const Z=(V=c.value)==null?void 0:V.querySelector(`th:nth-child(${W+1})`);await(Z==null?void 0:Z.click());const Y=Z==null?void 0:Z.getAttribute("aria-sort");F==null||F.setAttribute("aria-sort",Y)}})})}},M=()=>{const C=c.value.clientWidth+"px",S=document.querySelector('div[data-pc-section="header"]'),O=S.querySelector('div[data-pc-section="wrapper"] thead');S.style.width=C,c.value.querySelector("thead").style.width=C,O&&(O.style.width=C)};return s.onMounted(()=>{c.value=document.querySelector('div[data-pc-section="wrapper"]'),g(),window.addEventListener("resize",g),window.addEventListener("scroll",k),w()}),s.onUnmounted(()=>{window.removeEventListener("resize",g),window.removeEventListener("scroll",k)}),{dataTableRef:n,horizontalScroll:r,isFixed:o,isScrolledToEnd:i,isScrolledToStart:a,noResultsPath:l,scrollableElement:c,search:u,selectedRows:d,tableContainer:f,tableFilters:h,tableHeight:p,isEmpty:m,skeletonData:y,onPageResizeOrLoad:g,onSelectRow:b,onUnselectRow:v,mq:rn}}}),CR=["id"],kR={class:"search-and-filters"},SR={class:"inspections-search"},ER={for:"search",class:"search-label"},OR={key:0,class:"inspection-actions"},TR={class:"flex relative"},MR={key:0},IR={key:1},xR={key:0,class:"table-empty flex flex-col items-center justify-center"},PR=["src"];function BR(t,e,n,r,o,i){const a=s.resolveComponent("q-icon"),l=s.resolveComponent("q-input"),c=s.resolveComponent("q-badge"),u=s.resolveComponent("q-tooltip"),d=s.resolveComponent("column"),f=s.resolveComponent("data-table");return s.openBlock(),s.createElementBlock("div",{id:t.id,class:s.normalizeClass(["table-container",{"is-fixed":t.isFixed},{"using-scroll":t.horizontalScroll},{"is-loading":t.loading},{"scroll-start":t.isScrolledToStart},{"scroll-end":t.isScrolledToEnd},{"is-empty":t.isEmpty}]),ref:"tableContainer"},[s.createVNode(f,{filters:t.tableFilters,"onUpdate:filters":e[1]||(e[1]=p=>t.tableFilters=p),selection:t.selectedRows,"onUpdate:selection":e[2]||(e[2]=p=>t.selectedRows=p),"global-filter-fields":t.globalFilters,loading:t.loading,"meta-key-selection":!1,"scroll-height":t.horizontalScroll&&t.tableHeight?`${t.tableHeight}px`:"","selection-mode":t.isMultiSelect?"multiple":"single","sort-mode":t.isMultiSort?"multiple":"single",value:t.loading?t.skeletonData:t.modelValue,"data-key":"id","filter-display":"menu",ref:"dataTableRef","removable-sort":"",scrollable:"",onRowSelect:t.onSelectRow,onRowUnselect:t.onUnselectRow},{header:s.withCtx(()=>[t.hasSearch?s.renderSlot(t.$slots,"search-and-filters",{key:0},()=>[s.createElementVNode("div",kR,[s.createElementVNode("div",SR,[t.hasSearch?s.renderSlot(t.$slots,"search",{key:0},()=>[s.createElementVNode("label",ER,[s.createVNode(a,{class:"mr-2",color:"gray-40",icon:"search",size:"md",type:""}),s.createVNode(l,{id:"search",modelValue:t.tableFilters.global.value,"onUpdate:modelValue":e[0]||(e[0]=p=>t.tableFilters.global.value=p),"hide-clear":!!t.mq.md,placeholder:t.searchPlaceholder||t.$t("HC_SEARCH"),class:"text-base","control-class":"!border-0 !px-0"},null,8,["modelValue","hide-clear","placeholder"])])],!0):s.createCommentVNode("",!0)]),Object.keys(t.tableFilters).length||t.$slots.tableActions?(s.openBlock(),s.createElementBlock("div",OR,[Object.keys(t.tableFilters).length?s.renderSlot(t.$slots,"filters",{key:0},()=>[s.createVNode(u,{class:"z-[45] ml-2"},{trigger:s.withCtx(()=>[s.createElementVNode("div",TR,[s.createVNode(a,{class:"filters-icon ml-0",color:"gray-40",icon:"filter",size:"md",onClick:t.filtersAction},null,8,["onClick"]),t.filtersCount?(s.openBlock(),s.createBlock(c,{key:0,class:"filters-count",color:"white"},{text:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.filtersCount),1)]),_:1})):s.createCommentVNode("",!0)])]),content:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(t.$t("HC_FILTERS")),1)]),_:1})],!0):s.createCommentVNode("",!0),t.$slots.tableActions?s.renderSlot(t.$slots,"tableActions",{key:1},void 0,!0):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)])],!0):s.createCommentVNode("",!0)]),empty:s.withCtx(()=>[]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.columns,p=>(s.openBlock(),s.createBlock(d,{field:p.key,"filter-field":p.key,header:p.name,sortable:p.sortable,frozen:p.frozen,class:s.normalizeClass([p.key,p.size?`cell-${p.size}`:"",{"text-right":p.key==="actions"}])},{body:s.withCtx(({data:h})=>[t.loading?t.loading?(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(["animate-shimmer",h.shimmer])}," ",2)):s.createCommentVNode("",!0):s.renderSlot(t.$slots,p.key,s.normalizeProps(s.mergeProps({key:0},h)),()=>[p.key.match(/\./)?(s.openBlock(),s.createElementBlock("div",IR,s.toDisplayString(h[p.key.split(".")[0]][p.key.split(".")[1]]),1)):(s.openBlock(),s.createElementBlock("div",MR,s.toDisplayString(h[p.key]),1))],!0)]),_:2},1032,["field","filter-field","header","sortable","frozen","class"]))),256))]),_:3},8,["filters","selection","global-filter-fields","loading","scroll-height","selection-mode","sort-mode","value","onRowSelect","onRowUnselect"]),t.isEmpty?(s.openBlock(),s.createElementBlock("div",xR,[s.renderSlot(t.$slots,"no-results-illustration",{},()=>[s.createElementVNode("img",{class:"mb-5",src:t.noResultsPath},null,8,PR)],!0),s.renderSlot(t.$slots,"no-results-text",s.normalizeProps(s.guardReactiveProps({tableFilters:t.tableFilters})),void 0,!0)])):s.createCommentVNode("",!0)],10,CR)}const AR=oe(vR,[["render",BR],["__scopeId","data-v-96fd84f5"]]),DR=s.defineComponent({name:"QTag",components:{},props:{tagClass:{type:String,default:""},bgColor:{type:String,default:"bg-green-0"},textColor:{type:String,default:"text-green-20"},shape:{type:String,default:"square"}},setup(t,{slots:e}){return{hasIcon:!!e.icon}}});function NR(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["tag flex items-center",[t.tagClass,t.bgColor,t.textColor,"tag-"+t.shape,{"has-icon":t.hasIcon}]])},[t.hasIcon?s.renderSlot(t.$slots,"icon",{key:0},void 0,!0):s.createCommentVNode("",!0),s.renderSlot(t.$slots,"default",{},void 0,!0)],2)}const LR=oe(DR,[["render",NR],["__scopeId","data-v-1a01844c"]]),K3="update:model-value",RR=s.defineComponent({name:"QTextarea",inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},controlClass:{type:String,default:""},persistentPlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},rows:{type:Number,default:2},status:{type:String,default:""},textareaClass:{type:String,default:""},isDisabled:{type:Boolean,default:!1}},emits:[K3],setup(t,{attrs:e,emit:n,slots:r}){const o=s.ref(!1),i=s.ref(),a=s.computed(()=>!!r.actions),l=s.computed(()=>!!e.disabled||!!t.isDisabled),c=s.computed(()=>[{[`has-${t.status}`]:t.status&&!l.value},{"is-focused":o.value},{"is-disabled":l.value}]),u=s.computed(()=>["textarea",t.textareaClass,{[t.status]:t.status&&!l.value},{populated:!!t.modelValue&&t.persistentPlaceholder},{"is-focused":o.value&&t.persistentPlaceholder}]),d=()=>{i.value.style.height="auto",i.value.style.height=i.value.scrollHeight+"px"},f=p=>{n(K3,p.target.value)};return s.onMounted(()=>{d()}),{focused:o,disabled:l,rootClasses:c,textarea:i,textareaClasses:u,hasActions:a,resizeTextarea:d,updateValue:f}}}),VR=["id","disabled","placeholder","rows","value"],$R={key:0,class:"action flex items-end py-2 pr-4"},FR=["for"];function HR(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([[t.rootClasses,t.controlClass],"control flex"])},[s.createElementVNode("textarea",s.mergeProps({id:String(t.$attrs.id),ref:"textarea",disabled:t.isDisabled,class:[t.textareaClasses],placeholder:t.persistentPlaceholder?"":t.placeholder,rows:t.rows,value:t.modelValue},t.$attrs,{onInput:e[0]||(e[0]=(...a)=>t.updateValue&&t.updateValue(...a)),onFocusin:e[1]||(e[1]=a=>t.focused=!t.focused),onFocusout:e[2]||(e[2]=a=>t.focused=!t.focused),onKeyup:e[3]||(e[3]=(...a)=>t.resizeTextarea&&t.resizeTextarea(...a))}),`
|
|
258
|
-
`,16,VR),t.hasActions?(s.openBlock(),s.createElementBlock("div",$R,[s.renderSlot(t.$slots,"actions",{},void 0,!0)])):s.createCommentVNode("",!0),t.persistentPlaceholder?(s.openBlock(),s.createElementBlock("label",{key:1,for:String(t.$attrs.id),class:"placeholder"},s.toDisplayString(t.placeholder),9,FR)):s.createCommentVNode("",!0)],2)}const zR=oe(RR,[["render",HR],["__scopeId","data-v-fda73545"]]),G3="update:modelValue",q3="undo-action",Y3="timeout-done",_R=s.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[G3,q3,Y3],setup(t,{emit:e}){const n=s.ref(null),r=s.computed({get:()=>t.modelValue,set:u=>{e(G3,u)}}),o=s.computed(()=>t.variant?"is-"+t.variant:""),i=s.computed(()=>t.position?"toast-fixed "+t.position:""),a=s.computed(()=>t.withTransition&&"component-slide-right"),l=()=>{e(q3)},c=()=>{n.value=setTimeout(()=>{r.value=!1,e(Y3)},t.duration)};return s.onBeforeUnmount(()=>{n.value&&(clearTimeout(n.value),n.value=null)}),s.watchEffect(()=>{r.value&&t.duration?c():n.value&&(clearTimeout(n.value),n.value=null)}),{show:r,statusClass:o,positionClass:i,computedTransition:a,startTimeout:c,undoAction:l}}}),jR=["aria-live"],ZR={class:"message flex-grow"},UR=["aria-label"];function WR(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createBlock(s.Transition,{name:String(t.computedTransition),appear:""},{default:s.withCtx(()=>[t.show?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["toast flex",t.statusClass,t.positionClass,t.undoButton?"gap-2":"gap-3"]),role:"alert","aria-live":t.variant=="error"?"assertive":"polite","aria-atomic":"true"},[t.icon?(s.openBlock(),s.createBlock(a,{key:0,icon:t.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):s.createCommentVNode("",!0),s.createElementVNode("span",ZR,[s.renderSlot(t.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(t.message),1)],!0)]),t.undoButton?(s.openBlock(),s.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=l=>t.undoAction())},[s.renderSlot(t.$slots,"undo-message",{},()=>[s.createTextVNode(s.toDisplayString(t.$t("HC_UNDO")),1)],!0)])):s.createCommentVNode("",!0),t.closeButton?(s.openBlock(),s.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=l=>t.show=!t.show),"aria-label":t.$t("HC_CLOSE")},[s.createVNode(a,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,UR)):s.createCommentVNode("",!0)],10,jR)):s.createCommentVNode("",!0)]),_:3},8,["name"])}const KR=oe(_R,[["render",WR],["__scopeId","data-v-3862f72b"]]);function Ke(t){this.content=t}Ke.prototype={constructor:Ke,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Ke(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ke(n)},addToStart:function(t,e){return new Ke([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ke(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Ke(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ke.from(t),t.size?new Ke(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ke.from(t),t.size?new Ke(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ke.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Ke.from=function(t){if(t instanceof Ke)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ke(e)};function J3(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){let a=J3(o.content,i.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function Q3(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let a=t.child(--o),l=e.child(--i),c=a.nodeSize;if(a==l){n-=c,r-=c;continue}if(!a.sameMarkup(l))return{a:n,b:r};if(a.isText&&a.text!=l.text){let u=0,d=Math.min(a.text.length,l.text.length);for(;u<d&&a.text[a.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(a.content.size||l.content.size){let u=Q3(a.content,l.content,n-1,r-1);if(u)return u}n-=c,r-=c}}class N{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let a=0,l=0;l<n;a++){let c=this.content[a],u=l+c.nodeSize;if(u>e&&r(c,o+l,i||null,a)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),r,o+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",a=!0;return this.nodesBetween(e,n,(l,c)=>{let u=l.isText?l.text.slice(Math.max(e,c)-c,n-c):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(a?a=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new N(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,a=0;a<n;i++){let l=this.content[i],c=a+l.nodeSize;c>e&&((a<e||c>n)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,n-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,n-a-1))),r.push(l),o+=l.nodeSize),a=c}return new N(r,o)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new N(o,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return J3(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Q3(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Fl(0,e);if(e==this.size)return Fl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),a=o+i.nodeSize;if(a>=e)return a==e||n>0?Fl(r+1,a):Fl(r,o);o=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new N(n||e,r)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const _u={index:0,offset:0};function Fl(t,e){return _u.index=t,_u.offset=e,_u}function Hl(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hl(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hl(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let ge=class Rf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hl(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Rf.none;if(e instanceof Rf)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};ge.none=[];class zl extends Error{}class H{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=ey(this.content,e+this.openStart,n);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,n){return new H(X3(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return H.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(N.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new H(e,r,o)}}H.empty=new H(N.empty,0,0);function X3(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:a,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(X3(i.content,e-o-1,n-o-1)))}function ey(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),a=t.maybeChild(o);if(i==e||a.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=ey(a.content,e-i-1,n);return l&&t.replaceChild(o,a.copy(l))}function GR(t,e,n){if(n.openStart>t.depth)throw new zl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new zl("Inconsistent open depths");return ty(t,e,n,0)}function ty(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let a=ty(t,e,n,r+1);return i.copy(i.content.replaceChild(o,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let a=t.parent,l=a.content;return lo(a,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=qR(n,t);return lo(i,ry(t,a,l,e,r))}else return lo(i,_l(t,e,r))}function ny(t,e){if(!e.type.compatibleContent(t.type))throw new zl("Cannot join "+e.type.name+" onto "+t.type.name)}function ju(t,e,n){let r=t.node(n);return ny(r,e.node(n)),r}function ao(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ys(t,e,n,r){let o=(e||t).node(n),i=0,a=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(ao(t.nodeAfter,r),i++));for(let l=i;l<a;l++)ao(o.child(l),r);e&&e.depth==n&&e.textOffset&&ao(e.nodeBefore,r)}function lo(t,e){return t.type.checkContent(e),t.copy(e)}function ry(t,e,n,r,o){let i=t.depth>o&&ju(t,e,o+1),a=r.depth>o&&ju(n,r,o+1),l=[];return Ys(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(ny(i,a),ao(lo(i,ry(t,e,n,r,o+1)),l)):(i&&ao(lo(i,_l(t,e,o+1)),l),Ys(e,n,o,l),a&&ao(lo(a,_l(n,r,o+1)),l)),Ys(r,null,o,l),new N(l)}function _l(t,e,n){let r=[];if(Ys(null,t,n,r),t.depth>n){let o=ju(t,e,n+1);ao(lo(o,_l(t,e,n+1)),r)}return Ys(e,null,n,r),new N(r)}function qR(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(N.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class Js{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return ge.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!o||!i[a].isInSet(o.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let a=e;;){let{index:l,offset:c}=a.content.findIndex(i),u=i-c;if(r.push(a,l,o+c),!u||(a=a.child(l),a.isText))break;i=u-1,o+=c+1}return new Js(n,r,i)}static resolveCached(e,n){for(let o=0;o<Zu.length;o++){let i=Zu[o];if(i.pos==n&&i.doc==e)return i}let r=Zu[Uu]=Js.resolve(e,n);return Uu=(Uu+1)%YR,r}}let Zu=[],Uu=0,YR=12;class jl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const JR=Object.create(null);let co=class Vf{constructor(e,n,r,o=ge.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||N.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hl(this.attrs,n||e.defaultAttrs||JR)&&ge.sameSet(this.marks,r||ge.none)}copy(e=null){return e==this.content?this:new Vf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Vf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return H.empty;let o=this.resolve(e),i=this.resolve(n),a=r?0:o.sharedDepth(n),l=o.start(a),u=o.node(a).content.cut(o.pos-l,i.pos-l);return new H(u,o.depth-a,i.depth-a)}replace(e,n,r){return GR(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return Js.resolveCached(this,e)}resolveNoCache(e){return Js.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),oy(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=N.empty,o=0,i=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,o,i),l=a&&a.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let c=o;c<i;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),a=i&&i.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=ge.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!ge.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=N.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};co.prototype.text=void 0;class Zl extends co{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oy(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Zl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Zl(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oy(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class uo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new QR(e,n);if(r.next==null)return uo.empty;let o=iy(r);r.next&&r.err("Unexpected trailing text");let i=iV(oV(o));return sV(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(a,l){let c=a.matchFragment(e,r);if(c&&(!n||c.validEnd))return N.from(l.map(u=>u.createAndFill()));for(let u=0;u<a.next.length;u++){let{type:d,next:f}=a.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let p=i(f,l.concat(d));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let a=[];for(let l=o;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||c.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)i+=(a?", ":"")+r.next[a].type.name+"->"+e.indexOf(r.next[a].next);return i}).join(`
|
|
258
|
+
`,16,VR),t.hasActions?(s.openBlock(),s.createElementBlock("div",$R,[s.renderSlot(t.$slots,"actions",{},void 0,!0)])):s.createCommentVNode("",!0),t.persistentPlaceholder?(s.openBlock(),s.createElementBlock("label",{key:1,for:String(t.$attrs.id),class:"placeholder"},s.toDisplayString(t.placeholder),9,FR)):s.createCommentVNode("",!0)],2)}const zR=oe(RR,[["render",HR],["__scopeId","data-v-fda73545"]]),G3="update:modelValue",q3="undo-action",Y3="timeout-done",_R=s.defineComponent({name:"QToast",props:{modelValue:{type:Boolean,default:!1,required:!0},icon:{type:String,default:""},message:{type:String,default:""},variant:{type:String,default:""},duration:{type:Number,default:null,required:!1},position:{type:[String,Array],default:null,required:!1},withTransition:{type:Boolean,default:!1},transitionClass:{type:String,default:"component-slide-right"},closeButton:{type:Boolean,default:!1},undoButton:{type:Boolean,default:!1}},emits:[G3,q3,Y3],setup(t,{emit:e}){const n=s.ref(null),r=s.computed({get:()=>t.modelValue,set:u=>{e(G3,u)}}),o=s.computed(()=>t.variant?"is-"+t.variant:""),i=s.computed(()=>t.position?"toast-fixed "+t.position:""),a=s.computed(()=>t.withTransition&&t.transitionClass),l=()=>{e(q3)},c=()=>{n.value=setTimeout(()=>{r.value=!1,e(Y3)},t.duration)};return s.onBeforeUnmount(()=>{n.value&&(clearTimeout(n.value),n.value=null)}),s.watchEffect(()=>{r.value&&t.duration?c():n.value&&(clearTimeout(n.value),n.value=null)}),{show:r,statusClass:o,positionClass:i,computedTransition:a,startTimeout:c,undoAction:l}}}),jR=["aria-live"],ZR={class:"message flex-grow"},UR=["aria-label"];function WR(t,e,n,r,o,i){const a=s.resolveComponent("q-icon");return s.openBlock(),s.createBlock(s.Transition,{name:String(t.computedTransition),appear:""},{default:s.withCtx(()=>[t.show?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["toast flex",t.statusClass,t.positionClass,t.undoButton?"gap-2":"gap-3"]),role:"alert","aria-live":t.variant=="error"?"assertive":"polite","aria-atomic":"true"},[t.icon?(s.openBlock(),s.createBlock(a,{key:0,icon:t.icon,class:"status-icon",type:"fill","aria-hidden":"true"},null,8,["icon"])):s.createCommentVNode("",!0),s.createElementVNode("span",ZR,[s.renderSlot(t.$slots,"default",{},()=>[s.createTextVNode(s.toDisplayString(t.message),1)],!0)]),t.undoButton?(s.openBlock(),s.createElementBlock("button",{key:1,class:"button-link",onClick:e[0]||(e[0]=l=>t.undoAction())},[s.renderSlot(t.$slots,"undo-message",{},()=>[s.createTextVNode(s.toDisplayString(t.$t("HC_UNDO")),1)],!0)])):s.createCommentVNode("",!0),t.closeButton?(s.openBlock(),s.createElementBlock("button",{key:2,class:"close-icon",onClick:e[1]||(e[1]=l=>t.show=!t.show),"aria-label":t.$t("HC_CLOSE")},[s.createVNode(a,{icon:"close",type:"line",color:"inkwell-30",class:"close","aria-hidden":"true"})],8,UR)):s.createCommentVNode("",!0)],10,jR)):s.createCommentVNode("",!0)]),_:3},8,["name"])}const KR=oe(_R,[["render",WR],["__scopeId","data-v-3862f72b"]]);function Ke(t){this.content=t}Ke.prototype={constructor:Ke,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,o=r.find(t),i=r.content.slice();return o==-1?i.push(n||t,e):(i[o+1]=e,n&&(i[o]=n)),new Ke(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ke(n)},addToStart:function(t,e){return new Ke([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ke(n)},addBefore:function(t,e,n){var r=this.remove(e),o=r.content.slice(),i=r.find(t);return o.splice(i==-1?o.length:i,0,e,n),new Ke(o)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ke.from(t),t.size?new Ke(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ke.from(t),t.size?new Ke(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ke.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Ke.from=function(t){if(t instanceof Ke)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ke(e)};function J3(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let o=t.child(r),i=e.child(r);if(o==i){n+=o.nodeSize;continue}if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let a=0;o.text[a]==i.text[a];a++)n++;return n}if(o.content.size||i.content.size){let a=J3(o.content,i.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function Q3(t,e,n,r){for(let o=t.childCount,i=e.childCount;;){if(o==0||i==0)return o==i?null:{a:n,b:r};let a=t.child(--o),l=e.child(--i),c=a.nodeSize;if(a==l){n-=c,r-=c;continue}if(!a.sameMarkup(l))return{a:n,b:r};if(a.isText&&a.text!=l.text){let u=0,d=Math.min(a.text.length,l.text.length);for(;u<d&&a.text[a.text.length-u-1]==l.text[l.text.length-u-1];)u++,n--,r--;return{a:n,b:r}}if(a.content.size||l.content.size){let u=Q3(a.content,l.content,n-1,r-1);if(u)return u}n-=c,r-=c}}class N{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,o=0,i){for(let a=0,l=0;l<n;a++){let c=this.content[a],u=l+c.nodeSize;if(u>e&&r(c,o+l,i||null,a)!==!1&&c.content.size){let d=l+1;c.nodesBetween(Math.max(0,e-d),Math.min(c.content.size,n-d),r,o+d)}l=u}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,o){let i="",a=!0;return this.nodesBetween(e,n,(l,c)=>{let u=l.isText?l.text.slice(Math.max(e,c)-c,n-c):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&u||l.isTextblock)&&r&&(a?a=!1:i+=r),i+=u},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,o=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(r)&&(o[o.length-1]=n.withText(n.text+r.text),i=1);i<e.content.length;i++)o.push(e.content[i]);return new N(o,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],o=0;if(n>e)for(let i=0,a=0;a<n;i++){let l=this.content[i],c=a+l.nodeSize;c>e&&((a<e||c>n)&&(l.isText?l=l.cut(Math.max(0,e-a),Math.min(l.text.length,n-a)):l=l.cut(Math.max(0,e-a-1),Math.min(l.content.size,n-a-1))),r.push(l),o+=l.nodeSize),a=c}return new N(r,o)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let o=this.content.slice(),i=this.size+n.nodeSize-r.nodeSize;return o[e]=n,new N(o,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let o=this.content[n];e(o,r,n),r+=o.nodeSize}}findDiffStart(e,n=0){return J3(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return Q3(this,e,n,r)}findIndex(e,n=-1){if(e==0)return Fl(0,e);if(e==this.size)return Fl(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,o=0;;r++){let i=this.child(r),a=o+i.nodeSize;if(a>=e)return a==e||n>0?Fl(r+1,a):Fl(r,o);o=a}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.empty;let n,r=0;for(let o=0;o<e.length;o++){let i=e[o];r+=i.nodeSize,o&&i.isText&&e[o-1].sameMarkup(i)?(n||(n=e.slice(0,o)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new N(n||e,r)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const _u={index:0,offset:0};function Fl(t,e){return _u.index=t,_u.offset=e,_u}function Hl(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!Hl(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!Hl(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let ge=class Rf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let o=0;o<e.length;o++){let i=e[o];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,o));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,o)),n.push(this),r=!0),n&&n.push(i)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Hl(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);return r.create(n.attrs)}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Rf.none;if(e instanceof Rf)return[e];let n=e.slice();return n.sort((r,o)=>r.type.rank-o.type.rank),n}};ge.none=[];class zl extends Error{}class H{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=ey(this.content,e+this.openStart,n);return r&&new H(r,this.openStart,this.openEnd)}removeBetween(e,n){return new H(X3(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return H.empty;let r=n.openStart||0,o=n.openEnd||0;if(typeof r!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new H(N.fromJSON(e,n.content),r,o)}static maxOpen(e,n=!0){let r=0,o=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)o++;return new H(e,r,o)}}H.empty=new H(N.empty,0,0);function X3(t,e,n){let{index:r,offset:o}=t.findIndex(e),i=t.maybeChild(r),{index:a,offset:l}=t.findIndex(n);if(o==e||i.isText){if(l!=n&&!t.child(a).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return t.replaceChild(r,i.copy(X3(i.content,e-o-1,n-o-1)))}function ey(t,e,n,r){let{index:o,offset:i}=t.findIndex(e),a=t.maybeChild(o);if(i==e||a.isText)return r&&!r.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let l=ey(a.content,e-i-1,n);return l&&t.replaceChild(o,a.copy(l))}function GR(t,e,n){if(n.openStart>t.depth)throw new zl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new zl("Inconsistent open depths");return ty(t,e,n,0)}function ty(t,e,n,r){let o=t.index(r),i=t.node(r);if(o==e.index(r)&&r<t.depth-n.openStart){let a=ty(t,e,n,r+1);return i.copy(i.content.replaceChild(o,a))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let a=t.parent,l=a.content;return lo(a,l.cut(0,t.parentOffset).append(n.content).append(l.cut(e.parentOffset)))}else{let{start:a,end:l}=qR(n,t);return lo(i,ry(t,a,l,e,r))}else return lo(i,_l(t,e,r))}function ny(t,e){if(!e.type.compatibleContent(t.type))throw new zl("Cannot join "+e.type.name+" onto "+t.type.name)}function ju(t,e,n){let r=t.node(n);return ny(r,e.node(n)),r}function ao(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ys(t,e,n,r){let o=(e||t).node(n),i=0,a=e?e.index(n):o.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(ao(t.nodeAfter,r),i++));for(let l=i;l<a;l++)ao(o.child(l),r);e&&e.depth==n&&e.textOffset&&ao(e.nodeBefore,r)}function lo(t,e){return t.type.checkContent(e),t.copy(e)}function ry(t,e,n,r,o){let i=t.depth>o&&ju(t,e,o+1),a=r.depth>o&&ju(n,r,o+1),l=[];return Ys(null,t,o,l),i&&a&&e.index(o)==n.index(o)?(ny(i,a),ao(lo(i,ry(t,e,n,r,o+1)),l)):(i&&ao(lo(i,_l(t,e,o+1)),l),Ys(e,n,o,l),a&&ao(lo(a,_l(n,r,o+1)),l)),Ys(r,null,o,l),new N(l)}function _l(t,e,n){let r=[];if(Ys(null,t,n,r),t.depth>n){let o=ju(t,e,n+1);ao(lo(o,_l(t,e,n+1)),r)}return Ys(e,null,n,r),new N(r)}function qR(t,e){let n=e.depth-t.openStart,o=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)o=e.node(i).copy(N.from(o));return{start:o.resolveNoCache(t.openStart+n),end:o.resolveNoCache(o.content.size-t.openEnd-n)}}class Js{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],o=e.child(n);return r?e.child(n).cut(r):o}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)o+=r.child(i).nodeSize;return o}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return ge.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),o=e.maybeChild(n);if(!r){let l=r;r=o,o=l}let i=r.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!o||!i[a].isInSet(o.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,o=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)r[i].type.spec.inclusive===!1&&(!o||!r[i].isInSet(o.marks))&&(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new jl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],o=0,i=n;for(let a=e;;){let{index:l,offset:c}=a.content.findIndex(i),u=i-c;if(r.push(a,l,o+c),!u||(a=a.child(l),a.isText))break;i=u-1,o+=c+1}return new Js(n,r,i)}static resolveCached(e,n){for(let o=0;o<Zu.length;o++){let i=Zu[o];if(i.pos==n&&i.doc==e)return i}let r=Zu[Uu]=Js.resolve(e,n);return Uu=(Uu+1)%YR,r}}let Zu=[],Uu=0,YR=12;class jl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const JR=Object.create(null);let co=class Vf{constructor(e,n,r,o=ge.none){this.type=e,this.attrs=n,this.marks=o,this.content=r||N.empty}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,o=0){this.content.nodesBetween(e,n,r,o,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,o){return this.content.textBetween(e,n,r,o)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&Hl(this.attrs,n||e.defaultAttrs||JR)&&ge.sameSet(this.marks,r||ge.none)}copy(e=null){return e==this.content?this:new Vf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Vf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return H.empty;let o=this.resolve(e),i=this.resolve(n),a=r?0:o.sharedDepth(n),l=o.start(a),u=o.node(a).content.cut(o.pos-l,i.pos-l);return new H(u,o.depth-a,i.depth-a)}replace(e,n,r){return GR(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:o}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(o==e||n.isText)return n;e-=o+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let o=this.content.child(n-1);return{node:o,index:n-1,offset:r-o.nodeSize}}resolve(e){return Js.resolveCached(this,e)}resolveNoCache(e){return Js.resolve(this,e)}rangeHasMark(e,n,r){let o=!1;return n>e&&this.nodesBetween(e,n,i=>(r.isInSet(i.marks)&&(o=!0),!o)),o}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),oy(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=N.empty,o=0,i=r.childCount){let a=this.contentMatchAt(e).matchFragment(r,o,i),l=a&&a.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let c=o;c<i;c++)if(!this.type.allowsMarks(r.child(c).marks))return!1;return!0}canReplaceWith(e,n,r,o){if(o&&!this.type.allowsMarks(o))return!1;let i=this.contentMatchAt(e).matchType(r),a=i&&i.matchFragment(this.content,n);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content);let e=ge.none;for(let n=0;n<this.marks.length;n++)e=this.marks[n].addToSet(e);if(!ge.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r=null;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let o=N.fromJSON(e,n.content);return e.nodeType(n.type).create(n.attrs,o,r)}};co.prototype.text=void 0;class Zl extends co{constructor(e,n,r,o){if(super(e,n,null,o),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):oy(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Zl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Zl(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function oy(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class uo{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new QR(e,n);if(r.next==null)return uo.empty;let o=iy(r);r.next&&r.err("Unexpected trailing text");let i=iV(oV(o));return sV(i,r),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let o=this;for(let i=n;o&&i<r;i++)o=o.matchType(e.child(i).type);return o}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let o=[this];function i(a,l){let c=a.matchFragment(e,r);if(c&&(!n||c.validEnd))return N.from(l.map(u=>u.createAndFill()));for(let u=0;u<a.next.length;u++){let{type:d,next:f}=a.next[u];if(!(d.isText||d.hasRequiredAttrs())&&o.indexOf(f)==-1){o.push(f);let p=i(f,l.concat(d));if(p)return p}}return null}return i(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let o=r.shift(),i=o.match;if(i.matchType(e)){let a=[];for(let l=o;l.type;l=l.via)a.push(l.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];!l.isLeaf&&!l.hasRequiredAttrs()&&!(l.name in n)&&(!o.type||c.validEnd)&&(r.push({match:l.contentMatch,type:l,via:o}),n[l.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let o=0;o<r.next.length;o++)e.indexOf(r.next[o].next)==-1&&n(r.next[o].next)}return n(this),e.map((r,o)=>{let i=o+(r.validEnd?"*":" ")+" ";for(let a=0;a<r.next.length;a++)i+=(a?", ":"")+r.next[a].type.name+"->"+e.indexOf(r.next[a].next);return i}).join(`
|
|
259
259
|
`)}}uo.empty=new uo(!0);class QR{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function iy(t){let e=[];do e.push(XR(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function XR(t){let e=[];do e.push(eV(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function eV(t){let e=rV(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=tV(t,e);else break;return e}function sy(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function tV(t,e){let n=sy(t),r=n;return t.eat(",")&&(t.next!="}"?r=sy(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function nV(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let o=[];for(let i in n){let a=n[i];a.groups.indexOf(e)>-1&&o.push(a)}return o.length==0&&t.err("No node type or group '"+e+"' found"),o}function rV(t){if(t.eat("(")){let e=iy(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=nV(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function oV(t){let e=[[]];return o(i(t,0),n()),e;function n(){return e.push([])-1}function r(a,l,c){let u={term:c,to:l};return e[a].push(u),u}function o(a,l){a.forEach(c=>c.to=l)}function i(a,l){if(a.type=="choice")return a.exprs.reduce((c,u)=>c.concat(i(u,l)),[]);if(a.type=="seq")for(let c=0;;c++){let u=i(a.exprs[c],l);if(c==a.exprs.length-1)return u;o(u,l=n())}else if(a.type=="star"){let c=n();return r(l,c),o(i(a.expr,c),c),[r(c)]}else if(a.type=="plus"){let c=n();return o(i(a.expr,l),c),o(i(a.expr,c),c),[r(c)]}else{if(a.type=="opt")return[r(l)].concat(i(a.expr,l));if(a.type=="range"){let c=l;for(let u=0;u<a.min;u++){let d=n();o(i(a.expr,c),d),c=d}if(a.max==-1)o(i(a.expr,c),c);else for(let u=a.min;u<a.max;u++){let d=n();r(c,d),o(i(a.expr,c),d),c=d}return[r(c)]}else{if(a.type=="name")return[r(l,void 0,a.value)];throw new Error("Unknown expr type")}}}}function ay(t,e){return e-t}function ly(t,e){let n=[];return r(e),n.sort(ay);function r(o){let i=t[o];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(o);for(let a=0;a<i.length;a++){let{term:l,to:c}=i[a];!l&&n.indexOf(c)==-1&&r(c)}}}function iV(t){let e=Object.create(null);return n(ly(t,0));function n(r){let o=[];r.forEach(a=>{t[a].forEach(({term:l,to:c})=>{if(!l)return;let u;for(let d=0;d<o.length;d++)o[d][0]==l&&(u=o[d][1]);ly(t,c).forEach(d=>{u||o.push([l,u=[]]),u.indexOf(d)==-1&&u.push(d)})})});let i=e[r.join(",")]=new uo(r.indexOf(t.length-1)>-1);for(let a=0;a<o.length;a++){let l=o[a][1].sort(ay);i.next.push({type:o[a][0],next:e[l.join(",")]||n(l)})}return i}}function sV(t,e){for(let n=0,r=[t];n<r.length;n++){let o=r[n],i=!o.validEnd,a=[];for(let l=0;l<o.next.length;l++){let{type:c,next:u}=o.next[l];a.push(c.name),i&&!(c.isText||c.hasRequiredAttrs())&&(i=!1),r.indexOf(u)==-1&&r.push(u)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function cy(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function uy(t,e){let n=Object.create(null);for(let r in t){let o=e&&e[r];if(o===void 0){let i=t[r];if(i.hasDefault)o=i.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=o}return n}function dy(t){let e=Object.create(null);if(t)for(let n in t)e[n]=new aV(t[n]);return e}let fy=class Hb{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=dy(r.attrs),this.defaultAttrs=cy(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==uo.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:uy(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new co(this,this.computeAttrs(e),N.from(n),ge.setFrom(r))}createChecked(e=null,n,r){return n=N.from(n),this.checkContent(n),new co(this,this.computeAttrs(e),n,ge.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=N.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let o=this.contentMatch.matchFragment(n),i=o&&o.fillBefore(N.empty,!0);return i?new co(this,e,n.append(i),ge.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:ge.none:e}static compile(e,n){let r=Object.create(null);e.forEach((i,a)=>r[i]=new Hb(i,n,a));let o=n.spec.topNode||"doc";if(!r[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};class aV{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Ul{constructor(e,n,r,o){this.name=e,this.rank=n,this.schema=r,this.spec=o,this.attrs=dy(o.attrs),this.excluded=null;let i=cy(this.attrs);this.instance=i?new ge(this,i):null}create(e=null){return!e&&this.instance?this.instance:new ge(this,uy(this.attrs,e))}static compile(e,n){let r=Object.create(null),o=0;return e.forEach((i,a)=>r[i]=new Ul(i,o++,n,a)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}excludes(e){return this.excluded.indexOf(e)>-1}}class lV{constructor(e){this.cached=Object.create(null);let n=this.spec={};for(let o in e)n[o]=e[o];n.nodes=Ke.from(e.nodes),n.marks=Ke.from(e.marks||{}),this.nodes=fy.compile(this.spec.nodes,this),this.marks=Ul.compile(this.spec.marks,this);let r=Object.create(null);for(let o in this.nodes){if(o in this.marks)throw new RangeError(o+" can not be both a node and a mark");let i=this.nodes[o],a=i.spec.content||"",l=i.spec.marks;i.contentMatch=r[a]||(r[a]=uo.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.markSet=l=="_"?null:l?py(this,l.split(" ")):l==""||!i.inlineContent?[]:null}for(let o in this.marks){let i=this.marks[o],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:py(this,a.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,o){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof fy){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,o)}text(e,n){let r=this.nodes.text;return new Zl(r,r.defaultAttrs,e,ge.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return co.fromJSON(this,e)}markFromJSON(e){return ge.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function py(t,e){let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t.marks[o],a=i;if(i)n.push(i);else for(let l in t.marks){let c=t.marks[l];(o=="_"||c.spec.group&&c.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=c)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}class Jo{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[],n.forEach(r=>{r.tag?this.tags.push(r):r.style&&this.styles.push(r)}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let o=e.nodes[r.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new yy(this,n,!1);return r.addAll(e,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new yy(this,n,!0);return r.addAll(e,n.from,n.to),H.maxOpen(r.finish())}matchTag(e,n,r){for(let o=r?this.tags.indexOf(r)+1:0;o<this.tags.length;o++){let i=this.tags[o];if(dV(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,n,r,o){for(let i=o?this.styles.indexOf(o)+1:0;i<this.styles.length;i++){let a=this.styles[i],l=a.style;if(!(l.indexOf(e)!=0||a.context&&!r.matchesContext(a.context)||l.length>e.length&&(l.charCodeAt(e.length)!=61||l.slice(e.length+1)!=n))){if(a.getAttrs){let c=a.getAttrs(n);if(c===!1)continue;a.attrs=c||void 0}return a}}}static schemaRules(e){let n=[];function r(o){let i=o.priority==null?50:o.priority,a=0;for(;a<n.length;a++){let l=n[a];if((l.priority==null?50:l.priority)<i)break}n.splice(a,0,o)}for(let o in e.marks){let i=e.marks[o].spec.parseDOM;i&&i.forEach(a=>{r(a=by(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in e.nodes){let i=e.nodes[o].spec.parseDOM;i&&i.forEach(a=>{r(a=by(a)),a.node||a.ignore||a.mark||(a.node=o)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Jo(e,Jo.schemaRules(e)))}}const hy={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},cV={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},my={ol:!0,ul:!0},Wl=1,Kl=2,Qs=4;function gy(t,e,n){return e!=null?(e?Wl:0)|(e==="full"?Kl:0):t&&t.whitespace=="pre"?Wl|Kl:n&~Qs}class Gl{constructor(e,n,r,o,i,a,l){this.type=e,this.attrs=n,this.marks=r,this.pendingMarks=o,this.solid=i,this.options=l,this.content=[],this.activeMarks=ge.none,this.stashMarks=[],this.match=a||(l&Qs?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,o;return(o=r.findWrapping(e.type))?(this.match=r,o):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Wl)){let r=this.content[this.content.length-1],o;if(r&&r.isText&&(o=/[ \t\r\n\u000c]+$/.exec(r.text))){let i=r;r.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-o[0].length))}}let n=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}popFromStashMark(e){for(let n=this.stashMarks.length-1;n>=0;n--)if(e.eq(this.stashMarks[n]))return this.stashMarks.splice(n,1)[0]}applyPending(e){for(let n=0,r=this.pendingMarks;n<r.length;n++){let o=r[n];(this.type?this.type.allowsMarkType(o.type):pV(o.type,e))&&!o.isInSet(this.activeMarks)&&(this.activeMarks=o.addToSet(this.activeMarks),this.pendingMarks=o.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!hy.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class yy{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0;let o=n.topNode,i,a=gy(null,n.preserveWhitespace,0)|(r?Qs:0);o?i=new Gl(o.type,o.attrs,ge.none,ge.none,!0,n.topMatch||o.type.contentMatch,a):r?i=new Gl(null,null,ge.none,ge.none,!0,null,a):i=new Gl(e.schema.topNodeType,null,ge.none,ge.none,!0,null,a),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){e.nodeType==3?this.addTextNode(e):e.nodeType==1&&this.addElement(e)}withStyleRules(e,n){let r=e.getAttribute("style");if(!r)return n();let o=this.readStyles(fV(r));if(!o)return;let[i,a]=o,l=this.top;for(let c=0;c<a.length;c++)this.removePendingMark(a[c],l);for(let c=0;c<i.length;c++)this.addPendingMark(i[c]);n();for(let c=0;c<i.length;c++)this.removePendingMark(i[c],l);for(let c=0;c<a.length;c++)this.addPendingMark(a[c])}addTextNode(e){let n=e.nodeValue,r=this.top;if(r.options&Kl||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(r.options&Wl)r.options&Kl?n=n.replace(/\r\n?/g,`
|
|
260
260
|
`):n=n.replace(/\r?\n|\r/g," ");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let o=r.content[r.content.length-1],i=e.previousSibling;(!o||i&&i.nodeName=="BR"||o.isText&&/[ \t\r\n\u000c]$/.test(o.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n)),this.findInText(e)}else this.findInside(e)}addElement(e,n){let r=e.nodeName.toLowerCase(),o;my.hasOwnProperty(r)&&this.parser.normalizeLists&&uV(e);let i=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));if(i?i.ignore:cV.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e);else if(!i||i.skip||i.closeParent){i&&i.closeParent?this.open=Math.max(0,this.open-1):i&&i.skip.nodeType&&(e=i.skip);let a,l=this.top,c=this.needsBlock;if(hy.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),a=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e);return}i&&i.skip?this.addAll(e):this.withStyleRules(e,()=>this.addAll(e)),a&&this.sync(l),this.needsBlock=c}else this.withStyleRules(e,()=>{this.addElementByRule(e,i,i.consuming===!1?o:void 0)})}leafFallback(e){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
261
261
|
`))}ignoreFallback(e){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(e){let n=ge.none,r=ge.none;for(let o=0;o<e.length;o+=2)for(let i=void 0;;){let a=this.parser.matchStyle(e[o],e[o+1],this,i);if(!a)break;if(a.ignore)return null;if(a.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach(l=>{a.clearMark(l)&&(r=l.addToSet(r))}):n=this.parser.schema.marks[a.mark].create(a.attrs).addToSet(n),a.consuming===!1)i=a;else break}return[n,r]}addElementByRule(e,n,r){let o,i,a;n.node?(i=this.parser.schema.nodes[n.node],i.isLeaf?this.insertNode(i.create(n.attrs))||this.leafFallback(e):o=this.enter(i,n.attrs||null,n.preserveWhitespace)):(a=this.parser.schema.marks[n.mark].create(n.attrs),this.addPendingMark(a));let l=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=e;typeof n.contentElement=="string"?c=e.querySelector(n.contentElement):typeof n.contentElement=="function"?c=n.contentElement(e):n.contentElement&&(c=n.contentElement),this.findAround(e,c,!0),this.addAll(c)}o&&this.sync(l)&&this.open--,a&&this.removePendingMark(a,l)}addAll(e,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,a=r==null?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i);this.findAtPoint(e,o)}findPlace(e){let n,r;for(let o=this.open;o>=0;o--){let i=this.nodes[o],a=i.findWrapping(e);if(a&&(!n||n.length>a.length)&&(n=a,r=i,!a.length)||i.solid)break}if(!n)return!1;this.sync(r);for(let o=0;o<n.length;o++)this.enterInner(n[o],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let n=this.textblockFromContext();n&&this.enterInner(n)}if(this.findPlace(e)){this.closeExtra();let n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));let r=n.activeMarks;for(let o=0;o<e.marks.length;o++)(!n.type||n.type.allowsMarkType(e.marks[o].type))&&(r=e.marks[o].addToSet(r));return n.content.push(e.mark(r)),!0}return!1}enter(e,n,r){let o=this.findPlace(e.create(n));return o&&this.enterInner(e,n,!0,r),o}enterInner(e,n=null,r=!1,o){this.closeExtra();let i=this.top;i.applyPending(e),i.match=i.match&&i.match.matchType(e);let a=gy(e,o,i.options);i.options&Qs&&i.content.length==0&&(a|=Qs),this.nodes.push(new Gl(e,n,i.activeMarks,i.pendingMarks,r,null,a)),this.open++}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let n=this.open;n>=0;n--)if(this.nodes[n]==e)return this.open=n,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let o=r.length-1;o>=0;o--)e+=r[o].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let o=0;o<this.find.length;o++)this.find[o].pos==null&&e.nodeType==1&&e.contains(this.find[o].node)&&n.compareDocumentPosition(this.find[o].node)&(r?2:4)&&(this.find[o].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,o=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(o?0:1),a=(l,c)=>{for(;l>=0;l--){let u=n[l];if(u==""){if(l==n.length-1||l==0)continue;for(;c>=i;c--)if(a(l-1,c))return!0;return!1}else{let d=c>0||c==0&&o?this.nodes[c].type:r&&c>=i?r.node(c-i).type:null;if(!d||d.name!=u&&d.groups.indexOf(u)==-1)return!1;c--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}addPendingMark(e){let n=hV(e,this.top.pendingMarks);n&&this.top.stashMarks.push(n),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,n){for(let r=this.open;r>=0;r--){let o=this.nodes[r];if(o.pendingMarks.lastIndexOf(e)>-1)o.pendingMarks=e.removeFromSet(o.pendingMarks);else{o.activeMarks=e.removeFromSet(o.activeMarks);let a=o.popFromStashMark(e);a&&o.type&&o.type.allowsMarkType(a.type)&&(o.activeMarks=a.addToSet(o.activeMarks))}if(o==n)break}}}function uV(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&my.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function dV(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function fV(t){let e=/\s*([\w-]+)\s*:\s*([^;]+)/g,n,r=[];for(;n=e.exec(t);)r.push(n[1],n[2].trim());return r}function by(t){let e={};for(let n in t)e[n]=t[n];return e}function pV(t,e){let n=e.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(t))continue;let i=[],a=l=>{i.push(l);for(let c=0;c<l.edgeCount;c++){let{type:u,next:d}=l.edge(c);if(u==e||i.indexOf(d)<0&&a(d))return!0}};if(a(o.contentMatch))return!0}}function hV(t,e){for(let n=0;n<e.length;n++)if(t.eq(e[n]))return e[n]}class yn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=Wu(n).createDocumentFragment());let o=r,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let l=0,c=0;for(;l<i.length&&c<a.marks.length;){let u=a.marks[c];if(!this.marks[u.type.name]){c++;continue}if(!u.eq(i[l][0])||u.type.spec.spanning===!1)break;l++,c++}for(;l<i.length;)o=i.pop()[1];for(;c<a.marks.length;){let u=a.marks[c++],d=this.serializeMark(u,a.isInline,n);d&&(i.push([u,o]),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(this.serializeNodeInner(a,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:o}=yn.renderSpec(Wu(n),this.nodes[e.type.name](e));if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,o)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let o=e.marks.length-1;o>=0;o--){let i=this.serializeMark(e.marks[o],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,n,r={}){let o=this.marks[e.type.name];return o&&yn.renderSpec(Wu(r),o(e,n))}static renderSpec(e,n,r=null){if(typeof n=="string")return{dom:e.createTextNode(n)};if(n.nodeType!=null)return{dom:n};if(n.dom&&n.dom.nodeType!=null)return n;let o=n[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let a,l=r?e.createElementNS(r,o):e.createElement(o),c=n[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<n.length;d++){let f=n[d];if(f===0){if(d<n.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:h}=yn.renderSpec(e,f,r);if(l.appendChild(p),h){if(a)throw new RangeError("Multiple content holes");a=h}}}return{dom:l,contentDOM:a}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new yn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=wy(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return wy(e.marks)}}function wy(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function Wu(t){return t.document||window.document}const vy=65535,Cy=Math.pow(2,16);function mV(t,e){return t+e*Cy}function ky(t){return t&vy}function gV(t){return(t-(t&vy))/Cy}const Sy=1,Ey=2,ql=4,Oy=8;class Ku{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Oy)>0}get deletedBefore(){return(this.delInfo&(Sy|ql))>0}get deletedAfter(){return(this.delInfo&(Ey|ql))>0}get deletedAcross(){return(this.delInfo&ql)>0}}class xt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&xt.empty)return xt.empty}recover(e){let n=0,r=ky(e);if(!this.inverted)for(let o=0;o<r;o++)n+=this.ranges[o*3+2]-this.ranges[o*3+1];return this.ranges[r*3]+n+gV(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let o=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?o:0);if(c>e)break;let u=this.ranges[l+i],d=this.ranges[l+a],f=c+u;if(e<=f){let p=u?e==c?-1:e==f?1:n:n,h=c+o+(p<0?0:d);if(r)return h;let m=e==(n<0?c:f)?null:mV(l/3,e-c),y=e==c?Ey:e==f?Sy:ql;return(n<0?e!=c:e!=f)&&(y|=Oy),new Ku(h,y,m)}o+=d-u}return r?e+o:new Ku(e+o,0,null)}touches(e,n){let r=0,o=ky(n),i=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?r:0);if(c>e)break;let u=this.ranges[l+i],d=c+u;if(e<=d&&l==o*3)return!0;r+=this.ranges[l+a]-u}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let o=0,i=0;o<this.ranges.length;o+=3){let a=this.ranges[o],l=a-(this.inverted?i:0),c=a+(this.inverted?0:i),u=this.ranges[o+n],d=this.ranges[o+r];e(l,l+u,c,c+d),i+=d-u}}invert(){return new xt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?xt.empty:new xt(e<0?[0,-e,0]:[0,0,e])}}xt.empty=new xt([]);class Qo{constructor(e=[],n,r=0,o=e.length){this.maps=e,this.mirror=n,this.from=r,this.to=o}slice(e=0,n=this.maps.length){return new Qo(this.maps,this.mirror,e,n)}copy(){return new Qo(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,r=this.maps.length;n<e.maps.length;n++){let o=e.getMirror(n);this.appendMap(e.maps[n],o!=null&&o<n?r+o:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this.maps.length+e.maps.length;n>=0;n--){let o=e.getMirror(n);this.appendMap(e.maps[n].invert(),o!=null&&o>n?r-o-1:void 0)}}invert(){let e=new Qo;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let o=0;for(let i=this.from;i<this.to;i++){let a=this.maps[i],l=a.mapResult(e,n);if(l.recover!=null){let c=this.getMirror(i);if(c!=null&&c>i&&c<this.to){i=c,e=this.maps[c].recover(l.recover);continue}}o|=l.delInfo,e=l.pos}return r?e:new Ku(e,o,null)}}const Gu=Object.create(null);class et{getMap(){return xt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Gu[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in Gu)throw new RangeError("Duplicate use of step JSON ID "+e);return Gu[e]=n,n.prototype.jsonID=e,n}}class Le{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Le(e,null)}static fail(e){return new Le(null,e)}static fromReplace(e,n,r,o){try{return Le.ok(e.replace(n,r,o))}catch(i){if(i instanceof zl)return Le.fail(i.message);throw i}}}function qu(t,e,n){let r=[];for(let o=0;o<t.childCount;o++){let i=t.child(o);i.content.size&&(i=i.copy(qu(i.content,e,i))),i.isInline&&(i=e(i,n,o)),r.push(i)}return N.fromArray(r)}class yr extends et{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),o=r.node(r.sharedDepth(this.to)),i=new H(qu(n.content,(a,l)=>!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),n.openStart,n.openEnd);return Le.fromReplace(e,this.from,this.to,i)}invert(){return new bn(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new yr(n.pos,r.pos,this.mark)}merge(e){return e instanceof yr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new yr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new yr(n.from,n.to,e.markFromJSON(n.mark))}}et.jsonID("addMark",yr);class bn extends et{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new H(qu(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),e),n.openStart,n.openEnd);return Le.fromReplace(e,this.from,this.to,r)}invert(){return new yr(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new bn(n.pos,r.pos,this.mark)}merge(e){return e instanceof bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new bn(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new bn(n.from,n.to,e.markFromJSON(n.mark))}}et.jsonID("removeMark",bn);class br extends et{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Le.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Le.fromReplace(e,this.pos,this.pos+1,new H(N.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let o=0;o<n.marks.length;o++)if(!n.marks[o].isInSet(r))return new br(this.pos,n.marks[o]);return new br(this.pos,this.mark)}}return new Xo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new br(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new br(n.pos,e.markFromJSON(n.mark))}}et.jsonID("addNodeMark",br);class Xo extends et{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Le.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Le.fromReplace(e,this.pos,this.pos+1,new H(N.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new br(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Xo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Xo(n.pos,e.markFromJSON(n.mark))}}et.jsonID("removeNodeMark",Xo);class He extends et{constructor(e,n,r,o=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=o}apply(e){return this.structure&&Yu(e,this.from,this.to)?Le.fail("Structure replace would overwrite content"):Le.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new xt([this.from,this.to-this.from,this.slice.size])}invert(e){return new He(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new He(n.pos,Math.max(n.pos,r.pos),this.slice)}merge(e){if(!(e instanceof He)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?H.empty:new H(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new He(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?H.empty:new H(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new He(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new He(n.from,n.to,H.fromJSON(e,n.slice),!!n.structure)}}et.jsonID("replace",He);class ze extends et{constructor(e,n,r,o,i,a,l=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=o,this.slice=i,this.insert=a,this.structure=l}apply(e){if(this.structure&&(Yu(e,this.from,this.gapFrom)||Yu(e,this.gapTo,this.to)))return Le.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Le.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Le.fromReplace(e,this.from,this.to,r):Le.fail("Content does not fit in gap")}getMap(){return new xt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new ze(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),i=e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||o<n.pos||i>r.pos?null:new ze(n.pos,r.pos,o,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ze(n.from,n.to,n.gapFrom,n.gapTo,H.fromJSON(e,n.slice),n.insert,!!n.structure)}}et.jsonID("replaceAround",ze);function Yu(t,e,n){let r=t.resolve(e),o=n-e,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let a=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function yV(t,e,n,r){let o=[],i=[],a,l;t.doc.nodesBetween(e,n,(c,u,d)=>{if(!c.isInline)return;let f=c.marks;if(!r.isInSet(f)&&d.type.allowsMarkType(r.type)){let p=Math.max(u,e),h=Math.min(u+c.nodeSize,n),m=r.addToSet(f);for(let y=0;y<f.length;y++)f[y].isInSet(m)||(a&&a.to==p&&a.mark.eq(f[y])?a.to=h:o.push(a=new bn(p,h,f[y])));l&&l.to==p?l.to=h:i.push(l=new yr(p,h,r))}}),o.forEach(c=>t.step(c)),i.forEach(c=>t.step(c))}function bV(t,e,n,r){let o=[],i=0;t.doc.nodesBetween(e,n,(a,l)=>{if(!a.isInline)return;i++;let c=null;if(r instanceof Ul){let u=a.marks,d;for(;d=r.isInSet(u);)(c||(c=[])).push(d),u=d.removeFromSet(u)}else r?r.isInSet(a.marks)&&(c=[r]):c=a.marks;if(c&&c.length){let u=Math.min(l+a.nodeSize,n);for(let d=0;d<c.length;d++){let f=c[d],p;for(let h=0;h<o.length;h++){let m=o[h];m.step==i-1&&f.eq(o[h].style)&&(p=m)}p?(p.to=u,p.step=i):o.push({style:f,from:Math.max(l,e),to:u,step:i})}}}),o.forEach(a=>t.step(new bn(a.from,a.to,a.style)))}function wV(t,e,n,r=n.contentMatch){let o=t.doc.nodeAt(e),i=[],a=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)i.push(new He(a,u,H.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new bn(a,u,c.marks[f]));if(c.isText&&!n.spec.code){let f,p=/\r?\n|\r/g,h;for(;f=p.exec(c.text);)h||(h=new H(N.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),i.push(new He(a+f.index,a+f.index+f[0].length,h))}}a=u}if(!r.validEnd){let l=r.fillBefore(N.empty,!0);t.replace(a,a,new H(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function vV(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function ei(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth;;--r){let o=t.$from.node(r),i=t.$from.index(r),a=t.$to.indexAfter(r);if(r<t.depth&&o.canReplace(i,a,n))return r;if(r==0||o.type.spec.isolating||!vV(o,i,a))break}return null}function CV(t,e,n){let{$from:r,$to:o,depth:i}=e,a=r.before(i+1),l=o.after(i+1),c=a,u=l,d=N.empty,f=0;for(let m=i,y=!1;m>n;m--)y||r.index(m)>0?(y=!0,d=N.from(r.node(m).copy(d)),f++):c--;let p=N.empty,h=0;for(let m=i,y=!1;m>n;m--)y||o.after(m+1)<o.end(m)?(y=!0,p=N.from(o.node(m).copy(p)),h++):u++;t.step(new ze(c,u,a,l,new H(d.append(p),f,h),d.size-f,!0))}function Ju(t,e,n=null,r=t){let o=kV(t,e),i=o&&SV(r,e);return i?o.map(Ty).concat({type:e,attrs:n}).concat(i.map(Ty)):null}function Ty(t){return{type:t,attrs:null}}function kV(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.contentMatchAt(r).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return n.canReplaceWith(r,o,a)?i:null}function SV(t,e){let{parent:n,startIndex:r,endIndex:o}=t,i=n.child(r),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let c=(a.length?a[a.length-1]:e).contentMatch;for(let u=r;c&&u<o;u++)c=c.matchType(n.child(u).type);return!c||!c.validEnd?null:a}function EV(t,e,n){let r=N.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let l=n[a].type.contentMatch.matchFragment(r);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=N.from(n[a].type.create(n[a].attrs,r))}let o=e.start,i=e.end;t.step(new ze(o,i,o,i,new H(r,0,0),n.length,!0))}function OV(t,e,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(a,l)=>{if(a.isTextblock&&!a.hasMarkup(r,o)&&TV(t.doc,t.mapping.slice(i).map(l),r)){t.clearIncompatible(t.mapping.slice(i).map(l,1),r);let c=t.mapping.slice(i),u=c.map(l,1),d=c.map(l+a.nodeSize,1);return t.step(new ze(u,d,u+1,d-1,new H(N.from(r.create(o,null,a.marks)),0,0),1,!0)),!1}})}function TV(t,e,n){let r=t.resolve(e),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}function MV(t,e,n,r,o){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let a=n.create(r,null,o||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ze(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new H(N.from(a),0,0),1,!0))}function ti(t,e,n=1,r){let o=t.resolve(e),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,d=n-2;u>i;u--,d--){let f=o.node(u),p=o.index(u);if(f.type.spec.isolating)return!1;let h=f.content.cutByIndex(p,f.childCount),m=r&&r[d+1];m&&(h=h.replaceChild(0,m.type.create(m.attrs)));let y=r&&r[d]||f;if(!f.canReplace(p+1,f.childCount)||!y.type.validContent(h))return!1}let l=o.indexAfter(i),c=r&&r[0];return o.node(i).canReplaceWith(l,l,c?c.type:o.node(i+1).type)}function IV(t,e,n=1,r){let o=t.doc.resolve(e),i=N.empty,a=N.empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){i=N.from(o.node(l).copy(i));let d=r&&r[u];a=N.from(d?d.type.create(d.attrs,a):o.node(l).copy(a))}t.step(new He(e,e,new H(i.append(a),n,n),!0))}function wr(t,e){let n=t.resolve(e),r=n.index();return My(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function My(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function Yl(t,e,n=-1){let r=t.resolve(e);for(let o=r.depth;;o--){let i,a,l=r.index(o);if(o==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(o+1),l++,a=r.node(o).maybeChild(l)):(i=r.node(o).maybeChild(l-1),a=r.node(o+1)),i&&!i.isTextblock&&My(i,a)&&r.node(o).canReplace(l,l+1))return e;if(o==0)break;e=n<0?r.before(o):r.after(o)}}function xV(t,e,n){let r=new He(e-n,e+n,H.empty,!0);t.step(r)}function PV(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let o=r.depth-1;o>=0;o--){let i=r.index(o);if(r.node(o).canReplaceWith(i,i,n))return r.before(o+1);if(i>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let i=r.indexAfter(o);if(r.node(o).canReplaceWith(i,i,n))return r.after(o+1);if(i<r.node(o).childCount)return null}return null}function Iy(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let a=r.depth;a>=0;a--){let l=a==r.depth?0:r.pos<=(r.start(a+1)+r.end(a+1))/2?-1:1,c=r.index(a)+(l>0?1:0),u=r.node(a),d=!1;if(i==1)d=u.canReplace(c,c,o);else{let f=u.contentMatchAt(c).findWrapping(o.firstChild.type);d=f&&u.canReplaceWith(c,c,f[0])}if(d)return l==0?r.pos:l<0?r.before(a+1):r.after(a+1)}return null}function Jl(t,e,n=e,r=H.empty){if(e==n&&!r.size)return null;let o=t.resolve(e),i=t.resolve(n);return xy(o,i,r)?new He(e,n,r):new BV(o,i,r).fit()}function xy(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class BV{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=N.empty;for(let o=0;o<=e.depth;o++){let i=e.node(o);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(o))})}for(let o=e.depth;o>0;o--)this.placed=N.from(e.node(o).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,o=this.close(e<0?this.$to:r.doc.resolve(e));if(!o)return null;let i=this.placed,a=r.depth,l=o.depth;for(;a&&l&&i.childCount==1;)i=i.firstChild.content,a--,l--;let c=new H(i,a,l);return e>-1?new ze(r.pos,e,this.$to.pos,this.$to.end(),c,n):c.size||r.pos!=this.$to.pos?new He(r.pos,o.pos,c):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,o=this.unplaced.openEnd;r<e;r++){let i=n.firstChild;if(n.childCount>1&&(o=0),i.type.spec.isolating&&o<=r){e=r;break}n=i.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let o,i=null;r?(i=Qu(this.unplaced.content,r-1).firstChild,o=i.content):o=this.unplaced.content;let a=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:c,match:u}=this.frontier[l],d,f=null;if(n==1&&(a?u.matchType(a.type)||(f=u.fillBefore(N.from(a),!1)):i&&c.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:l,parent:i,inject:f};if(n==2&&a&&(d=u.findWrapping(a.type)))return{sliceDepth:r,frontierDepth:l,parent:i,wrap:d};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Qu(e,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new H(e,n+1,Math.max(r,o.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,o=Qu(e,n);if(o.childCount<=1&&n>0){let i=e.size-n<=n+o.size;this.unplaced=new H(Xs(e,n-1,1),n-1,i?n-1:r)}else this.unplaced=new H(Xs(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:o,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let a=this.unplaced,l=r?r.content:a.content,c=a.openStart-e,u=0,d=[],{match:f,type:p}=this.frontier[n];if(o){for(let y=0;y<o.childCount;y++)d.push(o.child(y));f=f.matchFragment(o)}let h=l.size+e-(a.content.size-a.openEnd);for(;u<l.childCount;){let y=l.child(u),g=f.matchType(y.type);if(!g)break;u++,(u>1||c==0||y.content.size)&&(f=g,d.push(Py(y.mark(p.allowedMarks(y.marks)),u==1?c:0,u==l.childCount?h:-1)))}let m=u==l.childCount;m||(h=-1),this.placed=ea(this.placed,n,N.from(d)),this.frontier[n].match=f,m&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,g=l;y<h;y++){let b=g.lastChild;this.frontier.push({type:b.type,match:b.contentMatchAt(b.childCount)}),g=b.content}this.unplaced=m?e==0?H.empty:new H(Xs(a.content,e-1,1),e-1,h<0?a.openEnd:e-1):new H(Xs(a.content,e,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Xu(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,o=this.$to.after(r);for(;r>1&&o==this.$to.end(--r);)++o;return o}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:o}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),a=Xu(e,n,o,r,i);if(a){for(let l=n-1;l>=0;l--){let{match:c,type:u}=this.frontier[l],d=Xu(e,l,u,c,!0);if(!d||d.childCount)continue e}return{depth:n,fit:a,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=ea(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let o=e.node(r),i=o.type.contentMatch.fillBefore(o.content,!0,e.index(r));this.openFrontierNode(o.type,o.attrs,i)}return e}openFrontierNode(e,n=null,r){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=ea(this.placed,this.depth,N.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=ea(this.placed,this.frontier.length,n))}}function Xs(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Xs(t.firstChild.content,e-1,n)))}function ea(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(ea(t.lastChild.content,e-1,n)))}function Qu(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Py(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,Py(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(N.empty,!0)))),t.copy(r)}function Xu(t,e,n,r,o){let i=t.node(e),a=o?t.indexAfter(e):t.index(e);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let l=r.fillBefore(i.content,!0,a);return l&&!AV(n,i.content,a)?l:null}function AV(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function DV(t){return t.spec.defining||t.spec.definingForContent}function NV(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let o=t.doc.resolve(e),i=t.doc.resolve(n);if(xy(o,i,r))return t.step(new He(e,n,r));let a=Ay(o,t.doc.resolve(n));a[a.length-1]==0&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let p=o.depth,h=o.pos-1;p>0;p--,h--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?l=p:o.before(p)==h&&a.splice(1,0,-p)}let c=a.indexOf(l),u=[],d=r.openStart;for(let p=r.content,h=0;;h++){let m=p.firstChild;if(u.push(m),h==r.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let h=u[p],m=DV(h.type);if(m&&!h.sameMarkup(o.node(Math.abs(l)-1)))d=p;else if(m||!h.type.isTextblock)break}for(let p=r.openStart;p>=0;p--){let h=(p+d+1)%(r.openStart+1),m=u[h];if(m)for(let y=0;y<a.length;y++){let g=a[(y+c)%a.length],b=!0;g<0&&(b=!1,g=-g);let v=o.node(g-1),k=o.index(g-1);if(v.canReplaceWith(k,k,m.type,m.marks))return t.replace(o.before(g),b?i.after(g):n,new H(By(r.content,0,r.openStart,h),h,r.openEnd))}}let f=t.steps.length;for(let p=a.length-1;p>=0&&(t.replace(e,n,r),!(t.steps.length>f));p--){let h=a[p];h<0||(e=o.before(h),n=i.after(h))}}function By(t,e,n,r,o){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(By(i.content,e+1,n,r,i)))}if(e>r){let i=o.contentMatchAt(0),a=i.fillBefore(t).append(t);t=a.append(i.matchFragment(a).fillBefore(N.empty,!0))}return t}function LV(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let o=PV(t.doc,e,r.type);o!=null&&(e=n=o)}t.replaceRange(e,n,new H(N.from(r),0,0))}function RV(t,e,n){let r=t.doc.resolve(e),o=t.doc.resolve(n),i=Ay(r,o);for(let a=0;a<i.length;a++){let l=i[a],c=a==i.length-1;if(c&&l==0||r.node(l).type.contentMatch.validEnd)return t.delete(r.start(l),o.end(l));if(l>0&&(c||r.node(l-1).canReplace(r.index(l-1),o.indexAfter(l-1))))return t.delete(r.before(l),o.after(l))}for(let a=1;a<=r.depth&&a<=o.depth;a++)if(e-r.start(a)==r.depth-a&&n>r.end(a)&&o.end(a)-n!=o.depth-a)return t.delete(r.before(a),n);t.delete(e,n)}function Ay(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let o=r;o>=0;o--){let i=t.start(o);if(i<t.pos-(t.depth-o)||e.end(o)>e.pos+(e.depth-o)||t.node(o).type.spec.isolating||e.node(o).type.spec.isolating)break;(i==e.start(o)||o==t.depth&&o==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&o&&e.start(o-1)==i-1)&&n.push(o)}return n}class ni extends et{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Le.fail("No node at attribute step's position");let r=Object.create(null);for(let i in n.attrs)r[i]=n.attrs[i];r[this.attr]=this.value;let o=n.type.create(r,null,n.marks);return Le.fromReplace(e,this.pos,this.pos+1,new H(N.from(o),0,n.isLeaf?0:1))}getMap(){return xt.empty}invert(e){return new ni(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ni(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ni(n.pos,n.attr,n.value)}}et.jsonID("attr",ni);class ta extends et{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let o in e.attrs)n[o]=e.attrs[o];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Le.ok(r)}getMap(){return xt.empty}invert(e){return new ta(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ta(n.attr,n.value)}}et.jsonID("docAttr",ta);let ri=class extends Error{};ri=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ri.prototype=Object.create(Error.prototype),ri.prototype.constructor=ri,ri.prototype.name="TransformError";class Dy{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Qo}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ri(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=H.empty){let o=Jl(this.doc,e,n,r);return o&&this.step(o),this}replaceWith(e,n,r){return this.replace(e,n,new H(N.from(r),0,0))}delete(e,n){return this.replace(e,n,H.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return NV(this,e,n,r),this}replaceRangeWith(e,n,r){return LV(this,e,n,r),this}deleteRange(e,n){return RV(this,e,n),this}lift(e,n){return CV(this,e,n),this}join(e,n=1){return xV(this,e,n),this}wrap(e,n){return EV(this,e,n),this}setBlockType(e,n=e,r,o=null){return OV(this,e,n,r,o),this}setNodeMarkup(e,n,r=null,o){return MV(this,e,n,r,o),this}setNodeAttribute(e,n,r){return this.step(new ni(e,n,r)),this}setDocAttribute(e,n){return this.step(new ta(e,n)),this}addNodeMark(e,n){return this.step(new br(e,n)),this}removeNodeMark(e,n){if(!(n instanceof ge)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n=n.isInSet(r.marks),!n)return this}return this.step(new Xo(e,n)),this}split(e,n=1,r){return IV(this,e,n,r),this}addMark(e,n,r){return yV(this,e,n,r),this}removeMark(e,n,r){return bV(this,e,n,r),this}clearIncompatible(e,n,r){return wV(this,e,n,r),this}}const ed=Object.create(null);class ee{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new VV(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=H.empty){let r=n.content.lastChild,o=null;for(let l=0;l<n.openEnd;l++)o=r,r=r.lastChild;let i=e.steps.length,a=this.ranges;for(let l=0;l<a.length;l++){let{$from:c,$to:u}=a[l],d=e.mapping.slice(i);e.replaceRange(d.map(c.pos),d.map(u.pos),l?H.empty:n),l==0&&Ry(e,i,(r?r.isInline:o&&o.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,o=this.ranges;for(let i=0;i<o.length;i++){let{$from:a,$to:l}=o[i],c=e.mapping.slice(r),u=c.map(a.pos),d=c.map(l.pos);i?e.deleteRange(u,d):(e.replaceRangeWith(u,d,n),Ry(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let o=e.parent.inlineContent?new Q(e):oi(e.node(0),e.parent,e.pos,e.index(),n,r);if(o)return o;for(let i=e.depth-1;i>=0;i--){let a=n<0?oi(e.node(0),e.node(i),e.before(i+1),e.index(i),n,r):oi(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,r);if(a)return a}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new on(e.node(0))}static atStart(e){return oi(e,e,0,0,1)||new on(e)}static atEnd(e){return oi(e,e,e.content.size,e.childCount,-1)||new on(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=ed[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in ed)throw new RangeError("Duplicate use of selection JSON ID "+e);return ed[e]=n,n.prototype.jsonID=e,n}getBookmark(){return Q.between(this.$anchor,this.$head).getBookmark()}}ee.prototype.visible=!0;class VV{constructor(e,n){this.$from=e,this.$to=n}}let Ny=!1;function Ly(t){!Ny&&!t.parent.inlineContent&&(Ny=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class Q extends ee{constructor(e,n=e){Ly(e),Ly(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return ee.near(r);let o=e.resolve(n.map(this.anchor));return new Q(o.parent.inlineContent?o:r,r)}replace(e,n=H.empty){if(super.replace(e,n),n==H.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Q&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Ql(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Q(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let o=e.resolve(n);return new this(o,r==n?o:e.resolve(r))}static between(e,n,r){let o=e.pos-n.pos;if((!r||o)&&(r=o>=0?1:-1),!n.parent.inlineContent){let i=ee.findFrom(n,r,!0)||ee.findFrom(n,-r,!0);if(i)n=i.$head;else return ee.near(n,r)}return e.parent.inlineContent||(o==0?e=n:(e=(ee.findFrom(e,-r,!0)||ee.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=o<0&&(e=n))),new Q(e,n)}}ee.jsonID("text",Q);class Ql{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Ql(e.map(this.anchor),e.map(this.head))}resolve(e){return Q.between(e.resolve(this.anchor),e.resolve(this.head))}}class U extends ee{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:o}=n.mapResult(this.anchor),i=e.resolve(o);return r?ee.near(i):new U(i)}content(){return new H(N.from(this.node),0,0)}eq(e){return e instanceof U&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new td(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new U(e.resolve(n.anchor))}static create(e,n){return new U(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}U.prototype.visible=!1,ee.jsonID("node",U);class td{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Ql(r,r):new td(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&U.isSelectable(r)?new U(n):ee.near(n)}}class on extends ee{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=H.empty){if(n==H.empty){e.delete(0,e.doc.content.size);let r=ee.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new on(e)}map(e){return new on(e)}eq(e){return e instanceof on}getBookmark(){return $V}}ee.jsonID("all",on);const $V={map(){return this},resolve(t){return new on(t)}};function oi(t,e,n,r,o,i=!1){if(e.inlineContent)return Q.create(t,n);for(let a=r-(o>0?0:1);o>0?a<e.childCount:a>=0;a+=o){let l=e.child(a);if(l.isAtom){if(!i&&U.isSelectable(l))return U.create(t,n-(o<0?l.nodeSize:0))}else{let c=oi(t,l,n+o,o<0?l.childCount:0,o,i);if(c)return c}n+=l.nodeSize*o}return null}function Ry(t,e,n){let r=t.steps.length-1;if(r<e)return;let o=t.steps[r];if(!(o instanceof He||o instanceof ze))return;let i=t.mapping.maps[r],a;i.forEach((l,c,u,d)=>{a==null&&(a=d)}),t.setSelection(ee.near(t.doc.resolve(a),n))}const Vy=1,Xl=2,$y=4;class FV extends Dy{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Vy)&~Xl,this.storedMarks=null,this}get selectionSet(){return(this.updated&Vy)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Xl,this}ensureMarks(e){return ge.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Xl)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Xl,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||ge.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let o=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(o.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),r=r??n,!e)return this.deleteRange(n,r);let i=this.storedMarks;if(!i){let a=this.doc.resolve(n);i=r==n?a.marks():a.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,o.text(e,i)),this.selection.empty||this.setSelection(ee.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=$y,this}get scrolledIntoView(){return(this.updated&$y)>0}}function Fy(t,e){return!e||!t?t:t.bind(e)}class na{constructor(e,n,r){this.name=e,this.init=Fy(n.init,r),this.apply=Fy(n.apply,r)}}const HV=[new na("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new na("selection",{init(t,e){return t.selection||ee.atStart(e.doc)},apply(t){return t.selection}}),new na("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new na("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class nd{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=HV.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new na(r.key,r.spec.state,r))})}}class ii{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let o=this.config.plugins[r];if(o.spec.filterTransaction&&!o.spec.filterTransaction.call(o,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),o=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let l=this.config.plugins[a];if(l.spec.appendTransaction){let c=o?o[a].n:0,u=o?o[a].state:this,d=c<n.length&&l.spec.appendTransaction.call(l,c?n.slice(c):n,u,r);if(d&&r.filterTransaction(d,a)){if(d.setMeta("appendedTransaction",e),!o){o=[];for(let f=0;f<this.config.plugins.length;f++)o.push(f<a?{state:r,n:n.length}:{state:this,n:0})}n.push(d),r=r.applyInner(d),i=!0}o&&(o[a]={state:r,n:n.length})}}if(!i)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new ii(this.config),r=this.config.fields;for(let o=0;o<r.length;o++){let i=r[o];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new FV(this)}static create(e){let n=new nd(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new ii(n);for(let o=0;o<n.fields.length;o++)r[n.fields[o].name]=n.fields[o].init(e,r);return r}reconfigure(e){let n=new nd(this.schema,e.plugins),r=n.fields,o=new ii(n);for(let i=0;i<r.length;i++){let a=r[i].name;o[a]=this.hasOwnProperty(a)?this[a]:r[i].init(e,o)}return o}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=e[r],i=o.spec.state;i&&i.toJSON&&(n[r]=i.toJSON.call(o,this[o.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let o=new nd(e.schema,e.plugins),i=new ii(o);return o.fields.forEach(a=>{if(a.name=="doc")i.doc=co.fromJSON(e.schema,n.doc);else if(a.name=="selection")i.selection=ee.fromJSON(i.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let l in r){let c=r[l],u=c.spec.state;if(c.key==a.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){i[a.name]=u.fromJSON.call(c,e,n[l],i);return}}i[a.name]=a.init(e,i)}}),i}}function Hy(t,e,n){for(let r in t){let o=t[r];o instanceof Function?o=o.bind(e):r=="handleDOMEvents"&&(o=Hy(o,e,{})),n[r]=o}return n}class Ge{constructor(e){this.spec=e,this.props={},e.props&&Hy(e.props,this,this.props),this.key=e.key?e.key.key:zy("plugin")}getState(e){return e[this.key]}}const rd=Object.create(null);function zy(t){return t in rd?t+"$"+ ++rd[t]:(rd[t]=0,t+"$")}class Pt{constructor(e="key"){this.key=zy(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const dt=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ra=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let _y=null;const zn=function(t,e,n){let r=_y||(_y=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},fo=function(t,e,n,r){return n&&(jy(t,e,n,r,-1)||jy(t,e,n,r,1))},zV=/^(img|br|input|textarea|hr)$/i;function jy(t,e,n,r,o){for(;;){if(t==n&&e==r)return!0;if(e==(o<0?0:wn(t))){let i=t.parentNode;if(!i||i.nodeType!=1||od(t)||zV.test(t.nodeName)||t.contentEditable=="false")return!1;e=dt(t)+(o<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(o<0?-1:0)],t.contentEditable=="false")return!1;e=o<0?wn(t):0}else return!1}}function wn(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function _V(t,e,n){for(let r=e==0,o=e==wn(t);r||o;){if(t==n)return!0;let i=dt(t);if(t=t.parentNode,!t)return!1;r=r&&i==0,o=o&&i==wn(t)}}function od(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const e0=function(t){return t.focusNode&&fo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function po(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function jV(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ZV(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:r.offset}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:r.startOffset}}}const vn=typeof navigator<"u"?navigator:null,Zy=typeof document<"u"?document:null,vr=vn&&vn.userAgent||"",id=/Edge\/(\d+)/.exec(vr),Uy=/MSIE \d/.exec(vr),sd=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vr),kt=!!(Uy||sd||id),Cr=Uy?document.documentMode:sd?+sd[1]:id?+id[1]:0,sn=!kt&&/gecko\/(\d+)/i.test(vr);sn&&+(/Firefox\/(\d+)/.exec(vr)||[0,0])[1];const ad=!kt&&/Chrome\/(\d+)/.exec(vr),tt=!!ad,UV=ad?+ad[1]:0,ft=!kt&&!!vn&&/Apple Computer/.test(vn.vendor),si=ft&&(/Mobile\/\w+/.test(vr)||!!vn&&vn.maxTouchPoints>2),jt=si||(vn?/Mac/.test(vn.platform):!1),WV=vn?/Win/.test(vn.platform):!1,an=/Android \d/.test(vr),oa=!!Zy&&"webkitFontSmoothing"in Zy.documentElement.style,KV=oa?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function GV(t){return{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function _n(t,e){return typeof t=="number"?t:t[e]}function qV(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function Wy(t,e,n){let r=t.someProp("scrollThreshold")||0,o=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let a=n||t.dom;a;a=ra(a)){if(a.nodeType!=1)continue;let l=a,c=l==i.body,u=c?GV(i):qV(l),d=0,f=0;if(e.top<u.top+_n(r,"top")?f=-(u.top-e.top+_n(o,"top")):e.bottom>u.bottom-_n(r,"bottom")&&(f=e.bottom-e.top>u.bottom-u.top?e.top+_n(o,"top")-u.top:e.bottom-u.bottom+_n(o,"bottom")),e.left<u.left+_n(r,"left")?d=-(u.left-e.left+_n(o,"left")):e.right>u.right-_n(r,"right")&&(d=e.right-u.right+_n(o,"right")),d||f)if(c)i.defaultView.scrollBy(d,f);else{let p=l.scrollLeft,h=l.scrollTop;f&&(l.scrollTop+=f),d&&(l.scrollLeft+=d);let m=l.scrollLeft-p,y=l.scrollTop-h;e={left:e.left-m,top:e.top-y,right:e.right-m,bottom:e.bottom-y}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function YV(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,o;for(let i=(e.left+e.right)/2,a=n+1;a<Math.min(innerHeight,e.bottom);a+=5){let l=t.root.elementFromPoint(i,a);if(!l||l==t.dom||!t.dom.contains(l))continue;let c=l.getBoundingClientRect();if(c.top>=n-20){r=l,o=c.top;break}}return{refDOM:r,refTop:o,stack:Ky(t.dom)}}function Ky(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=ra(r));return e}function JV({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Gy(n,r==0?0:r-e)}function Gy(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:o,left:i}=t[n];r.scrollTop!=o+e&&(r.scrollTop=o+e),r.scrollLeft!=i&&(r.scrollLeft=i)}}let ai=null;function QV(t){if(t.setActive)return t.setActive();if(ai)return t.focus(ai);let e=Ky(t);t.focus(ai==null?{get preventScroll(){return ai={preventScroll:!0},!0}}:void 0),ai||(ai=!1,Gy(e,0))}function qy(t,e){let n,r=2e8,o,i=0,a=e.top,l=e.top,c,u;for(let d=t.firstChild,f=0;d;d=d.nextSibling,f++){let p;if(d.nodeType==1)p=d.getClientRects();else if(d.nodeType==3)p=zn(d).getClientRects();else continue;for(let h=0;h<p.length;h++){let m=p[h];if(m.top<=a&&m.bottom>=l){a=Math.max(m.bottom,a),l=Math.min(m.top,l);let y=m.left>e.left?m.left-e.left:m.right<e.left?e.left-m.right:0;if(y<r){n=d,r=y,o=y&&n.nodeType==3?{left:m.right<e.left?m.right:m.left,top:e.top}:e,d.nodeType==1&&y&&(i=f+(e.left>=(m.left+m.right)/2?1:0));continue}}else m.top>e.top&&!c&&m.left<=e.left&&m.right>=e.left&&(c=d,u={left:Math.max(m.left,Math.min(m.right,e.left)),top:m.top});!n&&(e.left>=m.right&&e.top>=m.top||e.left>=m.left&&e.top>=m.bottom)&&(i=f+1)}}return!n&&c&&(n=c,o=u,r=0),n&&n.nodeType==3?XV(n,o):!n||r&&n.nodeType==1?{node:t,offset:i}:qy(n,o)}function XV(t,e){let n=t.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let i=kr(r,1);if(i.top!=i.bottom&&ld(e,i))return{node:t,offset:o+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function ld(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function e$(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function t$(t,e,n){let{node:r,offset:o}=qy(e,n),i=-1;if(r.nodeType==1&&!r.firstChild){let a=r.getBoundingClientRect();i=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return t.docView.posFromDOM(r,o,i)}function n$(t,e,n,r){let o=-1;for(let i=e,a=!1;i!=t.dom;){let l=t.docView.nearestDesc(i,!0);if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent&&!a||!l.contentDOM)){let c=l.dom.getBoundingClientRect();if(l.node.isBlock&&l.parent&&!a&&(a=!0,c.left>r.left||c.top>r.top?o=l.posBefore:(c.right<r.left||c.bottom<r.top)&&(o=l.posAfter)),!l.contentDOM&&o<0&&!l.node.isText)return(l.node.isBlock?r.top<(c.top+c.bottom)/2:r.left<(c.left+c.right)/2)?l.posBefore:l.posAfter}i=l.dom.parentNode}return o>-1?o:t.docView.posFromDOM(e,n,-1)}function Yy(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let a=t.childNodes[i];if(a.nodeType==1){let l=a.getClientRects();for(let c=0;c<l.length;c++){let u=l[c];if(ld(e,u))return Yy(a,e,u)}}if((i=(i+1)%r)==o)break}return t}function r$(t,e){let n=t.dom.ownerDocument,r,o=0,i=ZV(n,e.left,e.top);i&&({node:r,offset:o}=i);let a=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),l;if(!a||!t.dom.contains(a.nodeType!=1?a.parentNode:a)){let u=t.dom.getBoundingClientRect();if(!ld(e,u)||(a=Yy(t.dom,e,u),!a))return null}if(ft)for(let u=a;r&&u;u=ra(u))u.draggable&&(r=void 0);if(a=e$(a,e),r){if(sn&&r.nodeType==1&&(o=Math.min(o,r.childNodes.length),o<r.childNodes.length)){let d=r.childNodes[o],f;d.nodeName=="IMG"&&(f=d.getBoundingClientRect()).right<=e.left&&f.bottom>e.top&&o++}let u;oa&&o&&r.nodeType==1&&(u=r.childNodes[o-1]).nodeType==1&&u.contentEditable=="false"&&u.getBoundingClientRect().top>=e.top&&o--,r==t.dom&&o==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?l=t.state.doc.content.size:(o==0||r.nodeType!=1||r.childNodes[o-1].nodeName!="BR")&&(l=n$(t,r,o,e))}l==null&&(l=t$(t,a,e));let c=t.docView.nearestDesc(a,!0);return{pos:l,inside:c?c.posAtStart-c.border:-1}}function Jy(t){return t.top<t.bottom||t.left<t.right}function kr(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(Jy(r))return r}return Array.prototype.find.call(n,Jy)||t.getBoundingClientRect()}const o$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Qy(t,e,n){let{node:r,offset:o,atom:i}=t.docView.domFromPos(e,n<0?-1:1),a=oa||sn;if(r.nodeType==3)if(a&&(o$.test(r.nodeValue)||(n<0?!o:o==r.nodeValue.length))){let c=kr(zn(r,o,o),n);if(sn&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let u=kr(zn(r,o-1,o-1),-1);if(u.top==c.top){let d=kr(zn(r,o,o+1),-1);if(d.top!=c.top)return ia(d,d.left<u.left)}}return c}else{let c=o,u=o,d=n<0?1:-1;return n<0&&!o?(u++,d=-1):n>=0&&o==r.nodeValue.length?(c--,d=1):n<0?c--:u++,ia(kr(zn(r,c,u),d),d<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&o&&(n<0||o==wn(r))){let c=r.childNodes[o-1];if(c.nodeType==1)return cd(c.getBoundingClientRect(),!1)}if(i==null&&o<wn(r)){let c=r.childNodes[o];if(c.nodeType==1)return cd(c.getBoundingClientRect(),!0)}return cd(r.getBoundingClientRect(),n>=0)}if(i==null&&o&&(n<0||o==wn(r))){let c=r.childNodes[o-1],u=c.nodeType==3?zn(c,wn(c)-(a?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(u)return ia(kr(u,1),!1)}if(i==null&&o<wn(r)){let c=r.childNodes[o];for(;c.pmViewDesc&&c.pmViewDesc.ignoreForCoords;)c=c.nextSibling;let u=c?c.nodeType==3?zn(c,0,a?0:1):c.nodeType==1?c:null:null;if(u)return ia(kr(u,-1),!0)}return ia(kr(r.nodeType==3?zn(r):r,-n),n>=0)}function ia(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function cd(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Xy(t,e,n){let r=t.state,o=t.root.activeElement;r!=e&&t.updateState(e),o!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),o!=t.dom&&o&&o.focus()}}function i$(t,e,n){let r=e.selection,o=n=="up"?r.$from:r.$to;return Xy(t,e,()=>{let{node:i}=t.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=t.docView.nearestDesc(i,!0);if(!l)break;if(l.node.isBlock){i=l.contentDOM||l.dom;break}i=l.dom.parentNode}let a=Qy(t,o.pos,1);for(let l=i.firstChild;l;l=l.nextSibling){let c;if(l.nodeType==1)c=l.getClientRects();else if(l.nodeType==3)c=zn(l,0,l.nodeValue.length).getClientRects();else continue;for(let u=0;u<c.length;u++){let d=c[u];if(d.bottom>d.top+1&&(n=="up"?a.top-d.top>(d.bottom-a.top)*2:d.bottom-a.bottom>(a.bottom-d.top)*2))return!1}}return!0})}const s$=/[\u0590-\u08ac]/;function a$(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,l=t.domSelection();return!s$.test(r.parent.textContent)||!l.modify?n=="left"||n=="backward"?i:a:Xy(t,e,()=>{let{focusNode:c,focusOffset:u,anchorNode:d,anchorOffset:f}=t.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:m,focusOffset:y}=t.domSelectionRange(),g=m&&!h.contains(m.nodeType==1?m:m.parentNode)||c==m&&u==y;try{l.collapse(d,f),c&&(c!=d||u!=f)&&l.extend&&l.extend(c,u)}catch{}return p!=null&&(l.caretBidiLevel=p),g})}let e4=null,t4=null,n4=!1;function l$(t,e,n){return e4==e&&t4==n?n4:(e4=e,t4=n,n4=n=="up"||n=="down"?i$(t,e,n):a$(t,e,n))}const Zt=0,r4=1,ho=2,Cn=3;class sa{constructor(e,n,r,o){this.parent=e,this.children=n,this.dom=r,this.contentDOM=o,this.dirty=Zt,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let o=this.children[n];if(o==e)return r;r+=o.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let i,a;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let o;if(e==this.dom&&this.contentDOM)o=n>dt(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!1;break}if(i.previousSibling)break}if(o==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){o=!0;break}if(i.nextSibling)break}}return o??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,o=e;o;o=o.parentNode){let i=this.getDesc(o),a;if(i&&(!n||i.node))if(r&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))r=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let o=e;o;o=o.parentNode){let i=this.getDesc(o);if(i)return i.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let o=this.children[n],i=r+o.size;if(r==e&&i!=r){for(;!o.border&&o.children.length;)o=o.children[0];return o}if(e<i)return o.descAt(e-r-o.border);r=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,o=0;for(let i=0;r<this.children.length;r++){let a=this.children[r],l=i+a.size;if(l>e||a instanceof s4){o=e-i;break}i=l}if(o)return this.children[r].domFromPos(o-this.children[r].border,n);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof o4&&i.side>=0;r--);if(n<=0){let i,a=!0;for(;i=r?this.children[r-1]:null,!(!i||i.dom.parentNode==this.contentDOM);r--,a=!1);return i&&n&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?dt(i.dom)+1:0}}else{let i,a=!0;for(;i=r<this.children.length?this.children[r]:null,!(!i||i.dom.parentNode==this.contentDOM);r++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?dt(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let o=-1,i=-1;for(let a=r,l=0;;l++){let c=this.children[l],u=a+c.size;if(o==-1&&e<=u){let d=a+c.border;if(e>=d&&n<=u-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(e,n,d);e=a;for(let f=l;f>0;f--){let p=this.children[f-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=dt(p.dom)+1;break}e-=p.size}o==-1&&(o=0)}if(o>-1&&(u>n||l==this.children.length-1)){n=u;for(let d=l+1;d<this.children.length;d++){let f=this.children[d];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(-1)){i=dt(f.dom);break}n+=f.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=u}return{node:this.contentDOM,from:e,to:n,fromOffset:o,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,o=!1){let i=Math.min(e,n),a=Math.max(e,n);for(let p=0,h=0;p<this.children.length;p++){let m=this.children[p],y=h+m.size;if(i>h&&a<y)return m.setSelection(e-h-m.border,n-h-m.border,r,o);h=y}let l=this.domFromPos(e,e?-1:1),c=n==e?l:this.domFromPos(n,n?-1:1),u=r.getSelection(),d=!1;if((sn||ft)&&e==n){let{node:p,offset:h}=l;if(p.nodeType==3){if(d=!!(h&&p.nodeValue[h-1]==`
|